1 2015-09-30 Matthias Klose <doko@ubuntu.com>
3 * configure.ac: Remove extraneous ;;.
4 * configure: Regenerate.
6 2015-09-29 James Bowman <james.bowman@ftdichip.com>
8 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
9 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10 predicate, disallow register for operand 2.
12 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14 * graphite-dependences.c (scop_get_dependences): Moved in down
15 in order to be visible to its caller.
16 * graphite-poly.h: Removed compute_deps, and extend_schedule.
18 2015-09-29 Sebastian Pop <s.pop@samsung.com>
19 Aditya Kumar <aditya.k7@samsung.com>
21 PR tree-optimization/67754
22 * graphite-optimize-isl.c (optimize_isl): Call
23 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
25 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
27 * builtins.c (expand_builtin_acc_on_device): Delete.
28 (expand_builtin): Don't call it.
29 (fold_builtin_1): Fold acc_on_device.
31 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
33 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
34 (ix86_nsaved_sseregs): Likewise.
36 2015-09-29 Jeff Law <law@redhat.com>
38 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
39 computation of unused value.
41 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
42 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
43 inline macro expansion.
45 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
47 * config/sh/sh.c (gen_shl_and): Fix undefined left shift
49 (gen_shl_sext): Likewise.
50 * config/sh/sh.md (divsi3): Likewise.
51 (imm->ext_dest_operand splitter): Likewise.
53 2015-09-29 Sebastian Pop <s.pop@samsung.com>
54 Aditya Kumar <aditya.k7@samsung.com>
56 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
57 (nb_data_writes_in_bb): Remove.
59 (split_reduction_stmt): Remove.
60 (is_reduction_operation_p): Remove.
61 (phi_contains_arg): Remove.
62 (follow_ssa_with_commutative_ops): Remove.
63 (detect_commutative_reduction_arg): Remove.
64 (detect_commutative_reduction_assign): Remove.
65 (follow_inital_value_to_phi): Remove.
66 (edge_initial_value_for_loop_phi): Remove.
67 (initial_value_for_loop_phi): Remove.
68 (used_outside_reduction): Remove.
69 (detect_commutative_reduction): Remove.
70 (translate_scalar_reduction_to_array_for_stmt): Remove.
72 (dr_indices_valid_in_loop): Remove.
73 (close_phi_written_to_memory): Remove.
74 (translate_scalar_reduction_to_array): Remove.
75 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
76 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
77 (rewrite_commutative_reductions_out_of_ssa): Remove.
78 (build_poly_scop): Remove call to
79 rewrite_commutative_reductions_out_of_ssa.
81 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
83 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
84 Add new insn types for vector load and store pairs.
85 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
86 types "neon_ldp{,_q}".
87 * config/arm/cortex-a57.md (neon_load_c): Add insn types
89 (neon_store_complex): Add insn types "neon_stp{,_q}".
90 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
93 2015-09-29 Jeff Law <law@redhat.com>
95 * config/rx/constraints.md (Int08): Fix undefined left shift
97 (Sint08, Sint16, Sint24): Likewise.
98 * config/rx/rx.c (rx_get_stack_layout): Likewise.
100 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
103 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
104 left shift behaviour.
105 * config/msp430/constraints.md ('L' constraint): Similarly.
106 ('Ys' constraint): Similarly.
108 2015-09-29 Richard Biener <rguenther@suse.de>
110 PR tree-optimization/67170
111 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
112 the translate function pointer parameter to get the
113 bool whether to disambiguate only by reference.
114 (walk_non_aliased_vuses): Likewise.
115 * tree-ssa-alias.c (maybe_skip_until): Adjust.
116 (get_continuation_for_phi_1): Likewise.
117 (get_continuation_for_phi): Likewise.
118 (walk_non_aliased_vuses): Likewise.
119 * tree-ssa-sccvn.c (const_parms): New bitmap.
120 (vn_reference_lookup_3): Adjust for interface change.
121 Disambiguate parameters pointing to readonly memory.
122 (free_scc_vn): Free const_parms.
123 (run_scc_vn): Initialize const_parms from a fn spec attribute.
125 2015-09-29 Richard Biener <rguenther@suse.de>
127 PR tree-optimization/67741
128 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
129 builtin calls with correct signature.
131 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
134 * config/i386/i386.c: Include dbgcnt.h.
135 (has_non_address_hard_reg): New.
136 (convertible_comparison_p): New.
137 (scalar_to_vector_candidate_p): New.
138 (remove_non_convertible_regs): New.
140 (scalar_chain::scalar_chain): New.
141 (scalar_chain::~scalar_chain): New.
142 (scalar_chain::add_to_queue): New.
143 (scalar_chain::mark_dual_mode_def): New.
144 (scalar_chain::analyze_register_chain): New.
145 (scalar_chain::add_insn): New.
146 (scalar_chain::build): New.
147 (scalar_chain::compute_convert_gain): New.
148 (scalar_chain::replace_with_subreg): New.
149 (scalar_chain::replace_with_subreg_in_insn): New.
150 (scalar_chain::emit_conversion_insns): New.
151 (scalar_chain::make_vector_copies): New.
152 (scalar_chain::convert_reg): New.
153 (scalar_chain::convert_op): New.
154 (scalar_chain::convert_insn): New.
155 (scalar_chain::convert): New.
156 (convert_scalars_to_vector): New.
157 (pass_data_stv): New.
159 (make_pass_stv): New.
160 (ix86_option_override): Created and register stv pass.
161 (flag_opts): Add -mstv.
162 (ix86_option_override_internal): Likewise.
163 * config/i386/i386.md (SWIM1248x): New.
164 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
165 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
166 (*anddi3_doubleword): New.
167 (*zext<mode>_doubleword): New.
168 (*zextsi_doubleword): New.
169 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
170 (*<code>di3_doubleword): New.
171 * config/i386/i386.opt (mstv): New.
172 * dbgcnt.def (stv_conversion): New.
174 2015-09-29 Tom de Vries <tom@codesourcery.com>
176 * tree-cfg.c (dump_function_to_file): Dump function attributes.
178 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
181 * config/sh/sh.c (sh_override_options_after_change): New.
182 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
183 (sh_option_override): Move align_loops, align_jumps and
184 align_functions handling into sh_override_options_after_change.
186 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
188 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
189 (nvptx_record_offload_symbol): Record function execution geometry.
190 * config/nvptx/mkoffload.c (process): Include launch geometry in
192 * omp-low.c (oacc_launch_pack): New.
193 (replace_oacc_fn_attrib): New.
194 (set_oacc_fn_attrib): New.
195 (get_oacc_fn_attrib): New.
196 (expand_omp_target): Create keyed varargs for GOACC_parallel call
198 * omp-low.h (get_oacc_fn_attrib): Declare.
199 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
200 (DEF_FUNCTION_TYPE_VAR_11): Delete.
201 * tree.h (OMP_CLAUSE_EXPR): New.
202 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
204 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
205 Sebastian Pop <s.pop@samsung.com>
207 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
209 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
210 Sebastian Pop <s.pop@samsung.com>
212 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
213 * graphite-scop-detection.c (struct sese_l): New type.
214 (get_entry_bb): API for getting entry bb of SESE.
215 (get_exit_bb): API for getting exit bb of SESE.
216 (class debug_printer): New type. Simple printer in debug mode.
217 (trivially_empty_bb_p): New. Return true when BB is empty or
218 contains only debug instructions.
219 (graphite_can_represent_expr): Call scalar_evoution_in_region
220 instead of analyze_scalar_evolution. Pass in scop instead of only
222 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
224 (stmt_simple_for_scop_p): Same.
225 (harmful_stmt_in_bb): Same.
226 (graphite_can_represent_loop): Deleted.
227 (struct scopdet_info): Deleted.
228 (scopdet_basic_block_info): Deleted.
229 (build_scops_1): Deleted.
230 (bb_in_sd_region): Deleted.
231 (find_single_entry_edge): Deleted.
232 (find_single_exit_edge): Deleted.
233 (create_single_entry_edge): Deleted.
234 (sd_region_without_exit): Deleted.
235 (create_single_exit_edge): Deleted.
236 (unmark_exit_edges): Deleted.
237 (mark_exit_edges): Deleted.
238 (create_sese_edges): Deleted.
239 (build_graphite_scops): Deleted.
240 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
241 (build_scops): Use the new scop_builder to build scops.
242 (dot_all_scops_1): Use the new pretty printer. Print loop father
244 (loop_body_is_valid_scop): New. Return true if loop body is a
246 (class scop_builder): New. Builds SCoPs for polyhedral
248 (scop_builder): New constructor.
249 (static sese_l invalid_sese): sese_l with invalid edges.
250 (get_sese): Get an sese (from a loop) if possible, invalid_sese
252 (get_nearest_dom_with_single_entry): Get nearest dominator of a
253 basic_block with single entry. Return NULL if we get to the
254 beginning of a function.
255 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
256 a basic_block with single exit. Return NULL if we get to the
257 beginning of a function.
258 (print_sese): Pretty-print SESE.
259 (merge_sese): Merge two SESEs if possible and return the new SESE.
260 (build_scop_depth): Start building the SCoP within a loop nest.
261 (build_scop_breadth): Start building the SCoP at a single loop
262 depth. Merge adjacent SESEs if valid.
263 (can_represent_loop_1): Returns true if Graphite can represent
264 loop inside SCoP. Helper for can_represent_loop.
265 (can_represent_loop): Returns true if Graphite can represent LOOP
266 and all its nested loops in SCoP.
267 (loop_is_valid_scop): Returns true if LOOP and all its nests
268 constitute a valid SCoP.
269 (region_has_one_loop): Returns true of a region has only one loop.
270 (add_scop): Add SCoP to the list of valid scops. Removes an
271 already existing scop if it intersects with or subsumed by this one.
272 (harmful_stmt_in_region): Returns true if SCoP has any statment
273 which cannot be represented by Graphite.
274 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
275 (remove_subscops): Remove any SCoP from the list of already found
276 SCoPs, if subsumed by S1.
277 (intersects): Return true if region bounded by SCoPs S1 and S2
279 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
280 * graphite.c (print_graphite_scop_statistics):
281 (print_graphite_statistics): Print SCoP info while debugging.
282 (graphite_initialize): Early exit in case number of loops in a
283 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
284 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
286 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
287 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
288 (recompute_all_dominators): Recalculate POST_DOMINATORS.
289 * tree-cfg.c (print_loops): Print the function name while printing
292 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
293 Sebastian Pop <s.pop@samsung.com>
295 PR tree-optimization/67700
296 * graphite-sese-to-poly.c (parameter_index_in_region): Call
297 invariant_in_sese_p_rec.
298 (extract_affine): Same.
299 (rewrite_cross_bb_scalar_deps): Call update_ssa.
300 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
301 * sese.h (invariant_in_sese_p_rec): Declare.
303 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
305 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
307 2015-09-28 Jiong Wang <jiong.wang@arm.com>
310 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
311 Jiong Wang <jiong.wang@arm.com>
313 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
314 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
315 (REG_CLASS_NAMES): Likewise.
316 (REG_CLASS_CONTENTS): Likewise.
317 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
318 (aarch64_register_move_cost): Likewise.
319 (aarch64_load_symref_appropriately): Invoke the new added pattern if
321 * config/aarch64/constraints.md (Uc0): New constraint.
323 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
325 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
327 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
329 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
330 SECTION_EXCLUDE in XO mapping class.
332 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
335 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
336 and handle ne and eq codes.
337 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
338 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
339 CONST_INT_P. Use reverse_condition.
340 (sh_split_treg_set_expr): Likewise.
342 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
344 * config/arm/types.md (type): Add rotate_imm.
345 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
347 (*rorsi3_insn_uxtw): Likewise.
348 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
349 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
350 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
352 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
354 PR rtl-optimization/67481
355 * ifcvt.c (contains_ccmode_rtx_p): New function.
356 (insn_valid_noce_process_p): Use it.
358 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
360 PR rtl-optimization/67456
361 PR rtl-optimization/67464
362 PR rtl-optimization/67465
363 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
364 move in the mode of x. Handle combination of complex and simple
365 block pairs as well as the case when one is empty.
367 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
369 * doc/gimple.texi: Update references to gimple_statement_base.
370 * gdbhooks.py: Likewise.
371 * gimple.h: Likewise.
373 2015-09-28 Daniel Cederman <cederman@gaisler.com>
375 * config/sparc/driver-sparc.c: map LEON to leon3
377 2015-09-28 Daniel Cederman <cederman@gaisler.com>
379 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
380 and make it inverse to change default
381 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
383 * doc/invoke.texi: Document change of default
385 2015-09-28 Daniel Cederman <cederman@gaisler.com>
387 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
388 true on %f0 for a target without FPU.
389 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
391 (untyped_return): Do not load %f0 for a target without FPU.
393 2015-09-28 Andrew Pinski <apinski@cavium.com>
395 * config/aarch64/aarch64.md (prefetch):
396 Change the predicate of operand 0 to register_operand.
398 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
400 * config/i386/predicates.md (register_sse4nonimm_operand): New
402 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
403 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
404 Use register_sse4nonimm_operand as operand 0 predicate.
405 (*vec_extractv8hi_sse2): Remove insn pattern.
406 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
407 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
409 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
410 Kaz Kojima <kkojima@gcc.gnu.org>
413 * config/sh/sh-protos.h (sh_lra_p): Declare.
414 * config/sh/sh.c (sh_lra_p): Make non-static.
415 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
416 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
417 Expand into addsi3_scr if operands[2] if needed.
418 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
419 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
420 (addsi3_scr, *addsi3): New insn_and_split patterns.
422 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
424 PR rtl-optimization/64164
425 PR tree-optimization/67312
429 * cfgexpand.c (parm_in_stack_slot_p): Remove.
430 (ssa_default_def_partition): Remove.
431 (get_rtl_for_parm_ssa_default_def): Remove.
432 (set_rtl): Check that RTL assignments match expectations.
433 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
434 default def location for params and results. Record SSA names
435 or types in REG and MEM attrs, respectively.
437 (expand_one_ssa_partition): Drop logic that assigned MEMs with
438 unassigned addresses.
439 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
440 deferred stack alloc vars.
441 (expand_used_vars): Skip partitions holding parm default defs.
442 Move adjust_one_expanded_partition_var loop...
443 (pass_expand::execute): ... here. Drop redundant assert.
444 Adjust comments before the final loop over all ssa names.
445 Require assigned rtl of parms and results to match exactly.
446 Reset its attributes to match them, not any other variables in
448 (expand_debug_expr): Use entry value for PARM's default defs
449 only iff they have zero nondebug uses.
450 * cfgexpand.h (parm_in_stack_slot_p): Remove.
451 (get_rtl_for_parm_ssa_default_def): Remove.
452 (set_parm_rtl): Declare.
453 * doc/invoke.texi: Improve wording.
454 * explow.c (promote_decl_mode): Fix promote_function_mode for
455 result decls not by reference.
456 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
457 bypass TYPE_MODE to get the actual vector mode.
458 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
459 2015-08-19's changes as follows. Drop include of
460 basic-block.h and df.h.
461 (rtl_for_parm): Remove.
462 (maybe_reset_rtl_for_parm): Remove.
463 (parm_in_unassigned_mem_p): Remove.
464 (use_register_for_decl): Add logic for RESULT_DECLs matching
465 assign_parms' behavior.
466 (split_complex_args): Revert.
467 (assign_parms_augmented_arg_list): Revert. Add comment
468 referencing the logic above.
469 (assign_parm_adjust_stack_rtl): Revert.
470 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
471 of SET_DECL_RTL. Set up a REG if the parm demands so.
472 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
473 calls into a single set_parm_rtl. Set up a temporary RTL
474 temporarily for expand_assignment.
475 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
476 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
477 (assign_bounds): Revert.
478 (assign_parms): Revert. Use set_parm_rtl.
479 (allocate_struct_function): Relayout result and parms of
480 non-abstruct functions.
481 (expand_function_start): Revert. Use set_parm_rtl. If the
482 result is not a hard reg, create a pseudo from the promoted
483 mode of the default def. Promote static chain mode.
484 * tree-outof-ssa.c (remove_ssa_form): Drop unused
485 partition_has_default_def. Set up
486 partitions_for_parm_default_defs.
487 (finish_out_of_ssa): Remove partition_has_default_def.
488 Release partitions_for_parm_default_defs.
489 * tree-outof-ssa.h (struct ssaexpand): Remove
490 partition_has_default_def. Add
491 partitions_for_parm_default_defs.
492 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
494 (build_ssa_conflict_graph): Fix conflict-detection of default
495 defs of even unused default defs of params and results.
496 (for_all_parms): New.
497 (create_default_def): New.
498 (register_default_def): New.
499 (coalesce_with_default): New.
500 (create_outofssa_var_map): Create default defs for all parms
501 and results, and register their partitions. Add GIMPLE_RETURN
502 operands as coalesce candidates with results. Add default
503 defs of each parm or result as coalesce candidates with its
504 other defs. Mark each result def, and each default def of
505 parms, as used_in_copy.
506 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
507 with the ssa names, even anonymous ones. Drop
508 parm_in_stack_slot_p calls. Require same signedness and
510 (coalesce_ssa_name): Add coalesce candidates for all defs of
511 each parm and result, even unused ones.
512 (parm_default_def_partition_arg): New type.
513 (set_parm_default_def_partition): New.
514 (get_parm_default_def_partitions): New.
515 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
516 * tree-ssa-live.c (partition_view_init): Regard unused defs of
517 parms and results as used.
518 (verify_live_on_entry): Don't error out just because they're
521 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
523 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
524 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
525 (output_fde): Don't output length for debug_frame on AIX.
526 (output_call_frame_info): Don't output length for debug_frame on AIX.
527 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
528 HAVE_XCOFF_DWARF_EXTRAS.
529 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
530 HAVE_XCOFF_DWARF_EXTRAS.
531 (output_compilation_unit_header): Don't output length on AIX.
532 (output_pubnames): Don't output length on AIX.
533 (output_aranges): Delete argument. Compute length locally. Don't
534 output length on AIX.
535 (output_line_info): Don't output length on AIX.
536 (dwarf2out_finish): Don't compute aranges_length.
537 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
538 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
539 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
540 symbol decoration for AIX.
541 (rs6000_xcoff_debug_unwind_info): New.
542 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
544 (rs6000_xcoff_declare_function_name): Emit different
545 .function pseudo-op when DWARF2_DEBUG. Don't call
546 xcoffout_declare_function for DWARF2_DEBUG.
547 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
549 * config/rs6000/aix71.h: New.
550 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
552 * configure: Regenerate.
553 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
556 2015-09-26 Jeff Law <law@redhat.com>
558 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
560 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
563 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
566 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
569 * config/cris/cris.md (asrandb): Fix left shift undefined
573 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
576 * lra-constarints.c (match_reload): Check presence of the input pseudo
577 in the output operand.
579 2015-09-25 Tobias Burnus <burnus@net-b.de>
581 * doc/invoke.texi (-fsanitize): Minor wording tweak.
583 2015-09-25 Tobias Burnus <burnus@net-b.de>
585 * doc/invoke.texi (-fsanitize): Update URLs.
587 2015-09-25 Teresa Johnson <tejohnson@google.com>
589 * opts.c (finish_options): Unset -freorder-blocks-and-partition
590 if not using profile.
592 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
594 PR pretty-print/67567
595 * pretty-print.c (pp_string): Add gcc_checking_assert.
596 * pretty-print.h (output_buffer_append_r): Likewise.
598 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
601 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
602 addr2 individually. Don't emit logical or insn if one is known to
603 be aligned approriately.
604 (sh_expand_cmpnstr): Likewise.
606 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
608 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
609 __builtin_aarch64_fp[sc]r arguments into a register.
611 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
613 * config.gcc (x86_archs): Replace lakemount with lakemont.
614 (with_cpu): Likewise.
615 (with_arch): Likewise.
616 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
617 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
618 __tune_lakemount__ with __tune_lakemont__.
619 * config/i386/i386.c (lakemount_cost): Renamed to ...
620 (lakemont_cost): This.
621 (m_LAKEMOUNT): Renamed to ...
623 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
624 (processor_target_table): Replace "lakemount" with "lakemont".
625 (processor_alias_table): Likewise.
626 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
628 (ix86_adjust_cost): Likewise.
629 (ia32_multipass_dfa_lookahead): Likewise.
630 * config/i386/i386.h (processor_type): Likewise.
631 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
632 * doc/invoke.texi: Replace lakemount with lakemont. Replace
633 Lakemount with Lakemont.
635 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
637 * config.gcc (x86_archs): Replace iamcu with lakemount.
638 (with_cpu): Likewise.
639 (with_arch): Likewise.
640 * doc/invoke.texi: Likewise.
641 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
642 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
643 __tune_iamcu__ with __tune_lakemount__.
644 * config/i386/i386.c (iamcu_cost): Renamed to ...
645 (lakemount_cost): This.
646 (m_IAMCU): Renamed to ...
648 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
649 (processor_target_table): Replace "iamcu" with "lakemount".
650 (processor_alias_table): Likewise.
651 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
653 (ix86_adjust_cost): Likewise.
654 (ia32_multipass_dfa_lookahead): Likewise.
655 * config/i386/i386.h (processor_type): Likewise.
656 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
658 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
660 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
661 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
663 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
664 (pa_expand_compare_and_swap_loop): New.
665 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
666 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
667 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
668 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
669 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
672 2015-09-24 Michael Collison <michael.collison@linaro.org>
675 * read-md.c (read_name): Allow mode iterators inside angle
676 brackets in rtl expressions.
678 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
681 * ira-color.c (update_allocno_cost): Add parameter.
682 (update_costs_from_allocno): Decrease conflict cost. Pass the new
685 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
688 * opts-common.c (prune_options): Discard all -fdiagnostics-color
689 but the last one, which is moved to the front to be processed
691 * opts.c (enable_warning_as_error): Reject options that do not
694 2015-09-24 Jiong Wang <jiong.wang@arm.com>
696 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
698 2015-09-24 Jiong Wang <jiong.wang@arm.com>
700 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
701 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
702 (aarch64_cannot_force_const_mem): Likewise.
703 (aarch64_classify_address): Likewise.
704 (aarch64_classify_symbolic_expression): Likewise.
705 (aarch64_print_operand): Likewise.
706 (aarch64_classify_symbol): Likewise.
707 (aarch64_mov_operand_p): Likewise.
708 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
709 (aarch64_mov_operand): Likewise.
711 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
713 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
714 for info->spe_gp_size.
716 2015-09-24 Richard Biener <rguenther@suse.de>
719 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
722 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
724 * tree-object-size.c (plus_stmt_object_size)
725 (cond_expr_object_size): Change the formal parameters from gimple
727 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
728 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
729 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
731 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
733 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
734 Check for ld -type pie on Solaris 11.x and 12.
735 * configure: Regenerate.
736 * config.in: Regenerate.
738 * gcc.c (LD_PIE_SPEC): Allow redefinition.
740 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
741 (STARTFILE_SPEC): Use it.
742 (ENDFILE_CRTEND_SPEC): Define.
743 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
744 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
745 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
746 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
747 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
748 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
749 (ENDFILE_ARCH_SPEC): Define.
750 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
752 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
754 * configure.ac (gcc_cv_solaris_crts): New test.
755 * configure. Regenerate.
756 * config.in: Regenerate.
757 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
758 HAVE_SOLARIS_CRTS variant.
760 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
762 * tree-inline.h (count_insns_seq): Delete prototype.
763 (estimate_num_insns_seq): Define prototype.
764 * tree-inline.c (count_insns_seq): Delete.
765 (estimate_num_insns_seq): Remove static qualifier.
766 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
767 with estimate_num_insns_seq.
769 2015-09-24 Richard Biener <rguenther@suse.de>
771 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
773 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
774 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
776 (ao_ref_init_from_vn_reference): Record clique and base in the
778 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
780 2015-09-24 Richard Biener <rguenther@suse.de>
782 PR tree-optimization/48885
783 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
784 as not including any restrict tags from other pointers.
786 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
788 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
789 character when appending to offload_targets.
791 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
792 offload targets by commas, not colons.
793 * config.in: Regenerate.
794 * configure: Likewise.
795 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
796 instead of setting up the default offload targets here...
797 (process_command): ..., do it here.
799 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
800 targets are separated by commas.
801 * config.h.in: Regenerate.
803 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
804 Nathan Sidwell <nathan@codesourcery.com>
806 * omp-low.h (omp_reduction_init_op): Declare.
807 * omp-low.c (omp_reduction_init_op): New, broken out of ...
808 (omp_reduction_init): ... here. Call it.
809 * tree-parloops.c (initialize_reductions): Use
810 omp_reduction_init_op.
812 2015-09-23 Richard Biener <rguenther@suse.de>
815 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
816 undefined overflow unless they will cancel out.
818 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
820 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
823 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
826 * opts.h (write_langs): Declare.
827 * opts-global.c (write_langs): Make it extern.
829 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
832 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
833 overlapping regs when matching the pattern.
835 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
837 * config/aarch64/aarch64-simd.md
838 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
839 (aarch64_float_truncate_hi_v4sf_le): New.
840 (aarch64_float_truncate_hi_v4sf_be): Likewise.
842 2015-09-23 Richard Biener <rguenther@suse.de>
844 * tree-ssa-structalias.c (intra_create_variable_infos): Build
845 representatives for all restrict qualified pointer destinations.
847 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
849 * config/i386/i386.md (define_code_attr mshift): New.
850 (define_mode_iterator SWI1248_AVX512BW): Rename ...
851 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
853 (define_insn "*k<logic><mode>"): Use new iterator name.
854 (define_insn "*<mshift><mode>3"): New.
856 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
859 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
860 mark the block as accessible.
862 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
864 * function.c (thread_prologue_and_epilogue_insns): Delete
865 orig_entry_edge argument to try_shrink_wrapping.
866 * shrink-wrap.c (can_get_prologue): New function.
867 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
868 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
869 can_get_prologue where needed. Remove code that finds a single
870 edge for the prologue. Remove code that tests if any reg clobbered
871 by the prologue is live on the prologue edge. Remove code that finds
872 the new prologue edge after duplicating blocks. Make a new prologue
874 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
876 2015-09-22 Jeff Law <law@redhat.com>
878 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
881 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
883 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
884 -Wtemplates, -Wnamespaces): Document.
886 2015-09-22 Tom de Vries <tom@codesourcery.com>
888 PR tree-optimization/67671
889 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
890 pointer references as restrict.
892 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
894 * config/nios2/nios2.c (nios2_legitimize_address): When handling
895 'reg + reloc' cases, allow first operand to be non-REG, and use
896 force_reg() to enforce address pattern.
898 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
901 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
902 (define_mode_iterator VI12_AVX_AVX512F): New.
903 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
904 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
905 (define_insn "*<code><mode>3"): ... Into new pattern using
906 VI12_AVX_AVX512F iterators without masking.
908 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
910 * config.gcc: Support "skylake-avx512".
911 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
912 PROCESSOR_SKYLAKE_AVX512.
913 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
914 (processor_target_table): Add "skylake-avx512".
915 (PTA_SKYLAKE_AVX512): Define.
916 (ix86_option_override_internal): Add "skylake_avx512".
917 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
918 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
919 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
920 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
921 * doc/invoke.texi (skylake-avx512): New.
923 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
925 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
927 (define_insn "kunpcksi"): Ditto.
928 (define_insn "kunpckdi"): Ditto.
930 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
932 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
933 iterator instead of fixed modes.
935 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
937 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
939 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
940 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
941 out_result. Update to support update-fetch operations.
942 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
943 Adjust for change to aarch64_gen_atomic_ldop.
944 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
945 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
946 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
947 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
948 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
950 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
952 * config/aarch64/aarch64-protos.h
953 (aarch64_atomic_ldop_supported_p): Declare.
954 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
955 (enum aarch64_atomic_load_op_code): New.
956 (aarch64_emit_atomic_load_op): New.
957 (aarch64_gen_atomic_ldop): Update to support load-operate
959 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
961 (aarch64_atomic_<atomic_optab><mode>): New.
962 (aarch64_atomic_<atomic_optab><mode>_lse): New.
963 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
964 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
965 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
967 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
969 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
970 (UNSPECV_ATOMIC_LDOP_OR): New.
971 (UNSPECV_ATOMIC_LDOP_BIC): New.
972 (UNSPECV_ATOMIC_LDOP_XOR): New.
973 (UNSPECV_ATOMIC_LDOP_PLUS): New.
976 (aarch64_atomic_load<atomic_ldop><mode>): New.
978 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
980 * config/aarch64/aarch64.md
981 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
984 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
986 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
988 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
989 (aarch64_gen_atomic_ldop): New.
990 (aarch64_split_atomic_op): Fix whitespace and add a comment.
991 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
992 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
993 (atomic_exchange<mode>): Replace with an expander.
994 (aarch64_atomic_exchange<mode>): New.
995 (aarch64_atomic_exchange<mode>_lse): New.
996 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
997 (aarch64_atomic_swp<mode>): New.
999 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1001 * tree-inline.c (expand_call_inline): Use inform for extra note.
1002 Do not give a note with UNKNOWN_LOCATION.
1003 Replace input_location with gimple_location (stmt).
1004 Use true/false instead of TRUE/FALSE.
1006 2015-09-22 Tom de Vries <tom@codesourcery.com>
1008 PR tree-optimization/67666
1009 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1010 with single field non-conservative.
1012 2015-09-21 David S. Miller <davem@davemloft.net>
1016 2015-09-11 David S. Miller <davem@davemloft.net>
1018 * config/sparc/constraints.md: Make "U" constraint a real register
1020 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1021 (D_MODES, DF_MODES): Add missing cast.
1022 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1023 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1024 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1026 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1027 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1028 provide these insn when flag_pic.
1030 2015-09-17 David S. Miller <davem@davemloft.net>
1032 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1034 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1036 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1037 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1038 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1039 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1040 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1041 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1042 provide when flag_pic.
1044 2015-09-21 Jeff Law <law@redhat.com>
1046 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1049 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1051 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1053 2015-09-21 Richard Biener <rguenther@suse.de>
1055 * passes.c (rest_of_decl_compilation): Do not call
1056 dwarf2out_early_global_decl for aliases.
1058 2015-09-21 Richard Biener <rguenther@suse.de>
1061 * dwarf2out.c (add_location_or_const_value_attribute): Remove
1062 attribute parameter. Early exit if either DW_AT_const_value
1063 or DW_AT_location are present already.
1064 (gen_variable_die): Adjust caller.
1065 (dwarf2out_late_global_decl): Likewise.
1067 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1070 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1071 sh_peephole_emit_move_insn): Add new functions.
1072 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1073 sh_peephole_emit_move_insn): Declere them.
1074 * config/sh/sh.md: Use them in various peephole2 patterns.
1076 2015-09-21 Richard Biener <rguenther@suse.de>
1079 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1080 address with -fno-delete-null-pointer-checks.
1082 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1084 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1085 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1086 (reduc_uplus_v16qi): Remove.
1088 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1089 (reduc_<VEC_reduc_name>_v2df): Remove.
1090 (reduc_<VEC_reduc_name>_v4sf): Remove.
1091 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1093 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1094 gen_ function by removing * prefix.
1095 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1097 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1100 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1101 Print i_bound without converting it to a tree.
1103 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1105 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1106 operands[4] operands[5] swap with std::swap, removed tmp variable.
1107 (arm_evpc_neon_vzip): Replaced in0/in1 and
1108 out0/out1 swaps with std::swap, removed x variable.
1109 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1110 out0/out1 swaos with std::swap, removed x variable.
1111 (arm_expand_vec_perm_const_1): Replaced
1112 d->op0/d->op1 swap with std::swap, removed x variable.
1113 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1114 out0/out1 swaps with std::swap, removed x variable.
1116 2015-09-21 Jonathan Yong <10walls@gmail.com>
1118 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1119 sysroot/usr/lib/32api for additional win32 libraries,
1120 fixes failing Cygwin bootstrapping.
1122 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1124 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1126 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1129 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1130 (*mov_t_msb_neg): Rewrite negc pattern.
1132 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1134 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1135 immediate generation code.
1137 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1139 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1140 redundant immediate generation code.
1142 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1144 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1145 (AARCH64_NUM_BITMASKS): Remove.
1146 (aarch64_bitmasks_cmp): Remove.
1147 (aarch64_build_bitmask_table): Remove.
1149 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1151 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1152 slow immediate matching loops with a faster algorithm.
1154 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1156 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1159 2015-09-20 Jeff Law <law@redhat.com>
1161 PR tree-optimization/47679
1162 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1163 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1164 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1165 (thread_through_normal_block): Use record_temporary_equivalences.
1167 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1169 * coretypes.h (gimple): Change typedef to be a forward declaration.
1170 * gimple.h (gimple_statement_base): rename to gimple.
1171 * (all functions and types using gimple): Adjust.
1174 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1175 David Edelsohn <dje.gcc@gmail.com>
1177 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1178 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1179 (EH_FRAME_THROUGH_COLLECT2): Define.
1180 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1181 (ASM_OUTPUT_DWARF_PCREL): Define.
1182 (ASM_OUTPUT_DWARF_DATAREL): Define.
1184 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1186 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1189 2015-09-18 Jeff Law <law@redhat.com>
1191 PR tree-optimization/47679
1192 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1194 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1195 object. Update constructor.
1196 (pass_dominator::execute): Corresponding chagnes to declaration
1197 and initialization of avail_exprs_stack. Update constructor call
1198 for dom_opt_dom_walker object.
1199 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1200 it down to children as needed.
1201 (record_equivalences_from_incoming_edge): Likewise.
1202 (eliminate_redundant_computations): Likewise.
1203 (record_equivalences_from_stmt): Likewise.
1204 (simplify_stmt_for_jump_threading): Likewise.
1205 (record_temporary_equivalences): Likewise.
1206 (optimize_stmt): Likewise.
1207 (dom_opt_dom_walker::thread_across_edge): Update access to
1208 avail_exprs_stack object and pass it to children as needed.
1209 (dom_opt_dom_walker::before_dom_children): Similarly.
1210 (dom_opt_dom_walker::after_dom_children): Similarly.
1211 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1212 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1213 Add avail_expr_stack argument. Pass it to children as needed.
1214 (dummy_simplify): Likewise.
1215 (simplify_control_stmt_condition): Likewise.
1216 (thread_around_empty_blocks): Likewise.
1217 (thread_through_normal_block): Likewise.
1218 (thread_across_edge): Likewise.
1219 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1220 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1222 PR tree-optimization/47679
1223 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1225 (dom_opt_dom_walker): New private member holding the const_and_copies
1226 object. Update constructor.
1227 (pass_dominator::execute): Corresponding changes to declaration
1228 and initialization of const_and_copies. Update constructor call
1229 for the dom_opt_dom_walker object.
1230 (record_temporary_equivalences): Accept const_and_copies argument
1231 pass it down to children as needed.
1232 (record_equality): Likewise.
1233 (record_equivalences_from_incoming_edge): Likewise.
1234 (cprop_into_successor_phis, optimize_stmt): Likewise.
1235 (eliminate_redundant_computations): Likewise.
1236 (dom_opt_dom_walker::thread_across_edge): Update access to
1237 const_and_copies object and pass it to children as needed.
1238 (dom_opt_dom_walker::before_dom_children): Similarly.
1239 (dom_opt_dom_walker::after_dom_children): Similarly.
1241 PR tree-optimization/47679
1242 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1243 it into the avail_exprs_stack class.
1244 (pass_dominator::execute): Corresponding changes to declaration
1245 and initialization of avail_exprs. Pass avail_exprs to
1246 dump_dominator_optimization_stats.
1247 (record_cond): Extract avail_exprs from avail_exprs_stack.
1248 (lookup_avail_expr): Similarly.
1249 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1251 (dump_dominator_optimization_stats): Make static and prototype.
1252 Add argument for the hash table to dump.
1253 (debug_dominator_optimization_stats): Remove.
1254 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1256 (debug_dominator_optimization_stats): Similarly.
1257 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1258 "void" in prototype for pop_to_marker method. Add accessor method
1259 for the underlying avail_exprs table.
1261 * tree-ssa-threadedge.c: Remove trailing whitespace.
1263 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1265 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1267 (pa_ldil_cint_p): Likewise.
1268 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1269 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1271 * config/pa/pa.md: Likewise.
1273 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1275 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1276 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1277 (diagnostic_show_locus): Likewise.
1278 (diagnostic_print_caret_line): Likewise.
1279 * diagnostic-show-locus.c: New file.
1281 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1283 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1284 "back" parameter. Declare label in #if block.
1286 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1289 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1290 the address to a register.
1292 2015-09-18 Jeff Law <law@redhat.com>
1294 PR tree-optimization/47679
1295 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1296 * tree-ssa-dom.c: Remove unnecessary header includes.
1297 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1298 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1299 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1300 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1301 (pass_phi_only_cprop::execute): Likewise.
1302 (make_pass_phi_only_cprop): Likewise.
1303 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1304 uses of file scoped statics by passing the required objects
1305 as parameters wherever needed.
1307 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1308 David Edelsohn <dje.gcc@gmail.com>
1310 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1311 EH_FRAME_THROUGH_COLLECT2.
1312 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1314 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1315 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1316 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1317 * except.c (switch_to_exception_section): Use a read-only section
1318 even if EH_FRAME_SECTION_NAME is undefined.
1319 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1320 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1321 (scan_prog_file): Don't export __dso_handle nor
1323 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1324 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1325 (ASM_OUTPUT_DWARF_PCREL): Define.
1326 (ASM_OUTPUT_DWARF_DATAREL): Define.
1327 (EH_FRAME_THROUGH_COLLECT2): Define.
1328 (EH_FRAME_IN_DATA_SECTION): Delete.
1329 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1330 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1332 (rs6000_asm_output_dwarf_datarel): Declare.
1333 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1334 (rs6000_aix_asm_output_dwarf_datarel): New.
1335 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1336 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1337 (EH_FRAME_THROUGH_COLLECT2): Define.
1338 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1339 (EH_FRAME_THROUGH_COLLECT2): Define.
1340 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1341 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1342 (EH_FRAME_THROUGH_COLLECT2): New.
1343 (ASM_OUTPUT_DWARF_DATAREL): New.
1344 * doc/tm.texi: Regenerate.
1346 2015-09-18 Richard Biener <rguenther@suse.de>
1348 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1349 we're in early phase.
1350 (schedule_generic_params_dies_gen): Likewise.
1351 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1352 work as possible, retaining unhandled cases.
1353 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1354 clear out generic_type_instances at the end.
1355 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1356 (dwarf2out_early_finish): ... here. Do most of
1357 gen_remaining_tmpl_value_param_die_attribute here.
1359 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1361 PR tree-optimization/67283
1362 * tree-sra.c (type_consists_of_records_p): Rename to...
1363 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1364 (completely_scalarize_record): Rename to...
1365 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1366 (scalarize_elem): New.
1367 (analyze_all_variable_accesses): Follow renamings.
1369 2015-09-18 Richard Biener <rguenther@suse.de>
1371 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1374 2015-09-18 Richard Biener <rguenther@suse.de>
1376 PR tree-optimization/66142
1377 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1378 treat MEM[&x] and x the same.
1379 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1380 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1381 when we simplified sth.
1382 (vn_reference_maybe_forwprop_address): Likewise.
1383 (valueize_refs_1): When we simplified through
1384 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1385 set valueized_anything to true.
1386 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1387 one ref kills the other instead of just a offset-based test.
1388 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1389 for the operand_equal_p test to compare bases and also compare
1392 2015-09-17 Christian Bruel <christian.bruel@st.com>
1394 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1396 2015-09-17 Richard Henderson <rth@redhat.com>
1399 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1400 pointers that encode the alignment of the object.
1402 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1404 PR rtl-optimization/66790
1405 * df-problems.c (LIVE): Amend documentation.
1407 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1409 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1411 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1412 * genopinit.c (main): Add an include guard to insn-opinit.h.
1413 Protect the rtx_code parts with NUM_RTX_CODE.
1414 * optabs.h: Split parts out to...
1415 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1416 * optabs.c: Split parts out to...
1417 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1418 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1419 * fold-const.c: Likewise.
1420 * target-globals.c: Likewise.
1421 * tree-if-conv.c: Likewise.
1422 * tree-ssa-forwprop.c: Likewise.
1423 * tree-ssa-loop-prefetch.c: Likewise.
1424 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1425 Remove unncessary include files.
1426 * tree-ssa-phiopt.c: Likewise.
1427 * tree-ssa-reassoc.c: Likewise.
1428 * tree-switch-conversion.c: Likewise.
1429 * tree-vect-data-refs.c: Likewise.
1430 * tree-vect-generic.c: Likewise.
1431 * tree-vect-loop.c: Likewise.
1432 * tree-vect-patterns.c: Likewise.
1433 * tree-vect-slp.c: Likewise.
1434 * tree-vect-stmts.c: Likewise.
1435 * tree-vrp.c: Likewise.
1436 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1437 rather than optabs.h.
1438 * expr.c: Include optabs-tree.h.
1439 * function.c: Likewise.
1441 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1444 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1445 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1446 * config/arm/arm.c: Include common/common-target.h.
1447 (use_return_insn): Return 0 if the static chain register was saved
1448 above a non-APCS frame.
1449 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1450 (struct scratch_reg): New.
1451 (get_scratch_register_on_entry): New function.
1452 (release_scratch_register_on_entry): Likewise.
1453 (arm_emit_probe_stack_range): Likewise.
1454 (output_probe_stack_range): Likewise.
1455 (arm_expand_prologue): Factor out code dealing with the IP register
1456 for nested function and adjust it for stack checking.
1457 Invoke arm_emit_probe_stack_range if static builtin stack checking
1459 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1461 (arm_expand_epilogue): Add the saved static chain register, if any, to
1462 the amount of pre-pushed registers to pop.
1463 (arm_frame_pointer_required): Return true if static stack checking is
1464 enabled and we want to catch the exception with the EABI unwinder.
1465 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1466 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1467 * config/arm/arm.md (probe_stack): New insn.
1468 (probe_stack_range): Likewise.
1470 2015-09-17 Richard Biener <rguenther@suse.de>
1472 * genmatch.c (parser::parse_expr): Improve error message
1473 for mis-placed flags.
1475 2015-09-17 Richard Biener <rguenther@suse.de>
1477 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1478 debug hook when we created a varpool node.
1479 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1480 dwarf2out_early_global_decl, when not just add location or
1481 value attributes to existing DIEs.
1483 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1485 * config/aarch64/aarch64.md (copysigndf3): New.
1486 (copysignsf3): Likewise.
1488 2015-09-17 David S. Miller <davem@davemloft.net>
1490 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1491 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1492 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1493 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1494 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1495 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1496 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1497 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1498 provide when flag_pic.
1500 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1502 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1503 object_allocator change.
1505 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1507 PR tree-optimization/66388
1508 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1509 (dump_iv): Dump no_overflow information.
1510 (alloc_iv): Initialize new field for struct iv.
1511 (mark_bivs): Count number of no_overflow bivs.
1512 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1514 (idx_find_step): Call new functions above.
1515 (add_candidate_1, add_candidate): New paramter.
1516 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1517 (get_computation_aff): Simplify convertion of cand for BIV.
1518 (get_computation_cost_at): Step cand's base if necessary.
1520 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1522 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1524 (tree_simplify_using_condition): Ditto.
1525 (simplify_using_initial_conditions): Ditto.
1526 (loop_exits_before_overflow): Pass new argument to function
1527 simplify_using_initial_conditions. Remove case for type conversions
1529 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1531 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1532 in iv base using loop initial conditions.
1534 2015-09-16 Jeff Law <law@redhat.com>
1536 PR tree-optimization/47679
1537 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1538 (free_all_edge_infos): Use it.
1539 (allocate_edge_info): Free preexisting edge info data.
1540 (pass_dominator::execute): Set up initial edge info structures.
1541 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1543 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1544 If non-null, then push/pop markers appropriately.
1545 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1546 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1549 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1551 * config/ft32/ft32.c: Fix the memory address space predicate.
1553 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1556 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1557 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1559 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1561 * toplev.h (check_global_declaration): Remove declaration.
1562 * toplev.c (check_global_declaration): Move to ...
1563 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1564 (analyze_functions): Update call.
1566 2015-09-16 David S. Miller <davem@davemloft.net>
1568 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1569 lowpart of a SUBREG has offset zero.
1571 2015-09-16 Jeff Law <law@redhat.com>
1573 PR tree-optimization/47679
1574 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1575 tree-ssa-scopedtables.h.
1576 (struct hashable_expr, class expr_hash_elt): Likewise.
1577 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1578 Move associated methods into tree-ssa-scopedtables.c.
1579 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1580 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1581 (add_hashable_expr): Likewise.
1582 (record_cond): Delete element directly.
1583 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1584 private copy ctor and assignment operator methods.
1585 (expr_elt_hasher): Inline trivial methods.
1586 (initialize_expr_from_cond): Prototype.
1587 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1588 methods that were previously in tree-ssa-dom.c. Improve various
1591 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1593 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1595 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1598 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1601 2015-09-16 Richard Biener <rguenther@suse.de>
1604 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1605 location of possibly shared trees.
1607 2015-09-16 Richard Biener <rguenther@suse.de>
1610 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1612 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1614 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1615 offset and size computations instead of HOST_WIDE_INT.
1617 2015-09-16 Richard Biener <rguenther@suse.de>
1620 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1621 result before builting a tree via wide_int_to_tree.
1623 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1625 * Makefile.in: Add memory-block.cc
1626 (pool_allocator::initialize): Use fixed block size.
1627 (pool_allocator::release): Use memory_block_pool.
1628 (pool_allocator::allocate): Likewise.
1629 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1631 * cfg.c (initialize_original_copy_tables): Likewise.
1632 * cselib.c (elt_list_pool, elt_loc_list_pool,
1633 cselib_val_pool): Likewise.
1634 * df-problems.c (df_chain_alloc): Likewise.
1635 * df-scan.c (df_scan_alloc): Likewise.
1636 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1637 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1638 group_info_pool, deferred_change_pool): Likewise.
1639 * et-forest.c (et_nodes, et_occurrences): Likewise.
1640 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1641 ipcp_agg_lattice_pool): Likewise.
1642 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1643 * ipa-profile.c (histogram_pool): Likewise.
1644 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1645 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1646 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1647 * ira-color.c (update_cost_record_pool): Likewise.
1648 * lra-lives.c (lra_live_range_pool): Likewise.
1649 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1650 * memory-block.cc: New file.
1651 * memory-block.h: New file.
1652 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1653 * sched-deps.c (sched_deps_init): Likewise.
1654 * sel-sched-ir.c (sched_lists_pool): Likewise.
1655 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1656 * tree-sra.c (access_pool): Likewise.
1657 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1658 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1659 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1660 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1661 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1662 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1663 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1664 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1666 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1668 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1670 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1673 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1675 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1676 to pass TLS call argument, according to current ABI.
1677 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1678 callx0 for TLS call, according to current ABI.
1680 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1682 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1683 on stack restore statements.
1684 (decide_copy_try_finally): Do not consider a stack restore statement as
1685 coming from sources.
1687 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1689 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1690 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1692 2015-09-15 Jeff Law <law@redhat.com>
1694 PR tree-optimization/47679
1695 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1696 methods and private members.
1697 (avail_exprs_stack): Similarly. Change type of global
1698 from a pair of expr_hash_elt_t to the new class.
1699 (expr_elt_hasher::hash): Corresponding changes.
1700 (expr_elt_hasher::equal): Similarly.
1701 (avail_expr_hash): Similarly.
1702 (pass_dominator::execute): Similarly.
1703 (dom_opt_dom_walker::thread_across_edge): Similarly.
1704 (record_cond): Similarly.
1705 (dom_opt_dom_walker::before_dom_children): Similarly.
1706 (dom_opt_dom_walker::after_dom_children): Similarly.
1707 (lookup_avail_expr): Likewise.
1708 (initialize_hash_element): Now a expr_hash_elt constructor.
1709 (initialize_hash_element_from_expr): Similarly.
1710 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1711 (free_expr_hash_elt): Call dtor for the element.
1712 (remove_local_expressions_from_table): Now the "pop_to_marker"
1713 method in the available_exprs_stack class.
1714 (avail_expr_stack::record_expr): Method factored out.
1715 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1717 (hashable_expr_equal_p): Fix formatting.
1719 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1721 * input.h (location_get_source_line): Drop "expanded_location"
1722 param in favor of a file and line number.
1723 * input.c (location_get_source_line): Likewise.
1724 (dump_location_info): Update for change in signature of
1725 location_get_source_line.
1726 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1728 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1730 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1731 Bump to 4KB for SJLJ exceptions.
1732 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1733 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1734 * doc/tm.texi: Regenerate.
1736 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1738 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1739 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1742 2015-09-15 Richard Biener <rguenther@suse.de>
1744 PR tree-optimization/67470
1745 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1746 structure for PHI hoisting by inserting a forwarder block
1749 2015-09-15 Christian Bruel <christian.bruel@st.com>
1751 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1752 (arm_option_print): New function.
1754 2015-09-15 Christian Bruel <christian.bruel@st.com>
1757 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1758 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1759 Remove flags parameter.
1760 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1761 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1762 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1763 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1764 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1765 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1766 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1767 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1769 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1771 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1773 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1774 AARCH64_VALID_SIMD_DREG_MODE.
1776 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1778 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1779 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1780 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1781 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1782 aarch64_ld4_lane<mode>): Combine together, making...
1783 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1784 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1785 aarch64_st4_lane<mode>): Combine together, making...
1786 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1787 * config/aarch64/iterators.md (nregs): Add comment.
1789 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1791 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1792 Change operand mode from <V_TWO_ELEM> to BLK.
1793 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1794 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1795 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1796 (aarch64_ld2_lane<mode>): Likewise.
1797 (aarch64_st2_lane<VQ:mode>): Likewise.
1798 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1800 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1802 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1803 Change operand mode from <V_FOUR_ELEM> to BLK.
1804 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1805 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1806 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1807 (aarch64_ld4_lane<mode>): Likewise.
1808 (aarch64_st4_lane<mode>): Likewise.
1809 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1811 2015-09-15 Richard Biener <rguenther@suse.de>
1814 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1815 transfer EH info from old to new stmt.
1816 (replace_call_with_value): Likewise.
1817 (replace_call_with_call_and_fold): Likewise.
1818 (gimple_fold_builtin_memory_op): Likewise.
1819 (gimple_fold_builtin_memset): Likewise.
1820 (gimple_fold_builtin_stpcpy): Likewise.
1821 (gimple_fold_call): Likewise.
1823 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1825 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1827 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1828 (aarch64_simd_intEI_type_node): Likewise.
1829 (aarch64_simd_builtin_std_type): Remove EImode case.
1830 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1831 * config/aarch64/aarch64-modes.def: Remove EImode.
1833 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1835 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1836 Change operand mode from <V_THREE_ELEM> to BLK.
1837 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1838 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1839 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1840 (aarch64_ld3_lane<mode>): Likewise.
1841 (aarch64_st3_lane<mode>): Likewise.
1842 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1844 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1846 * config/aarch64/aarch64-simd.md
1847 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1848 Change all TImode operands to BLKmode.
1849 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1850 Change all EImode operands to BLKmode.
1851 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1852 Change all OImode operands to BLKmode.
1854 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1855 and call set_mem_size.
1856 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1858 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1860 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1862 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1864 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1866 (vec_store_lanesci_lane<mode>): Rename to...
1867 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1869 (vec_store_lanesxi_lane<mode>): Rename to...
1870 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1872 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1873 aarch64_st4_lane<mode>): Follow renaming.
1875 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1877 * config/s390/s390.c (s390_const_operand_ok): Add missing
1880 2015-09-15 Richard Biener <rguenther@suse.de>
1883 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1885 * lto-streamer-out.c (clear_line_info): Likewise.
1887 2015-09-15 Richard Biener <rguenther@suse.de>
1889 * doc/match-and-simplify.texi: Fix wording.
1891 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1893 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1894 unnecessary type conversion in op1.
1896 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1898 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1899 (dup_block_and_redirect): Delete function.
1900 (can_dup_for_shrink_wrapping): New function.
1901 (fix_fake_fallthrough_edge): New function.
1902 (try_shrink_wrapping): Rewrite function.
1903 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1905 2015-09-14 Rich Felker <dalias@libc.org>
1907 * configure.ac: Change target pattern for sh TLS support
1908 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1909 * configure: Regenerate.
1911 2015-09-14 Jeff Law <law@redhat.com>
1913 PR tree-optimization/47679
1914 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1915 type rather than void *.
1917 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1920 * diagnostic.c (diagnostic_initialize): Do not set
1921 some_warnings_are_errors.
1922 (diagnostic_finish): Use DK_WERROR count instead.
1923 (diagnostic_report_diagnostic): Do not set
1924 some_warnings_are_errors.
1925 * diagnostic.h (struct diagnostic_context): Remove
1926 some_warnings_are_errors.
1928 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1930 * config/sparc/predicates.md (const_all_ones_operand): Use
1931 CONSTM1_RTX to simplify definition.
1933 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1936 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1939 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1941 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1942 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1943 OPT_fshow_column to handled saved option cases.
1944 (append_compiler_options): Do not skip the above added options.
1946 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1949 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1950 nopcrelative_literal_loads.
1951 (aarch64_classify_address): Likewise.
1952 (aarch64_constant_pool_reload_icode): Define.
1953 (aarch64_secondary_reload): Handle secondary reloads for
1955 (aarch64_override_options): Handle nopcrelative_literal_loads.
1956 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1957 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1959 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1960 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1961 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1963 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1965 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1968 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1969 sync_compare_and_swap_optab libcall to target_oval.
1971 2015-09-14 Marek Polacek <polacek@redhat.com>
1973 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1975 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1977 2015-09-11 Mark Wielaard <mjw@redhat.com>
1980 * toplev.c (check_global_declaration): Check and use
1981 warn_unused_const_variable.
1982 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1983 (-Wunused-variable): Remove non-constant. For C implies
1984 -Wunused-const-variable.
1985 (-Wunused-const-variable): New.
1987 2015-09-14 Richard Biener <rguenther@suse.de>
1989 * doc/match-and-simplify.texi: Update for changed syntax
1990 of inner ifs and the new switch expression.
1992 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1994 * config/i386/haswell.md: New file describing Haswell pipeline.
1995 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1996 haswell-like processors.
1997 (ix86_reassociation_width): Increase reassociation width for 64-bit
1998 Haswell processor family.
1999 * config/i386/i386.md: Introduce haswell cpu and include new md file.
2001 2015-09-14 Richard Biener <rguenther@suse.de>
2003 * doc/match-and-simplify.texi: Fixup some formatting issues
2004 and document the 's' flag.
2006 2015-09-13 Olivier Hainque <hainque@adacore.com>
2007 Eric Botcazou <ebotcazou@adacore.com>
2009 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2010 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
2011 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2012 (TARGET_CPU_gr5): Likewise.
2013 (TARGET_CPU_gr6): Likewise.
2014 (MULTILIB_DEFAULTS): Likewise.
2015 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2016 for mcpu=gr5 and mcpu=gr6.
2017 (MULTILIB_DIRNAMES): Adjust accordingly.
2019 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2021 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2022 (mem_ref_p): Likewise.
2023 (outermost_indep_loop): Adjust.
2024 (mem_ref_in_stmt): Likewise.
2025 (determine_max_movement): Likewise.
2026 (mem_ref_alloc): Likewise.
2027 (record_mem_ref_loc): Likewise.
2028 (set_ref_stored_in_loop): Likewise.
2029 (mark_ref_stored): Likewise.
2030 (gather_mem_refs_stmt): Likewise.
2031 (mem_refs_may_alias_p): Likewise.
2032 (for_all_locs_in_loop): Likewise.
2033 (struct rewrite_mem_ref_loc): Likewise.
2034 (rewrite_mem_refs): Likewise.
2035 (struct first_mem_ref_loc_1): Likewise.
2036 (first_mem_ref_loc): Likewise.
2037 (struct sm_set_flag_if_changed): Likewise.
2038 (execute_sm_if_changed_flag_set): Likewise.
2039 (execute_sm): Likewise.
2040 (hoist_memory_references):
2041 (struct ref_always_accessed): Likewise.
2042 (ref_always_accessed_p): Likewise.
2043 (refs_independent_p): Likewise.
2044 (record_dep_loop): Likewise.
2045 (ref_indep_loop_p_1): Likewise.
2046 (ref_indep_loop_p_2): Likewise.
2047 (ref_indep_loop_p): Likewise.
2048 (can_sm_ref_p): Likewise.
2049 (find_refs_for_sm): Likewise.
2050 (tree_ssa_lim_finalize): Likewise.
2052 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2054 * dwarf2out.c (dw_attr_ref): Remove typedef.
2055 (dw_line_info_ref): Likewise.
2056 (pubname_ref): Likewise.
2057 (dw_ranges_ref): Likewise.
2058 (dw_ranges_by_label_ref): Likewise.
2059 (comdat_type_node_ref): Likewise.
2061 (get_AT_low_pc): Likewise.
2062 (get_AT_hi_pc): Likewise.
2063 (get_AT_string): Likewise.
2064 (get_AT_flag): Likewise.
2065 (get_AT_unsigned): Likewise.
2066 (get_AT_ref): Likewise.
2067 (get_AT_file): Likewise.
2068 (remove_AT): Likewise.
2069 (print_die): Likewise.
2070 (check_die): Likewise.
2071 (die_checksum): Likewise.
2072 (attr_checksum_ordered): Likewise.
2073 (struct checksum_attributes): Likewise.
2074 (collect_checksum_attributes): Likewise.
2075 (die_checksum_ordered): Likewise.
2076 (same_die_p): Likewise.
2077 (is_declaration_die): Likewise.
2078 (clone_die): Likewise.
2079 (clone_as_declaration): Likewise.
2080 (copy_declaration_context): Likewise.
2081 (break_out_comdat_types): Likewise.
2082 (copy_decls_walk): Likewise.
2083 (output_location_lists): Likewise.
2084 (external_ref_hasher::hash): Likewise.
2085 (optimize_external_refs_1): Likewise.
2086 (build_abbrev_table): Likewise.
2087 (size_of_die): Likewise.
2088 (unmark_all_dies): Likewise.
2089 (size_of_pubnames): Likewise.
2090 (output_die_abbrevs): Likewise.
2091 (output_die): Likewise.
2092 (output_pubnames): Likewise.
2093 (add_ranges_num): Likewise.
2094 (add_ranges_by_labels): Likewise.
2095 (add_high_low_attributes): Likewise.
2096 (gen_producer_string): Likewise.
2097 (dwarf2out_set_name): Likewise.
2098 (new_line_info_table): Likewise.
2099 (prune_unused_types_walk_attribs): Likewise.
2100 (prune_unused_types_update_strings): Likewise.
2101 (prune_unused_types): Likewise.
2102 (resolve_addr): Likewise.
2103 (optimize_location_lists_1): Likewise.
2104 (index_location_lists): Likewise.
2105 (dwarf2out_finish): Likewise.
2107 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2109 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2111 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2113 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2114 (dump_asserts_for): Adjust.
2115 (register_new_assert_for): Likewise.
2116 (process_assert_insertions): Likewise.
2117 (insert_range_assertions): Likewise.
2119 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2121 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2123 (new_temp_expr_table): Adjust.
2124 (free_temp_expr_table): Likewise.
2125 (version_to_be_replaced_p): Likewise.
2126 (make_dependent_on_partition): Likewise.
2127 (add_to_partition_kill_list): Likewise.
2128 (remove_from_partition_kill_list): Likewise.
2129 (add_dependence): Likewise.
2130 (finished_with_expr): Likewise.
2131 (process_replaceable): Likewise.
2132 (kill_expr): Likewise.
2133 (kill_virtual_exprs): Likewise.
2134 (mark_replaceable): Likewise.
2135 (find_replaceable_in_bb): Likewise.
2136 (find_replaceable_exprs): Likewise.
2137 (debug_ter): Likewise.
2139 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2141 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2142 (struct btr_user): Rename from btr_user_s.
2143 (struct btr_def): Rename from btr_def_s.
2144 (find_btr_def_group): Adjust.
2145 (add_btr_def): Likewise.
2146 (new_btr_user): Likewise.
2147 (note_other_use_this_block): Likewise.
2148 (compute_defs_uses_and_gen): Likewise.
2149 (link_btr_uses): Likewise.
2150 (build_btr_def_use_webs): Likewise.
2151 (block_at_edge_of_live_range_p): Likewise.
2152 (btr_def_live_range): Likewise.
2153 (combine_btr_defs): Likewise.
2154 (move_btr_def): Likewise.
2155 (migrate_btr_def): Likewise.
2156 (migrate_btr_defs): Likewise.
2158 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2160 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2161 (shared_hash): Remove typedef.
2162 (struct dataflow_set): Adjust.
2163 (shared_hash_unshare): Likewise.
2164 (dataflow_set_merge): Likewise.
2165 (vt_initialize): Likewise.
2166 (vt_finalize): Likewise.
2168 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2170 * var-tracking.c (struct location_chain): Rename from
2172 (struct variable_part): Adjust.
2173 (variable_htab_free): Likewise.
2174 (unshare_variable): Likewise.
2175 (get_init_value): Likewise.
2176 (get_addr_from_local_cache): Likewise.
2177 (drop_overlapping_mem_locs): Likewise.
2178 (val_reset): Likewise.
2179 (struct variable_union_info): Likewise.
2180 (variable_union): Likewise.
2181 (find_loc_in_1pdv): Likewise.
2182 (insert_into_intersection): Likewise.
2183 (intersect_loc_chains): Likewise.
2184 (canonicalize_loc_order_check): Likewise.
2185 (canonicalize_values_mark): Likewise.
2186 (canonicalize_values_star): Likewise.
2187 (canonicalize_vars_star): Likewise.
2188 (variable_merge_over_cur): Likewise.
2189 (remove_duplicate_values): Likewise.
2190 (variable_post_merge_new_vals): Likewise.
2191 (variable_post_merge_perm_vals): Likewise.
2192 (find_mem_expr_in_1pdv): Likewise.
2193 (dataflow_set_preserve_mem_locs): Likewise.
2194 (dataflow_set_remove_mem_locs): Likewise.
2195 (variable_part_different_p): Likewise.
2196 (onepart_variable_different_p): Likewise.
2197 (find_src_set_src): Likewise.
2198 (dump_var): Likewise.
2199 (set_slot_part): Likewise.
2200 (clobber_slot_part): Likewise.
2201 (delete_slot_part): Likewise.
2202 (vt_expand_var_loc_chain): Likewise.
2203 (emit_note_insn_var_location): Likewise.
2204 (vt_finalize): Likewise.
2206 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2208 * dse.c (store_info_t): Remove typedef.
2209 (group_info_t): Likewise.
2210 (const_group_info_t): Likewise.
2211 (deferred_change_t): Likewise.
2212 (get_group_info): Adjust.
2213 (free_store_info): Likewise.
2214 (canon_address): Likewise.
2215 (clear_rhs_from_active_local_stores): Likewise.
2216 (record_store): Likewise.
2217 (replace_read): Likewise.
2218 (check_mem_read_rtx): Likewise.
2219 (scan_insn): Likewise.
2220 (remove_useless_values): Likewise.
2221 (dse_step1): Likewise.
2222 (dse_step2_init): Likewise.
2223 (dse_step2_nospill): Likewise.
2224 (scan_stores_nospill): Likewise.
2225 (scan_reads_nospill): Likewise.
2226 (dse_step3_exit_block_scan): Likewise.
2227 (dse_step3): Likewise.
2228 (dse_step5_nospill): Likewise.
2229 (dse_step6): Likewise.
2231 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2233 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2234 (alias_set_entry): Remove typedef.
2235 (alias_set_subset_of): Adjust.
2236 (alias_sets_conflict_p): Likewise.
2237 (init_alias_set_entry): Likewise.
2238 (get_alias_set): Likewise.
2239 (new_alias_set): Likewise.
2240 (record_alias_subset): Likewise.
2242 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2244 * doc/install.texi (Downloading the source): Mark up
2245 contrib/download_prerequisites properly and drop leading "./".
2247 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2249 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2250 * config/lm32/lm32.h: Likewise.
2251 * config/mep/mep.h: Likewise.
2252 * config/visium/visium.h: Likewise.
2253 * system.h: Poison STRUCT_VALUE macro.
2255 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2257 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2258 CONSTANT_P operands.
2260 2015-09-11 David S. Miller <davem@davemloft.net>
2262 * config/sparc/constraints.md: Make "U" constraint a real register
2264 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2265 (D_MODES, DF_MODES): Add missing cast.
2266 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2267 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2268 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2270 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2271 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2272 provide these insn when flag_pic.
2274 2015-09-11 Jeff Law <law@redhat.com>
2276 PR tree-optimization/47679
2277 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2278 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2279 member with m_. Update inline member functions as necessary. Add
2281 * tree-ssa-scopedtables.c: Update const_and_copies's member
2282 functions to use m_ prefix to access the stack.
2284 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2286 * graphite-optimize-isl.c (disable_tiling): Remove.
2287 (get_schedule_for_band): Do not use disable_tiling.
2288 (get_prevector_map): Delete function.
2289 (enable_polly_vector): Remove.
2290 (get_schedule_for_band_list): Remove dead code.
2292 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2294 * graphite-optimize-isl.c (get_tile_map): Refactor.
2295 (get_schedule_for_band): Same.
2296 (getScheduleForBand): Same.
2297 (get_prevector_map): Same.
2298 (get_schedule_for_band_list): Same.
2299 (get_schedule_map): Same.
2300 (get_single_map): Same.
2301 (apply_schedule_map_to_scop): Same.
2302 (optimize_isl): Same.
2304 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2307 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2309 * config/aarch64/iterators.md (GPF_TF_F16): New.
2312 2015-09-10 Nathan Sidwell <nathan@acm.org>
2314 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2315 (nvptx_reorg): Adjust comments.
2317 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2320 * configure.ac: Check if setenv and unsetenv are declared.
2321 * configure: Rebuild.
2322 * config.in: Rebuild.
2323 * system.h: Declare setenv and unsetenv if not declared.
2325 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2327 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2328 commentary to simplify permute mask adjustment equation.
2329 (special_handling_values): Add SH_VPERM.
2330 (const_load_sequence_p): New function.
2331 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2332 the mask loaded from the constant pool.
2333 (adjust_vperm): New function.
2334 (handle_special_swappables): Call adjust_vperm.
2335 (dump_swap_insn_table): Handle SH_VPERM.
2337 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2339 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2340 * shrink-wrap.h (requires_stack_frame_p): Put back.
2342 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2344 * reload1.c (elimination_costs_in_insn): Locally turn
2345 -Wmaybe-uninitialized into a warning.
2347 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2349 * shrink-wrap.c (requires_stack_frame_p): Make static.
2350 (prepare_shrink_wrap): Likewise.
2351 (dup_block_and_redirect): Likewise.
2352 * shrink-wrap.h: Remove declarations of those functions.
2354 2015-09-10 Mark Wielaard <mjw@redhat.com>
2356 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2358 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2361 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2362 missing simplify_gen_subreg.
2364 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2366 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2367 the vector element is bigger than 64 bit.
2369 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2371 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2372 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2374 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2376 * config/s390/s390.c: Add V1TImode to constant pool modes.
2378 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2381 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2382 predicate. Set predicable_short_it attr to "no".
2384 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2386 PR rtl-optimization/67421
2387 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2388 left wide shift tranformation.
2390 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2392 * common/config/arc/arc-common.c: Remove references to A5.
2393 * config/arc/arc-opts.h: Likewise.
2394 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2395 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2396 * config/arc/t-arc-newlib: Likewise.
2398 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2400 * config/arc/arc.md (length): Fix attribute length for conditional
2401 executed instructions with long immediate.
2403 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2405 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2406 type for second alternative.
2408 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2410 * doc/invoke.texi (Downloading GCC): Mention
2411 contrib/download_prerequisites script.
2413 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2416 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2417 for combined loop, assert seen_error () and return GS_ERROR.
2420 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2421 if decl is already in outer->variables.
2424 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2425 asserting that decl is not specified in octx->variables,
2426 break out of the loop if it is.
2429 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2430 iterator is not explicitly determined, but is defined inside
2431 of the combined workshare region, handle it like if it has
2432 DECL_EXPR in OMP_FOR_PRE_BODY.
2434 2015-09-09 Nathan Sidwell <nathan@acm.org>
2436 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2437 (*cmp<mode>): Add assembler spacing.
2438 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2439 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2441 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2442 (nvptx_expand_call): Likewise.
2443 (nvptx_output_call_insn): Likewise.
2444 (nvptx_reorg_subreg): Add spacing.
2446 2015-09-09 Marek Polacek <polacek@redhat.com>
2449 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2452 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2455 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2457 2015-09-09 Tom de Vries <tom@codesourcery.com>
2459 * params-list.h: Add missing copyright notice.
2461 2015-09-09 Nathan Sidwell <nathan@acm.org>
2463 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2464 sel_truesi, not andsi.
2466 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2468 * config/arm/arm.md (*subsi3_compare0): Rename to...
2469 (subsi3_compare0): ... This.
2470 (modsi3): New define_expand.
2471 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2472 when operand is power of 2.
2474 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2476 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2477 (*neg<mode>2_compare0): Rename to...
2478 (neg<mode>2_compare0): ... This.
2479 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2480 Move check for speed inside the if-then-elses. Reflect
2481 CSNEG sequence in MOD by power of 2 case.
2483 2015-09-09 Alan Modra <amodra@gmail.com>
2486 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2487 reload replacement for PRE_MODIFY address reg.
2489 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2491 PR tree-optimization/53852
2492 * config.in: Regenerate.
2493 * configure: Regenerate.
2494 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2495 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2496 PARAM_MAX_ISL_OPERATIONS is reached.
2497 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2498 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2499 result equal to isl_stat_ok as the status now can be isl_error_quota.
2500 (subtract_commutative_associative_deps): Same.
2501 (compute_deps): Same.
2503 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2504 Sebastian Pop <s.pop@samsung.com>
2506 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2507 Return the parameter if it was saved in corresponding
2508 parameter_rename_map of the region.
2509 (copy_def): Copy def from sese region to the newly created region.
2510 (copy_internal_parameters): Copy all the internal parameters defined
2511 within a region to the newly created region.
2512 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2513 translating isl to gimple.
2514 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2515 the loop-nest does not have any data-references.
2516 (build_graphite_scops): Create a scop only when there is at least one
2518 (contains_only_close_phi_nodes): Deleted.
2519 (print_graphite_scop_statistics): Deleted
2520 (print_graphite_statistics): Deleted
2521 (limit_scops): Deleted.
2522 (build_scops): Removed call to limit_scops.
2523 * sese.c (new_sese): Construct.
2524 (free_sese): Destruct.
2525 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2527 (set_rename): Pass sese region so that parameters inside the region can
2528 be added to its parameter_rename_map.
2529 (rename_uses): Pass sese region.
2530 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2531 generated in the header of the scop. For each SSA_NAME in the
2532 parameter_rename_map rename its usage.
2533 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2535 (scalar_evolution_in_region): If the tree t is invariant just return t.
2536 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2537 struct sese to keep track of all the parameters which need renaming.
2538 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2540 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2542 2015-09-08 Tom de Vries <tom@codesourcery.com>
2544 * Makefile.in (generated_files): Add params.list.
2545 (params.list, s-params.list): Add rule.
2546 * params.h (enum compiler_param): Include params-list.h. Move define
2547 DEFPARAM, include params.def and undef DEFPARAM ...
2548 * params-list.h: ... here. New file.
2550 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2552 * pretty-print.h (printer_fn): Fix typo in comment.
2554 2015-09-07 Jeff Law <law@redhat.com>
2556 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2558 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2560 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2561 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2562 (arm_neon_fp16_hw): New.
2564 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2566 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2567 UNITS_PER_WORD >= 4.
2569 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2571 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2572 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2573 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2574 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2575 (aarch64_float_extend_lo_v2df): Rename to...
2576 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2578 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2579 (float_extend_lo): Add v4sf.
2581 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2582 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2583 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2584 (Vwide): New mode_attr.
2586 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2588 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2589 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2590 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2591 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2592 V4HF and V8HF variants to iterator.
2594 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2596 * config/aarch64/iterators.md (VDQF_F16): New.
2597 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2599 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2601 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2602 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2603 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2604 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2605 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2606 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2607 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2608 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2609 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2610 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2611 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2612 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2613 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2614 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2615 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2616 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2617 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2618 vld1q_dup_f16): New.
2620 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2622 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2623 Reparameterize to...
2624 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2625 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2626 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2628 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2630 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2632 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2634 * config/aarch64/iterators.md (VDF, Vdtype): New.
2635 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2637 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2639 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2640 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2641 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2642 Add __builtin_aarch64_simd_hf.
2643 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2644 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2645 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2646 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2647 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2648 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2649 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2650 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2651 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2653 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2654 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2655 (VDC, Vdbl): Add V4HF.
2657 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2659 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2660 V4HFmode and V8HFmode.
2661 (aarch64_split_simd_move): Add case for V8HFmode.
2662 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2663 (aarch64_simd_builtin_std_type): Handle HFmode.
2664 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2666 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2667 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2668 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2670 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2673 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2674 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2676 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2677 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2678 vst1q_lane_f16): New.
2679 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2680 (VALLDI_F16, VALL_F16): New.
2681 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2682 Add cases for V4HF and V8HF.
2683 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2685 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2687 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2688 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2689 vld4_dup): Add v4hf variant.
2690 (vget_high, vget_low): Add v8hf variant.
2691 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2692 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2693 v4hf and v8hf variants.
2695 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2697 (V_DOUBLE): Add case for V4HF.
2699 (V_HALF): Add case for V8HF.
2700 (VDQX): Add V4HF, V8HF.
2701 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2702 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2704 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2705 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2706 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2707 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2708 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2709 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2710 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2711 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2712 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2714 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2715 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2716 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2717 Change VDX to VD_RE.
2719 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2720 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2721 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2723 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2724 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2725 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2726 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2727 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2728 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2729 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2730 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2731 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2733 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2735 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2736 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2737 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2738 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2739 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2740 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2741 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2742 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2743 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2744 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2747 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2749 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2751 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2753 * config/arm/arm-builtins.c (v8hf_UP): New.
2754 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2756 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2758 * config/arm/arm_neon.h (float16x8_t): New typedef.
2760 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2762 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2763 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2764 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2765 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2766 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2767 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2768 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2769 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2770 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2771 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2773 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2775 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2776 non-alphanumeric characters in the symbol name.
2778 2015-09-07 Marek Polacek <polacek@redhat.com>
2781 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2784 2015-09-07 Marek Polacek <polacek@redhat.com>
2786 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2788 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2790 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2793 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2796 * tree-ssa-live.c: Include cfgloop.h.
2797 (remove_unused_locals): Clear loop->simduid if simduid is about
2798 to be removed from cfun->local_decls.
2800 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2803 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2806 2015-09-04 Tom de Vries <tom@codesourcery.com>
2808 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2810 2015-09-04 Jeff Law <law@redhat.com>
2812 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2813 unnecessary constructor. It's now trivial and implemented inside...
2814 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2815 constructor. Add comments to various methods. Remove unused
2817 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2818 * tree-vrp.c (identify_jump_threads): Likewise.
2819 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2821 (thread_across_edge): Similarly.
2822 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2823 arguments in constructor call.
2825 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2827 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2828 temp path contains a '-'.
2830 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2831 Petr Murzin <petr.murzin@intel.com>
2832 Kirill Yukhin <kirill.yukhin@intel.com>
2834 * config/i386/i386-builtin-types.def
2835 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2836 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2837 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2838 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2839 * config/i386/i386.c
2840 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2841 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2842 IX86_BUILTIN_SCATTERALTDIV16SI.
2843 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2844 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2845 __builtin_ia32_scatteraltdiv8si.
2846 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2847 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2848 IX86_BUILTIN_SCATTERALTDIV16SI.
2849 (ix86_vectorize_builtin_scatter): New.
2850 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2851 ix86_vectorize_builtin_scatter.
2853 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2854 Petr Murzin <petr.murzin@intel.com>
2855 Kirill Yukhin <kirill.yukhin@intel.com>
2857 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2858 * doc/tm.texi: Regenerate.
2859 * target.def: Add scatter builtin.
2860 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2861 for loads/stores in case of gather/scatter accordingly.
2862 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2863 STMT_VINFO_GATHER_P(S).
2864 (vect_check_gather): Rename to ...
2865 (vect_check_gather_scatter): this.
2866 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2867 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2868 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2869 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2870 variable and new checkings for it accordingly.
2872 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2873 STMT_VINFO_GATHER_P(S).
2874 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2875 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2877 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2879 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2881 (mulv16qi3): New define_expand.
2883 2015-09-03 Martin Sebor <msebor@redhat.com>
2886 * doc/extend.texi (Other Builtins): Document when the address
2887 of a built-in function can be taken.
2889 2015-09-03 Richard Biener <rguenther@suse.de>
2891 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2892 (dwarf2out_early_finish): ... here.
2893 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2894 flush_limbo_die_list. Assert we have no deferred asm names.
2896 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2898 * optabs.c (expand_binop): Don't create a broadcast vector with a
2899 source element wider than the inner mode.
2901 2015-09-03 Richard Biener <rguenther@suse.de>
2903 * varasm.c (output_constant): Use fold_convert instead of
2906 2015-09-03 Tom de Vries <tom@codesourcery.com>
2908 PR tree-optimization/65637
2909 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2910 fin_bb has 2 predecessors.
2912 2015-09-03 Tom de Vries <tom@codesourcery.com>
2914 PR tree-optimization/65637
2915 * omp-low.c (find_phi_with_arg_on_edge): New function.
2916 (expand_omp_for_static_chunk): Fix inner loop phi.
2918 2015-09-03 Tom de Vries <tom@codesourcery.com>
2920 PR tree-optimization/65637
2921 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2924 2015-09-03 Tom de Vries <tom@codesourcery.com>
2926 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2928 2015-09-03 Tom de Vries <tom@codesourcery.com>
2930 * doc/invoke.texi (parloops-chunk-size): Add item.
2931 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2932 * tree-parloops.c: Include params.h.
2933 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2934 param parloops-chunk-size is used.
2936 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2939 * fold-const.c (fold_binary_loc) : Move
2940 Transform (x >> c) << c into x & (-1<<c) or
2941 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2942 types using simplify and match.
2943 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2944 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2946 2015-09-03 Richard Biener <rguenther@suse.de>
2949 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2950 (create_variable_info_for_1): Use ctor_for_analysis instead
2952 (create_variable_info_for): Likewise.
2954 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2957 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2958 in new callgraph edge.
2960 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2965 * config/aarch64/aarch64-simd.md
2966 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2967 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2968 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2969 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2971 2015-09-02 Alan Modra <amodra@gmail.com>
2973 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2974 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2975 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2977 2015-09-02 Alan Modra <amodra@gmail.com>
2980 * config/rs6000/predicates.md (current_file_function_operand): Don't
2981 return true for weak symbols.
2982 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2984 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2985 Andrew Bennett <andrew.bennett@imgtec.com>
2987 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2988 * config/mips/mips-protos.h: Add definitions for
2989 mips_output_jump and mips_output_equal_conditional_branch
2990 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2992 (mips_emit_compare): Add support for the MIPS R6 conditional
2994 (mips_process_sync_loop): Likewise.
2995 (mips_output_order_conditional_branch): Likewise.
2996 (mips16_build_call_stub): Change MIPS_CALL to
2998 (mips_print_operand_punctuation): Update 's' case to only
2999 apply to micromips r2.
3000 (mips_adjust_insn_length): Add support for forbidden slot
3002 (mips_avoid_hazard): Likewise.
3003 (mips_reorg_process_insns): Likewise.
3004 (mips_output_jump): New function.
3005 (mips_output_equal_conditional_branch): Likewise.
3006 (mips_output_conditional_branch): Use jrc/bc if compact
3007 branch support is enabled. Ensure the forbidden slots
3008 between the two branch instructions is filled with a nop.
3009 (mips_option_override): Add support to process the compact
3010 branch option and set the correct defaults. Prevent
3011 non-explict relocs being using for MIPS R6.
3012 (mips_trampoline_init): Add compact branch support.
3013 (mips_mult_zero_zero_cost): Allow zero initialisation of
3014 accumulators with TARGET_DSP.
3015 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3016 (TARGET_CB_MAYBE): New define.
3017 (TARGET_CB_ALWAYS): New define.
3018 (ISA_HAS_DELAY_SLOTS): New define.
3019 (ISA_HAS_COMPACT_BRANCHES): New define.
3020 (ISA_HAS_JRC): New define.
3021 (MIPS_BRANCH_C): New define.
3022 (MIPS_CALL): Removed.
3023 (MICROMIPS_J): Removed.
3024 * config/mips/mips.md (compact_form): New attr.
3025 (hazard): Add support for forbidden slots.
3026 (define_delay): Add support for compact branches.
3027 (*branch_order<mode>): Likewise.
3028 (*branch_order<mode>_inverted): Likewise.
3029 (*branch_equality<mode>): Likewise.
3030 (*branch_equality<mode>_inverted): Likewise.
3031 (*jump_absolute): Likewise.
3032 (*jump_pic): Likewise.
3033 (indirect_jump): Use mips_output_jump to produce assembly output.
3034 (tablejump_<mode>"): Likewise.
3035 (*<optab>"): Likewise.
3036 (<optab>_internal): Likewise.
3037 (sibcall_internal): Likewise.
3038 (sibcall_value_internal): Likewise.
3039 (sibcall_value_multiple_internal): Likewise.
3040 (call_internal): Likewise.
3041 (call_split): Likewise.
3042 (call_internal_direct): Likewise.
3043 (call_direct_split): Likewise.
3044 (call_value_internal): Likewise.
3045 (call_value_split): Likewise.
3046 (call_value_internal_direct): Likewise.
3047 (call_value_direct_split): Likewise.
3048 (call_value_multiple_internal): Likewise.
3049 (call_value_multiple_split): Likewise.
3050 (mips_get_fcsr_mips16_<mode>): Likewise.
3051 (mips_set_fcsr_mips16_<mode>): Likewise.
3052 (tls_get_tp_mips16_<mode>): Likewise.
3053 * config/mips/mips.opt: Add -mcompact-branches option.
3054 * config/mips/predicates.md (order_operator): Ensure the
3055 conditional compact branches are only used if the ISA them.
3056 * doc/invoke.texi: Document -mcompact-branches option.
3058 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
3061 * lra-lives.c (process_bb_lives): Process move pseudos with the
3062 same value for copies and preferences
3063 * lra-constraints.c (match_reload): Create match reload pseudo
3064 with the same value from single dying input pseudo.
3066 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3069 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3071 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
3073 * trans-mem.c: Add contributed-by.
3074 * trans-mem.h: Same.
3076 2015-09-01 Richard Biener <rguenther@suse.de>
3078 * expr.c (expand_expr_real_1): For expanding TERed defs
3079 set the current location to that of the def if not UNKNOWN.
3081 2015-09-01 David Sherwood <david.sherwood@arm.com>
3083 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3085 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3087 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3088 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3089 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3091 (noce_simple_bbs): New function.
3092 (noce_try_move): Bail if basic blocks are not simple.
3093 (noce_try_store_flag): Likewise.
3094 (noce_try_store_flag_constants): Likewise.
3095 (noce_try_addcc): Likewise.
3096 (noce_try_store_flag_mask): Likewise.
3097 (noce_try_cmove): Likewise.
3098 (noce_try_minmax): Likewise.
3099 (noce_try_abs): Likewise.
3100 (noce_try_sign_mask): Likewise.
3101 (noce_try_bitop): Likewise.
3102 (bbs_ok_for_cmove_arith): New function.
3103 (noce_emit_all_but_last): Likewise.
3104 (noce_emit_insn): Likewise.
3105 (noce_emit_bb): Likewise.
3106 (noce_try_cmove_arith): Handle non-simple basic blocks.
3107 (insn_valid_noce_process_p): New function.
3108 (contains_mem_rtx_p): Likewise.
3109 (bb_valid_for_noce_process_p): Likewise.
3110 (noce_process_if_block): Allow non-simple basic blocks
3113 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3115 * tree-ssa-dom.c (record_equivalences_from_phis,
3116 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3117 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3119 2015-09-01 Nick Clifton <nickc@redhat.com>
3121 * config/msp430/msp430.opt (mcpu): Fix typo.
3123 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3125 * config/aarch64/aarch64.c (aarch64_set_current_function):
3126 Re-layout any vector parameters have non-simd layout.
3127 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3129 (aarch64_simd_expand_args): Delete call to the above.
3131 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3133 * doc/invoke.texi (asan-stack): Add space before option.
3135 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3137 * tree.h (zerop): New function.
3138 * tree.c (zerop): Likewise.
3139 (element_precision): Handle expressions.
3140 * match.pd (define_predicates): Add zerop.
3141 (x <= +Inf): Fix comment.
3142 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3143 * fold-const.c (fold_binary_loc): ... here. Remove.
3145 2015-08-31 Richard Biener <rguenther@suse.de>
3148 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3150 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3152 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3153 (CEXPI): New operator list.
3154 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3155 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3157 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3159 2015-08-31 Tom de Vries <tom@codesourcery.com>
3161 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3162 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3164 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3165 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3166 (rewrite_into_loop_closed_ssa): ... here.
3167 (replace_uses_in_dominated_bbs): Remove function.
3168 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3169 rewrite_into_loop_closed_ssa_1.
3171 2015-08-31 Michael Matz <matz@suse.de>
3173 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3174 enter entry and exit blocks for reverse post order.
3176 2015-08-31 Richard Biener <rguenther@suse.de>
3178 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3179 (lto_location_cache::current_sysp): Likewise.
3180 (output_block::current_sysp): Likewise.
3181 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3182 (lto_location_cache::apply_location_cache): Properly record
3183 system header locations.
3184 (lto_location_cache::input_location): Input whether a file
3186 * lto-streamer-out.c (lto_output_location): Stream whether a file
3189 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3192 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3194 2015-08-31 Tom de Vries <tom@codesourcery.com>
3196 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3197 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3198 Improve function header comments.
3200 2015-08-30 Michael Collison <michael.collison@linaro.org>
3203 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3206 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3208 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3209 special_handling bitfield.
3210 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3211 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3212 that represents a general xxpermdi.
3213 (insn_is_swappable_p): Add handling for vec_concat of two
3214 doublewords, which maps to a specific xxpermdi.
3215 (adjust_xxpermdi): New function.
3216 (adjust_concat): Likewise.
3217 (handle_special_swappables): Call adjust_xxpermdi and
3219 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3221 2015-08-30 Rich Felker <dalias@libc.org>
3223 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3224 case instead of sh[123456ble]-*-*.
3226 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3228 * ira.c (print_unform_and_important_classes,
3229 print_translated_classes): Remove reg_class_names static array.
3230 (print_unform_and_important_classes): Rename to ...
3231 (print_uniform_and_important_classes): ... this.
3232 (ira_debug_allocno_classes): Update accordingly.
3234 2015-08-29 Tom de Vries <tom@codesourcery.com>
3236 PR tree-optimization/46193
3237 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3240 2015-08-28 Jeff Law <law@redhat.com>
3243 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3244 unable to find X NE 0 in the tables, return X as the simplified
3246 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3247 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3249 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3250 after removing the control flow statement and unnecessary edges.
3252 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3255 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3257 PR tree-optimization/67283
3258 * tree-sra.c (type_consists_of_records_p): Rename to...
3259 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3261 (completely_scalarize_record): Rename to...
3262 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3264 (scalarize_elem): New.
3266 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3268 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3269 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3270 (aarch64_symbol_type): Likewise.
3271 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3273 (aarch64_expand_mov_immediate): Likewise.
3274 (aarch64_print_operand): Likewise.
3275 (aarch64_classify_tls_symbol): Likewise.
3277 2015-08-28 Richard Biener <rguenther@suse.de>
3279 * cgraphunit.c (symbol_table::compile): Move early debug generation
3281 (symbol_table::finalize_compilation_unit): ... back here and
3282 add a !seen_error () guard.
3284 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3286 * toplev.c (process_options): Do not use flag_loop_block,
3287 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3288 flag_loop_optimize_isl.
3290 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3292 * Makefile.in (OBJS): Remove graphite-blocking.o and
3293 graphite-interchange.o.
3294 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3295 Alias of floop-nest-optimize.
3296 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3297 Document as alias of -floop-nest-optimize.
3298 * graphite-blocking.c: Remove.
3299 * graphite-interchange.c: Remove.
3300 * graphite-optimize-isl.c: Include dumpfile.h.
3301 (getScheduleForBand): Add dump for tiled loops. Use
3302 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3303 * graphite-poly.c (scop_max_loop_depth): Remove.
3304 (print_scattering_function_1): Remove.
3305 (print_scattering_function): Remove.
3306 (print_scattering_functions): Remove.
3307 (debug_scattering_function): Remove.
3308 (debug_scattering_functions): Remove.
3309 (apply_poly_transforms): Remove use of flag_loop_block,
3310 flag_loop_strip_mine, and flag_loop_interchange.
3311 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3313 (print_pdr_access_layout): Remove.
3314 (print_pdr): Print ISL representation.
3315 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3316 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3318 (openscop_print_pbb_domain): Remove.
3319 (print_pbb): Remove call to print_scattering_function.
3320 (openscop_print_scop_context): Remove.
3321 (print_scop_context): Do not print matrices anymore.
3322 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3323 SCOP_TRANSFORMED_SCHEDULE.
3324 (print_isl_set): Add printing of a new line.
3325 (print_isl_map): Same.
3326 (print_isl_aff): Same.
3327 (print_isl_constraint): Same.
3328 (loop_to_lst): Remove.
3329 (scop_to_lst): Remove.
3330 (lst_indent_to): Remove.
3331 (print_lst): Remove.
3332 (debug_lst): Remove.
3333 (dot_lst_1): Remove.
3335 (reverse_loop_at_level): Remove.
3336 (reverse_loop_for_pbbs): Remove.
3337 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3338 (pdr_nb_params): Remove.
3339 (pdr_alias_set_dim): Remove.
3340 (pdr_subscript_dim): Remove.
3341 (pdr_iterator_dim): Remove.
3342 (pdr_parameter_dim): Remove.
3343 (same_pdr_p): Remove.
3344 (struct poly_scattering): Remove.
3345 (struct poly_bb): Remove _original, _transformed, _saved.
3346 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3347 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3348 (PBB_NB_LOCAL_VARIABLES): Remove.
3349 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3350 (schedule_to_scattering): Remove.
3351 (number_of_write_pdrs): Remove.
3352 (pbb_dim_iter_domain): Remove.
3353 (pbb_nb_params): Remove.
3354 (pbb_nb_scattering_orig): Remove.
3355 (pbb_nb_scattering_transform): Remove.
3356 (pbb_nb_dynamic_scattering_transform): Remove.
3357 (pbb_nb_local_vars): Remove.
3358 (pbb_iterator_dim): Remove.
3359 (pbb_parameter_dim): Remove.
3360 (psco_scattering_dim): Remove.
3361 (psct_scattering_dim): Remove.
3362 (psct_local_var_dim): Remove.
3363 (psco_iterator_dim): Remove.
3364 (psct_iterator_dim): Remove.
3365 (psco_parameter_dim): Remove.
3366 (psct_parameter_dim): Remove.
3367 (psct_dynamic_dim): Remove.
3368 (psct_static_dim): Remove.
3369 (psct_add_local_variable): Remove.
3370 (new_lst_loop): Remove.
3371 (new_lst_stmt): Remove.
3374 (lst_add_loop_under_loop): Remove.
3375 (lst_depth): Remove.
3376 (lst_dewey_number): Remove.
3377 (lst_dewey_number_at_depth): Remove.
3380 (lst_find_pbb): Remove.
3381 (find_lst_loop): Remove.
3382 (lst_find_first_pbb): Remove.
3383 (lst_empty_p): Remove.
3384 (lst_find_last_pbb): Remove.
3385 (lst_contains_p): Remove.
3386 (lst_contains_pbb): Remove.
3387 (lst_create_nest): Remove.
3388 (lst_remove_from_sequence): Remove.
3389 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3390 (lst_niter_for_loop): Remove.
3391 (pbb_update_scattering): Remove.
3392 (lst_update_scattering_under): Remove.
3393 (lst_update_scattering): Remove.
3394 (lst_insert_in_sequence): Remove.
3395 (lst_replace): Remove.
3396 (lst_substitute_3): Remove.
3397 (lst_distribute_lst): Remove.
3398 (lst_remove_all_before_including_pbb): Remove.
3399 (lst_remove_all_before_excluding_pbb): Remove.
3400 (struct scop): Remove original_schedule, transformed_schedule, and
3402 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3403 (SCOP_SAVED_SCHEDULE): Remove.
3404 (poly_scattering_new): Remove.
3405 (poly_scattering_free): Remove.
3406 (poly_scattering_copy): Remove.
3407 (store_scattering_pbb): Remove.
3408 (store_lst_schedule): Remove.
3409 (restore_lst_schedule): Remove.
3410 (store_scattering): Remove.
3411 (restore_scattering_pbb): Remove.
3412 (restore_scattering): Remove.
3413 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3414 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3415 compute the scattering polyhedron dimension from the dimension of
3417 (build_scop_scattering): Update call to
3418 build_pbb_scattering_polyhedrons.
3419 (build_poly_scop): Remove call to scop_to_lst.
3420 * graphite.c (graphite_transform_loops): Add call to print_scop.
3421 (gate_graphite_transforms): Remove use of flag_loop_block,
3422 flag_loop_interchange, and flag_loop_strip_mine.
3424 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3426 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3427 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3428 -floop-nest-optimize.
3429 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3430 (generate_luj_sepclass): Remove.
3431 (generate_luj_options): Remove.
3432 (set_options): Remove opt_luj.
3433 (scop_to_isl_ast): Remove opt_luj.
3434 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3435 flag_loop_unroll_jam.
3436 (getPrevectorMap_full): Remove.
3437 (getScheduleForBandList): Remove map_sepcl.
3438 (getScheduleMap): Same.
3439 (apply_schedule_map_to_scop): Remove sepcl.
3440 (optimize_isl): Same.
3441 * graphite-poly.c (apply_poly_transforms): Remove check for
3442 flag_loop_unroll_jam.
3443 (new_poly_bb): Remove map_sepclass.
3444 * graphite-poly.h (struct poly_bb): Same.
3445 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3446 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3447 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3448 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3450 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3453 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3455 (UNSPEC_ADD_CARRY): Remove.
3456 (addqi3_cconly_overflow): New expander.
3457 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3458 Adjust for changed add<mode>3_carry.
3459 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3460 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3461 (<plusminus_insn><mode>3_carry): Remove expander.
3462 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3463 add<mode>3_carry and sub<mode>3_carry.
3464 (plusminus_carry_mnemonic): Remove code attribute.
3465 (add<mode>3_carry): Canonicalize insn pattern.
3466 (*addsi3_carry_zext): Ditto.
3467 (sub<mode>3_carry): Ditto.
3468 (*subsi3_carry_zext): Ditto.
3469 (adcx<mode>3): Remove insn pattern.
3470 (addcarry<mode>): New insn pattern.
3471 (subborrow<mode>): Ditto.
3472 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3473 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3474 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3475 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3476 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3477 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3478 Rewrite expander to not clobber carry flag chains.
3480 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3482 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3483 instead of a rotate.
3485 2015-08-27 Marek Polacek <polacek@redhat.com>
3488 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3489 an entry into an irreducible region.
3491 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3493 * configure: Regenerate.
3495 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3497 PR tree-optimization/67283
3498 * tree-sra.c (type_consists_of_records_p): Rename to...
3499 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3501 (completely_scalarize_record): Rename to...
3502 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3503 (scalarize_elem): New.
3505 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3507 * tree-sra.c (completely_scalarize_var): Rename to...
3508 (create_total_scalarization_access): ... Here. Drop call to
3509 completely_scalarize_record.
3511 (analyze_all_variable_accesses): Replace completely_scalarize_var
3512 with create_total_scalarization_access and completely_scalarize_record.
3514 2015-08-27 Alan Modra <amodra@gmail.com>
3517 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3520 2015-08-27 Richard Biener <rguenther@suse.de>
3522 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3523 call with !seen_error ().
3524 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3525 early debug generation and finish...
3526 (symbol_table::compile): ... here to put it after a !seen_error ()
3529 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3531 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3534 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3535 Andre Vieira <andre.simoesdiasvieira@arm.com>
3537 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3538 (*cb<optab><mode>1): Likewise.
3539 (*tb<optab><mode>1): Likewise.
3540 (*cb<optab><mode>1): Likewise.
3541 * config/aarch64/iterators.md (inv_cb): New code attribute.
3543 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3544 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3546 2015-08-27 Richard Biener <rguenther@suse.de>
3548 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3550 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3552 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3555 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3557 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3560 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3562 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3563 floating point in VSX registers.
3564 (rs6000_output_move_128bit): Always print out the set insn if we
3565 can't generate an appropriate 128-bit move.
3566 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3567 point in VSX registers comparisons.
3568 (rs6000_expand_float128_convert): Likewise.
3570 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3571 predicate for only GPR hard registers.
3573 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3574 modes to iterators. Add new iterators for moving 128-bit values in
3575 scalar FPR registers and VSX registers.
3576 (FMOVE128): Likewise.
3577 (FMOVE128_FPR): Likewise.
3578 (FMOVE128_GPR): Likewise.
3579 (FMOVE128_VSX): Likewise.
3580 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3585 (RELOAD): Add IEEE 128-bit floating point modes.
3586 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3587 floating point in VSX registers modes.
3588 (signbit<mode>2, IBM128 iterator): Likewise.
3589 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3590 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3592 (neg<mode>2, TFIFKF iterator): Likewise.
3593 (negtf2_internal): Likewise.
3595 (abs<mode>2, TFIFKF iterator): Likewise.
3596 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3597 VSX insn support for negate, absolute value, and negative absolute
3599 (ieee_128bit_vsx_neg<mode>2): Likewise.
3600 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3601 (ieee_128bit_vsx_abs<mode>2): Likewise.
3602 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3603 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3604 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3605 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3606 floating point in VSX registers.
3607 (unpack<mode>_dm): Likewise.
3608 (unpack<mode>_nodm): Likewise.
3609 (pack<mode>): Likewise.
3610 (unpackv1ti): Likewise.
3611 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3612 (packv1ti): Likewise.
3613 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3614 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3616 (extenddftf2_internal): Likewise.
3617 (trunctfdf2): Likewise.
3618 (trunctfdf2_internal2): Likewise.
3619 (fix_trunc_helper): Likewise.
3620 (fix_trunctfdi2"): Likewise.
3621 (floatditf2): Likewise.
3622 (floatuns<mode>tf2): Likewise.
3623 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3624 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3625 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3626 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3627 (float<SDI:mode><IFKF:mode>2): Likewise.
3628 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3630 2015-08-26 Renlin Li <renlin.li@arm.com>
3632 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3634 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3635 Jiong Wang <jiong.wang@arm.com>
3637 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3638 (tlsie_tiny_<mode>): New define_insn.
3639 (tlsie_tiny_sidi): Likewise.
3640 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3642 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3643 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3645 (aarch64_expand_mov_immediate): Likewise.
3646 (aarch64_print_operand): Likewise.
3647 (arch64_classify_tls_symbol): Likewise.
3649 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3651 * config/arm/arm-arches.def: Replace single value flags with
3652 an initializer built from ARM_FSET_MAKE_CPU1.
3653 * config/arm/arm-cores.def: Likewise.
3654 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3655 derivation from the ARM_CORE macro definition, use the given value
3657 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3658 ARM_ARCH macro definition, use the given value instead.
3660 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3662 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3664 (struct builtin_description): Replace field mask with field
3666 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3667 (IWMMXT2_BUILTIN): Likewise.
3668 (IWMMXT2_BUILTIN2): Likewise.
3669 (FP_BUILTIN): Likewise.
3670 (CRC32_BUILTIN): Likewise.
3671 (CRYPTO_BUILTIN): Likewise.
3672 (iwmmx_mbuiltin): Likewise.
3673 (iwmmx2_mbuiltin): Likewise.
3674 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3675 struct builtin_description.
3677 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3679 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3680 (struct builtin_description): Change type of mask to unsigned
3682 * config/arm/arm-protos.h (insn_flags): Declare as type
3684 (tune_flags): Likewise.
3685 * config/arm/arm.c (feature_count): New.
3686 (insn_flags): Define as type arm_feature_set.
3687 (tune_flags): Likewise.
3688 (struct processors): Define field flags as type arm_feature_set.
3689 (all_cores): Update for change to struct processors.
3690 (all_architectures): Likewise.
3691 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3693 (arm_option_override_internal): Likewise.
3694 (arm_option_override): Likewise.
3696 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3697 Jiong Wang <jiong.wang@arm.com>
3699 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3700 tls size for tiny, small, large memory model.
3701 (aarch64_load_symref_appropriately): Support new symbol types.
3702 (aarch64_expand_mov_immediate): Likewise.
3703 (aarch64_print_operand): Likewise.
3704 (aarch64_classify_tls_symbol): Likewise.
3705 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3706 (aarch64_symbol_type): Likewise.
3707 * config/aarch64/aarch64.md (tlsle): Deleted.
3708 (tlsle12_<mode>): New define_insn.
3709 (tlsle24_<mode>): Likewise.
3710 (tlsle32_<mode>): Likewise.
3711 (tlsle48_<mode>): Likewise.
3712 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3715 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3717 * config/arm/arm-protos.h (FL_NONE): New.
3719 (arm_feature_set): New.
3720 (ARM_FSET_MAKE): New.
3721 (ARM_FSET_MAKE_CPU1): New.
3722 (ARM_FSET_MAKE_CPU2): New.
3723 (ARM_FSET_CPU1): New.
3724 (ARM_FSET_CPU2): New.
3725 (ARM_FSET_EMPTY): New.
3726 (ARM_FSET_ANY): New.
3727 (ARM_FSET_HAS_CPU1): New.
3728 (ARM_FSET_HAS_CPU2): New.
3729 (ARM_FSET_HAS_CPU): New.
3730 (ARM_FSET_ADD_CPU1): New.
3731 (ARM_FSET_ADD_CPU2): New.
3732 (ARM_FSET_DEL_CPU1): New.
3733 (ARM_FSET_DEL_CPU2): New.
3734 (ARM_FSET_UNION): New.
3735 (ARM_FSET_INTER): New.
3736 (ARM_FSET_XOR): New.
3737 (ARM_FSET_EXCLUDE): New.
3738 (AFM_FSET_IS_EMPTY): New.
3739 (ARM_FSET_CPU_SUBSET): New.
3741 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3743 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3744 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3745 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3747 (aarch64_expand_mov_immediate): Likewise.
3748 (aarch64_print_operand): Likewise.
3749 (aarch64_classify_symbol): Likewise.
3751 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3753 * config/aarch64/aarch64.opt (mtls-size): New entry.
3754 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3755 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3756 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3758 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3760 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3761 ARM_CORE entry. Fix some white-space.
3762 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3763 ARM_CORE definition.
3765 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3767 * fold-const.c (fold_binary_loc) : Move Optimize
3768 root(x)*root(y) as root(x*y) to match.pd.
3769 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3770 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3771 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3772 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3773 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3774 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3775 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3776 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3777 (rdiv @0 (exps:s @1)) : New simplifier.
3779 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3781 * gcc.c (driver::finalize): Only assign to extra_specs if
3784 2015-08-25 Marek Polacek <polacek@redhat.com>
3787 * varasm.c (declare_weak): Return after giving an error.
3789 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3791 * gcc-main.c (main): Add params to driver ctor.
3792 * gcc.c (class env_manager): New.
3794 (env_manager::init): New.
3795 (env_manager::get): New.
3796 (env_manager::xput): New.
3797 (env_manager::restore): New.
3798 Poison getenv and putenv.
3799 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3800 (target_system_root): Update initialization to use
3801 DEFAULT_TARGET_SYSTEM_ROOT.
3802 (struct spec_list): Add field "default_ptr".
3803 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3804 (init_spec): Likewise.
3805 (set_spec): Clear field "default_ptr".
3806 (read_specs): Free "spec" and "buffer".
3807 (xputenv): Reimplement in terms of env_manager.
3808 (process_command): Replace ::getenv calls with calls to the
3809 env_manager singleton.
3810 (process_brace_body): Free string in three places.
3811 (driver::driver): New.
3812 (driver::~driver): New.
3813 (used_arg): Convert from a function to...
3814 (class used_arg_t): ...this class, and...
3815 (used_arg): ...this new global instance.
3816 (used_arg_t::finalize): New function.
3817 (getenv_spec_function): Add "const" to local "value". Replace
3818 ::getenv call with call to the env_manager singleton.
3819 (path_prefix_reset): New function.
3820 (driver::finalize): New function.
3821 * gcc.h (driver::driver): New.
3822 (driver::~driver): New.
3823 (driver::finalize): New.
3825 2015-08-25 Nathan Sidwell <nathan@acm.org>
3827 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3828 target doesn't have one.
3830 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3833 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3835 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3838 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3839 a define_insn, remove second alternative.
3841 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3842 Joseph Myers <joseph@codesourcery.com>
3844 * gcc.c (struct switchstr): Expand comment.
3846 2015-08-25 Nathan Sidwell <nathan@acm.org>
3848 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3849 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3851 2015-08-25 Richard Biener <rguenther@suse.de>
3854 * genmatch.c (expr::gen_transform): Verify the result of
3855 builtin_decl_implicit.
3856 (dt_simplify::gen_1): Likewise.
3858 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3860 * config/arm/constraints.md: Also list Cs and US ARM-specific
3861 constraints as used.
3863 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3866 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3868 (nonpic_symbol_mentioned_p): Likewise.
3869 (sh_delegitimize_address): Likewise.
3870 (sh_function_ok_for_sibcall): Take into account weak symbols.
3871 (sh_expand_sym_label2reg): New.
3872 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3873 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3874 (call_pcrel): Use sh_expand_sym_label2reg.
3875 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3876 (symPCREL_label2reg) New expand.
3878 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3880 * graphite-poly.c: Change type of region from void* to sese.
3881 * graphite-poly.h (struct scop): Changing the type of scop::region
3882 from void* to sese. Change accessor macro accordingly.
3883 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3885 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3887 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3888 Constrain only on INTEGER_TYPE.
3890 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3893 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3894 -mefficient-unaligned-vsx on ISA 2.7.
3896 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3897 option to a masked option.
3899 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3900 logic for -mefficient-unaligned-vsx so that it is set via an arch
3901 ISA option, instead of being set if -mtune=power8 is set. Move
3902 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3903 near other default option handling.
3905 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3907 * genflags.c (gen_macro): Delete.
3908 (gen_proto): Don't create GEN.*CALL.* macros.
3909 * gensupport.h (get_file_location): Declare.
3910 * gensupport.c (rtx_locs): New variable.
3911 (read_md_rtx): Record rtx locations.
3912 (get_file_location): New function.
3913 * target-insns.def (call, call_pop, call_value, call_value_pop)
3914 (sibcall, sibcall_value): New patterns.
3915 * gentarget-def.c (parse_argument): New function.
3916 (def_target_insn): Use it. Handle optional operands. Raise an
3917 error if an .md pattern has the wrong number of operands for the
3918 pattern name. Remove the names of unused operands from the prototype.
3919 * builtins.c (expand_builtin_apply): Use targetm functions
3920 instead of HAVE_call_value and GEN_CALL_VALUE.
3921 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3922 and sibcall_value_pop.
3923 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3925 * config/alpha/alpha.md (untyped_call): Likewise.
3926 * config/iq2000/iq2000.md (untyped_call): Likewise.
3927 * config/m68k/m68k.md (untyped_call): Likewise.
3928 * config/mips/mips.md (untyped_call): Likewise.
3929 * config/pa/pa.md (untyped_call): Likewise.
3930 * config/rs6000/rs6000.md (untyped_call): Likewise.
3931 * config/sparc/sparc.md (untyped_call): Likewise.
3932 * config/tilegx/tilegx.md (untyped_call): Likewise.
3933 * config/tilepro/tilepro.md (untyped_call): Likewise.
3934 * config/visium/visium.md (untyped_call): Likewise.
3935 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3936 gen_call_value instead of GEN_CALL_VALUE.
3937 * config/arm/arm.md (untyped_call): Likewise.
3938 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3941 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3943 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3944 (have_cbranchcc4): New variable.
3945 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3946 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3947 (if_convert): Initialize have_cbranchcc4.
3949 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3951 * builtins.c (expand_cmpstrn): Rename to...
3952 (expand_cmpstrn_or_cmpmem): ...this.
3953 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3954 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3955 Remove mode argument.
3956 (expand_builtin): Update accordingly.
3958 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3960 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3961 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3962 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3963 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3964 Add predicates for operands 0 and 3.
3965 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3967 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3968 immediate_operand to nonmemory_operand.
3970 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3972 * df-scan.c (df_insn_info_init_fields): New function, split out
3974 (df_insn_create_insn_record): ...here.
3975 (df_insn_info_free_fields): New function, split out from...
3976 (df_insn_info_delete): ...here.
3977 (df_insn_rescan): Use the new functions instead of freeing and
3978 reallocating the df_insn_info.
3980 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3982 * doc/install.texi (Binaries): Remove links no longer valid.
3984 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3986 * config/nvptx/mkoffload.c (process): Replace
3987 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3989 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3992 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3994 2015-08-24 Renlin Li <renlin.li@arm.com>
3996 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3997 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3998 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3999 * config/arm/constraints.md ("j"): Add check for high code.
4001 2015-08-24 Tom de Vries <tom@codesourcery.com>
4003 PR tree-optimization/65468
4004 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4007 2015-08-24 Nathan Sidwell <nathan@acm.org>
4009 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4010 change to nvptx_type_from_mode call. Use arg_promotion for both
4011 split and non-split args.
4013 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4015 * target-insns.def (movstr): New pattern.
4016 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4017 (expand_movstr): Use targetm rather than HAVE_movstr/
4020 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4022 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4025 2015-08-24 Andrew Pinski <apinski@cavium.com>
4027 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4028 AARCH64_EXTRA_TUNING_OPTION.
4029 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4031 (aarch64_extra_tuning_flags): Base the shifted value on the index
4032 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4033 * config/aarch64/aarch64.c: Remove the last argument to
4034 AARCH64_EXTRA_TUNING_OPTION.
4036 2015-08-23 Nathan Sidwell <nathan@acm.org>
4038 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4040 (nvptx_declare_function_name): Insert formatting tabs for
4043 2015-08-23 Tom de Vries <tom@codesourcery.com>
4045 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4046 parm_decl, rather than generating a dummy default def in cfun.
4047 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
4048 ssa_name from cfun and child_fn do not share a stmt as def stmt.
4049 (move_stmt_op): Handle PARM_DECl.
4050 (gather_ssa_name_hash_map_from): New function.
4051 (move_sese_region_to_fn): Add default defs for function params, and add
4052 them to vars_map. Release copied ssa names.
4053 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4055 2015-08-23 Tom de Vries <tom@codesourcery.com>
4057 * doc/sourcebuild.texi: Rename vect_no_int_max with
4058 vect_no_int_min_max. Update description.
4060 2015-08-22 Andrew Pinski <apinski@cavium.com>
4062 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4063 * config/aarch64/aarch64-protos.h
4064 (aarch64_fusion_pairs_index): New enum.
4065 (aarch64_fusion_pairs): Base the shifted value on the index instead
4066 Rewrite AARCH64_FUSE_ALL to be based on the end index.
4067 of the argument to AARCH64_FUSION_PAIR.
4068 * config/aarch64/aarch64.c: Remove the last argument to
4069 AARCH64_FUSION_PAIR.
4071 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
4073 * dominance.c (new_zero_array): Define.
4074 (dom_info): Redefine as class with proper encapsulation.
4075 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4077 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4078 allocations/deallocations. Pass function as parameter (instead of
4080 (dom_info::get_idom): Define accessor method.
4081 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4082 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4083 (calculate_dominance_info): Adjust to use dom_info class.
4084 (verify_dominators): Likewise.
4086 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4088 * print-rtl.c (print_rtx): Check the correct range for
4089 flag_dump_unnumbered_links to behave as documented.
4091 PR rtl-optimization/67227
4092 PR rtl-optimization/64164
4093 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4094 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4095 identical gimple_reg exprs.
4097 2015-08-21 Nathan Sidwell <nathan@acm.org>
4099 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4101 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4102 crtl->stack_alignment_needed to determine alignment.
4103 (nvptx_get_drap_rtx): New.
4104 (TARGET_GET_DRAP_RTX): Override.
4105 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4107 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4109 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4111 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4113 * configure.ac: Remove uwin* cases.
4114 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4115 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4116 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4117 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4118 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4119 i[34567]86-*-uwin*, powerpc-*-beos*.
4121 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4123 * gencodes.c (gencodes): Print the comma for the preceding
4124 enum value rather than the current one. Use aliased enum values
4125 rather than #defines for compiled-out patterns.
4126 (main): Update accordingly. Replace LAST_INSN_CODE with
4128 * lra.c (insn_code_data): Update accordingly.
4129 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4130 * recog.h (target_recog): Likewise.
4131 (preprocess_insn_constraints): Change parameter to unsigned int.
4132 * recog.c (preprocess_insn_constraints): Likewise.
4133 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4134 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4136 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4138 PR rtl-optimization/61657
4139 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4140 unsigned. Remove superflous uint64_t cast.
4142 2014-08-21 Felix Yang <felix.yang@huawei.com>
4143 Jiji Jiang <jiangjiji@huawei.com>
4145 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4146 argument and get builtin function code directly from CALL.
4147 (gimple_stringop_fixed_value): Modified accordingly.
4148 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4149 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4151 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4153 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4155 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4157 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4159 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4160 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4161 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4162 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4163 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4164 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4165 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4166 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4167 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4168 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4170 * match.pd (SIN ) : New Operator.
4171 (TAN) : New Operator.
4172 (mult (SQRT@1 @0) @1) : New simplifier.
4173 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4174 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4175 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4176 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4177 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4178 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4179 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4180 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4181 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4182 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4184 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4186 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4187 loop if EXPR is simplified to const value.
4189 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4191 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4192 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4194 2015-08-21 Richard Biener <rguenther@suse.de>
4197 * gimple-fold.c (replace_stmt_with_simplification): Assert
4198 seq is empty when replacing a call with itself but different
4200 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4201 a call require that it is const.
4203 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4205 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4206 * builtins.c (get_object_alignment_2): Adjust.
4207 * varasm.c (align_variable): Likewise.
4208 (get_variable_align): Likewise.
4209 (build_constant_desc): Likewise.
4210 (force_const_mem): Likewise.
4211 * doc/tm.texi.in: Likewise.
4212 * doc/tm.texi: Regenerate.
4214 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4216 * genconfig.c (main): Always define HAVE_cc0.
4217 * recog.c (rest_of_handle_peephole2): Adjust.
4219 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4221 * reorg.c (relax_delay_slots): Don't use #if to check value of
4224 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4226 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4227 * targhooks.c (default_have_conditional_execution): Adjust.
4229 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4231 * rtl.h (rtvec_all_equal_p): Declare.
4232 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4233 * rtl.c (rtvec_all_equal_p): New function.
4234 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4235 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4236 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4237 * config/arm/arm.c (neon_vdup_constant): Likewise.
4238 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4239 * config/tilegx/constraints.md (W, Y): Likewise.
4240 * config/tilepro/constraints.md (W, Y): Likewise.
4241 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4242 (classify_immediate): Use unwrap_const_vec_duplicate.
4243 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4244 (reg_or_v2s8bit_operand): Likewise.
4245 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4246 (reg_or_v4s8bit_operand): Likewise.
4248 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4250 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4251 (vec_shasigma_be): New #define.
4252 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4253 (VPMSUMH): Likewise.
4254 (VPMSUMW): Likewise.
4255 (VPMSUMD): Likewise.
4256 (VPMSUM): New BU_P8V_OVERLOAD_2.
4257 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4258 entries for VEC_MADD and VEC_VPMSUM.
4260 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4262 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4263 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4264 (avr_pgm_check_var_decl): Same.
4266 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4268 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4269 initialization of HFmode scalar type (float16_t) to...
4270 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4273 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4275 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4276 having an -mfp16-format.
4278 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4280 * config/i386/predicates.md (vector_all_ones_operand): Use
4281 CONSTM1_RTX to simplify definition.
4283 2015-08-20 Richard Biener <rguenther@suse.de>
4285 * toplev.c (compile_file): Remove loop calling late_global_decl
4287 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4288 on decls we assembled.
4290 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4292 * common/config/aarch64/aarch64-common.c
4293 (AARCH64_CPU_NAME_LENGTH): Delete.
4294 (aarch64_option_extension): New.
4295 (all_extensions): Likewise.
4296 (processor_name_to_arch): Likewise.
4297 (arch_to_arch_name): Likewise.
4299 (all_architectures): Likewise.
4300 (aarch64_get_extension_string_for_isa_flags): Likewise.
4301 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4303 * config/aarch64/aarch64-protos.h
4304 (aarch64_get_extension_string_for_isa_flags): New.
4305 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4306 (aarch64_option_print): Get the string to print from
4307 aarch64_get_extension_string_for_isa_flags.
4308 (aarch64_declare_function_name): Likewise.
4309 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4310 (MCPU_TO_MARCH_SPEC): This.
4311 (ASM_CPU_SPEC): Use it.
4312 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4313 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4314 (EXTRA_SPEC_FUNCTIONS): Use it.
4316 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4318 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4319 expansion when !ISA_HAS_LWL_LWR.
4320 (mips_block_move_straight): Update the size of elements copied to
4321 account for alignment when !ISA_HAS_LWL_LWR.
4322 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4324 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4326 * expr.c (expand_expr_real_2): Check gimple statement during
4329 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4331 * common.opt (fstack-protector): Initialize to -1.
4332 (fstack-protector-all): Likewise.
4333 (fstack-protector-strong): Likewise.
4334 (fstack-protector-explicit): Likewise.
4335 * configure.ac: Add --enable-default-ssp.
4336 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4337 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4339 * doc/install.texi: Document --enable-default-ssp.
4340 * config.in: Regenerated.
4341 * configure: Likewise.
4343 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4345 PR rtl-optimization/64164
4346 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4347 (parm_in_stack_slot_p): ... this. Disregard mode, what
4348 matters is whether the parm will live in a pseudo or a stack
4350 (expand_one_ssa_partition): Deal with params without a default
4351 def. Disregard mode.
4352 * cfgexpand.h: Renamed function declaration.
4353 * tree-ssa-coalesce.c: Adjust.
4354 * function.c (split_complex_args): Allocate stack slot for
4355 unassigned parms before splitting.
4356 (parm_in_unassigned_mem_p): New. Use it instead of
4357 parm_maybe_byref_p throughout this file.
4358 (assign_parm_setup_block): Use it. Accept pseudos in the
4359 expand-assigned rtl.
4360 (assign_parm_setup_reg): Drop BLKmode requirement.
4361 (assign_parm_setup_stack): Allocate and fill in the address of
4362 unassigned MEM parms.
4364 2015-08-19 David Sherwood <david.sherwood@arm.com>
4366 * genmodes.c (emit_mode_unit_size_inline): New function.
4367 (emit_mode_unit_precision_inline): New function.
4368 (emit_insn_modes_h): Emit new #define. Emit new functions.
4369 (emit_mode_unit_size): New function.
4370 (emit_mode_unit_precision): New function.
4371 (emit_mode_adjustments): Add mode_unit_size adjustments.
4372 (emit_insn_modes_c): Emit new arrays.
4373 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4374 use new inline methods.
4376 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4378 * config/aarch64/aarch64.c (bit_count): Delete prototype
4380 (aarch64_print_operand): Use popcount_hwi instead of the above.
4382 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4384 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4387 2015-08-19 Marek Polacek <polacek@redhat.com>
4390 * gimple-ssa-isolate-paths.c
4391 (insert_trap_and_remove_trailing_statements): Rename to ...
4392 (insert_trap): ... this. Don't remove trailing statements; split
4394 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4396 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4399 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4400 conditionalize the whole on __GNUC__. Add fallback code
4401 depending neither on undefined nor implementation-defined behaviour.
4403 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4405 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4406 whitespaces with tab.
4408 2015-08-19 Florian Weimer <fweimer@redhat.com>
4410 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4411 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4412 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4413 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4416 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4418 * config/arm/arm.c (bounds_check): Use %wd print format
4419 for HOST_WIDE_INT arguments.
4421 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4423 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4424 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4425 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4426 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4427 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4428 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4429 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4430 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4431 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4434 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4436 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4437 function.c, graphite-scop-detection.c, haifa-sched.c,
4438 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4439 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4440 varasm.c: Remove typedefs of structs.
4442 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4444 * config/rs6000/altivec.h (vec_adde): New define.
4445 (vec_addec): Likewise.
4446 (vec_double): Likewise.
4447 (vec_bperm): Likewise.
4449 * config/rs6000/rs6000-builtin.def (ADDE): New
4450 BU_ALTIVEC_OVERLOAD_3.
4452 (DOUBLE): New BU_VSX_OVERLOAD_1.
4453 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4454 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4455 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4456 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4457 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4458 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4459 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4460 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4461 and P8V_BUILTIN_VEC_VBPERMQ.
4463 2015-08-18 Jason Merrill <jason@redhat.com>
4465 * print-tree.c (print_node): Handle TREE_BINFO.
4467 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4470 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4471 we can expand BUILT_IN_SIGNBIT inline.
4472 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4473 * doc/extend.texi: Document the type-generic __builtin_signbit.
4475 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4477 PR rtl-optimization/67218
4478 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4479 (simplify_unary_operation_1): Use it.
4481 2015-08-18 Marek Polacek <polacek@redhat.com>
4484 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4485 if the call isn't valid.
4486 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4487 gimple_call_builtin_p.
4488 (call_may_clobber_ref_p_1): Likewise.
4489 (stmt_kills_ref_p): Likewise.
4491 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4493 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4494 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4495 (mips_hard_regno_scratch_ok): Likewise.
4496 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4497 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4499 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4501 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4502 (determine_value_range): Call refine_value_range_using_guard for
4503 each loop initial condition to improve value range.
4505 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4507 * config/i386/i386.c: Remove include of fibheap.h.
4509 2015-08-17 Richard Biener <rguenther@suse.de>
4511 PR tree-optimization/67221
4512 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4513 (sccvn_dom_walker::before_dom_children): Mark backedges of
4514 non-executable blocks as not executable.
4516 2015-08-17 David Sherwood <david.sherwood@arm.com>
4518 * config/arm/arm.c (neon_element_bits): Replace call to
4519 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4520 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4521 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4522 (neon_vdup_lane<mode>): Likewise.
4523 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4524 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4525 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4526 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4527 * config/spu/spu.c (arith_immediate_p): Likewise.
4528 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4529 * expr.c (expand_expr_real_2): Likewise.
4530 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4531 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4532 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4533 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4535 * fold-const.c (fold_binary_loc): Replace call to
4536 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4537 GET_MODE_UNIT_PRECISION (m).
4539 2015-08-17 Mike Stump <mikestump@comcast.net>
4541 * config/arm/arm.c (arm_block_move_unaligned_straight):
4542 Emit normal move instead of unaligned load when source or destination
4543 are appropriately aligned.
4545 2015-08-17 Richard Biener <rguenther@suse.de>
4546 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4549 * match.pd (div (coss (op @0) : New simplifier.
4551 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4553 PR rtl-optimization/64164
4556 PR rtl-optimization/67000
4559 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4560 * tree-ssa-copyrename.c: Removed.
4561 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4562 -ftree-coalesce-vars.
4563 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4564 * common.opt (ftree-copyrename): Ignore.
4565 (ftree-coalesce-inlined-vars): Likewise.
4566 * doc/invoke.texi: Remove the ignored options above.
4567 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4568 * tree-ssa-coalesce.h: ... here.
4569 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4570 headers required by it.
4571 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4572 across variables when flag_tree_coalesce_vars. Check register
4573 use and promoted modes to allow coalescing. Do not coalesce
4574 maybe-byref parms with SSA_NAMEs of other variables, or
4575 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4576 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4577 with its member functions to tree-ssa-coalesce.c.
4578 (var_map_base_init): Likewise. Renamed to
4579 compute_samebase_partition_bases.
4580 (partition_view_normal): Drop want_bases parameter.
4581 (partition_view_bitmap): Likewise.
4582 * tree-ssa-live.h: Adjust declarations.
4583 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4584 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4585 default defs at the entry point.
4586 (dump_part_var_map): New.
4587 (compute_optimized_partition_bases): New, called by...
4588 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4589 of compute_samebase_partition_bases. Adjust.
4590 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4591 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4592 (ssa_default_def_partition): New.
4593 (get_rtl_for_parm_ssa_default_def): New.
4594 (align_local_variable, add_stack_var): Support anonymous SSA
4596 (defer_stack_allocation): Likewise. Declare earlier.
4597 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4598 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4599 Do no record deferred-allocation marker in
4600 SA.partition_to_pseudo.
4601 (expand_stack_vars): Adjust check for the marker in it.
4602 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4603 redundant MEM attr setting.
4604 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4606 (expand_one_stack_var): ... this. New wrapper to check and
4607 skip already expanded SSA partitions.
4608 (record_alignment_for_reg_var): New, factored out of...
4609 (expand_one_var): ... this.
4610 (expand_one_ssa_partition): New.
4611 (adjust_one_expanded_partition_var): New.
4612 (expand_one_register_var): Check and skip already expanded SSA
4614 (expand_used_vars): Don't create DECLs for anonymous SSA
4615 names. Expand all SSA partitions, then adjust all SSA names.
4616 (pass::execute): Replace the loops that set
4617 SA.partition_to_pseudo from partition leaders and cleared
4618 DECL_RTL for multi-location variables, and that which used to
4619 rename vars and set attrs, with one that clears DECL_RTL and
4620 checks that PARMs and RESULTs default_defs match DECL_RTL.
4621 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4622 * emit-rtl.c: Include stor-layout.h.
4623 (set_reg_attrs_for_parm): Handle NULL decl.
4624 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4626 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4627 rather than its possibly-NULL DECL.
4628 * explow.c (promote_ssa_mode): New.
4629 * explow.h (promote_ssa_mode): Declare.
4630 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4631 (read_complex_part): Export.
4632 * expr.h (read_complex_part): Declare.
4633 * cfgexpand.h (parm_maybe_byref_p): Declare.
4634 * function.c: Include cfgexpand.h.
4635 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4636 (use_register_for_parm_decl): Wrapper for the above to
4637 special-case the result_ptr.
4638 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4639 (split_complex_args): Take assign_parm_data_all argument.
4640 Pass it to rtl_for_parm. Set up rtl and context for split
4641 args. Reset complex parm before fetching its default decl
4643 (assign_parms_unsplit_complex): Use the default-def complex
4644 parm rtl if it matches the components.
4645 (assign_parms_augmented_arg_list): Adjust.
4646 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4647 multiple locations. Recognize split complex args.
4648 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4649 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4650 (assign_parm_setup_block): Prefer SSA-assigned location, and
4651 fill in its address if the memory location of a maybe-byref
4652 parm was not assigned by cfgexpand.
4653 (assign_parm_setup_reg): Likewise. Adjust its mode as
4654 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4655 sure passed_pointer parms don't need conversion. Copy address
4657 (assign_parm_setup_stack): Prefer SSA-assigned location.
4658 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4659 rtl before testing for pointer bounds. Special-case result_ptr.
4660 (expand_function_start): Maybe reset DECL_RTL of result.
4661 Prefer SSA-assigned location for result and static chain.
4662 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4663 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4664 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4665 anonymous SSA names. Use promote_ssa_mode.
4666 (get_temp_reg): Likewise.
4667 (remove_ssa_form): Adjust.
4668 * stor-layout.c (layout_decl): Don't set mem attributes of
4670 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4671 and get its reg_usage for reg invalidation.
4672 (compute_bb_dataflow): Pass it insn.
4673 (emit_notes_in_bb): Likewise.
4675 2015-08-14 Marek Polacek <polacek@redhat.com>
4677 * tree-core.h (tree_base): Fix typo.
4679 2015-08-14 Marek Polacek <polacek@redhat.com>
4682 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4683 nonnull argument position is not outside function arguments.
4685 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4688 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4689 'lconst_atomic' with 'const_atomic'.
4690 (atomic_fetch_<optab><mode>): Likewise.
4691 (atomic_<optab>_fetch<mode>): Likewise.
4692 * config/aarch64/iterators.md (lconst-atomic): Move below
4694 (const_atomic): New.
4696 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4697 Bernd Schmidt <bernds@codesourcery.com>
4699 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4701 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4702 (DWARF2_DEBUGGING_INFO): Don't define.
4703 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4704 * toplev.c (process_options): Add a case for it.
4705 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4706 (dwarf2out_init): Skip most initializations if
4707 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4709 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4710 DWARF2_LINENO_DEBUGGING_INFO.
4711 * opts.c (set_debug_level): Likewise.
4713 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4715 * config/arm/types.md (is_neon_type): Add missing types.
4717 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4719 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4721 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4722 (processor_alias_table): Add skylake description.
4723 (enum processor_model): Add skylake processor.
4724 (arch_names_table): Add skylake record.
4725 * doc/invoke.texi: Add skylake item.
4727 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4729 * ira-int.h: Include recog.h.
4730 * ira-build.c: Don't include recog.h.
4731 * ira-color.c: Likewise.
4732 * ira-conflicts.c: Likewise.
4733 * ira-costs.c: Likewise.
4734 * ira-emit.c: Likewise.
4735 * ira-lives.c: Likewise.
4737 * sched-deps.c: Likewise.
4738 * sel-sched.c: Likewise.
4739 * target-globals.c: Likewise.
4741 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4744 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4745 compiler that the n_dups and n_operands loop bounds are invariant.
4747 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4749 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4750 expressions in A and B.
4752 2015-08-13 Richard Biener <rguenther@suse.de>
4754 * tree.c (nonnull_arg_p): Move from ...
4755 * tree-vrp.c (nonnull_arg_p): ... here.
4756 * tree.h (nonnull_arg_p): Declare.
4757 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4758 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4759 Properly initialize static chain and by-reference result pointer.
4760 (run_scc_vn): Adjust.
4762 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4764 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4767 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4769 * config/aarch64/aarch64-protos.h
4770 (aarch64_gen_atomic_cas): Declare.
4771 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4772 Choose appropriate instruction pattern for the target.
4773 (aarch64_gen_atomic_cas): New.
4774 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4775 (atomic_compare_and_swap<mode>_1): Rename to
4776 aarch64_compare_and_swap<mode>. Fix some indentation.
4777 (aarch64_compare_and_swap<mode>_lse): New.
4778 (aarch64_atomic_cas<mode>): New.
4780 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4782 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4785 2015-08-13 Richard Biener <rguenther@suse.de>
4787 PR tree-optimization/67191
4788 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4789 assert we value-numbered last stmts operand because it can validly
4790 trigger for unreachable code.
4792 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4794 PR rtl-optimization/67103
4795 * ifcvt.c (noce_try_store_flag_constants): Move
4796 x = (-(test != 0) & (b - a)) + a transformation to...
4797 (noce_try_cmove): ... Here. Try it if normal conditional
4800 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4802 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4804 * config/mips/mips.md (processor): Remove w32 and w64.
4806 2015-08-13 Richard Biener <rguenther@suse.de>
4808 PR tree-optimization/66502
4809 PR tree-optimization/67167
4810 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4812 (vn_phi_lookup): Adjust.
4813 (vn_phi_insert): Likewise.
4814 (visit_phi): Prefer to value-number to another PHI node
4815 over value-numbering to a PHI argument.
4816 (init_scc_vn): Mark DFS back edges.
4818 2015-08-13 Richard Biener <rguenther@suse.de>
4820 * gimple.h (gcall::code_): New constant static member.
4821 (gcond::code_): Likewise.
4822 * gimple.c (gcall::code_): Define.
4823 (gcond::code_): Likewise.
4824 (is_a_helper <const gcond *>): Add.
4825 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4826 and forward to a new gcall overload with less checking and a
4827 cheaper way to access the operand.
4828 (gimple_call_lhs_ptr): Likewise.
4829 (gimple_call_set_lhs): Likewise.
4830 (gimple_call_internal_p): Likewise.
4831 (gimple_call_with_bounds_p): Likewise.
4832 (gimple_call_set_with_bounds): Likewise.
4833 (gimple_call_internal_fn): Likewise.
4834 (gimple_call_set_ctrl_altering): Likewise.
4835 (gimple_call_ctrl_altering_p): Likewise.
4836 (gimple_call_fntype): Likewise.
4837 (gimple_call_fn): Likewise.
4838 (gimple_call_fn_ptr): Likewise.
4839 (gimple_call_set_fndecl): Likewise.
4840 (gimple_call_fndecl): Likewise.
4841 (gimple_call_chain): Likewise.
4842 (gimple_call_num_args): Likewise.
4843 (gimple_call_arg): Likewise.
4844 (gimple_call_arg_ptr): Likewise.
4845 (gimple_call_set_arg): Likewise.
4846 (gimple_call_noreturn_p): Likewise.
4847 (gimple_cond_code): Likewise.
4848 (gimple_cond_lhs): Likewise.
4849 (gimple_cond_rhs): Likewise.
4850 (gimple_has_lhs): Reduce checking.
4852 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4855 * match.pd (div (mult @0 @1) @1) : New simplifier.
4857 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4860 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4861 predicate to allow construction of vector constants using the
4862 VSLDOI vector shift instruction.
4864 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4867 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4868 the number of bytes to be shifted left and filled in with either
4869 all zero or all one bits.
4870 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4872 (output_vec_const_move): On power8, generate XXLORC to generate
4873 a vector constant with all 1's. Do a split if we need to use a
4876 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4877 properly test for the MSB.
4879 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4880 vector constants that can be created with VSLDOI.
4882 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4885 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4886 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4887 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4888 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4889 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4890 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4891 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4892 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4893 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4895 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4897 * config/xtensa/constraints.md (define_constraint "Y"): New
4899 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4900 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4901 * config/xtensa/predicates.md (move_operand): Match constants
4902 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4903 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4904 immediate references to TLS data.
4905 (xtensa_emit_move_sequence): Don't force constants to memory in
4906 the presence of TARGET_AUTO_LITPOOLS.
4907 (print_operand): Add 'y' format, same as default, but capable of
4908 printing SF mode constants as well.
4909 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4910 (movsf_internal): Add movi pattern that loads literal.
4911 (movsf, movdf): Don't force constants to memory in the presence
4912 of TARGET_AUTO_LITPOOLS.
4913 (movdf_internal): Add 'Y' constraint.
4914 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4915 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4917 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4919 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4921 * config/arm/arm.c (ARM_FPU): Update macro.
4922 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4923 (TARGET_FP16): Likewise.
4924 (TARGET_CRYPTO): Likewise.
4925 (TARGET_NEON): Likewise.
4926 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4929 2015-08-12 Tom de Vries <tom@codesourcery.com>
4933 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4934 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4935 accordingly. Mention default for --with-stage1-ldflags.
4937 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4939 * config/arm/arm.h (arm_fpu_feature_set): New.
4940 (ARM_FPU_FSET_HAS): New.
4944 (FPU_FL_CRYPTO): New.
4946 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4948 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4949 after -mcmodel=large -fPIC sorry.
4951 2015-08-12 Richard Biener <rguenther@suse.de>
4953 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4954 comparison operand order and commutative ternary op operand order.
4955 (sccvn_dom_walker::cond_stack): New state to track temporary
4957 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4959 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4961 (sccvn_dom_walker::record_conds): Add a temporary conditional
4962 expressions and all related expressions also true/false.
4963 (sccvn_dom_walker::before_dom_children): Record temporary
4964 expressions based on the controlling condition of a single
4965 predecessor. When trying to simplify a conditional statement
4966 lookup expressions we might have inserted earlier.
4968 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4971 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4972 to ARM core registers.
4974 2015-08-12 Nathan Sidwell <nathan@acm.org>
4976 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4977 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4979 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4981 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4983 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4985 2015-08-12 Richard Biener <rguenther@suse.de>
4987 * gimple.h (remove_pointer): New trait.
4988 (GIMPLE_CHECK2): New inline template function.
4989 (gassign::code_): New constant static member.
4990 (is_a_helper<const gassign *>): Add.
4991 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4992 and forward to a new gassign overload with less checking and a
4993 cheaper way to access the operand.
4994 (gimple_assign_lhs_ptr): Likewise.
4995 (gimple_assign_set_lhs): Likewise.
4996 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4998 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5000 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5002 (gimple_assign_rhs_code): Likewise.
5003 * gimple.c (gassign::code_): Define.
5005 2015-08-12 Richard Biener <rguenther@suse.de>
5007 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5008 Eliminate edges marked as not executable by SCCVN.
5009 * tree-ssa-sccvn.c: Include gimple-iterator.h.
5010 (cond_dom_walker): Rename to sccvn_dom_walker.
5011 (sccvn_dom_walker::before_dom_children): Value-number defs
5013 (run_scc_vn): Remove loop value-numbering all SSA names.
5014 Drop not visited SSA names to varying.
5016 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5018 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5019 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5020 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5021 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5022 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5023 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5024 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5025 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5026 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5028 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
5031 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5032 to enum feature_priority and feature_list.
5033 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5034 and isa_names_table.
5036 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5038 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5041 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5045 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5046 account when deciding what was the command-line status.
5048 2015-08-11 Nathan Sidwell <nathan@acm.org>
5050 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5052 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5053 we're not the only contributor to target phi.
5055 2015-08-11 Jiong Wang <jiong.wang@arm.com>
5057 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5060 2015-08-11 Tom de Vries <tom@codesourcery.com>
5062 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5064 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
5066 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5068 * config/i386/i386.md (cpu): Remove knl.
5070 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5074 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5075 open-coded sequence.
5076 * omp-low.c (oacc_process_reduction_data): Remove handline of
5077 GOMP_DEVICE_HOST_NONSHM.
5079 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5080 GET_MODE_INNER changes.
5082 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5083 Ilya Verbin <ilya.verbin@intel.com>
5085 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5087 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5089 * doc/options.texi (EnabledBy): Document that the argument must be
5091 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5092 Not enabled by -Wall.
5093 * optc-gen.awk: Give nicer error messages. Detect if the argument
5094 of EnabledBy is not a Common option.
5095 * common.opt (Wnull-dereference): Not enabled by -Wall.
5096 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5098 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5100 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5101 model == 0x4f as Broadwell.
5103 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5105 PR rtl-optimization/67028
5106 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5107 Add test to see if a const_int fits in the new mode.
5109 2015-08-07 DJ Delorie <dj@redhat.com>
5111 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5113 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5115 PR rtl-optimization/67029
5116 * ira-color.c: Include "recog.h" before including "ira-int.h".
5117 * target-globals.c: Likewise.
5118 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5119 adds an alternative_mask argument and use it instead of
5120 preferred_alternatives.
5121 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5122 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5123 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5124 (sched_analyze_insn): Update call to
5125 ira_implicitly_set_insn_hard_regs.
5126 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5127 (implicit_clobber_conflict_p): Update call to
5128 ira_implicitly_set_insn_hard_regs.
5130 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5132 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5134 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5137 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5138 currently_expanding_to_rtl is set.
5140 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5142 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5143 * configure: Regenerate.
5145 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5146 Jiong Wang <jiong.wang@arm.com>
5148 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5149 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5150 (REG_CLASS_NAMES): Likewise.
5151 (REG_CLASS_CONTENTS): Likewise.
5152 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5153 (aarch64_register_move_cost): Likewise.
5154 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5156 * config/aarch64/constraints.md (Uc0): New constraint.
5158 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5160 * config/aarch64/constraints.md (Usf): Add the test of
5161 aarch64_is_noplt_call_p.
5163 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5165 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5167 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5168 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5169 (call_symbol): Likewise.
5171 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5173 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5174 for vectorizing multiplication patterns.
5175 * tree-vectorizer.h: Adjust the number of patterns.
5177 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5179 * config/i386/sse.md (*vec_concatv2df): Declare added
5180 alternatives as sselog type.
5182 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5184 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5187 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5189 * config/s390/s390.c (s390_expand_tbegin): Expand either
5190 tbegin_1_z13 or tbegin_1 depending on VX flag.
5191 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5193 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5195 * config/s390/s390.opt: Clarify description for -mzvector
5196 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5199 2015-08-06 Richard Biener <rguenther@suse.de>
5201 * gimple.h (gimple_call_set_fn): Access op member directly.
5202 (gimple_call_chain_ptr): Likewise.
5203 (gimple_call_set_chain): Likewise.
5204 (gimple_cond_lhs_ptr): Likewise.
5205 (gimple_cond_set_lhs): Likewise.
5206 (gimple_cond_rhs_ptr): Likewise.
5207 (gimple_cond_set_rhs): Likewise.
5208 (gimple_cond_true_label): Likewise.
5209 (gimple_cond_set_true_label): Likewise.
5210 (gimple_cond_set_false_label): Likewise.
5211 (gimple_cond_false_label): Likewise.
5212 (gimple_label_label): Likewise.
5213 (gimple_label_set_label): Likewise.
5214 (gimple_goto_set_dest): Likewise.
5215 (gimple_asm_input_op): Likewise.
5216 (gimple_asm_input_op_ptr): Likewise.
5217 (gimple_asm_set_input_op): Likewise.
5218 (gimple_asm_output_op): Likewise.
5219 (gimple_asm_output_op_ptr): Likewise.
5220 (gimple_asm_set_output_op): Likewise.
5221 (gimple_asm_clobber_op): Likewise.
5222 (gimple_asm_set_clobber_op): Likewise.
5223 (gimple_asm_label_op): Likewise.
5224 (gimple_asm_set_label_op): Likewise.
5225 (gimple_switch_index): Likewise.
5226 (gimple_switch_index_ptr): Likewise.
5227 (gimple_return_retval_ptr): Likewise.
5228 (gimple_return_retval): Likewise.
5229 (gimple_return_set_retval): Likewise.
5230 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5231 (gimple_switch_label): Likewise.
5232 (gimple_switch_set_label): Likewise.
5234 2015-08-06 Richard Biener <rguenther@suse.de>
5236 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5237 bool comparison canonicalization and restrict to integers.
5239 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5241 * coretypes.h (enum symbol_visibility): Relocate here.
5242 * flag-types.h (enum symbol_visibility): Remove.
5243 * tree-core.h (enum symbol_visibility): Remove.
5245 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5248 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5249 for no_split_stack function attribute along with
5251 (rs6000_expand_split_stack_prologue): Likewise.
5253 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5254 Jeff Law <law@redhat.com>
5257 * doc/invoke.texi (Wnull-dereference): New.
5258 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5259 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5260 Warn for potential NULL dereferences.
5261 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5262 * ubsan.c (instrument_nonnull_arg): Call
5263 infer_nonnull_range_by_attribute.
5264 (instrument_nonnull_return): Likewise.
5265 * common.opt (Wnull-dereference); New.
5266 * gimple.c (infer_nonnull_range): Remove bool arguments.
5267 (infer_nonnull_range_by_dereference): New.
5268 (infer_nonnull_range_by_attribute): New.
5269 * gimple.h: Update declarations.
5271 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5273 * gensupport.c (sequence_num): Replace with...
5274 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5275 ...these new variables.
5276 (init_rtx_reader_args_cb): Update accordingly.
5277 (get_num_code_insns): Likewise.
5278 (read_md_rtx): Rework to use a while loop and get_c_test.
5279 Use the new counters. Remove redundant DEFINE_SUBST case.
5280 * genoutput.c (gen_split): Delete.
5281 (main): Don't call it.
5283 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5285 * gensupport.h (get_c_test): Declare.
5286 * gensupport.c (get_c_test): New function.
5287 * genconditions.c (main): Use it.
5288 * genrecog.c (validate_pattern): Likewise.
5289 (match_pattern_1): Likewise. Remove c_test argument.
5290 (match_pattern): Update accordingly and remove c_test argument.
5291 (main): Update accordingly.
5293 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5295 * gensupport.h (get_num_insn_codes): Declare.
5296 * gensupport.c (get_num_insn_codes): New function.
5297 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5299 (main): Likewise. Use get_num_insn_codes.
5300 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5302 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5305 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5306 is zero- rather than sign-extended.
5308 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5310 * target-insns.def (can_extend): Delete.
5312 2015-08-05 Richard Biener <rguenther@suse.de>
5314 PR tree-optimization/67121
5315 * tree-if-conv.c (combine_blocks): Clear range-info produced
5316 by stmts no longer executed conditionally.
5318 2015-08-05 Nick Clifton <nickc@redhat.com>
5320 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5321 to allow identical far pointers to remain.
5323 2015-08-05 Richard Biener <rguenther@suse.de>
5326 * match.pd: Compare address bases with == if they are decls
5327 or SSA names, not operand_equal_p. Otherwise fail.
5329 2015-08-05 Richard Biener <rguenther@suse.de>
5331 PR tree-optimization/67055
5332 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5335 * g++.dg/torture/pr67055.C: New testcase.
5337 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5339 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5341 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5342 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5343 AVX-512 alternative out of SSE.
5344 (define_insn "*vec_concatv2df"): Ditto.
5346 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5348 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5349 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5350 CODE_FOR_avx_ptestv4di.
5351 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5352 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5353 (define_insn "avx_ptest256"): Merge this ...
5354 (define_insn "sse4_1_ptest"): And this ...
5355 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5357 2015-08-05 Richard Biener <rguenther@suse.de>
5359 PR tree-optimization/67109
5360 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5361 against too big groups. Print whether this is a load or store
5362 group. Rename from ...
5363 (vect_analyze_group_access): ... this which is now a wrapper
5364 dissolving an invalid group.
5365 (vect_analyze_data_ref_accesses): Print whether this is a load
5368 2015-08-05 Richard Biener <rguenther@suse.de>
5371 * match.pd: Guard const_binop result checking against NULL_TREE
5374 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5376 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5377 when dest and value in the REG_EQUAL are same and dest
5380 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5382 * config/moxie/moxie.h (PRINT_OPERAND,
5383 PRINT_OPERAND_ADDRESS): Remove macros.
5384 * config/moxie/moxie-protos.h (moxie_print_operand,
5385 moxie_print_operand_address): Remove declaration.
5386 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5387 TARGET_PRINT_OPERAND_ADDRESS): Define.
5388 (moxie_print_operand, moxie_print_operand_address): Make static.
5390 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5393 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5394 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5396 2015-08-04 Richard Biener <rguenther@suse.de>
5398 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5400 (dt_operand::gen_gimple_expr): Adjust.
5402 2015-08-04 Richard Biener <rguenther@suse.de>
5404 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5405 bool compares on RHS.
5406 * match.pd: Add X ==/!= !X is false/true pattern.
5408 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5410 * config/aarch64/aarch64.c: Change inner loop statement cost
5411 to be consistent with other targets.
5413 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5415 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5418 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5420 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5421 (machine_function): Remove pseudos field.
5423 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5425 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5426 Exit early and use target_option_current_node if processing current
5429 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5431 * doc/extend.texi (AArch64 Function Attributes): New node.
5432 (AArch64 Pragmas): Likewise.
5434 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5436 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5437 Initialize simd builtins if TARGET_SIMD.
5438 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5439 Make sure that the builtins are initialized only once no matter how
5440 many times the function is called.
5441 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5442 (aarch64_relayout_simd_param): New function.
5443 (aarch64_simd_expand_args): Use above during argument expansion.
5444 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5445 simd builtins if TARGET_SIMD.
5446 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5448 (aarch64_relayout_simd_types): Likewise.
5450 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5452 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5453 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5454 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5455 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5457 (aarch64_reset_previous_fndecl): New function.
5458 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5460 * config/aarch64/aarch64-c.c: New file.
5461 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5462 Push and pop options at beginning and end. Remove ifdef
5463 __ARM_FEATURE_CRC32.
5464 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5465 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5466 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5467 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5469 (aarch64_register_pragmas): Likewise.
5470 (aarch64_reset_previous_fndecl): Likewise.
5471 (aarch64_process_target_attr): Likewise.
5472 (aarch64_override_options_internal): Likewise.
5474 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5476 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5478 (aarch64_can_inline_p): Likewise.
5479 (TARGET_CAN_INLINE_P): Define.
5481 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5483 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5484 Remove static. Handle OPT_mgeneral_regs_only,
5485 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5486 OPT_momit_leaf_frame_pointer.
5487 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5488 (aarch64_attr_opt_type): New enum.
5489 (aarch64_attribute_info): New struct.
5490 (aarch64_handle_attr_arch): New function.
5491 (aarch64_handle_attr_cpu): Likewise.
5492 (aarch64_handle_attr_tune): Likewise.
5493 (aarch64_handle_attr_isa_flags): Likewise.
5494 (aarch64_attributes): New table.
5495 (aarch64_process_one_target_attr): New function.
5496 (num_occurences_in_str): Likewise.
5497 (aarch64_process_target_attr): Likewise.
5498 (aarch64_option_valid_attribute_p): Likewise.
5499 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5500 * config/aarch64/aarch64-protos.h: Include input.h
5501 (aarch64_handle_option): Declare prototype.
5503 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5505 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5506 * config/aarch64/aarch64.c: Include target-globals.h
5507 (aarch64_previous_fndecl): New variable.
5508 (aarch64_set_current_function): New function.
5509 (TARGET_SET_CURRENT_FUNCTION): Define.
5511 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5513 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5514 (explicit_arch): Likewise.
5515 (x_aarch64_isa_flags): Likewise.
5516 (mgeneral-regs-only): Mark as Save.
5517 (mfix-cortex-a53-835769): Likewise.
5518 (mcmodel=): Likewise.
5519 (mstrict-align): Likewise.
5520 (momit-leaf-frame-pointer): Likewise.
5521 (mtls-dialect): Likewise.
5522 (master=): Likewise.
5523 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5524 (aarch64_isa_flags): Remove extern declaration.
5525 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5526 to indicate success or failure.
5527 (aarch64_validate_march): Likewise.
5528 (aarch64_validate_mtune): Likewise.
5529 (aarch64_isa_flags): Delete.
5530 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5531 instead of aarch64_isa_flags.
5532 (aarch64_get_tune_cpu): New function.
5533 (aarch64_get_arch): Likewise.
5534 (aarch64_override_options): Use above and set up explicit_tune_core
5536 (aarch64_print_extension): Move earlier in file. Add isa_flags
5537 argument and use that instead of the global aarch64_isa_flags.
5538 (aarch64_option_save): New function.
5539 (aarch64_option_restore): Likewise.
5540 (aarch64_option_print): Likewise.
5541 (aarch64_declare_function_name): Likewise.
5542 (aarch64_start_file): Delete.
5543 (TARGET_ASM_FILE_START): Do not define.
5544 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5545 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5548 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5550 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5551 flag_omit_leaf_frame_pointer to 2.
5553 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5555 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5557 (TARGET_FIX_ERR_A53_835769): New macro.
5558 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5559 handling of opts->x_aarch64_fix_a53_err835769.
5560 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5561 than aarch64_fix_a53_err835769.
5562 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5563 * config/aarch64/aarch64-linux.h: Likewise.
5565 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5567 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5568 ix86_expand_int_movcc as boolean.
5570 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5572 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5573 (aarch64_cpu_string): Likewise.
5574 (aarch64_tune_string): Likewise.
5575 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5576 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5577 Add extra argument to put result into.
5578 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5579 (aarch64_parse_cpu): Add arguments to put results into. Return
5580 aarch64_parse_opt_result.
5581 (aarch64_parse_tune): Likewise.
5582 (aarch64_override_options_after_change_1): New function.
5583 (aarch64_override_options_internal): New function.
5584 (aarch64_validate_mcpu): Likewise.
5585 (aarch64_validate_march): Likewise.
5586 (aarch64_validate_mtune): Likewise.
5587 (aarch64_override_options): Update to reflect above changes.
5588 Move some logic into aarch64_override_options_internal.
5589 Initialize target_option_default_node and target_option_current_node.
5590 (aarch64_override_options_after_change): Move logic into
5591 aarch64_override_options_after_change_1 and call it with global_options.
5592 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5593 flag values from that.
5595 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5597 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5598 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5599 * config/aarch64/aarch64.c (struct processor): Add arch field.
5600 (all_architectures): Handle above, move above all_cores.
5601 (all_cores): Handle above.
5602 (aarch64_parse_arch): Handle above changes.
5603 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5604 above. Update comments.
5605 (armv8.1-a): Likewise.
5606 * config/aarch64/aarch64-cores.def: Update according to above.
5607 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5608 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5609 aarch64_arch_driver_info.
5611 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5613 * config/aarch64/aarch64.c (struct processor): Add ident field.
5614 Rename core sched_core.
5615 (all_cores): Handle above changes.
5616 (all_architectures): Likewise.
5617 (aarch64_parse_arch): Likewise.
5618 (aarch64_override_options): Likewise.
5620 2015-08-04 Richard Biener <rguenther@suse.de>
5622 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5623 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5624 comparisons embedded in [VEC_]COND_EXPRs.
5626 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5628 * tree-if-conv.c: Fix various typos in comments.
5629 * tree-vect-stmts.c: Likewise.
5631 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5633 PR tree-optimization/67043
5634 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5635 preheader after hoisting invariant in it.
5636 (find_defs): Force recomputation of all luids.
5638 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5640 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5641 using a base register.
5643 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5645 * main.c (main): Pass in NULL for toplev's external_timer.
5646 * timevar.c: Include coretypes.h.
5647 (class timer::named_items): New.
5648 (timer::named_items::named_items): New.
5649 (timer::named_items::~named_items): New.
5650 (timer::named_items::push): New.
5651 (timer::named_items::pop): New.
5652 (timer::named_items::print): New.
5653 (timer::timer): Initialize field "m_jit_client_items".
5654 (timer::~timer): New.
5655 (timer::push): Move bulk of implementation to...
5656 (timer::push_internal): ...here. New function.
5657 (timer::pop): Move bulk of implementation to...
5658 (timer::pop_internal): ...here. New function.
5659 (timer::push_client_item): New.
5660 (timer::pop_client_item): New.
5661 (timer::print_row): New function, taken from timer::print.
5662 (timer::print): Print "GCC items" header if we also have client
5663 items. Move row-printing to timer::print_row. Print any client
5665 (timer::get_topmost_item_name): New method.
5666 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5667 (TV_JIT_CLIENT_CODE): New.
5668 * timevar.h (timer::push_client_item): New declaration.
5669 (timer::pop_client_item): New declaration.
5670 (timer::get_topmost_item_name): New method.
5671 (timer::push_internal): New declaration.
5672 (timer::pop_internal): New declaration.
5673 (timer::print_row): New declaration.
5674 (timer::named_items): New declaration.
5675 (timer::m_jit_client_items): New field.
5676 (timer): Add friend class named_items.
5677 (auto_timevar::auto_timevar): Add timer param.
5678 (auto_timevar::~auto_timevar): Use field "m_timer".
5679 (auto_timevar::m_timer): New field.
5680 * toplev.c (initialize_rtl): Add g_timer as param when
5681 constructing auto_timevar instance.
5682 (toplev::toplev): Add "external_timer" param, and use it to
5683 initialize the "g_timer" global if non-NULL.
5684 (toplev::~toplev): If this created "g_timer", delete it.
5685 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5686 with "external_timer" timer *.
5688 2015-08-03 Alexander Basov <coohpt@gmail.com>
5693 * cfgexpand.c (expand_one_var): Add check if stack is going to
5694 be used in naked function.
5695 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5696 whether expression should not reside in MEM.
5697 * function.c (use_register_for_decl): Do not use registers for
5698 non-register things (volatile, float, BLKMode) in naked functions.
5700 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5703 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5704 Adjust splits to match new pattern.
5706 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5708 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5711 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5712 point in VSX registers.
5714 * config/rs6000/constraints.md (wb constraint): Document unused
5716 (we constraint): Likewise.
5717 (wo constraint): Likewise.
5718 (wp constraint): New constraint for IEEE 128-bit floating point in
5720 (wq constraint): Likewise.
5722 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5723 IEEE 128-bit floating point in VSX registers.
5724 (easy_scalar_constant): Likewise.
5726 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5727 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5729 (rs6000_init_hard_regno_mode_ok): Likewise.
5731 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5732 floating point in VSX registers.
5741 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5742 IEEE 128-bit floating point in VSX registers on little endian.
5743 (vsx_le_undo_permute_<mode>): Likewise.
5744 (vsx_le_perm_load_<mode>): Likewise.
5745 (vsx_le_perm_store_<mode>): Likewise.
5746 (splitters for IEEE 128-bit fp moves): Likewise.
5748 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5751 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5752 floating point in VSX registers.
5755 * doc/md.text (Machine Constraints): Document wp and wq
5756 constraints on PowerPC.
5758 2015-08-03 Jeff Law <law@redhat.com>
5761 PR gcov-profile/66899
5762 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5763 iterate over the jump threading paths when an element in the
5764 jump threading paths array is eliminated.
5766 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5768 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5770 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5772 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5773 is_use_properly_guarded the variable def_preds. Free its
5774 contents before returning.
5775 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5776 (is_use_properly_guarded): Replace local variable def_preds with
5777 a parameter. Adjust accordingly. Only update *def_preds if it's
5780 2015-08-03 Richard Biener <rguenther@suse.de>
5782 * genmatch.c (simplify::for_subst_vec): New member.
5783 (binary_ok): New helper for for lowering.
5784 (lower_for): Delay substituting operators into result expressions
5785 if we can merge the results eventually again.
5786 (capture_info::walk_result): Adjust for user_id appearing as
5787 result expression operator.
5788 (expr::gen_transform): Likewise.
5789 (dt_simplify::gen_1): Likewise.
5790 (dt_simplify::gen): Pass not substituted operators to tail
5791 functions or initialize local variable with it.
5792 (decision_tree::gen): Adjust function signature.
5793 * match.pd: Fix tests against global code and add default
5794 cases to switch stmts.
5796 2015-08-03 Richard Biener <rguenther@suse.de>
5798 * genmatch.c (dt_simplify::gen): Create captures array
5799 with an initializer.
5801 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5803 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5804 the host compiler is affected by placement new aliasing bug.
5805 * configure: Regenerate.
5806 * Makefile.in (ALIASING_FLAGS): New variable.
5807 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5809 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5812 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5813 (negmulsf3_vfp): Likewise.
5814 (muldf3negdf_vfp): Disable for -frounding-math.
5815 (mulsf3negsf_vfp): Likewise.
5816 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5817 fix MULT cost with -frounding-math.
5819 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5821 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5822 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5823 explicit. Prefer to add the flag whenever possible.
5824 (noce_process_if_block): Try noce_try_store_flag_constants before
5827 2015-08-03 Richard Biener <rguenther@suse.de>
5829 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5830 New hash-map to record equivalent transforms.
5831 (dt_node::analyze): Populate the equivalent transforms hash-map.
5832 (dt_simplify::info): Add reference to hash-map entry.
5833 (dt_simplify::gen): If we have split out a function for the
5834 transform, generate a call to it.
5835 (sinfo_hashmap_traits::hash): New function.
5836 (compare_op): New helper function for ...
5837 (sinfo_hashmap_traits::equal_keys): ... this new function.
5838 (decision_tree::gen): Split out common equivalent transforms
5841 2015-08-03 Richard Biener <rguenther@suse.de>
5843 * gimple-fold.c (fold_gimple_assign): Remove folding of
5844 the comparison in COND_EXPRs.
5846 2015-08-03 Richard Biener <rguenther@suse.de>
5848 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5849 on the rhs of assignments first simplify the embedded
5852 2015-08-03 Richard Biener <rguenther@suse.de>
5854 PR tree-optimization/66917
5855 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5857 (DR_VECT_AUX): New macro.
5858 (set_dr_misalignment): Adjust.
5859 (dr_misalignment): Likewise.
5860 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5861 Compute whether the base is at least element aligned.
5862 * tree-vect-stmts.c (ensure_base_align): Adjust.
5863 (vectorizable_store): If the base is not element aligned
5864 preserve alignment of the original access if misalignment is unknown.
5865 (vectorizable_load): Likewise.
5867 2015-08-02 Martin Sebor <msebor@redhat.com>
5869 * c-family/c.opt (-Wframe-address): New warning option.
5870 * doc/invoke.texi (Wframe-address): Document it.
5871 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5872 Clarify possible effects of calling the functions with non-zero
5873 arguments and mention -Wframe-address.
5874 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5876 2015-08-01 Michael Collison <michael.collison@linaro.org
5877 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5879 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5880 (*arm_umin_cmp): Likewise.
5882 2015-08-01 Caroline Tice <cmtice@google.com>
5885 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5887 (vtbl_find_mangled_name): New function.
5888 (vtbl_register_mangled_name): New function.
5889 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5890 mangled name in mangled name vectors.
5891 (find_or_create_vtbl_map_node): Ditto.
5892 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5893 update recursion_depth on function entry; pass it to every recursive
5894 call; automatically exit if depth > 25 (give up looking at that point).
5895 (verify_bb_vtables): Initialize recursion_depth and pass it to
5896 var_is_used_for_virtual_call_p.
5897 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5898 global variable decls.
5899 (vtbl_register_mangled_name): New extern function decl.
5901 2015-08-01 Tom de Vries <tom@codesourcery.com>
5903 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5905 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5907 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5908 operation_no_trapping_overflow. Allow non-overflow operations.
5909 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5912 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5915 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5917 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5919 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5920 Enable for TARGET_32BIT.
5921 (*if_move_neg): Likewise.
5923 2015-07-31 Nick Clifton <nickc@redhat.com>
5925 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5926 Returns true for __model__.
5927 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5929 2015-07-31 Alan Modra <amodra@gmail.com>
5932 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5933 (rs6000_emit_prologue): Set it.
5934 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5936 2015-07-31 Richard Biener <rguenther@suse.de>
5938 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5939 -> X == (C1 ^ C2) which is already implemented in match.pd.
5940 Remove redundant dispatching to fold_relational_const.
5941 Move unordered self and NaN compares ...
5942 * match.pd: ... as patterns here. Remove some stray captures
5945 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5947 * config/i386/i386.c
5948 (bdesc_special_args): Convert mask type from signed to unsigned for
5950 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5951 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5952 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5953 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5954 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5955 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5956 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5957 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5958 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5959 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5960 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5961 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5962 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5963 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5964 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5965 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5966 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5967 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5968 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5969 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5970 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5971 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5972 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5973 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5974 * config/i386/i386-builtin-types.def
5975 (V16QI_FTYPE_V16SI): Remove.
5976 (V8DF_FTYPE_V8SI): Ditto.
5977 (V8HI_FTYPE_V8DI): Ditto.
5978 (V8SI_FTYPE_V8DI): Ditto.
5979 (V8SF_FTYPE_V8DF): Ditto.
5980 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5981 (V16HI_FTYPE_V16SI): Ditto.
5982 (V16SF_FTYPE_V16HI): Ditto.
5983 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5984 (V16SF_FTYPE_V16SI): Ditto.
5985 (V4DI_FTYPE_V4DI): Ditto.
5986 (V16SI_FTYPE_V16SF): Ditto.
5987 (V16SF_FTYPE_FLOAT): Ditto.
5988 (V8DF_FTYPE_DOUBLE): Ditto.
5989 (V8DI_FTYPE_INT64): Ditto.
5990 (V8DI_FTYPE_V4DI): Ditto.
5991 (V16QI_FTYPE_V8DI): Ditto.
5992 (UINT_FTYPE_V4SF): Ditto.
5993 (UINT64_FTYPE_V4SF): Ditto.
5994 (UINT_FTYPE_V2DF): Ditto.
5995 (UINT64_FTYPE_V2DF): Ditto.
5996 (V16SI_FTYPE_V16SI): Ditto.
5997 (V8DI_FTYPE_V8DI): Ditto.
5998 (V16SI_FTYPE_PV4SI): Ditto.
5999 (V16SF_FTYPE_PV4SF): Ditto.
6000 (V8DI_FTYPE_PV2DI): Ditto.
6001 (V8DF_FTYPE_PV2DF): Ditto.
6002 (V4DI_FTYPE_PV2DI): Ditto.
6003 (V4DF_FTYPE_PV2DF): Ditto.
6004 (V16SI_FTYPE_PV2SI): Ditto.
6005 (V16SF_FTYPE_PV2SF): Ditto.
6006 (V8DI_FTYPE_PV4DI): Ditto.
6007 (V8DF_FTYPE_PV4DF): Ditto.
6008 (V8SF_FTYPE_FLOAT): Ditto.
6009 (V4SF_FTYPE_FLOAT): Ditto.
6010 (V4DF_FTYPE_DOUBLE): Ditto.
6011 (V8SF_FTYPE_PV4SF): Ditto.
6012 (V8SI_FTYPE_PV4SI): Ditto.
6013 (V4SI_FTYPE_PV2SI): Ditto.
6014 (V8SF_FTYPE_PV2SF): Ditto.
6015 (V8SI_FTYPE_PV2SI): Ditto.
6016 (V16SF_FTYPE_PV8SF): Ditto.
6017 (V16SI_FTYPE_PV8SI): Ditto.
6018 (V8DI_FTYPE_V8SF): Ditto.
6019 (V4DI_FTYPE_V4SF): Ditto.
6020 (V2DI_FTYPE_V4SF): Ditto.
6021 (V64QI_FTYPE_QI): Ditto.
6022 (V32HI_FTYPE_HI): Ditto.
6023 (V8UHI_FTYPE_V8UHI): Ditto.
6024 (V16UHI_FTYPE_V16UHI): Ditto.
6025 (V32UHI_FTYPE_V32UHI): Ditto.
6026 (V2UDI_FTYPE_V2UDI): Ditto.
6027 (V4UDI_FTYPE_V4UDI): Ditto.
6028 (V8UDI_FTYPE_V8UDI): Ditto.
6029 (V4USI_FTYPE_V4USI): Ditto.
6030 (V8USI_FTYPE_V8USI): Ditto.
6031 (V16USI_FTYPE_V16USI): Ditto.
6032 (V2DF_FTYPE_V2DF_UINT64): Ditto.
6033 (V2DI_FTYPE_V2DF_V2DF): Ditto.
6034 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6035 (V8DF_FTYPE_V8DF_V8DI): Ditto.
6036 (V4SF_FTYPE_V4SF_UINT64): Ditto.
6037 (V4SI_FTYPE_V4SF_V4SF): Ditto.
6038 (V16SF_FTYPE_V16SF_V16SI): Ditto.
6039 (V64QI_FTYPE_V32HI_V32HI): Ditto.
6040 (V32HI_FTYPE_V16SI_V16SI): Ditto.
6041 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6042 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6043 (V32HI_FTYPE_V64QI_V64QI): Ditto.
6044 (V32HI_FTYPE_V32HI_V32HI): Ditto.
6045 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6046 (V16SI_FTYPE_V16SI_V4SI): Ditto.
6047 (V16SI_FTYPE_V16SI_V16SI): Ditto.
6048 (V16SI_FTYPE_V32HI_V32HI): Ditto.
6049 (V16SI_FTYPE_V16SI_SI): Ditto.
6050 (V8DI_FTYPE_V8DI_V8DI): Ditto.
6051 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6052 (V8DI_FTYPE_V16SI_V16SI): Ditto.
6053 (V8DI_FTYPE_V8DI_V2DI): Ditto.
6054 (QI_FTYPE_QI): Ditto.
6055 (SI_FTYPE_SI): Ditto.
6056 (DI_FTYPE_DI): Ditto.
6057 (QI_FTYPE_QI_QI): Ditto.
6058 (QI_FTYPE_QI_INT): Ditto.
6059 (HI_FTYPE_HI_INT): Ditto.
6060 (SI_FTYPE_SI_INT): Ditto.
6061 (DI_FTYPE_DI_INT): Ditto.
6062 (HI_FTYPE_V16QI_V16QI): Ditto.
6063 (SI_FTYPE_V32QI_V32QI): Ditto.
6064 (DI_FTYPE_V64QI_V64QI): Ditto.
6065 (QI_FTYPE_V8HI_V8HI): Ditto.
6066 (HI_FTYPE_V16HI_V16HI): Ditto.
6067 (SI_FTYPE_V32HI_V32HI): Ditto.
6068 (QI_FTYPE_V4SI_V4SI): Ditto.
6069 (QI_FTYPE_V8SI_V8SI): Ditto.
6070 (QI_FTYPE_V2DI_V2DI): Ditto.
6071 (QI_FTYPE_V4DI_V4DI): Ditto.
6072 (QI_FTYPE_V8DI_V8DI): Ditto.
6073 (HI_FTYPE_V16SI_V16SI): Ditto.
6074 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6075 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6076 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6077 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6078 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6079 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6080 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6081 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6082 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6083 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6084 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6085 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6086 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6087 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6088 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6089 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6090 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6091 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6092 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6093 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6094 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6095 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6096 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6097 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6098 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6099 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6100 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6101 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6102 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6103 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6104 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6105 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6106 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6107 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6108 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6109 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6110 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6111 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6112 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6113 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6114 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6115 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6116 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6117 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6118 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6119 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6120 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6121 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6122 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6123 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6124 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6125 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6126 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6127 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6128 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6129 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6130 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6131 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6132 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6133 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6134 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6135 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6136 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6137 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6138 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6139 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6140 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6141 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6142 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6143 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6144 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6145 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6146 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6147 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6148 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6149 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6150 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6151 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6152 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6153 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6154 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6155 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6156 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6157 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6158 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6159 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6160 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6161 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6162 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6163 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6164 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6165 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6166 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6167 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6168 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6169 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6170 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6171 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6172 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6173 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6174 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6175 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6176 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6177 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6178 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6179 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6180 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6181 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6182 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6183 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6184 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6185 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6186 (HI_FTYPE_HI): Ditto.
6187 (HI_FTYPE_V16QI): Ditto.
6188 (SI_FTYPE_V32QI): Ditto.
6189 (DI_FTYPE_V64QI): Ditto.
6190 (QI_FTYPE_V8HI): Ditto.
6191 (HI_FTYPE_V16HI): Ditto.
6192 (SI_FTYPE_V32HI): Ditto.
6193 (QI_FTYPE_V4SI): Ditto.
6194 (QI_FTYPE_V8SI): Ditto.
6195 (HI_FTYPE_V16SI): Ditto.
6196 (QI_FTYPE_V2DI): Ditto.
6197 (QI_FTYPE_V4DI): Ditto.
6198 (QI_FTYPE_V8DI): Ditto.
6199 (V16QI_FTYPE_HI): Ditto.
6200 (V32QI_FTYPE_SI): Ditto.
6201 (V64QI_FTYPE_DI): Ditto.
6202 (V8HI_FTYPE_QI): Ditto.
6203 (V16HI_FTYPE_HI): Ditto.
6204 (V32HI_FTYPE_SI): Ditto.
6205 (V4SI_FTYPE_QI): Ditto.
6206 (V4SI_FTYPE_HI): Ditto.
6207 (V8SI_FTYPE_QI): Ditto.
6208 (V8SI_FTYPE_HI): Ditto.
6209 (V2DI_FTYPE_QI): Ditto.
6210 (V4DI_FTYPE_QI): Ditto.
6211 (HI_FTYPE_HI_HI): Ditto.
6212 (SI_FTYPE_SI_SI): Ditto.
6213 (DI_FTYPE_DI_DI): Ditto.
6214 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6215 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6216 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6217 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6218 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6219 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6220 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6221 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6222 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6223 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6224 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6225 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6226 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6227 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6228 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6229 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6230 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6231 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6232 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6233 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6234 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6235 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6236 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6237 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6238 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6239 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6240 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6241 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6242 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6243 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6244 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6245 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6246 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6247 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6248 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6249 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6250 (V16SI_FTYPE_HI): Ditto.
6251 (V8DI_FTYPE_QI): Ditto.
6252 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6253 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6254 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6255 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6256 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6257 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6258 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6259 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6260 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6261 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6262 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6263 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6264 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6265 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6266 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6267 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6268 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6269 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6270 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6271 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6272 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6273 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6274 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6275 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6276 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6277 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6278 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6279 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6280 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6281 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6282 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6283 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6284 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6285 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6286 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6287 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6288 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6289 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6290 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6291 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6292 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6293 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6294 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6295 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6296 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6297 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6298 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6299 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6300 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6301 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6302 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6303 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6304 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6305 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6306 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6307 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6308 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6309 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6310 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6311 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6312 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6313 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6314 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6315 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6316 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6317 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6318 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6319 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6320 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6321 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6322 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6323 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6324 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6325 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6326 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6327 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6328 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6329 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6330 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6331 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6332 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6333 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6334 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6335 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6336 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6337 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6338 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6339 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6340 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6341 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6342 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6343 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6344 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6345 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6346 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6347 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6348 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6349 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6350 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6351 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6352 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6353 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6354 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6355 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6356 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6357 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6358 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6359 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6360 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6361 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6362 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6363 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6364 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6365 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6366 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6367 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6368 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6369 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6370 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6371 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6372 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6373 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6374 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6375 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6376 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6377 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6378 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6379 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6380 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6381 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6382 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6383 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6384 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6385 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6386 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6387 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6388 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6389 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6390 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6391 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6392 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6393 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6394 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6395 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6396 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6397 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6398 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6399 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6400 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6401 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6402 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6403 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6404 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6405 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6406 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6407 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6408 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6409 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6410 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6411 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6412 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6413 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6414 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6415 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6416 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6417 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6418 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6419 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6420 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6421 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6422 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6423 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6424 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6425 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6426 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6427 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6428 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6429 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6430 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6431 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6432 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6433 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6434 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6435 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6436 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6437 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6438 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6439 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6440 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6441 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6442 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6443 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6444 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6445 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6446 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6447 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6448 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6449 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6450 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6451 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6452 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6453 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6454 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6455 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6456 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6457 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6458 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6459 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6460 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6461 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6462 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6463 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6464 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6465 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6466 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6467 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6468 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6469 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6470 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6471 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6472 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6473 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6474 (QI_FTYPE_V8DF_INT_QI): Ditto.
6475 (QI_FTYPE_V4DF_INT_QI): Ditto.
6476 (QI_FTYPE_V2DF_INT_QI): Ditto.
6477 (HI_FTYPE_V16SF_INT_HI): Ditto.
6478 (QI_FTYPE_V8SF_INT_QI): Ditto.
6479 (QI_FTYPE_V4SF_INT_QI): Ditto.
6480 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6482 2015-07-31 Richard Biener <rguenther@suse.de>
6484 * gimple-fold.c (fold_gimple_assign): Remove folding of
6487 2015-07-31 Tom de Vries <tom@codesourcery.com>
6489 PR tree-optimization/66846
6490 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6491 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6492 (expand_omp_target) [ENABLE_CHECKING]: Same.
6493 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6494 cfun if !LOOPS_NEED_FIXUP.
6495 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6496 that omp_for already has its own loop struct.
6497 * tree-parloops.c (create_phi_for_local_result)
6498 (create_call_for_reduction): Handle simple latch bb.
6499 (create_parallel_loop): Add simple latch bb to preserve
6500 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6501 (gen_parallel_loop): Remove call to cancel_loop_tree.
6502 (parallelize_loops): Skip loops that are inner loops of parallelized
6504 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6505 verify_loop_structure.
6507 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6509 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6510 * config/v850/v850.md (RV_REGNUM): New constants.
6511 * config/v850/v850.c (v850_libcall_value): New functions.
6512 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6513 (TARGET_LIBCALL_VALUE): Define.
6515 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6517 * rtl.h (lowpart_subreg): Move in file.
6518 * loop-iv.c (lowpart_subreg): Move to...
6519 * simplify-rtx.c (lowpart_subreg): ...here.
6520 (simplify_binary_operation_1): Use lowpart_subreg instead of
6521 simplify_gen_subreg.
6522 * expr.c (expand_expr_real_2): Ditto.
6523 * emit-rtl.c (gen_lowpart_common): Ditto.
6524 * combine.c (gen_lowpart_for_combine): Ditto.
6525 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6526 expand_debug_source_expr): Ditto.
6528 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6530 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6531 (expand_builtin_atomic_clear): Remove support for atomic_clear
6534 2015-07-30 Richard Biener <rguenther@suse.de>
6536 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6537 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6538 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6539 redundant operand canonicalization.
6541 2015-07-30 David Sherwood <david.sherwood@arm.com>
6543 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6544 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6545 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6546 * config/arm/arm.c (neon_valid_immediate): Likewise.
6547 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6548 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6549 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6550 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6551 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6552 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6553 * config/i386/sse.md
6554 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6555 (*ssse3_palignr<mode>_perm): Likewise.
6556 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6557 * config/spu/spu.c (arith_immediate_p): Likewise.
6558 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6559 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6561 2015-07-30 Richard Biener <rguenther@suse.de>
6563 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6564 (decision_tree::gen_generic): ... this into ...
6565 (decision_tree::gen): ... this.
6566 (main): Adjust callers.
6568 2015-07-30 Richard Biener <rguenther@suse.de>
6570 * genmatch.c (verbose): New global.
6571 (warning_at): Add overload with source_location.
6572 (capture_info::capture_info): Add bool whether generating gimple
6573 or generic. Add gimple member.
6574 (capture_info::cinfo): Add capture member.
6575 (capture_info::walk_match): Record capture. Warn on
6577 (capture_info::walk_c_expr): Add more fragments captures cannot
6578 escape through. Warn on escaped captures.
6579 (dt_simplify::gen_1): Warn on operands we force to have no
6581 (main): Initialize verbose.
6582 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6584 2015-07-30 Richard Biener <rguenther@suse.de>
6587 * match.pd: Allow both operands to independently have conversion
6588 when simplifying compares of addresses.
6590 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6594 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6595 around those cases that need one.
6597 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6599 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6601 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6603 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6604 New. Copied from config/i386/gnu-user.h.
6605 (ASM_COMMENT_START): Likewise.
6606 (DBX_REGISTER_NUMBER): Likewise.
6608 2015-07-29 Richard Biener <rguenther@suse.de>
6610 * gimple-fold.c (fold_gimple_cond): Remove.
6611 (fold_stmt_1): Do not call it.
6613 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6615 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6616 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6618 * config/aarch64/aarch64-modes.def: Add HFmode.
6620 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6621 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6623 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6624 aarch64_promoted_type): New.
6626 (aarch64_float_const_representable_p): Disable HFmode.
6627 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6628 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6629 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6631 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6632 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6634 * config/aarch64/iterators.md (GPF_F16): New.
6636 2015-07-29 Richard Biener <rguenther@suse.de>
6638 * match.pd: Merge address comparison patterns and make them
6639 handle some more cases.
6641 2015-07-29 Richard Biener <rguenther@suse.de>
6643 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6644 (parser::parse_capture): Add bool argument on whether to reject
6646 (parser::parse_expr): Adjust.
6647 (parser::parse_op): Likewise.
6648 (parser::parse_pattern): Likewise.
6650 2015-07-29 Richard Biener <rguenther@suse.de>
6652 * gimple-fold.c (has_use_on_stmt): New function.
6653 (replace_stmt_with_simplification): Use it to allow
6654 abnormals originally referenced in the stmt.
6655 (fold_stmt_1): Canonicalize operand order.
6657 2015-07-28 David Sherwood <david.sherwood@arm.com>
6659 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6660 GET_MODE_INNER unconditionally.
6661 * config/spu/spu.c (arith_immediate_p): Likewise.
6662 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6663 * expmed.c (synth_mult): Remove check for VOIDmode result from
6665 (expand_mult_const): Likewise.
6666 * fold-const.c (fold_binary_loc): Replace call to element_precision
6667 with call to GET_MODE_PRECISION.
6668 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6670 (emit_mode_inner): Likewise.
6671 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6673 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6674 (GET_MODE_UNIT_PRECISION): Likewise.
6675 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6676 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6677 * stor-layout.c (bitwise_type_for_mode): Update assert.
6678 (element_precision): Remove.
6680 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6682 * target-insns.def (reload_load_address): New targetm instruction
6684 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6686 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6688 * target-insns.def (atomic_test_and_set): New targetm instruction
6690 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6691 HAVE_*/gen_* interface.
6693 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6695 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6697 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6698 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6699 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6700 * rtlanal.c (nonzero_bits1): Likewise.
6701 (num_sign_bit_copies1): Likewise.
6703 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6705 * target-insns.def (eh_return): New targetm instruction pattern.
6706 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6708 * function.c (thread_prologue_and_epilogue_insns): Remove
6709 preprocessor condition.
6711 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6713 * target-insns.def (indirect_jump): New targetm instruction pattern.
6714 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6717 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6719 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6720 instead of nonimmediate_operand. Remove C condiition.
6722 2015-07-28 Richard Biener <rguenther@suse.de>
6724 * match.pd: Add more simplification of address comparisons.
6726 2015-07-28 Richard Biener <rguenther@suse.de>
6728 * match.pd: Re-order two cases in comparison with max/min
6729 value simplification to make it apply for bools.
6731 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6733 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6734 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6735 (aarch64_rtx_costs): Properly strip extend or extract before
6736 passing down to rtx costs again.
6738 2015-07-28 Nick Clifton <nickc@redhat.com>
6740 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6741 Optimizes the case where -mes0 is active and a constant symbolic
6743 * config/rl78/rl78-protos.h: Prototype the new function.
6744 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6746 2015-07-28 Tom de Vries <tom@codesourcery.com>
6748 * tree-parloops.c (reduc_stmt_res): New function.
6749 (initialize_reductions, add_field_for_reduction)
6750 (create_phi_for_local_result, create_loads_for_reductions)
6751 (create_stores_for_reduction, build_new_reduction): Handle case that
6752 reduc_stmt is a phi.
6753 (gather_scalar_reductions): Allow double_reduc reductions.
6755 2015-07-28 Richard Biener <rguenther@suse.de>
6757 * fold-const.c (fold_comparison): Remove equality folding
6758 of decl addresses ...
6759 * match.pd: ... here and merge with existing pattern.
6761 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6763 PR tree-optimization/66828
6764 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6765 from int64_t to uint64_t.
6767 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6769 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6770 as valid only in the error message of the driver, not in the
6771 messages of the language compilers.
6773 2015-07-27 Tom de Vries <tom@codesourcery.com>
6775 * tree-parloops.c (gather_scalar_reductions): Simplify function
6778 2015-07-27 Marek Polacek <polacek@redhat.com>
6780 * ipa-devirt.c (types_same_for_odr): Fix typo.
6782 2015-07-27 Jason Merrill <jason@redhat.com>
6785 * dwarf2out.c (gen_inlined_subroutine_die): Check
6786 cgraph_function_possibly_inlined_p.
6788 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6790 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6791 Place integer variant first.
6792 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6794 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6797 * config/arm/arm-builtins.c (enum arm_builtins):
6798 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6799 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6800 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6801 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6802 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6804 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6807 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6808 Add qualifier_lane_index.
6809 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6810 (arm_getlane_qualifiers): Use qualifier_lane_index.
6811 (arm_lanemac_qualifiers): Rename to...
6812 (arm_mac_n_qualifiers): ...this.
6813 (LANEMAC_QUALIFIERS): Rename to...
6814 (MAC_N_QUALIFIERS): ...this.
6815 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6816 (arm_setlane_qualifiers): Use qualifier_lane_index.
6817 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6818 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6819 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6820 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6822 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6823 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6824 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6825 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6826 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6827 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6828 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6829 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6830 qualifiers to TERNOP_IMM.
6831 (vdup_lane): Change qualifiers to GETLANE.
6832 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6833 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6834 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6835 vqdmlsl_n): Change qualifiers to MAC_N.
6837 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6838 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6839 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6840 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6841 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6842 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6843 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6844 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6845 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6846 Remove call to neon_lane_bounds.
6848 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6850 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6851 Place integer variant first.
6853 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6855 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6856 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6857 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6858 for armv6kz targets.
6859 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6860 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6861 (FL_FOR_ARCH6ZK): Remove.
6862 (FL_FOR_ARCH6KZ): New.
6863 (arm_arch6zk): New declaration.
6864 * config/arm/arm-tables.opt: Regenerate.
6865 * config/arm/arm.c (arm_arch6kz): New.
6866 (arm_option_override): Set arm_arch6kz.
6867 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6868 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6869 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6871 2015-07-27 Marek Polacek <polacek@redhat.com>
6875 * doc/invoke.texi: Document -Wtautological-compare.
6877 2015-07-27 Richard Biener <rguenther@suse.de>
6879 * genmatch.c (decision_tree::gen_gimple): Split out large
6880 subtrees into separate functions.
6881 (decision_tree::gen_generic): Likewise.
6883 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6885 * config/alpha/alpha.c: Use SUBREG_P predicate.
6886 * config/alpha/predicates.md: Ditto.
6888 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6890 * config.host (s390*-*-*): Include driver-native.c only when
6891 building with s390* as host *and* target.
6893 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6896 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6897 T bit register modified_between_p check.
6899 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6901 * config/i386/i386.c: Use SUBREG_P predicate.
6902 * config/i386/i386.md: Ditto.
6903 * config/i386/sse.md: Ditto.
6904 * config/i386/predicates.md: Ditto.
6906 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6909 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6910 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6912 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6914 * Makefile.in: Remove use of TREEBROWSER.
6915 * config.in: Regenerated.
6916 * configure: Regenerated.
6917 * configure.ac: Remove definition of TREEBROWSER.
6918 * tree-browser.c: Removed.
6919 * tree-browser.def: Removed.
6921 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6923 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6924 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6926 (scopdet_basic_block_info): Print when a loop or bb cannot be
6927 represented in Graphite.
6929 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6932 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6933 execution guard when min_size is less than size_needed.
6935 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6937 * doc/install.texi: Document supported versions of ISL.
6939 2015-07-25 Jeff Law <law@redhat.com>
6943 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6944 unable to find X NE 0 in the tables, return X as the simplified
6946 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6947 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6949 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6950 after removing the control flow statement and unnecessary edges.
6952 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6955 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6957 PR rtl-optimization/64164
6958 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6959 * tree-ssa-copyrename.c: Removed.
6960 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6961 -ftree-coalesce-vars.
6962 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6963 * common.opt (ftree-copyrename): Ignore.
6964 (ftree-coalesce-inlined-vars): Likewise.
6965 * doc/invoke.texi: Remove the ignored options above.
6966 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6967 * tree-ssa-coalesce.h: ... here.
6968 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6969 headers required by it.
6970 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6971 across variables when flag_tree_coalesce_vars. Check register
6972 use and promoted modes to allow coalescing. Moved to
6973 tree-ssa-coalesce.c.
6974 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6975 with its member functions to tree-ssa-coalesce.c.
6976 (var_map_base_init): Likewise. Renamed to
6977 compute_samebase_partition_bases.
6978 (partition_view_normal): Drop want_bases parameter.
6979 (partition_view_bitmap): Likewise.
6980 * tree-ssa-live.h: Adjust declarations.
6981 * tree-ssa-coalesce.c: Include explow.h.
6982 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6983 default defs at the entry point.
6984 (dump_part_var_map): New.
6985 (compute_optimized_partition_bases): New, called by...
6986 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6987 of compute_samebase_partition_bases. Adjust.
6988 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6989 * cfgexpand.c (leader_merge): New.
6990 (get_rtl_for_parm_ssa_default_def): New.
6991 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6992 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6993 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6994 redundant MEM attr setting.
6995 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6997 (expand_one_stack_var): ... this. New wrapper to check and
6998 skip already expanded SSA partitions.
6999 (record_alignment_for_reg_var): New, factored out of...
7000 (expand_one_var): ... this.
7001 (expand_one_ssa_partition): New.
7002 (adjust_one_expanded_partition_var): New.
7003 (expand_one_register_var): Check and skip already expanded SSA
7005 (expand_used_vars): Don't create DECLs for anonymous SSA
7006 names. Expand all SSA partitions, then adjust all SSA names.
7007 (pass::execute): Replace the loops that set
7008 SA.partition_to_pseudo from partition leaders and cleared
7009 DECL_RTL for multi-location variables, and that which used to
7010 rename vars and set attrs, with one that clears DECL_RTL and
7011 checks that PARMs and RESULTs default_defs match DECL_RTL.
7012 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7013 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7014 * explow.c (promote_ssa_mode): New.
7015 * explow.h (promote_ssa_mode): Declare.
7016 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7017 * function.c: Include cfgexpand.h.
7018 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7019 (use_register_for_parm_decl): Wrapper for the above to
7020 special-case the result_ptr.
7021 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7022 (split_complex_args): Take assign_parm_data_all argument.
7023 Pass it to rtl_for_parm. Set up rtl and context for split
7025 (assign_parms_augmented_arg_list): Adjust.
7026 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7027 multiple locations. Recognize split complex args.
7028 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7029 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7030 (assign_parm_setup_block): Prefer SSA-assigned location.
7031 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7032 if stack_parm is NULL.
7033 (assign_parm_setup_stack): Prefer SSA-assigned location.
7034 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7035 rtl before testing for pointer bounds. Special-case result_ptr.
7036 (expand_function_start): Maybe reset DECL_RTL of result.
7037 Prefer SSA-assigned location for result and static chain.
7038 Factor out DECL_RESULT and SET_DECL_RTL.
7039 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7040 anonymous SSA names. Use promote_ssa_mode.
7041 (get_temp_reg): Likewise.
7042 (remove_ssa_form): Adjust.
7043 * stor-layout.c (layout_decl): Don't set mem attributes of
7045 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7046 and get its reg_usage for reg invalidation.
7047 (compute_bb_dataflow): Pass it insn.
7048 (emit_notes_in_bb): Likewise.
7050 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7052 * config/i386/i386.c (ix86_va_start): Remove
7053 unneeded !TARGET_64BIT check.
7054 (ix86_gimplify_va_arg): Ditto.
7056 2015-07-24 Tom de Vries <tom@codesourcery.com>
7058 * graphite-sese-to-poly.c (build_poly_scop): Always call
7059 rewrite_commutative_reductions_out_of_ssa.
7061 2015-07-24 Tom de Vries <tom@codesourcery.com>
7063 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7064 flag_associative_math to FLOAT_TYPE_P. Honour
7065 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7067 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7070 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7071 and "%qD" in warning_at instead of "%q+D" in warning.
7073 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7075 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7076 (ix86_function_abi): Cleanup.
7078 2015-07-24 Michael Darling <darlingm@gmail.com>
7081 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7082 * configure: Likewise
7083 * configure.ac: Likewise
7084 * doc/install.texi: Likewise
7085 * doc/tm.texi: Likewise
7086 * doc/tm.texi.in: Likewise
7088 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7090 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7091 manually swapping values.
7092 * cse.c (fold_rtx): Likewise.
7093 * lra-eliminations.c (form_sum): Likewise.
7095 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7098 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7099 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7100 (*jcc_1, *jcc_2, jump, simple_return_internal)
7101 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7102 Set length_nobnd attribute instead of length attribute.
7103 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7104 (length_nobnd): Remove attribute.
7105 (length): Remove length_nobnd processing.
7107 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7109 * gimplify.c (omp_default_clause): New function. Reorganize flow
7110 for clarity. Broken out of ...
7111 (omp_notice_variable): ... here.
7113 2015-07-24 Gary Funck <gary@intrepid.com>
7116 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7117 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7119 2015-07-24 Tom de Vries <tom@codesourcery.com>
7121 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7122 exit-first loop transform.
7124 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7127 * tree-cfg.c (struct replace_decls_d): New struct.
7128 (replace_block_vars_by_duplicates_1): New function.
7129 (replace_block_vars_by_duplicates): Use it to replace the decls
7130 in the value exprs by duplicates.
7132 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7134 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7135 -shared, -symbolic, -rdynamic.
7137 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7140 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7141 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7144 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7147 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7148 edge summary is available.
7150 2015-07-24 Richard Biener <rguenther@suse.de>
7152 * genmatch.c (struct dt_node): Add statistic fields.
7153 (dt_node::analyze): New method.
7154 (decision_tree::gen_gimple): Call analyze on the root node
7155 and print statistics to stderr.
7156 (decision_tree::gen_generic): Likewise.
7158 2015-07-24 Richard Biener <rguenther@suse.de>
7160 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7161 against the highest or lowest possible integer ...
7162 * match.pd: ... as patterns here.
7164 2015-07-24 Richard Biener <rguenther@suse.de>
7166 * genmatch.c (struct capture_info): Add same_as field.
7167 (capture_info::capture_info): Initialize same_as.
7168 (capture_info::walk_match): Compute same_as.
7169 (capture_info::walk_result): Compute stuff for the leader.
7170 (capture_info::walk_c_expr): Likewise.
7171 (dt_simplify::gen_1): Only look at leaders when deciding
7172 to force no side-effects or emit side-effects of omitted operands.
7174 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7176 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7177 reg note to the GPR -> FPR save instructions.
7179 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7181 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7183 (s390_expand_insv): Don't generate risbg pattern for constant zero
7185 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7186 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7189 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7191 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7194 (s390_issue_rate): Likewise.
7195 (s390_sched_reorder): Likewise.
7196 (s390_sched_variable_issue): Likewise.
7197 (s390_loop_unroll_adjust): Likewise.
7198 (s390_option_override): Likewise.
7200 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7202 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7203 processor capabilities with -march=native.
7204 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7205 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7206 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7208 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7210 * config/s390/s390.c (s390_issue_rate): Handle
7211 PROCESSOR_2094_Z9_EC.
7212 (s390_option_override): Likewise.
7213 (s390_adjust_priority): Likewise.
7215 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7217 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7218 when cross compiling.
7220 2015-07-24 Richard Biener <rguenther@suse.de>
7222 * fold-const.c (maybe_canonicalize_comparison_1): Move
7223 A code CST canonicalization ...
7224 * match.pd: ... to a pattern here.
7226 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7229 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7231 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7232 (HONOR_REG_ALLOC_ORDER): Define.
7234 2015-07-24 Richard Biener <rguenther@suse.de>
7236 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7237 * fold-const.c (fold_comparison): Move parameter does not
7238 alias &local simplification ...
7239 * match.pd: ... as a pattern here.
7241 2015-07-24 Richard Biener <rguenther@suse.de>
7243 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7244 valueizing call operands.
7245 * gimple-match-head.c (maybe_push_res_to_seq): Take
7246 number of call arguments from ops array.
7247 (do_valueize): New function.
7248 (gimple_simplify): Return true if valueization changed
7249 any operand even if the result didn't simplify further.
7251 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7254 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7256 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7259 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7261 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7263 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7266 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7268 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7271 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7273 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7274 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7276 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7277 ms_va_list_type_node initialization.
7279 2015-07-23 Jeff Law <law@redhat.com>
7282 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7283 unable to find X NE 0 in the tables, return X as the simplified
7285 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7286 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7288 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7289 after removing the control flow statement and unnecessary edges.
7291 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7293 * tree-pass.h (get_current_pass_name): Removed.
7295 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7297 PR rtl-optimization/64164
7298 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7299 * tree-ssa-copyrename.c: Removed.
7300 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7301 -ftree-coalesce-vars.
7302 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7303 * common.opt (ftree-copyrename): Ignore.
7304 (ftree-coalesce-inlined-vars): Likewise.
7305 * doc/invoke.texi: Remove the ignored options above.
7306 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7307 * tree-ssa-coalesce.h: ... here.
7308 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7309 headers required by it.
7310 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7311 across variables when flag_tree_coalesce_vars. Check register
7312 use and promoted modes to allow coalescing. Moved to
7313 tree-ssa-coalesce.c.
7314 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7315 with its member functions to tree-ssa-coalesce.c.
7316 (var_map_base_init): Likewise. Renamed to
7317 compute_samebase_partition_bases.
7318 (partition_view_normal): Drop want_bases parameter.
7319 (partition_view_bitmap): Likewise.
7320 * tree-ssa-live.h: Adjust declarations.
7321 * tree-ssa-coalesce.c: Include explow.h.
7322 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7323 default defs at the entry point.
7324 (dump_part_var_map): New.
7325 (compute_optimized_partition_bases): New, called by...
7326 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7327 of compute_samebase_partition_bases. Adjust.
7328 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7329 * cfgexpand.c (leader_merge): New.
7330 (get_rtl_for_parm_ssa_default_def): New.
7331 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7332 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7333 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7334 redundant MEM attr setting.
7335 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7337 (expand_one_stack_var): ... this. New wrapper to check and
7338 skip already expanded SSA partitions.
7339 (record_alignment_for_reg_var): New, factored out of...
7340 (expand_one_var): ... this.
7341 (expand_one_ssa_partition): New.
7342 (adjust_one_expanded_partition_var): New.
7343 (expand_one_register_var): Check and skip already expanded SSA
7345 (expand_used_vars): Don't create DECLs for anonymous SSA
7346 names. Expand all SSA partitions, then adjust all SSA names.
7347 (pass::execute): Replace the loops that set
7348 SA.partition_to_pseudo from partition leaders and cleared
7349 DECL_RTL for multi-location variables, and that which used to
7350 rename vars and set attrs, with one that clears DECL_RTL and
7351 checks that PARMs and RESULTs default_defs match DECL_RTL.
7352 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7353 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7354 * explow.c (promote_ssa_mode): New.
7355 * explow.h (promote_ssa_mode): Declare.
7356 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7357 * function.c: Include cfgexpand.h.
7358 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7359 (use_register_for_parm_decl): Wrapper for the above to
7360 special-case the result_ptr.
7361 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7362 (split_complex_args): Take assign_parm_data_all argument.
7363 Pass it to rtl_for_parm. Set up rtl and context for split
7365 (assign_parms_augmented_arg_list): Adjust.
7366 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7367 multiple locations. Recognize split complex args.
7368 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7369 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7370 (assign_parm_setup_block): Prefer SSA-assigned location.
7371 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7372 if stack_parm is NULL.
7373 (assign_parm_setup_stack): Prefer SSA-assigned location.
7374 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7375 rtl before testing for pointer bounds. Special-case result_ptr.
7376 (expand_function_start): Maybe reset DECL_RTL of result.
7377 Prefer SSA-assigned location for result and static chain.
7378 Factor out DECL_RESULT and SET_DECL_RTL.
7379 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7380 anonymous SSA names. Use promote_ssa_mode.
7381 (get_temp_reg): Likewise.
7382 (remove_ssa_form): Adjust.
7383 * stor-layout.c (layout_decl): Don't set mem attributes of
7385 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7386 and get its reg_usage for reg invalidation.
7387 (compute_bb_dataflow): Pass it insn.
7388 (emit_notes_in_bb): Likewise.
7390 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7393 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7395 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7396 (rs6000_emit_2insn_and): Handle dot forms.
7397 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7398 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7399 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7401 2015-07-23 Richard Biener <rguenther@suse.de>
7403 * generic-match-head.c: Include cgraph.h.
7404 * gimple-match-head.c: Likewise.
7405 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7407 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7408 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7411 2015-07-23 Richard Biener <rguenther@suse.de>
7413 * gimple-fold.c (fold_gimple_cond): Do not require folding
7414 results to pass valid_gimple_rhs_p.
7415 * tree-cfg.h (fold_cond_expr_cond): Remove.
7416 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7417 (make_edges): Do not call it.
7418 * tree-inline.c (tree_function_versioning): Likewise.
7420 2015-07-23 Tom de Vries <tom@codesourcery.com>
7422 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7423 vect_force_simple_reduction.
7424 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7425 (vect_is_simple_reduction_1): Add and handle
7426 need_wrapping_integral_overflow parameter.
7427 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7428 need_wrapping_integral_overflow parameter.
7429 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7430 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7433 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7435 PR tree-optimization/66926,66951
7436 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7437 INNER_LOOP and fix up condition for renaming virtual operands.
7439 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7441 * combine.c (try_combine): Use std::swap instead of manually
7444 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7446 * config/mips/i6400.md: New file.
7447 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7448 (mips64r6): Likewise.
7450 * config/mips/mips-tables.opt: Regenerate.
7451 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7452 (mips_issue_rate): Add support for i6400.
7453 (mips_multipass_dfa_lookahead): Likewise.
7454 * config/mips/mips.h (TUNE_I6400): Define.
7455 * config/mips/mips.md: Include i6400.md.
7456 (processor): Add i6400.
7457 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7459 2015-07-23 Richard Biener <rguenther@suse.de>
7462 * match.pd: Guard widen and sign-change comparison simplification
7465 2015-07-23 Richard Biener <rguenther@suse.de>
7467 PR tree-optimization/66945
7468 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7469 ::before_dom_children): Force the propagators idea of
7470 non-executable edges to materialize, not what the folder
7473 2015-07-23 Richard Biener <rguenther@suse.de>
7475 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7476 (gimple_cond_make_true): Use 1 != 0.
7478 2015-07-22 DJ Delorie <dj@redhat.com>
7480 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7483 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7484 (ashrhi3): Likewise.
7485 (lshrhi3): Likewise.
7486 (movhi): Take advantage of zero-extend to load small constants.
7488 (and<mode>3): Likewise.
7489 (zero_extendqihi2): Likewise.
7490 (zero_extendqisi2): New.
7491 * config/msp430/constraints.md (N,O): New.
7492 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7494 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7497 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7498 to enum feature_priority and feature_list.
7499 (fold_builtin_cpu): Add F_AES to enum processor_features
7500 and isa_names_table.
7502 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7505 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7506 for 64bit target only.
7508 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7510 * config/nvptx/nvptx.c: Expand some comments.
7512 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7514 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7515 (cortex_a53_advsimd): ...This.
7517 2015-07-22 Richard Biener <rguenther@suse.de>
7519 * genmatch.c (expr::gen_transform): Clarify error message
7520 and display location.
7522 2015-07-22 Richard Biener <rguenther@suse.de>
7524 * genmatch.c (struct operand): Add location member.
7525 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7527 (struct simplify): Remove match_location and result_location
7529 (elsehwere): Adjust.
7531 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7533 * config/mips/m5100.md: New file.
7534 * config/mips/mips-cpus.def (m5100, m5101): Define.
7535 * config/mips/mips-tables.opt: Regenerate.
7536 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7537 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7538 -march=m5101 to -mips32r5.
7539 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7540 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7542 * config/mips/mips.md: Include m5100.md.
7543 (processor): Add m5100.
7544 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7546 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7548 * config/mips/mips-cpus.def (interaptiv): Define.
7549 * config/mips/mips-tables.opt: Regenerate.
7550 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7552 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7553 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7555 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7558 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7559 (HONOR_REG_ALLOC_ORDER): Define.
7561 2015-07-22 Richard Biener <rguenther@suse.de>
7563 PR tree-optimization/66952
7564 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7565 blocks we end up executing unconditionally reset all SSA
7566 info such as range and alignment.
7567 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7568 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7570 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7572 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7575 2015-07-22 Richard Biener <rguenther@suse.de>
7577 * genmatch.c (parser::parse_result): Properly handle
7578 match with result operands and conditions.
7580 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7583 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7584 Add qualifier_struct_load_store_lane_index.
7585 (aarch64_types_loadstruct_lane_qualifiers): Use
7586 qualifier_struct_load_store_lane_index for lane index argument for
7588 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7589 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7590 (aarch64_simd_expand_args): Add new argument describing mode of
7591 builtin. Check lane bounds for arguments with
7592 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7593 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7594 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7595 (aarch64_simd_expand_builtin): Handle arguments with
7596 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7597 aarch64_simd_expand_args.
7598 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7599 vst[234]_lane with BUILTIN_VALLDIF.
7600 * config/aarch64/aarch64-simd.md:
7601 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7602 endianness reversal on lane index.
7603 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7604 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7605 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7606 (vec_store_lanesci_lane<mode>): Ditto.
7607 (vec_store_lanesxi_lane<mode>): Ditto.
7608 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7609 reversal of lane index.
7610 (aarch64_ld3_lane<mode>): Ditto.
7611 (aarch64_ld4_lane<mode>): Ditto.
7612 (aarch64_st2_lane<mode>): Ditto.
7613 (aarch64_st3_lane<mode>): Ditto.
7614 (aarch64_st4_lane<mode>): Ditto.
7615 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7616 to qmode. Add new mode parameter. Update uses.
7617 (__LD3_LANE_FUNC): Ditto.
7618 (__LD4_LANE_FUNC): Ditto.
7619 (__ST2_LANE_FUNC): Ditto.
7620 (__ST3_LANE_FUNC): Ditto.
7621 (__ST4_LANE_FUNC): Ditto.
7623 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7625 * doc/invoke.texi (Language Independent Options): Rename node to
7626 Diagnostic Message Formatting Options.
7628 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7631 * lra-remat.c (operand_to_remat): Prevent using insns with input
7632 subregs processed separately by IRA.
7634 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7636 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7638 (single_imm_use): Check for iterator node.
7639 (num_imm_uses): Likewise.
7640 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7641 (single_imm_use_1): Check for iterator node.
7643 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7644 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7646 * configure.ac: Add check for new options in isl-0.15.
7647 * config.in, configure: Rebuilt.
7648 * graphite-blocking.c: Include <isl/constraint.h>
7649 * graphite-interchange.c, graphite-poly.c: Likewise.
7650 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7651 * graphite.c: Likewise.
7652 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7654 * graphite-dependences.c: Include <isl/constraint.h>.
7655 (max_number_of_out_dimensions): Returns isl_stat.
7656 (extend_schedule_1): Likewise
7657 (extend_schedule): Corresponding changes.
7658 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7660 (getSingleMap): Change return type of isl_stat.
7661 (optimize_isl): Conditionally use
7662 isl_options_set_schedule_serialize_sccs.
7663 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7664 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7666 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7669 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7670 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7672 2015-07-21 Richard Biener <rguenther@suse.de>
7674 PR tree-optimization/66948
7675 * genmatch.c (capture_info::walk_match): Also recurse to
7676 captures. Properly compute expr state from captures of
7678 * match.pd: Add single-use guards to
7679 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7681 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7683 * config/nvptx/mkoffload.c (process): Add static destructor call.
7685 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7688 * match.pd (A - B -> A + (-B)): Don't allow folding
7689 when type if a fixed-point type.
7691 2015-07-20 DJ Delorie <dj@redhat.com>
7693 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7694 (iorqi3_real): Likewise for set1.
7696 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7698 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7701 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7703 * graphite-isl-ast-to-gimple.c:
7704 Refactor so that each function can access 'region'. This will help
7705 maintain a parameter rename_map within a region.
7707 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7709 * config/rs6000/rs6000.md (*lt0_disi): New.
7711 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7714 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7715 "available letters" comment.
7716 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7717 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7718 and_2rld_operand): Delete.
7719 (and_operand): Adjust.
7720 (rotate_mask_operator): New.
7721 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7722 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7723 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7724 extract_ME): Delete.
7725 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7726 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7727 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7728 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7729 rs6000_emit_2insn_and): New.
7730 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7731 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7732 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7733 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7734 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7735 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7736 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7737 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7738 rs6000_emit_2insn_and): New.
7739 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7740 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7742 <NOT>: Don't fall through to next case.
7743 <AND>: Handle the various rotate-and-mask cases directly.
7744 <IOR>: Always cost as one insn.
7745 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7746 (and<mode>3): Adjust expander for the new patterns.
7747 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7748 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7749 (*and<mode>3_imm_dot_shifted): New.
7750 (*and<mode>3_mask): Delete, rewrite as ...
7751 (and<mode>3_mask): ... New.
7752 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7753 (andsi3_internal0_nomc): Delete.
7754 (*andsi3_internal6): Delete.
7755 (*and<mode>3_2insn): New.
7756 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7757 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7758 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7759 *insvdi_internal3): Delete.
7760 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7761 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7762 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7763 *ior<mode>_mask): New.
7764 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7765 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7766 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7767 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7769 (ashr<mode>3): Delete expander.
7770 (*ashr<mode>3): Rename to ...
7771 (ashr<mode>3): ... This.
7772 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7773 (*rotldi3_internal4, *rotldi3_internal5 and split,
7774 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7775 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7776 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7777 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7778 (splitter for loading a mask): Adjust.
7779 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7781 2015-07-20 Marek Polacek <polacek@redhat.com>
7783 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7784 output_add_clobbers, output_added_clobbers_hard_reg_p,
7785 gen_rtx_scratch): Remove declarations.
7787 2015-07-20 Marek Polacek <polacek@redhat.com>
7790 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7792 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7794 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7795 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7797 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7799 * combine.c (combine_simplify_rtx): Move simplification step
7800 before various transformations/substitutions.
7802 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7804 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7805 (struct int_traits): Likewise.
7807 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7809 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7810 function to vmsdbgout_function_decl.
7812 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7815 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7816 from misaligned positions.
7817 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7819 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7823 * Makefile.in: Removed omega.o.
7824 * common.opt: Document flag fcheck-data-deps as deprecated.
7825 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7826 its associated params: omega-max-vars, omega-max-geqs,
7827 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7828 omega-max-keys, omega-eliminate-redundant-constraints.
7829 * doc/loop.texi: Remove all the section on Omega.
7830 * graphite-blocking.c: Include missing params.h: it used to be
7831 included through tree-data-ref.h and omega.h.
7832 * graphite-isl-ast-to-gimple.c: Same.
7833 * graphite-optimize-isl.c: Same.
7834 * graphite-sese-to-poly.c: Same.
7838 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7839 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7840 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7841 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7842 * passes.def: Remove pass_check_data_deps.
7843 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7844 (dump_conflict_function): Same.
7845 (dump_subscript): Same.
7846 (print_direction_vector): Same.
7847 (print_dir_vectors): Same.
7848 (print_lambda_vector): Same.
7849 (print_dist_vectors): Same.
7850 (dump_data_dependence_relation): Same.
7851 (dump_data_dependence_relations): Same.
7852 (dump_dist_dir_vectors): Same.
7854 (init_omega_eq_with_af): Removed.
7855 (omega_extract_distance_vectors): Removed.
7856 (omega_setup_subscript): Removed.
7857 (init_omega_for_ddr_1): Removed.
7858 (init_omega_for_ddr): Removed.
7859 (ddr_consistent_p): Removed.
7860 (compute_affine_dependence): Do not use omega to check data
7862 (compute_data_dependences_for_bb): Removed.
7863 (analyze_all_data_dependences): Removed.
7864 (tree_check_data_deps): Removed.
7865 * tree-data-ref.h: Do not include omega.h.
7866 (compute_data_dependences_for_bb): Removed.
7867 (tree_check_data_deps): Removed.
7868 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7869 (make_pass_check_data_deps): Removed.
7870 * tree-ssa-phiopt.c: Include params.h.
7871 * tree-vect-data-refs.c: Same.
7872 * tree-vect-slp.c: Same.
7874 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7876 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7877 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7878 (mem->fpreg splitters): Ditto.
7879 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7880 Disable DFmode for TARGET_64BIT.
7882 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7885 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7888 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7890 * config/nvptx/mkoffload.c (process): Constify host data.
7891 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7893 (generate_host_descr_file): Likewise.
7895 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7896 Sebastian Pop <s.pop@samsung.com>
7899 * graphite-dependences.c (add_pdr_constraints): Renamed
7900 pdr->extent to pdr->subscript_sizes.
7901 * graphite-interchange.c (build_linearized_memory_access): Add
7902 back all gcc_assert's that the "isl_int to isl_val conversion"
7903 patch has removed. Refactored.
7904 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7905 * graphite-poly.c (new_poly_dr): Same.
7906 (free_poly_dr): Same.
7907 * graphite-poly.h (struct poly_dr): Same.
7908 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7909 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7910 * graphite-scop-detection.h: Fix space.
7911 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7912 back all gcc_assert's removed by a previous patch.
7913 (wrap): Remove the_isl_ctx global variable that the same patch has
7915 (build_loop_iteration_domains): Same.
7916 (add_param_constraints): Same.
7917 (pdr_add_data_dimensions): Same. Refactored.
7918 (build_poly_dr): Renamed extent to subscript_sizes.
7920 2015-07-17 Marek Polacek <polacek@redhat.com>
7922 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7923 * match.pd: ... here.
7925 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7927 * config/nvptx/mkoffload.c (process): Constify target data.
7928 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7929 Constify target data.
7930 (generate_target_offloadend_file): Likewise.
7932 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7934 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7935 to allow renaming of PHI arguments on edges incoming from outer
7936 loop header, add corresponding check before start PHI iterator.
7937 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7938 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7939 with true force_vectorize. Set-up dominator for outer loop too.
7940 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7941 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7942 was marked with force_vectorize and has restricted cfg.
7943 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7945 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7946 do peeling for outer loops.
7948 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7949 Matthias Klose <doko@ubuntu.com>
7951 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7952 build-sysroot, sysroot from the `Miscenalleous configure options' to
7953 the `Directories' section and strip trailing `/' from with_sysroot.
7954 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7955 * configure: Regenerated.
7957 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7960 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7961 (TARGET_HARD_DF_REGS): Ditto.
7962 (TARGET_HARD_XF_REGS): Ditto.
7963 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7964 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7965 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7966 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7967 (*movsf_internal): Add alternatives 16 and 17. Enable
7968 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7970 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7972 PR rtl-optimization/66891
7973 * calls.c (expand_call): Wrap precompute_register_parameters with
7974 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7976 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7978 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7979 Define target data struct and initialize it.
7981 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7983 PR rtl-optimization/66626
7984 * ira.h (emit-rtl.h): Include.
7985 (non_spilled_static_chain_regno_p): New.
7986 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7987 unless it is non spilled static chain pseudo.
7988 (assign_hard_rego): Spill memory profitable allocno unless it is
7989 non spilled static chain pseudo.
7990 (allocno_spill_priority_compare): Put non spilled static chain
7991 pseudo at the end of sorted array.
7992 (improve_allocation): Do nothing if we have static chain and
7994 (allocno__priority_compare_func): Put non spilled static chain
7995 pseudo at the beginning of sorted array.
7996 (move_spill_restore): Ignore non spilled static chain pseudo.
7997 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7998 to non spilled static chain pseudo.
7999 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8000 pseudo at the beginning of sorted array.
8001 (spill_for): Spill non spilled static chain pseudo last.
8002 * lra-constraints.c (lra_constraints): Remove static chain pseudo
8003 check for equivalence.
8005 2015-07-16 Martin Liska <mliska@suse.cz>
8008 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8009 dst_ctx if it does not exist.
8011 2015-07-16 Martin Liska <mliska@suse.cz>
8013 * hash-set.h (remove): New function.
8014 (iterator): New iteration class for hash_set.
8016 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8018 * genattrtab.c (make_canonical): Add a file_location parameter.
8019 Use fatal_at rather than fatal.
8020 (get_attr_value): Likewise. Update call to make_canonical.
8021 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8022 (make_internal_attr): Update calls accordingly.
8024 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8026 * read-md.h (message_with_line, error_with_line): Delete.
8027 * read-md.c (message_with_line, error_with_line): Delete.
8028 * gensupport.h: Include read-md.h.
8029 (md_rtx_info): New structure.
8030 (read_md_rtx): Use it. Return a bool success value.
8031 * gensupport.c (read_md_rtx): Likewise.
8032 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8033 (main): Update after interface changes.
8034 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8035 (main): Update after interface changes.
8036 * genattrtab.c (insn_code_number): Delete.
8037 (optimize_attrs): Add a max_insn_code parameter and use it instead
8038 of insn_code_number.
8039 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8040 Use *_at rather than *_with_line functions.
8041 (gen_insn): Likewise.
8042 (gen_delay): Likewise.
8043 (gen_insn_reserv): Likewise.
8044 (gen_bypass): Take an md_rtx_info rather than an rtx.
8045 (main): Update after interface changes. Use a local max_insn_code
8046 variable instead of insn_code_number.
8047 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8048 an rtx. Use fatal_at rather than fatal.
8049 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8050 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8051 (gen_absence_set, gen_final_absence_set, gen_automaton)
8052 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8053 (main): Update after interface changes.
8054 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8056 (main): Update after interface changes.
8057 * genconditions.c (main): Use new read_md_rtx interface.
8058 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8059 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8060 (main): Update after interface changes.
8061 * genemit.c (insn_code_number, insn_index_number): Delete.
8062 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8063 Use fatal_at rather than fatal.
8064 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
8066 (gen_split): Likewise.
8067 (main): Update after interface changes.
8068 * genextract.c (line_no): Delete.
8069 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8070 Update call to walk_rtx.
8071 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
8072 rather than message_with_line.
8073 (walk_rtx): Add an md_rtx_info argument. Update call to
8074 VEC_safe_set_locstr.
8075 (main): Update after interface changes.
8076 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8077 and lineno. Use error_at rather than separate message_with_line
8078 calls and have_error assignments.
8079 (main): Update after interface changes.
8080 * genmddump.c (main): Use new read_md_rtx interface.
8081 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8082 (main): Update after interface changes.
8083 * genoutput.c (next_code_number): Delete.
8084 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8085 (gen_peephole, gen_expand, gen_split): Likewise.
8086 (note_constraint): Likewise. Use *_at rather than *_with_line
8088 (main): Update after interface changes.
8089 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8091 (main): Update after interface changes.
8092 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8093 than an rtx and lineno.
8094 (process_define_constraint): Likewise.
8095 (process_define_register_constraint): Likewise.
8096 (main): Update after interface changes.
8097 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8098 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8099 Use *_at rather than *_with_line functions.
8100 (match_pattern_2): Likewise.
8101 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8102 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8103 Use *_at rather than *_with_line functions.
8104 * gentarget-def.c (add_insn): New function.
8105 (main): Use it. Use new read_md_rtx interface.
8107 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8109 * gensupport.h (compute_test_codes): Take a file_location rather
8111 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8112 rather than *_with_line functions.
8113 (process_define_predicate): Update call to compute_test_codes.
8114 * genpreds.c (validate_exp): Take a file_location rather than a
8115 line number. Use *_at functions rather than *_with_line functions.
8116 (process_define_predicate): Update call to validate_exp.
8117 (constraint_data): Replace lineno field with a file_location.
8118 (add_constraint): Take a file_location rather than a line number.
8119 Use *_at functions rather than *_with_line functions. Fix error
8120 message for address constraints. Update after changes to
8121 validate_exp, constraint_data and compute_test_codes.
8122 (process_define_constraint): Update accordingly.
8123 (process_define_register_constraint): Likewise.
8125 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8127 * genoutput.c (data): Use a file_location to record the source
8130 (idata, idata_end): Remove initialization.
8131 (constraint_data): Replace lineno with a file_location.
8132 (output_insn_data): Update after changes to data.
8133 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8134 (scan_operands): Likewise, using *_at rather than *_with_line
8136 (process_template): Likewise.
8137 (validate_insn_alternatives): Likewise.
8138 (validate_insn_operands): Likewise.
8139 (validate_optab_operands): Likewise.
8140 (init_insn_for_nothing): Initialize idata and idata_end.
8141 (note_constraint): Update after changes to constraint_data,
8142 using at rather than with_line functions.
8143 (mdep_constraint_len): Take a file_location rather than a
8144 line number. Use at rather than with_line functions.
8146 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8148 * read-md.h (fatal_at): Declare.
8149 * read-md.c (fatal_at): New function.
8150 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8151 to record the source position.
8152 (check_attr_test): Take a file_location instead of a line number.
8153 Use fatal_at instead of fatal.
8154 (check_attr_value): Update after above changes, using "at"
8155 rather than "with_line" reporting functions.
8156 (convert_set_attr_alternative): Likewise.
8157 (gen_attr): Likewise.
8158 (check_defs): Likewise. Don't assign to read_md_filename.
8159 (gen_insn): Update initialization after above changes.
8160 (gen_delay): Likewise.
8161 (write_insn_cases): Print the filename for a define_peephole.
8162 (gen_insn_reserv): Take a line number as argument and update
8163 the call to check_attr_test.
8164 (main): Pass a line number to gen_insn_reserv.
8166 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8168 * read-md.h (file_location): New structure.
8169 (directive_handler_t): Take a file_location rather than a line number.
8170 (message_at, error_at): Declare.
8171 (read_skip_construct): Delete.
8172 * read-md.c (message_with_line_1): Replace with...
8173 (message_at_1): ...this new function.
8174 (message_at, error_at): New functions.
8175 (message_with_line, error_with_line): Update to use message_at_1.
8176 (handle_enum): Take a file_location rather than a line number
8177 and use error_at for error reporting.
8178 (handle_include): Likewise.
8179 (read_skip_construct): Likewise. Make static.
8180 (handle_file): Update after above changes. Pass a file_location
8181 rather than a line number to handle_directive.
8182 * gensupport.c (queue_elem): Replace separate filename and lineno
8183 with a file_location.
8184 (queue_pattern): Replace filename and lineno arguments with a
8185 file_location. Update after change to queue_elem.
8186 (process_define_predicate): Replace lineno argument with a
8187 file_location and use error_at for error reporting. Update
8188 after above changes.
8189 (process_rtx): Likewise.
8190 (subst_pattern_match): Likewise.
8191 (get_alternatives_number): Likewise.
8192 (alter_predicate_for_insn): Likewise.
8193 (rtx_handle_directive): Likewise.
8194 (is_predicable): Update after above changes, using error_at rather
8195 than error_with_line.
8196 (has_subst_attribute): Likewise.
8197 (identify_predicable_attribute): Likewise.
8198 (alter_attrs_for_subst_insn): Likewise.
8199 (process_one_cond_exec): Likewise.
8200 (process_substs_on_one_elem): Likewise.
8201 (process_define_subst): Likewise.
8202 (check_define_attr_duplicates): Likewise.
8203 (read_md_rtx): Update after change to queue_elem.
8205 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8207 * genoutput.c (next_index_number): Delete.
8208 (data): Remove index_number.
8209 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8210 (main): Remove manipulation of next_index_number.
8212 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8214 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8215 (make_canonical): Likewise.
8217 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8219 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8220 instead of adjust_address_nv.
8221 (restore_stack_nonlocal): Likewise.
8222 (nonlocal_goto): Likewise.
8224 2015-07-16 Tom de Vries <tom@codesourcery.com>
8226 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8227 not have a corresponding loop header phi.
8229 2015-07-16 Tom de Vries <tom@codesourcery.com>
8231 * tree-parloops.c (create_loads_for_reductions): Handle case that
8232 reduction is unused.
8234 2015-07-16 Richard Biener <rguenther@suse.de>
8236 PR tree-optimization/66894
8237 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8238 about deriving NE_EXPR from truncated values.
8240 2015-07-16 Martin Liska <mliska@suse.cz>
8243 (object_allocator): Add new class.
8244 (pool_allocator::initialize): Use the underlying class.
8245 (pool_allocator::allocate): Likewise.
8246 (pool_allocator::remove): Likewise.
8247 (operator new): A new generic allocator.
8248 * asan.c (struct asan_mem_ref): Remove unused members.
8249 (asan_mem_ref_new): Replace new operator with
8250 object_allocator::allocate.
8251 (free_mem_ref_resources): Change deallocation.
8252 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8253 with object_allocator.
8254 * config/sh/sh.c (add_constant): Replace new operator with
8255 object_allocator::allocate.
8256 (sh_reorg): Change call to a release method.
8257 * cselib.c (struct elt_list): Remove unused members.
8258 (new_elt_list): Replace new operator with
8259 object_allocator::allocate.
8260 (new_elt_loc_list): Likewise.
8261 (new_cselib_val): Likewise.
8262 (unchain_one_elt_list): Change delete operator with remove method.
8263 (unchain_one_elt_loc_list): Likewise.
8264 (unchain_one_value): Likewise.
8265 (cselib_finish): Release newly added static allocators.
8266 * cselib.h (struct cselib_val): Remove unused members.
8267 (struct elt_loc_list): Likewise.
8268 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8270 * df-scan.c (struct df_scan_problem_data): Likewise.
8271 (df_scan_alloc): Likewise.
8272 * df.h (struct dataflow): Likewise.
8273 * dse.c (struct read_info_type): Likewise.
8274 (struct insn_info_type): Likewise.
8275 (struct dse_bb_info_type): Likewise.
8276 (struct group_info): Likewise.
8277 (struct deferred_change): Likewise.
8278 (get_group_info): Likewise.
8279 (delete_dead_store_insn): Likewise.
8280 (free_read_records): Likewise.
8281 (replace_read): Likewise.
8282 (check_mem_read_rtx): Likewise.
8283 (scan_insn): Likewise.
8284 (dse_step1): Likewise.
8285 (dse_step7): Likewise.
8286 * et-forest.c (struct et_occ): Remove unused members.
8287 (et_new_occ): Use allocate instead of new operator.
8288 (et_new_tree): Likewise.
8289 (et_free_tree): Call release method explicitly.
8290 (et_free_tree_force): Likewise.
8291 (et_free_pools): Likewise.
8292 (et_split): Use remove instead of delete operator.
8293 * et-forest.h (struct et_node): Remove unused members.
8294 * ipa-cp.c: Change pool_allocator to object_allocator.
8295 * ipa-inline-analysis.c: Likewise.
8296 * ipa-profile.c: Likewise.
8297 * ipa-prop.c: Likewise.
8298 * ipa-prop.h: Likewise.
8299 * ira-build.c (initiate_cost_vectors): Cast return value.
8300 (ira_allocate_cost_vector): Likewise.
8301 * ira-color.c (struct update_cost_record): Remove unused members.
8302 * lra-int.h (struct lra_live_range): Likewise.
8303 (struct lra_copy): Likewise.
8304 (struct lra_insn_reg): Likewise.
8305 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8306 * lra.c (new_insn_reg): Replace new operator with allocate method.
8307 (free_insn_regs): Same for operator delete.
8308 (finish_insn_regs): Release new static allocator.
8309 (finish_insn_recog_data): Likewise.
8310 (lra_free_copies): Replace delete operator with remove method.
8311 (lra_create_copy): Replace operator new with allocate method.
8312 (invalidate_insn_data_regno_info): Same for remove method.
8313 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8314 (free_debug_insn_changes): Replace delete operator with remove method.
8315 (replace_oldest_value_reg): Replace operator new with allocate method.
8316 (pass_cprop_hardreg::execute): Release new static variable.
8317 * sched-deps.c (sched_deps_init): Change pool_allocator to
8319 * sel-sched-ir.c: Likewise.
8320 * sel-sched-ir.h: Likewise.
8321 * stmt.c (expand_case): Likewise.
8322 (expand_sjlj_dispatch_table): Likewise.
8323 * tree-sra.c (struct access): Remove unused members.
8324 (struct assign_link): Likewise.
8325 (sra_deinitialize): Release newly added static pools.
8326 (create_access_1):Replace operator new with allocate method.
8327 (build_accesses_from_assign): Likewise.
8328 (create_artificial_child_access): Likewise.
8329 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8330 pool_allocator to object_allocator.
8331 * tree-ssa-pre.c: Likewise.
8332 * tree-ssa-reassoc.c: Likewise.
8333 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8334 * tree-ssa-strlen.c: Likewise.
8335 * tree-ssa-structalias.c: Likewise.
8336 * var-tracking.c (onepart_pool_allocate): New function.
8337 (unshare_variable): Use the newly added function.
8338 (variable_merge_over_cur): Likewise.
8339 (variable_from_dropped): Likewise.
8340 (variable_was_changed): Likewise.
8341 (set_slot_part): Likewise.
8342 (emit_notes_for_differences_1): Likewise.
8343 (vt_finalize): Release newly added static pools.
8345 2015-07-16 Martin Jambor <mjambor@suse.cz>
8347 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8348 all uses. Fix two typos in its general comment.
8349 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8351 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8353 * config/i386/linux-common.h (LINK_MPX): New.
8354 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8355 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8356 indicating '-z bndplt' support by linker.
8357 * configure: Regenerate.
8358 * config.in: Regenerate.
8360 2015-07-16 Richard Biener <rguenther@suse.de>
8362 * fold-const.c (fold_widened_comparison): Remove.
8363 (fold_sign_changed_comparison): Likewise.
8364 (fold_comparison): Move widened and sign-changed comparison
8366 * match.pd: ... to patterns here.
8367 * generic-match-head.c: Include target.h.
8368 * gimple-match-head.c: Likewise.
8370 2015-07-16 Richard Biener <rguenther@suse.de>
8372 * tree-ssa-dom.c (dom_valueize): New function.
8373 (record_temporary_equivalences): Also record equivalences
8374 for dominating stmts that have uses of equivalences we are
8377 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8379 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8380 add_autoinc_candidates.
8381 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8382 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8383 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8384 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8386 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8387 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8388 Remove parameter struct iv*. Call add_autoinc_candidates here.
8389 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8390 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8392 (find_iv_candidates): Call new functions.
8394 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8396 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8397 uninitialized-variable warning.
8399 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8402 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8403 when the destination is R0.
8405 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8408 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8409 * config/i386/i386.c (ix86_expand_pextr): New function.
8410 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8411 for non-lowpart subregs.
8412 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8413 (insv<mode>): Use SWI248 mode iterator.
8414 (insv<mode>_1): Ditto.
8416 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8417 Sebastian Pop <s.pop@samsung.com>
8419 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8420 iterator to use_stmt.
8422 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8423 Sebastian Pop <s.pop@samsung.com>
8425 * graphite-scop-detection.c (build_scops_1): Discard scops for
8428 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8429 Sebastian Pop <s.pop@samsung.com>
8431 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8432 case of a return statement in scop.
8434 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8435 Sebastian Pop <s.pop@samsung.com>
8437 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8438 INTEGER_TYPE parameters.
8439 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8440 VECTOR_CST in scan_tree_for_params.
8441 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8443 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8445 * gimple-pretty-print.h: Don't include pretty-print.h.
8446 * tree-streamer.h: Don't include lto-streamer.h.
8447 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8448 * gimple-streamer-in.c: Remove redundant includes.
8449 * gimple-streamer-out.c: Likewise.
8450 * ipa-devirt.c: Likewise.
8451 * ipa-icf.c: Likewise.
8452 * ipa-inline-analysis.c: Likewise.
8453 * ipa-polymorphic-call.c: Likewise.
8454 * ipa-profile.c: Likewise.
8455 * ipa-prop.c: Likewise.
8456 * ipa-pure-const.c: Likewise.
8457 * lto-cgraph.c: Likewise.
8458 * lto-streamer-in.c: Likewise.
8459 * lto-streamer-out.c: Likewise.
8460 * lto-streamer.c: Likewise.
8461 * tree-streamer-in.c: Likewise.
8462 * tree-streamer-out.c: Likewise.
8463 * tree-streamer.c: Likewise.
8465 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8467 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8469 * opts.c: Remove multiline #include comment.
8471 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8473 * config/nvptx/mkoffload.c (process): Add C++ protection to
8476 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8479 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8480 null before IEEE 128-bit floating point support patch.
8482 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8484 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8485 for (!c) != {0,...,0} ? a : b for vector modes.
8487 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8488 Martin Jambor <mjambor@suse.cz>
8490 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8491 struct func_body_info* instead of struct ipa_node_params*, expecting
8492 fbi->info to be filled in. Replace throughout. Adjust call to
8493 ipa_load_from_parm_agg.
8494 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8495 instead of struct ipa_node_params*. Adjust calls to other functions
8496 so that they pass either fbi or fbi->info.
8497 (set_switch_stmt_execution_predicate): Likewise.
8498 (will_be_nonconstant_predicate): Likewise.
8499 (compute_bb_predicates): Likewise.
8500 (estimate_function_body_sizes): Move asserts earlier. Fill in
8501 struct func_body_info, replace parms_info with fbi.info. Adjust
8502 calls to functions that now accept struct func_body_info.
8503 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8504 (struct func_body_info): Likewise.
8505 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8506 remove static. Adjust callers.
8507 (ipa_load_from_parm_agg): Remove.
8508 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8509 (func_body_info): Likewise.
8510 (ipa_load_from_parm_agg): Adjust prototype.
8512 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8514 * gensupport.c (rtx_handle_directive): Adjust.
8515 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8516 instead of expr list rtx.
8517 (add_define_attr_for_define_subst): Likewise.
8518 (add_define_subst_attr): Likewise.
8519 (read_subst_mapping): Likewise.
8520 (read_rtx): Likewise.
8521 * rtl.h (read_rtx): Adjust.
8523 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8525 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8527 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8530 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8531 (*tls_local_dynamic_base_64_<mode>): Ditto.
8532 (*tls_local_dynamic_base_64_largepic): Ditto.
8533 (tls_global_dynamic_64_<mode>): Update expander pattern.
8534 (tls_local_dynamic_base_64_<mode>): Ditto.
8536 2015-07-15 Richard Biener <rguenther@suse.de>
8538 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8539 and bool_var == 1 -> bool_var simplifications ...
8540 * match.pd: ... to patterns here. Factor out negate_expr_p
8541 cases from the A - B -> A + (-B) patterns as negate_expr_p
8542 predicate and add a -(A + B) -> (-B) - A pattern.
8544 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8546 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8548 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8549 Robert Suchanek <robert.suchanek@imgtec.com>
8551 * config/mips/mips.c (mips_int_mask): New enum.
8552 (mips_shadow_set): Likewise.
8553 (int_mask): New variable.
8554 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8555 (machine_function): Add int_mask and use_shadow_register_set.
8556 (mips_attribute_table): Add attribute handlers for interrupt and
8557 use_shadow_register_set.
8558 (mips_interrupt_mask): New static function.
8559 (mips_handle_interrupt_attr): Likewise.
8560 (mips_handle_use_shadow_register_set_attr): Likewise.
8561 (mips_use_shadow_register_set): Change return type to enum
8562 mips_shadow_set. Add argument handling for use_shadow_register_set
8564 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8565 compare with mips_shadow_set enum.
8566 (mips_compute_frame_info): Add interrupt mask and
8567 use_shadow_register_set to per-function information structure.
8568 Add a stack slot for EPC unconditionally.
8569 (mips_expand_prologue): Compare use_shadow_register_set value
8570 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8571 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8572 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8573 copying the stack pointer from the shadow register set.
8574 * config/mips/mips.h (SR_IM0): New define.
8575 * config/mips/mips.md (mips_rdpgpr): Rename to...
8576 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8577 * doc/extend.texi (Declaring Attributes of Functions): Document
8578 optional arguments for interrupt and use_shadow_register_set
8581 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8583 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8584 interrupt attribute.
8585 (mips_expand_prologue): Disable the floating point unit in an ISR.
8586 * config/mips/mips.h (SR_COP1): New define.
8588 2015-07-15 Richard Biener <rguenther@suse.de>
8590 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8591 to tell how many tokens to peek ahead (default 1).
8592 (parser::eat_token, parser::eat_ident): Return token consumed.
8593 (parser::parse_result): Parse new switch statement.
8594 * match.pd: Use case statements where appropriate.
8596 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8598 PR rtl-optimization/58066
8599 * calls.c (expand_call): Precompute register parameters before stack
8600 alignment is performed.
8602 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8604 PR rtl-optimization/66838
8605 * postreload.c (reload_cse_move2add): Also process
8606 CALL_INSN_FUNCTION_USAGE when resetting information of
8607 call-clobbered registers.
8609 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8610 Cesar Philippidis <cesar@codesourcery.com>
8611 Chung-Lin Tang <cltang@codesourcery.com>
8613 * config/nios2/constraints.md (U, v): New constraints.
8614 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8615 (ldstex_memory_operand): New.
8616 * config/nios2/sync.md: New file.
8617 * config/nios2/nios2.md (unspecv): Add new builtin function
8619 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8620 (top-level): Include sync.md.
8621 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8623 (N2_BUILTINS): Add arch field setting, add new builtins.
8624 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8626 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8627 Also handle ldex/stex/ldsex/stsex builtins.
8628 (nios2_expand_rdprs_builtin): New function.
8629 (nios2_expand_cache_builtin): New function.
8630 (nios2_expand_wrpie_builtin): New function.
8631 (nios2_expand_eni_builtin): New function.
8632 (nios2_expand_builtin): Add arch field handling and new builtin
8634 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8636 * doc/md.texi (Machine Constraints): Document U and v constraints.
8638 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8639 Cesar Philippidis <cesar@codesourcery.com>
8640 Chung-Lin Tang <cltang@codesourcery.com>
8642 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8643 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8644 callee_save_reg_size and uses_anonymous_args fields.
8645 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8646 (nios2_create_cfa_notes): New function.
8647 (nios2_adjust_stack): New function for adjusting stack.
8648 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8649 Use nios2_adjust_stack.
8650 (nios2_expand_epilogue): Likewise.
8651 (nios2_expand_return): New function.
8652 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8653 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8654 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8655 * config/nios2/nios2.md (return): Use nios2_expand_return.
8657 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8658 Cesar Philippidis <cesar@codesourcery.com>
8659 Chung-Lin Tang <cltang@codesourcery.com>
8661 * config/nios2/predicates.md (pop_operation): New.
8662 (ldwm_operation, stwm_operation): New.
8663 (nios2_hard_register_operand): New.
8664 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8665 (ldstwm_operation_p): Declare.
8666 (gen_ldstwm_peep): Declare.
8667 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8668 (base_reg_adjustment_p): New.
8669 (pop_operation_p): New.
8670 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8671 (nios2_ldstwm_regset_p): New.
8672 (ldstwm_operation_p): New.
8674 (nios2_ldst_parallel): New.
8675 (struct ldswm_operand): Declare.
8676 (compare_ldstwm_operands): New.
8677 (can_use_cdx_ldstw): New.
8678 (gen_ldstwm_peep): New.
8679 * config/nios2/nios2-ldstwm.sml: New.
8680 * config/nios2/nios2.md: Include ldstwm.md.
8681 * config/nios2/ldstwm.md: Generated.
8683 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8684 Cesar Philippidis <cesar@codesourcery.com>
8685 Chung-Lin Tang <cltang@codesourcery.com>
8687 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8688 (REG_ALLOC_ORDER): Define.
8689 (ADJUST_REG_ALLOC_ORDER): Define.
8690 (HONOR_REG_ALLOC_ORDER): Define.
8691 (CDX_REG_P): Define.
8692 (ANDCLEAR_INT): Define.
8693 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8694 (nios2_label_align): Declare.
8695 (nios2_cdx_narrow_form_p): Declare.
8696 (nios2_adjust_reg_alloc_order): Declare.
8697 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8699 (nios2_large_unspec_reloc_p): New function, split from...
8700 (nios2_legitimate_pic_operand_p): ...here.
8701 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8702 (nios2_print_operand_punct_valid_p): New.
8703 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8704 (split_mem_address): New.
8705 (split_alu_insn): New.
8707 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8708 (enum nios2_add_insn_kind): New.
8709 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8710 (nios2_add_insn_classify): New.
8711 (nios2_add_insn_asm): New.
8712 (nios2_cdx_narrow_form_p): New.
8713 (label_align, min_labelno, max_labelno): New.
8715 (nios2_label_align): New.
8716 (nios2_adjust_reg_alloc_order): New.
8717 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8718 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8719 * config/nios2/constraints.md (P): New constraint.
8720 * config/nios2/predicates.md (const_and_operand): New.
8722 (stack_memory_operand): New.
8723 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8724 (length): Update to use nios2_cdx_narrow_form_p().
8725 (type): Add new insn type values.
8726 (control, alu, st, ld, shift): Update insn reservations with
8727 new insn type values.
8728 (*high, *lo_sum): Define new insn patterns for constant generation.
8729 (movqi_internal, movhi_internal, movsi_internal): Reduce
8730 alternatives, update asm template to handle CDX variants, update
8732 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8733 template, update type attributes.
8734 (extendhisi2, extendqi<mode>2): Likewise.
8735 (addsi3): Change to use function for asm string.
8736 (subsi3): Add CDX notation to asm template, update type attributes.
8737 (negsi3, one_cmplsi3): Likewise.
8738 (andsi3): New pattern, specialized from logical patterns.
8739 (<code>si3): Remove and case, combine alternatives, update asm
8741 (<shift_op>si3): Add CDX notation, update type attributes.
8742 (rotrsi3): Update type attribute.
8743 (*merge, extzv, insv): New insn patterns.
8744 (return): Change to define_expand.
8745 (simple_return): Add CDX notation, update type attributes.
8746 (indirect_jump): Add CDX notation.
8747 (jump): Update asm cases, update length attribute expression.
8748 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8749 (nios2_cbranch): Update asm cases and length attribute expression
8750 to handle CDX variants.
8751 (nios2_cmp<code>): Update asm template.
8752 (nop): Add CDX notation, update type attributes.
8753 (trap): Add CDX notation.
8754 (ctrapsi4): Update asm cases and length attribute expression to
8756 * doc/md.texi (Machine Constraints): Document P constraint.
8758 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8759 Cesar Philippidis <cesar@codesourcery.com>
8760 Chung-Lin Tang <cltang@codesourcery.com>
8762 * config/nios2/nios2.h (SMALL_INT12): New macro.
8763 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8764 (nios2_valid_addr_expr_p): Use it.
8765 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8766 with implicit "io" instructions on R2.
8767 * config/nios2/constraints.md (w): New constraint.
8768 * config/nios2/predicates.md (ldstio_memory_operand): New.
8769 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8770 operand predicate and constraint.
8771 (ld<bh>io_signed, st<bhw>io>): Likewise.
8772 * doc/md.texi (Machine Constraints): Document w constraint.
8774 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8775 Cesar Philippidis <cesar@codesourcery.com>
8776 Chung-Lin Tang <cltang@codesourcery.com>
8778 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8779 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8780 Nios II architecture level.
8781 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8782 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8783 (OPTION_DEFAULT_SPECS): Define.
8784 (ASM_SPEC): Add -march= spec strings.
8785 * config/nios2/nios2.c (nios2_option_override): Check for
8786 conflicts involving new options.
8787 * config.gcc (nios2*-*-*): Support --with-arch=.
8788 * doc/invoke.texi (Option Summary, Nios II Options): Document
8789 -march=, -mbmx, and -mcdx.
8791 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8793 PR rtl-optimization/66626
8794 * lra-constraints.c (lra_constraints): Prevent equivalence
8795 substitution for static chain pseudo in functions with nonlocal
8798 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8800 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8801 (nios2_emit_stack_limit_check): Add size parameter. Handle
8802 -fstack-limit-symbol as well as -fstack-limit-register.
8803 (nios2_expand_prologue): Emit only a single stack limit check,
8804 even if multiple stack adjustments are required.
8805 (nios2_option_override): Diagnose unsupported combination of -fpic
8806 and -stack-limit-symbol.
8808 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8810 * Makefile.in (top_srcdir): New.
8811 * configure.ac: Use AM_ZLIB.
8812 * configure: Regeneated.
8814 2015-07-14 Matthias Klose <doko@ubuntu.com>
8817 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8819 2015-07-14 Richard Biener <rguenther@suse.de>
8821 PR tree-optimization/66863
8822 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8823 what we record for conversion use stmt lhs inequalities.
8825 2015-07-14 Richard Biener <rguenther@suse.de>
8827 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8828 (decision_tree::gen_gimple): Likewise.
8830 2015-07-14 Tom de Vries <tom@codesourcery.com>
8832 * gcc.c (greater_than_spec_func): Declare forward.
8833 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8834 -ftree-parallelize-loops={0,1}.
8835 (static_spec_functions): Add greater_than_spec_func function with name
8837 (greater_than_spec_func): New function.
8839 2015-07-14 Richard Biener <rguenther@suse.de>
8841 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8842 wideing type conversion case from record_equivalences_from_incoming_edge
8843 and use record_equality to record equivalences.
8844 (record_equivalences_from_incoming_edge): Call
8845 record_temporary_equivalences.
8847 2015-07-14 Richard Biener <rguenther@suse.de>
8849 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8850 (struct if_expr): New.
8851 (struct with_expr): Likewise.
8852 (is_a_helper): Add helpers for if_expr and with_expr.
8853 (struct simplify): Add simplify_kind enum and member. Remove
8855 (simplify::simplify): Adjust.
8856 (lower_commutative): Adjust.
8857 (lower_opt_convert): Likewise.
8858 (lower_cond): Likewise.
8859 (replace_id): Handle with_expr and if_expr.
8860 (lower_for): Adjust.
8861 (dt_simplify::gen_1): New recursive worker, split out from ...
8862 (dt_simplify::gen): ... here. Deal with if and with expansion
8864 (capture_info::capture_info): Take context argument
8865 (capture_info::walk_result): Only analyze specific result.
8866 (parser::parse_result): New function.
8867 (parser::parse_simplify): Adjust to parse ifs with then end
8869 (parser::parse_if): Simplify.
8870 (parser::parse_pattern): Pass down simplify kind.
8871 * match.pd: Convert if structure to new syntax.
8873 2015-07-13 Marek Polacek <polacek@redhat.com>
8875 * rtl.c (rtx_equal_p_cb): Fix typo.
8877 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8879 * omega.h: Don't include config.h, don't include params.h again if
8880 omega.h has already been included.
8881 * graphite-poly.h: Include sese.h.
8882 * graphite.c: Don't include sese.h, remove needless includes and
8883 minimize includes outside #ifdef HAVE_isl block.
8884 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8885 and wrap entire file in #ifdef HAVE_isl
8886 * graphite-dependences.c: Likewise.
8887 * graphite-interchange.c: Likewise.
8888 * graphite-isl-ast-to-gimple.c: Likewise.
8889 * graphite-optimize-isl.c: Likewise.
8890 * graphite-poly.c: Likewise.
8891 * graphite-scop-detection.c: Likewise.
8892 * graphite-sese-to-poly.c: Likewise.
8894 2015-07-13 Tom de Vries <tom@codesourcery.com>
8896 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8898 2015-07-13 Renlin Li <renlin.li@arm.com>
8901 * simplify-rtx.c (simplify_const_relational_operation): Add
8902 side_effects_p checks.
8904 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8906 * bitmap.h: Fix double word typos.
8909 * cfgloopmanip.c: Same.
8912 * cgraphclones.c: Same.
8914 * config/aarch64/aarch64-protos.h: Same.
8915 * config/aarch64/aarch64.c: Same.
8916 * config/aarch64/aarch64.md: Same.
8917 * config/arm/arm.md: Same.
8918 * config/arm/arm1020e.md: Same.
8919 * config/arm/arm1026ejs.md: Same.
8920 * config/arm/arm926ejs.md: Same.
8921 * config/arm/fa526.md: Same.
8922 * config/arm/fa606te.md: Same.
8923 * config/arm/fa626te.md: Same.
8924 * config/arm/fa726te.md: Same.
8925 * config/arm/fmp626.md: Same.
8926 * config/darwin.c: Same.
8927 * config/epiphany/epiphany.c: Same.
8928 * config/frv/frv.c: Same.
8929 * config/ft32/ft32.c: Same.
8930 * config/gnu-user.h: Same.
8931 * config/h8300/constraints.md: Same.
8932 * config/i386/i386.c: Same.
8933 * config/i386/i386.md: Same.
8934 * config/iq2000/iq2000.md: Same.
8935 * config/mips/mips.c: Same.
8936 * config/mmix/mmix.md: Same.
8937 * config/moxie/moxie.c: Same.
8938 * config/nds32/nds32.md: Same.
8939 * config/pa/pa.h: Same.
8940 * config/rs6000/aix.h: Same.
8941 * config/rs6000/rs6000.h: Same.
8942 * config/sh/sh.c: Same.
8943 * config/tilegx/tilegx.md: Same.
8944 * config/tilepro/gen-mul-tables.cc: Same.
8947 * doc/invoke.texi: Same.
8949 * dwarf2out.c: Same.
8954 * hash-table.h: Same.
8955 * internal-fn.c: Same.
8957 * ipa-devirt.c: Same.
8960 * ipa-profile.c: Same.
8965 * reg-stack.c: Same.
8971 * tree-inline.c: Same.
8973 * tree-ssa-dom.c: Same.
8974 * tree-ssa-loop-ivopts.c: Same.
8975 * tree-ssa-structalias.c: Same.
8976 * tree-ssa-tail-merge.c: Same.
8977 * tree-ssa-ter.c: Same.
8978 * tree-ssa-threadupdate.c: Same.
8979 * tree-ssa-uninit.c: Same.
8980 * tree-ssanames.c: Same.
8981 * tree-vect-loop-manip.c: Same.
8987 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8990 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8991 tree_ssa_phiopt_worker): Call it.
8993 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8995 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8996 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8999 2015-07-11 Marek Polacek <polacek@redhat.com>
9002 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9003 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9004 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9005 rather than bb_has_abnormal_call_pred.
9006 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9007 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9008 rather than bb_has_abnormal_call_pred.
9010 2015-07-10 Anatoly Sokolov <aesok@post.ru>
9012 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9013 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9014 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9015 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9016 v850_legitimate_address_p): New functions.
9017 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9019 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
9022 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9023 indirect sibcall with register arguments if register available
9024 for argument passing.
9025 (init_cumulative_args): Set cfun->machine->arg_reg_available
9026 to (cum->nregs > 0) or to true if function has a variable
9028 (function_arg_advance_32): Set cfun->machine->arg_reg_available
9029 to false if cum->nregs <= 0.
9030 * config/i386/i386.h (machine_function): Add arg_reg_available.
9032 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9034 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9035 and gen_higpart instead of gen_rtx_SUBREG.
9036 * config/i386/i386.md
9037 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9038 (read-modify peephole2): Use gen_lowpart instead of
9039 gen_rtx_SUBREG for operand 5.
9041 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9043 * config/tilepro/gen-mul-tables.cc (main): Change include list for
9045 * config/tilepro/mul-tables.c: Regenerate.
9046 * config/tilegx/mul-tables.c: Regenerate.
9048 2015-07-10 Richard Biener <rguenther@suse.de>
9050 * fold-const.c (distribute_bit_expr): Remove.
9051 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9052 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9053 to A & (B | C) and simplifying A << C1 << C2 to ...
9054 * match.pd: ... patterns here.
9056 2015-07-10 Jiong Wang <jiong.wang@arm.com>
9058 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9059 Mark mem as READONLY and NOTRAP for PIC symbol.
9061 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9063 * gimple-predict.h: New file.
9064 (gimple_predict_predictor, gimple_predict_set_predictor,
9065 gimple_predict_outcome, gimple_predict_set_outcome,
9066 gimple_build_predict): Relocate here.
9067 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9068 gimple_predict_outcome, gimple_predict_set_outcome): Move to
9070 * gimple.c (gimple_build_predict): Move to gimple-predict.h
9071 * basic-block.h: Don't include cfghooks.h.
9072 * backend.h: Don't include predict.h.
9073 * cfghooks.h: Include predict.h.
9074 * gimple-pretty-print.c: Include gimple-predict.h.
9075 * gimplify.c: Likwise.
9076 * predict.c: Adjust includes.
9077 * tree-inline.c: Likewise.
9079 * auto-inc-dec.c: Likewise.
9080 * auto-profile.c: Likewise.
9081 * bb-reorder.c: Likewise.
9082 * builtins.c: Likewise.
9083 * caller-save.c: Likewise.
9084 * calls.c: Likewise.
9085 * cfganal.c: Likewise.
9086 * cfgbuild.c: Likewise.
9088 * cfgcleanup.c: Likewise.
9089 * cfgexpand.c: Likewise.
9090 * cfghooks.c: Likewise.
9091 * cfgloopanal.c: Likewise.
9092 * cfgloop.c: Likewise.
9093 * cfgloopmanip.c: Likewise.
9094 * cfgrtl.c: Likewise.
9095 * cgraph.c: Likewise.
9096 * cgraphunit.c: Likewise.
9097 * combine.c: Likewise.
9098 * cprop.c: Likewise.
9101 * dojump.c: Likewise.
9103 * except.c: Likewise.
9104 * expmed.c: Likewise.
9106 * final.c: Likewise.
9107 * fold-const.c: Likewise.
9108 * function.c: Likewise.
9109 * fwprop.c: Likewise.
9110 * gcc-plugin.h: Likewise.
9112 * genattrtab.c: Likewise.
9113 * genemit.c: Likewise.
9114 * gengtype.c: Likewise.
9115 * genopinit.c: Likewise.
9116 * genoutput.c: Likewise.
9117 * genpreds.c: Likewise.
9118 * genrecog.c: Likewise.
9119 * gimple-fold.c: Likewise.
9120 * gimple-iterator.c: Likewise.
9121 * gimple-ssa-isolate-paths.c: Likewise.
9122 * gimple-ssa-strength-reduction.c: Likewise.
9123 * graph.c: Likewise.
9124 * graphite-blocking.c: Likewise.
9125 * graphite.c: Likewise.
9126 * graphite-dependences.c: Likewise.
9127 * graphite-interchange.c: Likewise.
9128 * graphite-isl-ast-to-gimple.c: Likewise.
9129 * graphite-optimize-isl.c: Likewise.
9130 * graphite-poly.c: Likewise.
9131 * graphite-scop-detection.c: Likewise.
9132 * graphite-sese-to-poly.c: Likewise.
9133 * haifa-sched.c: Likewise.
9134 * ifcvt.c: Likewise.
9135 * internal-fn.c: Likewise.
9136 * ipa-cp.c: Likewise.
9137 * ipa-profile.c: Likewise.
9138 * ipa-split.c: Likewise.
9139 * ipa-utils.c: Likewise.
9140 * ira-build.c: Likewise.
9141 * ira-color.c: Likewise.
9142 * ira-conflicts.c: Likewise.
9143 * ira-costs.c: Likewise.
9144 * ira-emit.c: Likewise.
9145 * ira-lives.c: Likewise.
9147 * loop-doloop.c: Likewise.
9148 * loop-init.c: Likewise.
9149 * loop-invariant.c: Likewise.
9150 * loop-unroll.c: Likewise.
9151 * lower-subreg.c: Likewise.
9152 * lra-assigns.c: Likewise.
9154 * lra-coalesce.c: Likewise.
9155 * lra-constraints.c: Likewise.
9156 * lra-lives.c: Likewise.
9157 * lto-cgraph.c: Likewise.
9158 * lto-streamer-in.c: Likewise.
9159 * mode-switching.c: Likewise.
9160 * modulo-sched.c: Likewise.
9161 * omp-low.c: Likewise.
9162 * optabs.c: Likewise.
9163 * passes.c: Likewise.
9164 * postreload.c: Likewise.
9165 * postreload-gcse.c: Likewise.
9166 * profile.c: Likewise.
9167 * recog.c: Likewise.
9168 * regstat.c: Likewise.
9169 * reload1.c: Likewise.
9170 * reorg.c: Likewise.
9171 * rtlanal.c: Likewise.
9172 * sched-ebb.c: Likewise.
9173 * sel-sched-ir.c: Likewise.
9175 * shrink-wrap.c: Likewise.
9176 * simplify-rtx.c: Likewise.
9178 * store-motion.c: Likewise.
9179 * tracer.c: Likewise.
9180 * trans-mem.c: Likewise.
9181 * tree-call-cdce.c: Likewise.
9182 * tree-cfg.c: Likewise.
9183 * tree-cfgcleanup.c: Likewise.
9184 * tree-chkp.c: Likewise.
9185 * tree-complex.c: Likewise.
9186 * tree-eh.c: Likewise.
9187 * tree-if-conv.c: Likewise.
9188 * tree-loop-distribution.c: Likewise.
9189 * tree-outof-ssa.c: Likewise.
9190 * tree-parloops.c: Likewise.
9191 * tree-predcom.c: Likewise.
9192 * tree-pretty-print.c: Likewise.
9193 * tree-profile.c: Likewise.
9194 * tree-sra.c: Likewise.
9195 * tree-ssa.c: Likewise.
9196 * tree-ssa-coalesce.c: Likewise.
9197 * tree-ssa-dce.c: Likewise.
9198 * tree-ssa-dom.c: Likewise.
9199 * tree-ssa-forwprop.c: Likewise.
9200 * tree-ssa-ifcombine.c: Likewise.
9201 * tree-ssa-loop-ch.c: Likewise.
9202 * tree-ssa-loop-im.c: Likewise.
9203 * tree-ssa-loop-ivcanon.c: Likewise.
9204 * tree-ssa-loop-ivopts.c: Likewise.
9205 * tree-ssa-loop-manip.c: Likewise.
9206 * tree-ssa-loop-prefetch.c: Likewise.
9207 * tree-ssa-loop-unswitch.c: Likewise.
9208 * tree-ssa-math-opts.c: Likewise.
9209 * tree-ssa-phiopt.c: Likewise.
9210 * tree-ssa-pre.c: Likewise.
9211 * tree-ssa-reassoc.c: Likewise.
9212 * tree-ssa-sink.c: Likewise.
9213 * tree-ssa-tail-merge.c: Likewise.
9214 * tree-ssa-threadedge.c: Likewise.
9215 * tree-ssa-threadupdate.c: Likewise.
9216 * tree-switch-conversion.c: Likewise.
9217 * tree-tailcall.c: Likewise.
9218 * tree-vect-data-refs.c: Likewise.
9219 * tree-vect-loop.c: Likewise.
9220 * tree-vect-loop-manip.c: Likewise.
9221 * tree-vectorizer.c: Likewise.
9222 * tree-vrp.c: Likewise.
9223 * ubsan.c: Likewise.
9224 * value-prof.c: Likewise.
9225 * varasm.c: Likewise.
9226 * var-tracking.c: Likewise.
9227 * config/aarch64/aarch64-builtins.c: Likewise.
9228 * config/aarch64/aarch64.c: Likewise.
9229 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9230 * config/alpha/alpha.c: Likewise.
9231 * config/arc/arc.c: Likewise.
9232 * config/arm/arm.c: Likewise.
9233 * config/avr/avr.c: Likewise.
9234 * config/bfin/bfin.c: Likewise.
9235 * config/c6x/c6x.c: Likewise.
9236 * config/cr16/cr16.c: Likewise.
9237 * config/cris/cris.c: Likewise.
9238 * config/darwin.c: Likewise.
9239 * config/darwin-c.c: Likewise.
9240 * config/epiphany/epiphany.c: Likewise.
9241 * config/epiphany/mode-switch-use.c: Likewise.
9242 * config/epiphany/resolve-sw-modes.c: Likewise.
9243 * config/fr30/fr30.c: Likewise.
9244 * config/frv/frv.c: Likewise.
9245 * config/ft32/ft32.c: Likewise.
9246 * config/h8300/h8300.c: Likewise.
9247 * config/i386/i386.c: Likewise.
9248 * config/i386/winnt.c: Likewise.
9249 * config/ia64/ia64.c: Likewise.
9250 * config/iq2000/iq2000.c: Likewise.
9251 * config/lm32/lm32.c: Likewise.
9252 * config/m32c/m32c.c: Likewise.
9253 * config/m32r/m32r.c: Likewise.
9254 * config/m68k/m68k.c: Likewise.
9255 * config/mcore/mcore.c: Likewise.
9256 * config/mep/mep.c: Likewise.
9257 * config/microblaze/microblaze.c: Likewise.
9258 * config/mips/mips.c: Likewise.
9259 * config/mmix/mmix.c: Likewise.
9260 * config/mn10300/mn10300.c: Likewise.
9261 * config/moxie/moxie.c: Likewise.
9262 * config/msp430/msp430.c: Likewise.
9263 * config/nds32/nds32.c: Likewise.
9264 * config/nds32/nds32-cost.c: Likewise.
9265 * config/nds32/nds32-fp-as-gp.c: Likewise.
9266 * config/nds32/nds32-intrinsic.c: Likewise.
9267 * config/nds32/nds32-isr.c: Likewise.
9268 * config/nds32/nds32-md-auxiliary.c: Likewise.
9269 * config/nds32/nds32-memory-manipulation.c: Likewise.
9270 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9271 * config/nds32/nds32-predicates.c: Likewise.
9272 * config/nios2/nios2.c: Likewise.
9273 * config/nvptx/nvptx.c: Likewise.
9274 * config/pa/pa.c: Likewise.
9275 * config/pdp11/pdp11.c: Likewise.
9276 * config/rl78/rl78.c: Likewise.
9277 * config/rs6000/rs6000.c: Likewise.
9278 * config/rx/rx.c: Likewise.
9279 * config/s390/s390.c: Likewise.
9280 * config/sh/sh.c: Likewise.
9281 * config/sh/sh-mem.cc: Likewise.
9282 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9283 * config/sh/sh_treg_combine.cc: Likewise.
9284 * config/sparc/sparc.c: Likewise.
9285 * config/spu/spu.c: Likewise.
9286 * config/stormy16/stormy16.c: Likewise.
9287 * config/tilegx/tilegx.c: Likewise.
9288 * config/tilepro/tilepro.c: Likewise.
9289 * config/v850/v850.c: Likewise.
9290 * config/vax/vax.c: Likewise.
9291 * config/visium/visium.c: Likewise.
9292 * config/xtensa/xtensa.c: Likewise.
9294 2015-07-10 Richard Biener <rguenther@suse.de>
9296 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9297 (decision_tree::gen_gimple): Likewise.
9298 (decision_tree::gen_generic): Likewise.
9300 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9303 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9304 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9306 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9309 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9310 or ORT_TASK contexts.
9311 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9314 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9316 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9319 2015-07-10 Tom de Vries <tom@codesourcery.com>
9321 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9322 insert nit + 1 bound.
9324 2015-07-10 Richard Biener <rguenther@suse.de>
9326 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9327 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9328 (if_convertible_loop_p_1): For this always compute bb predicates.
9329 (if_convertible_loop_p): And free them.
9331 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9333 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9336 2015-07-10 Richard Biener <rguenther@suse.de>
9338 PR tree-optimization/66823
9339 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9342 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9344 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9345 to handle mips[32|64]r3 and mips[32|64]r5.
9347 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9350 * tree-nested.c (get_static_chain): Or in a flag into
9351 info->static_chain_added.
9352 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9353 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9355 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9356 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9359 PR tree-optimization/66718
9360 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9362 (vect_simd_lane_linear): New function.
9363 (vectorizable_simd_clone_call): Support using linear arguments for
9364 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9366 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9369 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9371 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9373 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9374 Use machine mode, not enum machine_mode in the prototype.
9376 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9377 classify 128-bit floating point support.
9378 (FLOAT128_IBM_P): Likewise.
9379 (FLOAT128_VECTOR_P): Likewise.
9380 (FLOAT128_2REG_P): Likewise.
9381 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9382 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9383 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9384 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9386 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9387 tests against TFmode/TDmode, since those modes do not use VSX
9389 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9391 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9392 tests against TFmode, etc.
9393 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9394 (reg_offset_addressing_ok_p): Likewise.
9395 (rs6000_legitimate_offset_address_p): Likewise.
9396 (rs6000_legitimize_address): Likewise.
9397 (rs6000_legitimize_reload_address): Likewise.
9398 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9399 TDmode to use the new helper macros, which will include IFmode and
9401 (rs6000_emit_move): Likewise.
9402 (rs6000_darwin64_record_arg_recurse): Likewise.
9403 (print_operand): Likewise.
9404 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9405 that uses a single vector register as a vector and not as a
9406 floating point register in terms of the calling sequence.
9407 (rs6000_discover_homogeneous_aggregate): Likewise.
9408 (rs6000_return_in_memory): Likewise.
9409 (init_cumulative_args): Likewise.
9410 (rs6000_function_arg_boundary): Likewise.
9411 (rs6000_function_arg_advance_1): Likewise.
9412 (rs6000_function_arg): Likewise.
9413 (rs6000_pass_by_reference): Likewise.
9414 (rs6000_gimplify_va_arg): Likewise.
9415 (rs6000_secondary_reload_memory): Use machine_mode not enum
9417 (rs6000_split_multireg_move): Use new helper macros.
9418 (spe_func_has_64bit_regs_p): Likewise.
9419 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9420 (output_toc): Use new helper macros.
9421 (rs6000_register_move_cost): Likewise.
9422 (rs6000_function_value): Add IEEE 128-bit floating point calling
9424 (rs6000_libcall_value): Likewise.
9425 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9426 floating point support.
9427 (rs6000_vector_mode_supported_p): Likewise.
9429 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9431 PR rtl-optimization/66782
9432 * lra-int.h (struct lra_insn_recog_data): Add comment about
9433 clobbered hard regs for arg_hard_regs.
9434 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9435 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9436 Add condition for processing used hard regs.
9437 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9438 Process clobbered hard regs.
9440 2015-07-09 Michael Matz <matz@suse.de>
9442 * genmatch.c (fprintf_indent): New function.
9443 (operand::gen_transform): Add indent parameter.
9444 (expr::gen_transform, c_expr::gen_transform,
9445 capture::gen_transform): Ditto and use fprintf_indent.
9446 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9447 (dt_operand::gen, dt_operand::gen_predicate,
9448 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9449 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9450 (decision_tree::gen_gimple): Adjust calls and indent generated
9452 (decision_tree::gen_generic): Ditto.
9453 (write_predicate): Ditto.
9455 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9458 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9459 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9460 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9461 {GENERAL,SSE,MMX}_REG_P where appropriate.
9463 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9465 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9466 * builtins.c: Adjust includes.
9467 * gimple.c: Likewise.
9468 * ipa-icf.c: Likewise.
9469 * lto-opts.c: Likewise.
9470 * ipa-reference.c: Likewise.
9471 * lto-section-out.c: Likewise.
9472 * lto-streamer-in.c: Likewise.
9473 * lto-streamer-out.c: Likewise.
9474 * opts-global.c: Likewise.
9475 * symtab.c: Likewise.
9476 * tree-chkp.c: Likewise.
9477 * tree-ssa-live.c: Likewise.
9478 * tree-streamer-in.c: Likewise.
9479 * tree-streamer-out.c: Likewise.
9480 * config/darwin.c: Likewise.
9481 * config/i386/winnt.c: Likewise.
9483 2015-07-09 Richard Biener <rguenther@suse.de>
9485 * genmatch.c (struct expr): Add force_single_use flag.
9486 (expr::expr): Add copy constructor.
9487 (capture_info::walk_match): Gather force_single_use captures.
9488 (expr::gen_transform): Use possibly NULLified sequence.
9489 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9490 seq if any constrained expr is not single-use.
9491 (parser::parse_expr): Refactor to allow multiple flags. Handle
9492 's' flag to force an expression have a single-use if the pattern
9493 simplifies to more than one statement.
9494 * match.pd: Convert most single_use conditionals to :s flags.
9496 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9498 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9499 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9500 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9502 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9504 * flags.h: Don't include flag-types.h or options.h.
9505 * opts-common.c: Adjust includes.
9506 * opts-global.c: Likewise.
9507 * common/config/epiphany/epiphany-common.c: Likewise.
9509 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9512 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9515 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9518 * config/i386/i386.c (ix86_return_in_memory): Return true
9519 if int_size_in_bytes returns negative for IA MCU.
9521 2015-07-09 Marek Polacek <polacek@redhat.com>
9523 PR tree-optimization/66718
9524 * Makefile.in (OBJS): Add gimple-laddress.o.
9525 * passes.def: Schedule pass_laddress.
9526 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9527 * tree-pass.h (make_pass_laddress): Declare.
9528 * gimple-laddress.c: New file.
9530 2015-07-09 Richard Biener <rguenther@suse.de>
9532 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9534 2015-07-09 Richard Biener <rguenther@suse.de>
9536 PR tree-optimization/66807
9537 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9539 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9541 * function.c (stack_protect_epilogue): Use if rather than switch for
9542 check targetm.have_stack_protect_test.
9544 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9546 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9547 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9548 * config/arc/arc.h: Likewise.
9549 * config/arm/arm.h: Likewise.
9550 * config/bfin/bfin.h: Likewise.
9551 * config/epiphany/epiphany.h: Likewise.
9552 * config/frv/frv.h: Likewise.
9553 * config/ia64/ia64.h: Likewise.
9554 * config/iq2000/iq2000.h: Likewise.
9555 * config/lm32/lm32.h: Likewise.
9556 * config/m32r/m32r.h: Likewise.
9557 * config/mcore/mcore.h: Likewise.
9558 * config/mep/mep.h: Likewise.
9559 * config/microblaze/microblaze.h: Likewise.
9560 * config/mips/mips.h: Likewise.
9561 * config/mmix/mmix.h: Likewise.
9562 * config/mn10300/mn10300.h: Likewise.
9563 * config/nds32/nds32.h: Likewise.
9564 * config/nios2/nios2.h: Likewise.
9565 * config/pa/pa.h: Likewise.
9566 * config/rl78/rl78.h: Likewise.
9567 * config/sh/sh.h: Likewise.
9568 * config/sparc/sparc.h: Likewise.
9569 * config/stormy16/stormy16.h: Likewise.
9570 * config/tilegx/tilegx.h: Likewise.
9571 * config/tilepro/tilepro.h: Likewise.
9572 * config/v850/v850.h: Likewise.
9573 * config/xtensa/xtensa.h: Likewise.
9574 * doc/tm.texi: Regenerate.
9575 * doc/tm.texi.in: Adjust.
9576 * combine.c (simplify_set): Likewise.
9577 (simplify_comparison): Likewise.
9578 * expr.c (store_constructor): Likewise.
9579 * internal-fn.c (expand_arith_overflow): Likewise.
9580 * reload.c (push_reload): Likewise.
9581 (find_reloads): Likewise.
9582 (find_reloads_subreg_address): Likewise.
9583 * reload1.c (eliminate_regs_1): Likewise.
9584 * rtlanal.c (nonzero_bits1): Likewise.
9585 (num_sign_bit_copies1): Likewise.
9586 * simplify-rtx.c (simplify_truncation): Likewise.
9588 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9590 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9591 of AUTO_INC_DEC with the preprocessor.
9592 * combine.c (combine_instructions): Likewise.
9593 (can_combine_p): Likewise.
9594 (try_combine): Likewise.
9595 * emit-rtl.c (try_split): Likewise.
9596 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9597 * lower-subreg.c (resolve_simple_move): Likewise.
9598 * lra.c (update_inc_notes): Likewise.
9599 * recog.c (asm_operand_ok): Likewise.
9600 (constrain_operands): Likewise.
9601 * regrename.c (scan_rtx_address): Likewise.
9602 * reload.c (update_auto_inc_notes): Likewise.
9603 (reg_inc_found_and_valid_p): Likewise.
9604 * reload1.c (reload): Likewise.
9605 (emit_input_reload_insns): Likewise.
9606 (delete_output_reload): Likewise.
9607 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9608 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9610 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9612 * rtl.h: Always define AUTO_INC_DEC.
9613 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9614 * combine.c (combine_instructions): Likewise.
9615 (can_combine_p): Likewise.
9616 (try_combine): Likewise.
9617 * emit-rtl.c (try_split): Likewise.
9618 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9619 * lower-subreg.c (resolve_simple_move): Likewise.
9620 * lra.c (update_inc_notes): Likewise.
9621 * recog.c (asm_operand_ok): Likewise.
9622 (constrain_operands): Likewise.
9623 * regrename.c (scan_rtx_address): Likewise.
9624 * reload.c (update_auto_inc_notes): Likewise.
9625 (find_equiv_reg): Likewise.
9626 * reload1.c (reload): Likewise.
9627 (reload_as_needed): Likewise.
9628 (choose_reload_regs): Likewise.
9629 (emit_input_reload_insns): Likewise.
9630 (delete_output_reload): Likewise.
9631 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9632 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9634 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9636 * combine.c (can_combine_def_p): Don't check the value of
9637 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9638 (combinable_i3pat): Likewise.
9639 (mark_used_regs_combine): Likewise.
9640 * regrename.c (rename_chains): Likewise.
9641 * reload.c (find_reloads_address): Likewise.
9642 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9644 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9646 * combine.c (update_rsp_from_reg_equal): Don't check if
9647 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9648 (reg_nonzero_bits_for_combine): Likewise.
9649 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9651 * config/frv/frv.h: Likewise.
9652 * config/lm32/lm32.h: Likewise.
9653 * config/mep/mep.h: Likewise.
9654 * config/mips/mips.h: Likewise.
9655 * config/rs6000/rs6000.h: Likewise.
9656 * config/sh/sh.h: Likewise.
9657 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9658 * config/tilepro/tilepro.h: Likewise.
9659 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9660 * doc/tm.texi: Regenerate.
9661 * doc/tm.texi.in: Adjust.
9662 * rtlanal.c (nonzero_bits1): Likewise.
9664 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9666 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9667 with the preprocessor.
9668 (combine_instructions): Likewise.
9669 (try_combine): Likewise.
9671 (distribute_notes): Likewise.
9673 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9675 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9677 (simplify_set): Likewise.
9678 * cse.c (cse_insn): Likewise.
9679 * fold-const.c (fold_single_bit_test): Likewise.
9680 (fold_unary_loc): Likewise.
9681 * postreload.c (reload_cse_simplify_set): Likewise.
9682 (reload_cse_simplify_operands): Likewise.
9684 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9686 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9687 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9689 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9692 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9693 __iamcu__ is defined.
9695 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9697 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9699 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9702 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9703 names from preservation.
9705 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9708 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9710 (function_arg_advance_32): Don't pass vectors in registers for
9712 (function_arg_32): Likewise.
9713 (ix86_return_in_memory): Don't return vectors in registers for
9716 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9719 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9720 hard regno live at the start of BB with incoming abnormal edges.
9721 * lra-lives.c (process_bb_lives): Ditto.
9723 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9726 * config/nvptx/mkoffload.c (main): Create an offload image only in
9727 64-bit configurations.
9729 2015-07-08 Martin Liska <mliska@suse.cz>
9732 * tree-sra.c (create_access_1): Call ctor without brackets.
9733 (create_artificial_child_access): Likewise.
9735 2015-07-08 Richard Biener <rguenther@suse.de>
9737 PR tree-optimization/66793
9738 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9739 Properly split the block after stmts ending it.
9741 2015-07-08 Richard Biener <rguenther@suse.de>
9743 PR tree-optimization/66794
9744 * passes.c (execute_function_todo): Assert that post-dominators
9746 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9747 Free post-dominators.
9749 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9751 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9754 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9756 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9757 more than or equal 8 and less than 32 when optimizing for size.
9759 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9761 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9762 COSTS_N_INSNS (1) and increment it appropriately throughout the
9765 2015-07-08 Richard Biener <rguenther@suse.de>
9767 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9769 2015-07-08 Alan Modra <amodra@gmail.com>
9771 * target.def (rtx_costs): Remove "code" param, add "mode".
9772 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9773 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9774 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9775 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9776 call. Track mode when given in rtx.
9777 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9778 (default_address_cost): Pass Pmode to rtx_cost.
9779 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9780 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9782 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9783 (notreg_cost): Add mode param. Use it.
9784 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9785 mode param and pass to set_src_cost. Update all calls.
9786 (hash_scan_set): Formatting.
9787 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9788 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9790 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9791 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9792 emit_store_flag): Update set_src_cost and rtx_cost calls.
9793 * auto-inc-dec.c (attempt_change): Likewise.
9794 * calls.c (precompute_register_parameters): Likewise.
9795 * combine.c (expand_compound_operation, make_extraction,
9796 force_to_mode, distribute_and_simplify_rtx): Likewise.
9797 * dojump.c (prefer_and_bit_test): Likewise.
9798 * dse.c (find_shift_sequence): Likewise.
9799 * expr.c (compress_float_constant): Likewise.
9800 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9801 * ifcvt.c (noce_try_sign_mask): Likewise.
9802 * loop-doloop.c (doloop_optimize): Likewise.
9803 * loop-invariant.c (create_new_invariant): Likewise.
9804 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9805 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9806 lshift_cheap_p): Likewise.
9807 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9808 try_replace_in_use, reload_cse_move2add): Likewise.
9809 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9811 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9812 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9813 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9814 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9815 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9816 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9818 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9819 * config/arc/arc.c (arc_rtx_costs): Likewise.
9820 * config/arm/arm.c (arm_rtx_costs): Likewise.
9821 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9822 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9823 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9824 * config/cris/cris.c (cris_rtx_costs): Likewise.
9825 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9826 * config/frv/frv.c (frv_rtx_costs): Likewise.
9827 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9828 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9829 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9830 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9831 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9832 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9833 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9834 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9835 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9836 * config/mep/mep.c (mep_rtx_cost): Likewise.
9837 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9838 * config/mips/mips.c (mips_rtx_costs): Likewise.
9839 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9840 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9841 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9842 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9843 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9844 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9845 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9846 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9847 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9848 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9849 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9850 * config/s390/s390.c (s390_rtx_costs): Likewise.
9851 * config/sh/sh.c (sh_rtx_costs): Likewise.
9852 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9853 * config/spu/spu.c (spu_rtx_costs): Likewise.
9854 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9855 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9856 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9857 * config/v850/v850.c (v850_rtx_costs): Likewise.
9858 * config/vax/vax.c (vax_rtx_costs): Likewise.
9859 * config/visium/visium.c (visium_rtx_costs): Likewise.
9860 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9861 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9862 "code" param, and pass as outer_code to first rtx_cost call. Pass
9863 mode to rtx_cost calls.
9864 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9866 (aarch64_rtx_costs_wrapper): Update.
9867 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9868 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9870 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9872 (avr_operand_rtx_cost): Similarly.
9873 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9874 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9875 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9876 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9877 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9878 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9880 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9881 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9882 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9883 * doc/tm.texi: Regenerate.
9885 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9887 * tree-core.h: Include symtab.h.
9888 * rtl.h: Include hard-reg-set.h but not flags.h.
9889 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9890 hard-reg-set.h is always included.
9891 * regs.h: Don't include hard-reg-set.h or rtl.h.
9892 * cfg.h: Include dominance.h.
9893 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9894 * backend.h: New. Aggregate commonly used backend header files.
9895 * gimple-ssa.h: Don't include tree-hasher.h.
9896 * ssa.h: New. Aggregate commonly used SSA header files.
9897 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9898 * sel-sched-ir.h: Flatten includes.
9899 * lra-int.h: Flatten completely.
9900 * sel-sched-dump.h: Flatten includes.
9901 * ira-int.h: Flatten includes.
9902 * gimple-streamer.h: Remove all includes.
9903 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9904 * resource.h: Flatten hard-reg-set.h and df.h.
9905 * sched-int.h: Flatten insn-arrt.h and df.h.
9906 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9907 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9908 * genattrtab.c (write_header): Adjust generated includes.
9909 * genautomata.c (main): Likewise.
9910 * genconditions.c (write-header): Likewise.
9911 * genemit.c (main): Likewise.
9912 * gengtype.c (open_base_files): Likewise.
9913 * genopinit.c (main): Likewise.
9914 * genoutput.c (output_prologue): Likewise.
9915 * genpeep.c (main): Likewise.
9916 * genpreds.c (write_insn_preds_c): Likewise.
9917 * genrecog.c (write_header): Likewise.
9918 * alias.c: Adjust includes.
9920 * attribs.c: Likewise.
9921 * auto-inc-dec.c: Likewise.
9922 * auto-profile.c: Likewise.
9923 * bb-reorder.c: Likewise.
9924 * bt-load.c: Likewise.
9925 * builtins.c: Likewise.
9926 * caller-save.c: Likewise.
9927 * calls.c: Likewise.
9930 * cfganal.c: Likewise.
9931 * cfgbuild.c: Likewise.
9932 * cfgcleanup.c: Likewise.
9933 * cfgexpand.c: Likewise.
9934 * cfghooks.c: Likewise.
9935 * cfgloop.c: Likewise.
9936 * cfgloopanal.c: Likewise.
9937 * cfgloopmanip.c: Likewise.
9938 * cfgrtl.c: Likewise.
9939 * cgraph.c: Likewise.
9940 * cgraphbuild.c: Likewise.
9941 * cgraphclones.c: Likewise.
9942 * cgraphunit.c: Likewise.
9943 * cilk-common.c: Likewise.
9944 * combine-stack-adj.c: Likewise.
9945 * combine.c: Likewise.
9946 * compare-elim.c: Likewise.
9947 * convert.c: Likewise.
9948 * coverage.c: Likewise.
9949 * cppbuiltin.c: Likewise.
9950 * cprop.c: Likewise.
9952 * cselib.c: Likewise.
9953 * data-streamer-in.c: Likewise.
9954 * data-streamer-out.c: Likewise.
9955 * data-streamer.c: Likewise.
9956 * dbxout.c: Likewise.
9959 * debug.c: Likewise.
9960 * df-core.c: Likewise.
9961 * df-problems.c: Likewise.
9962 * df-scan.c: Likewise.
9964 * dojump.c: Likewise.
9965 * dominance.c: Likewise.
9966 * domwalk.c: Likewise.
9967 * double-int.c: Likewise.
9969 * dumpfile.c: Likewise.
9970 * dwarf2asm.c: Likewise.
9971 * dwarf2cfi.c: Likewise.
9972 * dwarf2out.c: Likewise.
9973 * emit-rtl.c: Likewise.
9974 * et-forest.c: Likewise.
9975 * except.c: Likewise.
9976 * explow.c: Likewise.
9977 * expmed.c: Likewise.
9979 * final.c: Likewise.
9980 * fixed-value.c: Likewise.
9981 * fold-const.c: Likewise.
9982 * function.c: Likewise.
9983 * fwprop.c: Likewise.
9984 * gcc-plugin.h: Likewise.
9985 * gcse-common.c: Likewise.
9987 * generic-match-head.c: Likewise.
9988 * ggc-page.c: Likewise.
9989 * gimple-builder.c: Likewise.
9990 * gimple-expr.c: Likewise.
9991 * gimple-fold.c: Likewise.
9992 * gimple-iterator.c: Likewise.
9993 * gimple-low.c: Likewise.
9994 * gimple-match-head.c: Likewise.
9995 * gimple-pretty-print.c: Likewise.
9996 * gimple-ssa-isolate-paths.c: Likewise.
9997 * gimple-ssa-strength-reduction.c: Likewise.
9998 * gimple-streamer-in.c: Likewise.
9999 * gimple-streamer-out.c: Likewise.
10000 * gimple-walk.c: Likewise.
10001 * gimple.c: Likewise.
10002 * gimplify-me.c: Likewise.
10003 * gimplify.c: Likewise.
10004 * godump.c: Likewise.
10005 * graph.c: Likewise.
10006 * graphite-blocking.c: Likewise.
10007 * graphite-dependences.c: Likewise.
10008 * graphite-interchange.c: Likewise.
10009 * graphite-isl-ast-to-gimple.c: Likewise.
10010 * graphite-optimize-isl.c: Likewise.
10011 * graphite-poly.c: Likewise.
10012 * graphite-scop-detection.c: Likewise.
10013 * graphite-sese-to-poly.c: Likewise.
10014 * graphite.c: Likewise.
10015 * haifa-sched.c: Likewise.
10016 * hw-doloop.c: Likewise.
10017 * ifcvt.c: Likewise.
10018 * init-regs.c: Likewise.
10019 * internal-fn.c: Likewise.
10020 * ipa-chkp.c: Likewise.
10021 * ipa-comdats.c: Likewise.
10022 * ipa-cp.c: Likewise.
10023 * ipa-devirt.c: Likewise.
10024 * ipa-icf-gimple.c: Likewise.
10025 * ipa-icf.c: Likewise.
10026 * ipa-inline-analysis.c: Likewise.
10027 * ipa-inline-transform.c: Likewise.
10028 * ipa-inline.c: Likewise.
10029 * ipa-polymorphic-call.c: Likewise.
10030 * ipa-profile.c: Likewise.
10031 * ipa-prop.c: Likewise.
10032 * ipa-pure-const.c: Likewise.
10033 * ipa-ref.c: Likewise.
10034 * ipa-reference.c: Likewise.
10035 * ipa-split.c: Likewise.
10036 * ipa-utils.c: Likewise.
10037 * ipa-visibility.c: Likewise.
10039 * ira-build.c: Likewise.
10040 * ira-color.c: Likewise.
10041 * ira-conflicts.c: Likewise.
10042 * ira-costs.c: Likewise.
10043 * ira-emit.c: Likewise.
10044 * ira-lives.c: Likewise.
10046 * jump.c: Likewise.
10047 * langhooks.c: Likewise.
10049 * loop-doloop.c: Likewise.
10050 * loop-init.c: Likewise.
10051 * loop-invariant.c: Likewise.
10052 * loop-iv.c: Likewise.
10053 * loop-unroll.c: Likewise.
10054 * lower-subreg.c: Likewise.
10055 * lra-assigns.c: Likewise.
10056 * lra-coalesce.c: Likewise.
10057 * lra-constraints.c: Likewise.
10058 * lra-eliminations.c: Likewise.
10059 * lra-lives.c: Likewise.
10060 * lra-remat.c: Likewise.
10061 * lra-spills.c: Likewise.
10063 * lto-cgraph.c: Likewise.
10064 * lto-compress.c: Likewise.
10065 * lto-opts.c: Likewise.
10066 * lto-section-in.c: Likewise.
10067 * lto-section-out.c: Likewise.
10068 * lto-streamer-in.c: Likewise.
10069 * lto-streamer-out.c: Likewise.
10070 * lto-streamer.c: Likewise.
10072 * mode-switching.c: Likewise.
10073 * modulo-sched.c: Likewise.
10074 * omega.c: Likewise.
10075 * omp-low.c: Likewise.
10076 * optabs.c: Likewise.
10077 * opts-global.c: Likewise.
10078 * passes.c: Likewise.
10079 * plugin.c: Likewise.
10080 * postreload-gcse.c: Likewise.
10081 * postreload.c: Likewise.
10082 * predict.c: Likewise.
10083 * print-rtl.c: Likewise.
10084 * print-tree.c: Likewise.
10085 * profile.c: Likewise.
10086 * real.c: Likewise.
10087 * realmpfr.c: Likewise.
10088 * recog.c: Likewise.
10090 * reg-stack.c: Likewise.
10091 * regcprop.c: Likewise.
10092 * reginfo.c: Likewise.
10093 * regrename.c: Likewise.
10094 * regstat.c: Likewise.
10095 * reload.c: Likewise.
10096 * reload1.c: Likewise.
10097 * reorg.c: Likewise.
10098 * resource.c: Likewise.
10099 * rtl-chkp.c: Likewise.
10100 * rtlanal.c: Likewise.
10101 * rtlhooks.c: Likewise.
10102 * sanopt.c: Likewise.
10103 * sched-deps.c: Likewise.
10104 * sched-ebb.c: Likewise.
10105 * sched-rgn.c: Likewise.
10106 * sched-vis.c: Likewise.
10107 * sdbout.c: Likewise.
10108 * sel-sched-dump.c: Likewise.
10109 * sel-sched-ir.c: Likewise.
10110 * sel-sched.c: Likewise.
10111 * sese.c: Likewise.
10112 * shrink-wrap.c: Likewise.
10113 * simplify-rtx.c: Likewise.
10114 * stack-ptr-mod.c: Likewise.
10115 * stmt.c: Likewise.
10116 * stor-layout.c: Likewise.
10117 * store-motion.c: Likewise.
10118 * stringpool.c: Likewise.
10119 * symtab.c: Likewise.
10120 * target-globals.c: Likewise.
10121 * targhooks.c: Likewise.
10122 * toplev.c: Likewise.
10123 * tracer.c: Likewise.
10124 * trans-mem.c: Likewise.
10125 * tree-affine.c: Likewise.
10126 * tree-browser.c: Likewise.
10127 * tree-call-cdce.c: Likewise.
10128 * tree-cfg.c: Likewise.
10129 * tree-cfgcleanup.c: Likewise.
10130 * tree-chkp-opt.c: Likewise.
10131 * tree-chkp.c: Likewise.
10132 * tree-chrec.c: Likewise.
10133 * tree-complex.c: Likewise.
10134 * tree-data-ref.c: Likewise.
10135 * tree-dfa.c: Likewise.
10136 * tree-diagnostic.c: Likewise.
10137 * tree-dump.c: Likewise.
10138 * tree-eh.c: Likewise.
10139 * tree-emutls.c: Likewise.
10140 * tree-if-conv.c: Likewise.
10141 * tree-inline.c: Likewise.
10142 * tree-into-ssa.c: Likewise.
10143 * tree-iterator.c: Likewise.
10144 * tree-loop-distribution.c: Likewise.
10145 * tree-nested.c: Likewise.
10146 * tree-nrv.c: Likewise.
10147 * tree-object-size.c: Likewise.
10148 * tree-outof-ssa.c: Likewise.
10149 * tree-parloops.c: Likewise.
10150 * tree-phinodes.c: Likewise.
10151 * tree-predcom.c: Likewise.
10152 * tree-pretty-print.c: Likewise.
10153 * tree-profile.c: Likewise.
10154 * tree-scalar-evolution.c: Likewise.
10155 * tree-sra.c: Likewise.
10156 * tree-ssa-address.c: Likewise.
10157 * tree-ssa-alias.c: Likewise.
10158 * tree-ssa-ccp.c: Likewise.
10159 * tree-ssa-coalesce.c: Likewise.
10160 * tree-ssa-copy.c: Likewise.
10161 * tree-ssa-copyrename.c: Likewise.
10162 * tree-ssa-dce.c: Likewise.
10163 * tree-ssa-dom.c: Likewise.
10164 * tree-ssa-dse.c: Likewise.
10165 * tree-ssa-forwprop.c: Likewise.
10166 * tree-ssa-ifcombine.c: Likewise.
10167 * tree-ssa-live.c: Likewise.
10168 * tree-ssa-loop-ch.c: Likewise.
10169 * tree-ssa-loop-im.c: Likewise.
10170 * tree-ssa-loop-ivcanon.c: Likewise.
10171 * tree-ssa-loop-ivopts.c: Likewise.
10172 * tree-ssa-loop-manip.c: Likewise.
10173 * tree-ssa-loop-niter.c: Likewise.
10174 * tree-ssa-loop-prefetch.c: Likewise.
10175 * tree-ssa-loop-unswitch.c: Likewise.
10176 * tree-ssa-loop.c: Likewise.
10177 * tree-ssa-math-opts.c: Likewise.
10178 * tree-ssa-operands.c: Likewise.
10179 * tree-ssa-phiopt.c: Likewise.
10180 * tree-ssa-phiprop.c: Likewise.
10181 * tree-ssa-pre.c: Likewise.
10182 * tree-ssa-propagate.c: Likewise.
10183 * tree-ssa-reassoc.c: Likewise.
10184 * tree-ssa-sccvn.c: Likewise.
10185 * tree-ssa-scopedtables.c: Likewise.
10186 * tree-ssa-sink.c: Likewise.
10187 * tree-ssa-strlen.c: Likewise.
10188 * tree-ssa-structalias.c: Likewise.
10189 * tree-ssa-tail-merge.c: Likewise.
10190 * tree-ssa-ter.c: Likewise.
10191 * tree-ssa-threadedge.c: Likewise.
10192 * tree-ssa-threadupdate.c: Likewise.
10193 * tree-ssa-uncprop.c: Likewise.
10194 * tree-ssa-uninit.c: Likewise.
10195 * tree-ssa.c: Likewise.
10196 * tree-ssanames.c: Likewise.
10197 * tree-stdarg.c: Likewise.
10198 * tree-streamer-in.c: Likewise.
10199 * tree-streamer-out.c: Likewise.
10200 * tree-streamer.c: Likewise.
10201 * tree-switch-conversion.c: Likewise.
10202 * tree-tailcall.c: Likewise.
10203 * tree-vect-data-refs.c: Likewise.
10204 * tree-vect-generic.c: Likewise.
10205 * tree-vect-loop-manip.c: Likewise.
10206 * tree-vect-loop.c: Likewise.
10207 * tree-vect-patterns.c: Likewise.
10208 * tree-vect-slp.c: Likewise.
10209 * tree-vect-stmts.c: Likewise.
10210 * tree-vectorizer.c: Likewise.
10211 * tree-vrp.c: Likewise.
10212 * tree.c: Likewise.
10213 * tsan.c: Likewise.
10214 * ubsan.c: Likewise.
10215 * valtrack.c: Likewise.
10216 * value-prof.c: Likewise.
10217 * var-tracking.c: Likewise.
10218 * varasm.c: Likewise.
10219 * varpool.c: Likewise.
10220 * vmsdbgout.c: Likewise.
10221 * vtable-verify.c: Likewise.
10223 * wide-int.cc: Likewise.
10224 * xcoffout.c: Likewise.
10225 * config/aarch64/aarch64-builtins.c: Likewise.
10226 * config/aarch64/aarch64.c: Likewise.
10227 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10228 * config/alpha/alpha.c: Likewise.
10229 * config/arc/arc.c: Likewise.
10230 * config/arm/aarch-common.c: Likewise.
10231 * config/arm/arm-builtins.c: Likewise.
10232 * config/arm/arm-c.c: Likewise.
10233 * config/arm/arm.c: Likewise.
10234 * config/avr/avr-c.c: Likewise.
10235 * config/avr/avr-log.c: Likewise.
10236 * config/avr/avr.c: Likewise.
10237 * config/bfin/bfin.c: Likewise.
10238 * config/c6x/c6x.c: Likewise.
10239 * config/cr16/cr16.c: Likewise.
10240 * config/cris/cris.c: Likewise.
10241 * config/darwin-c.c: Likewise.
10242 * config/darwin.c: Likewise.
10243 * config/epiphany/epiphany.c: Likewise.
10244 * config/epiphany/mode-switch-use.c: Likewise.
10245 * config/epiphany/resolve-sw-modes.c: Likewise.
10246 * config/fr30/fr30.c: Likewise.
10247 * config/frv/frv.c: Likewise.
10248 * config/ft32/ft32.c: Likewise.
10249 * config/h8300/h8300.c: Likewise.
10250 * config/i386/i386-c.c: Likewise.
10251 * config/i386/i386.c: Likewise.
10252 * config/i386/msformat-c.c: Likewise.
10253 * config/i386/winnt-cxx.c: Likewise.
10254 * config/i386/winnt-stubs.c: Likewise.
10255 * config/i386/winnt.c: Likewise.
10256 * config/ia64/ia64-c.c: Likewise.
10257 * config/ia64/ia64.c: Likewise.
10258 * config/iq2000/iq2000.c: Likewise.
10259 * config/lm32/lm32.c: Likewise.
10260 * config/m32c/m32c-pragma.c: Likewise.
10261 * config/m32c/m32c.c: Likewise.
10262 * config/m32r/m32r.c: Likewise.
10263 * config/m68k/m68k.c: Likewise.
10264 * config/mcore/mcore.c: Likewise.
10265 * config/mep/mep-pragma.c: Likewise.
10266 * config/mep/mep.c: Likewise.
10267 * config/microblaze/microblaze-c.c: Likewise.
10268 * config/microblaze/microblaze.c: Likewise.
10269 * config/mips/mips.c: Likewise.
10270 * config/mmix/mmix.c: Likewise.
10271 * config/mn10300/mn10300.c: Likewise.
10272 * config/moxie/moxie.c: Likewise.
10273 * config/msp430/msp430-c.c: Likewise.
10274 * config/msp430/msp430.c: Likewise.
10275 * config/nds32/nds32-cost.c: Likewise.
10276 * config/nds32/nds32-fp-as-gp.c: Likewise.
10277 * config/nds32/nds32-intrinsic.c: Likewise.
10278 * config/nds32/nds32-isr.c: Likewise.
10279 * config/nds32/nds32-md-auxiliary.c: Likewise.
10280 * config/nds32/nds32-memory-manipulation.c: Likewise.
10281 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10282 * config/nds32/nds32-predicates.c: Likewise.
10283 * config/nds32/nds32.c: Likewise.
10284 * config/nios2/nios2.c: Likewise.
10285 * config/nvptx/nvptx.c: Likewise.
10286 * config/pa/pa.c: Likewise.
10287 * config/pdp11/pdp11.c: Likewise.
10288 * config/rl78/rl78-c.c: Likewise.
10289 * config/rl78/rl78.c: Likewise.
10290 * config/rs6000/rs6000-c.c: Likewise.
10291 * config/rs6000/rs6000.c: Likewise.
10292 * config/rx/rx.c: Likewise.
10293 * config/s390/s390-c.c: Likewise.
10294 * config/s390/s390.c: Likewise.
10295 * config/sh/sh-c.c: Likewise.
10296 * config/sh/sh-mem.cc: Likewise.
10297 * config/sh/sh.c: Likewise.
10298 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10299 * config/sh/sh_treg_combine.cc: Likewise.
10300 * config/sol2-c.c: Likewise.
10301 * config/sol2-cxx.c: Likewise.
10302 * config/sol2-stubs.c: Likewise.
10303 * config/sol2.c: Likewise.
10304 * config/sparc/sparc-c.c: Likewise.
10305 * config/sparc/sparc.c: Likewise.
10306 * config/spu/spu-c.c: Likewise.
10307 * config/spu/spu.c: Likewise.
10308 * config/stormy16/stormy16.c: Likewise.
10309 * config/tilegx/mul-tables.c: Likewise.
10310 * config/tilegx/tilegx-c.c: Likewise.
10311 * config/tilegx/tilegx.c: Likewise.
10312 * config/tilepro/mul-tables.c: Likewise.
10313 * config/tilepro/tilepro-c.c: Likewise.
10314 * config/tilepro/tilepro.c: Likewise.
10315 * config/v850/v850-c.c: Likewise.
10316 * config/v850/v850.c: Likewise.
10317 * config/vax/vax.c: Likewise.
10318 * config/visium/visium.c: Likewise.
10319 * config/vms/vms-c.c: Likewise.
10320 * config/vms/vms.c: Likewise.
10321 * config/vxworks.c: Likewise.
10322 * config/xtensa/xtensa.c: Likewise.
10324 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10326 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10327 Remove operand constraints. Change operand 2 predicate to
10328 nonmemory operand. Limit const_int values to mode bitsize. Only
10329 allow const_int values less than 32 when optimizing for size.
10330 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10331 Remove operand constraints.
10332 (*bt<mode>): Use SImode for const_int values less than 32.
10333 (regmode): Remove mode attribute.
10335 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10337 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10338 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10339 moxie_legitimate_address_p): New functions.
10340 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10342 2015-07-07 Tom de Vries <tom@codesourcery.com>
10344 PR tree-optimization/66642
10345 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10346 header comment. Rename split_edge variable to edge_at_split. Split
10347 exit edge to create new loop exit bb. Insert loop exit phis in new
10350 2015-07-07 Tom de Vries <tom@codesourcery.com>
10352 * tree-cfg.c (get_virtual_phi): New function.
10353 * tree-cfg.h (get_virtual_phi): Declare.
10354 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10355 (rewrite_virtuals_into_loop_closed_ssa): New function.
10356 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10358 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10359 (transform_to_exit_first_loop_alt): Use
10360 rewrite_virtuals_into_loop_closed_ssa.
10362 2015-07-07 Richard Biener <rguenther@suse.de>
10364 * fold-const.c (fold_binary_loc): Move
10365 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10366 * match.pd: ... here.
10367 Add (X * C1) % C2 -> 0 simplification pattern derived from
10370 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10373 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10374 change for target/65249.
10376 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10378 * symtab.c (address_matters_1): Fix typo in comment above.
10379 (can_increase_alignment_p): Likewise.
10381 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10383 * function.c (free_after_compilation): Clear PROP_cfg in
10384 f->curr_properties.
10386 2015-07-07 Richard Biener <rguenther@suse.de>
10388 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10390 (add_control_edge): Remove excessive vertical space in dumping.
10391 (process_ssa_edge_worklist): Simulate at most one statement and
10392 return whether we did. Do not simulate PHIs if they are in a
10393 BB not yet simulated.
10394 (ssa_propagate): Adjust to always drain the BB worklist whenever
10395 a BB is available there, likewise the VARYING edges list before
10396 the interesting edge list.
10398 2015-07-07 Christian Bruel <christian.bruel@st.com>
10401 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10403 2015-07-07 Richard Biener <rguenther@suse.de>
10405 PR middle-end/66739
10406 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10409 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10411 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10412 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10413 Copy operand 0 to a temporary if !ext_register_operand. Remove
10414 ancient extract_bit_field workaround.
10415 (insv<mode>_1): Rename from mov<mode>_insv_1.
10416 (*insvqi): Rename from *movqi_insv_2.
10417 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10418 for renamed insvsi_1.
10419 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10421 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10423 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10424 call to nvptx_reorg_subreg.
10426 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10428 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10429 * graphite-dependencies.c, graphite-interchange.c,
10430 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10431 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10434 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10436 * match.pd: Remove element_mode inside HONOR_*.
10437 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10438 (~X | X -> -1, ~X ^ X -> -1): Merge.
10439 * tree.c (build_each_one_cst): New function.
10440 * tree.h (build_each_one_cst): Likewise.
10442 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10444 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10447 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10449 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10450 * config/mips/mips.opt (mfused-madd): Remove.
10451 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10452 * config/mips/mips.h (TARGET_MIPS8000): New.
10453 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10454 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10455 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10456 (ISA_HAS_NMADD4_NMSUB4): Remove.
10457 (ISA_HAS_NMADD3_NMSUB3): Remove.
10458 (ISA_HAS_FUSED_MADD4): New.
10459 (ISA_HAS_UNFUSED_MADD4): New.
10460 (ISA_HAS_FUSED_MADDF): New.
10461 (ISA_HAS_FUSED_MADD3): New.
10462 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10463 (*fma<mode>4_madd3) New.
10464 (*fma<mode>4_madd4) New.
10465 (*fma<mode>4_maddf) New.
10467 (*fms<mode>4_msub3) New.
10468 (*fms<mode>4_msub4) New.
10470 (*fnma<mode>4_nmadd3) New.
10471 (*fnma<mode>4_nmadd4) New.
10473 (*fnms<mode>4_nmsub3) New.
10474 (*fnms<mode>4_nmsub4) New.
10475 (*madd4<mode>) Modify to be unfused only.
10476 (*msub4<mode>) Modify to be unfused only.
10477 (*nmadd4<mode>) Modify to be unfused only.
10478 (*nmsub4<mode>) Modify to be unfused only.
10479 (*madd3<mode>) Remove.
10480 (*msub3<mode>) Remove.
10481 (*nmadd3<mode>) Remove.
10482 (*nmsub3<mode>) Remove.
10483 (*nmadd3<mode>_fastmath) Remove.
10484 (*nmsub3<mode>_fastmath) Remove.
10485 (*nmadd4<mode>_fastmath) Update condition.
10486 (*nmsub4<mode>_fastmath) Update condition.
10488 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10491 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10492 alignment attribute, exploring one level down for records and arrays.
10494 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10496 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10497 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10498 Copy operand 1 to a temporary if !ext_register_operand. Remove
10499 ancient extract_bit_field workaround.
10500 (*extv<mode>): Rename from *mov<mode>_extv_1.
10501 (*extvqi): Rename from *movqi_extv_1.
10502 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10503 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10504 to a temporary if !ext_register_operand. Remove ancient
10505 extract_bit_field workaround.
10506 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10507 (*extzvqi): Rename from *movqi_extzv_2.
10508 (*testqi_ext_3): Remove modes from const_int_operand predicated
10509 operands. Add "n" constraint.
10510 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10511 operand. Add "J" constraint.
10512 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10513 const_0_to_63 predicated operand.
10514 (regmode): New insn attribute.
10515 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10516 to nonmemory_operand. Use regmode insn attribute.
10517 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10518 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10519 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10520 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10521 operands. Use "N" constraint instead of "n".
10523 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10525 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10527 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10530 * config/i386/i386.c (iamcu_cost): New.
10531 (m_IAMCU): Likewise.
10532 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10533 (processor_target_table): Add an entry for "iamcu".
10534 (processor_alias_table): Likewise.
10535 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10536 (ix86_adjust_cost): Likewise.
10537 (ia32_multipass_dfa_lookahead): Likewise.
10538 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10539 * config/i386/x86-tune.def: Updated for m_IAMCU.
10541 2015-07-06 Richard Biener <rguenther@suse.de>
10543 PR tree-optimization/66772
10544 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10545 values are available in the PHI node BB when there are
10546 still unexecutable edges.
10548 2015-07-06 Richard Biener <rguenther@suse.de>
10550 PR tree-optimization/66767
10551 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10552 Make sure to build the alignment test on a SSA name without
10553 final alignment info valid only if the alignment test
10556 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10559 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10560 loop start when inserting LSETUP.
10562 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10565 * config/i386/i386.c (ix86_option_override_internal): Allow
10566 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10568 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10570 * read-md.c (decimal_string): Rename to ...
10571 (md_decimal_string): ... this.
10572 (handle_enum): Reflect this.
10574 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10577 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10579 2015-07-06 Richard Biener <rguenther@suse.de>
10581 PR middle-end/66759
10582 * match.pd: Add missing constraint of y to REAL_CST in
10583 REAL_CST - x CMP y to y - CST CMP x simplification.
10585 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10587 PR tree-optimization/66757
10588 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10590 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10591 Sandra Loosemore <sandra@codesourcery.com>
10593 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10594 Delete extern declaration.
10595 (gprel_constant_p): Add extern declaration.
10596 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10597 instead of nios2_symbol_ref_in_small_data_p.
10598 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10599 (nios2_symbol_ref_in_small_data_p): Make static.
10600 (gprel_constant_p): Make non-static.
10602 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10604 * doc/fragments.texi (Target Fragment): Convert debian.org
10606 * doc/install.texi (Configuration): Ditto.
10608 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10610 PR tree-optimization/66718
10611 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10612 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10614 PR tree-optimization/66718
10615 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10616 vectorizable_load, vectorizable_condition): Move vectype,
10617 nunits, ncopies computation after checking what kind of statement
10620 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10622 * target-insns.def (extv, extzv, insv): New targetm instruction
10624 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10626 * recog.c (simplify_while_replacing): Likewise.
10628 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10630 * target-insns.def (doloop_begin, doloop_end): New targetm
10631 instruction patterns.
10632 * loop-init.c: Include target.h.
10633 (pass_loop2::gate): Use the new targetm patterns instead of
10634 HAVE_*/gen_* interface.
10635 (pass_rtl_doloop::gate): Likewise.
10636 (pass_rtl_doloop::execute): Remove preprocessor condition.
10637 * hw-doloop.c: Build unconditionally.
10638 * loop-doloop.c: Likewise.
10639 (doloop_optimize): Use the new targetm patterns instead of
10640 HAVE_*/gen_* interface.
10641 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10642 * modulo-sched.c (doloop_register_get): Likewise.
10644 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10646 * target-insns.def (clear_cache): New targetm instruction pattern.
10647 * builtins.c (expand_builtin___clear_cache): Use it instead of
10648 HAVE_*/gen_* interface.
10650 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10652 * target-insns.def (allocate_stack, check_stack, probe_stack)
10653 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10654 New targetm instruction patterns.
10655 * explow.c (allocate_dynamic_stack_space): Use them instead of
10656 HAVE_*/gen_* interface.
10657 (emit_stack_probe): Likewise.
10658 (probe_stack_range): Likewise.
10659 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10661 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10663 * target-insns.def (stack_protect_set, stack_protect_test): New
10664 targetm instruction patterns.
10665 * cfgexpand.c (stack_protect_prologue): Use them instead of
10666 HAVE_*/gen_* interface.
10667 * function.c (stack_protect_epilogue): Likewise.
10669 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10671 * expr.h (gen_move_insn_uncast): Delete.
10672 * expr.c (gen_move_insn_uncast): Delete.
10674 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10676 * target-insns.def (restore_stack_block, restore_stack_function)
10677 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10678 (save_stack_nonlocal): New targetm instruction patterns.
10679 * builtins.c (expand_builtin_apply): Use them instead of
10680 HAVE_*/gen_* interface.
10681 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10683 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10685 * target-insns.def (trap): New targetm instruction pattern.
10686 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10688 * explow.c (allocate_dynamic_stack_space): Likewise.
10689 * ifcvt.c (find_if_header): Likewise.
10691 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10693 * target-insns.def (prefetch): New targetm instruction pattern.
10694 * tree-ssa-loop-prefetch.c: Include targeth.
10695 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10696 of HAVE_*/gen_* interface.
10697 * builtins.c (expand_builtin_prefetch): Likewise.
10698 * toplev.c (process_options): Likewise.
10700 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10702 * target-insns.def (untyped_call, untyped_return): New targetm
10703 instruction patterns.
10704 * builtins.c (expand_builtin_apply): Use them instead of
10705 HAVE_*/gen_* interface.
10706 (result_vector): Define unconditionally.
10708 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10710 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10711 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10712 (nonlocal_goto_receiver): New targetm instruction patterns.
10713 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10714 of HAVE_*/gen_* interface.
10715 (expand_builtin_setjmp_receiver): Likewise.
10716 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10717 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10719 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10721 * target.def: Add code_for_* hooks.
10722 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10723 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10724 * target-insns.def (casesi, tablejump): New targetm instruction
10726 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10727 (do_tablejump): Likewise.
10728 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10729 (expand_sjlj_dispatch_table): Likewise.
10730 * targhooks.c (default_case_values_threshold): Likewise.
10732 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10734 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10735 Use rtx_insn * instead of rtx.
10736 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10737 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10738 (nios2_call_tls_get_addr): Likewise.
10739 (nios2_emit_expensive_div): Likewise.
10740 (nios2_emit_move_sequence): Change return type to bool.
10741 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10742 Change return type to bool.
10744 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10747 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10749 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10752 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10753 of register_operand. Remove constraint.
10755 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10757 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10758 the first argument.
10760 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10762 * attribs.c (decl_attributes): Guard inform with the return value
10763 of the preceding warning.
10765 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10767 * doc/invoke.texi (moverride): Move to correct section.
10769 2015-07-03 Richard Biener <rguenther@suse.de>
10771 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10773 (dt_operand::gen_gimple_expr): After valueizing operands
10774 re-canonicalize operand order for commutative tree codes.
10776 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10779 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10781 (__crc32w): Likewise.
10782 (__crc32d): Likewise.
10783 (__rdpmc): Likewise.
10784 (__rdtscp): Likewise.
10785 (_rdpmc): Likewise.
10786 (_rdtscp): Likewise.
10787 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10790 2015-07-03 Richard Biener <rguenther@suse.de>
10792 * fold-const.c (fold_mathfn_compare): Remove.
10793 (fold_inf_compare): Likewise.
10794 (fold_comparison): Move floating point comparison simplifications...
10795 * match.pd: ... to patterns here. Introduce simple_comparisons
10796 operator list and use it for patterns formerly in fold_comparison.
10798 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10800 PR tree-optimization/66119
10801 * toplev.c (process_options): Don't set up default values for
10802 the sra_max_scalarization_size_{speed,size} parameters.
10803 * tree-sra (analyze_all_variable_accesses): If no values
10804 have been set for the sra_max_scalarization_size_{speed,size}
10805 parameters, call get_move_ratio to get target defaults.
10807 2015-07-03 Richard Biener <rguenther@suse.de>
10809 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10810 * match.pd: ... here.
10812 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10815 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10816 is not actually the default on FreeBSD.
10818 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10820 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10822 (CMPGE_8HI): Likewise.
10823 (CMPGE_4SI): Likewise.
10824 (CMPGE_2DI): Likewise.
10825 (CMPGE_U16QI): Likewise.
10826 (CMPGE_U8HI): Likewise.
10827 (CMPGE_U4SI): Likewise.
10828 (CMPGE_U2DI): Likewise.
10829 (CMPLE_16QI): Likewise.
10830 (CMPLE_8HI): Likewise.
10831 (CMPLE_4SI): Likewise.
10832 (CMPLE_2DI): Likewise.
10833 (CMPLE_U16QI): Likewise.
10834 (CMPLE_U8HI): Likewise.
10835 (CMPLE_U4SI): Likewise.
10836 (CMPLE_U2DI): Likewise.
10837 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10838 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10839 ALTIVEC_BUILTIN_VEC_CMPLE.
10840 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10841 floating-point vector modes.
10842 (vector_nlt<mode>): New define_expand.
10843 (vector_nltu<mode>): Likewise.
10844 (vector_ngt<mode>): Likewise.
10845 (vector_ngtu<mode>): Likewise.
10847 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10849 PR rtl-optimization/66706
10850 * combine.c (make_compound_operation): If an AND of SUBREG of
10851 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10853 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10855 * tree-pass.h (make_pass_ch_vect): New.
10856 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10858 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10859 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10860 make_pass_ch_vect): New.
10861 (pass_ch): Extend ch_base.
10863 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10864 (ch_base::copy_headers): ...here.
10866 2015-07-02 Richard Biener <rguenther@suse.de>
10868 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10869 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10870 (fold_binary_loc): Implement (T)ptr & CST in terms of
10871 get_pointer_alignment_1.
10872 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10873 Make sure to build the alignment test on a SSA name without
10874 final alignment info valid only after the prologue.
10876 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10878 * config/cris/cris.md ("epilogue"): Remove condition.
10879 ("prologue"): Ditto.
10881 2015-07-02 Richard Biener <rguenther@suse.de>
10883 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10884 parameter to record a condition that is false.
10885 (record_conditions): When recording an extra NE_EXPR that is
10886 true also record a EQ_EXPR that is false.
10888 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10890 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10891 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10892 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10893 (set_iv, find_interesting_uses_address, add_candidate_1): New
10894 argument to alloc_iv.
10895 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10896 duplicate struct iv.
10897 (free_loop_data): Don't free struct iv explicitly.
10898 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10900 2015-07-01 DJ Delorie <dj@redhat.com>
10902 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10904 (SUPPORTS_DISCRIMINATOR): Define.
10906 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10909 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10910 there are no CALLs in the same pattern.
10912 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10914 PR rtl-optimization/61047
10915 * rtlanal.c (get_initial_register_offset): New function.
10916 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10918 2015-07-01 Richard Biener <rguenther@suse.de>
10920 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10921 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10922 ~X CMP C -> X CMP' ~C to ...
10923 * match.pd: ... patterns here.
10925 2015-07-01 Nick Clifton <nickc@redhat.com>
10927 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10928 a 16-bit value into a 20-bit memory slot.
10930 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10932 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10933 "aarch64_tiny", "aarch64_small", "aarch64_large",
10934 "aarch64_little_endian", "aarch64_big_endian".
10936 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10938 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10939 Document "aarch64_small_fpic".
10941 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10943 * configure.ac: Add check for aarch64 assembler -fpic relocation
10945 * configure: Regenerate.
10946 * config.in: Regenerate.
10947 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10948 to -fPIC if not support of -fpic relocation modifier in assembler.
10950 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10953 * rtl.c (classify_insn): Handle returns in PARALLELs.
10955 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10957 PR middle-end/66633
10958 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10959 to true if the function is nested and if not optimizing.
10960 (convert_local_omp_clauses): Initialize need_frame to true if the
10961 function contains nested functions and if not optimizing.
10963 2015-07-01 Richard Biener <rguenther@suse.de>
10965 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10966 (X & Y) ^ Y -> ~X & Y transforms to ...
10967 * match.pd: ... here.
10969 2015-07-01 Richard Biener <rguenther@suse.de>
10971 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10972 of converts to avoid uninteresting noise from the conversion
10973 simplifying patterns.
10975 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10977 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10978 gcc_assert evaluating its argument for side-effect.
10980 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10983 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10986 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10988 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10989 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10990 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10991 to the inner DFS walk.
10993 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10995 * target-insns.def (jump): New targetm instruction pattern.
10996 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10997 instead of gen_jump.
10998 (fix_up_crossing_landing_pad): Likewise.
10999 (add_labels_and_missing_jumps): Likewise.
11000 (fix_crossing_conditional_branches): Likewise.
11001 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11002 (force_nonfallthru_and_redirect): Likewise.
11003 * cse.c (cse_insn): Likewise.
11004 * expmed.c (expand_divmod): Likewise.
11005 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11006 * haifa-sched.c (init_before_recovery): Likewise.
11007 (sched_create_recovery_edges): Likewise.
11008 * ifcvt.c (find_cond_trap): Likewise.
11009 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11010 (expand_float, expand_fix): Likewise.
11011 * stmt.c (emit_jump): Likewise.
11013 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11015 * defaults.h (HAVE_load_multiple, gen_load_multiple)
11016 (HAVE_store_multiple, gen_store_multiple): Delete.
11017 * target-insns.def (load_multiple, store_multiple): New targetm
11018 instruction patterns.
11019 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11020 of HAVE_*/gen_* interface.
11022 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11024 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11025 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11026 (gen_mem_signal_fence): Delete.
11027 * target-insns.def (mem_signal_fence, mem_thread_fence)
11028 (memory_barrier): New targetm instruction patterns.
11029 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11031 (expand_mem_signal_fence): Likewise.
11033 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11035 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11036 * target-insns.def (epilogue, prologue, sibcall_prologue): New
11037 targetm instruction patterns.
11038 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11040 * calls.c (expand_call): Likewise.
11041 * cfgrtl.c (cfg_layout_finalize): Likewise.
11042 * df-scan.c (df_get_entry_block_def_set): Likewise.
11043 (df_get_exit_block_use_set): Likewise.
11044 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11045 * final.c (final_start_function): Likewise.
11046 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11047 (reposition_prologue_and_epilogue_notes): Likewise.
11048 * reorg.c (find_end_label): Likewise.
11049 * toplev.c (process_options): Likewise.
11051 2015-06-30 David Malcolm <dmalcolm@redhat.com>
11053 * typed-splay-tree.h: New file.
11055 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
11058 * lra-int.h (lra_substitute_pseudo): Add a parameter.
11059 (lra_substitute_pseudo_within_insn): Ditto.
11060 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
11062 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
11063 to lra_substitute_pseudo.
11064 * lra-lives.c (process_bb_lives): Add an argument to
11065 lra_substitute_pseudo_within_insn call.
11066 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11067 argument to lra_substitute_pseudo and
11068 lra_substitute_pseudo_within_insn calls.
11069 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11071 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11073 * configure: Regenerated.
11075 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11077 * config.gcc: Support i[34567]86-*-elfiamcu target.
11078 * config/i386/iamcu.h: New.
11079 * config/i386/i386.opt: Add -miamcu.
11080 * doc/invoke.texi: Document -miamcu.
11081 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11082 off x87/MMX/SSE/AVX codegen for -miamcu.
11083 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11084 __iamcu/__iamcu__ for -miamcu.
11085 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11086 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11087 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11088 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11089 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11090 MCU by default. Default long double to 64-bit for Intel MCU.
11091 Turn on -freg-struct-return for Intel MCU. Issue an error when
11092 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11094 (function_arg_advance_32): Pass value whose size is no larger
11095 than 8 bytes in registers for Intel MCU.
11096 (function_arg_32): Likewise.
11097 (ix86_return_in_memory): Return value whose size is no larger
11098 than 8 bytes in registers for Intel MCU.
11099 (iamcu_alignment): New function.
11100 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11102 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11103 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11106 2015-06-30 Marek Polacek <polacek@redhat.com>
11108 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11109 both operands of the resulting expression.
11111 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11112 the final expression with the operand's type and then convert
11113 it to the type of the expression.
11115 2015-06-30 Richard Biener <rguenther@suse.de>
11117 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11118 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11119 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11120 * match.pd: ... to patterns here.
11122 2015-06-30 Richard Biener <rguenther@suse.de>
11124 PR tree-optimization/66704
11125 * tree-vect-data-refs.c (vect_setup_realignment): Use
11126 make_ssa_name for non-SSA name source.
11128 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11130 PR middle-end/66702
11131 * omp-low.c (simd_clone_adjust): Handle addressable linear
11132 or uniform parameters or non-gimple type uniform parameters.
11134 2015-06-30 Richard Biener <rguenther@suse.de>
11136 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11137 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11138 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11139 * match.pd: ... here.
11140 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11141 Move (x & y) | x -> x and friends before
11142 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11144 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11146 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11147 -mfix-ut699 is not specified.
11148 (leon3_load): Rename into...
11149 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11152 2015-06-30 Marek Polacek <polacek@redhat.com>
11154 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11155 * match.pd: ... here.
11157 2015-06-30 Richard Biener <rguenther@suse.de>
11159 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11160 * fold-const.c (build_range_check): Replace uses of
11161 HAVE_canonicalize_funcptr_for_compare.
11162 (fold_widened_comparison): Likewise.
11163 (fold_sign_changed_comparison): Likewise.
11164 * dojump.c: Include "target.h".
11165 (do_compare_and_jump): Replace uses of
11166 HAVE_canonicalize_funcptr_for_compare and
11167 gen_canonicalize_funcptr_for_compare.
11168 * expr.c (do_store_flag): Likewise.
11170 2015-06-30 Tom de Vries <tom@codesourcery.com>
11172 PR tree-optimization/66652
11173 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11174 max_loop_iterations to determine if nit + 1 overflows.
11176 2015-06-30 Richard Biener <rguenther@suse.de>
11178 * tree-vrp.c (register_edge_assert_for_2): Also register
11179 asserts for dominating conversion results.
11181 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11183 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11184 field in struct iv.
11186 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11189 * configure.ac: Fix filds and fildq test for 64-bit.
11190 * configure: Regenerated.
11192 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11194 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11195 (nvptx_reorg): Here. Keep the non-subreg pieces.
11197 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11199 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11200 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11202 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11204 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11205 Set attribute "length_nobnd" instead of "length".
11208 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11210 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11212 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11213 assert less restrictive.
11215 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11218 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11219 do_warn_unused_parameter.
11220 * function.c (do_warn_unused_parameter): Move from here.
11221 * function.h (do_warn_unused_parameter): Do not declare.
11223 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11226 * gcc.target/arm/armv-sync-comp-swap.c: New.
11227 * gcc.target/arm/armv-sync-op-acquire.c: New.
11228 * gcc.target/arm/armv-sync-op-full.c: New.
11229 * gcc.target/arm/armv-sync-op-release.c: New.
11231 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11234 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11235 initial acquire barrier with final barrier.
11237 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11240 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11241 initial acquire barrier with final barrier.
11243 2015-06-29 Richard Henderson <rth@redhat.com>
11245 * config/i386/constraints.md (Bf): New constraint.
11246 * config/i386/i386-c.c (ix86_target_macros): Define
11247 __GCC_ASM_FLAG_OUTPUTS__.
11248 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11250 * doc/extend.texi (FlagOutputOperands): Document them.
11252 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11254 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11255 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11257 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11258 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11259 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11260 (aarch64_symbol_context): Ditto.
11261 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11262 and use new pattern name.
11263 (aarch64_expand_mov_immediate): Ditto.
11264 (aarch64_print_operand): Ditto.
11265 (aarch64_classify_tls_symbol): Ditto.
11267 2015-06-29 Marek Polacek <polacek@redhat.com>
11268 Marc Glisse <marc.glisse@inria.fr>
11270 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11271 * match.pd: ... pattern here.
11273 2015-06-29 Tom de Vries <tom@codesourcery.com>
11275 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11276 function structure.
11278 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11280 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11281 feature description, split out the native option, add a link to
11282 the feature documentation, rearrange and slightly rewrite text.
11283 (Aarch64 options, -mcpu): Likewise.
11284 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11285 +rdma implies Adv. SIMD.
11287 2015-06-29 Marek Polacek <polacek@redhat.com>
11290 * function.c (stack_protect_epilogue): Remove a cast to int.
11291 * doc/invoke.texi: Update -Wswitch-bool description.
11293 2015-06-29 Richard Biener <rguenther@suse.de>
11295 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11296 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11297 via ptr_difference_const ...
11298 * match.pd: ... here.
11299 When matching (X ^ Y) == Y also match with swapped operands.
11301 2015-06-29 Richard Biener <rguenther@suse.de>
11303 * lto-streamer.h (LTO_major_version): Bump to 5.
11305 2015-06-29 Richard Biener <rguenther@suse.de>
11307 PR tree-optimization/66677
11308 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11309 STMT_VINFO_VEC_STMT clobbering less strict.
11311 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11313 PR middle-end/64130
11314 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11315 division, compute max and min when value ranges for dividend and
11316 divisor are available.
11318 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11319 Sandra Loosemore <sandra@codesourcery.com>
11321 * regrename.h (regrename_do_replace): Change to return bool.
11322 * regrename.c (rename_chains): Check return value of
11323 regname_do_replace.
11324 (regrename_do_replace): Re-validate the modified insns and
11325 return bool status.
11326 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11327 Update to match rename_chains changes.
11328 * config/c6x/c6x.c (try_rename_operands): Assert that
11329 regrename_do_replace returns true.
11331 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11333 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11334 operand 2 here. Use copy_addr_to_reg to copy non-index
11335 register operand 2 to a temporary.
11336 (<mode>_stx): Ditto for operand 1.
11337 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11338 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11339 (ix86_store_bounds): Ditto.
11341 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11343 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11345 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11347 * gimple.c (gimple_call_set_fndecl): Remove.
11348 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11349 build1_loc directly instead of build_fold_addr_expr_loc.
11351 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11353 * hash-map.h (hash_map::traverse): Use the definition of the
11354 Key typedef rather than the typedef itself.
11356 2015-06-26 Martin Jambor <mjambor@suse.cz>
11359 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11360 NULL instead of calling dump_enabled_p.
11362 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11364 * config/aarch64/aarch64.opt: (override): New.
11365 * doc/invoke.texi (override): Document.
11366 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11367 (aarch64_fusible_pairs): Likewise.
11368 (aarch64_tuning_flags): Likewise.
11369 (aarch64_tuning_override_function): Likewise.
11370 (aarch64_tuning_override_functions): Likewise.
11371 (aarch64_parse_one_option_token): Likewise.
11372 (aarch64_parse_boolean_options): Likewise.
11373 (aarch64_parse_fuse_string): Likewise.
11374 (aarch64_parse_tune_string): Likewise.
11375 (aarch64_parse_one_override_token): Likewise.
11376 (aarch64_parse_override_string): Likewise.
11377 (aarch64_override_options): Parse the -override string if it
11380 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11382 * config/aarch64/aarch64-protos.h (tune_params): Remove
11383 const from members.
11384 (aarch64_tune_params): Remove const, change to no longer be
11386 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11387 change to no longer be a pointer, initialize to generic_tunings.
11388 (aarch64_min_divisions_for_recip_mul): Change dereference of
11389 aarch64_tune_params to member access.
11390 (aarch64_reassociation_width): Likewise.
11391 (aarch64_rtx_mult_cost): Likewise.
11392 (aarch64_address_cost): Likewise.
11393 (aarch64_branch_cost): Likewise.
11394 (aarch64_rtx_costs): Likewise.
11395 (aarch64_register_move_cost): Likewise.
11396 (aarch64_memory_move_cost): Likewise.
11397 (aarch64_sched_issue_rate): Likewise.
11398 (aarch64_builtin_vectorization_cost): Likewise.
11399 (aarch64_override_options): Take a copy of the selected tuning
11400 struct in to aarch64_tune_params, rather than just setting
11401 a pointer, change dereferences of aarch64_tune_params to member
11403 (aarch64_override_options_after_change): Change dereferences of
11404 aarch64_tune_params to member access.
11405 (aarch64_macro_fusion_p): Likewise.
11406 (aarch_macro_fusion_pair_p): Likewise.
11407 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11409 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11411 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11412 (aarch64_tune_flags): Likewise.
11413 (AARCH64_TUNE_FMA_STEERING): Likewise.
11414 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11415 to AARCH64_FL_USE_FMA_STEERING_PASS.
11416 (cortex-a57.cortex-a53): Likewise.
11417 (cortex-a72): Use cortexa72_tunings.
11418 (cortex-a72.cortex-a53): Likewise.
11419 (exynos-m1): Likewise.
11420 * config/aarch64/aarch64-protos.h (tune_params): Add
11421 a field: extra_tuning_flags.
11422 * config/aarch64/aarch64-tuning-flags.def: New.
11423 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11424 (aarch64_extra_tuning_flags): Likewise.
11425 (aarch64_tune_params): Declare here.
11426 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11427 (cortexa53_tunings): Likewise.
11428 (cortexa57_tunings): Likewise.
11429 (thunderx_tunings): Likewise.
11430 (xgene1_tunings): Likewise.
11431 (cortexa72_tunings): New.
11432 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11433 (gate): Check against aarch64_tune_params.
11434 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11437 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11439 * config/aarch64/aarch64-fusion-pairs.def: New.
11440 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11441 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11442 aarch64_fusion_pairs.
11443 (AARCH64_FUSE_MOV_MOVK): Likewise.
11444 (AARCH64_FUSE_ADRP_ADD): Likewise.
11445 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11446 (AARCH64_FUSE_ADRP_LDR): Likewise.
11447 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11449 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11451 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11452 SYMBOL_SMALL_GOT_28K.
11453 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11454 relocation modifiers.
11455 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11456 (ldr_got_small_28k_<mode>): New.
11457 (ldr_got_small_28k_sidi): New.
11458 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11459 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11460 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11461 SYMBOL_SMALL_GOT_28K.
11462 (aarch64_rtx_costs): Add costs for new instruction sequences.
11463 (initialize_aarch64_code_model): Initialize new model.
11464 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11465 (aarch64_asm_preferred_eh_data_format): Support new model.
11466 (aarch64_load_symref_appropriately): Generate new instruction
11467 sequences for -fpic.
11468 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11469 (aarch64_use_pseudo_pic_reg): New function.
11471 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11473 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11474 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11475 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11476 (aarch64_expand_mov_immediate): Ditto.
11477 (aarch64_print_operand): Ditto.
11478 (aarch64_classify_symbol): Ditto.
11480 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11482 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11484 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11487 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11488 assertion failed. Remove assertion itself.
11490 2015-06-26 Richard Biener <rguenther@suse.de>
11492 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11493 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11495 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11496 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11497 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11498 * match.pd: ... patterns here.
11500 2015-06-26 Marek Polacek <polacek@redhat.com>
11502 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11503 (x | y) & (~x ^ y) -> x & y): New patterns.
11505 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11507 * rtl.h (emit): Add an optional boolean parameter to control
11508 whether barriers are emitted.
11509 * emit-rtl.c (emit): Likewise.
11510 * gensupport.c (get_emit_function): Return null rather than "emit".
11511 * genemit.c (gen_emit_seq): Handle the null return value.
11512 Don't emit barriers after the final instruction in the sequence.
11513 * gentarget-def.c (main): Don't emit barriers after the instruction.
11515 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11517 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11518 TARGET_UNIFIED_ASM.
11520 2015-06-26 Richard Biener <rguenther@suse.de>
11522 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11524 2015-06-26 Richard Biener <rguenther@suse.de>
11526 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11527 irrespective on whether the inner operation has a single use
11528 of both off are constant.
11530 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11531 Segher Boessenkool <segher@kernel.crashing.org>
11534 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11535 before doing PUT_MODE or PUT_CODE on operands to avoid
11536 in-place RTX modification.
11538 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11540 * gentarget-def.c (def_target_insn): Cast return of strtol to
11543 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11545 * gimple.h (gimple_call_set_fn): Move inline function.
11546 * gimple.c (gimple_call_set_fn): Relocate here.
11548 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11552 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11553 the replacement insn will work.
11555 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11557 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11560 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11562 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11563 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11564 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11565 (symtab_node::address_can_be_compared_p): Move function.
11566 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11568 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11569 * auto-profile.c: Likewise.
11570 * bb-reorder.c: Likewise.
11571 * builtins.c: Likewise.
11572 * calls.c: Likewise.
11573 * cfgexpand.c: Likewise.
11574 * cgraphbuild.c: Likewise.
11575 * cgraphclones.c: Likewise.
11576 * cgraphunit.c: Likewise.
11577 * combine.c: Likewise.
11578 * coverage.c: Likewise.
11579 * data-streamer-in.c: Likewise.
11580 * data-streamer-out.c: Likewise.
11581 * data-streamer.c: Likewise.
11582 * dbxout.c: Likewise.
11583 * dwarf2out.c: Likewise.
11584 * except.c: Likewise.
11585 * expr.c: Likewise.
11586 * final.c: Likewise.
11587 * fold-const.c: Likewise.
11588 * ggc-page.c: Likewise.
11589 * gimple-fold.c: Likewise.
11590 * gimple-iterator.c: Likewise.
11591 * gimple-pretty-print.c: Likewise.
11592 * gimple-streamer-in.c: Likewise.
11593 * gimple-streamer-out.c: Likewise.
11594 * gimple.c: Likewise.
11595 * gimplify.c: Likewise.
11596 * ipa-chkp.c: Likewise.
11597 * ipa-comdats.c: Likewise.
11598 * ipa-cp.c: Likewise.
11599 * ipa-devirt.c: Likewise.
11600 * ipa-icf-gimple.c: Likewise.
11601 * ipa-icf.c: Likewise.
11602 * ipa-inline-analysis.c: Likewise.
11603 * ipa-inline-transform.c: Likewise.
11604 * ipa-inline.c: Likewise.
11605 * ipa-polymorphic-call.c: Likewise.
11606 * ipa-profile.c: Likewise.
11607 * ipa-prop.c: Likewise.
11608 * ipa-pure-const.c: Likewise.
11609 * ipa-ref.c: Likewise.
11610 * ipa-reference.c: Likewise.
11611 * ipa-split.c: Likewise.
11612 * ipa-utils.c: Likewise.
11613 * ipa-visibility.c: Likewise.
11615 * langhooks.c: Likewise.
11616 * lto-cgraph.c: Likewise.
11617 * lto-compress.c: Likewise.
11618 * lto-opts.c: Likewise.
11619 * lto-section-in.c: Likewise.
11620 * lto-section-out.c: Likewise.
11621 * lto-streamer-in.c: Likewise.
11622 * lto-streamer-out.c: Likewise.
11623 * lto-streamer.c: Likewise.
11624 * omp-low.c: Likewise.
11625 * opts-global.c: Likewise.
11626 * passes.c: Likewise.
11627 * predict.c: Likewise.
11628 * print-tree.c: Likewise.
11629 * profile.c: Likewise.
11631 * sanopt.c: Likewise.
11632 * stor-layout.c: Likewise.
11633 * symtab.c: Likewise.
11634 * toplev.c: Likewise.
11635 * trans-mem.c: Likewise.
11636 * tree-cfg.c: Likewise.
11637 * tree-chkp.c: Likewise.
11638 * tree-eh.c: Likewise.
11639 * tree-emutls.c: Likewise.
11640 * tree-inline.c: Likewise.
11641 * tree-nested.c: Likewise.
11642 * tree-parloops.c: Likewise.
11643 * tree-pretty-print.c: Likewise.
11644 * tree-profile.c: Likewise.
11645 * tree-sra.c: Likewise.
11646 * tree-ssa-alias.c: Likewise.
11647 * tree-ssa-live.c: Likewise.
11648 * tree-ssa-loop-ivcanon.c: Likewise.
11649 * tree-ssa-loop-ivopts.c: Likewise.
11650 * tree-ssa-pre.c: Likewise.
11651 * tree-ssa-sccvn.c: Likewise.
11652 * tree-ssa-strlen.c: Likewise.
11653 * tree-ssa-structalias.c: Likewise.
11654 * tree-streamer-in.c: Likewise.
11655 * tree-streamer-out.c: Likewise.
11656 * tree-streamer.c: Likewise.
11657 * tree-switch-conversion.c: Likewise.
11658 * tree-tailcall.c: Likewise.
11659 * tree-vect-data-refs.c: Likewise.
11660 * tree-vect-stmts.c: Likewise.
11661 * tree-vectorizer.c: Likewise.
11662 * tree.c: Likewise.
11663 * tsan.c: Likewise.
11664 * ubsan.c: Likewise.
11665 * value-prof.c: Likewise.
11666 * varasm.c: Likewise.
11667 * varpool.c: Likewise.
11668 * config/arm/arm.c: Likewise.
11669 * config/bfin/bfin.c: Likewise.
11670 * config/c6x/c6x.c: Likewise.
11671 * config/cris/cris.c: Likewise.
11672 * config/darwin-c.c: Likewise.
11673 * config/darwin.c: Likewise.
11674 * config/i386/i386.c: Likewise.
11675 * config/i386/winnt.c: Likewise.
11676 * config/microblaze/microblaze.c: Likewise.
11677 * config/mips/mips.c: Likewise.
11678 * config/rs6000/rs6000.c: Likewise.
11679 * config/rx/rx.c: Likewise.
11680 * config/s390/s390.c: Likewise.
11681 * config/tilegx/mul-tables.c: Likewise.
11683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11685 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11686 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11687 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11688 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11689 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11690 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11691 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11692 config/microblaze/microblaze.c, config/mips/mips.c,
11693 config/mmix/mmix.c, config/mn10300/mn10300.c,
11694 config/moxie/moxie.c, config/msp430/msp430.c,
11695 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11696 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11697 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11698 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11699 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11700 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11701 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11702 target-def.h include.
11703 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11705 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11707 * Makefile.in (TARGET_DEF): Add target-insns.def.
11708 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11709 (build/gentarget-def.o): New rule.
11710 (genprogrtl): Add target-def.
11711 * target-insns.def, gentarget-def.c: New files.
11712 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11713 based on the contents of target-insns.def.
11714 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11715 (HAVE_return, gen_return): Delete.
11716 * target-def.h: Include insn-target-def.h.
11717 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11718 instead of direct calls. Rely on them to do the appropriate assertions.
11719 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11720 (convert_jumps_to_returns): Use targetm interface instead of
11722 (thread_prologue_and_epilogue_insns): Likewise.
11723 * reorg.c (find_end_label, dbr_schedule): Likewise.
11724 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11725 * shrink-wrap.c (convert_to_simple_return): Likewise.
11726 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11728 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11730 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11731 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11732 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11733 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11734 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11735 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11736 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11737 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11738 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11739 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11740 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11741 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11742 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11743 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11744 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11745 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11750 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11751 (unbounded_int_hashmap_traits::key_type): Likewise.
11752 * hash-map.h (hash_map): Get the key type from the traits.
11753 * hash-traits.h (default_hash_traits): By default, inherit from the
11754 template parameter.
11755 * alias.c (alias_set_traits): Delete.
11756 (alias_set_entry_d::children): Use alias_set_hash as the first
11757 template parameter.
11758 (record_alias_subset): Update accordingly.
11759 * except.c (tree_hash_traits): Delete.
11760 (type_to_runtime_map): Use tree_hash as the first template parameter.
11761 (init_eh): Update accordingly.
11762 * genmatch.c (capture_id_map_hasher): Delete.
11763 (cid_map_t): Use nofree_string_hash as first template parameter.
11764 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11765 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11766 Use symbol_compare_hash as the first template parameter in
11767 subdivide_hash_map.
11768 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11769 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11770 template parameter.
11771 * passes.c (pass_registry_hasher): Delete.
11772 (name_to_pass_map): Use nofree_string_hash as the first template
11774 (register_pass_name): Update accordingly.
11775 * sanopt.c (sanopt_tree_map_traits): Delete.
11776 (sanopt_tree_triplet_map_traits): Delete.
11777 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11778 template parameter.
11779 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11780 the first template parameter.
11781 * sese.c (rename_map_hasher): Delete.
11782 (rename_map_type): Use tree_ssa_name_hash as the first template
11784 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11785 (function_summary::m_map): Use map_hash as the first template
11787 (function_summary::release): Update accordingly.
11788 * tree-if-conv.c (phi_args_hash_traits): Delete.
11789 (predicate_scalar_phi): Use tree_operand_hash as the first template
11790 parameter to phi_arg_map.
11791 * tree-inline.h (dependence_hasher): Delete.
11792 (copy_body_data::dependence_map): Use dependence_hash as the first
11793 template parameter.
11794 * tree-inline.c (remap_dependence_clique): Update accordingly.
11795 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11796 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11798 (addr_stridxptr): Update accordingly.
11799 * value-prof.c (profile_id_traits): Delete.
11800 (cgraph_node_map): Use profile_id_hash as the first template
11802 (init_node_map): Update accordingly.
11803 * config/alpha/alpha.c (string_traits): Delete.
11804 (machine_function::links): Use nofree_string_hash as the first
11805 template parameter.
11806 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11807 * config/m32c/m32c.c (pragma_traits): Delete.
11808 (pragma_htab): Use nofree_string_hash as the first template parameter.
11809 (m32c_note_pragma_address): Update accordingly.
11810 * config/mep/mep.c (pragma_traits): Delete.
11811 (pragma_htab): Use nofree_string_hash as the first template parameter.
11812 (mep_note_pragma_flag): Update accordingly.
11813 * config/mips/mips.c (mips16_flip_traits): Delete.
11814 (mflip_mips16_htab): Use nofree_string_hash as the first template
11816 (mflip_mips16_use_mips16_p): Update accordingly.
11817 (local_alias_traits): Delete.
11818 (mips16_local_aliases): Use nofree_string_hash as the first template
11820 (mips16_local_alias): Update accordingly.
11822 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11824 * hash-map-traits.h (default_hashmap_traits): Delete.
11826 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11828 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11829 (unbounded_int_hashmap_traits): Likewise.
11830 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11832 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11834 * ipa-icf.h (symbol_compare_hash): New class.
11835 (symbol_compare_hashmap_traits): Use it.
11836 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11837 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11838 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11839 default_hashmap_traits.
11840 * sanopt.c (sanopt_tree_triplet_hash): New class.
11841 (sanopt_tree_triplet_map_traits): Use it.
11843 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11845 * gengtype-parse.c (require_template_declaration): Allow '+' in
11846 template parameters. Consolidate cases.
11847 * hash-traits.h (int_hash): New class.
11848 * alias.c (alias_set_hash): New structure.
11849 (alias_set_traits): Use it.
11850 * symbol-summary.h (function_summary::map_hash): New class.
11851 (function_summary::summary_hashmap_traits): Use it.
11852 * tree-inline.h (dependence_hash): New class.
11853 (dependence_hasher): Use it.
11854 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11855 * value-prof.c (profile_id_hash): New class.
11856 (profile_id_traits): Use it.
11858 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11860 * config/mips/mips.c (mips16_flip_traits): Use it.
11861 (local_alias_traits, mips16_local_aliases): Convert from a map of
11862 rtxes to a map of symbol names.
11863 (mips16_local_alias): Update accordingly.
11865 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11867 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11868 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11869 * passes.c (pass_registry_hasher): Likewise.
11870 * config/alpha/alpha.c (string_traits): Likewise.
11871 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11872 * config/m32c/m32c.c (pragma_traits): Likewise.
11873 * config/mep/mep.c (pragma_traits): Likewise.
11875 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11877 * tree-hash-traits.h (tree_hash): New class.
11878 * except.c: Include tree-hash-traits.h.
11879 (tree_hash_traits): Use tree_hash.
11881 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11883 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11884 * sese.c: Include tree-hash-traits.h.
11885 (rename_map_hasher): Use tree_ssa_name_hasher.
11887 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11889 * tree-hash-traits.h (tree_decl_hash): New class.
11890 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11891 (stridxlist_hash_traits): Use tree_decl_hash.
11893 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11895 * tree-hash-traits.h: New file.
11896 (tree_operand_hash): New class.
11897 * sanopt.c: Include tree-hash-traits.h.
11898 (sanopt_tree_map_traits): Use tree_operand_hash.
11899 * tree-if-conv.c: Include tree-hash-traits.h.
11900 (phi_args_hash_traits): Use tree_operand_hash.
11901 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11902 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11904 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11906 * hash-map-traits.h: Include hash-traits.h.
11907 (simple_hashmap_traits): New class.
11908 * mem-stats.h (hash_map): Change the default traits to
11909 simple_hashmap_traits<default_hash_traits<Key> >.
11911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11913 * hash-table.h: Update comments.
11915 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11917 * hash-traits.h (default_hash_traits): New structure.
11918 * hash-set.h (default_hashset_traits): Delete.
11919 (hash_set): Use default_hash_traits<Key> instead of
11920 default_hashset_traits. Delete hash_entry type and use Key directly.
11921 * ipa-devirt.c (pair_traits): Delete.
11922 (default_hash_traits <type_pair>): Override.
11923 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11924 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11926 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11928 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11930 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11932 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11933 (has_is_empty, is_empty_helper): Delete.
11934 (has_mark_deleted, mark_deleted_helper): Delete.
11935 (has_mark_empty, mark_empty_helper): Delete.
11936 (hash_table::is_deleted): Call the Descriptor unconditionally.
11937 (hash_table::is_empty): Likewise.
11938 (hash_table::mark_deleted): Likewise.
11939 (hash_table::mark_empty): Likewise.
11941 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11943 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11944 redundant typedefs and members.
11945 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11946 redundant typedefs.
11947 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11948 * ipa-devirt.c (odr_name_hasher): Likewise.
11949 (polymorphic_call_target_hasher): Likewise.
11950 * ira-costs.c (cost_classes_hasher): Likewise.
11951 * statistics.c (stats_counter_hasher): Likewise.
11952 * trans-mem.c (log_entry_hasher): Likewise.
11953 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11954 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11955 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11956 * var-tracking.c (variable_hasher): Likewise.
11957 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11958 Remove redundant typedefs and members.
11960 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11962 * hash-traits.h (ggc_cache_hasher): Rename to...
11963 (ggc_cache_remove): ...this and remove typedefs.
11964 (ggc_cache_ptr_hash): New class.
11965 * hash-table.h: Update commentary.
11966 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11967 rather than ggc_cache_hasher.
11968 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11969 (const_double_hasher, const_fixed_hasher): Likewise.
11970 * function.c (insn_cache_hasher): Likewise.
11971 * trans-mem.c (tm_wrapper_hasher): Likewise.
11972 * tree.h (tree_decl_map_cache_hasher): Likewise.
11973 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11974 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11975 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11976 * varasm.c (tm_clone_hasher): Likewise.
11977 * config/i386/i386.c (dllimport_hasher): Likewise.
11978 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11979 (tree_hasher): Likewise.
11981 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11983 * hash-traits.h (ggc_hasher): Rename to...
11984 (ggc_remover): ...this and remove typedefs.
11985 (ggc_cache_hasher): Update accordingly. Add typedefs.
11986 (ggc_ptr_hash): New class.
11987 * hash-table.h: Update comment.
11988 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11990 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11991 (tree_descriptor_hasher): Likewise.
11992 * cgraph.c (function_version_hasher): Likewise.
11993 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11994 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11995 (dw_loc_list_hasher, addr_hasher): Likewise.
11996 * function.h (used_type_hasher): Likewise.
11997 * function.c (temp_address_hasher): Likewise.
11998 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11999 * libfuncs.h (libfunc_hasher): Likewise.
12000 * lto-streamer.h (decl_state_hasher): Likewise.
12001 * optabs.c (libfunc_decl_hasher): Likewise.
12002 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12003 * varasm.c (section_hasher, object_block_hasher): Likewise.
12004 (const_rtx_desc_hasher): Likewise.
12005 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12006 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12008 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12010 * hash-traits.h (free_ptr_hash): New class.
12011 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12012 rather than typed_free_remove. Remove redudant typedefs.
12013 (external_ref_hasher): Likewise.
12014 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12015 (ehspec_hasher): Likewise.
12016 * ggc-common.c (saving_hasher): Likewise.
12017 * gimplify.c (gimplify_hasher): Likewise.
12018 * haifa-sched.c (delay_i2_hasher): Likewise.
12019 * loop-invariant.c (invariant_expr_hasher): Likewise.
12020 * loop-iv.c (biv_entry_hasher): Likewise.
12021 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12022 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12023 * tree-cfg.c (locus_discrim_hasher): Likewise.
12024 * tree-eh.c (finally_tree_hasher): Likewise.
12025 * tree-into-ssa.c (var_info_hasher): Likewise.
12026 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12027 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12028 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12029 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12030 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12031 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12032 (shared_bitmap_hasher): Likewise.
12033 * tree-ssa-threadupdate.c (redirection_data): Likewise.
12034 * tree-vectorizer.h (peel_info_hasher): Likewise.
12035 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12036 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12038 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12040 * hash-table.h: Update comments.
12041 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12042 (nofree_ptr_hash): New class.
12043 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12044 than typed_noop_remove. Remove redudant typedefs.
12045 * attribs.c (attribute_hasher): Likewise.
12046 * cfg.c (bb_copy_hasher): Likewise.
12047 * cselib.c (cselib_hasher): Likewise.
12048 * dse.c (invariant_group_base_hasher): Likewise.
12049 * dwarf2cfi.c (trace_info_hasher): Likewise.
12050 * dwarf2out.c (macinfo_entry_hasher): Likewise.
12051 (comdat_type_hasher, loc_list_hasher): Likewise.
12052 * gcse.c (pre_ldst_expr_hasher): Likewise.
12053 * genmatch.c (id_base): Likewise.
12054 * genrecog.c (test_pattern_hasher): Likewise.
12055 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12056 * haifa-sched.c (delay_i1_hasher): Likewise.
12057 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12058 * ipa-icf.h (congruence_class_group_hash): Likewise.
12059 * ipa-profile.c (histogram_hash): Likewise.
12060 * ira-color.c (allocno_hard_regs_hasher): Likewise.
12061 * lto-streamer.h (string_slot_hasher): Likewise.
12062 * lto-streamer.c (tree_entry_hasher): Likewise.
12063 * plugin.c (event_hasher): Likewise.
12064 * postreload-gcse.c (expr_hasher): Likewise.
12065 * store-motion.c (st_expr_hasher): Likewise.
12066 * tree-sra.c (uid_decl_hasher): Likewise.
12067 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12068 (ssa_name_var_hash): Likewise.
12069 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12070 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12071 * tree-ssa-pre.c (pre_expr_d): Likewise.
12072 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12073 * vtable-verify.h (registration_hasher): Likewise.
12074 * vtable-verify.c (vtbl_map_hasher): Likewise.
12075 * config/arm/arm.c (libcall_hasher): Likewise.
12076 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12077 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12078 * config/sol2.c (comdat_entry_hasher): Likewise.
12079 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12080 (print_fold_checksum, fold_checksum_tree): Likewise.
12081 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12082 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12083 (fold_build_call_array_loc): Likewise.
12084 * tree-ssa-ccp.c (gimple_htab): Likewise.
12085 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12086 rather than pointer_type.
12088 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12090 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12091 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12093 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12095 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12096 (ggc_hasher::ggc_mx): Likewise.
12097 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12098 that duplicate ggc_hasher ones.
12100 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12102 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12103 (gt_cleare_cache): Check here for deleted and empty entries.
12104 Replace handle_cache_entry with a call to keep_cache_entry.
12105 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12106 (ggc_cache_hasher::keep_cache_entry): New function.
12107 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12108 (tm_wrapper_hasher::keep_cache_entry): New function.
12109 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12110 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12111 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12112 (type_cache_hasher::keep_cache_entry): New function.
12113 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12114 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12115 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12116 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12117 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12118 (tm_clone_hasher::keep_cache_entry): New function.
12119 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12120 (dllimport_hasher::keep_cache_entry): New function.
12122 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12124 * hash-table.h: Include hash-traits.h.
12125 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12126 (ggc_cache_hasher): Move to...
12127 * hash-traits.h: ...this new file.
12129 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12131 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12132 struct cl_optimization.
12133 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12134 * tree.c (make_node_stat): Allocate cl_optimization struct.
12135 (copy_node_stat): Allocate and copy cl_optimization struct.
12137 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12139 * function.h (struct incoming_args): Move struct.
12140 (pass_by_reference, reference_callee_copied): Remove prototypes.
12141 * emit-rtl.h (struct incoming_args): Relocate struct here.
12142 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12144 * function.c (pass_by_reference, reference_callee_copied): Move.
12145 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12146 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12147 * ipa-chkp.c: Include calls.h.
12149 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12151 * alias.h (alias_set_type): Move typedef.
12152 * coretypes.h (alias_set_type): Relocate typedef here.
12153 * rtl.h: Don't include alias.h.
12155 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12157 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12158 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12160 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12161 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12163 * calls.c: Include hard-reg-set.h before rtl.h.
12166 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12167 Vladimir Makarov <vmakarov@redhat.com>
12169 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12172 2015-06-25 Richard Biener <rguenther@suse.de>
12174 * fold-const.c (fold_binary_loc): Move simplification of
12175 (X <<>> C1) & C2 ...
12176 * match.pd: ... here.
12178 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12180 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12182 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12184 * match.pd: Add patterns for vec_conds between 1 and 0.
12186 2015-06-25 Richard Biener <rguenther@suse.de>
12188 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12189 STMT_VINFO_VEC_STMT for SLP.
12190 (vectorizable_store): Likewise.
12191 (vectorizable_load): Likewise.
12192 (vect_transform_stmt): Catch SLP vectorization clobbering
12193 STMT_VINFO_VEC_STMT.
12195 2015-06-25 Richard Biener <rguenther@suse.de>
12197 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12199 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12200 cleanup resulting dead code and parameters.
12201 (vect_transform_slp_perm_load): Adjust.
12203 2015-06-25 Nick Clifton <nickc@redhat.com>
12205 * config/bfin/bfin.c (bfin_expand_prologue): Set
12206 current_function_static_stack_size if flag_stack_usage_info is set.
12207 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12208 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12209 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12210 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12212 2015-06-25 Tom de Vries <tom@codesourcery.com>
12214 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12215 comment that the generated IV is unsigned.
12217 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12220 * config/arm/arm.c (arm_dbx_register_number): Return
12221 DWARF_FRAME_REGISTERS by default.
12223 2015-06-25 Tom de Vries <tom@codesourcery.com>
12225 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12226 argument. Call verify_dominator when reusing dominator info.
12228 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12231 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12232 an additional element of the unspec vector. Modify indices
12234 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12235 * config/sh/sh.c (prepare_move_operands): Pass incremented
12236 const_int to gen_GOTaddr2picreg.
12237 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12239 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12241 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12242 Condition on TARGET_FLOAT.
12244 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12246 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12249 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12251 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12253 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12254 aarch64_err_no_fpadvsimd.
12256 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12257 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12258 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12259 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12260 Turn error into assert, test TARGET_FLOAT.
12261 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12264 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12267 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12269 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12271 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12273 2015-06-24 Renlin Li <renlin.li@arm.com>
12275 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12276 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12278 2015-06-24 Richard Biener <rguenther@suse.de>
12280 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12282 (lower_opt_convert): Support lowering of conditional view_convert.
12283 (parser::parse_operation): Likewise.
12284 (parser::parse_for): Likewise.
12286 2015-06-24 Renlin Li <renlin.li@arm.com>
12288 * varasm.c (emit_local): Use unsigned int for align variable.
12290 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12293 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12294 for negative numbers.
12296 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12298 PR rtl-optimization/66306
12299 * reload.c (find_reloads): Swap the match_dup info for
12300 commutative operands.
12302 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12304 * config/s390/vx-builtins.md
12305 ("vec_scatter_element<mode>_<non_vec_int>")
12306 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12307 attribute with bhfgq.
12309 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12311 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12313 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12315 * config/s390/s390-builtin-types.def: Add flag to indicate the
12316 options under which the function type is needed.
12317 * config/s390/s390-builtins.def: Add flag to indicate the options
12318 under which the builtin is enabled.
12319 * config/s390/s390-builtins.h: Add flags parameter to macro
12321 (bflags_for_builtin): New function.
12322 (flags_for_builtin): Renamed to ...
12323 (opflags_for_builtin): ... this.
12324 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12325 flags_for_builtin to bflags_for_builtin and
12326 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12327 * config/s390/s390.c: Add initialization of bflags_builtin and
12328 opflags_builtin arrays.
12329 Remove code for flags_builtin.
12330 (s390_init_builtins): Only create builtin function types if one of
12331 their flags is active.
12332 Only create builtins if all of their flags are active.
12333 (s390_expand_builtin): Rename flags_for_builtin to
12334 opflags_for_builtin.
12336 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12338 * config/s390/vecintrin.h: Remove internal builtins.
12340 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12342 * config/s390/s390.c (s390_secondary_reload): Fix check for
12343 GENERAL_REGS register class.
12345 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12347 * config/s390/s390.c (s390_support_vector_misalignment): Call
12348 default implementation for !TARGET_VX.
12350 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12352 * config/s390/s390.c (s390_legitimate_constant_p): Add
12355 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12357 * config/s390/s390.c (s390_vector_abi): New variable definition.
12358 (s390_check_type_for_vector_abi): New function.
12359 (TARGET_ASM_FILE_END): New macro definition.
12360 (s390_asm_file_end): New function.
12361 (s390_function_arg): Call s390_check_type_for_vector_abi.
12362 (s390_gimplify_va_arg): Likewise.
12363 * configure: Regenerate.
12364 * configure.ac: Check for .gnu_attribute Binutils feature.
12366 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12369 * config/bfin/bfin.c (hwloop_optimize): Initialize
12370 JUMP_LABEL for newly created jump.
12372 2015-06-23 Tristan Gingold <gingold@adacore.com>
12374 * collect-utils.c (collect_wait): Unlink the response file here
12376 (do_wait): ...here.
12377 (utils_cleanup): ...and here.
12379 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12381 * df-scan.c: Don't include target-def.h.
12382 * targhooks.c: Likewise.
12383 * config/arm/arm-c.c: Likewise.
12384 * config/i386/i386-c.c: Likewise.
12385 * config/nds32/nds32-cost.c: Likewise.
12386 * config/nds32/nds32-fp-as-gp.c: Likewise.
12387 * config/nds32/nds32-intrinsic.c: Likewise.
12388 * config/nds32/nds32-isr.c: Likewise.
12389 * config/nds32/nds32-md-auxiliary.c: Likewise.
12390 * config/nds32/nds32-memory-manipulation.c: Likewise.
12391 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12392 * config/nds32/nds32-predicates.c: Likewise.
12394 2015-06-23 Richard Biener <rguenther@suse.de>
12396 PR tree-optimization/66636
12397 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12398 def type for further defs for strided stores.
12400 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12402 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12403 conditional selects.
12404 (setcc_int<mode>, setcc_float<mode>): Reformat.
12406 2015-06-23 Marek Polacek <polacek@redhat.com>
12408 * match.pd ((x + y) - (x | y) -> x & y,
12409 (x + y) - (x & y) -> x | y): New patterns.
12411 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12414 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12415 '-dynamic-linker' within %{!shared: ...}.
12417 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12420 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12421 (addsub_vs_operator): Ditto.
12422 (addsub_vs_parallel): Ditto.
12423 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12424 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12425 Put minus RTX before plus and adjust vec_merge selector.
12426 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12427 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12428 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12429 (addsub vec_merge splitters): New combiner splitters.
12430 (addsub vec_select/vec_concat splitters): Ditto.
12432 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12434 PR tree-optimization/66449
12435 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12436 POINTER_PLUS_EXPR for pointers.
12438 2015-06-23 Alan Modra <amodra@gmail.com>
12440 * rtlanal.c (commutative_operand_precedence): Correct comments.
12441 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12442 declaration. Return an int. Distinguish REG,REG return from
12444 (struct simplify_plus_minus_op_data): Make local to function.
12445 (simplify_plus_minus): Don't set canonicalized if merely sorting
12446 registers. Avoid packing ops if nothing changes. White space fixes.
12448 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12450 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12451 -fdump-ada-spec is passed but not if -fsyntax-only is.
12453 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12456 * lra-lives.c (process_bb_lives): Check insn copying the same
12457 reload pseudo and don't create a copy for it.
12459 2015-06-22 Tom de Vries <tom@codesourcery.com>
12461 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12464 2015-06-22 Tom de Vries <tom@codesourcery.com>
12466 * builtins.def (DEF_GOMP_BUILTIN): Test
12467 'flag_tree_parallelize_loops > 1' instead of
12468 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12470 2015-06-22 Tom de Vries <tom@codesourcery.com>
12472 * dominance.c (calculate_dominance_info): Verify dominators if
12475 2015-06-22 Marek Polacek <polacek@redhat.com>
12477 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12478 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12479 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12480 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12482 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12485 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12486 cost of embedded comparison.
12488 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12491 * config/rs6000/predicates.md (altivec_register_operand): Permit
12492 virtual stack registers.
12493 (vsx_register_operand): Likewise.
12494 (vfloat_operand): Likewise.
12495 (vint_operand): Likewise.
12496 (vlogical_operand): Likewise.
12498 2015-06-22 Richard Biener <rguenther@suse.de>
12500 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12501 and single_scalar_iteration_cost members.
12502 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12503 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12504 (vect_get_single_scalar_iteration_cost): Remove.
12505 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12506 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12507 * tree-vect-loop.c (destroy_loop_vec_info): Free
12509 (vect_get_single_scalar_iteration_cost): Compute result into
12510 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12511 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12512 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12513 (vect_estimate_min_profitable_iters): Use them.
12515 2015-06-22 Christian Bruel <christian.bruel@st.com>
12518 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12519 (TARGET_INSERT_ATTRIBUTES): Define.
12520 (thumb_flipper): New var.
12521 * config/arm/arm.opt (-mflip-thumb): New switch.
12523 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12524 Martin Liska <mliska@suse.cz>
12527 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12528 construction of arg_types.
12529 (sem_function::sem_function): Likewise.
12530 (sem_function::~sem_function): Remove destruction of arg_types.
12531 (sem_function::compatible_parm_types_p): New function.
12532 (sem_function::equals_wpa): Reorg matching of return values
12533 and parameter types.
12534 (sem_function::equals_private): Reorg mathcing of argument types.
12535 (sem_function::parse_tree_args): Remove.
12536 * ipa-icf.h (init_wpa): Do not call it.
12537 (parse_tree_args): Remove.
12538 (compatible_parm_types_p): Declare.
12539 (result_type): Remove.
12540 (arg_types): Remove.
12542 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12545 * ipa-polymorphic-call.c
12546 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12547 initializing alias oracle; fix formating; set base_alias_set if it
12550 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12552 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12553 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12554 (find_inc): Likewise.
12555 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12557 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12558 * df-scan.c (df_swap_refs): Remove.
12559 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12560 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12561 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12562 * fold-const.c (fold_relational_const): Likewise.
12563 * genattrtab.c (simplify_test_exp): Likewise.
12564 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12565 gimple_simplify): Likewise.
12566 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12567 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12568 * ipa-devirt.c (add_type_duplicate): Likewise.
12569 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12570 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12571 * lra.c (lra_create_copy): Likewise.
12572 * lto-streamer-out.c (DFS::DFS): Likewise.
12573 * modulo-sched.c (get_sched_window): Likewise.
12574 * omega.c (omega_pretty_print_problem): Likewise.
12575 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12576 * reload1.c (reloads_unique_chain_p): Likewise.
12577 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12578 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12580 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12582 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12583 predicate_mem_writes): Likewise.
12584 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12585 * tree-predcom.c (combine_chains): Likewise.
12586 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12587 refs_may_alias_p_1): Likewise.
12588 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12589 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12590 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12591 number_of_iterations_cond): Likewise.
12592 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12593 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12594 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12595 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12596 * tree-vrp.c (extract_range_from_binary_expr_1,
12597 extract_range_from_unary_expr_1): Likewise.
12599 2015-06-20 Marek Polacek <polacek@redhat.com>
12601 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12603 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12606 * config/sh/sh.c (prepare_move_operands): Replace subreg
12607 index term with R0 for base and index addressing.
12609 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12611 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12613 (movsf_aarch64): Change condition from register_operand to
12614 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12615 load1. Change type for alternative 7 to store1.
12616 (movdf_aarch64): Likewise.
12618 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12620 * config/vax/vax.md: Adjust sign/zero extend patterns to
12621 handle SUBREGs in operands[1].
12623 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12625 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12626 of manually swapping.
12627 (expand_vec_perm_interleave2): Likewise.
12629 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12631 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12632 reuse bounds created for abnormal ssa names.
12634 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12636 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12637 (allocate_stack_<mode>): ... this, and add :P on both
12638 match_operand and unspec.
12639 (allocate_stack): New expander.
12641 2015-06-19 Christian Bruel <christian.bruel@st.com>
12645 * config/arm/arm.c (arm_set_current_function): Handle
12646 explicit default options.
12648 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12650 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12651 (zero-extended cmove with mem peephole2): New pattern.
12652 (cmove with mem peephole2): Merge patterns.
12654 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12656 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12658 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12660 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12661 * config/mips/mips.md (*madd4<mode>): Ditto.
12662 (*nmadd3<mode>) Ditto.
12663 (*nmadd4<mode>_fastmath): Ditto.
12664 (*nmadd3<mode>_fastmath): Ditto.
12665 (*nmsub4<mode>): Ditto.
12666 (*nmsub3<mode>): Ditto.
12667 (*nmsub4<mode>_fastmath): Ditto.
12668 (*nmsub3<mode>_fastmath): Ditto.
12670 2015-06-18 Michael Matz <matz@suse.de>
12672 PR middle-end/66253
12673 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12674 grouped strided stores.
12675 (vectorizable_load): Don't use the DR from first_stmt in
12676 the non-SLP grouped strided case.
12678 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12681 * function.c (assign_bounds): Add arguments assign_regs,
12682 assign_special, assign_bt.
12683 (assign_parms): For vararg functions handle bounds in BT
12684 and special slots after incoming vararg bounds.
12686 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12688 PR middle-end/66568
12689 * cfgexpand.c (expand_return): Handle missing bounds.
12690 (expand_gimple_stmt_1): Likewise.
12691 * tree-chkp.c (chkp_expand_zero_bounds): New.
12692 * tree-chkp.h (chkp_expand_zero_bounds): New.
12694 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12696 PR middle-end/66567
12697 * ipa-chkp.c (chkp_maybe_create_clone): Require
12698 functions to be instrumentable.
12699 * tree-chkp.c (chkp_replace_function_pointer): Use
12700 chkp_instrumentable_p instead of attribute check.
12702 2015-06-18 Richard Biener <rguenther@suse.de>
12704 PR tree-optimization/66510
12705 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12706 number of vector loads for SLP permuted loads.
12707 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12708 check the stride for loop vectorization.
12709 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12710 vectorization factor.
12711 (vect_analyze_group_access): If the group size is not a power
12712 of two require a epilogue loop.
12713 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12714 compute and optimizing and alias test pruning after final
12715 vectorization factor computation.
12716 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12718 (vect_transform_slp_perm_load): Properly compute the original
12719 number of vector load stmts.
12721 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12723 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12724 "unlikely character , in @var" warning.
12726 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12728 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12729 (ix86_function_arg_advance): Ditto.
12730 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12732 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12734 * function.h (struct rtl_data): Remove struct and accessor macros.
12735 * emit-rtl.h (struct rtl_data): Relocate to here.
12736 * Makefile.in (GTFILES): Add emit-rtl.h.
12737 * df-core.c: Include emit-rtl.h.
12738 * genattrtab.c: Likewise.
12739 * genconditions.c: Likewise.
12740 * genpreds.c: Likewise.
12741 * genrecog.c: Likewise.
12742 * regcprop.c: Likewise.
12743 * resource.c: Likewise.
12744 * sched-rgn.c: Likewise.
12745 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12746 * config/i386/winnt.c: Likewise.
12748 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12750 PR middle-end/66429
12751 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12752 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12753 and has_force_vectorize_loops flags from cfun into
12755 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12756 if simduid is non-NULL.
12757 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12758 * passes.def (pass_simduid_cleanup): Add new pass after loop
12760 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12761 indirection from htab argument's type.
12762 (shrink_simd_arrays): New function.
12763 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12764 Don't call adjust_simduid_builtins if there are no loops.
12765 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12766 (pass_simduid_cleanup::execute): New method.
12767 (make_pass_simduid_cleanup): New function.
12769 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12771 * tree-core.h (tree_target_option): Make opts field a pointer to a
12772 cl_target_option instead of an instance of the struct.
12773 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12775 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12776 TARGET_OPTION_NODE.
12777 (copy_node_stat): Allocate and copy struct cl_target_option.
12779 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12781 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12782 Remove conditional exposure of prototypes.
12783 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12784 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12785 definitions in tree.h with functions.
12786 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12788 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12790 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12792 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12793 (*cmp<mode>_signed): ... this.
12794 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12795 (*cmp<mode>_unsigned): ... this. Remove %b.
12797 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12799 * coretypes.h: Include input.h and as-a.h.
12800 * rtl.h: Include input.h and as-a.h for generator files.
12801 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12802 * vec.c: Don't include diagnostic-core.h.
12803 * alias.c: Do not include input.h, line-map.h or is-a.h.
12804 * asan.c: Likewise.
12805 * attribs.c: Likewise.
12806 * auto-inc-dec.c: Likewise.
12807 * auto-profile.c: Likewise.
12808 * bb-reorder.c: Likewise.
12809 * bt-load.c: Likewise.
12810 * builtins.c: Likewise.
12811 * caller-save.c: Likewise.
12812 * calls.c: Likewise.
12813 * ccmp.c: Likewise.
12815 * cfganal.c: Likewise.
12816 * cfgbuild.c: Likewise.
12817 * cfgcleanup.c: Likewise.
12818 * cfgexpand.c: Likewise.
12819 * cfghooks.c: Likewise.
12820 * cfgloop.c: Likewise.
12821 * cfgloop.h: Likewise.
12822 * cfgloopanal.c: Likewise.
12823 * cfgloopmanip.c: Likewise.
12824 * cfgrtl.c: Likewise.
12825 * cgraph.c: Likewise.
12826 * cgraphbuild.c: Likewise.
12827 * cgraphclones.c: Likewise.
12828 * cgraphunit.c: Likewise.
12829 * cilk-common.c: Likewise.
12830 * combine-stack-adj.c: Likewise.
12831 * combine.c: Likewise.
12832 * compare-elim.c: Likewise.
12833 * convert.c: Likewise.
12834 * coverage.c: Likewise.
12835 * cppbuiltin.c: Likewise.
12836 * cprop.c: Likewise.
12838 * cselib.c: Likewise.
12839 * data-streamer-in.c: Likewise.
12840 * data-streamer-out.c: Likewise.
12841 * data-streamer.c: Likewise.
12842 * dbxout.c: Likewise.
12845 * debug.c: Likewise.
12846 * df-core.c: Likewise.
12847 * df-problems.c: Likewise.
12848 * df-scan.c: Likewise.
12851 * diagnostic-core.h: Likewise.
12852 * diagnostic.c: Likewise.
12853 * dojump.c: Likewise.
12854 * dominance.c: Likewise.
12855 * domwalk.c: Likewise.
12856 * double-int.c: Likewise.
12858 * dumpfile.c: Likewise.
12859 * dumpfile.h: Likewise.
12860 * dwarf2asm.c: Likewise.
12861 * dwarf2cfi.c: Likewise.
12862 * dwarf2out.c: Likewise.
12863 * emit-rtl.c: Likewise.
12864 * et-forest.c: Likewise.
12865 * except.c: Likewise.
12866 * explow.c: Likewise.
12867 * expmed.c: Likewise.
12868 * expr.c: Likewise.
12869 * final.c: Likewise.
12870 * fixed-value.c: Likewise.
12871 * fold-const.c: Likewise.
12872 * function.c: Likewise.
12873 * fwprop.c: Likewise.
12874 * gcc-plugin.h: Likewise.
12875 * gcse.c: Likewise.
12876 * generic-match-head.c: Likewise.
12877 * ggc-page.c: Likewise.
12878 * gimple-builder.c: Likewise.
12879 * gimple-expr.c: Likewise.
12880 * gimple-fold.c: Likewise.
12881 * gimple-iterator.c: Likewise.
12882 * gimple-low.c: Likewise.
12883 * gimple-match-head.c: Likewise.
12884 * gimple-pretty-print.c: Likewise.
12885 * gimple-ssa-isolate-paths.c: Likewise.
12886 * gimple-ssa-strength-reduction.c: Likewise.
12887 * gimple-streamer-in.c: Likewise.
12888 * gimple-streamer-out.c: Likewise.
12889 * gimple-streamer.h: Likewise.
12890 * gimple-walk.c: Likewise.
12891 * gimple.c: Likewise.
12892 * gimplify-me.c: Likewise.
12893 * gimplify.c: Likewise.
12894 * godump.c: Likewise.
12895 * graph.c: Likewise.
12896 * graphite-blocking.c: Likewise.
12897 * graphite-dependences.c: Likewise.
12898 * graphite-interchange.c: Likewise.
12899 * graphite-isl-ast-to-gimple.c: Likewise.
12900 * graphite-optimize-isl.c: Likewise.
12901 * graphite-poly.c: Likewise.
12902 * graphite-scop-detection.c: Likewise.
12903 * graphite-sese-to-poly.c: Likewise.
12904 * graphite.c: Likewise.
12905 * haifa-sched.c: Likewise.
12906 * hw-doloop.c: Likewise.
12907 * ifcvt.c: Likewise.
12908 * init-regs.c: Likewise.
12909 * input.c: Likewise.
12910 * internal-fn.c: Likewise.
12911 * ipa-chkp.c: Likewise.
12912 * ipa-comdats.c: Likewise.
12913 * ipa-cp.c: Likewise.
12914 * ipa-devirt.c: Likewise.
12915 * ipa-icf-gimple.c: Likewise.
12916 * ipa-icf.c: Likewise.
12917 * ipa-inline-analysis.c: Likewise.
12918 * ipa-inline-transform.c: Likewise.
12919 * ipa-inline.c: Likewise.
12920 * ipa-polymorphic-call.c: Likewise.
12921 * ipa-profile.c: Likewise.
12922 * ipa-prop.c: Likewise.
12923 * ipa-pure-const.c: Likewise.
12924 * ipa-ref.c: Likewise.
12925 * ipa-reference.c: Likewise.
12926 * ipa-split.c: Likewise.
12927 * ipa-utils.c: Likewise.
12928 * ipa-visibility.c: Likewise.
12930 * ira-build.c: Likewise.
12931 * ira-color.c: Likewise.
12932 * ira-conflicts.c: Likewise.
12933 * ira-costs.c: Likewise.
12934 * ira-emit.c: Likewise.
12935 * ira-lives.c: Likewise.
12937 * jump.c: Likewise.
12938 * langhooks.c: Likewise.
12940 * loop-doloop.c: Likewise.
12941 * loop-init.c: Likewise.
12942 * loop-invariant.c: Likewise.
12943 * loop-iv.c: Likewise.
12944 * loop-unroll.c: Likewise.
12945 * lower-subreg.c: Likewise.
12946 * lra-assigns.c: Likewise.
12947 * lra-coalesce.c: Likewise.
12948 * lra-constraints.c: Likewise.
12949 * lra-eliminations.c: Likewise.
12950 * lra-lives.c: Likewise.
12951 * lra-remat.c: Likewise.
12952 * lra-spills.c: Likewise.
12954 * lto-cgraph.c: Likewise.
12955 * lto-compress.c: Likewise.
12956 * lto-opts.c: Likewise.
12957 * lto-section-in.c: Likewise.
12958 * lto-section-out.c: Likewise.
12959 * lto-streamer-in.c: Likewise.
12960 * lto-streamer-out.c: Likewise.
12961 * lto-streamer.c: Likewise.
12963 * mode-switching.c: Likewise.
12964 * modulo-sched.c: Likewise.
12965 * omega.c: Likewise.
12966 * omp-low.c: Likewise.
12967 * optabs.c: Likewise.
12968 * opts-global.c: Likewise.
12969 * opts.h: Likewise.
12970 * passes.c: Likewise.
12971 * plugin.c: Likewise.
12972 * postreload-gcse.c: Likewise.
12973 * postreload.c: Likewise.
12974 * predict.c: Likewise.
12975 * pretty-print.h: Likewise.
12976 * print-rtl.c: Likewise.
12977 * print-tree.c: Likewise.
12978 * profile.c: Likewise.
12979 * real.c: Likewise.
12980 * realmpfr.c: Likewise.
12981 * recog.c: Likewise.
12983 * reg-stack.c: Likewise.
12984 * regcprop.c: Likewise.
12985 * reginfo.c: Likewise.
12986 * regrename.c: Likewise.
12987 * regstat.c: Likewise.
12988 * reload.c: Likewise.
12989 * reload1.c: Likewise.
12990 * reorg.c: Likewise.
12991 * resource.c: Likewise.
12992 * rtl-chkp.c: Likewise.
12993 * rtl-error.c: Likewise.
12994 * rtlanal.c: Likewise.
12995 * rtlhooks.c: Likewise.
12996 * sanopt.c: Likewise.
12997 * sched-deps.c: Likewise.
12998 * sched-ebb.c: Likewise.
12999 * sched-rgn.c: Likewise.
13000 * sched-vis.c: Likewise.
13001 * sdbout.c: Likewise.
13002 * sel-sched-dump.c: Likewise.
13003 * sel-sched-ir.c: Likewise.
13004 * sel-sched.c: Likewise.
13005 * sese.c: Likewise.
13006 * shrink-wrap.c: Likewise.
13007 * simplify-rtx.c: Likewise.
13008 * stack-ptr-mod.c: Likewise.
13009 * statistics.c: Likewise.
13010 * stmt.c: Likewise.
13011 * stor-layout.c: Likewise.
13012 * store-motion.c: Likewise.
13013 * streamer-hooks.c: Likewise.
13014 * stringpool.c: Likewise.
13015 * symtab.c: Likewise.
13016 * target-globals.c: Likewise.
13017 * targhooks.c: Likewise.
13018 * toplev.c: Likewise.
13019 * tracer.c: Likewise.
13020 * trans-mem.c: Likewise.
13021 * tree-affine.c: Likewise.
13022 * tree-browser.c: Likewise.
13023 * tree-call-cdce.c: Likewise.
13024 * tree-cfg.c: Likewise.
13025 * tree-cfgcleanup.c: Likewise.
13026 * tree-chkp-opt.c: Likewise.
13027 * tree-chkp.c: Likewise.
13028 * tree-chrec.c: Likewise.
13029 * tree-complex.c: Likewise.
13030 * tree-data-ref.c: Likewise.
13031 * tree-dfa.c: Likewise.
13032 * tree-diagnostic.c: Likewise.
13033 * tree-dump.c: Likewise.
13034 * tree-eh.c: Likewise.
13035 * tree-emutls.c: Likewise.
13036 * tree-if-conv.c: Likewise.
13037 * tree-inline.c: Likewise.
13038 * tree-into-ssa.c: Likewise.
13039 * tree-iterator.c: Likewise.
13040 * tree-loop-distribution.c: Likewise.
13041 * tree-nested.c: Likewise.
13042 * tree-nrv.c: Likewise.
13043 * tree-object-size.c: Likewise.
13044 * tree-outof-ssa.c: Likewise.
13045 * tree-parloops.c: Likewise.
13046 * tree-phinodes.c: Likewise.
13047 * tree-predcom.c: Likewise.
13048 * tree-pretty-print.c: Likewise.
13049 * tree-profile.c: Likewise.
13050 * tree-scalar-evolution.c: Likewise.
13051 * tree-sra.c: Likewise.
13052 * tree-ssa-address.c: Likewise.
13053 * tree-ssa-alias.c: Likewise.
13054 * tree-ssa-ccp.c: Likewise.
13055 * tree-ssa-coalesce.c: Likewise.
13056 * tree-ssa-copy.c: Likewise.
13057 * tree-ssa-copyrename.c: Likewise.
13058 * tree-ssa-dce.c: Likewise.
13059 * tree-ssa-dom.c: Likewise.
13060 * tree-ssa-dse.c: Likewise.
13061 * tree-ssa-forwprop.c: Likewise.
13062 * tree-ssa-ifcombine.c: Likewise.
13063 * tree-ssa-live.c: Likewise.
13064 * tree-ssa-loop-ch.c: Likewise.
13065 * tree-ssa-loop-im.c: Likewise.
13066 * tree-ssa-loop-ivcanon.c: Likewise.
13067 * tree-ssa-loop-ivopts.c: Likewise.
13068 * tree-ssa-loop-manip.c: Likewise.
13069 * tree-ssa-loop-niter.c: Likewise.
13070 * tree-ssa-loop-prefetch.c: Likewise.
13071 * tree-ssa-loop-unswitch.c: Likewise.
13072 * tree-ssa-loop.c: Likewise.
13073 * tree-ssa-math-opts.c: Likewise.
13074 * tree-ssa-operands.c: Likewise.
13075 * tree-ssa-phiopt.c: Likewise.
13076 * tree-ssa-phiprop.c: Likewise.
13077 * tree-ssa-pre.c: Likewise.
13078 * tree-ssa-propagate.c: Likewise.
13079 * tree-ssa-reassoc.c: Likewise.
13080 * tree-ssa-sccvn.c: Likewise.
13081 * tree-ssa-scopedtables.c: Likewise.
13082 * tree-ssa-sink.c: Likewise.
13083 * tree-ssa-strlen.c: Likewise.
13084 * tree-ssa-structalias.c: Likewise.
13085 * tree-ssa-tail-merge.c: Likewise.
13086 * tree-ssa-ter.c: Likewise.
13087 * tree-ssa-threadedge.c: Likewise.
13088 * tree-ssa-threadupdate.c: Likewise.
13089 * tree-ssa-uncprop.c: Likewise.
13090 * tree-ssa-uninit.c: Likewise.
13091 * tree-ssa.c: Likewise.
13092 * tree-ssanames.c: Likewise.
13093 * tree-stdarg.c: Likewise.
13094 * tree-streamer-in.c: Likewise.
13095 * tree-streamer-out.c: Likewise.
13096 * tree-streamer.c: Likewise.
13097 * tree-switch-conversion.c: Likewise.
13098 * tree-tailcall.c: Likewise.
13099 * tree-vect-data-refs.c: Likewise.
13100 * tree-vect-generic.c: Likewise.
13101 * tree-vect-loop-manip.c: Likewise.
13102 * tree-vect-loop.c: Likewise.
13103 * tree-vect-patterns.c: Likewise.
13104 * tree-vect-slp.c: Likewise.
13105 * tree-vect-stmts.c: Likewise.
13106 * tree-vectorizer.c: Likewise.
13107 * tree-vrp.c: Likewise.
13108 * tree.c: Likewise.
13109 * tsan.c: Likewise.
13110 * ubsan.c: Likewise.
13111 * valtrack.c: Likewise.
13112 * value-prof.c: Likewise.
13113 * var-tracking.c: Likewise.
13114 * varasm.c: Likewise.
13115 * varpool.c: Likewise.
13116 * vmsdbgout.c: Likewise.
13117 * vtable-verify.c: Likewise.
13119 * wide-int.cc: Likewise.
13120 * xcoffout.c: Likewise.
13121 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13122 * common/common-targhooks.c: Likewise.
13123 * config/aarch64/aarch64-builtins.c: Likewise.
13124 * config/aarch64/aarch64.c: Likewise.
13125 * config/alpha/alpha.c: Likewise.
13126 * config/arc/arc.c: Likewise.
13127 * config/arm/aarch-common.c: Likewise.
13128 * config/arm/arm-builtins.c: Likewise.
13129 * config/arm/arm-c.c: Likewise.
13130 * config/arm/arm.c: Likewise.
13131 * config/avr/avr-c.c: Likewise.
13132 * config/avr/avr-log.c: Likewise.
13133 * config/avr/avr.c: Likewise.
13134 * config/bfin/bfin.c: Likewise.
13135 * config/c6x/c6x.c: Likewise.
13136 * config/cr16/cr16.c: Likewise.
13137 * config/cris/cris.c: Likewise.
13138 * config/darwin-c.c: Likewise.
13139 * config/darwin.c: Likewise.
13140 * config/default-c.c: Likewise.
13141 * config/epiphany/epiphany.c: Likewise.
13142 * config/epiphany/mode-switch-use.c: Likewise.
13143 * config/epiphany/resolve-sw-modes.c: Likewise.
13144 * config/fr30/fr30.c: Likewise.
13145 * config/frv/frv.c: Likewise.
13146 * config/ft32/ft32.c: Likewise.
13147 * config/glibc-c.c: Likewise.
13148 * config/h8300/h8300.c: Likewise.
13149 * config/i386/i386-c.c: Likewise.
13150 * config/i386/i386.c: Likewise.
13151 * config/i386/msformat-c.c: Likewise.
13152 * config/i386/winnt-cxx.c: Likewise.
13153 * config/i386/winnt-stubs.c: Likewise.
13154 * config/i386/winnt.c: Likewise.
13155 * config/ia64/ia64-c.c: Likewise.
13156 * config/ia64/ia64.c: Likewise.
13157 * config/iq2000/iq2000.c: Likewise.
13158 * config/lm32/lm32.c: Likewise.
13159 * config/m32c/m32c-pragma.c: Likewise.
13160 * config/m32c/m32c.c: Likewise.
13161 * config/m32r/m32r.c: Likewise.
13162 * config/m68k/m68k.c: Likewise.
13163 * config/mcore/mcore.c: Likewise.
13164 * config/mep/mep-pragma.c: Likewise.
13165 * config/mep/mep.c: Likewise.
13166 * config/microblaze/microblaze-c.c: Likewise.
13167 * config/microblaze/microblaze.c: Likewise.
13168 * config/mips/mips.c: Likewise.
13169 * config/mmix/mmix.c: Likewise.
13170 * config/mn10300/mn10300.c: Likewise.
13171 * config/moxie/moxie.c: Likewise.
13172 * config/msp430/msp430-c.c: Likewise.
13173 * config/msp430/msp430.c: Likewise.
13174 * config/nds32/nds32-cost.c: Likewise.
13175 * config/nds32/nds32-fp-as-gp.c: Likewise.
13176 * config/nds32/nds32-intrinsic.c: Likewise.
13177 * config/nds32/nds32-isr.c: Likewise.
13178 * config/nds32/nds32-md-auxiliary.c: Likewise.
13179 * config/nds32/nds32-memory-manipulation.c: Likewise.
13180 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13181 * config/nds32/nds32-predicates.c: Likewise.
13182 * config/nds32/nds32.c: Likewise.
13183 * config/nios2/nios2.c: Likewise.
13184 * config/nvptx/nvptx.c: Likewise.
13185 * config/pa/pa.c: Likewise.
13186 * config/pdp11/pdp11.c: Likewise.
13187 * config/rl78/rl78-c.c: Likewise.
13188 * config/rl78/rl78.c: Likewise.
13189 * config/rs6000/rs6000-c.c: Likewise.
13190 * config/rs6000/rs6000.c: Likewise.
13191 * config/rx/rx.c: Likewise.
13192 * config/s390/s390-c.c: Likewise.
13193 * config/s390/s390.c: Likewise.
13194 * config/sh/sh-c.c: Likewise.
13195 * config/sh/sh-mem.cc: Likewise.
13196 * config/sh/sh.c: Likewise.
13197 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13198 * config/sh/sh_treg_combine.cc: Likewise.
13199 * config/sol2-c.c: Likewise.
13200 * config/sol2-cxx.c: Likewise.
13201 * config/sol2-stubs.c: Likewise.
13202 * config/sol2.c: Likewise.
13203 * config/sparc/sparc-c.c: Likewise.
13204 * config/sparc/sparc.c: Likewise.
13205 * config/spu/spu-c.c: Likewise.
13206 * config/spu/spu.c: Likewise.
13207 * config/stormy16/stormy16.c: Likewise.
13208 * config/tilegx/mul-tables.c: Likewise.
13209 * config/tilegx/tilegx-c.c: Likewise.
13210 * config/tilegx/tilegx.c: Likewise.
13211 * config/tilepro/mul-tables.c: Likewise.
13212 * config/tilepro/tilepro-c.c: Likewise.
13213 * config/tilepro/tilepro.c: Likewise.
13214 * config/v850/v850-c.c: Likewise.
13215 * config/v850/v850.c: Likewise.
13216 * config/vax/vax.c: Likewise.
13217 * config/visium/visium.c: Likewise.
13218 * config/vms/vms-c.c: Likewise.
13219 * config/vms/vms.c: Likewise.
13220 * config/vxworks.c: Likewise.
13221 * config/winnt-c.c: Likewise.
13222 * config/xtensa/xtensa.c: Likewise.
13224 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13226 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13228 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13230 2015-06-17 Richard Biener <rguenther@suse.de>
13232 PR tree-optimization/66251
13233 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13234 stmts for SLP strided stores.
13237 2015-05-22 Richard Biener <rguenther@suse.de>
13239 PR tree-optimization/66251
13240 * tree-vect-stmts.c (vectorizable_conversion): Properly
13241 set STMT_VINFO_VEC_STMT even for the SLP case.
13243 2015-05-26 Michael Matz <matz@suse.de>
13245 PR middle-end/66251
13246 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13247 STMT_VINFO_VEC_STMT, also with SLP.
13249 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13252 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13253 (*avx_addsubv4df3_1s): Ditto.
13254 (*sse3_addsubv2df3_1): Ditto.
13255 (*sse3_addsubv2df3_1s): Ditto.
13256 (*avx_addsubv8sf3_1): Ditto.
13257 (*avx_addsubv8sf3_1s): Ditto.
13258 (*sse3_addsubv4sf3_1): Ditto.
13259 (*sse3_addsubv4sf3_1s): Ditto.
13261 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13263 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13264 (SYSROOT_SUFFIX_SPEC): Update.
13265 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13266 (STARTFILE_PREFIX_SPEC): Update.
13267 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13268 (MULTILIB_REQUIRED): New.
13269 (MULTILIB_OSDIRNAMES): New.
13270 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13271 (MULTILIB_REQUIRED): New.
13272 (MULTILIB_OSDIRNAMES): New.
13274 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13276 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13277 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13278 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13279 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13280 (AARCH64_FL_PAN): New.
13281 (AARCH64_FL_LOR): New.
13282 (AARCH64_FL_RDMA): New.
13283 (AARCH64_FL_FOR_ARCH8_1): New.
13284 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13285 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13287 2015-06-16 Martin Liska <mliska@suse.cz>
13289 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13290 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13293 2015-06-16 Richard Biener <rguenther@suse.de>
13295 * tree-vect-stmts.c (vectorizable_store): Adjust.
13296 (vectorizable_load): Likewise.
13297 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13299 (vect_create_data_ref_ptr): Likewise.
13300 (bump_vector_ptr): Adjust.
13302 2015-06-16 Richard Biener <rguenther@suse.de>
13304 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13305 with the first element if this is grouped loads.
13307 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13309 * config/arm/arm-protos.h (struct tune_params): Rename
13310 log_op_non_sc to log_op_non_short_circuit, and rename enum
13311 values to expand SC to SHORT_CIRCUIT.
13312 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13313 to LOG_OP_NON_SHORT_CIRCUIT.
13314 (arm_fastmul_tune):Likewise
13315 (arm_strongarm_tune): Likewise.
13316 (arm_xscale_tune): Likewise.
13317 (arm_9e_tune): Likewise.
13318 (arm_marvell_pj4_tune): Likewise.
13319 (arm_v6t2_tune): Likewise.
13320 (arm_cortex_tune): Likewise.
13321 (arm_cortex_a8_tune): Likewise.
13322 (arm_cortex_a7_tune): Likewise.
13323 (arm_cortex_a15_tune): Likewise.
13324 (arm_cortex_a53_tune): Likewise.
13325 (arm_cortex_a57_tune): Likewise.
13326 (arm_xgene1_tune): Likewise.
13327 (arm_cortex_a5_tune): Likewise.
13328 (arm_cortex_a9_tune): Likewise.
13329 (arm_cortex_a12_tune): Likewise.
13330 (arm_v7m_tune): Likewise.
13331 (arm_cortex_m7_tune): Likewise.
13332 (arm_v6m_tune): Likewise.
13333 (arm_fa726te_tune): Likewise.
13335 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13337 * altivec.md: Delete UNSPEC_VMLADDUHM.
13338 (mulv4si3_p8): New pattern.
13339 (mulv4si3): Use it for POWER8.
13340 (mulv8hi3): Use vmladduhm with zero addend.
13341 (altivec_vmladduhm): Descriptive RTL.
13343 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13345 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13346 to use neon_move instead of mov_imm.
13347 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13348 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13350 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13351 aarch64_float_const_zero_rtx_p check before TFmode check.
13352 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13354 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13355 code and attributes to match. Change condition from register_operand
13356 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13357 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13360 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13363 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13364 there is no parent.
13366 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13368 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13369 HOST_WIDE_INT parameter.
13371 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13374 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13375 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13377 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13379 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13381 * rtl.h (classify_insn): Declare.
13382 * emit-rtl.c (classify_insn): Move to...
13383 * rtl.c: ...here and add generator support.
13384 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13385 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13386 * genemit.c (gen_emit_seq): New function.
13387 (gen_expand, gen_split): Use it.
13389 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13391 * tree.c (make_vector_stat): Fix comment to state that the
13392 function returns a VECTOR_CST.
13394 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13396 * gensupport.h (add_implicit_parallel): Declare.
13397 * genrecog.c (add_implicit_parallel): Move to...
13398 * gensupport.c (add_implicit_parallel): ...here.
13399 (process_one_cond_exec): Use it.
13400 * genemit.c (gen_insn): Likewise.
13402 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13405 * passes.c (rest_of_decl_compilation): Do not register globals for
13406 early debug if they are declared in built-ins.
13408 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13410 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13412 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13414 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13416 (noce_try_cmove_arith): Likewise.
13417 (noce_get_alt_condition): Likewise.
13419 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13421 * common/config/i386/i386-common.c
13422 (OPTION_MASK_ISA_MWAITX_SET): New.
13423 (ix86_handle_option): Handle mwaitx.
13424 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13425 (x86_64-*-*): Likewise.
13426 * config/i386/mwaitxintrin.h: New header.
13427 * config/i386/cpuid.h (bit_MWAITX): Define.
13428 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13430 * config/i386/i386.opt (mwaitx): New.
13431 * config/i386/i386-builtin-types.def
13432 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13433 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13434 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13436 (ix86_option_override_internal): Handle new option.
13437 (processor_alias_table): Added PTA_MWAITX.
13438 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13439 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13440 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13441 IX86_BUILTIN_MONITORX built-ins.
13442 * config/i386/i386.h (TARGET_MWAITX): New.
13443 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13445 (mwaitx): New pattern.
13446 (monitorx_<mode>): New pattern.
13447 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13448 * doc/extend.texi: Document monitorx and mwaitx builtins.
13449 * doc/invoke.texi: Document -mmwaitx option.
13451 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13453 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13454 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13456 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13458 * dbxout.c (xcoff_debug_hooks): Provide a function for
13459 register_main_translation_unit hook.
13461 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13463 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13464 variants cases from switch.
13465 (rs6000_post_atomic_barrier): Same.
13466 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13467 (rs6000_expand_atomic_exchange): Same.
13468 (rs6000_expand_atomic_op): Same.
13469 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13470 SYNC variants cases from switch.
13471 (atomic_load): Same.
13472 (atomic_store): Same.
13474 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13476 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13477 CONST_INT for goto.
13479 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13482 * dwarf2out.c (check_die): Check for common duplicate attributes.
13483 (add_location_or_const_value_attribute): Do not add duplicate
13485 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13487 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13488 (gen_type_die_with_usage): Call check_die.
13489 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13491 2015-06-11 Jason Merrill <jason@redhat.com>
13493 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13496 2015-06-11 Marek Polacek <polacek@redhat.com>
13498 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13500 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13503 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13504 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13505 (*addx_extend_sp32): Fix pasto.
13506 (*subx_extend): Rename into...
13507 (*subx_extend_sp32): ...this.
13508 (*adddi3_extend_sp32): Add earlyclobber.
13509 (*subdi3_insn_sp32): Likewise.
13510 (*subdi3_extend_sp32): Likewise.
13511 (*and_not_di_sp32): Likewise.
13512 (*or_not_di_sp32): Likewise.
13513 (*xor_not_di_sp32): Likewise.
13514 (*negdi2_sp32): Likewise.
13515 (*one_cmpldi2_sp32): Likewise.
13517 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13519 * debug.h (struct gcc_debug_hooks): Add a
13520 register_main_translation_unit hook.
13521 * debug.c (do_nothing_debug_hooks): Provide a function for this
13523 * dbxout.c (dbx_debug_hooks): Likewise.
13524 * sdbout.c (sdb_debug_hooks): Likewise.
13525 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13526 * dwarf2out.c (main_translation_unit): New global variable.
13527 (dwarf2out_register_main_translation_unit): New function
13528 implementing the new hook.
13529 (dwarf2_debug_hooks): Assign
13530 dwarf2out_register_main_translation_unit to this new hook.
13531 (dwarf2out_init): Associate any main translation unit to
13534 2015-06-11 Marek Polacek <polacek@redhat.com>
13536 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13538 2015-06-11 Marek Polacek <polacek@redhat.com>
13540 * match.pd: Use single_use throughout.
13542 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13544 * config/arm/arm.c (arm_option_params_internal): When optimising
13545 for speed set max_insns_skipped when arm_restrict_it.
13547 2015-06-11 Christian Bruel <christian.bruel@st.com>
13550 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13552 (arm_cpu_builtins): New function.
13553 (arm_pragma_target_parse): Call arm_cpu_builtins.
13554 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13555 (arm_register_target_pragmas): Likewise.
13556 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13557 Call arm_register_target_pragmas.
13558 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13559 (arm_pragma_target_parse): Likewise.
13561 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13563 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13564 of the second operand.
13566 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13569 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13570 to prepare mask operand for AVX512 modes.
13572 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13575 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13576 if you use a constraint that targets a VSX register, you must use
13577 %x<n> in the template.
13579 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13581 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13582 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13583 (define_insn "trap"): New definition.
13585 2015-06-10 Richard Biener <rguenther@suse.de>
13587 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13589 (vect_supported_load_permutation_p): ... here. Handle
13590 supportable permutations in reductions.
13591 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13592 for vectorizing strided group loads.
13594 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13597 * config/i386/i386.c (ix86_split_long_move): For collisions
13598 involving direct tls segment refs, move the UNSPEC_TP possibly
13599 wrapped in ZERO_EXTEND out of the address for lea, to each of
13602 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13604 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13605 dmb sy. Adjust tabs.
13607 2015-06-10 Tom de Vries <tom@codesourcery.com>
13609 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13611 2015-06-10 Martin Liska <mliska@suse.cz>
13614 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13615 all enum values in mem_alloc_origin.
13616 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13618 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13619 * bitmap.c (bitmap_register): Likewise.
13620 (dump_bitmap_statistics): Likewise.
13621 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13622 (ggc_record_overhead): Likewise.
13623 * hash-map.h: Likewise.
13624 * hash-set.h: Likewise.
13625 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13626 * hash-table.h: Likewise.
13627 * vec.c (vec_prefix::register_overhead): Likewise.
13628 (vec_prefix::release_overhead): Likewise.
13629 (dump_vec_loc_statistics): Likewise.
13631 2015-06-09 Christian Bruel <christian.bruel@st.com>
13634 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13635 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13636 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13637 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13638 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13639 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13640 (arm_valid_target_attribute_p): Likewise.
13641 (arm_set_current_function, arm_can_inline_p): Likewise.
13642 (arm_valid_target_attribute_rec): Likewise.
13643 (arm_previous_fndecl): New variable.
13644 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13645 (TARGET_CAN_INLINE_P): Define.
13646 (arm_asm_trampoline_template): Emit mode.
13647 (arm_file_start): Don't set unified syntax.
13648 (arm_declare_function_name): Set unified syntax and mode.
13649 (arm_option_override): Init target_option_default_node.
13650 and target_option_current_node.
13651 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13652 (*call_symbol): Likewise.
13653 * doc/extend.texi: Document ARM/Thumb target attribute.
13654 * doc/invoke.texi: Likewise.
13656 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13659 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13660 PR rtl-optimization/64164
13661 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13662 * tree-ssa-copyrename.c: Removed.
13663 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13664 -ftree-coalesce-vars.
13665 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13666 * common.opt (ftree-copyrename): Ignore.
13667 (ftree-coalesce-inlined-vars): Likewise.
13668 * doc/invoke.texi: Remove the ignored options above.
13669 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13670 * tree-ssa-coalesce.h: ... here.
13671 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13672 headers required by it.
13673 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13674 across variables when flag_tree_coalesce_vars. Check register
13675 use and promoted modes to allow coalescing. Moved to
13676 tree-ssa-coalesce.c.
13677 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13678 with its member functions to tree-ssa-coalesce.c.
13679 (var_map_base_init): Likewise. Renamed to
13680 compute_samebase_partition_bases.
13681 (partition_view_normal): Drop want_bases parameter.
13682 (partition_view_bitmap): Likewise.
13683 * tree-ssa-live.h: Adjust declarations.
13684 * tree-ssa-coalesce.c: Include explow.h.
13685 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13686 default defs at the entry point.
13687 (dump_part_var_map): New.
13688 (compute_optimized_partition_bases): New, called by...
13689 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13690 of compute_samebase_partition_bases. Adjust.
13691 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13692 * cfgexpand.c (leader_merge): New.
13693 (get_rtl_for_parm_ssa_default_def): New.
13694 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13695 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13696 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13697 redundant MEM attr setting.
13698 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13700 (expand_one_stack_var): ... this. New wrapper to check and
13701 skip already expanded SSA partitions.
13702 (record_alignment_for_reg_var): New, factored out of...
13703 (expand_one_var): ... this.
13704 (expand_one_ssa_partition): New.
13705 (adjust_one_expanded_partition_var): New.
13706 (expand_one_register_var): Check and skip already expanded SSA
13708 (expand_used_vars): Don't create DECLs for anonymous SSA
13709 names. Expand all SSA partitions, then adjust all SSA names.
13710 (pass::execute): Replace the loops that set
13711 SA.partition_to_pseudo from partition leaders and cleared
13712 DECL_RTL for multi-location variables, and that which used to
13713 rename vars and set attrs, with one that clears DECL_RTL and
13714 checks that PARMs and RESULTs default_defs match DECL_RTL.
13715 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13716 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13717 * explow.c (promote_ssa_mode): New.
13718 * explow.h (promote_ssa_mode): Declare.
13719 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13720 * function.c: Include cfgexpand.h.
13721 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13722 (use_register_for_parm_decl): Wrapper for the above to
13723 special-case the result_ptr.
13724 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13725 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13726 multiple locations.
13727 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13728 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13729 (assign_parm_setup_block): Prefer SSA-assigned location.
13730 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13731 if stack_parm is NULL.
13732 (assign_parm_setup_stack): Prefer SSA-assigned location.
13733 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13734 rtl before testing for pointer bounds. Special-case result_ptr.
13735 (expand_function_start): Maybe reset DECL_RTL of result.
13736 Prefer SSA-assigned location for result and static chain.
13737 Factor out DECL_RESULT and SET_DECL_RTL.
13738 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13739 anonymous SSA names. Use promote_ssa_mode.
13740 (get_temp_reg): Likewise.
13741 (remove_ssa_form): Adjust.
13742 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13743 and get its reg_usage for reg invalidation.
13744 (compute_bb_dataflow): Pass it insn.
13745 (emit_notes_in_bb): Likewise.
13746 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13747 fail assert on conversion between unsigned types.
13749 2015-06-09 Tom de Vries <tom@codesourcery.com>
13751 PR tree-optimization/65460
13752 * omp-low.c (expand_omp_target): Set parallelized_function on
13753 cgraph_node for child_fn.
13755 2015-06-09 Tom de Vries <tom@codesourcery.com>
13757 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13758 parallelized_function before add_new_function.
13760 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13762 * gcc-plugin.h: Move decls to plugin.h and include it.
13763 * plugin.h: Relocate decls from gcc-plugin.h
13764 * ggc-page.c: Include required header files.
13765 * passes.c: Likewise.
13766 * cgraphunit.c: Likewise.
13768 2015-06-09 Tom de Vries <tom@codesourcery.com>
13770 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13772 2015-06-09 Jason Merrill <jason@redhat.com>
13775 * toplev.c (check_global_declaration): Don't warn about a clone.
13777 2015-06-09 Marek Polacek <polacek@redhat.com>
13779 PR tree-optimization/66299
13780 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13781 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13784 2015-06-09 Richard Biener <rguenther@suse.de>
13786 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13787 (vect_analyze_slp_instance): Instead do not falsely drop
13790 2015-06-09 Richard Biener <rguenther@suse.de>
13792 PR middle-end/66423
13793 * match.pd: Handle A % (unsigned)(1 << B).
13795 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13797 * varasm.c (output_object_block_htab): Remove.
13798 (output_object_block_compare): New.
13799 (output_object_blocks): Sort named object_blocks before outputting
13802 2015-06-09 Richard Biener <rguenther@suse.de>
13804 PR tree-optimization/66419
13805 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13806 consider GROUP_GAP when detecting a perfect subchain.
13808 2015-06-09 Nick Clifton <nickc@redhat.com>
13810 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13811 place read only data in the .frodata section.
13813 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13815 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13816 (atomic_store<mode>): Likewise.
13818 2015-06-09 Richard Biener <rguenther@suse.de>
13820 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13822 2015-06-09 Richard Biener <rguenther@suse.de>
13824 PR middle-end/66413
13825 * tree-inline.c (insert_init_debug_bind): Unshare value.
13827 2015-06-09 Richard Biener <rguenther@suse.de>
13829 PR tree-optimization/66396
13830 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13831 Rename virtual operands.
13833 2015-06-09 Tom de Vries <tom@codesourcery.com>
13835 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13836 always return false.
13838 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13840 PR rtl-optimization/64164
13841 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13842 * tree-ssa-copyrename.c: Removed.
13843 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13844 -ftree-coalesce-vars.
13845 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13846 * common.opt (ftree-copyrename): Ignore.
13847 (ftree-coalesce-inlined-vars): Likewise.
13848 * doc/invoke.texi: Remove the ignored options above.
13849 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13850 * tree-ssa-coalesce.h: ... here.
13851 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13852 headers required by it.
13853 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13854 across variables when flag_tree_coalesce_vars. Check register
13855 use and promoted modes to allow coalescing. Moved to
13856 tree-ssa-coalesce.c.
13857 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13858 with its member functions to tree-ssa-coalesce.c.
13859 (var_map_base_init): Likewise. Renamed to
13860 compute_samebase_partition_bases.
13861 (partition_view_normal): Drop want_bases parameter.
13862 (partition_view_bitmap): Likewise.
13863 * tree-ssa-live.h: Adjust declarations.
13864 * tree-ssa-coalesce.c: Include explow.h.
13865 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13866 default defs at the entry point.
13867 (dump_part_var_map): New.
13868 (compute_optimized_partition_bases): New, called by...
13869 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13870 of compute_samebase_partition_bases. Adjust.
13871 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13872 * cfgexpand.c (leader_merge): New.
13873 (get_rtl_for_parm_ssa_default_def): New.
13874 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13875 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13876 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13877 redundant MEM attr setting.
13878 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13880 (expand_one_stack_var): ... this. New wrapper to check and
13881 skip already expanded SSA partitions.
13882 (record_alignment_for_reg_var): New, factored out of...
13883 (expand_one_var): ... this.
13884 (expand_one_ssa_partition): New.
13885 (adjust_one_expanded_partition_var): New.
13886 (expand_one_register_var): Check and skip already expanded SSA
13888 (expand_used_vars): Don't create DECLs for anonymous SSA
13889 names. Expand all SSA partitions, then adjust all SSA names.
13890 (pass::execute): Replace the loops that set
13891 SA.partition_to_pseudo from partition leaders and cleared
13892 DECL_RTL for multi-location variables, and that which used to
13893 rename vars and set attrs, with one that clears DECL_RTL and
13894 checks that PARMs and RESULTs default_defs match DECL_RTL.
13895 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13896 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13897 * explow.c (promote_ssa_mode): New.
13898 * explow.h (promote_ssa_mode): Declare.
13899 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13900 * function.c: Include cfgexpand.h.
13901 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13902 (use_register_for_parm_decl): Wrapper for the above to
13903 special-case the result_ptr.
13904 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13905 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13906 multiple locations.
13907 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13908 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13909 (assign_parm_setup_block): Prefer SSA-assigned location.
13910 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13911 if stack_parm is NULL.
13912 (assign_parm_setup_stack): Prefer SSA-assigned location.
13913 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13914 rtl before testing for pointer bounds. Special-case result_ptr.
13915 (expand_function_start): Maybe reset DECL_RTL of result.
13916 Prefer SSA-assigned location for result and static chain.
13917 Factor out DECL_RESULT and SET_DECL_RTL.
13918 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13919 anonymous SSA names. Use promote_ssa_mode.
13920 (get_temp_reg): Likewise.
13921 (remove_ssa_form): Adjust.
13922 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13923 and get its reg_usage for reg invalidation.
13924 (compute_bb_dataflow): Pass it insn.
13925 (emit_notes_in_bb): Likewise.
13926 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13927 fail assert on conversion between unsigned types.
13929 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13932 * tree-inline.c (reset_debug_binding): New.
13933 (reset_debug_bindings): Likewise.
13934 (expand_call_inline): Call it.
13936 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13938 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13941 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13943 * lto-streamer-out.c (lto_output_location): Stream
13944 reserved locations correctly.
13945 * lto-streamer-in.c (lto_output_location): Likewise.
13947 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13949 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13950 * ggc.h: Don't include statistics.h>
13951 * hash-map.h: Remove all includes.
13952 * hash-set.h: Likewise.
13953 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13954 the include list. Remove <new>.
13955 * inchash.h: Remove all includes.
13956 * mem-stats.h: Likewise.
13957 * vec.h: No special processing for generators or ggc.
13958 * alias.c : Adjust include files.
13959 * alloc-pool.c : Likewise.
13960 * alloc-pool.h : Likewise.
13961 * asan.c : Likewise.
13962 * attribs.c : Likewise.
13963 * auto-inc-dec.c : Likewise.
13964 * auto-profile.c : Likewise.
13965 * bb-reorder.c : Likewise.
13966 * bitmap.c : Likewise.
13967 * bitmap.h : Likewise.
13968 * bt-load.c : Likewise.
13969 * builtins.c : Likewise.
13970 * caller-save.c : Likewise.
13971 * calls.c : Likewise.
13972 * ccmp.c : Likewise.
13973 * cfg.c : Likewise.
13974 * cfganal.c : Likewise.
13975 * cfgbuild.c : Likewise.
13976 * cfgcleanup.c : Likewise.
13977 * cfgexpand.c : Likewise.
13978 * cfghooks.c : Likewise.
13979 * cfgloop.c : Likewise.
13980 * cfgloop.h : Likewise.
13981 * cfgloopanal.c : Likewise.
13982 * cfgloopmanip.c : Likewise.
13983 * cfgrtl.c : Likewise.
13984 * cgraph.c : Likewise.
13985 * cgraphbuild.c : Likewise.
13986 * cgraphclones.c : Likewise.
13987 * cgraphunit.c : Likewise.
13988 * cilk-common.c : Likewise.
13989 * combine-stack-adj.c : Likewise.
13990 * combine.c : Likewise.
13991 * compare-elim.c : Likewise.
13992 * context.c : Likewise.
13993 * convert.c : Likewise.
13994 * coverage.c : Likewise.
13995 * cppbuiltin.c : Likewise.
13996 * cprop.c : Likewise.
13997 * cse.c : Likewise.
13998 * cselib.c : Likewise.
13999 * data-streamer-in.c : Likewise.
14000 * data-streamer-out.c : Likewise.
14001 * data-streamer.c : Likewise.
14002 * data-streamer.h : Likewise.
14003 * dbxout.c : Likewise.
14004 * dce.c : Likewise.
14005 * ddg.c : Likewise.
14006 * debug.c : Likewise.
14007 * df-core.c : Likewise.
14008 * df-problems.c : Likewise.
14009 * df-scan.c : Likewise.
14011 * dfp.c : Likewise.
14012 * dojump.c : Likewise.
14013 * dominance.c : Likewise.
14014 * domwalk.c : Likewise.
14015 * double-int.c : Likewise.
14016 * dse.c : Likewise.
14017 * dumpfile.c : Likewise.
14018 * dwarf2asm.c : Likewise.
14019 * dwarf2cfi.c : Likewise.
14020 * dwarf2out.c : Likewise.
14021 * emit-rtl.c : Likewise.
14022 * et-forest.c : Likewise.
14023 * except.c : Likewise.
14024 * except.h : Likewise.
14025 * explow.c : Likewise.
14026 * expmed.c : Likewise.
14027 * expr.c : Likewise.
14028 * final.c : Likewise.
14029 * fixed-value.c : Likewise.
14030 * fold-const.c : Likewise.
14031 * function.c : Likewise.
14032 * fwprop.c : Likewise.
14033 * gcc-plugin.h : Likewise.
14034 * gcc.c : Likewise.
14035 * gcse-common.c : Likewise.
14036 * gcse.c : Likewise.
14037 * genattrtab.c : Likewise.
14038 * genautomata.c : Likewise.
14039 * genconditions.c : Likewise.
14040 * genemit.c : Likewise.
14041 * generic-match-head.c : Likewise.
14042 * genextract.c : Likewise.
14043 * gengtype-state.c : Likewise.
14044 * gengtype.c : Likewise.
14045 * genhooks.c : Likewise.
14046 * genmatch.c : Likewise.
14047 * genmodes.c : Likewise.
14048 * genrecog.c : Likewise.
14049 * gensupport.c : Likewise.
14050 * ggc-common.c : Likewise.
14051 * ggc-internal.h : Likewise.
14052 * ggc-none.c : Likewise.
14053 * ggc-page.c : Likewise.
14054 * gimple-builder.c : Likewise.
14055 * gimple-expr.c : Likewise.
14056 * gimple-fold.c : Likewise.
14057 * gimple-iterator.c : Likewise.
14058 * gimple-low.c : Likewise.
14059 * gimple-match-head.c : Likewise.
14060 * gimple-pretty-print.c : Likewise.
14061 * gimple-ssa-isolate-paths.c : Likewise.
14062 * gimple-ssa-strength-reduction.c : Likewise.
14063 * gimple-ssa.h : Likewise.
14064 * gimple-streamer-in.c : Likewise.
14065 * gimple-streamer-out.c : Likewise.
14066 * gimple-streamer.h : Likewise.
14067 * gimple-walk.c : Likewise.
14068 * gimple.c : Likewise.
14069 * gimplify-me.c : Likewise.
14070 * gimplify.c : Likewise.
14071 * godump.c : Likewise.
14072 * graph.c : Likewise.
14073 * graphds.c : Likewise.
14074 * graphite-blocking.c : Likewise.
14075 * graphite-dependences.c : Likewise.
14076 * graphite-interchange.c : Likewise.
14077 * graphite-isl-ast-to-gimple.c : Likewise.
14078 * graphite-optimize-isl.c : Likewise.
14079 * graphite-poly.c : Likewise.
14080 * graphite-scop-detection.c : Likewise.
14081 * graphite-sese-to-poly.c : Likewise.
14082 * graphite.c : Likewise.
14083 * haifa-sched.c : Likewise.
14084 * hard-reg-set.h : Likewise.
14085 * hw-doloop.c : Likewise.
14086 * ifcvt.c : Likewise.
14087 * inchash.c : Likewise.
14088 * incpath.c : Likewise.
14089 * init-regs.c : Likewise.
14090 * input.c : Likewise.
14091 * internal-fn.c : Likewise.
14092 * ipa-chkp.c : Likewise.
14093 * ipa-comdats.c : Likewise.
14094 * ipa-cp.c : Likewise.
14095 * ipa-devirt.c : Likewise.
14096 * ipa-icf-gimple.c : Likewise.
14097 * ipa-icf.c : Likewise.
14098 * ipa-inline-analysis.c : Likewise.
14099 * ipa-inline-transform.c : Likewise.
14100 * ipa-inline.c : Likewise.
14101 * ipa-polymorphic-call.c : Likewise.
14102 * ipa-profile.c : Likewise.
14103 * ipa-prop.c : Likewise.
14104 * ipa-pure-const.c : Likewise.
14105 * ipa-ref.c : Likewise.
14106 * ipa-reference.c : Likewise.
14107 * ipa-split.c : Likewise.
14108 * ipa-utils.c : Likewise.
14109 * ipa-visibility.c : Likewise.
14110 * ipa.c : Likewise.
14111 * ira-build.c : Likewise.
14112 * ira-color.c : Likewise.
14113 * ira-conflicts.c : Likewise.
14114 * ira-costs.c : Likewise.
14115 * ira-emit.c : Likewise.
14116 * ira-lives.c : Likewise.
14117 * ira.c : Likewise.
14118 * jump.c : Likewise.
14119 * langhooks.c : Likewise.
14120 * lcm.c : Likewise.
14121 * libfuncs.h : Likewise.
14122 * lists.c : Likewise.
14123 * loop-doloop.c : Likewise.
14124 * loop-init.c : Likewise.
14125 * loop-invariant.c : Likewise.
14126 * loop-iv.c : Likewise.
14127 * loop-unroll.c : Likewise.
14128 * lower-subreg.c : Likewise.
14129 * lra-assigns.c : Likewise.
14130 * lra-coalesce.c : Likewise.
14131 * lra-constraints.c : Likewise.
14132 * lra-eliminations.c : Likewise.
14133 * lra-lives.c : Likewise.
14134 * lra-remat.c : Likewise.
14135 * lra-spills.c : Likewise.
14136 * lra.c : Likewise.
14137 * lto-cgraph.c : Likewise.
14138 * lto-compress.c : Likewise.
14139 * lto-opts.c : Likewise.
14140 * lto-section-in.c : Likewise.
14141 * lto-section-out.c : Likewise.
14142 * lto-streamer-in.c : Likewise.
14143 * lto-streamer-out.c : Likewise.
14144 * lto-streamer.c : Likewise.
14145 * lto-streamer.h : Likewise.
14146 * mcf.c : Likewise.
14147 * mode-switching.c : Likewise.
14148 * modulo-sched.c : Likewise.
14149 * omega.c : Likewise.
14150 * omp-low.c : Likewise.
14151 * optabs.c : Likewise.
14152 * opts-global.c : Likewise.
14153 * opts.h : Likewise.
14154 * passes.c : Likewise.
14155 * plugin.c : Likewise.
14156 * postreload-gcse.c : Likewise.
14157 * postreload.c : Likewise.
14158 * predict.c : Likewise.
14159 * print-rtl.c : Likewise.
14160 * print-tree.c : Likewise.
14161 * profile.c : Likewise.
14162 * read-md.c : Likewise.
14163 * read-md.h : Likewise.
14164 * read-rtl.c : Likewise.
14165 * real.c : Likewise.
14166 * realmpfr.c : Likewise.
14167 * recog.c : Likewise.
14168 * ree.c : Likewise.
14169 * reg-stack.c : Likewise.
14170 * regcprop.c : Likewise.
14171 * reginfo.c : Likewise.
14172 * regrename.c : Likewise.
14173 * regstat.c : Likewise.
14174 * reload.c : Likewise.
14175 * reload1.c : Likewise.
14176 * reorg.c : Likewise.
14177 * resource.c : Likewise.
14178 * rtl-chkp.c : Likewise.
14179 * rtl.c : Likewise.
14180 * rtl.h : Likewise.
14181 * rtlanal.c : Likewise.
14182 * rtlhash.c : Likewise.
14183 * rtlhash.h : Likewise.
14184 * rtlhooks.c : Likewise.
14185 * sanopt.c : Likewise.
14186 * sched-deps.c : Likewise.
14187 * sched-ebb.c : Likewise.
14188 * sched-rgn.c : Likewise.
14189 * sched-vis.c : Likewise.
14190 * sdbout.c : Likewise.
14191 * sel-sched-dump.c : Likewise.
14192 * sel-sched-ir.c : Likewise.
14193 * sel-sched-ir.h : Likewise.
14194 * sel-sched.c : Likewise.
14195 * sese.c : Likewise.
14196 * shrink-wrap.c : Likewise.
14197 * shrink-wrap.h : Likewise.
14198 * simplify-rtx.c : Likewise.
14199 * stack-ptr-mod.c : Likewise.
14200 * statistics.c : Likewise.
14201 * stmt.c : Likewise.
14202 * stor-layout.c : Likewise.
14203 * store-motion.c : Likewise.
14204 * stringpool.c : Likewise.
14205 * symtab.c : Likewise.
14206 * target-globals.c : Likewise.
14207 * targhooks.c : Likewise.
14208 * tlink.c : Likewise.
14209 * toplev.c : Likewise.
14210 * tracer.c : Likewise.
14211 * trans-mem.c : Likewise.
14212 * tree-affine.c : Likewise.
14213 * tree-affine.h : Likewise.
14214 * tree-browser.c : Likewise.
14215 * tree-call-cdce.c : Likewise.
14216 * tree-cfg.c : Likewise.
14217 * tree-cfgcleanup.c : Likewise.
14218 * tree-chkp-opt.c : Likewise.
14219 * tree-chkp.c : Likewise.
14220 * tree-chrec.c : Likewise.
14221 * tree-complex.c : Likewise.
14222 * tree-data-ref.c : Likewise.
14223 * tree-dfa.c : Likewise.
14224 * tree-diagnostic.c : Likewise.
14225 * tree-dump.c : Likewise.
14226 * tree-eh.c : Likewise.
14227 * tree-eh.h : Likewise.
14228 * tree-emutls.c : Likewise.
14229 * tree-hasher.h : Likewise.
14230 * tree-if-conv.c : Likewise.
14231 * tree-inline.c : Likewise.
14232 * tree-inline.h : Likewise.
14233 * tree-into-ssa.c : Likewise.
14234 * tree-iterator.c : Likewise.
14235 * tree-loop-distribution.c : Likewise.
14236 * tree-nested.c : Likewise.
14237 * tree-nrv.c : Likewise.
14238 * tree-object-size.c : Likewise.
14239 * tree-outof-ssa.c : Likewise.
14240 * tree-parloops.c : Likewise.
14241 * tree-phinodes.c : Likewise.
14242 * tree-predcom.c : Likewise.
14243 * tree-pretty-print.c : Likewise.
14244 * tree-profile.c : Likewise.
14245 * tree-scalar-evolution.c : Likewise.
14246 * tree-sra.c : Likewise.
14247 * tree-ssa-address.c : Likewise.
14248 * tree-ssa-alias.c : Likewise.
14249 * tree-ssa-ccp.c : Likewise.
14250 * tree-ssa-coalesce.c : Likewise.
14251 * tree-ssa-copy.c : Likewise.
14252 * tree-ssa-copyrename.c : Likewise.
14253 * tree-ssa-dce.c : Likewise.
14254 * tree-ssa-dom.c : Likewise.
14255 * tree-ssa-dse.c : Likewise.
14256 * tree-ssa-forwprop.c : Likewise.
14257 * tree-ssa-ifcombine.c : Likewise.
14258 * tree-ssa-live.c : Likewise.
14259 * tree-ssa-loop-ch.c : Likewise.
14260 * tree-ssa-loop-im.c : Likewise.
14261 * tree-ssa-loop-ivcanon.c : Likewise.
14262 * tree-ssa-loop-ivopts.c : Likewise.
14263 * tree-ssa-loop-manip.c : Likewise.
14264 * tree-ssa-loop-niter.c : Likewise.
14265 * tree-ssa-loop-prefetch.c : Likewise.
14266 * tree-ssa-loop-unswitch.c : Likewise.
14267 * tree-ssa-loop.c : Likewise.
14268 * tree-ssa-math-opts.c : Likewise.
14269 * tree-ssa-operands.c : Likewise.
14270 * tree-ssa-phiopt.c : Likewise.
14271 * tree-ssa-phiprop.c : Likewise.
14272 * tree-ssa-pre.c : Likewise.
14273 * tree-ssa-propagate.c : Likewise.
14274 * tree-ssa-reassoc.c : Likewise.
14275 * tree-ssa-sccvn.c : Likewise.
14276 * tree-ssa-scopedtables.c : Likewise.
14277 * tree-ssa-sink.c : Likewise.
14278 * tree-ssa-strlen.c : Likewise.
14279 * tree-ssa-structalias.c : Likewise.
14280 * tree-ssa-tail-merge.c : Likewise.
14281 * tree-ssa-ter.c : Likewise.
14282 * tree-ssa-threadedge.c : Likewise.
14283 * tree-ssa-threadupdate.c : Likewise.
14284 * tree-ssa-uncprop.c : Likewise.
14285 * tree-ssa-uninit.c : Likewise.
14286 * tree-ssa.c : Likewise.
14287 * tree-ssanames.c : Likewise.
14288 * tree-stdarg.c : Likewise.
14289 * tree-streamer-in.c : Likewise.
14290 * tree-streamer-out.c : Likewise.
14291 * tree-streamer.c : Likewise.
14292 * tree-streamer.h : Likewise.
14293 * tree-switch-conversion.c : Likewise.
14294 * tree-tailcall.c : Likewise.
14295 * tree-vect-data-refs.c : Likewise.
14296 * tree-vect-generic.c : Likewise.
14297 * tree-vect-loop-manip.c : Likewise.
14298 * tree-vect-loop.c : Likewise.
14299 * tree-vect-patterns.c : Likewise.
14300 * tree-vect-slp.c : Likewise.
14301 * tree-vect-stmts.c : Likewise.
14302 * tree-vectorizer.c : Likewise.
14303 * tree-vectorizer.h : Likewise.
14304 * tree-vrp.c : Likewise.
14305 * tree.c : Likewise.
14306 * tsan.c : Likewise.
14307 * ubsan.c : Likewise.
14308 * valtrack.c : Likewise.
14309 * valtrack.h : Likewise.
14310 * value-prof.c : Likewise.
14311 * var-tracking.c : Likewise.
14312 * varasm.c : Likewise.
14313 * varpool.c : Likewise.
14315 * vmsdbgout.c : Likewise.
14316 * vtable-verify.c : Likewise.
14317 * vtable-verify.h : Likewise.
14318 * web.c : Likewise.
14319 * wide-int.cc : Likewise.
14320 * xcoffout.c : Likewise.
14321 * config/aarch64/aarch64-builtins.c : Likewise.
14322 * config/aarch64/aarch64.c : Likewise.
14323 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14324 * config/alpha/alpha.c : Likewise.
14325 * config/arc/arc.c : Likewise.
14326 * config/arm/aarch-common.c : Likewise.
14327 * config/arm/arm-builtins.c : Likewise.
14328 * config/arm/arm-c.c : Likewise.
14329 * config/arm/arm.c : Likewise.
14330 * config/avr/avr-c.c : Likewise.
14331 * config/avr/avr-log.c : Likewise.
14332 * config/avr/avr.c : Likewise.
14333 * config/bfin/bfin.c : Likewise.
14334 * config/c6x/c6x.c : Likewise.
14335 * config/cr16/cr16.c : Likewise.
14336 * config/cris/cris.c : Likewise.
14337 * config/darwin-c.c : Likewise.
14338 * config/darwin.c : Likewise.
14339 * config/default-c.c : Likewise.
14340 * config/epiphany/epiphany.c : Likewise.
14341 * config/epiphany/mode-switch-use.c : Likewise.
14342 * config/epiphany/resolve-sw-modes.c : Likewise.
14343 * config/fr30/fr30.c : Likewise.
14344 * config/frv/frv.c : Likewise.
14345 * config/ft32/ft32.c : Likewise.
14346 * config/glibc-c.c : Likewise.
14347 * config/h8300/h8300.c : Likewise.
14348 * config/i386/i386-c.c : Likewise.
14349 * config/i386/i386.c : Likewise.
14350 * config/i386/msformat-c.c : Likewise.
14351 * config/i386/winnt-cxx.c : Likewise.
14352 * config/i386/winnt-stubs.c : Likewise.
14353 * config/i386/winnt.c : Likewise.
14354 * config/ia64/ia64-c.c : Likewise.
14355 * config/ia64/ia64.c : Likewise.
14356 * config/iq2000/iq2000.c : Likewise.
14357 * config/lm32/lm32.c : Likewise.
14358 * config/m32c/m32c-pragma.c : Likewise.
14359 * config/m32c/m32c.c : Likewise.
14360 * config/m32r/m32r.c : Likewise.
14361 * config/m68k/m68k.c : Likewise.
14362 * config/mcore/mcore.c : Likewise.
14363 * config/mep/mep-pragma.c : Likewise.
14364 * config/mep/mep.c : Likewise.
14365 * config/microblaze/microblaze-c.c : Likewise.
14366 * config/microblaze/microblaze.c : Likewise.
14367 * config/mips/mips.c : Likewise.
14368 * config/mmix/mmix.c : Likewise.
14369 * config/mn10300/mn10300.c : Likewise.
14370 * config/moxie/moxie.c : Likewise.
14371 * config/msp430/msp430-c.c : Likewise.
14372 * config/msp430/msp430.c : Likewise.
14373 * config/nds32/nds32-cost.c : Likewise.
14374 * config/nds32/nds32-fp-as-gp.c : Likewise.
14375 * config/nds32/nds32-intrinsic.c : Likewise.
14376 * config/nds32/nds32-isr.c : Likewise.
14377 * config/nds32/nds32-md-auxiliary.c : Likewise.
14378 * config/nds32/nds32-memory-manipulation.c : Likewise.
14379 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14380 * config/nds32/nds32-predicates.c : Likewise.
14381 * config/nds32/nds32.c : Likewise.
14382 * config/nios2/nios2.c : Likewise.
14383 * config/nvptx/nvptx.c : Likewise.
14384 * config/pa/pa.c : Likewise.
14385 * config/pdp11/pdp11.c : Likewise.
14386 * config/rl78/rl78-c.c : Likewise.
14387 * config/rl78/rl78.c : Likewise.
14388 * config/rs6000/rs6000-c.c : Likewise.
14389 * config/rs6000/rs6000.c : Likewise.
14390 * config/rx/rx.c : Likewise.
14391 * config/s390/s390-c.c : Likewise.
14392 * config/s390/s390.c : Likewise.
14393 * config/sh/sh-c.c : Likewise.
14394 * config/sh/sh-mem.cc : Likewise.
14395 * config/sh/sh.c : Likewise.
14396 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14397 * config/sh/sh_treg_combine.cc : Likewise.
14398 * config/sol2-c.c : Likewise.
14399 * config/sol2-cxx.c : Likewise.
14400 * config/sol2-stubs.c : Likewise.
14401 * config/sol2.c : Likewise.
14402 * config/sparc/sparc-c.c : Likewise.
14403 * config/sparc/sparc.c : Likewise.
14404 * config/spu/spu-c.c : Likewise.
14405 * config/spu/spu.c : Likewise.
14406 * config/stormy16/stormy16.c : Likewise.
14407 * config/tilegx/mul-tables.c : Likewise.
14408 * config/tilegx/tilegx-c.c : Likewise.
14409 * config/tilegx/tilegx.c : Likewise.
14410 * config/tilepro/mul-tables.c : Likewise.
14411 * config/tilepro/tilepro-c.c : Likewise.
14412 * config/tilepro/tilepro.c : Likewise.
14413 * config/v850/v850-c.c : Likewise.
14414 * config/v850/v850.c : Likewise.
14415 * config/vax/vax.c : Likewise.
14416 * config/visium/visium.c : Likewise.
14417 * config/vms/vms-c.c : Likewise.
14418 * config/vms/vms.c : Likewise.
14419 * config/vxworks.c : Likewise.
14420 * config/winnt-c.c : Likewise.
14421 * config/xtensa/xtensa.c : Likewise.
14423 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14426 * ipa-utils.h (warn_types_mismatch): Update prototype.
14427 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14429 (type_mismatch_p): New function.
14430 (warn_types_mismatch): Reorg to work better on non-C++ types.
14431 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14432 (add_type_duplicate): Update.
14434 2015-06-08 Tom de Vries <tom@codesourcery.com>
14436 PR rtl-optimization/66444
14437 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14440 2015-06-08 Richard Biener <rguenther@suse.de>
14442 PR tree-optimization/66422
14443 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14444 block after inserted gcc_unreachable.
14446 2015-06-08 Nick Clifton <nickc@redhat.com>
14448 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14449 (rx_promote_function_mode): Likewise.
14450 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14452 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14454 * genattrtab.c (insn_alternatives): Change type from int *
14456 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14457 (get_attr_value): Change type of num_alt to uint64_t.
14458 (compute_alternative_mask): Change return type from
14459 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14460 (make_alternative_compare, mk_attr_alt): Change argument type
14461 from int to uint64_t.
14462 (simplify_test_exp): Change type of i from int to uint64_t.
14463 Shift ((uint64_t) 1) instead of 1 up.
14464 (main): Adjust oballocvec first argument from int to uint64_t.
14465 Shift ((uint64_t) 1) instead of 1 up.
14467 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14470 * gdbhooks.py: Import sys.
14471 (intptr): New function. Replace int(...) by intptr(...).
14473 2015-06-08 Richard Biener <rguenther@suse.de>
14475 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14476 adjustment for gaps at the end of a SLP load group properly.
14477 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14478 all permutations we can generate.
14479 (vect_transform_slp_perm_load): Use the correct group-size.
14481 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14483 * genmatch.c (expr::gen_transform): For conditions, guess the type
14484 from the second operand.
14486 2015-06-08 Tom de Vries <tom@codesourcery.com>
14488 PR tree-optimization/66442
14489 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14490 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14491 if the loop latch is not a singleton. Use
14492 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14494 2015-06-08 Marek Polacek <polacek@redhat.com>
14497 * toplev.c (check_global_declaration): Don't warn about artificial
14500 2015-06-08 Tom de Vries <tom@codesourcery.com>
14502 PR tree-optimization/66436
14503 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14505 * gimplify.c: Add tree-dump.h include.
14506 (gimplify_function_tree): Dump function to gimple dump file.
14507 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14510 2015-06-08 Tom de Vries <tom@codesourcery.com>
14512 PR tree-optimization/66435
14513 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14516 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14518 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14519 of ptr_type_node to not be ptr_to_node.
14520 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14521 TREE_TYPE of pointers.
14522 * gimple-expr.c (useless_type_conversion): Reorder the check for
14523 function pointers and TYPE_CANONICAL.
14525 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14528 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14529 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14530 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14532 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14533 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14534 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14535 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14536 and non iso if unix2003.
14538 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14540 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14542 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14544 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14545 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14546 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14547 except.c, final.c, function.c, gcse-common.c, genemit.c,
14548 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14549 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14550 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14551 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14554 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14556 * combine.c (combine_split_insns): Remove cast.
14557 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14558 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14559 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14560 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14561 * genemit.c (gen_split): Change return type of generated functions to
14563 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14564 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14565 gen_peephole2_* functions.
14566 (print_subroutine, main): Likewise.
14567 * recog.c (peephole2_optimize): Remove cast.
14568 (peep2_next_insn): Promote return type to rtx_insn.
14569 * recog.h (peep2_next_insn): Fix prototype.
14570 * rtl.h (try_split, split_insns): Likewise.
14572 2015-06-06 DJ Delorie <dj@redhat.com>
14574 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14575 and subtraction too.
14577 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14580 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14581 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14582 instead of Snd. Disparage Sid/z alternative with '^'.
14584 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14586 * dwarf2out.c: Remove deferred_locations*.
14587 (dwarf2_debug_hooks): Add early_finish hook.
14588 Remove global_decl hook.
14589 Add early_global_decl and late_global_decl hook.
14590 New global early_dwarf.
14591 New structure set_early_dwarf.
14592 (output_die): Indicate whether a DIE was generated early
14593 when generating assembly with -dA.
14594 (struct limbo_die_struct): Document created_for field.
14595 Remove file_table_last_lookup.
14596 (remove_AT): Return TRUE if successful.
14597 (remove_child_TAG): Clear die_parent.
14598 (reparent_child): New function abstracted from...
14599 (splice_child_die): ...here.
14600 (new_die): ICE if a DIE ends up in limbo too late.
14602 (defer_location): Remove.
14603 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14604 (fill_variable_array_bounds): New.
14605 (decl_start_label): Call fill_variable_array_bounds.
14606 (gen_formal_parameter_die): Rewrite to reuse previously generated
14608 (gen_subprogram_die): Same.
14609 (gen_variable_die): Same.
14610 (gen_const_die): Same.
14611 (gen_label_die): Same.
14612 (gen_lexical_block_die): Same.
14613 (decl_will_get_specification_p): New.
14614 (local_function_static): New.
14615 (gen_struct_or_union_type_die): Fill in variable-length fields.
14616 (gen_typedef_die): Fill in variable-length typedefs.
14617 (gen_tagged_type_die): Gracefully return on error_mark_node.
14618 Handle re-entrancy.
14619 (gen_type_die_with_usage): Handle variable-length types.
14620 Remove duplicate code for ARRAY_TYPE case.
14621 (process_scope_var): Only process imported modules during early
14623 (dwarf2out_early_global_decl): New.
14624 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14625 (dwarf2out_type_decl): Set early_dwarf while calling
14627 (dwarf2out_decl): Verify that we did not recreate a previously
14629 Do not return on DECL_EXTERNALs in VAR_DECLs.
14630 Abstract some code to local_function_static.
14631 (lookup_filename): Remove use of file_table_last_lookup.
14632 Gracefully exit on missing file_name.
14633 (dwarf2out_finish): Verify limbo list.
14634 Remove deferred_locations_list use.
14635 Move deferred_asm_name and limbo flushing to...
14636 (dwarf2out_early_finish): ...here. New.
14637 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14638 deferred_asm_name, and file_table_last_lookup.
14639 * cgraph.h (referred_to_p): Add default argument.
14640 * cgraphunit.c (referred_to_p): Add and handle include_self
14642 (analyze_functions): Add first_time argument.
14643 Call check_global_declaration for all symbols.
14644 Call late_global_decl for nodes for moribund nodes.
14645 (finalize_compilation_unit): Add new argument to
14647 Call early_global_decl for functions.
14648 Call early_finish debug hook.
14649 * dbxout.c (dbxout_early_global_decl): New.
14650 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14651 (dbx_debug_hooks): Add new hooks.
14652 (xcoff_debug_hooks): Same.
14653 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14654 Add early and late debug hooks.
14655 Remove global_decl hook.
14656 * debug.h (struct gcc_debug_hooks): Add early_finish,
14657 early_global_decl, and late_global_decl fields.
14658 Remove global_decl field.
14659 Document gcc_debug_hooks.
14660 * gengtype.c (output_typename): Remove.
14661 * godump.c (go_early_global_decl): New.
14662 (go_late_global_decl): New.
14663 (go_global_decl): Remove.
14664 (dump_go_spec_init): Remove global_decl. Add
14665 {early,late}_global_decl.
14666 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14667 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14668 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14669 (write_global_declarations): Remove.
14670 (global_decl_processing): New.
14671 * langhooks.h (struct lang_hooks_for_decls): Remove
14672 final_write_globals field.
14673 Add post_compilation_parsing_cleanups field.
14674 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14675 * sdbout.c: Add early and late_global_decl hooks. Remove
14676 sdbout_global_decl hook.
14677 Add early_finish field for sdb_debug_hooks.
14678 (sdbout_global_decl): Remove.
14679 (sdbout_early_global_decl): New.
14680 (sdbout_late_global_decl): New.
14681 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14682 * toplev.c (check_global_declaration): Rename from
14683 check_global_declaration_1.
14684 Adapt to use symtab infrastructure.
14685 (check_global_declarations): Remove.
14686 (emit_debug_global_declarations): Remove.
14687 (compile_file): Remove call to final_write_globals langhook.
14688 Run the actual compilation process.
14689 Perform any post compilation parser cleanups.
14690 Generate late debug info.
14691 * toplev.h (check_global_declaration): New.
14692 (check_global_declaration_1): Remove.
14693 (check_global_declarations): Remove.
14694 (write_global_declarations): Remove.
14695 (emit_debug_global_declarations): Remove.
14696 (global_decl_processing): New.
14697 * tree-core.h (struct tree_block): Add DIE field.
14698 * tree.h (BLOCK_DIE): New.
14699 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14701 (vmsdbgout_early_global_decl): New.
14702 (vmsdbgout_late_global_decl): New.
14703 Add early_finish debug hook field to vmsdbg_debug_hooks.
14704 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14705 Add early and late_global_decl debug hooks.
14707 2015-06-05 Julian Brown <julian@codesourcery.com>
14708 Sandra Loosemore <sandra@codesourcery.com>
14710 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14711 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14712 to print-sysroot-suffix.sh script.
14714 2015-06-05 Tom de Vries <tom@codesourcery.com>
14716 merge from gomp4 branch:
14717 2015-05-28 Tom de Vries <tom@codesourcery.com>
14719 PR tree-optimization/65443
14720 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14721 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14722 (try_transform_to_exit_first_loop_alt): New function.
14723 (transform_to_exit_first_loop): Use
14724 try_transform_to_exit_first_loop_alt.
14726 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14728 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14729 emit_cmp_and_jump_insns with the mode of target.
14731 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14733 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14735 2015-06-04 DJ Delorie <dj@redhat.com>
14737 * config/msp430/msp430.md (movsi_s): New. Special case for
14738 storing a 20-bit symbol into a 32-bit register.
14739 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14740 * config/msp430/predicates.md (msp430_symbol_operand): New.
14742 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14744 * c-family/c-common.c (noplt): New attribute.
14745 (handle_noplt_attribute): New handler.
14746 * calls.c (prepare_call_address): Check for noplt
14748 * config/i386/i386.c (ix86_expand_call): Check
14749 for noplt attribute.
14750 (ix86_nopic_noplt_attribute_p): New function.
14751 (ix86_output_call_insn): Output indirect call for non-pic
14753 * doc/extend.texi (noplt): Document new attribute.
14754 * doc/invoke.texi: Document new attribute.
14756 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14758 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14759 real.h, and fixed-value.h when included in host source files.
14760 * double-int.h: Remove redundant #includes listed above.
14761 * fixed-value.h: Likewise.
14762 * real.h: Likewise.
14763 * wide-int.h: Likewise.
14764 * inchash.h: Likewise.
14765 * rtl.h: Add some include files When included from a generator file.
14766 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14767 * internal-fn.h: Don't include coretypes.h.
14768 * alias.c: Adjust includes for restructured coretypes.h.
14769 * asan.c: Likewise.
14770 * attribs.c: Likewise.
14771 * auto-inc-dec.c: Likewise.
14772 * auto-profile.c: Likewise.
14773 * bb-reorder.c: Likewise.
14774 * bt-load.c: Likewise.
14775 * builtins.c: Likewise.
14776 * caller-save.c: Likewise.
14777 * calls.c: Likewise.
14778 * ccmp.c: Likewise.
14780 * cfganal.c: Likewise.
14781 * cfgbuild.c: Likewise.
14782 * cfgcleanup.c: Likewise.
14783 * cfgexpand.c: Likewise.
14784 * cfghooks.c: Likewise.
14785 * cfgloop.c: Likewise.
14786 * cfgloop.h: Likewise.
14787 * cfgloopanal.c: Likewise.
14788 * cfgloopmanip.c: Likewise.
14789 * cfgrtl.c: Likewise.
14790 * cgraph.c: Likewise.
14791 * cgraphbuild.c: Likewise.
14792 * cgraphclones.c: Likewise.
14793 * cgraphunit.c: Likewise.
14794 * cilk-common.c: Likewise.
14795 * combine-stack-adj.c: Likewise.
14796 * combine.c: Likewise.
14797 * compare-elim.c: Likewise.
14798 * convert.c: Likewise.
14799 * coverage.c: Likewise.
14800 * cppbuiltin.c: Likewise.
14801 * cprop.c: Likewise.
14803 * cselib.c: Likewise.
14804 * data-streamer-in.c: Likewise.
14805 * data-streamer-out.c: Likewise.
14806 * data-streamer.c: Likewise.
14807 * dbxout.c: Likewise.
14810 * debug.c: Likewise.
14811 * df-core.c: Likewise.
14812 * df-problems.c: Likewise.
14813 * df-scan.c: Likewise.
14816 * dojump.c: Likewise.
14817 * dominance.c: Likewise.
14818 * domwalk.c: Likewise.
14819 * double-int.c: Likewise.
14821 * dumpfile.c: Likewise.
14822 * dwarf2asm.c: Likewise.
14823 * dwarf2cfi.c: Likewise.
14824 * dwarf2out.c: Likewise.
14825 * dwarf2out.h: Likewise.
14826 * emit-rtl.c: Likewise.
14827 * et-forest.c: Likewise.
14828 * except.c: Likewise.
14829 * explow.c: Likewise.
14830 * expmed.c: Likewise.
14831 * expr.c: Likewise.
14832 * final.c: Likewise.
14833 * fixed-value.c: Likewise.
14834 * fold-const.c: Likewise.
14835 * function.c: Likewise.
14836 * fwprop.c: Likewise.
14837 * gcc-plugin.h: Likewise.
14838 * gcse.c: Likewise.
14839 * generic-match-head.c: Likewise.
14840 * ggc-page.c: Likewise.
14841 * gimple-builder.c: Likewise.
14842 * gimple-expr.c: Likewise.
14843 * gimple-fold.c: Likewise.
14844 * gimple-iterator.c: Likewise.
14845 * gimple-low.c: Likewise.
14846 * gimple-match-head.c: Likewise.
14847 * gimple-pretty-print.c: Likewise.
14848 * gimple-ssa-isolate-paths.c: Likewise.
14849 * gimple-ssa-strength-reduction.c: Likewise.
14850 * gimple-streamer-in.c: Likewise.
14851 * gimple-streamer-out.c: Likewise.
14852 * gimple-streamer.h: Likewise.
14853 * gimple-walk.c: Likewise.
14854 * gimple.c: Likewise.
14855 * gimplify-me.c: Likewise.
14856 * gimplify.c: Likewise.
14857 * godump.c: Likewise.
14858 * graph.c: Likewise.
14859 * graphite-blocking.c: Likewise.
14860 * graphite-dependences.c: Likewise.
14861 * graphite-interchange.c: Likewise.
14862 * graphite-isl-ast-to-gimple.c: Likewise.
14863 * graphite-optimize-isl.c: Likewise.
14864 * graphite-poly.c: Likewise.
14865 * graphite-scop-detection.c: Likewise.
14866 * graphite-sese-to-poly.c: Likewise.
14867 * graphite.c: Likewise.
14868 * haifa-sched.c: Likewise.
14869 * hooks.h: Likewise.
14870 * hw-doloop.c: Likewise.
14871 * ifcvt.c: Likewise.
14872 * incpath.c: Likewise.
14873 * init-regs.c: Likewise.
14874 * internal-fn.c: Likewise.
14875 * ipa-chkp.c: Likewise.
14876 * ipa-comdats.c: Likewise.
14877 * ipa-cp.c: Likewise.
14878 * ipa-devirt.c: Likewise.
14879 * ipa-icf-gimple.c: Likewise.
14880 * ipa-icf.c: Likewise.
14881 * ipa-inline-analysis.c: Likewise.
14882 * ipa-inline-transform.c: Likewise.
14883 * ipa-inline.c: Likewise.
14884 * ipa-polymorphic-call.c: Likewise.
14885 * ipa-profile.c: Likewise.
14886 * ipa-prop.c: Likewise.
14887 * ipa-pure-const.c: Likewise.
14888 * ipa-ref.c: Likewise.
14889 * ipa-reference.c: Likewise.
14890 * ipa-split.c: Likewise.
14891 * ipa-utils.c: Likewise.
14892 * ipa-visibility.c: Likewise.
14894 * ira-build.c: Likewise.
14895 * ira-color.c: Likewise.
14896 * ira-conflicts.c: Likewise.
14897 * ira-costs.c: Likewise.
14898 * ira-emit.c: Likewise.
14899 * ira-lives.c: Likewise.
14901 * jump.c: Likewise.
14902 * langhooks.c: Likewise.
14904 * loop-doloop.c: Likewise.
14905 * loop-init.c: Likewise.
14906 * loop-invariant.c: Likewise.
14907 * loop-iv.c: Likewise.
14908 * loop-unroll.c: Likewise.
14909 * lower-subreg.c: Likewise.
14910 * lra-assigns.c: Likewise.
14911 * lra-coalesce.c: Likewise.
14912 * lra-constraints.c: Likewise.
14913 * lra-eliminations.c: Likewise.
14914 * lra-lives.c: Likewise.
14915 * lra-remat.c: Likewise.
14916 * lra-spills.c: Likewise.
14918 * lto-cgraph.c: Likewise.
14919 * lto-compress.c: Likewise.
14920 * lto-opts.c: Likewise.
14921 * lto-section-in.c: Likewise.
14922 * lto-section-out.c: Likewise.
14923 * lto-streamer-in.c: Likewise.
14924 * lto-streamer-out.c: Likewise.
14925 * lto-streamer.c: Likewise.
14927 * mode-switching.c: Likewise.
14928 * modulo-sched.c: Likewise.
14929 * omega.c: Likewise.
14930 * omp-low.c: Likewise.
14931 * optabs.c: Likewise.
14932 * opts-global.c: Likewise.
14933 * passes.c: Likewise.
14934 * plugin.c: Likewise.
14935 * postreload-gcse.c: Likewise.
14936 * postreload.c: Likewise.
14937 * predict.c: Likewise.
14938 * print-rtl.c: Likewise.
14939 * print-tree.c: Likewise.
14940 * profile.c: Likewise.
14941 * real.c: Likewise.
14942 * realmpfr.c: Likewise.
14943 * realmpfr.h: Likewise.
14944 * recog.c: Likewise.
14946 * reg-stack.c: Likewise.
14947 * regcprop.c: Likewise.
14948 * reginfo.c: Likewise.
14949 * regrename.c: Likewise.
14950 * regs.h: Likewise.
14951 * regstat.c: Likewise.
14952 * reload.c: Likewise.
14953 * reload1.c: Likewise.
14954 * reorg.c: Likewise.
14955 * resource.c: Likewise.
14956 * rtl-chkp.c: Likewise.
14957 * rtlanal.c: Likewise.
14958 * rtlhooks.c: Likewise.
14959 * sanopt.c: Likewise.
14960 * sched-deps.c: Likewise.
14961 * sched-ebb.c: Likewise.
14962 * sched-rgn.c: Likewise.
14963 * sched-vis.c: Likewise.
14964 * sdbout.c: Likewise.
14965 * sel-sched-dump.c: Likewise.
14966 * sel-sched-ir.c: Likewise.
14967 * sel-sched.c: Likewise.
14968 * sese.c: Likewise.
14969 * shrink-wrap.c: Likewise.
14970 * shrink-wrap.h: Likewise.
14971 * simplify-rtx.c: Likewise.
14972 * stack-ptr-mod.c: Likewise.
14973 * statistics.c: Likewise.
14974 * stmt.c: Likewise.
14975 * stor-layout.c: Likewise.
14976 * store-motion.c: Likewise.
14977 * stringpool.c: Likewise.
14978 * symtab.c: Likewise.
14979 * target-globals.c: Likewise.
14980 * targhooks.c: Likewise.
14981 * toplev.c: Likewise.
14982 * tracer.c: Likewise.
14983 * trans-mem.c: Likewise.
14984 * tree-affine.c: Likewise.
14985 * tree-affine.h: Likewise.
14986 * tree-browser.c: Likewise.
14987 * tree-call-cdce.c: Likewise.
14988 * tree-cfg.c: Likewise.
14989 * tree-cfgcleanup.c: Likewise.
14990 * tree-chkp-opt.c: Likewise.
14991 * tree-chkp.c: Likewise.
14992 * tree-chrec.c: Likewise.
14993 * tree-complex.c: Likewise.
14994 * tree-data-ref.c: Likewise.
14995 * tree-dfa.c: Likewise.
14996 * tree-diagnostic.c: Likewise.
14997 * tree-dump.c: Likewise.
14998 * tree-eh.c: Likewise.
14999 * tree-emutls.c: Likewise.
15000 * tree-if-conv.c: Likewise.
15001 * tree-inline.c: Likewise.
15002 * tree-into-ssa.c: Likewise.
15003 * tree-iterator.c: Likewise.
15004 * tree-loop-distribution.c: Likewise.
15005 * tree-nested.c: Likewise.
15006 * tree-nrv.c: Likewise.
15007 * tree-object-size.c: Likewise.
15008 * tree-outof-ssa.c: Likewise.
15009 * tree-parloops.c: Likewise.
15010 * tree-phinodes.c: Likewise.
15011 * tree-predcom.c: Likewise.
15012 * tree-pretty-print.c: Likewise.
15013 * tree-pretty-print.h: Likewise.
15014 * tree-profile.c: Likewise.
15015 * tree-scalar-evolution.c: Likewise.
15016 * tree-sra.c: Likewise.
15017 * tree-ssa-address.c: Likewise.
15018 * tree-ssa-alias.c: Likewise.
15019 * tree-ssa-ccp.c: Likewise.
15020 * tree-ssa-coalesce.c: Likewise.
15021 * tree-ssa-copy.c: Likewise.
15022 * tree-ssa-copyrename.c: Likewise.
15023 * tree-ssa-dce.c: Likewise.
15024 * tree-ssa-dom.c: Likewise.
15025 * tree-ssa-dse.c: Likewise.
15026 * tree-ssa-forwprop.c: Likewise.
15027 * tree-ssa-ifcombine.c: Likewise.
15028 * tree-ssa-live.c: Likewise.
15029 * tree-ssa-loop-ch.c: Likewise.
15030 * tree-ssa-loop-im.c: Likewise.
15031 * tree-ssa-loop-ivcanon.c: Likewise.
15032 * tree-ssa-loop-ivopts.c: Likewise.
15033 * tree-ssa-loop-manip.c: Likewise.
15034 * tree-ssa-loop-niter.c: Likewise.
15035 * tree-ssa-loop-prefetch.c: Likewise.
15036 * tree-ssa-loop-unswitch.c: Likewise.
15037 * tree-ssa-loop.c: Likewise.
15038 * tree-ssa-loop.h: Likewise.
15039 * tree-ssa-math-opts.c: Likewise.
15040 * tree-ssa-operands.c: Likewise.
15041 * tree-ssa-phiopt.c: Likewise.
15042 * tree-ssa-phiprop.c: Likewise.
15043 * tree-ssa-pre.c: Likewise.
15044 * tree-ssa-propagate.c: Likewise.
15045 * tree-ssa-reassoc.c: Likewise.
15046 * tree-ssa-sccvn.c: Likewise.
15047 * tree-ssa-scopedtables.c: Likewise.
15048 * tree-ssa-sink.c: Likewise.
15049 * tree-ssa-strlen.c: Likewise.
15050 * tree-ssa-structalias.c: Likewise.
15051 * tree-ssa-tail-merge.c: Likewise.
15052 * tree-ssa-ter.c: Likewise.
15053 * tree-ssa-threadedge.c: Likewise.
15054 * tree-ssa-threadupdate.c: Likewise.
15055 * tree-ssa-uncprop.c: Likewise.
15056 * tree-ssa-uninit.c: Likewise.
15057 * tree-ssa.c: Likewise.
15058 * tree-ssanames.c: Likewise.
15059 * tree-stdarg.c: Likewise.
15060 * tree-streamer-in.c: Likewise.
15061 * tree-streamer-out.c: Likewise.
15062 * tree-streamer.c: Likewise.
15063 * tree-switch-conversion.c: Likewise.
15064 * tree-tailcall.c: Likewise.
15065 * tree-vect-data-refs.c: Likewise.
15066 * tree-vect-generic.c: Likewise.
15067 * tree-vect-loop-manip.c: Likewise.
15068 * tree-vect-loop.c: Likewise.
15069 * tree-vect-patterns.c: Likewise.
15070 * tree-vect-slp.c: Likewise.
15071 * tree-vect-stmts.c: Likewise.
15072 * tree-vectorizer.c: Likewise.
15073 * tree-vrp.c: Likewise.
15074 * tree.c: Likewise.
15075 * tsan.c: Likewise.
15076 * ubsan.c: Likewise.
15077 * valtrack.c: Likewise.
15078 * value-prof.c: Likewise.
15079 * var-tracking.c: Likewise.
15080 * varasm.c: Likewise.
15081 * varpool.c: Likewise.
15082 * vmsdbgout.c: Likewise.
15083 * vtable-verify.c: Likewise.
15085 * wide-int-print.cc: Likewise.
15086 * wide-int-print.h: Likewise.
15087 * wide-int.cc: Likewise.
15088 * xcoffout.c: Likewise.
15089 * config/aarch64/aarch64-builtins.c: Likewise.
15090 * config/aarch64/aarch64.c: Likewise.
15091 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15092 * config/alpha/alpha.c: Likewise.
15093 * config/arc/arc.c: Likewise.
15094 * config/arm/aarch-common.c: Likewise.
15095 * config/arm/arm-builtins.c: Likewise.
15096 * config/arm/arm-c.c: Likewise.
15097 * config/arm/arm.c: Likewise.
15098 * config/avr/avr-c.c: Likewise.
15099 * config/avr/avr-log.c: Likewise.
15100 * config/avr/avr.c: Likewise.
15101 * config/bfin/bfin.c: Likewise.
15102 * config/c6x/c6x.c: Likewise.
15103 * config/cr16/cr16.c: Likewise.
15104 * config/cris/cris.c: Likewise.
15105 * config/darwin-c.c: Likewise.
15106 * config/darwin.c: Likewise.
15107 * config/default-c.c: Likewise.
15108 * config/epiphany/epiphany.c: Likewise.
15109 * config/epiphany/mode-switch-use.c: Likewise.
15110 * config/epiphany/resolve-sw-modes.c: Likewise.
15111 * config/fr30/fr30.c: Likewise.
15112 * config/frv/frv.c: Likewise.
15113 * config/ft32/ft32.c: Likewise.
15114 * config/glibc-c.c: Likewise.
15115 * config/h8300/h8300.c: Likewise.
15116 * config/i386/i386-c.c: Likewise.
15117 * config/i386/i386.c: Likewise.
15118 * config/i386/msformat-c.c: Likewise.
15119 * config/i386/winnt-cxx.c: Likewise.
15120 * config/i386/winnt-stubs.c: Likewise.
15121 * config/i386/winnt.c: Likewise.
15122 * config/ia64/ia64-c.c: Likewise.
15123 * config/ia64/ia64.c: Likewise.
15124 * config/iq2000/iq2000.c: Likewise.
15125 * config/lm32/lm32.c: Likewise.
15126 * config/m32c/m32c-pragma.c: Likewise.
15127 * config/m32c/m32c.c: Likewise.
15128 * config/m32r/m32r.c: Likewise.
15129 * config/m68k/m68k.c: Likewise.
15130 * config/mcore/mcore.c: Likewise.
15131 * config/mep/mep-pragma.c: Likewise.
15132 * config/mep/mep.c: Likewise.
15133 * config/microblaze/microblaze-c.c: Likewise.
15134 * config/microblaze/microblaze.c: Likewise.
15135 * config/mips/mips.c: Likewise.
15136 * config/mmix/mmix.c: Likewise.
15137 * config/mn10300/mn10300.c: Likewise.
15138 * config/moxie/moxie.c: Likewise.
15139 * config/msp430/msp430-c.c: Likewise.
15140 * config/msp430/msp430.c: Likewise.
15141 * config/nds32/nds32-cost.c: Likewise.
15142 * config/nds32/nds32-fp-as-gp.c: Likewise.
15143 * config/nds32/nds32-intrinsic.c: Likewise.
15144 * config/nds32/nds32-isr.c: Likewise.
15145 * config/nds32/nds32-md-auxiliary.c: Likewise.
15146 * config/nds32/nds32-memory-manipulation.c: Likewise.
15147 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15148 * config/nds32/nds32-predicates.c: Likewise.
15149 * config/nds32/nds32.c: Likewise.
15150 * config/nios2/nios2.c: Likewise.
15151 * config/nvptx/nvptx.c: Likewise.
15152 * config/pa/pa.c: Likewise.
15153 * config/pdp11/pdp11.c: Likewise.
15154 * config/rl78/rl78-c.c: Likewise.
15155 * config/rl78/rl78.c: Likewise.
15156 * config/rs6000/rs6000-c.c: Likewise.
15157 * config/rs6000/rs6000.c: Likewise.
15158 * config/rx/rx.c: Likewise.
15159 * config/s390/s390-c.c: Likewise.
15160 * config/s390/s390.c: Likewise.
15161 * config/sh/sh-c.c: Likewise.
15162 * config/sh/sh-mem.cc: Likewise.
15163 * config/sh/sh.c: Likewise.
15164 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15165 * config/sh/sh_treg_combine.cc: Likewise.
15166 * config/sol2-c.c: Likewise.
15167 * config/sol2-cxx.c: Likewise.
15168 * config/sol2-stubs.c: Likewise.
15169 * config/sol2.c: Likewise.
15170 * config/sparc/sparc-c.c: Likewise.
15171 * config/sparc/sparc.c: Likewise.
15172 * config/spu/spu-c.c: Likewise.
15173 * config/spu/spu.c: Likewise.
15174 * config/stormy16/stormy16.c: Likewise.
15175 * config/tilegx/mul-tables.c: Likewise.
15176 * config/tilegx/tilegx-c.c: Likewise.
15177 * config/tilegx/tilegx.c: Likewise.
15178 * config/tilepro/mul-tables.c: Likewise.
15179 * config/tilepro/tilepro-c.c: Likewise.
15180 * config/tilepro/tilepro.c: Likewise.
15181 * config/v850/v850-c.c: Likewise.
15182 * config/v850/v850.c: Likewise.
15183 * config/vax/vax.c: Likewise.
15184 * config/visium/visium.c: Likewise.
15185 * config/vms/vms-c.c: Likewise.
15186 * config/vms/vms.c: Likewise.
15187 * config/vxworks.c: Likewise.
15188 * config/winnt-c.c: Likewise.
15189 * config/xtensa/xtensa.c: Likewise.
15190 * common/config/bfin/bfin-common.c: Likewise.
15192 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15194 * tree.h (tree_code_for_canonical_type_merging): New function.
15195 * tree.c (gimple_canonical_types_compatible_p): Use
15196 tree_code_for_canonical_type_merging..
15198 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15202 * doc/tm.texi: Regenerate.
15203 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15204 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15205 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15206 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15207 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15208 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15209 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15210 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15211 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15213 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15215 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15216 register fma steering pass.
15217 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15218 AARCH64_TUNE_FMA_STEERING.
15220 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15222 * tree.c (verify_type_variant): Verify that type and variant is
15224 (gimple_canonical_types_compatible_p): Look for main variants.
15226 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15228 * config.gcc (powerpc*-*-*): Add support for a new configure
15229 option --with-advance-toolchain=<xxx> which overrides using the
15230 default header files, libraries and dynamic linker.
15232 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15233 specs to support the configure --with-advance-toolchain=<xxx>
15235 (INCLUDE_EXTRA_SPEC): Likewise.
15236 (LINK_OS_EXTRA_SPEC32): Likewise.
15237 (LINK_OK_EXTRA_SPEC64): Likewise.
15238 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15239 (DYNAMIC_LINKER_PREFIX): Likewise.
15240 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15242 (GLIBC_DYNAMIC_LINKER32): Likewise.
15243 (GLIBC_DYNAMIC_LINKER64): Likewise.
15244 (LINK_OS_LINUX_SPEC32): Likewise.
15245 (LINK_OS_LINUX_SPEC64): Likewise.
15247 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15248 configuration option.
15250 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15253 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15254 to determine current function ABI.
15255 (ix86_function_value_regno_p): Ditto.
15257 2015-06-03 Martin Liska <mliska@suse.cz>
15259 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15260 * bitmap.h (struct bitmap_usage): Likewise.
15261 * ggc-common.c (struct ggc_usage): Likewise.
15262 * mem-stats.h (struct mem_location): Likewise.
15263 (struct mem_usage): Likewise.
15264 * vec.c (struct vec_usage): Likewise.
15266 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15268 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15271 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15273 * doc/plugins.texi (enum plugin_event): New event.
15274 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15275 and PLUGIN_FINISH_FUNCTION.
15276 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15277 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15279 2015-06-03 Richard Biener <rguenther@suse.de>
15281 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15282 compute GROUP_GAP for the first element.
15283 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15286 2015-06-03 Nick Clifton <nickc@redhat.com>
15288 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15289 copy when calling a function.
15290 * config/rl78/rl78.c (need_to_save): Do not push the frame
15291 pointer in an interrupt handler prologue if it is never used.
15293 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15295 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15297 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15299 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15300 reference when cloning alias node.
15302 2015-06-03 Martin Liska <mliska@suse.cz>
15304 * alloc-pool.h (struct pool_usage): Correct space padding.
15305 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15306 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15307 * tree.c (dump_tree_statistics): Align columns in a report.
15309 2015-06-03 Martin Liska <mliska@suse.cz>
15311 * alloc-pool.c (allocate_pool_descriptor): Remove.
15312 (struct pool_output_info): Likewise.
15313 (print_alloc_pool_statistics): Likewise.
15314 (dump_alloc_pool_statistics): Likewise.
15315 * alloc-pool.h (struct pool_usage): New struct.
15316 (pool_allocator::initialize): Change usage of memory statistics
15317 to a new interface.
15318 (pool_allocator::release): Likewise.
15319 (pool_allocator::allocate): Likewise.
15320 (pool_allocator::remove): Likewise.
15321 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15322 for a pool allocator.
15323 * mem-stats.h (struct mem_location): Add new ctor.
15324 (struct mem_usage): Add counter for number of
15326 (mem_alloc_description::register_descriptor): New overload of
15327 * mem-stats.h (mem_location::to_string): New function.
15328 * bitmap.h (struct bitmap_usage): Use this new function.
15329 * ggc-common.c (struct ggc_usage): Likewise.
15332 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15334 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15335 of GCC_INSN_FLAGS_H block.
15337 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15339 * explow.c (plus_constant): Update check after force_const_mem call
15340 to see if the value returned is not a NULL_RTX.
15342 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15344 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15345 remove instumentation thunks calling reachable functions.
15346 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15347 * lto/lto-partition.c (privatize_symbol_name_1): New.
15348 (privatize_symbol_name): Privatize both decl and orig_decl
15349 names for instrumented functions.
15350 * cgraph.c (cgraph_node::verify_node): Add transparent
15351 alias chain check for instrumented node.
15353 2015-06-03 Marek Polacek <polacek@redhat.com>
15357 * tree.c (attribute_value_equal): Handle attribute format.
15358 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15360 2015-06-03 Richard Biener <rguenther@suse.de>
15362 PR tree-optimization/63916
15363 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15364 Forward-propagate non-invariant addresses by splicing their
15365 reference ops if the result isn't going to be used by PRE.
15366 (vn_reference_lookup_3): Remove pointless assert.
15368 2015-06-03 Richard Biener <rguenther@suse.de>
15370 PR tree-optimization/66375
15371 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15372 add to the evolution before following SSA edges.
15374 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15376 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15377 (dump_use, dump_cand, find_induction_variables): Pass new argument
15379 (record_use): Preserve the ssa name information in IV.
15381 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15383 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15385 (add_mode_tests): Don't add mode tests if the predicate only
15386 accepts scalar constant integers. Otherwise, allow the mode
15387 of "op" to be VOIDmode if the predicate does accept such integers.
15389 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15392 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15393 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15394 (aarch64_secondary_reload): Likewise
15395 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15397 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15400 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15401 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15404 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15406 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15408 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15409 provide access to the IBM extended double floating point mode if
15410 long double is IEEE 128-bit floating point.
15411 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15412 point if long double is the IBM extended double type.
15414 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15415 enable adding IEEE 128-bit floating point support.
15416 (-mfloat128-software): Likewise.
15417 (-mfloat128-sw): Likewise.
15419 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15420 128-bit floating point types to occupy any register if
15421 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15422 -mfloat128-software is enabled.
15423 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15425 (rs6000_option_override_internal): Add -mfloat128-* support.
15426 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15428 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15429 and float128 type nodes.
15430 (ieee128_float_type_node): Likewise.
15431 (ibm128_float_type_node): Likewise.
15433 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15436 * config/aarch64/geniterators.sh: Rewrite in awk.
15438 2015-06-02 Martin Liska <mliska@suse.cz>
15440 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15441 values to avoid -Wmaybe-uninitialized errors.
15443 2015-06-02 Richard Biener <rguenther@suse.de>
15446 * dwarf2out.c (lookup_context_die): New function.
15447 (resolve_addr): Avoid forcing a full DIE for the
15448 target of a DW_TAG_GNU_call_site during late compilation.
15449 Instead create a stub DIE without a type if we have a
15450 context DIE present.
15452 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15454 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15456 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15458 PR tree-optimization/48052
15459 * cfgloop.h (struct control_iv): New.
15460 (struct loop): New field control_ivs.
15461 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15462 (number_of_iterations_lt): Set no_overflow information.
15463 (number_of_iterations_exit): Init control iv in niter struct.
15464 (record_control_iv): New.
15465 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15466 (loop_exits_before_overflow): New. Interface factored out of
15467 scev_probably_wraps_p.
15468 (scev_probably_wraps_p): Factor loop niter related code into
15469 loop_exits_before_overflow.
15470 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15471 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15473 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15475 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15476 the target doesn't belong to the current function.
15478 2015-06-02 Marek Polacek <polacek@redhat.com>
15480 PR middle-end/66345
15481 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15482 get_maxval_strlen does not produce an INTEGER_CST.
15484 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15486 * config/arc/constraints.md: Use lower-case names in match_code.
15487 * config/mmix/constraints.md: Likewise.
15489 2015-06-02 Richard Biener <rguenther@suse.de>
15491 PR tree-optimization/65961
15492 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15493 check and clarify dump message.
15494 (vect_build_slp_tree): If all children are built up from scalars
15495 build up the parent from scalars instead.
15496 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15498 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15501 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15502 instead of print ... .
15504 2015-06-02 Alan Modra <amodra@gmail.com>
15506 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15509 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15511 PR tree-optimization/52563
15512 PR tree-optimization/62173
15513 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15514 (alloc_iv, set_iv): New parameter.
15515 (determine_biv_step): Delete.
15516 (find_bivs): Inline original determine_biv_step. Pass new
15517 argument to set_iv.
15518 (idx_find_step): Use no_overflow information for conversion.
15519 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15520 resolve_mixers handle folded_casts.
15521 (instantiate_scev_name): Change bool parameter to bool pointer.
15522 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15523 (instantiate_array_ref, instantiate_scev_not): Ditto.
15524 (instantiate_scev_3, instantiate_scev_2): Ditto.
15525 (instantiate_scev_1, instantiate_scev_r): Ditto.
15526 (instantiate_scev_convert, ): Change parameter. Pass argument
15527 to chrec_convert_aggressive.
15528 (instantiate_scev): Change argument.
15529 (resolve_mixers): New parameter and set it.
15530 (scev_const_prop): New argument.
15531 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15532 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15534 (chrec_convert): New parameter. Move definition below.
15535 (chrec_convert_aggressive): New parameter and set it. Call
15536 convert_affine_scev.
15537 * tree-chrec.h (chrec_convert): New parameter.
15538 (chrec_convert_aggressive): Ditto.
15540 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15542 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15543 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15544 the LHS of a no-return call if its type has variable size.
15545 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15546 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15548 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15550 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15551 * config.in: Regenerate.
15553 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15555 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15556 consecutive accesses within outer-loop with force_vectorize
15557 for references with zero step in inner-loop.
15559 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15561 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15562 rather than from gcc/build directory.
15564 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15567 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15568 for __sync memory models, emit initial loads and final barriers as
15571 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15574 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15575 (aarch64_split_atomic_op): Check for __sync memory models, emit
15576 appropriate initial loads and final barriers.
15578 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15580 * Makefile.in: Fix gcov dependencies that should
15581 not point to a build folder.
15583 2015-06-01 Richard Biener <rguenther@suse.de>
15586 2015-05-29 Richard Biener <rguenther@suse.de>
15588 PR tree-optimization/66314
15589 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15590 parameter that says which loop the new block belongs to.
15591 (ssa_create_duplicates): Blocks duplicated for the threaded
15592 path belong to the loop of the thread destination.
15594 2015-06-01 Martin Liska <mliska@suse.cz>
15596 * sched-deps.c: Include pool-alloc.h before
15597 cselib.h header file is included.
15599 2015-06-01 Richard Biener <rguenther@suse.de>
15601 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15604 2015-06-01 Martin Liska <mliska@suse.cz>
15606 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15607 a function local variable.
15609 2015-06-01 Martin Liska <mliska@suse.cz>
15611 * alloc-pool.c (create_alloc_pool): Remove.
15612 (empty_alloc_pool): Likewise.
15613 (free_alloc_pool): Likewise.
15614 (free_alloc_pool_if_empty): Likewise.
15615 (pool_alloc): Likewise.
15616 (pool_free): Likewise.
15617 * alloc-pool.h: Remove old declarations.
15619 2015-06-01 Martin Liska <mliska@suse.cz>
15621 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15622 (ira_create_object): Likewise.
15623 (ira_create_allocno): Likewise.
15624 (ira_create_live_range): Likewise.
15625 (copy_live_range): Likewise.
15626 (ira_finish_live_range): Likewise.
15627 (ira_free_allocno_costs): Likewise.
15628 (finish_allocno): Likewise.
15629 (finish_allocnos): Likewise.
15630 (initiate_prefs): Likewise.
15631 (ira_create_pref): Likewise.
15632 (finish_pref): Likewise.
15633 (finish_prefs): Likewise.
15634 (initiate_copies): Likewise.
15635 (ira_create_copy): Likewise.
15636 (finish_copy): Likewise.
15637 (finish_copies): Likewise.
15638 (finish_prefs): Likewise.
15640 2015-06-01 Martin Liska <mliska@suse.cz>
15642 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15643 (allocate_and_init_ipcp_value): Likewise.
15644 (ipcp_lattice::add_value): Likewise.
15645 (merge_agg_lats_step): Likewise.
15646 (ipcp_driver): Likewise.
15647 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15648 (ipa_free_all_structures_after_iinln): Likewise.
15649 * ipa-prop.h: Likewise.
15651 2015-06-01 Martin Liska <mliska@suse.cz>
15653 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15655 (set_hint_predicate): Likewise.
15656 (inline_summary_alloc): Likewise.
15657 (reset_inline_edge_summary): Likewise.
15658 (reset_inline_summary): Likewise.
15659 (set_cond_stmt_execution_predicate): Likewise.
15660 (set_switch_stmt_execution_predicate): Likewise.
15661 (compute_bb_predicates): Likewise.
15662 (estimate_function_body_sizes): Likewise.
15663 (inline_free_summary): Likewise.
15665 2015-06-01 Martin Liska <mliska@suse.cz>
15667 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15668 (ipa_edge_duplication_hook): Likewise.
15669 (ipa_free_all_structures_after_ipa_cp): Likewise.
15670 (ipa_free_all_structures_after_iinln): Likewise.
15672 2015-06-01 Martin Liska <mliska@suse.cz>
15674 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15675 (ipa_profile_generate_summary): Likewise.
15676 (ipa_profile_read_summary): Likewise.
15677 (ipa_profile): Likewise.
15679 2015-06-01 Martin Liska <mliska@suse.cz>
15681 * tree-ssa-structalias.c (new_var_info): Use new type-based
15683 (new_constraint): Likewise.
15684 (init_alias_vars): Likewise.
15685 (delete_points_to_sets): Likewise.
15687 2015-06-01 Martin Liska <mliska@suse.cz>
15689 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15690 (free_strinfo): Likewise.
15691 (pass_strlen::execute): Likewise.
15693 2015-06-01 Martin Liska <mliska@suse.cz>
15695 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15697 (vn_reference_insert_pieces): Likewise.
15698 (vn_phi_insert): Likewise.
15699 (visit_reference_op_call): Likewise.
15700 (copy_phi): Likewise.
15701 (copy_reference): Likewise.
15702 (process_scc): Likewise.
15703 (allocate_vn_table): Likewise.
15704 (free_vn_table): Likewise.
15706 2015-06-01 Martin Liska <mliska@suse.cz>
15708 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15710 (add_repeat_to_ops_vec): Likewise.
15711 (get_ops): Likewise.
15712 (maybe_optimize_range_tests): Likewise.
15713 (init_reassoc): Likewise.
15714 (fini_reassoc): Likewise.
15716 2015-06-01 Martin Liska <mliska@suse.cz>
15718 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15720 (bitmap_set_new): Likewise.
15721 (get_or_alloc_expr_for_constant): Likewise.
15722 (get_or_alloc_expr_for): Likewise.
15723 (phi_translate_1): Likewise.
15724 (compute_avail): Likewise.
15725 (init_pre): Likewise.
15726 (fini_pre): Likewise.
15728 2015-06-01 Martin Liska <mliska@suse.cz>
15730 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15731 (delete_dep_node): Likewise.
15732 (create_deps_list): Likewise.
15733 (free_deps_list): Likewise.
15734 (sched_deps_init): Likewise.
15735 (sched_deps_finish): Likewise.
15737 2015-06-01 Martin Liska <mliska@suse.cz>
15739 * regcprop.c (free_debug_insn_changes): Use new type-based
15741 (replace_oldest_value_reg): Likewise.
15742 (pass_cprop_hardreg::execute): Likewise.
15744 2015-06-01 Martin Liska <mliska@suse.cz>
15746 * ira-build.c (initiate_cost_vectors): Use new type-based
15748 (ira_allocate_cost_vector): Likewise.
15749 (ira_free_cost_vector): Likewise.
15750 (finish_cost_vectors): Likewise.
15752 2015-06-01 Martin Liska <mliska@suse.cz>
15754 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15756 (free_sched_pools): Likewise.
15757 * sel-sched-ir.h (_list_alloc): Likewise.
15758 (_list_remove): Likewise.
15760 2015-06-01 Martin Liska <mliska@suse.cz>
15762 * stmt.c (add_case_node): Use new type-based pool allocator.
15763 (expand_case): Likewise.
15764 (expand_sjlj_dispatch_table): Likewise.
15766 2015-06-01 Martin Liska <mliska@suse.cz>
15768 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15769 (free_bb): Likewise.
15770 (pass_cse_reciprocals::execute): Likewise.
15772 2015-06-01 Martin Liska <mliska@suse.cz>
15774 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15775 (sra_deinitialize) Likewise.
15776 (create_access_1) Likewise.
15777 (build_accesses_from_assign) Likewise.
15778 (create_artificial_child_access) Likewise.
15780 2015-06-01 Martin Liska <mliska@suse.cz>
15782 * dse.c (get_group_info):Use new type-based pool allocator.
15783 (dse_step0) Likewise.
15784 (free_store_info) Likewise.
15785 (delete_dead_store_insn) Likewise.
15786 (free_read_records) Likewise.
15787 (record_store) Likewise.
15788 (replace_read) Likewise.
15789 (check_mem_read_rtx) Likewise.
15790 (scan_insn) Likewise.
15791 (dse_step1) Likewise.
15792 (dse_step7) Likewise.
15794 2015-06-01 Martin Liska <mliska@suse.cz>
15796 * df-scan.c (struct df_scan_problem_data):Use new type-based
15798 (df_scan_free_internal) Likewise.
15799 (df_scan_alloc) Likewise.
15800 (df_grow_reg_info) Likewise.
15801 (df_free_ref) Likewise.
15802 (df_insn_create_insn_record) Likewise.
15803 (df_mw_hardreg_chain_delete) Likewise.
15804 (df_insn_info_delete) Likewise.
15805 (df_free_collection_rec) Likewise.
15806 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15807 (df_sort_and_compress_mws) Likewise.
15808 (df_ref_create_structure) Likewise.
15809 (df_ref_record) Likewise.
15811 2015-06-01 Martin Liska <mliska@suse.cz>
15813 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15814 (df_chain_unlink_1) Likewise.
15815 (df_chain_unlink) Likewise.
15816 (df_chain_remove_problem) Likewise.
15817 (df_chain_alloc) Likewise.
15818 (df_chain_free) Likewise.
15819 * df.h (struct dataflow) Likewise.
15821 2015-06-01 Martin Liska <mliska@suse.cz>
15823 * cselib.c (new_elt_list):Use new type-based pool allocator.
15824 (new_elt_loc_list) Likewise.
15825 (unchain_one_elt_list) Likewise.
15826 (unchain_one_elt_loc_list) Likewise.
15827 (unchain_one_value) Likewise.
15828 (new_cselib_val) Likewise.
15829 (cselib_init) Likewise.
15830 (cselib_finish) Likewise.
15832 2015-06-01 Martin Liska <mliska@suse.cz>
15834 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15835 (sh_reorg) Likewise.
15837 2015-06-01 Martin Liska <mliska@suse.cz>
15839 * cfg.c (initialize_original_copy_tables):Use new type-based
15841 (free_original_copy_tables) Likewise.
15842 (copy_original_table_clear) Likewise.
15843 (copy_original_table_set) Likewise.
15845 2015-06-01 Martin Liska <mliska@suse.cz>
15847 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15849 (asan_mem_ref_new) Likewise.
15850 (free_mem_ref_resources) Likewise.
15852 2015-06-01 Martin Liska <mliska@suse.cz>
15854 * var-tracking.c (variable_htab_free):Use new type-based
15856 (attrs_list_clear) Likewise.
15857 (attrs_list_insert) Likewise.
15858 (attrs_list_copy) Likewise.
15859 (shared_hash_unshare) Likewise.
15860 (shared_hash_destroy) Likewise.
15861 (unshare_variable) Likewise.
15862 (var_reg_delete_and_set) Likewise.
15863 (var_reg_delete) Likewise.
15864 (var_regno_delete) Likewise.
15865 (drop_overlapping_mem_locs) Likewise.
15866 (variable_union) Likewise.
15867 (insert_into_intersection) Likewise.
15868 (canonicalize_values_star) Likewise.
15869 (variable_merge_over_cur) Likewise.
15870 (dataflow_set_merge) Likewise.
15871 (remove_duplicate_values) Likewise.
15872 (variable_post_merge_new_vals) Likewise.
15873 (dataflow_set_preserve_mem_locs) Likewise.
15874 (dataflow_set_remove_mem_locs) Likewise.
15875 (variable_from_dropped) Likewise.
15876 (variable_was_changed) Likewise.
15877 (set_slot_part) Likewise.
15878 (clobber_slot_part) Likewise.
15879 (delete_slot_part) Likewise.
15880 (loc_exp_insert_dep) Likewise.
15881 (notify_dependents_of_changed_value) Likewise.
15882 (emit_notes_for_differences_1) Likewise.
15883 (vt_emit_notes) Likewise.
15884 (vt_initialize) Likewise.
15885 (vt_finalize) Likewise.
15887 2015-06-01 Martin Liska <mliska@suse.cz>
15889 * ira-color.c (init_update_cost_records):Use new type-based
15891 (get_update_cost_record) Likewise.
15892 (free_update_cost_record_list) Likewise.
15893 (finish_update_cost_records) Likewise.
15894 (initiate_cost_update) Likewise.
15896 2015-06-01 Martin Liska <mliska@suse.cz>
15898 * lra.c (init_insn_regs): Use new type-based pool allocator.
15899 (new_insn_reg) Likewise.
15900 (free_insn_reg) Likewise.
15901 (free_insn_regs) Likewise.
15902 (finish_insn_regs) Likewise.
15903 (init_insn_recog_data) Likewise.
15904 (init_reg_info) Likewise.
15905 (finish_reg_info) Likewise.
15906 (lra_free_copies) Likewise.
15907 (lra_create_copy) Likewise.
15908 (invalidate_insn_data_regno_info) Likewise.
15910 2015-06-01 Martin Liska <mliska@suse.cz>
15912 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15913 (free_live_range_list) Likewise.
15914 (create_live_range) Likewise.
15915 (copy_live_range) Likewise.
15916 (lra_merge_live_ranges) Likewise.
15917 (remove_some_program_points_and_update_live_ranges) Likewise.
15918 (lra_live_ranges_init) Likewise.
15919 (lra_live_ranges_finish) Likewise.
15921 2015-06-01 Martin Liska <mliska@suse.cz>
15923 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15924 (et_new_tree): Likewise.
15925 (et_free_tree): Likewise.
15926 (et_free_tree_force): Likewise.
15927 (et_free_pools): Likewise.
15928 (et_split): Likewise.
15930 2015-06-01 Martin Liska <mliska@suse.cz>
15932 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15934 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15935 (pool_allocator::release): Likewise.
15936 (inline pool_allocator::release_if_empty): Likewise.
15937 (inline pool_allocator::~pool_allocator): Likewise.
15938 (pool_allocator::allocate): Likewise.
15939 (pool_allocator::remove): Likewise.
15941 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15943 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15946 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15948 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15950 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15951 (arm_macro_fusion_p): Likewise.
15952 (arm_macro_fusion_pair_p): Likewise.
15954 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15956 * config/aarch64/aarch64-protos.h (tune_params): Rename
15957 fuseable_ops to fusible_ops.
15958 * config/aarch64/aarch64.c (generic_tunings): Rename
15959 fuseable_ops to fusible_ops.
15960 (cortexa53_tunings): Likewise.
15961 (cortexa57_tunings): Likewise.
15962 (thunderx_tunings): Likewise.
15963 (xgene1_tunings): Likewise.
15964 (aarch64_macro_fusion_p): Likewise.
15965 (aarch64_macro_fusion_pair_p): Likewise.
15967 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15969 * config/s390/driver-native.c: New file.
15970 * config/s390/x-native: New file.
15971 * config.host: Add new files for s390.
15972 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15974 * config.gcc: Likewise.
15975 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15976 * config/s390/s390-opts.h (enum processor_type): Ditto.
15977 * config/s390/s390.c (s390_option_override): Catch unhandled
15980 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15983 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15984 redirection for instrumented calls.
15985 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15986 (append_compiler_options): Append -fcheck-pointer-bounds.
15987 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15988 (chkp_redirect_edge): New.
15989 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15990 (chkp_redirect_edge): New.
15992 2015-06-01 Richard Biener <rguenther@suse.de>
15994 PR tree-optimization/66280
15995 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15998 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16000 * config/aarch64/aarch64.md
16001 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16004 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16006 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16007 Remove obsolete kludge.
16009 2015-06-01 Richard Biener <rguenther@suse.de>
16011 * tree-ssa-reassoc.c (get_rank): Simplify.
16013 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
16015 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16016 * configure: Regenerated.
16018 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
16020 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16021 issue (add space between string literal and macro).
16022 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16024 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
16026 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16027 implict or explicit -fPIE or -fpie.
16029 2015-05-30 Mike Frysinger <vapier@gentoo.org>
16031 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16033 2015-05-28 DJ Delorie <dj@redhat.com>
16035 * expmed.c (extract_bit_field_1): Avoid clobbering a
16036 yet-to-be-used base/index register.
16038 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
16040 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16041 (alias_stats): Add num_universal.
16042 (alias_set_subset_of): Special case pointers; be ready for NULL
16044 (alias_sets_conflict_p): Special case pointers; be ready for NULL
16046 (init_alias_set_entry): Break out from ...
16047 (record_alias_subset): ... here; propagate new fields;
16048 allocate children only when really needed.
16049 (get_alias_set): Do less generous pointer globbing.
16050 (dump_alias_stats_in_alias_c): Update statistics.
16052 2015-05-30 Alan Modra <amodra@gmail.com>
16054 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16055 correct block for use of r12.
16056 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16058 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16061 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16064 2015-05-29 Jakub Jelinek <jakub@redhat.com>
16066 PR tree-optimization/66142
16067 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16068 virtual phis that feed themselves.
16070 2015-05-29 Richard Biener <rguenther@suse.de>
16072 PR tree-optimization/66314
16073 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16074 parameter that says which loop the new block belongs to.
16075 (ssa_create_duplicates): Blocks duplicated for the threaded
16076 path belong to the loop of the thread destination.
16078 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16080 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16081 to cleanup-saved-temps.
16082 * doc/sourcebuild.texi (Clean up generated test files): Expand
16084 (dg-keep-saved-temps): Document new proc.
16085 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16086 cleanup-saved-temps): Remove.
16088 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16090 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16091 gcc_AC_CHECK_DECLS.
16092 * configure: Regenerate.
16094 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16096 * config/nios2/linux.h (CPP_SPEC): Define.
16098 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16100 * config/microblaze/linux.h (CPP_SPEC): Define.
16102 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16104 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16105 -pthread is specified.
16107 2015-05-28 Richard Biener <rguenther@suse.de>
16109 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16110 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16111 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16112 after pattern recog.
16113 (vect_create_epilog_for_reduction): Properly handle reductions
16115 (vectorizable_reduction): Likewise.
16116 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16118 (vect_get_constant_vectors): Create the correct number of
16119 initial values for reductions.
16120 (vect_schedule_slp_instance): Handle reduction chains that are
16121 type changing properly.
16122 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16124 2015-05-28 Richard Biener <rguenther@suse.de>
16126 PR tree-optimization/66142
16127 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16128 values better in memcpy destination handling. Handle non-aliasing
16131 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16134 * config/darwin-c.c (version_components): New global enum.
16135 (parse_version, version_as_legacy_macro)
16136 (version_as_modern_macro, macosx_version_as_macro): New functions.
16137 (version_as_macro): Remove.
16138 (darwin_cpp_builtins): Use new function.
16140 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16142 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16143 with ATTRIBUTE_UNUSED.
16145 2015-05-28 Julian Brown <julian@codesourcery.com>
16149 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16150 sequence for !ACCEL_COMPILER.
16152 2015-05-28 Nick Clifton <nickc@redhat.com>
16154 * config/rx/rx.c (push_regs): New function. Extracts code from...
16155 (rx_expand_prologue): ... here. Use push_regs to push even small
16156 spans of registers.
16157 (pop_regs): New function.
16158 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16161 2015-05-28 Richard Biener <rguenther@suse.de>
16163 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16165 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16166 (vect_update_slp_costs_according_to_vf): Likewise.
16167 (vect_slp_analyze_operations): Update prototype.
16168 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16169 vect_update_slp_costs_according_to_vf, adjust.
16170 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16171 (vect_analyze_slp_cost_1): Likewise.
16172 (vect_analyze_slp_cost): Likewise. Properly deal with
16173 widening reduction ops. Commit body costs.
16174 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16175 cost for loops from here.
16176 (vect_slp_analyze_operations): But do it from here when
16177 the vectorization factor is known and stmts are analyzed.
16178 (vect_bb_vectorization_profitable_p): Simplify.
16179 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16180 (vect_update_slp_costs_according_to_vf): Remove.
16182 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16183 H.J. Lu <hongjiu.lu@intel.com>
16185 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16186 (BUILD_CFLAGS): Likewise.
16187 (BUILD_CXXFLAGS): Likewise.
16188 (LINKER): Add @NO_PIE_FLAG@.
16189 (BUILD_LDFLAGS): Likewise.
16190 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16191 --enable-default-pie.
16192 * common.opt (fPIE): Initialize to -1.
16194 (no-pie): New option.
16195 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16196 * configure.ac: Add --enable-default-pie.
16197 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16198 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16199 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16200 * gcc.c (NO_PIE_SPEC): New.
16201 (PIE_SPEC): Likewise.
16202 (NO_FPIE1_SPEC): Likewise.
16203 (FPIE1_SPEC): Likewise.
16204 (NO_FPIE2_SPEC): Likewise.
16205 (FPIE2_SPEC): Likewise.
16206 (NO_FPIE2_SPEC): Likewise.
16207 (FPIE_SPEC): Likewise.
16208 (NO_FPIE_SPEC): Likewise.
16209 (NO_FPIC1_SPEC): Likewise.
16210 (FPIC1_SPEC): Likewise.
16211 (NO_FPIC2_SPEC): Likewise.
16212 (FPIC2_SPEC): Likewise.
16213 (NO_FPIC2_SPEC): Likewise.
16214 (FPIC_SPEC): Likewise.
16215 (NO_FPIC_SPEC): Likewise.
16216 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16217 (FPIE1_OR_FPIC1_SPEC): Likewise.
16218 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16219 (FPIE2_OR_FPIC2_SPEC): Likewise.
16220 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16221 (FPIE_OR_FPIC_SPEC): Likewise.
16222 (LD_PIE_SPEC): Likewise.
16223 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16224 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16225 * config/darwin.h (PIE_SPEC): Renamed to ...
16226 (DARWIN_PIE_SPEC): This.
16227 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16228 * config/darwin9.h (PIE_SPEC): Renamed to ...
16229 (DARWIN_PIE_SPEC): This.
16230 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16231 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16232 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16233 FPIE2_OR_FPIC2_SPEC.
16234 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16235 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16236 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16237 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16238 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16239 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16240 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16241 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16242 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16243 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16244 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16245 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16246 * config/sparc/linux.h (ASM_SPEC): Likewise.
16247 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16248 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16249 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16250 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16251 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16252 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16253 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16254 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16255 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16256 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16257 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16258 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16259 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16260 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16261 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16262 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16263 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16264 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16265 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16266 * config/vax/linux.h (ASM_SPEC): Likewise.
16267 * doc/install.texi: Document --enable-default-pie.
16268 * doc/invoke.texi: Document -no-pie.
16269 * config.in: Regenerated.
16270 * configure: Likewise.
16272 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16274 PR rtl-optimization/66168
16275 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16276 can_move_invariant_reg.
16278 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16281 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16282 REG_EQUAL note when doing insert.
16284 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16285 instead of "%d" for 'o' operand.
16287 2015-05-27 Nathan Sidwell <nathan@acm.org>
16290 * tree.c (build_pointer_type_for_mode): Canonical type does not
16291 inherit can_alias_all.
16292 (build_reference_type_for_mode): Likewise.
16294 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16296 * expr.h (array_at_struct_end_p): Move to...
16297 (array_ref_element_size): Likewise.
16298 (component_ref_field_offset): Likewise.
16299 * tree.h (array_ref_element_size): ...here.
16300 (array_at_struct_end_p): Likewise.
16301 (component_ref_field_offset): Likewise.
16302 * expr.c (array_ref_element_size): Move to...
16303 (array_ref_low_bound): Likewise.
16304 (array_at_struct_end_p): Likewise.
16305 (array_ref_up_bound): Likewise.
16306 (component_ref_field_offset): Likewise.
16307 * tree.c (array_ref_element_size): ...here.
16308 (array_ref_low_bound): Likewise.
16309 (array_ref_up_bound): Likewise.
16310 (array_at_struct_end_p): Likewise.
16311 (component_ref_field_offset): Likewise.
16313 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16314 Szabolcs Nagy <szabolcs.nagy@arm.com>
16316 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16318 2015-05-27 Jason Merrill <jason@redhat.com>
16321 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16322 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16323 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16325 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16327 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16330 * statistics.c (statistics_fini_pass): Print pass name.
16332 2015-05-27 Richard Biener <rguenther@suse.de>
16334 PR tree-optimization/66272
16336 2014-08-15 Richard Biener <rguenther@suse.de>
16338 PR tree-optimization/62031
16339 * tree-data-ref.c (dr_analyze_indices): Do not set
16340 DR_UNCONSTRAINED_BASE.
16341 (dr_may_alias_p): All indirect accesses have to go the
16342 formerly DR_UNCONSTRAINED_BASE path.
16343 * tree-data-ref.h (struct indices): Remove
16344 unconstrained_base member.
16345 (DR_UNCONSTRAINED_BASE): Remove.
16347 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16349 * dwarf2out.c: Remove block_map.
16350 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16351 (gen_lexical_block_die): Same.
16352 (dwarf2out_function_decl): Remove block_map use.
16353 (dwarf2out_c_finalize): Same.
16354 * tree-core.h (struct tree_block): Add die field.
16355 * tree.h (BLOCK_DIE): New.
16357 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16360 * expr.c (memory_load_overlap): New function.
16361 (emit_push_insn): When pushing partial args to the stack would
16362 clobber the register part load the overlapping part into a pseudo
16363 and put it into the hard reg after pushing. Change return type
16364 to bool. Add bool argument.
16365 * expr.h (emit_push_insn): Change return type to bool.
16367 * calls.c (expand_call): Cancel sibcall optimization when encountering
16368 partial argument on targets with ARGS_GROW_DOWNWARD and
16369 !STACK_GROWS_DOWNWARD.
16370 (emit_library_call_value_1): Update callsite of emit_push_insn.
16371 (store_one_arg): Likewise.
16373 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16375 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16377 2015-05-27 Martin Liska <mliska@suse.cz>
16379 * Makefile.in: Add additional dependencies related to memory report
16381 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16382 * bitmap.c (struct bitmap_descriptor_d): Remove.
16383 (struct loc): Likewise.
16384 (struct bitmap_desc_hasher): Likewise.
16385 (bitmap_desc_hasher::hash): Likewise.
16386 (bitmap_desc_hasher::equal): Likewise.
16387 (get_bitmap_descriptor): Likewise.
16388 (bitmap_register): User new memory descriptor API.
16389 (register_overhead): Likewise.
16390 (bitmap_find_bit): Register nsearches and search_iter statistics.
16391 (struct bitmap_output_info): Remove.
16392 (print_statistics): Likewise.
16393 (dump_bitmap_statistics): Use new memory descriptor.
16394 * bitmap.h (struct bitmap_usage): New class.
16395 * genmatch.c: Extend header file inclusion.
16396 * genpreds.c: Likewise.
16397 * ggc-common.c (struct ggc_usage): New class.
16398 (struct ggc_loc_desc_hasher): Remove.
16399 (ggc_loc_desc_hasher::hash): Likewise.
16400 (ggc_loc_desc_hasher::equal): Likewise.
16401 (struct ggc_ptr_hash_entry): Likewise.
16402 (struct ptr_hash_hasher): Likewise.
16403 (ptr_hash_hasher::hash): Likewise.
16404 (ptr_hash_hasher::equal): Likewise.
16405 (make_loc_descriptor): Likewise.
16406 (ggc_prune_ptr): Likewise.
16407 (dump_ggc_loc_statistics): Use new memory descriptor.
16408 (ggc_record_overhead): Likewise.
16409 (ggc_free_overhead): Likewise.
16410 (final_cmp_statistic): Remove.
16411 (cmp_statistic): Likewise.
16412 (ggc_add_statistics): Liekwise.
16413 (ggc_prune_overhead_list): Likewise.
16414 * hash-map-traits.h: New file.
16415 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16416 separate header file.
16417 * hash-set.h: Pass memory statistics info to ctor.
16418 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16419 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16420 (hash_table::~hash_table): Register memory release operation.
16421 (hash_table::alloc_entries): Handle memory allocation operation.
16422 (hash_table::expand): Likewise.
16423 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16425 (iterative_hash_host_wide_int): Likewise.
16426 * inchash.h (class hash): Likewise.
16427 * mem-stats-traits.h: New file.
16428 * mem-stats.h: New file.
16429 (mem_location): Add new class.
16430 (mem_usage): Likewise.
16431 (mem_alloc_description): Likewise.
16432 * sese.c: Add new header file inclusision.
16433 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16435 * tree-sra.c: Add new header file inclusision.
16436 * vec.c (struct vec_descriptor): Remove.
16437 (hash_descriptor): Likewise.
16438 (struct vec_usage): Likewise.
16439 (struct ptr_hash_entry): Likewise.
16440 (hash_ptr): Likewise.
16441 (eq_ptr): Likewise.
16442 (vec_prefix::register_overhead): Use new memory descriptor API.
16443 (vec_prefix::release_overhead): Likewise.
16444 (add_statistics): Remove.
16445 (dump_vec_loc_statistics): Use new memory descriptor API.
16446 * vec.h (struct vec_prefix): Likewise.
16447 (va_heap::reserve): Likewise.
16448 (va_heap::release): Likewise.
16449 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16451 2015-05-27 Richard Biener <rguenther@suse.de>
16453 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16454 earlier and remove ??? comment.
16455 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16456 and got called from loop analysis bail out. Always pass the SLP
16457 node to the vectorizable_* functions.
16458 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16459 the premature SLP check here.
16460 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16461 detected SLP stmts.
16462 (vect_detect_hybrid_slp_1): Likewise.
16464 2015-05-26 Jeff Law <law@redhat.com>
16466 * combine.c (find_split_point): Verify that the shift count is a
16467 constant when choosing (plus (ashift ...)) as a split point.
16469 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16470 No functional changes.
16472 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16474 * ipa-polymorphic-call.c
16475 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16476 case when call target is already known.
16478 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16481 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16482 take into account the case that operands[1] and operands[2]
16483 are the same register.
16485 2015-05-26 Michael Matz <matz@suse.de>
16487 PR middle-end/66251
16489 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16491 (vect_create_vectorized_demotion_stmts): Always set
16492 STMT_VINFO_VEC_STMT, also with SLP.
16493 (vectorizable_store): Handle strided group stores.
16495 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16498 * config/aarch64/aarch64.md
16499 (*adds_shift_imm_<mode>): New pattern.
16500 (*subs_shift_imm_<mode>): Likewise.
16501 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16502 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16503 (*add_uxt<mode>_shift2): Likewise.
16504 (*add_uxtsi_shift2_uxtw): Likewise.
16505 (*sub_uxt<mode>_shift2): Likewise.
16506 (*sub_uxtsi_shift2_uxtw): Likewise.
16508 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16510 * config/rs6000/constraints.md (Y, U): Use match_test.
16512 2015-05-26 Christian Bruel <christian.bruel@st.com>
16515 * config/arm/arm.c (arm_option_check_internal)
16516 (arm_option_params_internal): Check opts->target_flags to set macros.
16517 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16518 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16519 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16520 (builtin_define): Replaced with def_or_undef_macro.
16521 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16522 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16523 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16524 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16525 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16526 (TARGET_ARM_FEATURE_LDREX_P)
16527 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16528 * config/arm/arm-c.c (def_or_undef_macro): New function.
16529 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16531 2015-05-26 Christian Bruel <christian.bruel@st.com>
16533 * c-common.h (builtin_define_with_int_value)
16534 (builtin_define_type_sizeof): Declare.
16535 * c-cppbuiltin.c (builtin_define_with_int_value)
16536 (builtin_define_type_sizeof): Externalize.
16537 (builtin_define_std): Cleanup declaration.
16538 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16539 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16540 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16541 (builtin_define, builtin_assert): New macros.
16543 2015-05-26 Richard Biener <rguenther@suse.de>
16545 PR tree-optimization/66142
16546 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16547 MEM_REFs for the same base address.
16549 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16552 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16554 2015-05-26 Jason Merrill <jason@redhat.com>
16556 * configure.ac: Set CXXFLAGS for ISL test.
16557 * configure: Regenerate.
16559 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16560 strstr and basename.
16561 * configure: Regenerate.
16563 2015-05-26 Richard Biener <rguenther@suse.de>
16565 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16566 X % C -> X & (C - 1) for C being a power-of two to ...
16567 * match.pd: ... patterns.
16569 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16571 * match.pd (swapped_tcc_comparison): New operator list.
16572 (-A CMP -B): New simplification.
16573 * fold-const.c (fold_comparison): Remove corresponding code.
16575 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16577 * caller-save.c (init_caller_save): Base temporary register numbers
16578 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16579 * cfgloopanal.c (init_set_costs): Likewise.
16580 * dojump.c (prefer_and_bit_test): Likewise.
16581 * expr.c (init_expr_target): Likewise.
16582 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16583 * lower-subreg.c (init_lower_subreg): Likewise.
16584 * postreload.c (reload_cse_regs_1): Likewise.
16586 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16588 * gensupport.h (compute_test_codes): Declare.
16589 * gensupport.c (compute_predicate_codes): Rename to...
16590 (compute_test_codes): ...this. Generalize error message.
16591 (process_define_predicate): Update accordingly.
16592 * genpreds.c (compute_maybe_allows): Delete.
16593 (add_constraint): Use compute_test_codes to determine whether
16594 something can accept a SUBREG, REG or MEM.
16596 2015-05-26 Torvald Riegel <triegel@redhat.com>
16598 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16599 'memory model' to align with C++11; fix description of memory orders;
16602 2015-05-26 Richard Biener <rguenther@suse.de>
16604 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16605 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16606 detect whether we apply SLP. Remove call to
16607 vect_update_slp_costs_according_to_vf.
16608 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16609 vect_update_slp_costs_according_to_vf from here. Dispatch
16610 to vect_slp_analyze_operations to analyze SLP stmts.
16611 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16612 unused bb_vec_info parameter, adjust assert.
16613 (vect_slp_analyze_operations): Pass in the slp instance tree
16614 instead of bb_vec_info.
16615 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16616 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16618 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16620 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16621 Q_REGS. Expand comment.
16622 (REG_CLASS_NAMES): Ditto.
16623 (REG_CLASS_CONTENTS): Ditto.
16625 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16628 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16629 when LEGACY_INT_REGNO_P is processed.
16631 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16633 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16635 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16637 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16638 register if not marked dead/unused, before return.
16640 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16643 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16644 is set; check for assembler name at LTO time.
16645 (type_in_anonymous_namespace): Remove hacks, check that all
16646 anonymous types are called "<anon>"
16647 (odr_type_p): Simplify; add check for "<anon>"
16648 (odr_subtypes_equivalent): Add odr_type_p check.
16649 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16652 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16654 * ipa-utils.h (method_class_type): Remove.
16655 * cgraphunit.c (walk_polymorphic_call_targets): Use
16656 TYPE_METHOD_BASETYPE.
16657 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16658 on main variants only.
16659 (method_class_type): Remove.
16660 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16661 (build_type_inheritance_graph): Likewise.
16662 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16663 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16664 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16666 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16668 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16669 is_typedef_decl, typedef_variant_p): Constify.
16670 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16671 is_typedef_decl, typedef_variant_p): Constify.
16673 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16675 * defaults.h (gen_tablejump): New function.
16676 (HAVE_tablejump): Add default value.
16678 * stmt.c: Likewise.
16680 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16682 * defaults.h (gen_store_multiple): New function.
16683 (HAVE_store_multiple): Add default value.
16684 * expr.c (move_block_from_reg): Adjust.
16686 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16688 * defaults.h (gen_load_multiple): New function.
16689 (HAVE_load_multiple): Add default value.
16690 * expr.c (move_block_to_reg): Adjust.
16692 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16694 * defaults.h (gen_mem_signal_fence): New function.
16695 (HAVE_mem_signal_fence): Add default value.
16696 * optabs.c: Adjust.
16698 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16700 * defaults.h (gen_memory_barrier): New function.
16701 (HAVE_memory_barrier): Add default value.
16702 * optabs.c: Adjust.
16704 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16706 * defaults.h (gen_mem_thread_fence): New function.
16707 (HAVE_mem_thread_fence): Add default definition.
16708 * optabs.c: Adjust.
16710 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16712 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16713 instead of if it is defined.
16714 (combine_simplify_rtx): Likewise.
16715 * lra-constraints.c (process_address_1): Likewise.
16716 * config/darwin.c: Adjust.
16717 * genconfig.c (main): Always define HAVE_lo_sum.
16719 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16721 * genmatch.c (parser::parse_operation): Reject expanding
16722 operator-list inside 'for'.
16724 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16726 * genmatch.c (parser::parse_for): Reject iterator if used as
16729 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16731 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16732 after end of id-list.
16734 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16736 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16737 we do not try to compute canonical type for type that does not need
16739 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16741 * tree.h (type_with_alias_set_p): New.
16743 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16745 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16746 function attributes.
16747 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16749 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16751 * Makefile.in (check_gcc_parallelize): Delete.
16752 (lang_checks_parallelized): Update comment.
16754 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16756 PR rtl-optimization/66237
16757 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16758 location of an "as_a" cast.
16760 2015-05-22 Jeff Law <law@redhat.com>
16762 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16763 (peepholes with non-canonical RTL sources): Remove.
16764 (peepholes for indexed stores of FP regs in integer modes): Match and
16765 generate canonical RTL.
16767 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16769 PR tree-optimization/63387
16770 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16771 ((x ord x) & (y ord y) -> (x ord y),
16772 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16773 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16774 vectors like scalars.
16776 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16778 * convert.c (convert_to_integer, convert_to_vector): Include the
16779 types in the error message.
16781 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16783 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16786 2015-05-22 Jeff Law <law@redhat.com>
16788 * config/pa/pa.md (integer_indexed_store splitters): Use
16789 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16790 insns -- adjusting the constant 2nd operand accordingly.
16792 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16793 (plus (ashift X log2) Y) if it is a split point.
16795 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16796 out of hppa_legitimize_address to handle both forms of a multiply
16798 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16799 Always generate the ASHIFT variant as the result is not directly
16800 used in a MEM. Update comments and refactor slightly to improve
16803 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16806 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16807 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16808 (aarch64_composite_type_p): Return false if given type and mode are
16809 for a short vector.
16811 2015-05-22 Richard Biener <rguenther@suse.de>
16813 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16815 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16816 patterns when determining whether SLP is pure.
16817 (vect_is_slp_reduction): Remove check for pattern stmts.
16818 (vect_is_simple_reduction_1): Remove dead code.
16819 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16820 (vect_get_and_check_slp_defs): Pass in the stmt number.
16821 Allow the first def in a reduction to be not a pattern stmt when
16822 the rest of the stmts def are patterns.
16823 (vect_build_slp_tree_1): Allow tcc_expression codes like
16824 SAD_EXPR and DOT_PROD_EXPR.
16825 (vect_build_slp_tree): Adjust.
16826 (vect_analyze_slp): Refactor and move BB vect error message ...
16827 (vect_slp_analyze_bb_1): ... here.
16829 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16831 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16832 for CSWTCH temporary.
16834 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16836 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16837 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16840 2015-05-22 Richard Biener <rguenther@suse.de>
16842 PR tree-optimization/66251
16843 * tree-vect-stmts.c (vectorizable_conversion): Properly
16844 set STMT_VINFO_VEC_STMT even for the SLP case.
16846 2015-05-22 Marek Polacek <polacek@redhat.com>
16848 * doc/extend.texi: Use @pxref instead of @xref.
16850 2015-05-22 hiraditya <hiraditya@msn.com>
16852 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16855 2015-05-22 Richard Biener <rguenther@suse.de>
16857 PR tree-optimization/65701
16858 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16859 Move peeling cost models into one place. Peel for alignment
16860 for single loads only if an aligned load is cheaper than
16863 2015-05-22 Marek Polacek <polacek@redhat.com>
16866 * doc/extend.texi (Enumerator Attributes): New section.
16867 Document syntax of enumerator attributes.
16869 2015-05-22 Richard Biener <rguenther@suse.de>
16871 * tree-vect-loop.c (get_reduction_op): New function.
16872 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16873 Make ready for BB reductions.
16874 (vect_create_epilog_for_reduction): Use get_reduction_op.
16875 (vectorizable_reduction): Init reduc_index to a valid value.
16876 Adjust vect_model_reduction_cost call.
16877 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16878 operand for reduction defaults. Add SAD_EXPR support.
16879 Assert we have a neutral op for SLP reductions.
16880 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16881 walking pattern stmt ops only recurse to SSA names.
16883 2015-05-22 Richard Biener <rguenther@suse.de>
16885 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16886 assert with guard, remove check on detected reduction.
16887 (vect_recog_sad_pattern): Likewise.
16888 (vect_recog_widen_sum_pattern): Likewise.
16890 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16892 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16893 __always_inline__ attribute.
16894 (vaesdq_u8): Likewise.
16895 (vaesmcq_u8): Likewise.
16896 (vaesimcq_u8): Likewise.
16897 (vsha1cq_u32): Likewise.
16898 (vsha1mq_u32): Likewise.
16899 (vsha1pq_u32): Likewise.
16900 (vsha1h_u32): Likewise.
16901 (vsha1su0q_u32): Likewise.
16902 (vsha1su1q_u32): Likewise.
16903 (vsha256hq_u32): Likewise.
16904 (vsha256h2q_u32): Likewise.
16905 (vsha256su0q_u32): Likewise.
16906 (vsha256su1q_u32): Likewise.
16907 (vmull_p64): Likewise.
16908 (vmull_high_p64): Likewise.
16910 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16912 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16914 * output.h: Likewise.
16915 * genconfig.c (main): Alwways define HAVE_peephole.
16916 * genpeep.c: Don't emit checks of HAVE_peephole.
16918 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16920 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16921 check HAVE_conditional_move with the preprocessor.
16923 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16925 * genconfig.c (main): Always define HAVE_conditional_move.
16926 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16927 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16930 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16932 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16933 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16934 and FRAME_POINTER_REGNUM with the preprocessor.
16936 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16938 * defaults.h: Add default for STACK_PUSH_CODE.
16939 * expr.c: Don't redefine STACK_PUSH_CODE.
16940 * recog.c: Likewise.
16942 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16944 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16945 sched-deps.c: Use if instead of preprocessor checks with
16946 STACK_GROWS_DOWNWARD.
16948 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16950 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16952 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16953 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16954 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16955 * doc/tm.texi: Regenerate.
16957 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16960 * config/i386/constraints.md (Bg): New constraint for GOT memory
16962 * config/i386/i386.md (*call_got_x32): New pattern.
16963 (*call_value_got_x32): Likewise.
16964 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16966 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16968 PR tree-optimization/66233
16969 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16972 2015-05-21 Jeff Law <law@redhat.com>
16974 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16975 than MULT for shadd sequences.
16977 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16979 * alias.c (alias_stats): New static var.
16980 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16981 (dump_alias_stats_in_alias_c): New function.
16982 * alias.h (dump_alias_stats_in_alias_c): Declare.
16983 * tree-ssa-alias.c (dump_alias_stats): Call it.
16985 2015-05-08 Michael Matz <matz@suse.de>
16987 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16989 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16990 (STMT_VINFO_STRIDED_P): ... this.
16991 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16992 (vect_verify_datarefs_alignment): Likewise.
16993 (vect_enhance_data_refs_alignment): Likewise.
16994 (vect_analyze_data_ref_access): Likewise.
16995 (vect_analyze_data_refs): Accept strided stores.
16996 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16997 (vect_model_load_cost): Adjust for macro rename.
16998 (vectorizable_mask_load_store): Likewise.
16999 (vectorizable_load): Likewise.
17000 (vectorizable_store): Open code strided stores.
17002 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17004 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17005 Document sqrt_insn.
17007 2015-05-21 Richard Biener <rguenther@suse.de>
17010 * match.pd: Guard pattern optimzing (int)(float)int
17011 conversions to apply only on GIMPLE.
17013 2015-05-21 Jeff Law <law@redhat.com>
17015 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17016 multiply-accumulate/shift-add insn generation.
17018 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17021 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17022 operands[1] are the same.
17024 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
17026 PR middle-end/66221
17027 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17028 build_distinct_type_copy to copy bounds.
17030 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
17032 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17033 Change to unsigned int.
17035 2015-05-20 Jeff Law <law@redhat.com>
17037 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17038 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17039 (pa_shadd_constant_p): Allow constants for shadd insns rather
17040 than valid scaling constants for memory addresses.
17041 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17042 * config/pa/predicates.md (mem_shadd_operand): New predicate.
17043 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17044 (shift-add insns using ASHIFT): New patterns.
17046 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
17048 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17050 (fix_up_fall_thru_edges): Likewise.
17051 (fix_crossing_conditional_branches): Likewise. Promote jump targets
17052 from to rtx_insn to rtx_code_label where feasible.
17053 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17054 gen_move_insn (returned type changed to rtx_insn).
17055 * builtins.c (expand_errno_check): Fix arguments of
17056 do_compare_rtx_and_jump (now expects rtx_code_label).
17057 (expand_builtin_acc_on_device): Likewise.
17058 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17059 invert_jump (now exprects rtx_jump_insn).
17060 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17061 (construct_init_block): Use rtx_code_label.
17062 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17063 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17064 calling redirect_jump.
17065 (patch_jump_insn): Likewise.
17066 (redirect_branch_edge): Likewise.
17067 (force_nonfallthru_and_redirect): Likewise.
17068 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17070 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17071 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17072 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17073 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17074 to store the value retured by gen_label_rtx.
17075 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17077 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17078 (split_branches): Fix calls of redirect_jump.
17079 * dojump.c (jumpifnot): Promote argument type from rtx to
17081 (jumpifnot_1): Likewise.
17082 (jumpif): Likewise.
17083 (jumpif_1): Likewise.
17084 (do_jump_1): Likewise.
17085 (do_jump): Likewise. Use rtx_code_label when feasible.
17086 (do_jump_by_parts_greater_rtx): Likewise.
17087 (do_jump_by_parts_zero_rtx): Likewise.
17088 (do_jump_by_parts_equality_rtx): Likewise.
17089 (do_compare_rtx_and_jump): Likewise.
17090 * dojump.h: Update function prototypes.
17091 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17093 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17095 (emit_label_before): Likewise.
17096 (emit_jump_insn_after_noloc): Likewise.
17097 (emit_jump_insn_after_setloc): Likewise.
17098 (emit_jump_insn_after): Likewise
17099 (emit_jump_insn_before_setloc): Likewise.
17100 (emit_jump_insn_before): Likewise.
17101 (emit_label_before): Promote return type to rtx_code_label.
17102 (emit_label): Likewise.
17103 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17104 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17106 (emit_stack_restore): Likewise.
17107 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17108 (do_cmp_and_jump): Likewise.
17109 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17110 from rtx to rtx_code_label.
17111 (gen_move_insn_uncast): New function.
17112 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17113 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17114 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17115 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17116 invert_jump_1 and redirect_jump_1.
17117 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17118 do_compare_rtx_and_jump.
17119 (expand_addsub_overflow): Likewise.
17120 (expand_neg_overflow): Likewise.
17121 (expand_mul_overflow): Likewise.
17122 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17123 return value of gen_move_insn.
17124 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17125 * loop-doloop.c (add_test): Use rtx_code_label.
17126 (doloop_modify): Likewise.
17127 (doloop_optimize): Likewise.
17128 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17129 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17131 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17132 (split_reg): Likewise.
17133 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17135 * optabs.c (expand_binop_directly): Remove casts of values returned by
17137 (expand_unop_direct): Likewise.
17138 (expand_abs): Likewise.
17139 (maybe_emit_unop_insn): Likewise.
17140 (maybe_gen_insn): Promote return type to rtx_insn.
17141 * optabs.h: Update prototype of maybe_gen_insn.
17142 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17144 * recog.c (struct peep2_insn_data): Promote type of insn field to
17146 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17147 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17148 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17149 * recog.h (struct insn_gen_fn): Promote return types of function
17150 pointers and operator ().from rtx to rtx_insn.
17151 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17152 (fill_eager_delay_slots): Likewise.
17153 (relax_delay_slots): Likewise.
17154 (make_return_insns): Likewise.
17155 (dbr_schedule): Likewise.
17156 (optimize_skips): Likewise.
17157 (reorg_redirect_jump): Likewise.
17158 (fill_slots_from_thread): Likewise.
17159 * reorg.h: Update prototypes.
17160 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17161 rtx_jump_insn instead of check. Use it's jump_target method.
17162 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17163 (rtx_jump_insn::jump_target): Define new method.
17164 (rtx_jump_insn::set_jump_target): Define new method.
17165 * rtlanal.c (tablejump_p): Promote type of one local variable.
17166 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17167 (sched_analyze_insn): Likewise.
17168 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17169 (print_insn): Likewise.
17170 * stmt.c (label_rtx): Promote return type to rtx_insn.
17171 (force_label_rtx): Likewise.
17172 (jump_target_rtx): Define new function.
17173 (expand_label): Use it, get rid of one cast.
17174 (expand_naked_return): Promote rtx to rtx_code_label.
17175 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17176 (expand_case): Use rtx_code_label instread of rtx where feasible.
17177 (expand_sjlj_dispatch_table): Likewise.
17178 (emit_case_nodes): Likewise.
17179 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17180 * store-motion.c (insert_store): Make use of new return type of
17181 gen_move_insn and remove a cast.
17182 (replace_store_insn): Likewise.
17184 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17186 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17187 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17189 2015-05-20 Jeff Law <law@redhat.com>
17191 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17192 dispose of the jump thread path when the jump threading
17193 opportunity is cancelled.
17195 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17197 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17198 when printing the caret character.
17200 2015-05-20 Marek Polacek <polacek@redhat.com>
17202 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17204 2015-05-20 Marek Polacek <polacek@redhat.com>
17206 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17207 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17208 * gimple-fold.c (canonicalize_bool): Likewise.
17209 (same_bool_result_p): Likewise.
17210 * tree-if-conv.c (parse_predicate): Likewise.
17212 2015-05-20 Marek Polacek <polacek@redhat.com>
17214 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17215 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17217 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17219 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17220 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17223 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17225 * config/mips/mips.h (micromips_globals): Declare.
17227 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17229 * timevar.def (TV_INITIALIZE_RTL): New.
17230 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17231 function's time to TV_INITIALIZE_RTL.
17233 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17235 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17236 gimple_build_nop calls.
17237 (chkp_find_bounds_for_elem): Likewise.
17238 (chkp_get_zero_bounds): Likewise.
17239 (chkp_get_none_bounds): Likewise.
17240 (chkp_get_bounds_by_definition): Likewise.
17241 (chkp_generate_extern_var_bounds): Likewise.
17242 (chkp_get_bounds_for_decl_addr): Likewise.
17243 (chkp_get_bounds_for_string_cst): Likewise.
17245 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17247 PR tree-optimization/65447
17248 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17249 (dump_use, dump_uses): Support to dump sub use.
17250 (record_use): New parameters to support sub use. Remove call to
17252 (record_sub_use, record_group_use): New functions.
17253 (compute_max_addr_offset, split_all_small_groups): New functions.
17254 (group_address_uses, rewrite_use_address): New functions.
17255 (strip_offset): New declaration.
17256 (find_interesting_uses_address): Call record_group_use.
17257 (add_candidate): New assertion.
17258 (infinite_cost_p): Move definition forward.
17259 (add_costs): Check INFTY cost and return immediately.
17260 (get_computation_cost_at): Clear setup cost and dependent bitmap
17262 (determine_use_iv_cost_address): Compute cost for sub uses.
17263 (rewrite_use_address_1): Rename from old rewrite_use_address.
17264 (free_loop_data): Free sub uses.
17265 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17267 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17268 Jim Wilson <jim.wilson@linaro.org>
17270 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17271 new fields loadv and storev.
17272 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17273 Initialize loadv and storev.
17274 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17275 (cortexa53_extra_costs): Likewise.
17276 (cortexa57_extra_costs): Likewise.
17277 (xgene1_extra_costs): Likewise.
17278 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17281 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17283 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17285 (cortexa8_extra_costs): Likewise.
17286 (cortexa5_extra_costs): Likewise.
17287 (cortexa7_extra_costs): Likewise.
17288 (cortexa12_extra_costs): Likewise.
17289 (cortexa15_extra_costs): Likewise.
17290 (v7m_extra_costs): Likewise.
17292 2015-05-20 Jeff Law <law@redhat.com>
17294 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17295 instead of open-coded version. Also delete the jump thread created
17296 within this function.
17298 2015-05-20 Alan Modra <amodra@gmail.com>
17300 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17301 stack adjusting insn. Formatting.
17302 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17303 r12. If possible, emit first -fsplit-stack arg pointer insn
17304 before stack adjust. Don't use r12 to save cr if split-stack.
17306 2015-05-20 Alan Modra <amodra@gmail.com>
17308 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17310 (rs6000_supports_split_stack): New function.
17311 * gcc/config/rs6000/rs6000.c (machine_function): Add
17312 split_stack_arg_pointer.
17313 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17314 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17315 rather than virtual_incoming_args_rtx.
17316 (rs6000_va_start): Likewise.
17317 (split_stack_arg_pointer_used_p): New function.
17318 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17319 (morestack_ref): New var.
17320 (gen_add3_const, rs6000_expand_split_stack_prologue,
17321 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17322 rs6000_split_stack_space_check): New functions.
17323 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17324 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17325 (UNSPECV_SPLIT_STACK_RETURN): Define.
17326 (split_stack_prologue, load_split_stack_limit,
17327 load_split_stack_limit_di, load_split_stack_limit_si,
17328 split_stack_return, split_stack_space_check): New expands and insns.
17329 * gcc/config/rs6000/rs6000-protos.h
17330 (rs6000_expand_split_stack_prologue): Declare.
17331 (rs6000_split_stack_space_check): Declare.
17333 2015-05-20 Alan Modra <amodra@gmail.com>
17335 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17336 (direct_return): Test vrsave_size rather than vrsave_mask.
17337 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17338 (rs6000_emit_epilogue): Likewise.
17340 2015-05-20 Alan Modra <amodra@gmail.com>
17342 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17343 when not saving registers.
17344 (debug_stack_info): Adjust to omit printing unused offsets,
17346 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17349 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17352 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17353 value_type to const char *.
17355 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17357 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17358 to build a biarch toolchain again.
17360 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17362 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17363 or implicit declarations.
17364 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17366 (get_odr_type): Check type has linkage before adding bases.
17367 (register_odr_type): Check that type has linkage before adding it.
17368 (type_known_to_have_no_deriavations_p): Rename to ..
17369 (type_known_to_have_no_derivations_p): This one.
17370 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17371 (type_known_to_have_no_derivations_p): This one.
17372 * ipa-polymorphic-call.c
17373 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17376 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17378 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17379 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17381 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17383 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17384 (s390_invalid_binary_op): New function.
17385 (TARGET_INVALID_BINARY_OP): Define macro.
17387 2015-05-19 David Sherwood <david.sherwood@arm.com>
17389 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17390 if mode is not a scalar integer.
17391 (get_inv_cost): Increase computational cost for unused invariants.
17393 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17395 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17396 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17397 * config/s390/s390-builtin-types.def: New file.
17398 * config/s390/s390-builtins.def: New file.
17399 * config/s390/s390-builtins.h: New file.
17400 * config/s390/s390-c.c: New file.
17401 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17402 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17403 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17404 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17406 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17408 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17409 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17410 variable definitions.
17411 (s390_const_operand_ok): New function.
17412 (s390_expand_builtin): Rewrite.
17413 (s390_init_builtins): New function.
17414 (s390_handle_vectorbool_attribute): New function.
17415 (s390_attribute_table): Add s390_vector_bool attribute.
17416 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17417 (s390_branch_condition_mask): Generate masks for new modes.
17418 (s390_expand_vec_compare_cc): New function.
17419 (s390_mangle_type): Add mangling for vector bool types.
17420 (enum s390_builtin): Remove.
17421 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17423 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17424 s390_cpu_cpp_builtins.
17425 (REGISTER_TARGET_PRAGMAS): New macro.
17426 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17427 (insn_cmp mode attribute): Add new CC modes.
17428 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17429 (lcbb): New pattern definition.
17430 * config/s390/s390intrin.h: Include vecintrin.h.
17431 * config/s390/t-s390: New file.
17432 * config/s390/vecintrin.h: New file.
17433 * config/s390/vector.md: Include vx-builtins.md.
17434 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17437 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17439 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17441 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17442 (s390_select_ccmode): Likewise.
17443 (s390_canonicalize_comparison): Swap operands if necessary.
17444 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17445 single element vector instructions.
17446 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17447 (s390_branch_condition_mask): Generate CC masks for the new modes.
17448 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17449 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17450 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17451 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17452 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17453 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17454 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17455 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17456 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17457 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17458 (sqrt<mode>2): Add vector instruction.
17460 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17462 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17464 * config/s390/predicates.md (const0_operand, constm1_operand)
17465 (constable_operand): Accept vector operands.
17466 * config/s390/s390-modes.def: Add supported vector modes.
17467 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17468 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17469 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17470 (s390_expand_vec_compare, s390_expand_vcond)
17471 (s390_expand_vec_init): Add prototypes.
17472 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17473 (s390_vector_mode_supported_p): New function.
17474 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17475 (s390_contiguous_bitmask_vector_p): New function.
17476 (s390_bytemask_vector_p): New function.
17477 (s390_split_ok_p): Vector regs don't work either.
17478 (regclass_map): Add VEC_REGS.
17479 (s390_legitimate_constant_p): Handle vector constants.
17480 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17481 (legitimate_reload_vector_constant_p): New function.
17482 (s390_preferred_reload_class): Handle CONST_VECTOR.
17483 (s390_reload_symref_address): Likewise.
17484 (s390_secondary_reload): Vector memory instructions only support
17485 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17486 (s390_emit_ccraw_jump): New function.
17487 (s390_expand_vec_strlen): New function.
17488 (s390_expand_vec_compare): New function.
17489 (s390_expand_vcond): New function.
17490 (s390_expand_vec_init): New function.
17491 (s390_dwarf_frame_reg_mode): New function.
17492 (print_operand): Handle addresses with 'O' and 'R' constraints.
17493 (NR_C_MODES, constant_modes): Add vector modes.
17494 (s390_output_pool_entry): Handle vector constants.
17495 (s390_hard_regno_mode_ok): Handle vector registers.
17496 (s390_class_max_nregs): Likewise.
17497 (s390_cannot_change_mode_class): New function.
17498 (s390_invalid_arg_for_unprototyped_fn): New function.
17499 (s390_function_arg_vector): New function.
17500 (s390_function_arg_float): Remove size variable.
17501 (s390_pass_by_reference): Handle vector arguments.
17502 (s390_function_arg_advance): Likewise.
17503 (s390_function_arg): Likewise.
17504 (s390_return_in_memory): Vector values are returned in a VR if
17506 (s390_function_and_libcall_value): Handle vector arguments.
17507 (s390_gimplify_va_arg): Likewise.
17508 (s390_call_saved_register_used): Consider the arguments named.
17509 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17511 (s390_preferred_simd_mode): New function.
17512 (s390_support_vector_misalignment): New function.
17513 (s390_vector_alignment): New function.
17514 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17515 (TARGET_VECTOR_MODE_SUPPORTED_P)
17516 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17517 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17518 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17519 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17520 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17521 (FIRST_PSEUDO_REGISTER): Increase value.
17522 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17523 (VECTOR_REG_P): Define macros.
17524 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17525 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17526 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17527 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17528 Add vector registers.
17529 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17530 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17531 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17533 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17534 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17535 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17536 (VR*_REGNUM): New constants.
17537 (ALL): New mode iterator.
17538 (INTALL): Remove mode iterator.
17540 (movti): Implement TImode moves for VRs.
17541 Disable TImode splitter for VR targets.
17542 Implement splitting TImode GPR<->VR moves.
17543 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17544 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17545 reload<mode>_la_in, reload<mode>_la_out.
17546 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17547 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17548 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17549 (mov<mode> SF SD): Prefer lder, lde for loading.
17550 Add lrl and strl instructions.
17551 Add vector instructions.
17552 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17553 Call s390_expand_vec_strlen on z13.
17554 (*cc_to_int): Change predicate to nonimmediate_operand.
17555 (addti3): Rename to *addti3. New expander.
17556 (subti3): Rename to *subti3. New expander.
17557 * config/s390/vector.md: New file.
17559 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17561 * common/config/s390/s390-common.c (processor_flags_table): Add
17563 * config.gcc: Add z13.
17564 * config/s390/s390-opts.h (enum processor_type): Add
17565 PROCESSOR_2964_Z13.
17566 * config/s390/s390.c (s390_adjust_priority): Check for
17567 PROCESSOR_2964_Z13.
17568 (s390_reorg): Likewise.
17569 (s390_sched_reorder): Likewise.
17570 (s390_sched_variable_issue): Likewise.
17571 (s390_loop_unroll_adjust): Likewise.
17572 (s390_option_override): Likewise. Default to -mvx when available.
17573 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17574 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17575 (TARGET_VX_ABI): Define macros.
17577 (TARGET_DEFAULT): Add MASK_OPT_VX.
17578 * config/s390/s390.md ("cpu" attribute): Add z13.
17579 ("cpu_facility" attribute): Add vec.
17580 * config/s390/s390.opt (processor_type): Add z13.
17581 (mvx): New options.
17582 * doc/invoke.texi: Add z13 option for -march.
17584 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17586 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17587 mode check to make sure that only scalar integer values are
17590 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17592 * tree.c (verify_type_variant): Fix #undef.
17593 (gimple_canonical_types_compatible_p): Move here from lto.c
17594 (verify_type): Verify TYPE_CANONICAL compatibility.
17595 * tree.h (gimple_canonical_types_compatible_p): Declare.
17597 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17599 PR middle-end/66199
17600 * tree.h (OMP_TEAMS_COMBINED): Define.
17601 * gimplify.c (enum gimplify_omp_var_data): Add
17602 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17603 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17604 (omp_notice_variable): Accept both ORT_TEAMS
17605 and ORT_COMBINED_TEAMS. Don't recurse if
17606 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17607 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17609 (omp_no_lastprivate): New function.
17610 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17611 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17612 notice_outer and set appropriate bits, otherwise make
17613 sure default(none) combined constructs won't complain.
17614 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17615 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17616 omp_no_lastprivate either remove the clause or turn it
17617 into OMP_CLAUSE_PRIVATE.
17618 (gimplify_omp_for): Fix up handling of implicit
17619 lastprivate or linear iterators.
17620 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17621 ORT_COMBINED_TEAMS.
17622 * omp-low.c (lower_omp_for_lastprivate): For combined
17623 for simd use fd.loop.n2 from the for rather than simd.
17625 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17627 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17628 instead of gen_rtx_raw_REG.
17629 (cris_expand_epilogue): Likewise.
17630 * config/microblaze/microblaze.c (microblaze_classify_address):
17632 * config/sparc/sparc.md: Likewise.
17634 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17636 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17637 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17638 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17639 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17640 Use CASE_CONST_SCALAR_INT.
17641 (print_operand) <case 'M'>: Use mode_width_operand to check the
17642 value of the constant.
17643 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17644 * config/alpha/predicates.md (input_operand): Use general_operand
17645 instead of match_code as operand check.
17646 (symbolic_operand): Use match_code with subexpression digits.
17647 * config/alpha/constraints.md (Q): Ditto.
17649 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17651 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17653 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17655 * config/s390/s390.c (s390_secondary_reload): Fix check for
17656 load/store relative.
17658 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17660 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17661 alternative_mask to uint64_t.
17663 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17665 PR tree-optimization/66187
17666 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17667 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17668 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17670 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17672 * diagnostic.c (diagnostic_report_current_module): Strengthen
17673 local "new_map" from const line_map * to
17674 const line_map_ordinary *.
17675 * genmatch.c (error_cb): Likewise for local "map".
17676 (output_line_directive): Likewise for local "map".
17677 * input.c (expand_location_1): Likewise for local "map".
17678 Pass NULL rather than &map to
17679 linemap_unwind_to_first_non_reserved_loc, since the value is never
17680 read from there, and the value written back not read from here.
17681 (is_location_from_builtin_token): Strengthen local "map" from
17682 const line_map * to const line_map_ordinary *.
17683 (dump_location_info): Strengthen locals "map" from
17684 line_map *, one to const line_map_ordinary *, the other
17685 to const line_map_macro *.
17686 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17687 const line_map * to const line_map_macro *.
17688 (maybe_unwind_expanded_macro_loc): Add a call to
17689 linemap_check_macro when writing to the "map" field of the
17691 Introduce local const line_map_ordinary * "ord_map", using it in
17692 place of "map" in the part of the function where we know we have
17693 an ordinary map. Strengthen local "m" from const line_map * to
17694 const line_map_ordinary *.
17696 2015-05-19 Nick Clifton <nickc@redhat.com>
17699 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17700 separate source and destination registers.
17702 2015-05-19 Richard Biener <rguenther@suse.de>
17704 PR tree-optimization/66165
17705 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17706 for no load permutation.
17708 PR tree-optimization/66185
17709 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17710 when building the SLP node from scalars.
17712 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17713 Tristan Gingold <gingold@adacore.com>
17715 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17716 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17717 (expand_stack_restore): Call record_new_stack_level.
17718 (expand_stack_save): Do not call do_pending_stack_adjust.
17719 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17720 * calls.c (expand_call): Call record_new_stack_level for alloca.
17721 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17722 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17723 (update_sjlj_context): New global function.
17724 * except.h (update_sjlj_context): Declare.
17725 * explow.c (record_new_stack_level): New global function.
17726 (allocate_dynamic_stack_space): Call record_new_stack_level.
17727 * explow.h (record_new_stack_level): Declare.
17728 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17729 * cfgrtl.c (duplicate_insn_chain): Likewise.
17731 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17733 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17734 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17735 STACK_GROWS_DOWNWARD as normal if.
17736 (expand_call): Likewise.
17738 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17741 * config/sh/sh.md (*round_int_even): New insn_and_split and
17742 accompanying new unnamed split.
17744 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17746 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17747 (bitmap_clear_range): Likewise.
17748 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17749 bitmap_set_range unconditionally.
17750 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17751 * df-scan.c (df_mark_reg): Likewise.
17752 * haifa-sched.c (setup_ref_regs): Likewise.
17753 * sched-rgn.c (update_live_1): Likewise.
17755 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17757 * regs.h (END_HARD_REGNO): Delete.
17758 (END_REGNO): Move to...
17760 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17761 * caller-save.c (mark_set_regs): Likewise.
17762 * combine.c (move_deaths, distribute_notes): Likewise.
17763 * cse.c (invalidate, invalidate_for_call): Likewise.
17764 * df-scan.c (df_ref_record): Likewise.
17765 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17766 (record_last_reg_set_info): Likewise.
17767 * reg-stack.c (convert_regs_exit): Likewise.
17768 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17769 * resource.c (update_live_status): Likewise.
17770 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17772 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17774 * rtl.h (reg_info): Add an nregs field.
17775 (REG_NREGS): Use it.
17776 (SET_REGNO_RAW): Delete.
17777 (set_regno_raw): New function.
17778 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17779 (END_REGNO): Redefine in terms of REG_NREGS.
17780 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17782 * emit-rtl.c (set_mode_and_regno): Likewise.
17783 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17784 instead of SET_REGNO_RAW.
17786 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17788 * rtl.h (PUT_MODE_RAW): New macro.
17789 (PUT_REG_NOTE_KIND): Use it.
17790 (set_mode_and_regno): Declare.
17791 (gen_raw_REG): Change regno to "unsigned int".
17792 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17793 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17794 use set_mode_and_regno to change the mode of registers.
17795 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17796 * emit-rtl.c (set_mode_and_regno): New function.
17797 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17798 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17799 * expr.c (init_expr_target): Likewise.
17800 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17801 * postreload.c (reload_cse_simplify_operands): Likewise.
17803 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17805 * caller-save.c (init_caller_save): Use word_mode and
17806 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17807 * expr.c (init_expr_target): Likewise.
17808 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17809 * postreload.c (reload_cse_regs_1): Likewise.
17811 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17813 * rtl.def (REG): Change format to "r".
17814 * rtl.h (rtunion): Remove rt_reg.
17815 (reg_info): New structure.
17816 (rtx_def): Add reg field to main union.
17817 (X0REGATTR): Delete.
17818 (REG_CHECK): New macro.
17819 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17820 * rtl.c (rtx_format): Document "r".
17821 (rtx_code_size): Handle REG specially.
17822 * gengenrtl.c (special_format): Return true for formats
17824 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17825 Deal with REG_ATTRS after the field loop.
17826 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17827 * expmed.c (init_expmed): Call gen_raw_REG instead of
17829 * expr.c (init_expr_target): Likewise.
17830 * regcprop.c (maybe_mode_change): Likewise.
17831 * varasm.c (make_decl_rtl): Likewise.
17832 * final.c (leaf_renumber_regs_insn): Return early after
17834 * genemit.c (gen_exp): Handle 'r' fields.
17835 * genpeep.c (match_rtx): Likewise.
17836 * gensupport.c (subst_pattern_match): Likewise.
17837 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17838 (alter_constraints, subst_dup): Likewise.
17839 * read-rtl.c (read_rtx_code): Likewise.
17840 * print-rtl.c (print_rtx): Likewise.
17841 * genrecog.c (find_operand, find_matching_operand): Likewise.
17842 (validate_pattern, match_pattern_2): Likewise.
17843 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17844 (rtx_test::regno_field): New function.
17845 (operator ==, safe_to_hoist_p, transition_parameter_type)
17846 (parameter_type_string, print_parameter_value)
17847 (print_nonbool_test, print_test): Handle new enum values.
17848 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17849 * lra-constraints.c (operands_match_p): Likewise.
17851 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17853 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17854 Change type of new_regno to unsigned int.
17855 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17856 new_regno to unsigned int.
17857 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17858 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17859 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17860 (SET_REGNO_RAW): Add space after ",".
17862 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17864 * rtl.h (REG_NREGS): New macro
17865 * alias.c (record_set): Use it.
17866 * cfgcleanup.c (mark_effect): Likewise.
17867 * combine.c (likely_spilled_retval_1): Likewise.
17868 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17869 (move_deaths, distribute_notes): Likewise.
17870 * cselib.c (cselib_record_set): Likewise.
17871 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17872 * df-scan.c (df_mark_reg): Likewise.
17873 * dse.c (look_for_hardregs): Likewise.
17874 * dwarf2out.c (reg_loc_descriptor): Likewise.
17875 (multiple_reg_loc_descriptor): Likewise.
17876 * expr.c (write_complex_part, read_complex_part): Likewise.
17877 (emit_move_complex): Likewise.
17878 * haifa-sched.c (setup_ref_regs): Likewise.
17879 * ira-lives.c (mark_hard_reg_live): Likewise.
17880 * lra.c (lra_set_insn_recog_data): Likewise.
17881 * mode-switching.c (create_pre_exit): Likewise.
17882 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17883 (reload_combine_recognize_pattern): Likewise.
17884 (reload_combine_note_use, move2add_record_mode): Likewise.
17885 (reload_cse_move2add): Likewise.
17886 * reg-stack.c (subst_stack_regs_pat): Likewise.
17887 * regcprop.c (kill_value, copy_value): Likewise.
17888 (copyprop_hardreg_forward_1): Likewise.
17889 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17890 (build_def_use): Likewise.
17891 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17892 (deps_analyze_insn): Likewise.
17893 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17894 * sel-sched.c (count_occurrences_equiv): Likewise.
17895 * valtrack.c (dead_debug_insert_temp): Likewise.
17897 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17899 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17900 * dse.c (note_add_store): Likewise.
17901 * ira-lives.c (mark_hard_reg_dead): Likewise.
17902 * loop-invariant.c (mark_reg_store): Likewise.
17903 (mark_reg_death): Likewise.
17904 * postreload.c (reload_combine): Likewise.
17905 (reload_combine_note_store): Likewise.
17906 (reload_combine_note_use): Likewise.
17907 * recog.c (peep2_reg_dead_p): Likewise.
17909 2015-05-19 Alan Modra <amodra@gmail.com>
17911 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17912 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17913 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17915 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17916 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17917 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17918 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17920 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17922 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17923 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17924 (join2_loadhi): Likewise.
17925 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17926 load-load and store-stores.
17927 * config/mips/mips.opt (mload-store-pairs): New option.
17928 (TARGET_LOAD_STORE_PAIRS): New macro.
17929 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17930 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17931 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17933 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17935 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17937 * dojump.c (do_compare_rtx_and_jump): Likewise.
17938 * expmed.c (emit_store_flag_1): Likewise.
17939 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17940 * final.c (sprint_ul): Use std::reverse for reversing a string.
17941 * fold-const.c (extract_muldiv_1): Use std::swap.
17942 * genmodes.c (emit_mode_int_n): Likewise.
17943 * ifcvt.c (dead_or_predicable): Likewise.
17944 * ira-build.c (ira_merge_live_ranges): Likewise.
17945 (swap_allocno_copy_ends_if_necessary): Likewise.
17946 * ira.c (ira_setup_alts): Likewise.
17947 * loop-iv.c (iv_analyze_expr): Likewise.
17948 (implies_p): Likewise.
17949 (canon_condition): Likewise.
17950 * lra-constraints.c (swap_operands): Likewise.
17951 * lra-lives.c (lra_merge_live_ranges): Likewise.
17952 * omega.c (swap): Remove.
17954 (omega_unprotect_1): Use std::swap.
17955 (omega_solve_geq): Likewise.
17956 * optabs.c (expand_binop_directly): Likewise.
17957 (expand_binop): Likewise.
17958 (emit_conditional_move): Likewise.
17959 (emit_conditional_add): Likewise.
17960 * postreload.c (reload_cse_simplify_operands): Likewise.
17961 * reg-stack.c (emit_swap_insn): Likewise.
17962 (swap_to_top): Likewise.
17963 (compare_for_stack_reg): Likewise.
17964 (subst_asm_stack_regs): Likewise.
17965 * reload.c (find_reloads): Likewise.
17966 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17967 * sel-sched.c (invoke_reorder_hooks): Likewise.
17968 (create_block_for_bookkeeping): Likewise.
17969 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17970 (lambda_matrix_right_hermite): Use std::swap.
17971 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17972 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17973 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17974 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17975 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17976 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17977 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17978 * tree-vrp.c (compare_ranges): Likewise.
17979 * var-tracking.c (add_with_sets): Likewise.
17980 (vt_find_locations): Likewise.
17982 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17984 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17986 (FBSD_ENDFILE_SPEC): Likewise.
17987 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17988 config/freebsd-spec.h.
17989 (ENDFILE_SPEC): Likewise.
17991 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17992 Richard Henderson <rth@redhat.com>
17995 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17996 Check for a memory location that is not a reference (using an AND)
17997 to an unaligned location here.
17998 * config/alpha/predicates.md (normal_memory_operand): Remove.
18000 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
18002 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18003 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18005 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
18007 * config/mips/mips.c (micromips_globals): New variable.
18008 (mips_set_compression_mode): Save and reinitialize target-dependent
18009 state for microMIPS.
18011 2015-05-18 Martin Liska <mliska@suse.cz>
18013 * dbgcnt.def: Add new counter.
18014 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18016 2015-05-18 Martin Liska <mliska@suse.cz>
18018 * dbgcnt.def: Sort counters.
18019 * opts.c (common_handle_option): Do not compile if
18020 -fdbg-cnt-list is enabled.
18022 2015-05-18 Tom de Vries <tom@codesourcery.com>
18024 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18025 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
18026 address operator to va_list operand.
18027 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18029 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18031 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18032 * config/s390/s390.c (s390_gimplify_va_arg): Same.
18033 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18035 2015-05-18 Tom de Vries <tom@codesourcery.com>
18037 * tree-ssa-tail-merge.c: Fix whitespace.
18039 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
18041 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18042 cortex-a17, and cortex-a17.cortex-a7.
18044 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
18047 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18049 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
18052 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18053 QImode inner modes for TARGET_AVX512BW. Force mask operand
18054 to a register for AVX512F modes.
18056 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18058 * toplev.c (emit_debug_global_declarations): Do not output debug info
18059 when doing slim LTO objects.
18061 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18063 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18064 odr_types_equivalent_p): Declare.
18065 (odr_type_p): Use gcc_checking_assert.
18066 (type_in_anonymous_namespace_p) Declare.
18067 (type_with_linkage_p): Declare.
18068 * common.opt (Wlto-type-mismatch): New warning.
18069 * ipa-devirt.c (compound_type_base): New function.
18070 (odr_or_derived_type_p): New function.
18071 (odr_types_equivalent_p): New function.
18072 (add_type_duplicate): Simplify.
18073 (type_with_linkage_p): Add hack to prevent false positives on C types
18074 (type_in_anonymous_namespace_p): Likewise.
18075 * tree.c (need_assembler_name_p): Use type_with_linkage.
18076 * tree.h (type_in_anonymous_namespace_p): Remove.
18077 * doc/invoke.texi (-Wlto-type-mismatch): Document
18079 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18081 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18082 (verify_type): Verify STRING_FLAG.
18084 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18087 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18088 with accessor function.
18089 * tree-diagnostic.c (diagnostic_report_current_function): Use
18090 diagnostic_location function.
18091 (maybe_unwind_expanded_macro_loc): Likewise.
18092 (virt_loc_aware_diagnostic_finalizer): Likewise.
18093 (default_tree_printer): Replace locus pointer with accessor function.
18094 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18095 (diagnostic_set_info_translated): Initialize second location.
18096 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18097 (diagnostic_show_locus): Handle two locations. Call
18098 diagnostic_print_caret_line.
18099 (diagnostic_print_caret_line): New.
18100 (default_diagnostic_starter): Use diagnostic_location function.
18101 (diagnostic_report_diagnostic): Use diagnostic_location function.
18102 (verbatim): Do not set text.locus.
18103 * diagnostic.h (struct diagnostic_info): Remove location field.
18104 (struct diagnostic_context): Make caret_chars an array of two.
18105 (diagnostic_location): New inline.
18106 (diagnostic_expand_location): Handle two locations.
18107 (diagnostic_same_line): New inline.
18108 (diagnostic_print_caret_line): Declare.
18109 (CARET_LINE_MARGIN): New constant.
18110 * pretty-print.c (pp_printf): Do not set text.locus.
18111 (pp_verbatim): Do not set text.locus.
18112 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18113 (struct text_info): Replace locus pointer with locations
18114 array. Add accessor functions.
18116 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18117 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18120 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18121 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18122 large constants in register instead of splitting them.
18124 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18127 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18128 replacements in memory addresses.
18129 (get_unaligned_address): Ditto.
18131 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18133 * config/ft32/*: New files for FT32 port.
18134 * doc/install.texi: Add FT32 information.
18135 * doc/invoke.texi: Add FT32 information.
18136 * doc/md.texi: Add FT32 information.
18137 * doc/contrib.texi: Self added.
18139 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18141 PR tree-optimization/64454
18142 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18143 (-1 - A -> ~A): Remove unnecessary condition.
18145 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18147 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18148 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18149 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18151 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18153 * ipa-chkp.h (chkp_wrap_function): New.
18154 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18155 (chkp_wrap_function_name): New.
18156 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18157 to get wrapper name.
18158 * lto-cgraph.c: Include ipa-chkp.h.
18159 (input_cgraph_1): Avoid alias chain for wrappers.
18161 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18163 PR middle-end/66134
18164 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18165 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18167 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18169 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18170 (AARCH64_FL_SLOWMUL): Delete.
18171 (AARCH64_FL_CRC): Redefine to 1<<3.
18172 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18174 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18176 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18179 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18181 * config/alpha/alpha.md (extendqidi2): Use general_operand
18182 instead of some_operand for operand[1] predicate.
18183 (extendhidi2): Ditto.
18184 (cbranchdi4): Use general_operand instead of some_operand
18185 for operand[1] and operands[2] predicates.
18186 (cstoredi4): Ditto.
18187 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18188 (some_ni_operand): Ditto.
18190 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18192 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18193 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18194 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18195 low part of the constant using alpha_emit_set_const_1.
18196 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18198 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18200 * varasm.c (output_constant_pool_1): Pass down alignment from
18201 constant pool entry's descriptor to output_constant_pool_2.
18202 (output_object_block): Add comment prior to call to
18203 output_constant_pool_1.
18205 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18207 PR rtl-optimization/65862
18208 * target.def (ira_change_pseudo_allocno_class): New hook.
18209 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18211 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18212 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18214 * ira-costs.c (find_costs_and_classes): Call the hook and change
18215 classes when it is necessary.
18216 * doc/tm.texi: Update.
18218 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18220 * config/i386/i386.md (sibcall_memory): Check that register with
18221 callee address is not also used as one of the arguments, instead
18222 of checking that it is not live after the sibcall.
18223 (sibcall_pop_memory): Ditto.
18224 (sibcall_value_memory): Ditto.
18225 (sibcall_value_pop_memory): Ditto.
18227 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18229 * generic-match-head.c (types_match): Handle non-types.
18230 * gimple-match-head.c (types_match): Likewise.
18231 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18233 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18235 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18236 (csneg3<mode>_insn): Enable expansion of pattern.
18238 2015-05-14 Nick Clifton <nickc@redhat.com>
18240 * config/rl78/rl78.c (rl78_select_section): Select the correct
18241 default section based upon the category of the decl.
18243 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18245 PR rtl-optimization/30967
18246 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18247 destination mode for the cost of scc patterns.
18249 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18251 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18252 using SWIM248 mode iterator.
18253 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18254 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18255 for operand[2] constraint.
18256 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18258 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18260 PR middle-end/66133
18261 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18262 make sure it is never noreturn, even when the task body does not
18264 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18265 right before GIMPLE_OMP_RETURN.
18266 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18267 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18268 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18270 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18272 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18273 * tree-ssa-math-opts.c: Include params.h
18274 (pow_synth_sqrt_info): New struct.
18275 (representable_as_half_series_p): New function.
18276 (get_fn_chain): Likewise.
18277 (print_nested_fn): Likewise.
18278 (dump_fractional_sqrt_sequence): Likewise.
18279 (dump_integer_part): Likewise.
18280 (expand_pow_as_sqrts): Likewise.
18281 (gimple_expand_builtin_pow): Use above to attempt to expand
18282 pow as series of square roots. Removed now unused variables.
18284 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18286 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18287 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18288 Remove *p0 and *p1 arguments. Rewrite function.
18289 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18290 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18291 alpha_emit_set_long_const.
18292 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18293 (alpha_output_mi_thunk_osf): Ditto.
18294 * config/alpha/alpha.md (movti): Do not check operands[1]
18297 2015-05-13 Richard Biener <rguenther@suse.de>
18299 PR tree-optimization/66129
18300 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18302 (vect_schedule_slp_instance): Fix typo.
18304 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18306 * common.opt (fdump-internal-locations): New option.
18307 * input.c: Include diagnostic-core.h.
18308 (get_end_location): New function.
18309 (write_digit): New function.
18310 (write_digit_row): New function.
18311 (dump_location_range): New function.
18312 (dump_labelled_location_range): New function.
18313 (dump_location_info): New function.
18314 * input.h (dump_location_info): New prototype.
18315 * toplev.c (compile_file): Handle flag_dump_locations.
18317 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18319 * gimple-expr.h (is_gimple_constant): Reorder.
18320 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18322 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18324 * combine.c (simplify_set): When generating a CC set, if the
18325 source already is in the correct mode, do not wrap it in a
18326 compare. Simplify the rest of that code.
18328 2015-05-13 Richard Biener <rguenther@suse.de>
18330 PR tree-optimization/66123
18331 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18334 2015-05-13 Richard Biener <rguenther@suse.de>
18336 PR middle-end/66110
18337 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18339 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18341 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18343 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18344 * aclocal.m4: Regenerated with automake-1.11.6.
18346 2015-05-13 Tom de Vries <tom@codesourcery.com>
18348 PR tree-optimization/66010
18349 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18350 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18351 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18352 and rval based on do_deref.
18354 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18357 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18358 link time constants into adress expressions and therefore set
18361 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18364 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18365 Use SWI248 iterator instead of SWI.
18366 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18367 Use eq_attr "alternative" "0" instead of match_test in
18368 length_immediate attribute computation.
18369 (*mulvhi4, *mulvhi4_1): New define_insns.
18372 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18373 SIGNED to get precision of non-negative value.
18375 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18378 * function.c (diddle_return_value_1): Process bounds first.
18379 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18382 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18384 PR rtl-optimization/64616
18385 * loop-invariant.c (can_move_invariant_reg): New.
18386 (move_invariant_reg): Call above new function to decide whether
18387 instruction can just be moved, skipping creation of temporary
18390 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18392 PR target/pr66047.c
18393 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18394 with implied regparm is called from -mno-sse function.
18395 (init_cumulative_args): Output error if ix86_function_sseregparm
18396 return -1 and SSE register would be needed.
18397 (function_arg_advance_32): Likewise.
18398 (function_arg_32): Likewise.
18399 * i386.h (ix86_args): Add decl field.
18401 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18404 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18405 inlines across optimization boundary.
18407 2015-05-12 Jason Merrill <jason@redhat.com>
18409 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18410 string literal and macro name.
18412 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18414 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18415 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18416 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18418 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18420 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18421 (-Wmisleading-indentation): New option.
18422 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18424 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18426 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18427 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18428 (alpha_extract_integer): Ditto.
18429 (alpha_legitimate_constant_p): Ditto.
18430 (alpha_split_tmode_pair): Ditto.
18431 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18432 (alpha_expand_mov): Ditto.
18433 (print_operand): Remove handling of 'H' modifier.
18434 <case 'm'>: Remove CONST_DOUBLE handling.
18435 (summarize_insn): Handle CONST_WIDE_INT.
18436 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18438 (movti): Handle CONST_WIDE_INT.
18439 * config/alpha/constraints.md ('H'): Remove constraint definition.
18440 ('G'): Do not match MODE_FLOAT class.
18441 * config/alpha/predicates.md (const0_operand): Also match
18443 (non_add_const_operand): Ditto.
18444 (non_zero_const_operand): Ditto.
18445 (some_operand): Ditto.
18446 (input_operand): Ditto. Handle CONST_WIDE_INT.
18447 (and_operand): Do not match const_double.
18448 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18450 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18453 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18454 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18455 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18456 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18457 is_mm_seq_cst, is_mm_sync): New accessor functions.
18458 * builtins.c (expand_builtin_sync_operation,
18459 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18460 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18461 (get_memmodel, expand_builtin_atomic_compare_exchange,
18462 expand_builtin_atomic_load, expand_builtin_atomic_store,
18463 expand_builtin_atomic_clear): Use new accessor routines.
18464 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18465 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18466 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18467 MEMMODEL_SYNC_ACQUIRE.
18468 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18469 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18470 expand_atomic_store): Use new accessors.
18471 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18472 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18473 final enum to use MEMMODEL_LAST.
18474 * c-family/c-common.c: Use new accessor for memmodel_base.
18475 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18477 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18478 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18479 mem_thread_fence, *dmb): Likewise.
18480 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18481 alpha_split_compare_and_swap_12): Likewise.
18482 * config/arm/arm.c (arm_expand_compare_and_swap,
18483 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18484 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18485 atomic_loaddi): Likewise.
18486 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18488 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18489 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18491 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18492 atomic_store<mode>, atomic_compare_and_swap<mode>,
18493 atomic_exchange<mode>): Use new accessors.
18494 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18495 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18496 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18497 rs6000_post_atomic_barrier): Add new cases.
18498 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18499 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18500 (atomic_load<mode>): Add new cases and use new accessors.
18501 (store_quadpti): Add new cases.
18502 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18504 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18505 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18508 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18510 * ipa-devirt.c (type_with_linkage_p): New function.
18511 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18513 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18514 (can_be_name_hashed_p): Simplify.
18515 (hash_odr_name): Check that type has linkage before checking if it is
18517 (types_same_for_odr): Likewise.
18518 (odr_name_hasher::equal): Likewise.
18519 (odr_subtypes_equivalent_p): Likewise.
18520 (warn_types_mismatch): Likewise.
18521 (get_odr_type): Likewise.
18522 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18523 * ipa-utils.h (odr_type_p): Move offline.
18524 * tree.c (need_assembler_name_p): Fix handling of types
18526 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18528 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18530 * timevar.c (timevar_enable): Delete in favor of...
18531 (g_timer): New global.
18532 (struct timevar_def): Move to timevar.h inside class timer.
18533 (struct timevar_stack_def): Likewise.
18534 (timevars): Delete global in favor of field "m_timevars" within
18535 class timer in timevar.h
18536 (stack): Likewise, in favor of field "m_stack".
18537 (unused_stack_instances): Likewise, in favor of field
18538 "m_unused_stack_instances".
18539 (start_time): Likewise, in favor of field "m_start_time".
18540 (get_time): Eliminate check for timevar_enable.
18541 (timer::timer): New function, built from part of timevar_init.
18542 (timevar_init): Rewrite idempotency test from using
18543 "timevar_enable" bool to using dynamic allocation of "g_timer".
18544 Move rest of implementation into timer's constructor.
18545 (timevar_push_1): Rename to...
18546 (timer::push): ...this, adding "m_" prefixes to variables that
18547 are now fields of timer.
18548 (timevar_pop_1): Likewise, rename to...
18549 (timer::pop): ...this, and add "m_" prefixes.
18550 (timevar_start): Replace test for "timevar_enable" with one for
18551 "g_timer", and move bulk of implementation to...
18552 (timer::start): ...here, adding "m_" prefixes.
18553 (timevar_stop): Likewise, from here...
18554 (timer::stop): ...to here.
18555 (timevar_cond_start): Likewise, from here...
18556 (timer::cond_start): ...to here.
18557 (timevar_cond_stop): Likewise, from here...
18558 (timer::cond_stop): ...to here.
18559 (validate_phases): Rename to...
18560 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18561 locals "total" and "tv" const.
18562 (timevar_print): Rename to...
18563 (timer::print): ...this, and add "m_" prefixes. Make locals
18564 "total" and "tv" const. Eliminate test for timevar_enable.
18565 * timevar.h (timevar_enable): Eliminate.
18566 (g_timer): New declaration.
18567 (timevar_push_1): Eliminate.
18568 (timevar_pop_1): Eliminate.
18569 (timevar_print): Eliminate.
18570 (class timer): New class.
18571 (timevar_push): Rewrite to use g_timer.
18572 (timevar_pop): Likewise.
18573 * toplev.c (toplev::~toplev): Likewise.
18575 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18577 * arm-protos.h (arm_sched_autopref): Delete.
18578 (tune_params): Re-organize, use enums for flag values.
18579 (FUSE_OPS): New macro.
18580 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18581 (ARM_PREFETCH_BENEFICIAL): Likewise.
18582 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18583 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18584 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18585 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18586 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18587 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18588 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18589 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18591 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18592 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18593 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18595 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18597 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18600 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18601 Sandra Loosemore <sandra@codesourcery.com>
18603 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18605 (REG_CLASS_NAMES): Add "IJMP_REGS".
18606 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18607 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18608 use new "c" register constraint.
18609 * config/nios2/constraint.md (c): New register constraint
18610 corresponding to IJMP_REGS.
18612 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18614 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18615 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18616 define_splits): Delete, revamp, transmogrify into ...
18617 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18618 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18619 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18622 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18624 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18625 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18627 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18629 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18630 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18631 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18632 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18633 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18634 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18635 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18636 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18637 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18638 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18639 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18640 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18641 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18642 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18643 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18644 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18645 and 30 corresponding splitters): Delete.
18647 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18649 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18652 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18654 * combine.c (recog_for_combine_1): New function, factored out
18655 from recog_for_combine.
18656 (change_zero_ext): New function.
18657 (recog_for_combine): If recog fails, try again with the pattern
18658 modified by change_zero_ext; if that still fails, restore the
18661 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18663 * combine.c (get_undo_marker): New function.
18664 (undo_to_marker): New function, largely factored out from ...
18665 (undo_all): ... this. Adjust.
18667 2015-05-12 Richard Biener <rguenther@suse.de>
18669 PR tree-optimization/66101
18670 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18671 fixup if we turn a loop exit edge to a fallthru edge.
18673 2015-05-12 Richard Biener <rguenther@suse.de>
18675 PR tree-optimization/37021
18676 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18677 (SLP_TREE_TWO_OPERATORS): New define.
18678 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18679 SLP_TREE_TWO_OPERATORS.
18680 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18682 (vect_build_slp_tree): Adjust.
18683 (vect_analyze_slp_cost_1): Likewise.
18684 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18685 emitting two vector stmts and mixing the results.
18687 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18689 * call.c (print_z_candidates): Remove dead code.
18691 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18693 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18694 and zEC12_simple_fp.
18695 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18698 2015-05-12 Tom de Vries <tom@codesourcery.com>
18700 PR tree-optimization/66010
18701 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18703 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18704 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18705 va_lists are passed, and remove corresponding handling.
18706 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18707 do_deref argument to ifn_va_arg.
18708 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18711 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18714 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18715 REG before taking its REGNO.
18717 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18719 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18720 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18721 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18722 present to get more accurate information about the number of sign bit
18723 copies and non zero bits.
18725 2015-05-12 Richard Biener <rguenther@suse.de>
18727 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18728 do not allow unrolling.
18730 2015-05-11 Richard Henderson <rth@redhat.com>
18732 * config/i386/i386-modes.def (CCP): New.
18733 * config/i386/i386.c (put_condition_code): Handle it.
18734 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18736 2015-05-11 Richard Henderson <rth@redhat.com>
18738 * target.def (md_asm_clobbers): Replace with...
18739 (md_asm_adjust): this.
18740 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18741 (TARGET_MD_ASM_ADJUST): New.
18742 * tm.texi: Rebuild.
18743 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18744 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18745 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18747 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18748 constraints instead of lists of outputs and inputs.
18749 (expand_asm_stmt): Save and restore input_location around the
18750 body of the function. Move asm data into vectors instead of
18751 building tree lists. Generate cleanup sequences as needed,
18752 rather than waiting til the end. Use new md_asm_adjust hook.
18754 * config/vxworks.c: Include vec.h before target.h.
18755 * gimple.c: Likewise.
18756 * incpath.c: Likewise.
18757 * mode-switching.c: Likewise.
18759 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18760 (cris_md_asm_adjust): this.
18761 (TARGET_MD_ASM_CLOBBERS): Remove.
18762 (TARGET_MD_ASM_ADJUST): New.
18763 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18764 (ix86_md_asm_adjust): this.
18765 (TARGET_MD_ASM_CLOBBERS): Remove.
18766 (TARGET_MD_ASM_ADJUST): New.
18767 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18768 (mn10300_md_asm_adjust): this.
18769 (TARGET_MD_ASM_CLOBBERS): Remove.
18770 (TARGET_MD_ASM_ADJUST): New.
18771 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18772 (rs6000_md_asm_adjust): this.
18773 (TARGET_MD_ASM_CLOBBERS): Remove.
18774 (TARGET_MD_ASM_ADJUST): New.
18775 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18776 (visium_md_asm_adjust): this.
18777 (TARGET_MD_ASM_CLOBBERS): Remove.
18778 (TARGET_MD_ASM_ADJUST): New.
18780 2015-05-11 Richard Henderson <rth@redhat.com>
18782 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18783 if noutputs is zero.
18784 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18786 * cfgexpand.c (expand_asm_operands): Merge into...
18787 (expand_asm_stmt): ... here.
18789 * cfgexpand.c (expand_asm_operands): Don't call
18790 resolve_asm_operand_names.
18791 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18793 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18795 * dwarf2out.c (gen_member_die): Sanity check that we access
18796 TYPE_MAIN_VARIANT for TYPE_METHODS.
18797 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18798 checking TYPE_METHODS.
18799 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18801 (build_distinct_type_copy): Clear TYPE_METHODS.
18802 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18803 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18804 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18806 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18808 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18809 (emit_pattern_before_setloc): Likewise.
18811 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18813 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18814 for define_peephole2s.
18815 (get_peephole2_pattern): New function.
18816 (main): Use it. Call validate_pattern.
18818 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18820 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18821 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18822 (Last callee saved reg is different for AVR_TINY architecture)
18824 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18826 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18827 when looking for memory references.
18829 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18832 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18833 via function pointers.
18835 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18837 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18838 indirect call by forcing address into a pseudo with -fno-plt.
18839 * common.opt (flag_plt): New option.
18840 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18841 ([-fno-plt]): Document.
18843 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18846 * config/rs6000/option-defaults.h: Add space between string literal
18849 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18851 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18852 accross ARM targets.
18854 2015-05-11 Christian Bruel <christian.bruel@st.com>
18856 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18857 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18859 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18861 PR rtl-optimization/66076
18862 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18863 Don't grow the heap array if it is already big enough from a
18864 previous iteration.
18866 2015-05-11 Christian Bruel <christian.bruel@st.com>
18868 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18869 (is_called_in_ARM_mode): Remove.
18870 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18871 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18872 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18873 arm_declare_function_name.
18875 2015-05-11 Christian Bruel <christian.bruel@st.com>
18877 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18878 (arm_option_params_internal); New function.
18879 (arm_option_check_internal): New function.
18880 (arm_option_override_internal): New function.
18881 (thumb_code, thumb1_code): Remove.
18882 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18883 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18884 (thumb_code, thumb1_code): Remove.
18885 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18887 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18889 * config/alpha/alpha.c (alpha_emit_set_const_1)
18890 (alpha_emit_set_long_const, alpha_extract_integer)
18891 (alpha_legitimate_constant_p, alpha_split_const_mov)
18892 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18893 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18894 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18896 * config/alpha/predicates.md (mode_mask_operand): Do not match
18898 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18899 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18900 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18901 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18902 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18904 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18907 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18908 default_binds_local_p_2.
18909 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18910 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18912 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18914 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18916 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18918 Patch by Richard Biener
18919 * coverage.c (coverage_obj_init): Delay building of type variant
18920 until the type is finished.
18922 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18924 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18925 mismatch between C and C++ type; compoare correctly ARG_TYPES
18926 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18927 (odr_types_equivalent_p): Fix wording of warning about attributes;
18928 it is OK to match prototype and non-prototype.
18930 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18932 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18933 TYPE_ARG_TYPES list.
18934 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18935 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18937 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18939 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18940 * tree.h (is_lang_specific): Constify.
18942 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18944 PR tree-optimization/64454
18945 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18948 2015-05-08 Jason Merrill <jason@redhat.com>
18950 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18951 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18952 config/darwin.h, config/darwin9.h, config/elfos.h,
18953 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18954 config/microblaze/microblaze.h, config/mips/mips.h,
18955 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18956 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18957 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18958 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18959 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18960 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18961 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18962 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18963 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18964 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18965 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18966 between string literal and macro name.
18968 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18970 * jump.c: Change argument types to rtx_insn *.
18973 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18975 * lra-constraints.c: Change argument type to rtx_insn *.
18977 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18979 * df-problems.c: Change argument type to rtx_insn *.
18981 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18983 * combine.c: Change argument type to rtx_insn *.
18985 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18988 * rtlanal.c: Change argument type to rtx_insn *.
18990 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18992 * sched-deps.c: Change argument types to rtx_insn *.
18993 * sched-int.h: Adjust.
18995 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18997 * dwarf2cfi.c: Change argument type to rtx_insn *.
18999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19001 * ira.c (decrease_live_ranges_number): Changetype of local
19002 variable to rtx_insn *.
19003 * recog.c: Change argument types to rtx_insn *.
19006 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19008 * reorg.c: Change argument types to rtx_insn *.
19010 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19012 * ira-color.c: Change argument types to rtx_insn *.
19013 * lra-eliminations.c: Likewise.
19016 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19018 * gcse.c: Change argument types to rtx_insn *.
19020 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19022 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19024 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19026 * emit-rtl.c (emit_debug_insn_before): Change argument type to
19030 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19032 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19035 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19037 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19040 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19042 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19047 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19050 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19052 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19056 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19058 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19064 * except.c (can_nonlocal_goto): Change type of argument to
19068 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19070 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19073 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19075 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19076 * cfgrtl.c (can_delete_label_p): Adjust.
19079 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19081 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19083 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19085 * except.c (make_reg_eh_region_note): Change argument to
19087 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19088 * except.h: Adjust.
19090 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19092 * mode-switching.c (commit_mode_sets): Change type of local
19093 variable from rtx to rtx_insn *.
19095 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19097 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19098 Add ^ to grep command.
19099 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19100 arg to last gimple_simplify declaration. Add missing gimple_build
19101 declaration for built-in function case with four tree args.
19103 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19104 Szabolcs Nagy <szabolcs.nagy@arm.com>
19106 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19107 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19108 (GNU_USER_DYNAMIC_LINKERN32): Update.
19110 2015-05-08 Richard Biener <rguenther@suse.de>
19112 PR tree-optimization/66036
19113 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19114 Handle strided group loads.
19115 (vect_verify_datarefs_alignment): Likewise.
19116 (vect_enhance_data_refs_alignment): Likewise.
19117 (vect_analyze_group_access): Likewise.
19118 (vect_analyze_data_ref_access): Likewise.
19119 (vect_analyze_data_ref_accesses): Likewise.
19120 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19121 (vectorizable_load): Likewise.
19123 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19125 * config/rs6000/rs6000.md: Require operand inequality in one
19128 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19129 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19131 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19133 * config/rx/rx.md (movdi, movdf): Likewise.
19134 Likewise for define_peephole2s.
19136 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19138 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19139 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19140 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19141 vtst_u64): Rewrite using gcc vector extensions.
19143 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19145 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19146 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19148 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19150 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19152 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19154 * config/glibc-stdint.h (OPTION_MUSL): Define.
19155 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19156 Change the definition based on OPTION_MUSL for 64 bit targets.
19157 * config/linux.h (OPTION_MUSL): Redefine.
19158 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19159 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19160 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19162 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19163 Szabolcs Nagy <szabolcs.nagy@arm.com>
19165 * config.gcc (LIBC_MUSL): New tm_defines macro.
19166 * config/linux.h (OPTION_MUSL): Define.
19167 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19168 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19169 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19170 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19171 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19172 * config/linux.opt (mmusl): New option.
19173 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19174 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19175 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19176 * configure: Regenerate.
19178 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19179 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19182 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19183 * config/i386/knetbsd-gnu64.h: New file.
19185 2015-05-08 Marek Polacek <polacek@redhat.com>
19188 * doc/invoke.texi: Document -Woverride-init-side-effects.
19190 2015-05-07 Marek Polacek <polacek@redhat.com>
19193 * doc/invoke.texi: Document -Wshift-negative-value.
19195 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19197 * gcov-tool.c (do_merge): Refactore to remove int ret.
19198 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19199 !type == FUNC to type != FUNC.
19200 * reload.h (struct target_reload): Changee to type of
19201 x_spill_indirect_levels from bool to unsigned char.
19203 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19205 * rtl.h (always_void_p): New function.
19206 * gengenrtl.c (always_void_p): Likewise.
19207 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19208 with code foo are always VOIDmode.
19209 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19210 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19211 compare-elim.c, config/aarch64/aarch64.c,
19212 config/aarch64/aarch64.md, config/alpha/alpha.c,
19213 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19214 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19215 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19216 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19217 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19218 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19219 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19220 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19221 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19222 config/ia64/vect.md, config/iq2000/iq2000.c,
19223 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19224 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19225 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19226 config/mep/mep.c, config/microblaze/microblaze.c,
19227 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19228 config/mn10300/mn10300.c, config/msp430/msp430.c,
19229 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19230 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19231 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19232 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19233 config/rs6000/rs6000.md, config/rs6000/vector.md,
19234 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19235 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19236 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19237 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19238 config/spu/spu.md, config/stormy16/stormy16.c,
19239 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19240 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19241 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19242 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19243 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19244 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19245 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19246 var-tracking.c: Update calls accordingly.
19248 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19251 PR middle-end/54303
19252 * varasm.c (function_mergeable_rodata_prefix): New function.
19253 (mergeable_string_section): Use it.
19254 (mergeable_constant_section): Use it.
19256 2015-05-07 Jeff Law <law@redhat.com>
19259 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19260 simplifier to narrow arithmetic.
19261 * generic-match-head.c: (types_match, single_use): New functions.
19262 * gimple-match-head.c: (types_match, single_use): New functions.
19264 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19266 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19269 2015-05-07 Richard Biener <rguenther@suse.de>
19271 PR tree-optimization/66002
19272 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19275 2015-05-07 Marek Polacek <polacek@redhat.com>
19276 Martin Uecker <uecker@eecs.berkeley.edu>
19278 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19279 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19280 into SANITIZE_NONDEFAULT.
19281 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19283 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19286 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19287 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19288 (alpha_override_options): Move align_loops, align_jumps and
19289 align_functions handling into alpha_override_options_after_change.
19291 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19292 Chris Jones <chrisj@nvidia.com>
19293 Joshua Conner <jconner@nvidia.com>
19295 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19296 linking of crtfastmath.o.
19297 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19299 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19301 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19302 (cstore<mode>4_unsigned_imm): New expander.
19303 (cstore<mode>4): Remove empty constraint strings. Use the new
19306 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19309 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19312 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19314 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19316 2015-05-06 Alan Modra <amodra@gmail.com>
19319 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19320 (UNSPEC_NOP): Define.
19321 (reload_vsx_from_gpr<mode>): Add missing DONE.
19322 (reload_gpr_from_vsx<mode>): Likewise.
19323 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19324 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19326 2015-05-06 Christian Bruel <christian.bruel@st.com>
19329 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19330 align_jumps, align_functions into aarch64_override_options_after_change.
19332 2015-05-06 Richard Biener <rguenther@suse.de>
19334 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19335 vect_transform_slp_perm_load to check if we support a permutation
19336 for basic-block vectorization.
19338 2015-05-06 Nick Clifton <nickc@redhat.com>
19340 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19341 used, even if it is not being used as a frame pointer.
19343 2015-05-05 Jason Merrill <jason@redhat.com>
19345 * dwarf2out.c (gen_member_die): Don't emit anything for an
19346 anonymous class constructor.
19348 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19350 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19351 that it reflects the block structure.
19352 (afdo_propagate_edge): Likewise.
19353 (afdo_calculate_branch_prob): Likewise.
19354 (afdo_annotate_cfg): Likewise.
19355 * cfgcleanup.c (equal_different_set_p): Likewise.
19356 (try_crossjump_to_edge): Likewise.
19357 * cgraph.c (cgraph_node::verify_node): Likewise.
19358 * cgraphunit.c (expand_all_functions): Likewise.
19359 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19360 (exact_dependency_1): Likewise.
19361 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19362 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19363 * gensupport.c (process_define_subst): Likewise.
19364 * lto-wrapper.c (merge_and_complain): Likewise.
19365 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19366 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19367 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19368 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19369 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19370 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19371 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19372 * tree-vrp.c (vrp_finalize): Likewise.
19373 * tree.c (variably_modified_type_p): Likewise.
19375 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19377 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19378 on darwin12 and later.
19379 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19380 file to pass -rdynamic on darwin12 and later.
19381 * config/darwin.opt (rdynamic): Add.
19383 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19385 * doc/extend.texi (C Extensions): Update menu for moved Variable
19386 Attributes and Type Attributes sections.
19388 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19391 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19392 if rep_8byte stringop strategy was specified for 32-bit target.
19394 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19397 * config/i386/i386.md (vector convert to float spltiter): Check for
19398 xmm16+, when splitting scalar float conversion.
19399 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19401 2015-05-05 Nick Clifton <nickc@redhat.com>
19403 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19404 * config/msp430/msp430.c (msp430_override_options): Complain if
19405 -mcode-region or -mdata-region is used on a non MSP430X.
19406 (msp430_section_attr): New function. Checks lower, upper and
19408 (msp430_attribute_table): Add lower, upper and either.
19409 (gen_prefix): New function. Generates a prefix for a section
19411 (msp430_select_section): New function - handles the choice of
19412 section for an object. Takes into account memory region
19413 attributes and options.
19414 (msp430_function_section): Use gen_prefix.
19415 (TARGET_SECTION_TYPE_FLAGS): Define.
19416 (msp430_section_type_flags): New function.
19417 (TARGET_ASM_UNIQUE_SECTION): Define.
19418 (msp430_unique_section): New function.
19419 (msp430_output_aligned_decl_common): New function.
19420 (msp430_do_not_relax_short_jumps): New function.
19421 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19423 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19424 * config/msp430/msp430-protos.h
19425 (msp430_do_not_relax_short_jumps): New prototype.
19426 (msp430_output_aligned_decl_common): New prototype.
19427 * config/msp430/msp430.md (length): New attribute.
19428 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19429 then use a long code sequence for short jumps.
19430 * config/msp430/msp430.opt (mcode-region): New.
19431 (mdata-region): New.
19432 * doc/invoke.texi: Document new options.
19433 * doc/extend.texi: Document new attributes.
19435 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19437 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19438 (tune_params): Add field branch_costs.
19439 (aarch64_branch_cost): Declare.
19440 * gcc/config/aarch64.c (generic_branch_cost): New.
19441 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19442 (cortexa53_tunings): Likewise.
19443 (cortexa57_tunings): Likewise.
19444 (thunderx_tunings): Likewise.
19445 (xgene1_tunings): Likewise.
19446 (aarch64_branch_cost): Define.
19447 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19449 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19451 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19452 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19453 * config/i386/i386.md: Ditto.
19454 * config/i386/winnt.c: Ditto.
19456 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19458 * doc/extend.texi (__atomic Builtins): Move implementation details
19459 to the end of the description, rewrite opening paragraphs, state
19460 difference with __sync builtins, state C11/C++11 assumptions,
19461 weaken itemized descriptions, add explanation of memory model
19462 behaviour, expand description of compare-exchange, simplify text.
19464 2015-05-05 Renlin Li <renlin.li@arm.com>
19466 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19468 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19470 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19471 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19472 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19473 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19474 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19475 * configure: Regenerate.
19476 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19477 * doc/install.texi (aarch64*-*-*): Document new
19478 --enable-fix-cortex-a53-843419 option.
19479 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19480 and -mno-fix-cortex-a53-843419 options.
19482 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19485 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19487 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19489 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19490 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19491 compatibility problems.
19493 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19495 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19497 (cbranchsi4_reg): New.
19498 * config/microblaze/microblaze.c
19499 (microblaze_expand_conditional_branch_reg): New.
19500 * config/microblaze/microblaze-protos.h
19501 (microblaze_expand_conditional_branch_reg): New prototype.
19503 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19505 * config/microblaze/microblaze.md (peephole2): New.
19507 2015-05-04 Jeff Law <law@redhat.com>
19510 2015-05-04 Jeff Law <law@redhat.com>
19512 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19513 simplifier to narrow arithmetic.
19514 * generic-match-head.c: (types_match, single_use): New functions.
19515 * gimple-match-head.c: (types_match, single_use): New functions.
19517 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19520 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19521 (split_branches): Likewise.
19523 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19525 * common.opt (fdelete-null-pointer-checks): Init to -1.
19526 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19527 override flag_delete_null_pointer_checks default.
19528 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19529 behavior re address zero. Better document target-specific behavior.
19530 (-fisolate-errneous-paths-dereference): Mention relationship to
19531 -fdelete-null-pointer-checks.
19533 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19535 PR tree-optimization/65984
19536 * ubsan.c: Include tree-cfg.h.
19537 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19538 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19540 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19542 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19543 to CONST_DOUBLE_P predicate.
19544 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19545 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19546 allow only operands that satisfy standard_sse_constant_p predicate.
19547 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19548 to CONST_DOUBLE_P predicate.
19550 2015-05-04 Jeff Law <law@redhat.com>
19552 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19553 simplifier to narrow arithmetic.
19554 * generic-match-head.c: (types_match, single_use): New functions.
19555 * gimple-match-head.c: (types_match, single_use): New functions.
19557 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19559 * config/arm/arm.c: Restore bootstrap.
19561 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19563 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19564 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19565 as CONST_WIDE_INT, not CONST_DOUBLE.
19566 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19567 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19568 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19569 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19570 (ix86_build_signbit_mask): Rewrite using wide ints.
19571 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19572 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19573 (find_constant): Ditto.
19574 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19575 using gen_int_mode.
19576 * config/i386/predicates.md (x86_64_immediate_operand)
19577 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19578 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19579 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19580 (const0_operand): Also match const_wide_int.
19581 (constm1_operand): Ditto.
19582 (const1_operand): Ditto.
19584 2015-05-04 Richard Biener <rguenther@suse.de>
19586 PR tree-optimization/65965
19587 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19588 store groups at gaps.
19590 2015-05-04 Richard Biener <rguenther@suse.de>
19592 PR tree-optimization/65935
19593 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19594 then make sure to apply that swapping to the IL.
19596 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19598 * Makefile.in (PATCHLEVEL_c): New variable.
19599 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19600 expand the same way as if DEVPHASE_c was non-empty.
19602 2015-05-04 Kai Tietz <ktietz@redhat.com>
19605 * lto-wrapper.c (run_gcc): Open filename
19608 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19610 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19611 sections up in file, to immediately after the Function Attributes
19614 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19616 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19618 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19620 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19621 (insert_partition_copy_on_edge): Adjust.
19622 (insert_rtx_to_part_on_edge): Likewise.
19623 (insert_part_to_rtx_on_edge): Likewise.
19625 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19627 * function.c (set_return_jump_label): Change type of argument to
19629 * function.h (set_return_jump_label): Adjust.
19631 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19633 * reload.h (struct reg_equivs_t): Change type of init to
19635 * ira.c (fix_reg_equiv_init): Adjust.
19636 * reload1.c (eliminate_regs_1): Likewise.
19637 (init_eliminable_invariants): Likewise.
19639 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19641 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19642 * cselib.h (fp_setter_insn): Adjust.
19644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19646 * recog.c (struct validate_replace_src_data): Change type of
19647 insn field to rtx_insn *.
19648 (validate_replace_src_group): Change type of argument to rtx_insn *.
19649 * recog.h (validate_replace_src_group): Adjust.
19651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19653 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19654 * sched-deps.c: Likewise.
19655 * sched-int.h: Likewise.
19656 * sched-rgn.c: Likewise.
19657 * sel-sched.c: Likewise.
19659 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19662 * config/i386/i386.c: Change the type of some arguments to
19664 * config/arm/arm.c: Likewise.
19666 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19668 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19670 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19672 * regcprop.c (kill_autoinc_value): Change type of argument to
19675 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19677 * genrecog.c (print_subroutine): Adjust.
19678 * recog.c (get_bool_attr_mask_uncached): Likewise.
19679 * recog.h (struct recog_data_d): Change the type of insn to
19682 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19684 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19686 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19688 * df-problems.c (df_set_note): Change type of argument to
19691 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19693 * builtins.c (expand_builtin_trap): Change type of local
19694 variable to rtx_insn *.
19695 (add_sched_insns_for_speculation): Likewise.
19696 (ix86_emit_save_regs): Likewise.
19697 (get_scratch_register_on_entry): Likewise.
19698 (ix86_emit_restore_reg_using_pop): Likewise.
19699 (ix86_emit_leave): Likewise.
19700 (ix86_emit_restore_regs_using_mov): Likewise.
19701 (ix86_expand_epilogue): Likewise.
19703 (rl78_alloc_physical_registers_umul): Likewise.
19704 * cselib.c (discard_useless_locs): Likewise.
19705 (cselib_invalidate_regno): Likewise.
19706 (cselib_invalidate_mem): Likewise.
19707 * function.c (expand_function_start): Likewise.
19708 (emit_use_return_register_into_block): Likewise.
19709 * gcse.c: Likewise.
19710 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19711 * ifcvt.c (noce_get_alt_condition): Likewise.
19712 * loop-doloop.c (doloop_condition_get): Likewise.
19713 * lra-constraints.c (inherit_in_ebb): Likewise.
19714 * modulo-sched.c (sms_schedule_by_order): Likewise.
19715 * recog.c (next_insn_tests_no_inequality): Likewise.
19716 * reorg.c (emit_delay_sequence): Likewise.
19717 (update_reg_dead_notes): Likewise.
19718 (fix_reg_dead_note): Likewise.
19719 (fill_slots_from_thread): Likewise.
19720 (delete_computation): Likewise.
19722 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19724 * doc/extend.texi (Variable Attributes): Add menu and proper
19725 @nodes to subsections. Move Microsoft Windows attributes to
19726 their own subsection.
19727 (Type Attributes): Reorganize introduction to remove duplicate
19728 list of attributes. Add menu and proper @nodes to subsections.
19729 Alphabetize the main table of common attributes.
19731 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19733 * match.pd: New simplification patterns.
19734 (x + (x & 1)) -> ((x + 1) & ~1)
19735 (x & ~(x & y)) -> ((x & ~y))
19736 (x | ~(x | y)) -> ((x | ~y))
19738 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19740 * target.def (attribute_table): Mention that struct attribute_spec
19741 is defined in tree-core.h rather than tree.h
19742 * doc/tm.texi: Regenerate.
19744 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19746 * genrecog.c (test): Rename to rtx_test. Update rest of file
19749 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19751 PR translation/65959
19752 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19754 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19756 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19757 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19758 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19759 Return value depending on target.
19760 (generic_tunings): Initialize new target settings.
19761 (cortexa53_tunings): Likewise.
19762 (cortexa57_tunings): Likewise.
19763 (thunderx_tunings): Likewise.
19764 (xgene1_tunings): Likewise.
19766 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19768 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19769 Make Cortex-A53 shift costs more accurate.
19771 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19773 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19776 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19778 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19779 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19781 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19783 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19784 Add cost of op0 in the compare-with-fpzero case.
19786 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19788 * builtins.c (fold_builtin_1): Remove spurious second
19790 * cgraph.h (symtab_node::get_availability): Likewise.
19791 * opts.c (common_handle_option): Remove spurious second semicolon.
19792 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19793 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19795 2015-04-30 Caroline Tice <cmtice@google.com>
19797 PR gcov-profile/65929
19798 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19799 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19800 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19801 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19802 * doc/tm.texi: Regenerate.
19803 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19804 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19805 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19806 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19808 2015-04-30 Marek Polacek <polacek@redhat.com>
19810 * varasm.c (handle_cache_entry): Fix logic.
19812 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19814 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19815 (*extrsi5_insn_uxtw_alt): Likewise.
19816 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19817 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19820 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19822 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19825 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19827 * config/aarch64/aarch64.md
19828 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19829 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19830 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19831 appropriately. Handle alternative EON form.
19833 2015-04-30 Renlin Li <renlin.li@arm.com>
19835 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19836 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19838 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19841 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19842 -fstrict-aliasing boundaries.
19844 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19846 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19847 and [SU]MNEGL patterns.
19849 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19851 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19852 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19853 combined arithmetic-shift ops. Properly handle all shift and extend
19854 operations that can occur in combination with PLUS/MINUS.
19855 Rename maybe_fma to compound_p.
19856 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19857 arithmetic and shift operations.
19859 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19861 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19862 rather than arith_shift cost when costing ADD/MINUS of an
19865 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19868 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19871 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19873 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19874 are for the same position.
19876 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19878 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19880 (vectorize_loops): Use it.
19882 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19884 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19885 for aggregate types.
19886 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19887 type to be non_ODR.
19888 * tree.c (need_assembler_name_p): Compute mangled name for
19889 non-fundamental types and integer types.
19891 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19893 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19895 * expr.c (expand_expr_real_2): Likewise.
19897 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19899 * tree.c (build_common_builtin_nodes): Do not build
19900 __builtin_alloca_with_align as equivalent of library alloca.
19902 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19904 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19905 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19907 * tree.c: Include print-tree.h and ipa-utils.h
19908 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19909 (free_lang_data_in_cgraph): Call verify_type.
19910 (verify_type_variant): New function.
19911 (verify_type): New function.
19912 * tree.h (verify_type): Declare.
19914 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19916 * config/mips/mips-cpus.def: (mips4): Change default processor
19917 from PROCESSOR_R8000 to PROCESSOR_R10000.
19919 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19921 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19922 la/jalr instead of jal.
19924 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19927 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19928 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19929 (setcc+movzbl peephole2): Check also clobbered reg.
19930 (setcc+andl peephole2): Ditto.
19932 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19935 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19936 (main): Set it depending on "-foffload-abi=[...]".
19937 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19940 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19943 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19944 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19945 Flip lane index back at assembly time for bigendian.
19947 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19949 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19950 * gimplify.c (gimplify_omp_workshare): Use it.
19952 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19954 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19955 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19957 * genrecog.c: Rewrite most of the code except for the third page.
19959 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19961 * inchash.h, inchash.c: Include bconfig.h for build objects.
19962 * Makefile.in (build/inchash.o): New rule.
19964 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19967 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19968 number in type attribute expression.
19970 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19972 * loop-iv.c (canon_condition): Generalize to all types of integer
19975 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19977 * gimple-walk.c: Prune duplicate or unneeded includes.
19978 (walk_gimple_asm): Only call parse_input_constraint or
19979 parse_output_constraint if their findings are used.
19980 Honour parse_input_constraint and parse_output_constraint
19983 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19985 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19987 2015-04-29 Tom de Vries <tom@codesourcery.com>
19989 PR tree-optimization/65893
19990 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19993 2015-04-29 Richard Biener <rguenther@suse.de>
19995 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19996 compute GROUP_SIZE for basic-block SLP.
19997 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19998 take into account gaps.
19999 (vect_get_mask_element): Properly reject references to previous
20001 (vect_transform_slp_perm_load): Likewise.
20003 2015-04-29 Christian Bruel <christian.bruel@st.com>
20006 * config/i386/i386.c (ix86_default_align): New function.
20007 (ix86_override_options_after_change): Call ix86_default_align.
20008 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20009 (ix86_override_options_after_change): New function.
20011 2015-04-28 Jeff Law <law@redhat.com>
20013 * tree-ssa-dom.c (record_equality); Fix comment typos.
20015 2015-04-28 Tom de Vries <tom@codesourcery.com>
20017 PR tree-optimization/65887
20018 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20020 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
20022 * doc/extend.texi (Declaring Attributes of Functions): Split into
20023 subsections by target. Alphabetize the table of common attributes.
20024 Rewrite some of the introductory text to reflect the new structure.
20025 Update some cross-references to point to the new subsections.
20026 (Attribute Syntax): Put paragraph about "__" naming here. Remove
20027 duplicate copies in the discussion of function, label, and type
20030 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
20033 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20035 2015-04-28 Jason Merrill <jason@redhat.com>
20038 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20039 (finalize_type_size): Respect TYPE_USER_ALIGN.
20040 (layout_type) [ARRAY_TYPE]: Likewise.
20042 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
20044 * config/arm/arm.md (*arm_movt): Fix type attribute.
20045 (*cmpsi_shiftsi): Likewise.
20046 (*cmpsi_shiftsi_swp): Likewise.
20047 (*movsicc_insn): Likewise.
20048 (*cond_move): Likewise.
20049 (*if_plus_move): Likewise.
20050 (*if_move_plus): Likewise.
20051 (*if_arith_move): Likewise.
20052 (*if_move_arith): Likewise.
20053 (*if_shift_move): Likewise.
20054 (*if_move_shift): Likewise.
20055 (*arm_movtas_ze): Likewise.
20056 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20057 redundancy and type attribute.
20058 (*thumb2_movsi_insn): Fix type attribute.
20059 (*thumb2_addsi_short): Likewise.
20060 (thumb2_addsi3_compare0): Likewise.
20061 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20062 attributes accordingly.
20064 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20067 * function.c (pad_to_arg_alignment): Add parentheses.
20069 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
20071 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20072 libgcc/config/frv/elf-lib.h.
20074 2015-04-28 Tom de Vries <tom@codesourcery.com>
20076 * tree-call-cdce.c: Fix example in header comment.
20078 2015-04-28 Richard Biener <rguenther@suse.de>
20080 PR tree-optimization/62283
20081 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20082 fails fatally and we are vectorizing a basic-block simply
20083 cause the child to be constructed piecewise.
20084 (vect_analyze_slp_cost_1): Adjust.
20085 (vect_detect_hybrid_slp_stmts): Likewise.
20086 (vect_bb_slp_scalar_cost): Likewise.
20087 (vect_get_constant_vectors): For piecewise constructed
20088 constants place them after the last def.
20089 (vect_get_slp_defs): Adjust.
20090 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20091 externals for basic-block vectorization.
20093 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20096 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20098 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20099 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20100 (AARCH64_TUNE_FMA_STEERING): Likewise.
20101 * config/aarch64/aarch64-cores.def: Set
20102 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20103 FMUL/FMADD instructions.
20104 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20105 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20106 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20107 * config/aarch64/cortex-a57-fma-steering.h: New file.
20108 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20110 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20112 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20114 2015-04-28 Richard Biener <rguenther@suse.de>
20116 PR tree-optimization/65851
20117 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20118 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20119 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20120 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20121 (ccp_visit_phi_node): Adjust.
20122 (evaluate_stmt): For simplifications to SSA names return its
20123 lattice value if that isn't VARYING. Return immediately when
20124 simplified to a constant.
20125 (visit_assignment): Adjust.
20126 (ccp_visit_stmt): Likewise.
20128 2015-04-28 Tom de Vries <tom@codesourcery.com>
20130 PR tree-optimization/65818
20131 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20134 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20136 * calls.c (save_fixed_argument_area): Don't check
20137 ARGS_GROW_DOWNWARD with the preprocessor.
20138 (restore_fixed_argument_area): Likewise.
20139 (mem_overlaps_already_clobbered_arg_p): Likewise.
20140 (check_sibcall_argument_overlap): Likewise.
20141 (expand_call): Likewise.
20142 (emit_library_call_value_1): Likewise.
20143 (store_one_arg): Likewise.
20144 * function.c (assign_parms): Likewise.
20145 (locate_and_pad_parm): Likewise.
20146 (pad_to_arg_alignment): Likewise.
20147 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20149 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20151 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20152 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20153 * calls.c (save_fixed_argument_area): Don't chekc if
20154 ARGS_GROW_DOWNWARD is defined.
20155 (restore_fixed_argument_area): Likewise.
20156 (mem_overlaps_already_clobbered_arg_p): Likewise.
20157 (check_sibcall_argument_overlap): Likewise.
20158 (expand_call): Likewise.
20159 (emit_library_call_value_1): Likewise.
20160 (store_one_arg): Likewise.
20161 * function.c (assign_parms): Likewise.
20162 (locate_and_pad_parm): Likewise.
20163 (pad_to_arg_alignment): Likewise.
20164 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20166 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20168 * defaults.h (gen_epilogue): New function.
20169 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20171 * cfgrtl.c (cfg_layout_finalize): Likewise.
20172 * df-scan.c: Likewise.
20173 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20174 (reposition_prologue_and_epilogue_notes): Likewise.
20175 * reorg.c (find_end_label): Likewise.
20176 * toplev.c: Likewise.
20178 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20180 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20181 * defaults.h (gen_simple_return): New function.
20182 (gen_simple_return): Likewise.
20183 (HAVE_return): Add default definition to false.
20184 (HAVE_simple_return): Likewise.
20185 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20186 HAVE_return and HAVE_simple_return are defined.
20187 * function.c (gen_return_pattern): Likewise.
20188 (convert_jumps_to_returns): Likewise.
20189 (thread_prologue_and_epilogue_insns): Likewise.
20190 * reorg.c (find_end_label): Likewise.
20191 (dbr_schedule): Likewise.
20192 * shrink-wrap.c: Likewise.
20193 * shrink-wrap.h: Likewise.
20195 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20197 * defaults.h (EPILOGUE_USES): Add default definition of false.
20198 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20199 * resource.c (init_resource_info): Likewise.
20201 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20203 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20205 * dwarf2out.c (field_byte_offset): REmove check if
20206 PCC_BITFIELD_TYPE_MATTERS is defined.
20207 * stor-layout.c (layout_decl): Likewise.
20208 (update_alignment_for_field): Likewise.
20209 (place_field): Likewise.
20211 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20213 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20215 * regrename.c (check_new_reg_p): Remove check if
20216 HARD_REGNO_RENAME_OK is defined.
20217 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20219 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20221 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20222 * cse.c (fold_rtx): Likewise.
20223 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20224 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20225 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20226 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20227 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20228 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20229 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20230 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20231 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20232 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20234 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20235 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20236 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20237 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20238 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20239 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20240 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20241 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20242 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20243 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20244 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20245 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20246 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20247 * doc/tm.texi: Regenerate.
20248 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20249 either true or false.
20251 2015-04-27 Jeff Law <law@redhat.com>
20253 PR tree-optimization/65217
20254 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20255 of them has a single use, make sure it is the LHS of the implied
20258 2015-04-28 Alan Modra <amodra@gmail.com>
20261 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20262 (offsettable_ok_by_alignment): Use minimum of decl and toc
20263 pointer alignment. Replace dead code with assertion.
20264 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20265 case if size exceeds toc pointer alignment.
20266 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20267 (rs6000_emit_move): Likewise.
20268 * configure.ac: Add linker toc pointer alignment check.
20269 * configure: Regenerate.
20270 * config.in: Regenerate.
20272 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20274 * config.gcc: Add h8300-*-linux.
20275 * config/h8300/linux.h: New.
20276 * config/h8300/t-linux: New.
20277 * config/h8300/h8300.c (h8300_option_override): Normal mode
20278 is not supported for h8300-*-linux.
20279 (h8300_file_start): Target priority change.
20280 (get_shift_alg): Likewise.
20281 (h8300_shift_need_scratch_p): Likewise.
20282 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20283 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20285 2015-04-27 Caroline Tice <cmtice@google.com>
20287 * final.c (final_scan_insn): Output cold_function_name as function
20289 * varasm.c (cold_function_name): Make global.
20290 (assemble_start_function): Re-set cold_function_name.
20291 (assemble_end_function): Output cold partition size.
20292 * varasm.h (cold_function_name): Declare global.
20294 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20296 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20297 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20299 (*movxi_internal_avx512f): Ditto.
20300 (define_split): Check for xmm16+, when splitting scalar float_extend.
20301 (*extendsfdf2_mixed): Use "v" constraint.
20302 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20303 (*truncdfsf_fast_sse): Use "v" constraint.
20304 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20305 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20306 (define_peephole2): Check for xmm16+, when converting scalar
20308 (define_peephole2): Check for xmm16+, when converting scalar
20310 (*fop_<mode>_comm_mixed): Use "v" constraint.
20311 (*fop_<mode>_comm_sse): Ditto.
20312 (*fop_<mode>_1_mixed): Ditto.
20313 (*sqrt<mode>2_sse): Ditto.
20314 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20316 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20318 * combine.c (simplify_if_then_else): Use std::swap instead
20319 of manually swapping.
20320 (known_cond): Likewise.
20321 (simplify_comparison): Likewise.
20323 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20326 * config/rs6000/htm.md: Remove all define_expands.
20327 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20328 UNSPECV_HTM_TABORTWCI): Remove.
20329 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20330 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20331 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20332 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20333 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20334 tabortwci_internal): Remove define_insns.
20335 (tabort<wd>c, tabort<wd>ci): New define_insns.
20336 (tabort): Use gpc_reg_operand.
20337 (tcheck): Remove operand.
20338 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20339 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20341 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20342 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20343 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20344 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20345 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20346 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20347 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20348 (tcheck): Remove builtin argument.
20349 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20351 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20352 tabortdc and tabortdci builtins when not in 64-bit mode.
20353 Modify code to handle the loss of the HTM define_expands.
20354 Emit code to copy the CR register to TARGET.
20355 (htm_init_builtins): Modify code to handle the loss of the HTM
20357 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20358 (RS6000_BTC_64BIT): Likewise.
20359 (RS6000_BTC_CR): New macro.
20360 * doc/extend.texi: Update documentation for htm builtins.
20362 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20364 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20365 of manually swapping.
20366 (simplify_associative_operation): Likewise.
20367 (simplify_binary_operation): Likewise.
20368 (simplify_plus_minus): Likewise.
20369 (simplify_relational_operation): Likewise.
20370 (simplify_ternary_operation): Likewise.
20372 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20374 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20375 (xs_hi_nonmemory_operand): Remove error.
20376 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20377 general_operand rather than xs_hi_general_operand.
20379 2015-04-27 Richard Biener <rguenther@suse.de>
20381 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20382 (record_equivalences_from_stmt): Valueize rhs.
20383 (record_equality): Canonicalize x and y order via
20384 tree_swap_operands_p. Do not swap operands for same loop depth.
20386 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20390 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20391 Add hint how to use own spec file.
20393 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20395 PR tree-optimization/65875
20396 * tree-vrp.c (update_value_range): If in is_new case setting
20397 old_vr to VR_VARYING, also set new_vr to it. Remove
20398 old_vr->type == VR_VARYING test.
20399 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20400 SSA_PROP_INTERESTING if update_value_range returned true,
20401 but new range is VR_VARYING.
20403 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20405 * combine.c (sign_extend_short_imm): New.
20406 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20407 extension of src short immediate.
20408 (reg_nonzero_bits_for_combine): Likewise for tem.
20410 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20412 * stor-layout.c (self_referential_component_ref_p): New predicate.
20413 (copy_self_referential_tree_r): Use it.
20414 (self_referential_size): Punt for simple operations directly involving
20415 self-referential component references.
20416 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20418 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20420 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20422 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20424 * vec.h (vec): Make splice arguments const. Update definitions
20427 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20429 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20432 2015-04-26 Tom de Vries <tom@codesourcery.com>
20434 PR tree-optimization/65826
20435 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20437 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20439 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20440 (*madd3<mode>): Ditto.
20441 (*msub4<mode>): Ditto.
20442 (*msub3<mode>): Ditto.
20443 (*nmadd4<mode>): Ditto.
20444 (*nmadd3<mode>): Ditto.
20445 (*nmadd4<mode>_fastmath): Ditto.
20446 (*nmadd3<mode>_fastmath): Ditto.
20447 (*nmsub4<mode>): Ditto.
20448 (*nmsub3<mode>): Ditto.
20449 (*nmsub4<mode>_fastmath): Ditto.
20450 (*nmsub3<mode>_fastmath): Ditto.
20452 2015-04-24 Jason Merrill <jason@redhat.com>
20455 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20456 down when building TYPE_CANONICAL.
20457 (build_pointer_type_for_mode): Likewise.
20459 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20461 * genrecog.c (validate_pattern): Check matching constraint refers
20462 to a lower numbered operand.
20464 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20467 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20468 save to independent variables use the Save attribute. This will
20469 allow these options to be modified with the #pragma/attribute
20471 (-mallow-movmisalign): Likewise.
20472 (-mallow-df-permute): Likewise.
20473 (-msched-groups): Likewise.
20474 (-malways-hint): Likewise.
20475 (-malign-branch-targets): Likewise.
20476 (-mvectorize-builtins): Likewise.
20477 (-msave-toc-indirect): Likewise.
20479 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20480 can be set via the #pragma/attribute target support.
20481 (rs6000_opt_vars): Likewise.
20482 (rs6000_inner_target_options): If VSX was set, also set
20483 -mno-avoid-indexed-addresses.
20485 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20487 * config/arm/iterators.md (shiftable_ops): Rename to...
20488 (SHIFTABLE_OPS): ... This. Update use in comments.
20489 (ior_xor): Rename to...
20490 (IOR_XOR): ... This.
20491 (vqh_ops): Rename to...
20492 (VQH_OPS): ... This.
20493 (vqhs_ops): Rename to...
20494 (VQHS_OPS): ... This.
20495 (rshifts): Rename to...
20496 (RSHIFTS): ... This.
20497 (returns): Rename to...
20498 (RETURNS): ... This.
20499 * config/arm/arm.md: Update uses of the above.
20500 * config/arm/neon.md: Likewise.
20502 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20504 * config.host (case ${host}): Add aarch64*-*-linux case.
20505 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20506 fields to all the cores.
20507 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20508 Add MCPU_MTUNE_NATIVE_SPECS.
20509 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20510 field to all extensions.
20511 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20512 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20513 Adjust definition of AARCH64_OPT_EXTENSION.
20514 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20515 (MCPU_MTUNE_NATIVE_SPECS): Define.
20516 * config/aarch64/driver-aarch64.c: New file.
20517 * config/aarch64/x-arch64: New file.
20518 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20521 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20522 Wei Mi <wmi@google.com>
20524 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20525 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20526 (ix86_operands_ok_for_move_multiple): Ditto.
20527 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20528 (movlpd/movhpd to movupd peephole2): Ditto.
20530 2015-04-24 Marek Polacek <polacek@redhat.com>
20533 * input.h (from_macro_expansion_at): Define.
20536 * doc/invoke.texi: Update description of -Wlogical-op.
20538 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20540 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20541 ternary operator in fprintf and harmonize spacing.
20543 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20545 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20546 Mark operand1 commutative.
20548 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20550 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20551 input operands in memory.
20552 (*vec_concatv2si_sse4_1): Ditto.
20553 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20554 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20556 (vec_extract_hi_v32hi): Ditto.
20557 (vec_extract_hi_v64hi): Ditto.
20558 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20560 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20561 Steven Bosscher <steven@gcc.gnu.org>
20563 PR rtl-optimization/34503
20564 * cprop.c (cprop_reg_p): New.
20565 (hash_scan_set): Use above function to check if register can be
20567 (find_avail_set): Return up to two sets, one whose source is a
20568 register and one whose source is a constant. Sets are returned in an
20569 array passed as parameter rather than as a return value.
20570 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20571 sets returned by find_avail_set, starting with the one whose source is
20572 a constant. Use cprop_reg_p to check if register can be propagated.
20573 (do_local_cprop): Use cprop_reg_p to check if register can be
20575 (implicit_set_cond_p): Likewise.
20577 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20579 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20580 (sem_function::equals): IGNORED_NODES parameter is now unused;
20581 update call of equals_private.
20582 (sem_function::equals_private): Do not call equals_wpa; skip
20583 gimple body matching if there is no body.
20584 (sem_function::init): Add logic to hash tthunk info.
20585 (sem_function::parse): Also parse thunks.
20586 * ipa-icf.h (equals_private): Update declaration.
20588 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20590 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20591 asterisk from name so this can be generated directly.
20592 (*altivec_stvx_<mode>_internal): Likewise.
20593 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20594 that this is never called during or after reload/lra.
20595 (rs6000_frame_related): Remove split_reg
20596 argument and logic that references it.
20597 (emit_frame_save): Remove last parameter from call to
20598 rs6000_frame_related.
20599 (rs6000_emit_prologue): Remove last parameter from eight calls to
20600 rs6000_frame_related. Force generation of stvx instruction for
20601 Altivec register saves. Remove split_reg handling, which is no
20603 (rs6000_emit_epilogue): Force generation of lvx instruction for
20604 Altivec register restores.
20606 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20608 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20609 match category changes in ISA 2.07B.
20611 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20613 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20615 (cmp_op, cmp_type): New code attributes.
20616 (NEON_VCMP, NEON_VACMP): New int iterators.
20617 (cmp_op_unsp): New int attribute.
20618 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20619 (neon_vceq<mode>): Delete.
20620 (neon_vc<cmp_op><mode>_insn): New pattern.
20621 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20622 (neon_vcgeu<mode>): Delete.
20623 (neon_vcle<mode>): Likewise.
20624 (neon_vclt<mode>: Likewise.
20625 (neon_vcage<mode>): Likewise.
20626 (neon_vcagt<mode>): Likewise.
20627 (neon_vca<cmp_op><mode>): New define_expand.
20628 (neon_vca<cmp_op><mode>_insn): New pattern.
20629 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20631 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20633 * tree.h (attribute_value_equal): Declare.
20634 * tree.c (attribute_value_equal): Export.
20636 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20638 * ipa-icf.c (sem_item::compare_attributes): New function.
20639 (sem_item::compare_referenced_symbol_properties): Compare variable
20641 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20642 (sem_function::param_used_p): New function.
20643 (sem_function::equals_wpa): Fix attribute comparsion; match
20644 parameter type codes; do not compare paremter flags when
20645 they are not used; compare edge flags; compare indirect calls.
20646 (sem_item::update_hash_by_addr_refs): Hash reference type.
20647 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20648 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20649 reference use type.
20650 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20651 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20653 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20655 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20657 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20658 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20659 (sem_item::compare_referenced_symbol_properties): New.
20660 (sem_item::hash_referenced_symbol_properties): New.
20661 (sem_item::compare_cgraph_references): Rename to ...
20662 (sem_item::compare_symbol_references): ... this one; use
20663 compare_referenced_symbol_properties.
20664 (sem_function::equals_wpa): Do not compare
20665 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20666 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20667 (sem_item::update_hash_by_addr_refs): Call
20668 hash_referenced_symbol_properties.
20669 (sem_item::update_hash_by_local_refs): Cleanup.
20670 (sem_function::merge): Do not mix up symbol properties.
20671 (sem_variable::equals_wpa): Use compare_symbol_references.
20672 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20673 (sem_item::hash_referenced_symbol_properties): New.
20674 (sem_item::compare_symbol_references): New.
20675 (sem_item::compare_cgraph_references): Remove.
20677 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20680 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20681 Emit size of local.
20683 2015-04-23 Nick Clifton <nickc@redhat.com>
20685 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20686 ATTRIBUTE_UNUSED to x parameter.
20687 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20689 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20691 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20692 TARGET_CRYPTO to TARGET_P8_VECTOR>
20693 (crypto_vpermxor_<mode>): Likewise.
20694 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20695 (BU_CRYPTO_3A): Likewise.
20696 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20697 (BU_CRYPTO_OVERLOAD_3A): New #define.
20698 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20699 (VPMSUMH): Likewise.
20700 (VPMSUMW): Likewise.
20701 (VPMSUMD): Likewise.
20702 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20703 (VPERMXOR_V4SI): Likewise.
20704 (VPERMXOR_V8HI): Likewise.
20705 (VPERMXOR_V16QI): Likewise.
20706 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20707 BU_CRYPTO_OVERLOAD_2A.
20708 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20709 BU_CRYPTO_OVERLOAD_3A.
20710 * config/rs6000/rs6000.opt (mcrypto): Change description of
20713 2015-04-23 Richard Biener <rguenther@suse.de>
20715 * passes.def: Remove copy propagation passes run directly after CCP.
20716 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20718 (ccp_visit_phi_node): Rework to handle first executable edge
20721 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20723 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20724 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20725 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20726 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20727 (thumb_legimitimize_reload_address): Remove.
20728 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20730 (thumb_legimitimize_reload_address): Remove.
20732 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20734 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20736 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20738 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20740 (store_multiple): Likewise.
20742 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20744 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20745 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20746 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20747 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20748 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20749 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20750 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20751 Specify issue_rate value.
20752 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20753 large switch statement.
20754 (arm_marvell_pj4_tune): New struct.
20755 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20758 2015-04-23 Richard Biener <rguenther@suse.de>
20760 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20761 (vect_find_last_store_in_slp_instance): Rename to ...
20762 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20763 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20764 and vec_construct for external defs when estimating prologue cost.
20765 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20766 Compute costs here only when vectorizing loops.
20767 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20768 have been determined.
20769 (vect_schedule_slp_instance): Simplify vectorized code placement
20770 and prepare for in-BB external defs.
20771 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20772 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20773 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20775 (vect_model_load_cost): Likewise.
20776 (vectorizable_store): Instead add it here.
20777 (vectorizable_load): Likewise.
20778 (vect_is_simple_use): Dump def type textually.
20780 2015-04-23 Richard Biener <rguenther@suse.de>
20782 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20783 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20784 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20785 instead of get_eh_region_from_lp_number.
20786 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20789 2015-04-23 Anton Blanchard <anton@samba.org>
20791 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20792 need for -mprofile-kernel to save LR to stack.
20794 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20796 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20798 (insn_is_swappable_p): Return 1 for a convert from double to
20799 single precision when all of its uses are splats of BE element
20802 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20804 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20806 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20809 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20810 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20811 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20813 (rs6000_builtin_mask_for_load): Return 0 for targets with
20814 efficient unaligned VSX accesses so that the vectorizer will use
20815 direct unaligned loads.
20816 (rs6000_builtin_support_vector_misalignment): Always return true
20817 for targets with efficient unaligned VSX accesses.
20818 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20819 stores on targets with efficient unaligned VSX accesses is almost
20820 always the same as the cost of an aligned load or store, so model
20822 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20823 unaligned vectors if we have efficient unaligned VSX accesses.
20824 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20825 undocumented option.
20827 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20830 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20832 * config.gcc (LIBC_MUSL): New tm_defines macro.
20833 * config/linux.h (OPTION_MUSL): Define.
20834 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20835 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20836 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20838 * config/linux.opt (mmusl): New option.
20839 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20840 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20842 * configure: Regenerate.
20844 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20846 * config.gcc (LIBC_MUSL): New tm_defines macro.
20847 * config/linux.h (OPTION_MUSL): Define.
20848 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20849 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20850 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20852 * config/linux.opt (mmusl): New option.
20853 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20854 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20856 * configure: Regenerate.
20858 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20860 * doc/invoke.texi (-fsanitize-sections): Update description.
20861 * asan.c (set_sanitized_sections): Parse incoming arg.
20862 (section_sanitized_p): Support wildcards.
20864 2015-04-22 Tom de Vries <tom@codesourcery.com>
20866 PR tree-optimization/65823
20867 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20868 equality between ap_copy and ap.
20870 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20873 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20875 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20878 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20880 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20883 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20884 remove already contained t-files.
20886 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20888 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20889 Remove unneeded forward declarations.
20890 (suitable_for_tail_call_opt_p): Commentary typo fix.
20892 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20894 * varasm.c (emit_bss): Remove redundant guard.
20896 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20898 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20900 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20902 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20904 2015-04-22 Hale Wang <hale.wang@arm.com>
20905 Terry Guo <terry.guo@arm.com>
20907 PR rtl-optimization/64818
20908 * combine.c (can_combine_p): Don't combine user-specified
20909 register if it is in an asm input.
20911 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20914 * passes.def (early_optimizations): Add pass_dse.
20916 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20918 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20919 * reorg.c (redundant_insn): Remove ifdef
20920 INSN_REFERENCES_ARE_DELAYED.
20921 * resource.c (mark_referenced_resources): Likewise.
20923 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20925 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20926 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20927 * resource.c (mark_set_resources): Likewise.
20929 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20931 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20932 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20933 (flow_find_head_matching_sequence): Likewise.
20934 (try_head_merge_bb): Likewise.
20935 * combine.c (can_combine_p): Likewise.
20936 (try_combine): Likewise.
20937 (distribute_notes): Likewise.
20938 * df-problems.c (can_move_insns_across): Likewise.
20939 * final.c (final): Likewise.
20940 * gcse.c (insert_insn_end_basic_block): Likewise.
20941 * ira.c (find_moveable_pseudos): Likewise.
20942 * reorg.c (try_merge_delay_insns): Likewise.
20943 (fill_simple_delay_slots): Likewise.
20944 (fill_slots_from_thread): Likewise.
20945 * sched-deps.c (sched_analyze_2): Likewise.
20947 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20949 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20950 PIC_OFFSET_TABLE_REGNUM.
20952 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20954 * alias.c (init_alias_target): Remove ifdef
20955 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20956 * df-scan.c (df_insn_refs_collect): Likewise.
20957 (df_get_regular_block_artificial_uses): Likewise.
20958 (df_get_eh_block_artificial_uses): Likewise.
20959 (df_get_entry_block_def_set): Likewise.
20960 (df_get_exit_block_use_set): Likewise.
20961 * emit-rtl.c (gen_rtx_REG): Likewise.
20962 * ira.c (ira_setup_eliminable_regset): Likewise.
20963 * reginfo.c (init_reg_sets_1): Likewise.
20964 * regrename.c (rename_chains): Likewise.
20965 * reload1.c (reload): Likewise.
20966 (eliminate_regs_in_insn): Likewise.
20967 * resource.c (mark_referenced_resources): Likewise.
20968 (init_resource_info): Likewise.
20970 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20972 * defaults.h (MASK_RETURN_ADDR): New definition.
20973 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20976 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20978 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20979 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20980 RETURN_ADDR_OFFSET.
20981 (expand_builtin_frob_return_addr): Likewise.
20983 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20985 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20986 (try_redirect_by_replacing_jump): Likewise.
20987 (rtl_tidy_fallthru_edge): Likewise.
20988 * combine.c (insn_a_feeds_b): Likewise.
20989 (find_split_point): Likewise.
20990 (simplify_set): Likewise.
20991 * cprop.c (cprop_jump): Likewise.
20992 * cse.c (cse_extended_basic_block): Likewise.
20993 * df-problems.c (can_move_insns_across): Likewise.
20994 * function.c (emit_use_return_register_into_block): Likewise.
20995 * haifa-sched.c (sched_init): Likewise.
20996 * ira.c (find_moveable_pseudos): Likewise.
20997 * loop-invariant.c (find_invariant_insn): Likewise.
20998 * lra-constraints.c (curr_insn_transform): Likewise.
20999 * postreload.c (reload_combine_recognize_const_pattern):
21001 * reload.c (find_reloads): Likewise.
21002 * reorg.c (delete_scheduled_jump): Likewise.
21003 (steal_delay_list_from_target): Likewise.
21004 (steal_delay_list_from_fallthrough): Likewise.
21005 (redundant_insn): Likewise.
21006 (fill_simple_delay_slots): Likewise.
21007 (fill_slots_from_thread): Likewise.
21008 (delete_computation): Likewise.
21009 * sched-rgn.c (add_branch_dependences): Likewise.
21011 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21013 * genconfig.c (main): Always define HAVE_cc0.
21014 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21016 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21017 (flow_find_head_matching_sequence): Likewise.
21018 (try_head_merge_bb): Likewise.
21019 * cfgrtl.c (rtl_merge_blocks): Likewise.
21020 (try_redirect_by_replacing_jump): Likewise.
21021 (rtl_tidy_fallthru_edge): Likewise.
21022 * combine.c (do_SUBST_MODE): Likewise.
21023 (insn_a_feeds_b): Likewise.
21024 (combine_instructions): Likewise.
21025 (can_combine_p): Likewise.
21026 (try_combine): Likewise.
21027 (find_split_point): Likewise.
21029 (simplify_set): Likewise.
21030 (distribute_notes): Likewise.
21031 * cprop.c (cprop_jump): Likewise.
21032 * cse.c (cse_extended_basic_block): Likewise.
21033 * df-problems.c (can_move_insns_across): Likewise.
21034 * final.c (final): Likewise.
21035 (final_scan_insn): Likewise.
21036 * function.c (emit_use_return_register_into_block): Likewise.
21037 * gcse.c (insert_insn_end_basic_block): Likewise.
21038 * haifa-sched.c (sched_init): Likewise.
21039 * ira.c (find_moveable_pseudos): Likewise.
21040 * loop-invariant.c (find_invariant_insn): Likewise.
21041 * lra-constraints.c (curr_insn_transform): Likewise.
21042 * optabs.c (prepare_cmp_insn): Likewise.
21043 * postreload.c (reload_combine_recognize_const_pattern):
21045 * reload.c (find_reloads): Likewise.
21046 (find_reloads_address_1): Likewise.
21047 * reorg.c (delete_scheduled_jump): Likewise.
21048 (steal_delay_list_from_target): Likewise.
21049 (steal_delay_list_from_fallthrough): Likewise.
21050 (try_merge_delay_insns): Likewise.
21051 (redundant_insn): Likewise.
21052 (fill_simple_delay_slots): Likewise.
21053 (fill_slots_from_thread): Likewise.
21054 (delete_computation): Likewise.
21055 (relax_delay_slots): Likewise.
21056 * sched-deps.c (sched_analyze_2): Likewise.
21057 * sched-rgn.c (add_branch_dependences): Likewise.
21059 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21061 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21062 that is trivially ded on non cc0 targets.
21063 (simplify_set): Likewise.
21064 (mark_used_regs_combine): Likewise.
21065 * cse.c (new_basic_block): Likewise.
21066 (fold_rtx): Likewise.
21067 (cse_insn): Likewise.
21068 (cse_extended_basic_block): Likewise.
21069 (set_live_p): Likewise.
21070 * rtlanal.c (canonicalize_condition): Likewise.
21071 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21073 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21075 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21076 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21077 * final.c: Likewise.
21078 * jump.c: Likewise.
21079 * recog.c: Likewise.
21080 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21081 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21083 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21085 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21086 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21087 * builtins.c (expand_builtin): Remove check if
21088 EH_RETURN_DATA_REGNO is defined.
21089 * df-scan.c (df_bb_refs_collect): Likewise.
21090 (df_get_exit_block_use_set): Likewise.
21091 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21092 * ira-lives.c (process_bb_node_lives): Likewise.
21093 * lra-lives.c (process_bb_lives): Likewise.
21095 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21097 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21098 FIRST_PSEUDO_REG): New.
21099 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21100 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21101 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21102 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21103 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21104 (FIRST_INT_REG): New.
21105 (LAST_INT_REG): New.
21106 (FIRST_*_REG): Define using *_REG.
21107 (LAST_*_REG): Ditto.
21108 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21109 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21110 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21112 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21114 * expmed.c: (synth_mult): Only assume overlapping
21115 shift with previous steps in alg_sub_t_m2 case.
21117 2015-04-21 Richard Biener <rguenther@suse.de>
21119 PR tree-optimization/65650
21120 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21121 transitions involving copies.
21122 (set_lattice_value): Adjust for copy lattice state.
21123 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21124 if that doesn't dominate the merge point.
21125 (bit_value_unop): Adjust what we treat as varying mask.
21126 (bit_value_binop): Likewise.
21127 (bit_value_assume_aligned): Likewise.
21128 (evaluate_stmt): When we simplified to a SSA name record a copy
21129 instead of dropping to varying.
21130 (visit_assignment): Simplify.
21132 * gimple-match.h (gimple_simplify): Add another callback.
21133 * gimple-fold.c (fold_stmt_1): Adjust caller.
21134 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21135 for the 2nd callback.
21136 * gimple-match-head.c (gimple_simplify): Add a callback that is
21137 used to valueize the stmt operands and use it that way.
21139 2015-04-21 Richard Biener <rguenther@suse.de>
21141 PR tree-optimization/65788
21142 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21144 2015-04-21 Richard Biener <rguenther@suse.de>
21146 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21147 vec_construct cost by vec_stmt_cost.
21149 2015-04-21 Richard Biener <rguenther@suse.de>
21151 * cfghooks.h (create_basic_block): Replace with two overloads
21152 for RTL and GIMPLE.
21153 (split_block): Likewise.
21154 * cfghooks.c (split_block): Rename to ...
21155 (split_block_1): ... this.
21156 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21157 (split_block_after_labels): Call split_block_1.
21158 (create_basic_block): Rename to ...
21159 (create_basic_block_1): ... this.
21160 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21161 (create_empty_bb): Call create_basic_block_1.
21162 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21163 split_block_after_labels.
21164 * omp-low.c (expand_parallel_call): Likewise.
21165 (expand_omp_target): Likewise.
21166 (simd_clone_adjust): Likewise.
21167 * tree-chkp.c (chkp_get_entry_block): Likewise.
21168 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21169 create_basic_block overload.
21170 (cgraph_node::expand_thunk): Likewise.
21171 * tree-cfg.c (make_blocks): Likewise.
21172 (handle_abnormal_edges): Likewise.
21173 * tree-inline.c (copy_bb): Likewise.
21175 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21177 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21179 (*xor_one_cmplsidi3_ze): Likewise.
21181 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21183 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21184 use df_remove_problem rather than manually removing problems, leaving
21185 holes in df->problems_in_order[].
21187 2015-04-21 Tom de Vries <tom@codesourcery.com>
21189 PR tree-optimization/65802
21190 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21192 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21194 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21196 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21197 at '.'. Assert that there's enough space for everything.
21199 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21201 PR tree-optimization/64950
21203 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21206 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21209 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21211 PR rtl-optimization/64916
21212 * cfgcleanup.c (values_equal_p): New function.
21213 (can_replace_by): Use it.
21215 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21218 * doc/invoke.texi ([-Wnarrowing]): Update.
21220 2015-04-20 Jeff Law <law@redhat.com>
21222 PR tree-optimization/65658
21223 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21224 redundant test for GIMPLE_ASSIGN in last change.
21226 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21228 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21229 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21230 (legitimize_tls_address): Ditto.
21231 (ix86_expand_move): Ditto.
21232 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21233 (ix86_expand_unary_operator): Ditto.
21234 * config/i386/predicates.md (index_register_operand): Ditto.
21236 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21238 * reorg.c (try_merge_delay_insns): Improve correctness checking
21239 for targets with multiple delay slots.
21241 2015-04-20 Jeff Law <law@redhat.com>
21243 PR tree-optimization/65658
21244 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21247 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21249 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21250 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21253 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21256 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21258 2015-04-20 Richard Biener <rguenther@suse.de>
21260 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21261 * gimple-fold.c (gimple_build_valueize): New function.
21262 (gimple_build): Always use gimple_build_valueize as valueize hook.
21264 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21267 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21268 and overwrite variable parts if <= 1/2 the elements are variable.
21270 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21272 PR rtl-optimization/65805
21273 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21274 Don't use difference of offset and previous offset if
21275 update_sp_offset is non-zero.
21276 (eliminate_regs_in_insn): Ditto.
21277 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21278 lra_eliminate_regs_1 call.
21279 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21281 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21283 * hash-table.h: Remove version of hash_table that stored value_type *.
21284 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21285 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21286 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21287 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21288 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21289 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21290 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21291 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21292 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21293 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21294 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21295 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21296 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21297 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21298 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21299 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21301 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21302 Jakub Jelinek <jakub@redhat.com>
21305 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21306 subsequent SH_NONE operand does not overwrite an existing *special
21308 (adjust_extract): Handle case where a vec_extract operation is
21309 wrapped in a PARALLEL.
21311 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21314 * config/i386/i386.c (ix86_binds_local_p): Define only if
21315 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21317 2015-04-17 Jeff Law <law@redhat.com>
21319 PR tree-optimization/47679
21320 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21321 * tree-ssa-scopedtables.c: New file.
21322 * tree-ssa-scopedtables.h: New file.
21323 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21324 (const_and_copies): Change name/type.
21325 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21326 (record_const_or_copy_1): Similarly.
21327 (restore_vars_to_original_value): Similarly.
21328 (pass_dominator::execute): Create and destroy const_and_copies table.
21329 (thread_across_edge): Update passing of const_and_copies.
21330 (record_temporary_equivalence): Use method calls rather than
21331 manipulating const_and_copies directly.
21332 (record_equality, cprop_into_successor_phis): Similarly.
21333 (dom_opt_dom_walker::before_dom_children): Similarly.
21334 (dom_opt_dom_walker::after_dom_children): Similarly.
21335 (eliminate_redundant_computations): Similarly.
21336 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21337 (record_temporary_equivalence): Likewise.
21338 (invalidate_equivalences): Likewise.
21339 (record_temporary_equivalences_from_phis): Update due to type
21340 change of const_and_copies. Use method calls rather than
21341 manipulating the stack directly.
21342 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21343 (thread_through_normal_block, thread_across_edge): Likewise.
21344 (thread_across_edge): Likewise.
21345 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21346 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21348 (identify_jump_threads): Update due to type change of equiv_stack.
21349 (finalize_jump_threads): Delete the equiv_stack when complete.
21351 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21353 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21354 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21355 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21357 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21360 * config.gcc: Exit with a comment when we do not have a major version
21361 number for the FreeBSD target.
21363 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21366 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21367 maybe_allows_mem bitfields.
21368 (maybe_allows_none_start, maybe_allows_none_end,
21369 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21370 maybe_allows_mem_end): New variables.
21371 (compute_maybe_allows): New function.
21372 (add_constraint): Use it to initialize maybe_allows_reg and
21373 maybe_allows_mem fields.
21374 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21375 is_address constraints such that those that allow neither mem nor
21376 reg come first, then those that only allow reg but not mem, then
21377 those that only allow mem but not reg, then the rest.
21378 (write_allows_reg_mem_function): New function.
21379 (write_tm_preds_h): Call it.
21380 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21381 the generated insn_extra_constraint_allows_reg_mem function
21382 instead of always setting *allows_reg = true; *allows_mem = true;
21383 for unknown extra constraints.
21385 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21388 * output.h (default_binds_local_p_3): New.
21389 * varasm.c (default_binds_local_p_3): Make it public. Take an
21390 argument to indicate if common symbol may be local. If common
21391 symbol may be local, treat non-external variable as defined
21393 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21394 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21395 * config/i386/i386.c (ix86_binds_local_p): New.
21396 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21397 ix86_binds_local_p.
21399 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21402 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21403 trying mem_loc_descriptor on XEXP (rtl, 0).
21405 2015-04-17 Martin Liska <mliska@suse.cz>
21407 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21408 Release symbol_compare_collection.
21409 * ipa-reference.c: Add TODO that a vector should be released.
21411 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21414 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21415 to new AVR-LibC file layout (bug #44574).
21416 (*avrlibc_devicelib): Same.
21417 * config/avr/avr-mcus.def: Adjust comments.
21418 * config/avr/avr.opt (nodevicelib): Adjust help.
21420 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21422 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21424 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21427 * gimplify.c (gimplify_init_constructor): Always emit a
21428 side-effecting constructor.
21430 2015-04-17 Tom de Vries <tom@codesourcery.com>
21432 PR tree-optimization/64950
21433 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21434 in cfun->curr_properties.
21435 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21436 if we generate an IFN_VA_ARG.
21437 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21438 function if PROP_gimple_lva is not set in src function.
21440 2015-04-17 Tom de Vries <tom@codesourcery.com>
21441 Michael Matz <matz@suse.de>
21443 PR tree-optimization/64950
21444 * gimple-iterator.c (update_modified_stmts): Remove static.
21445 * gimple-iterator.h (update_modified_stmts): Declare.
21446 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21447 (gimplify_va_arg_internal): New function.
21448 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21449 * gimplify.h (gimplify_va_arg_internal): Declare.
21450 * internal-fn.c (expand_VA_ARG): New unreachable function.
21451 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21452 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21453 (expand_ifn_va_arg): New function.
21454 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21455 (pass_stdarg::execute): Call expand_ifn_va_arg.
21456 (pass_data_lower_vaarg): New pass_data.
21457 (pass_lower_vaarg): New gimple_opt_pass.
21458 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21459 (make_pass_lower_vaarg): New function.
21460 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21461 properties_required field.
21462 * passes.def (all_passes): Add pass_lower_vaarg.
21463 * tree-pass.h (PROP_gimple_lva): Add define.
21464 (make_pass_lower_vaarg): Declare.
21466 2015-04-17 Tom de Vries <tom@codesourcery.com>
21468 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21469 * calls.c (call_expr_flags): Same.
21471 2015-04-17 Tom de Vries <tom@codesourcery.com>
21473 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21474 (pass_stdarg::execute): ... here.
21476 2015-04-17 Tom de Vries <tom@codesourcery.com>
21477 Michael Matz <matz@suse.de>
21479 * tree-cfg.c (make_blocks_1): Factor out of ...
21480 (make_blocks): ... here.
21481 (make_edges_bb): Factor out of ...
21482 (make_edges): ... here.
21483 (gimple_find_sub_bbs): New function.
21484 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21486 2015-04-17 Tom de Vries <tom@codesourcery.com>
21488 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21490 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21492 * asan.c (set_sanitized_sections): New function.
21493 (section_sanitized_p): Ditto.
21494 (asan_protect_global): Optionally sanitize user-defined
21496 * asan.h (set_sanitized_sections): Declare new function.
21497 * common.opt (fsanitize-sections): New option.
21498 * doc/invoke.texi (-fsanitize-sections): Document new option.
21499 * opts-global.c (handle_common_deferred_options): Handle new
21502 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21505 * dwarf2out.c (loc_list_from_tree): Return NULL
21506 for DEBUG_EXPR_DECL.
21508 2015-04-17 Christian Bruel <christian.bruel@st.com>
21510 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21513 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21515 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21516 node itself when computing left conflict subnode size.
21518 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21520 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21521 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21522 *fop_<mode>_1_sse using enabled attribute. Use
21523 register_mixssei387nonimm_operand operand 1 predicate. Change
21524 alternative 3 constraints from "x" to "v".
21526 2015-04-16 Richard Biener <rguenther@suse.de>
21528 PR tree-optimization/65774
21529 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21530 bit-value tracking on.
21532 2015-04-16 Richard Biener <rguenther@suse.de>
21534 PR tree-optimization/64277
21535 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21536 simplify upper bound handling.
21537 (search_for_addr_array): Simplify.
21538 (check_array_bounds): Handle ADDR_EXPRs here.
21539 (check_all_array_refs): Simplify.
21541 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21543 * config/i386/i386.c (print_reg): Rewrite function.
21545 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21547 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21548 Invert the condition.
21550 2015-04-16 Renlin Li <renlin.li@arm.com>
21552 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21553 simplifications for UNSIGNED_FLOAT.
21555 2015-04-16 Nick Clifton <nickc@redhat.com>
21557 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21559 (enum rl78_cpu_type): New.
21560 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21561 (umulhi3_shift_virt): Remove m constraint from operand 1.
21562 (umulqihi3_virt): Likewise.
21563 * config/rl78/rl78.c (rl78_option_override): Add code to process
21564 -mcpu and -mmul options.
21565 (rl78_alloc_physical_registers): Add code to handle divhi and
21566 divsi valloc attributes.
21567 (set_origin): Likewise.
21568 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21569 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21570 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21572 (ASM_SPEC): Pass -mcpu on to assembler.
21573 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21574 (mulqi3_rl78): Likewise.
21575 (mulhi3_g13): Likewise.
21576 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21577 (mulsi3): Likewise.
21578 (mulhi3_g14): Add clobbers of AX and BC.
21579 (mulsi3_g14): Likewise.
21580 (mulsi3_g13): Likewise.
21581 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21582 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21583 * config/rl78/rl78.opt (mmul): Initialise value to
21585 (mcpu): New option.
21586 (m13, m14, mrl78): New option aliases.
21587 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21588 (MULTILIB_DIRNAMES): Add g13 and g14.
21589 * doc/invoke.texi: Document -mcpu and -mmul options.
21591 2015-04-16 Richard Biener <rguenther@suse.de>
21593 * tree-ssa-ccp.c (likely_value): See if we have operands that
21594 are marked as never simulate again and return CONSTANT in this
21596 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21597 not have any operands that will be simulated again as
21598 not being simulated again.
21600 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21602 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21603 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21604 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21606 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21608 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21609 *float<SWI48:mode><MODEF:mode>2_sse.
21610 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21612 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21615 2015-04-15 Tom de Vries <tom@codesourcery.com>
21618 * function.c (push_dummy_function): New function.
21619 (init_dummy_function_start): Use push_dummy_function.
21620 (pop_dummy_function): New function. Factored out of ...
21621 (expand_dummy_function_end): ... here.
21622 * function.h (push_dummy_function, pop_dummy_function): Declare.
21623 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21624 pop_dummy_function.
21625 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21627 2015-04-15 Jeff Law <law@redhat.com>
21629 PR tree-optimization/47679
21630 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21631 need for forward declaration in upcoming changes.
21632 (record_conditions, record_edge_info): Likewise.
21634 PR rtl-optimization/42522
21635 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21636 SIGN_EXTRACT as a whole object rather than simplifying
21639 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21642 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21643 and GIMPLE_PREDICT use break instead of return true. For
21644 GIMPLE_EH_DISPATCH, compare dispatch region.
21646 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21648 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21649 details about the implementation. Make clear preference for
21650 __atomic builtins. Reduce possibility of future change.
21652 2015-04-15 Nick Clifton <nickc@redhat.com>
21654 * config/rx/rx.opt (mallow-string-insns): New option.
21655 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21656 builtin if string instructions are denied.
21657 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21658 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21660 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21661 * config/rx/rx.md (movstr): Enable pattern only if string
21662 instructions are allowed.
21663 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21664 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21665 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21666 (MULTILIB_DIRNAMES): Add no-strings.
21667 * doc/invoke.texi: Document -mno-allow-string-insns.
21669 2015-04-15 Alan Modra <amodra@gmail.com>
21673 PR middle-end/36043
21674 * calls.c (load_register_parameters): Don't load past end of
21675 mem unless suitably aligned.
21677 2015-04-15 Nick Clifton <nickc@redhat.com>
21679 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21680 decrement instruction as being frame related.
21681 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21683 If zero extending a function address enclose the operation in
21685 (rl78_preferred_reload_class): New function.
21686 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21687 * config/rl78/rl78.md: Remove useless constraints in expanders.
21688 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21689 (mulhi3_rl78): Likewise.
21690 (mulhi3_g13): Likewise.
21691 (mulsi3_rl78): Likewise.
21692 (es_addr): Move to before the multiply patterns.
21694 2015-04-15 Alan Modra <amodra@gmail.com>
21696 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21697 and sequence_stack. Add seq.
21698 (seq_stack): Delete.
21699 * function.c (prepare_function_start): Don't access x_last_insn.
21700 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21701 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21702 * emit_rtl.c (start_sequence, push_topmost_sequence,
21703 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21704 sequence accessors.
21705 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21706 remove_insn): Likewise. Simplify.
21707 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21708 and pop_topmost_sequence.
21709 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21711 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21713 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21716 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21719 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21721 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21722 (LEGACY_INT_REGNO_P): Ditto.
21723 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21724 (ANY_MASK_REG_P): Remove.
21725 (BND_REG_P): Rename from ANY_BND_REG_P.
21726 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21727 legacy integer registers. Do not handle MMX_REG_P in a special way.
21728 Merge 64byte and 32byte SSE handling.
21730 2015-04-14 Nick Clifton <nickc@redhat.com>
21732 * expr.c (expand_assignment): Force an address offset computation
21733 into a register before changing its mode.
21734 (expand_expr_real_1): Likewise.
21736 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21738 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21739 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21740 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21741 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21742 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21743 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21744 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21745 and __aarch64_vget_lane_any.
21747 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21749 PR rtl-optimization/65761
21750 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21751 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21753 2015-04-14 Richard Biener <rguenther@suse.de>
21755 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21756 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21758 2015-04-14 Richard Biener <rguenther@suse.de>
21760 PR tree-optimization/65758
21761 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21763 (ccp_lattice_meet): Likewise.
21764 (bit_value_unop): Likewise.
21765 (bit_value_binop): Likewise.
21766 (bit_value_assume_aligned): Likewise.
21768 2015-04-14 Christian Bruel <christian.bruel@st.com>
21770 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21773 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21775 PR tree-optimization/63387
21776 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21777 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21779 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21781 * config/i386/predicates.md (any_QIreg_operand): Rename from
21782 q_regs_operand. Do not process subregs.
21783 (QIreg_operand): Use QI_REGNO_P predicate.
21784 (ext_QIreg_operand): Ditto.
21785 (ext_register_operand): Ditto.
21786 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21787 (AND splitters): Ditto.
21788 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21789 (AND with -256 splitter): Use any_QIreg_operand predicate and
21790 SWI248 mode for operand 0.
21791 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21792 mode for operand 0.
21793 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21795 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21797 * doc/plugins.texi: Rewrite first introductory paragraph.
21799 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21801 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21802 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21804 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21806 * ipa-profie.c (ipa_profile): Check number of parameters
21807 and possible polymorphic call targets before
21810 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21812 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21813 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21815 2015-04-13 Richard Biener <rguenther@suse.de>
21817 PR tree-optimization/65204
21818 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21819 takens for bit-CCP.
21821 2015-04-13 Richard Biener <rguenther@suse.de>
21824 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21825 and cond_not_taken_branch_cost to 4 and 2.
21826 (bdver2_cost): Likewise.
21827 (bdver3_cost): Likewise.
21828 (bdver4_cost): Likewise.
21830 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21832 * hash-table.h (hash_table constructor): Add mem stats.
21833 (alloc_entries): Likewise.
21835 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21837 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21838 * passes.c (execute_one_pass): Only add transform if pass has one.
21840 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21842 * config/i386/i386.c (ix86_option_override_internal): Don't set
21843 -fprefetch-loop-arrays if optimizing for size.
21845 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21846 Gerald Pfeifer <gerald@pfeifer.com>
21848 * doc/contrib.texi (Contributors): Add Martin Jambor and
21851 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21853 * BASE-VER: Set to 6.0.0.
21855 PR tree-optimization/65747
21856 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21857 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21859 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21861 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21862 sentence. Improve grammar.
21864 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21866 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21868 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21871 * ipa-inline-transform.c (speculation_removed): Remove static var.
21872 (check_speculations): New function.
21873 (clone_inlined_nodes): Do not check spculations.
21874 (inline_call): Call check_speculations.
21875 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21876 consider non-invariants.
21878 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21879 Martin Liska <mliska@suse.cz>
21882 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21883 variable can not match.
21884 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21885 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21887 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21889 PR tree-optimization/65735
21890 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21891 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21892 same bb rather than just into the same phi node.
21893 (thread_through_normal_block): Adjust caller.
21895 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21897 * doc/contrib.texi (Contributors): Add Ira Rosen.
21899 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21901 * gcov.c (find_source): Fix miswording in error message.
21902 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21903 (ix86_expand_sse_comi_round): Fix typo in error message.
21905 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21907 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21909 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21911 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21913 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21916 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21917 Print bad_spills_num and insn_pseudos_num.
21919 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21922 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21923 when creating +1 values for SImode.
21925 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21928 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21931 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21932 Iain Sandoe <iain@codesourcery.com>
21935 * configure: Regenerate.
21937 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21940 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21942 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21944 * doc/contrib.texi (Contributors): Add John Marino.
21946 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21948 PR tree-optimization/65709
21949 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21950 TREE_TYPE (TREE_TYPE (t)).
21952 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21955 * lra-int.h (lra_bad_spill_regno_start): New.
21956 * lra.c (lra_bad_spill_regno_start): New.
21957 (lra): Set up lra_bad_spill_regno_start. Set up
21958 lra_constraint_new_regno_start unconditionally.
21959 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21962 2015-04-09 Marek Polacek <polacek@redhat.com>
21963 Jakub Jelinek <jakub@redhat.com>
21965 PR middle-end/65554
21966 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21967 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21970 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21972 PR rtl-optimization/65693
21973 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21976 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21979 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21980 device specs file if "device-specs%s" didn't resolve to a path.
21982 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21985 * config/i386/i386.c (fixup_modeless_constant): New.
21986 (ix86_expand_args_builtin): Fixup modeless constant operand.
21987 (ix86_expand_round_builtin): Ditto.
21988 (ix86_expand_special_args_builtin): Ditto.
21989 (ix86_expand_builtin): Ditto.
21991 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21994 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21995 any pow2 integer in between 2 and 0x80000000U inclusive.
21997 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
21999 PR rtl-optimization/65693
22000 * combine.c (is_parallel_of_n_reg_sets): Change first argument
22001 from an rtx_insn * to an rtx.
22002 (try_combine): Adjust both callers. Use it once more.
22004 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22006 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22007 (chkp_make_static_const_bounds): Search existing
22008 symbol by assembler name. Use make_decl_one_only.
22009 (chkp_get_zero_bounds_var): Remove node search which
22010 is now performed in chkp_make_static_const_bounds.
22011 (chkp_get_none_bounds_var): Likewise.
22013 2015-04-08 Michael Witten <mfwitten@gmail.com>
22015 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22018 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22020 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22022 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22024 * doc/extend.texi (__sync Builtins): Fix grammar.
22026 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22028 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22030 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22032 * varasm.c (emit_local): Move definition of align.
22034 2015-04-08 Julian Brown <julian@codesourcery.com>
22036 * config/nvptx/mkoffload.c (process): Support variable mapping.
22038 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
22040 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22042 (alpha_write_one_linkage): Correct typo.
22044 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22046 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22048 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22050 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22052 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22054 * tree-chkp.h (chkp_insert_retbnd_call): New.
22055 * tree-chkp.c (chkp_insert_retbnd_call): New.
22056 * ipa-split.c (insert_bndret_call_after): Remove.
22057 (split_function): Use chkp_insert_retbnd_call.
22058 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22059 bounds for instrumented functions.
22061 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
22064 * calls.c (initialize_argument_information): When producing tail
22065 call also turn SSA_NAMES passed by references to original PARM_DECLs
22067 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
22070 * lra-remat.c (do_remat): Process input and non-input insn
22071 registers separately.
22073 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22076 * valtrack.c (debug_lowpart_subreg): New function.
22077 (dead_debug_insert_temp): Use it.
22079 PR middle-end/65680
22080 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22081 into signed HOST_WIDE_INT the same as negative bit_offset.
22083 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22085 * ipa-comdats.c (ipa_comdats): Visit all thunks
22086 to set proper comdat group.
22088 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22091 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22092 on constants for NEON VSTRUCT modes.
22094 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22095 Iain Sandoe <iain@codesourcery.com>
22098 * configure: Regenerate.
22100 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22103 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22104 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22105 that LFD is used to load double constants instead of LFS. Add
22106 defaults for all costs structures. Add comments for missing
22107 initialization fields.
22108 (size32_cost): Likewise.
22109 (size64_cost): Likewise.
22110 (rs64a_cost): Likewise.
22111 (mpccore_cost): Likewise.
22112 (ppc403_cost): Likewise.
22113 (ppc405_cost): Likewise.
22114 (ppc440_cost): Likewise.
22115 (ppc476_cost): Likewise.
22116 (ppc601_cost): Likewise.
22117 (ppc603_cost): Likewise.
22118 (ppc604_cost): Likewise.
22119 (ppc604e_cost): Likewise.
22120 (ppc620_cost): Likewise.
22121 (ppc630_cost): Likewise.
22122 (ppccell_cost): Likewise.
22123 (ppc750_cost): Likewise.
22124 (ppc7450_cost): Likewise.
22125 (ppc8540_cost): Likewise.
22126 (ppce300c2c3_cost): Likewise.
22127 (ppce500mc_cost): Likewise.
22128 (ppce500mc64_cost): Likewise.
22129 (ppce5500_cost): Likewise.
22130 (ppce6500_cost): Likewise.
22131 (titan_cost): Likewise.
22132 (power4_cost): Likewise.
22133 (power6_cost): Likewise.
22134 (power7_cost): Likewise.
22135 (power8_cost): Likewise.
22136 (ppca2_cost): Likewise.
22137 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22139 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22140 instead of XXLOR to copy SFmode to clear out dirty bits created
22141 when SFmode denormals are generated.
22142 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22143 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22145 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22147 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22148 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22149 * config/aarch64/aarch64-tune.md: Regenerate.
22151 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22153 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22154 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22155 * config/arm/arm-cores.def (exynos-m1): New core.
22156 * config/arm/arm-tune.md: Regenerate.
22157 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22158 * config/arm/bpabi.h: Likewise.
22160 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22162 * ipa-cp (set_single_call_flag): Remove too
22163 restrictive assert.
22165 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22167 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22168 GOMP_offload_unregister from the destructor.
22170 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22172 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22173 flags for instrumentation thunk.
22174 (chkp_produce_thunks): Likewise.
22176 2015-04-05 Martin Liska <mliska@suse.cz>
22179 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22180 has computed data structure.
22181 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22183 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22185 * invoke.texi (inline-unit-growth): Increase growth to 20%
22186 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22188 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22191 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22193 (lra_rematerialization_iter): New.
22194 * lra.c (lra): Initialize lra_rematerialization_iter.
22195 Stop updating lra_constraint_new_regno_start after switching of
22196 inheritance and rematerialization.
22197 * lra-remat.c (lra_rematerialization_iter): New.
22198 (lra_remat): Add printing pass iteration. Do rematerialization
22199 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22201 2015-04-04 Richard Biener <rguenther@suse.de>
22203 PR tree-optimization/64909
22204 PR tree-optimization/65660
22205 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22206 to take a cost vector for scalar iteration cost.
22207 (vect_get_single_scalar_iteration_cost): Likewise.
22208 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22209 Compute the scalar iteration cost into a cost vector.
22210 (vect_get_known_peeling_cost): Use the scalar cost vector to
22211 account for the cost of the peeled iterations.
22212 (vect_estimate_min_profitable_iters): Likewise.
22213 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22216 2015-04-04 Alan Modra <amodra@gmail.com>
22220 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22221 0.0 constant unless TARGET_VSX.
22222 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22225 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22228 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22231 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22234 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22235 speculative indirect edges to avoid ordering issue.
22237 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22240 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22242 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22244 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22245 TYPE_ARTIFICIAL on the .omp_data* types.
22247 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22249 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22250 instrumentation thunks.
22252 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22254 * config/i386/i386.c (ix86_expand_call): Avoid nested
22255 PARALLEL in returned call value.
22257 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22259 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22260 assembler name with original one.
22262 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22264 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22266 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22268 Revert parts of r216820.
22269 * config/i386/i386.md (movqi_internal): Correct type calculation
22270 for alternatives 3 and 5.
22272 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22274 PR preprocessor/61977
22275 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22276 predefine __vector/__bool/__pixel macros nor context sensitive
22277 macros for CLK_ASM.
22278 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22280 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22282 * config/pa/pa.c (pa_output_move_double): Directly handle register
22283 indexed memory operand. Simplify handling of scaled register indexed
22286 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22289 * config/i386/linux-common.h (MPX_SPEC): New.
22290 (CHKP_SPEC): Add MPX_SPEC.
22291 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22292 possible issues with '-z bndplt' support in linker.
22294 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22296 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22297 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22298 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22299 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22300 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22302 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22304 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22305 (atomic_load<mode>): Change operand 0 predicate to
22306 nonimmediate_operand and fix up the destination when needed.
22308 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22309 (atomic_store<mode>): Change operand 1 predicate to
22310 nonimmendate_operand and move the source to register when needed.
22312 (atomic_store<mode>_1): Use UNSPEC_STA.
22313 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22314 Fix moves from memory operand. Use UNSPEC_STA.
22316 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22318 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22319 not cross a MODESIZE boundary.
22320 (store_bit_field, extract_bit_field): Added assertions in the
22321 strict volatile bitfields code path.
22323 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22326 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22327 Increase args array size by one to avoid buffer overflow.
22329 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22331 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22333 * ipa-inline.c (edge_badness): Add wrapper penalty.
22334 (sum_callers): Move up.
22335 (inline_small_functions): Set single_caller.
22336 * ipa-inline.h (inline_summary): Add single_caller.
22337 * ipa-split.c (split_function): Set split_part.
22338 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22339 * cgraph.h (cgraph_node): Add split_part.
22341 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22344 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22345 Do not split operands 0 and operands 2 to halfmode.
22346 (atomic_compare_and_swap<mode>): Update for
22347 atomic_compare_and_swap<dwi>_doubleword changes.
22349 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22351 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22352 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22353 no caching is done.
22355 2015-03-31 Martin Liska <mliska@suse.cz>
22358 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22359 has already filled up function summary.
22360 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22362 2015-03-31 Richard Biener <rguenther@suse.de>
22364 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22367 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22369 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22371 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22372 (s390_asm_output_function_label): Adapt to new signature of
22373 s390_function_num_hotpatch_hw
22374 Optimise the code generating assembler output.
22375 Add comments to assembler file.
22377 2015-03-31 Richard Biener <rguenther@suse.de>
22379 PR middle-end/65626
22380 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22381 of the noreturn call so it is last and cleanup_control_flow_bb
22382 can do the CFG part.
22384 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22387 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22388 same_comdat_group for external symbols.
22389 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22390 infinite same_comdat_group traversal loop.
22392 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22395 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22396 automatically to $headers.
22398 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22401 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22402 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22404 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22406 * ipa-prop.c (param_type_may_change_p): Likewise.
22407 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22408 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22409 argument. Before inlining, preserve
22410 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22411 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22413 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22415 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22418 * ipa-inline.c (edge_badness): Base denominator on callee's
22421 2015-03-27 Martin Jambor <mjambor@suse.cz>
22424 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22425 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22426 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22427 node_calling_single_call.
22428 * ipa-cp.c (count_callers): New function.
22429 (set_single_call_flag): Likewise.
22430 (initialize_node_lattices): Count callers and set single_flag_call if
22432 (incorporate_penalties): New function.
22433 (good_cloning_opportunity_p): Use it, dump new flags.
22434 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22435 * doc/invoke.texi (ipa-cp-recursion-penalty,
22436 ipa-cp-single-call-pentalty): Document.
22438 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22441 * symtab.c (symtab_node::get_partitioning_class): Register vars
22443 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22444 decls for non-symbols.
22446 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22449 * output.h (default_binds_local_p_2): New.
22450 * varasm.c (default_binds_local_p_2): Renamed to ...
22451 (default_binds_local_p_3): This. Don't return true on protected
22452 data symbol if protected data may be external.
22453 (default_binds_local_p): Use default_binds_local_p_3.
22454 (default_binds_local_p_1): Likewise.
22455 (default_binds_local_p_2): New.
22456 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22457 default_binds_local_p_2 if TARGET_MACHO is undefined.
22459 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22462 * config/i386/i386.c (legitimize_pic_address): If base
22463 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22464 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22466 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22469 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22472 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22475 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22476 of optimized out indirect call.
22477 (redirect_to_unreachable): Always build symbol table node for
22478 BUILT_IN_UNREACHABLE
22480 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22483 * ira-costs.c (record_reg_classes): Process all constraint string
22486 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22488 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22492 * config/c6x/constraints.md (S3): New constraint.
22493 * config/c6x/c6x.md (real_jump): Use it.
22495 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22497 PR middle-end/65595
22498 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22499 do redirection if the call is not optimized out.
22501 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22504 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22505 (fchkp-check-incomplete-type): Add LTO.
22506 (fchkp-zero-input-bounds-for-main): Likewise.
22507 (fchkp-first-field-has-own-bounds): Likewise.
22508 (fchkp-narrow-bounds): Likewise.
22509 (fchkp-narrow-to-innermost-array): Likewise.
22510 (fchkp-use-static-bounds): Likewise.
22511 (fchkp-use-static-const-bounds): Likewise.
22512 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22514 2015-03-27 Marek Polacek <polacek@redhat.com>
22516 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22518 2015-03-27 Marek Polacek <polacek@redhat.com>
22521 * ubsan.c (ubsan_create_edge): New function.
22522 (instrument_bool_enum_load): Call it.
22523 (instrument_nonnull_arg): Likewise.
22524 (instrument_nonnull_return): Likewise.
22525 (instrument_object_size): Likewise.
22527 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22529 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22532 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22535 * lto-streamer.h (class lto_location_cache): New.
22536 (struct data_in): Add location_cache.
22537 (lto_input_location): Update prototype.
22538 (stream_input_location_now): New.
22539 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22540 pointer to location.
22541 (stream_input_location): Update.
22542 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22543 (warn_odr): Apply location cache before warning.
22544 (lto_input_location): Update prototype.
22545 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22546 Use stream_input_location_now.
22547 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22549 (lto_location_cache::cmp_loc): New function.
22550 (lto_location_cache::apply_location_cache): New function.
22551 (lto_location_cache::accept_location_cache): New function.
22552 (lto_location_cache::revert_location_cache): New function.
22553 (lto_location_cache::input_location): New function.
22554 (lto_input_location): Do location caching.
22555 (stream_input_location_now): New function.
22556 (input_eh_region, input_struct_function_base): Use
22557 stream_input_location_now.
22558 (lto_data_in_create): use new.
22559 (lto_data_in_delete): Use delete.
22560 * tree-streamer-in.c (unpack_ts_block_value_fields,
22561 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22562 lto_input_ts_exp_tree_pointers): Update for cached location api.
22564 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22567 * passes.def: Add pass_nothrow.
22568 * ipa-pure-const.c: (pass_data_nothrow): New.
22569 (pass_nothrow): New.
22570 (pass_nothrow::execute): New.
22571 (make_pass_nothrow): New.
22572 * tree-pass.h (make_pass_nothrow): Declare.
22574 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22576 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22577 edge to change by speculation resolution or redirection.
22578 (edge_set_predicate): Likewise.
22579 (inline_summary_t::duplicate): Likewise.
22580 (remap_edge_summaries): Likewise.
22582 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22584 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22586 (can_inline_edge_p): Relax option matching for always inline functions.
22588 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22591 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22592 Check operand 4 and operand 0 for equality.
22593 (avx512f_vextract<shuffletype>32x4_1_maskm):
22594 Check operand 6 and operand 0 for equality.
22595 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22597 (vec_extract_hi_<mode>_maskm): Ditto.
22599 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22601 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22602 dead calls back to live.
22603 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22605 (cgraph_node::verify_node): ... here; verify only callee edges,
22607 * cif-code.def (CILK_SPAWN): New code.
22609 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22611 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22612 (edge_set_predicate): Use it to mark unreachable edges.
22613 (inline_summary_t::duplicate): Remove unnecesary code.
22614 (remap_edge_summaries): Likewise.
22615 (dump_inline_summary): Report contains_cilk_spawn.
22616 (compute_inline_parameters): Compute contains_cilk_spawn.
22617 (inline_read_section, inline_write_summary): Stream
22618 contains_cilk_spawn.
22619 * ipa-inline.c (can_inline_edge_p): Do not touch
22620 DECL_STRUCT_FUNCTION that may not be available;
22621 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22622 remove check for callee_fun->can_throw_non_call_exceptions and
22623 replace it by optimization attribute check; check for flag_exceptions.
22624 * ipa-inline-transform.c (inline_call): Maintain
22625 DECL_FUNCTION_PERSONALITY
22626 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22628 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22630 PR tree-optimization/65551
22631 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22632 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22634 2015-03-26 Richard Biener <rguenther@suse.de>
22636 PR middle-end/65555
22637 * tree-cfg.c (verify_gimple_call): Do not require a call to
22638 have no LHS if it wasn't recognized as control altering yet.
22640 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22642 PR tree-optimization/64715
22643 * passes.def: Add another instance of pass_object_sizes before ccp1.
22644 * tree-object-size.c (pass_object_sizes::execute): In
22645 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22646 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22647 __bos result and the computed constant. Remove redundant
22648 checks, obsoleted by gimple_call_builtin_p test.
22650 * var-tracking.c (variable_tracking_main_1): Don't track
22651 variables for targetm.no_register_allocation targets.
22653 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22655 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22656 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22658 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22661 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22662 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22663 0.0 is correctly setup.
22664 (extenddftf2_internal): Likewise.
22666 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22668 PR tree-optimization/65177
22669 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22671 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22672 edges not adjacent on the path to the original code.
22674 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22677 * doc/install.texi (Building a native compiler): Document new
22678 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22679 configuration assumes that the host supports the linker plugin.
22681 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22684 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22685 chain for generated call.
22687 2015-03-25 Richard Biener <rguenther@suse.de>
22689 * passes.c (pass_manager::execute_early_local_passes): Guard
22690 execution of pass_chkp_instrumentation_passes with
22691 flag_check_pointer_bounds.
22692 (pass_chkp_instrumentation_passes::gate): Likewise.
22694 2015-03-25 Martin Liska <mliska@suse.cz>
22696 PR tree-optimization/65538
22697 * symbol-summary.h (function_summary::~function_summary):
22698 Relese memory for allocated summaries.
22699 (function_summary::release): New function.
22701 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22704 * lto-streamer-out.c (DFS::worklist): New struct.
22705 (DFS::worklist_vec): New data member.
22706 (DFS::next_dfs_num): Remove.
22707 (DFS::DFS): Rewritten using worklist instead of recursion,
22708 using most of code from DFS::DFS_write_tree.
22709 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22710 pass it to DFS_write_tree calls.
22711 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22712 quick initial checks push it into worklist_vec and return.
22714 2015-03-25 Richard Biener <rguenther@suse.de>
22716 PR middle-end/65519
22717 * genmatch.c (expr::gen_transform): Re-write to avoid
22718 using gimple_build.
22720 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22722 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22724 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22726 * config/arm/arm.opt (print_tune_info): New option.
22727 * config/arm/arm.c (arm_print_tune_info): New function.
22728 (arm_file_start): Call arm_print_tune_info.
22729 * config/arm/arm-protos.h (struct tune_params): Add comment.
22730 * doc/invoke.texi (@item -mprint-tune-info): New item.
22731 (-mtune): mention it in ARM Option Summary.
22733 2015-03-25 DJ Delorie <dj@redhat.com>
22735 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22738 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22739 Martin Liska <mliska@suse.cz>
22741 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22742 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22743 (sem_item::add_type): New function.
22744 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22745 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22746 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22747 (sem_function::equals_wpa): Fix typo.
22748 * ipa-icf.h (sem_item::add_type): New function.
22749 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22752 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22754 PR tree-optimization/65533
22755 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22756 with swapped operands, call vect_free_slp_tree on
22757 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22760 2015-03-24 Richard Biener <rguenther@suse.de>
22762 PR middle-end/65517
22763 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22764 for fixup if necessary.
22766 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22768 * doc/extend.texi (Function Attributes): Add @cindex entries
22769 for all attributes and regularize their format. Delete text
22770 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22771 information about "eightbit_data", "tiny_data", and "model"
22772 variable attributes to the Variable Attributes section. Fix
22773 some obvious typos and copy-editing issues.
22774 (Variable Attributes, Type Attributes): Likewise add/fix
22775 @cindex entries for all attributes.
22777 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22780 * tree-chkp.c (chkp_build_returned_bound): Ignore
22781 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22783 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22786 * config/sh/predicates.md (simple_mem_operand,
22787 displacement_mem_operand): Add test for reg.
22788 (short_displacement_mem_operand): Test for displacement_mem_operand
22789 before invoking sh_disp_addr_displacement.
22790 * config/sh/constraints.md (Sdd, Sra): Simplify.
22791 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22792 Remove redundant displacement_mem_operand tests.
22794 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22797 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22798 the same -mmcu=MCU more than once.
22800 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22803 * ipa-devirt.c: Remove duplicate demangle.h include.
22806 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22808 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22809 REG_POINTER on *destptr after adjusting it for prologue size.
22812 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22813 ultimate_alias_target ()->order ints instead of
22814 ultimate_alias_target () pointers.
22816 2015-03-23 Richard Biener <rguenther@suse.de>
22818 PR tree-optimization/65518
22819 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22820 interleaving cases we generate absymal code for.
22822 2015-03-23 Richard Biener <rguenther@suse.de>
22824 PR tree-optimization/65494
22825 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22827 (vect_analyze_slp_instance): But do that here, always and once.
22829 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22831 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22832 adding T or multiplying by T+1 and subracting T.
22834 2015-03-22 Jeff Law <law@redhat.com>
22836 PR rtl-optimization/64317
22837 * Makefile.in (OBJS): Add gcse-common.c
22838 * gcse.c: Include gcse-common.h
22839 (struct modify_pair_s): Move structure definition to gcse-common.h
22840 (compute_transp): Move function to gcse-common.c.
22841 (canon_list_insert): Similarly.
22842 (record_last_mem_set_info): Break out some code and put it into
22843 gcse-common.c. Call into the new common code.
22844 (compute_local_properties): Pass additional arguments to compute_transp.
22845 * postreload-gcse.c: Include gcse-common.h and df.h
22846 (modify_mem_list_set, blocks_with_calls): New variables.
22847 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22848 (get_bb_avail_insn): Pass in the expression index too.
22849 (alloc_mem): Allocate memory for the new bitmaps and lists.
22850 (free_mem): Free memory for the new bitmaps and lists.
22851 (insert_expr_in_table): Record a bitmap index for each entry we
22853 (record_last_mem_set_info): Call into common code in gcse-common.c.
22854 (get_bb_avail_insn): If no available insn was found in the requested
22855 BB. If BB has a single predecessor, see if the expression is
22856 transparent in BB and available in that single predecessor.
22857 (compute_expr_transp): New wrapper for compute_transp.
22858 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22859 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22860 (gcse_after_reload_main): If there are elements in the hash table,
22861 then compute transparency for all the elements in the hash table.
22862 * gcse-common.h: New file.
22863 * gcse-common.c: New file.
22865 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22867 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22869 (System Headers): Likewise.
22871 (Traditional macros): Likewise.
22872 (Invocation): Likewise.
22873 (Option Index): Likewise.
22874 * doc/cppopts.texi (-M): Likewise.
22875 (-finput-charset): Likewise.
22876 (--help): Likewise.
22877 * doc.invoke.texi (AVR Options): Likewise.
22878 (V850 Options): Likewise.
22880 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22883 * ipa-devirt.c: Include demangle.h
22884 (odr_type_d): Add field rtti_broken.
22885 (odr_subtypes_equivalent_p): Do not require name to match.
22886 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22887 bypass the tests; be ready for function referneces in vtables that are
22888 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22889 (warn_odr): Give up for nameless types.
22890 (warn_types_mismatch): Report mismatch in mangled names;
22891 report mismatch in anonymous namespaces; look into component types to
22892 give useful error; report when mismatch is dragged in from other ODR
22894 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22895 duplicated diagnostics.
22896 (add_type_duplicate): Reorder checks so more informative ones come
22897 first; fix typo; do not output "the extra base is defined here" when
22899 (BINFO_N_BASE_BINFOS): Relax sanity check.
22901 2015-03-22 Martin Liska <mliska@suse.cz>
22902 Jakub Jelinek <jakub@redhat.com>
22904 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22905 masks that can potentially include a builtin.
22906 (ix86_add_new_builtins): Introduce fast filter for isa values
22907 that cannot trigger builtin inclusion.
22909 2015-03-22 Martin Liska <mliska@suse.cz>
22911 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22912 (sem_item::update_hash_by_local_refs): Likewise.
22913 (sem_variable::get_hash): Empty line is fixed.
22914 (sem_item_optimizer::execute): Include adding of hash references.
22915 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22916 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22917 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22918 (sem_item::update_hash_by_local_refs): Likewise.
22920 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22923 * ipa-comdats.c (enqueue_references): Walk through thunks.
22924 (ipa_comdats): Likewise.
22925 (set_comdat_group_1): New function.
22927 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22930 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22933 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22934 Gerald Pfeifer <gerald@pfeifer.com>
22936 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22938 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22939 Sandra Loosemore <sandra@codesourcery.com>
22941 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22942 function parameter declaration.
22943 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22944 Update arguments to nios2_adjust_call_address().
22945 (sibcall_internal): Rename from *sibcall.
22946 (sibcall_value_internal): Rename from *sibcall_value.
22947 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22948 (nios2_large_got_address): Add target temp reg parameter.
22949 (nios2_got_address): Adjust call to nios2_large_got_address, add
22950 force_reg around it.
22951 (nios2_load_pic_address): Add target temp reg parameter, replace call
22952 to nios2_got_address with corresponding code.
22953 (nios2_legitimize_constant_address): Update call to
22954 nios2_load_pic_address.
22955 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22956 to use temp reg for PIC loading purposes.
22957 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22958 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22959 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22961 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22963 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22964 usage of "the @option{...}".
22965 (-Wopenmp-simd): Likewise.
22966 (-fsanitize-recover): Likewise.
22967 (-fsanitize-undefined-trap-on-error): Likewise.
22969 (tracer-dynamic-coverage-feedback): Likewise.
22970 (reorder-block-duplicate-feedback): Likewise.
22971 (loop-unroll-jam-size): Likewise.
22974 (-mabs=legacy): Likewise.
22975 (-mupper-regs-df): Likewise.
22976 (-mupper-regs-sf): Likewise.
22977 (-mpointers-to-nested-functions): Likewise.
22979 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22981 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22983 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22985 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22986 additional index entries and cross-references.
22987 (-fchkp-check-incomplete-type): Likewise.
22988 (-fchkp-first-field-has-own-bounds): Likewise.
22989 (-fchkp-narrow-to-innermost-array): Likewise.
22990 (-fchkp-use-fast-string-functions): Likewise.
22991 (-fchkp-use-nochk-string-functions): Likewise.
22992 (-fchkp-use-static-const-bounds): Likewise.
22993 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22994 (-fchkp-instrument-marked-only): Likewise.
22995 (-fchkp-use-wrappers): Likewise.
22996 (-static-libmpx): Likewise.
22997 (-static-libmpxwrappers): Likewise.
22998 * doc/extend.texi (bnd_legacy): Likewise.
22999 (bnd_instrument): Likewise.
23000 (bnd_variable_size): Likewise.
23001 (Pointer Bounds Checker builtins): Likewise.
23003 2015-03-21 Tom de Vries <tom@codesourcery.com>
23005 PR tree-optimization/65458
23006 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23007 * cgraph.h (cgraph_node): Add parallelized_function field.
23008 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23009 (input_overwrite_node): Read parallelized_function field.
23010 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23011 parallelized_function on cgraph_node for child_fn.
23012 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23013 Remove include of gt-tree-parloops.h.
23014 (parallelized_functions): Remove static variable.
23015 (parallelized_function_p): Rewrite using parallelized_function field of
23017 (create_loop_fn): Remove adding to parallelized_functions.
23018 * Makefile.in (GTFILES): Remove tree-parloops.c
23020 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
23022 PR rtl-optimization/64366
23023 * lra.c (lra_update_insn_regno_info): Consider regs in
23024 CALL_INSN_FUNCTION_USAGE memory.
23026 2015-03-20 Richard Biener <rguenther@suse.de>
23028 PR middle-end/64715
23029 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23030 for type comparison and gcc_checking_assert.
23031 (chrec_fold_plus_poly_poly): Likewise.
23032 (chrec_fold_multiply_poly_poly): Likewise.
23033 (chrec_convert_1): Likewise.
23034 * gimplify.c (gimplify_expr): Remove premature folding of
23035 &X + CST to &MEM[&X, CST].
23037 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23039 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23041 (ipa_inline): Recompute inline_failed codes.
23042 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23043 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23046 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
23048 PR rtl-optimization/60851
23049 * recog.c (constrain_operands): Accept a pseudo register before reload
23050 for LRA enabled targets.
23052 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23055 * config/rs6000/predicates.md (easy_fp_constant): Remove special
23056 -ffast-math handling that kept non-0 constants live in the RTL
23057 until reload. Remove logic testing the number of instructions it
23058 took to create a constant in a GPR that was never used, due to a
23059 test for soft-float earlier.
23060 (memory_fp_constant): Delete, no longer used.
23062 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23063 alternatives for loading non-0 constants into GPRs for hard
23064 floating point that is no longer needed due to changes in
23065 easy_fp_constant. Add support for loading 0.0 into GPRs.
23066 (mov<mode>_hardfloat32): Likewise.
23067 (mov<mode>_hardfloat64): Likewise.
23068 (mov<mode>_64bit_dm): Likewise.
23069 (movtd_64bit_nodm): Likewise.
23070 (pre-reload move FP constant define_split): Delete define_split,
23071 since it is no longer used.
23072 (extenddftf2_internal): Remove GHF constraints that are not valid
23075 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23077 PR rtl-optimization/63491
23078 * lra-constraints.c (check_and_process_move): Use src instead of
23079 sreg. Remove some dead code.
23081 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23084 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23085 (sem_variable::merge): Likewise.
23087 2015-03-19 Martin Liska <mliska@suse.cz>
23090 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23091 all fields of cgraph_thunk_info.
23093 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23095 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23096 clone instrumented thunks.
23098 2015-03-19 Richard Biener <rguenther@suse.de>
23101 2015-03-10 Richard Biener <rguenther@suse.de>
23103 PR middle-end/63155
23104 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23105 * tree-ssa-coalesce.c: Include timevar.h.
23106 (attempt_coalesce): Handle graph being NULL.
23107 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23108 Split out abnormal coalescing to ...
23109 (perform_abnormal_coalescing): ... this function.
23110 (coalesce_ssa_name): Perform abnormal coalescing without computing
23112 (verify_ssa_coalescing_worker): New function.
23113 (verify_ssa_coalescing): Likewise.
23115 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23116 Jakub Jelinek <jakub@redhat.com>
23119 * tsan.c (instrument_gimple): Clear tail call flag on
23122 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23125 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23126 call in the return bb.
23127 (find_split_points): Add RETURN_BB argument, don't call
23129 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23130 if true append TSAN_FUNC_EXIT internal call after the call to
23131 the split off function.
23132 (execute_split_functions): Call find_return_bb here.
23133 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23134 Adjust find_split_points and split_function calls.
23136 2015-03-18 DJ Delorie <dj@redhat.com>
23138 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23139 (iorqi3_virt): Likewise.
23141 2015-03-18 Tom de Vries <tom@codesourcery.com>
23143 * tree-parloops.c (parallelize_loops): Make static.
23144 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23146 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23148 PR middle-end/64491
23150 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23152 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23153 condition would be removed due to undefined behaviour.
23155 2015-03-18 Martin Liska <mliska@suse.cz>
23158 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23159 xstrdup_for_dump wrapper.
23160 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23162 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23163 with xstrdup_for_dump.
23164 (sem_variable::equals): Likewise.
23165 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23167 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23168 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23169 symtab_node::asm_name with xstrdup_for_dump.
23170 (congruence_class::dump): Use symtab_node::name instead of
23172 * ipa-icf.h (symtab_node::name): Remove.
23173 (symtab_node::asm_name): Likewise.
23175 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23177 PR tree-optimization/65450
23178 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23180 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23181 it instead of duplicate_ssa_name_ptr_info.
23184 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23186 2015-03-18 Richard Biener <rguenther@suse.de>
23188 * tree-data-ref.h (struct access_matrix): Remove.
23189 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23190 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23191 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23192 (am_vector_index_for_loop): Likewise.
23193 (struct data_reference): Remove access_matrix member.
23194 (DR_ACCESS_MATRIX): Remove.
23195 (lambda_vector_new): Add comment.
23196 (lambda_matrix_new): Use XOBNEWVEC.
23198 2015-03-18 Richard Biener <rguenther@suse.de>
23200 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23201 (pass_ch::execute): Cleanup the CFG only if we did sth.
23202 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23204 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23206 * expmed.c (synth_mult): Use std::swap instead of manually
23207 swapping algorithms.
23209 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23212 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23214 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23217 * config/avr/avr.opt (-nodevicelib): New option.
23218 * doc/invoke.texi (AVR Options): Document it.
23219 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23220 libgcc.a, libc.a, libm.a.
23221 * config/avr/specs.h: Same.
23222 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23223 which don't (directly) depend on the device. Print more help.
23224 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23225 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23226 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23228 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23229 for specs file name.
23230 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23231 * config/avr/avr-mcus.def: Adjust initializers and comments.
23233 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23235 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23236 DECL_ONE_ONLY to check if decl is one only.
23237 * ipa-split.c (consider_split): Limit splitt of one only functions.
23239 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23241 PR tree-optimization/65427
23242 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23244 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23246 2015-03-16 Marek Polacek <polacek@redhat.com>
23248 * cgraph.h (add_new_static_var): Remove declaration.
23249 * varpool.c (add_new_static_var): Remove function.
23251 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23253 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23254 instead of vec<tree> * with vec_alloc and release for args.
23257 PR middle-end/65431
23258 * omp-low.c (delete_omp_context): Only splay_tree_delete
23259 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23260 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23262 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23265 * cfgexpand.c (align_base): New function.
23266 (alloc_stack_frame_space): Call it.
23267 (expand_stack_vars): Align prev_frame to be sure
23268 data->asan_vec elements aligned properly.
23270 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23272 PR middle-end/65409
23273 * expr.c (store_field): Do not do a direct block copy if the source is
23274 a PARALLEL with BLKmode.
23276 2015-03-16 Tom de Vries <tom@codesourcery.com>
23278 PR middle-end/65414
23280 2015-03-12 Tom de Vries <tom@codesourcery.com>
23282 PR rtl-optimization/64895
23283 * lra-lives.c (check_pseudos_live_through_calls): Use
23284 actual_call_used_reg_set instead of call_used_reg_set, if available.
23286 2015-03-16 Alan Modra <amodra@gmail.com>
23289 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23290 Modify Z->r bswapdi splitter to use dest in place of scratch.
23291 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23292 to word1, word2 and rearrange logic to suit.
23293 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23294 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23295 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23296 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23299 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23301 PR tree-optimization/65369
23302 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23303 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23304 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23306 PR tree-optimization/65418
23307 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23308 are casts in the first PLUS_EXPR operand, ensure tbias and
23309 *totallowp are in the inner type.
23311 PR rtl-optimization/65401
23312 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23313 argument. If true, adjust_address_nv of x with big-endian
23314 correction for the mode widening to GET_MODE (y).
23315 (make_field_assignment): Don't do MEM mode widening here.
23316 Use MEM_P instead of GET_CODE == MEM.
23318 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23320 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23321 the external decls.
23323 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23326 * config/arm/arm.c (arm_gen_constant, AND case): Use
23327 ARM_SIGN_EXTEND when constructing AND mask.
23329 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23331 * graph.c (print_graph_cfg): Make function names visible and append
23332 parenthesis to it. Also make groups of basic blocks belonging to the
23333 same function visible.
23335 2015-03-12 Richard Biener <rguenther@suse.de>
23337 PR middle-end/44563
23338 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23339 to avoid quadratic behavior with inline expansion splitting blocks.
23340 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23341 with the successor if the predecessor will be merged with it.
23342 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23343 entry block with its successor.
23345 2015-03-13 Richard Biener <rguenther@suse.de>
23347 PR middle-end/44563
23348 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23349 (cleanup_tree_cfg_1): Do not call it.
23350 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23351 (fixup_noreturn_call): Mark the stmt as control altering.
23352 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23354 (pass_data_fixup_cfg): Produce a dump file.
23355 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23356 (need_noreturn_fixup): New global.
23357 (pass_dominator::execute): Fixup queued noreturn calls.
23358 (optimize_stmt): Queue calls that became noreturn for fixup.
23359 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23360 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23361 (el_to_fixup): New global.
23362 (eliminate_dom_walker::before_dom_childre): Queue calls that
23363 became noreturn for fixup.
23364 (eliminate): Fixup queued noreturn calls.
23365 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23366 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23367 (substitute_and_fold_dom_walker::before_dom_children): Queue
23368 alls that became noreturn for fixup.
23369 (substitute_and_fold): Fixup queued noreturn calls.
23371 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23373 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23374 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23375 are building; for methods check ODR type of class they belong to if
23376 they may lead to a polymorphic call.
23377 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23378 when function may lead to a polymorphic call.
23379 (sem_function::compare_type_list): Remove.
23380 (sem_variable::equals): Update use of compatible_types_p.
23381 (sem_variable::parse_tree_refs): Remove.
23382 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23384 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23386 (func_checker::compatible_polymorphic_types_p): Break out from ...
23387 (unc_checker::compatible_types_p): ... here.
23388 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23390 (unc_checker::compatible_types_p): Update.
23391 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23394 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23396 PR rtl-optimization/65235
23397 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23398 When first element of vec_concat is const_int, calculate its size
23399 using second element.
23401 2015-03-12 Richard Biener <rguenther@suse.de>
23403 PR middle-end/65270
23404 * fold-const.c (operand_equal_p): Fix ordering of resetting
23405 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23407 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23409 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23411 (s390_asm_output_function_label): Likewise.
23412 * config/s390/s390.c (s390_asm_output_function_label):
23413 Fix function label alignment with -mhtopatch.
23414 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23415 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23416 ("nop_2_byte"): New define_insn.
23417 ("nop_4_byte"): Likewise.
23418 ("nop_6_byte"): Likewise.
23419 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23420 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23422 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23425 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23428 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23431 * toplev.c (process_options): Restrict Pointer Bounds Checker
23432 usage with Address Sanitizer.
23434 2015-03-12 Richard Biener <rguenther@suse.de>
23436 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23438 * omp-low.c (expand_omp_taskreg): Split block before removing
23440 (expand_omp_target): Likewise.
23441 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23442 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23443 stmt to split_block.
23445 2015-03-12 Tom de Vries <tom@codesourcery.com>
23447 PR rtl-optimization/64895
23448 * lra-lives.c (check_pseudos_live_through_calls): Use
23449 actual_call_used_reg_set instead of call_used_reg_set, if available.
23451 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23453 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23454 (cgraph_node::remove): Likewise.
23455 (cgraph_node::get_untransformed_body): Likewise.
23456 * varpool.c (varpool_node::remove): Likewise.
23457 (varpool_node::get_constructor): Add sanity check.
23459 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23461 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23463 (-fabi-compat-version): Likewise.
23464 (-ffriend-injection): Likewise.
23465 (-Wdeclaration-after-statement): Likewise.
23466 (-fomit-frame-pointer): Likewise.
23467 (-ftree-coalesce-inlined-vars): Likewise.
23468 (-fvisibility=): Likewise.
23469 * doc/extend.texi (Typeof): Likewise.
23470 (Zero Length): Likewise.
23471 (Escaped Newlines): Likewise.
23472 (Compound Literals): Likewise.
23473 (Function Attributes): Likewise.
23474 (Label Attributes): Likewise.
23475 (Type Attributes): Likewise.
23476 (Function Names): Likewise.
23477 (Other Builtins): Likewise.
23478 (Function Specific Option Pragmas): Likewise.
23479 (C++ Interface): Likewise.
23481 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23483 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23485 2015-03-11 Marek Polacek <polacek@redhat.com>
23487 PR tree-optimization/65388
23488 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23490 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23493 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23494 * configure: Regenerate.
23495 * config.in: Regenerate.
23496 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23497 [-mn-flash]: Document it.
23498 [__AVR_ARCH__]: Document avrtiny.
23500 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23501 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23502 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23504 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23506 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23508 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23511 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23512 allow reloads of PLUS in floating point/VSX registers.
23514 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23516 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23517 crypto_sha256_fast.
23518 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23520 2015-03-11 Richard Biener <rguenther@suse.de>
23522 PR tree-optimization/65310
23523 * tree-sra.c (build_ref_for_offset): Also preserve larger
23526 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23528 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23530 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23533 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23535 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23537 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23539 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23540 (sem_function::equals_wpa): ... here.
23542 2015-03-10 Marek Polacek <polacek@redhat.com>
23543 Jakub Jelinek <jakub@redhat.com>
23546 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23547 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23550 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23553 * config/rs6000/t-linux: For powerpc64* target set
23554 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23556 2015-03-10 Richard Biener <rguenther@suse.de>
23558 PR middle-end/44563
23559 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23560 for redirect_all_calls.
23562 2015-03-10 Marek Polacek <polacek@redhat.com>
23564 * gdbinit.in (pcfun): Define and document.
23566 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23568 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23569 of libgomp-plugin.h.
23570 (find_target_compiler): Support a case when the path to gcc is
23571 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23572 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23573 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23575 (main): Use GCC_INSTALL_NAME as target_driver_name.
23576 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23578 (mkoffload.o): Remove obsolete include path and defines.
23579 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23581 2015-03-10 Richard Biener <rguenther@suse.de>
23583 PR middle-end/63155
23584 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23585 * tree-ssa-coalesce.c: Include timevar.h.
23586 (attempt_coalesce): Handle graph being NULL.
23587 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23588 Split out abnormal coalescing to ...
23589 (perform_abnormal_coalescing): ... this function.
23590 (coalesce_ssa_name): Perform abnormal coalescing without computing
23592 (verify_ssa_coalescing_worker): New function.
23593 (verify_ssa_coalescing): Likewise.
23595 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23598 * config.gcc (extra_options) [avr]: Remove.
23599 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23600 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23601 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23603 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23604 (-mmcu=): Add Var and MissingArgError properties.
23606 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23607 * config/avr/t-multilib: Regenerate.
23608 * config/avr/specs.h: New file.
23609 * config/avr/driver-avr.c: New file.
23610 * config/avr/genopt.sh: Remove file.
23611 * config/avr/avr-tables.opt: Remove file.
23612 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23613 * config/avr/avr-c.c: Same.
23614 * avr-arch.h: Same.
23615 (avr_current_device): Remove proto.
23616 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23617 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23618 (EXTRA_SPEC_FUNCTIONS): Define.
23619 (avr_devicespecs_file): New specs function proto.
23620 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23621 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23622 (avr_current_device): Remove definition and usage.
23623 (avr_set_core_architecture): New static function.
23624 (avr_option_override): Use it.
23625 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23626 (mcu_name): New static array.
23627 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23628 (avr_inform_devices, avr_inform_core_architectures): New functions.
23629 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23630 (avrlibc.h) [WITH_AVRLIBC]: Include.
23631 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23632 (print_mcu): Rewrite from scratch.
23633 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23634 Forward to avr-specific specs defined in device-specs file.
23635 * config/avr/t-avr (driver-avr.o): New rule.
23636 (avr-devices.o): Depend on avr-arch.h.
23637 (avr-mcus): No more depend on avr-tables.opt.
23638 (avr-tables.opt): Remove rule.
23639 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23641 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23643 * c-family/c.opt (fchkp-use-wrappers): New.
23644 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23645 (chkp_wrap_function): New.
23646 (chkp_build_instrumented_fndecl): Support wrapped
23648 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23649 (-fchkp-check-incomplete-type): New.
23650 (-fchkp-first-field-has-own-bounds): New.
23651 (-fchkp-narrow-bounds): New.
23652 (-fchkp-narrow-to-innermost-array): New.
23653 (-fchkp-optimize): New.
23654 (-fchkp-use-fast-string-functions): New.
23655 (-fchkp-use-nochk-string-functions): New.
23656 (-fchkp-use-static-bounds): New.
23657 (-fchkp-use-static-const-bounds): New.
23658 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23659 (-fchkp-check-read): New.
23660 (-fchkp-check-write): New.
23661 (-fchkp-store-bounds): New.
23662 (-fchkp-instrument-calls): New.
23663 (-fchkp-instrument-marked-only): New.
23664 (-fchkp-use-wrappers): New.
23665 (-static-libmpx): New.
23666 (-static-libmpxwrappers): New.
23668 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23670 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23671 (CHKP_SPEC): Add wrappers library.
23672 * c-family/c.opt (static-libmpxwrappers): New.
23674 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23676 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23677 (LIBMPX_SPEC): New.
23679 * gcc.c (CHKP_SPEC): New.
23680 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23681 * c-family/c.opt (static-libmpx): New.
23683 2015-03-10 Richard Biener <rguenther@suse.de>
23685 PR middle-end/44563
23686 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23688 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23689 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23690 (cgraph_add_edge_to_call_site_hash): Likewise.
23691 (cgraph_node::get_edge): Likewise.
23692 (cgraph_edge::set_call_stmt): Likewise.
23693 (cgraph_edge::remove_caller): Likewise.
23695 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23697 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23698 (callee_saved_gpr_regs_size): ... this.
23699 (callee_saved_regs_first_regno): Rename to ...
23700 (callee_saved_first_gpr_regno): ... this.
23701 (callee_saved_regs_last_regno) Rename to ...
23702 (callee_saved_last_gpr_regno): ... this.
23703 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23705 (nds32_initial_elimination_offset): Likewise.
23706 (nds32_expand_prologue): Likewise.
23707 (nds32_expand_epilogue): Likewise.
23708 (nds32_expand_prologue_v3push): Likewise.
23709 (nds32_expand_epilogue_v3pop): Likewise.
23710 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23711 Adjust renamed variables.
23712 (nds32_output_stack_pop): Likewise.
23714 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23716 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23719 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23721 PR rtl-optimization/65321
23722 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23724 * var-tracking.c (use_narrower_mode): Likewise.
23726 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23728 PR tree-optimization/65355
23729 * varasm.c (notice_global_symbol): Do not produce RTL.
23730 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23732 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23733 check for section anchors.
23735 2015-03-10 Alan Modra <amodra@gmail.com>
23738 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23739 to be single-arch by default. Set cpu_is_64bit for powerpc64
23740 given --with-cpu=native.
23741 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23742 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23744 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23745 rs6000_isa_flags rather than TARGET_64BIT.
23747 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23748 Kaz Kojima <kkojima@gcc.gnu.org>
23750 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23752 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23755 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23756 on a TREE_BINFO, instead use BINFO_TYPE.
23758 2015-03-09 Richard Biener <rguenther@suse.de>
23760 PR middle-end/65270
23761 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23762 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23763 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23764 of that. When comparing dereferences compare alignment.
23765 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23767 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23769 * ipa-inline-analysis.c (check_callers): Check
23770 node->can_remove_if_no_direct_calls_and_refs_p.
23771 (growth_likely_positive): Reorganize to call
23772 can_remove_if_no_direct_calls_p later.
23773 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23774 will_be_removed_from_program_if_no_direct_calls_p): Add
23775 will_inline parameter.
23776 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23777 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23778 Handle inliner case correctly.
23780 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23782 PR tree-optimization/63743
23783 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23784 had its definition forwarded by TER.
23786 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23789 * ipa-utils.h (types_odr_comparable): Add strict argument.
23790 * ipa-devirt.c: Fix whitespace;
23791 (odr_hasher): Remove.
23792 (odr_name_hasher, odr_vtable_hasher): New hashers.
23793 (can_be_name_hashed_p): New predicate.
23794 (hash_type_name): remove.
23795 (hash_odr_name): New.
23796 (odr_name_hasher::hash): new.
23797 (can_be_vtable_hashed_p): New.
23798 (hash_odr_vtable): New.
23799 (odr_vtable_hasher::hash): New.
23800 (types_same_for_odr): Add strict parameter.
23801 (types_odr_comparable): Likewise.
23802 (odr_name_hasher::equal): New.
23803 (odr_vtable_hasher::equal): New.
23804 (odr_name_hasher::remove): New.
23805 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23806 (odr_vtable_hash_type): New.
23807 (odr_vtable_hash): New.
23808 (odr_subtypes_equivalent_p): Do strict comparsion.
23809 (add_type_duplicate): Merge type names; cleanup; avoid type
23811 (register_odr_type): Initialize vtable hash.
23812 (build_type_inheritance_graph): Likewise
23813 (get_odr_type): Reorg to use two hashes.
23814 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23816 (ipa_devirt): Dump type_inheritance_graph.
23817 (types_same_for_odr): Add strict mode.
23819 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23822 * cgraph.h (symtab_node): Add definition_alignment,
23823 can_increase_alignment_p and increase_alignment.
23824 * symtab.c (symtab_node::can_increase_alignment_p,
23825 increase_alignment_1, symtab_node::increase_alignment,
23826 symtab_node::definition_alignment): New.
23827 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23828 can_increase_alignment_p.
23829 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23830 * tree-vect-stmts.c (ensure_base_align): Likewise.
23831 * varasm.c (function_section_1): Use definition_alignment.
23832 (assemble_start_function): Likewise.
23833 (emit_local): likewise.
23834 (build_constant_desc): Likewsie.
23835 (output_constant_def_contents): Likewise.
23836 (place_block_symbol): Likewise.
23837 (output_object_block): Likewise.
23839 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23842 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23843 when outputting debug.
23845 2015-03-07 Marek Polacek <polacek@redhat.com>
23846 Martin Uecker <uecker@eecs.berkeley.edu>
23849 * doc/invoke.texi: Update description of -fsanitize=bounds.
23851 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23853 * tree-ssa-phiopt.c (neg_replacement): Remove.
23854 (tree_ssa_phiopt_worker): Remove negate optimization.
23856 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23859 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23861 2015-03-06 Richard Biener <rguenther@suse.de>
23863 PR middle-end/64928
23864 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23865 and liveout_obstack members.
23866 (calculate_live_on_exit): Remove.
23867 (calculate_live_ranges): Change declaration.
23868 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23869 (new_tree_live_info): Adjust.
23870 (calculate_live_ranges): Delete livein when not wanted.
23871 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23872 Deal with partly deleted live info.
23873 (loe_visit_block): Remove temporary bitmap by using
23874 bitmap_ior_and_compl_into.
23875 (live_worklist): Adjust accordingly.
23876 (calculate_live_on_exit): Make static.
23877 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23878 we do not need livein.
23880 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23882 * real.c (real_from_string): Fix typo in assertion.
23884 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23886 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23889 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23891 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23893 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23896 * lra-assigns.c (find_hard_regno_for): Rename to
23897 find_hard_regno_for_1. Add a new parameter.
23898 (find_hard_regno_for): New function using find_hard_regno_for_1.
23900 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23902 PR rtl-optimization/65067
23903 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23904 strict volatile bitfield handling.
23906 2015-03-05 Martin Liska <mliska@suse.cz>
23909 * ipa-icf.c (sem_variable::equals): Compare variables types.
23911 2015-03-05 Richard Henderson <rth@redhat.com>
23914 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23915 correctly check weak symbol binding.
23917 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23919 PR middle-end/65315
23920 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23923 2015-03-05 Martin Liska <mliska@suse.cz>
23925 * ipa-inline.c (inline_small_functions): Set default value to
23926 prevent warning during bootstrap.
23927 * tree.h: Add pragma guard that ignores false positives during
23930 2015-03-05 Richard Biener <rguenther@suse.de>
23932 PR tree-optimization/65310
23933 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23934 Properly preserve alignment of the base of the access.
23936 2015-03-05 Richard Biener <rguenther@suse.de>
23939 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23940 Compare dependence info.
23942 2015-03-05 Richard Biener <rguenther@suse.de>
23944 PR middle-end/65233
23945 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23947 (walk_ssa_copies): Revert last chage. Instead do not walk
23948 SSA names registered for SSA update.
23950 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23953 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23954 vtable references for their containing type.
23955 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23956 and type attributes.
23958 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23960 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23961 before negating it.
23962 * stor-layout.c (finalize_record_size): Revert latest change.
23964 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23966 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23968 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23970 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23971 for correct comdat handling.
23972 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23974 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23975 (used_from_object_file_p_worker): Remove.
23976 (cgraph_node::only_called_directly_or_alised): Add
23977 used_from_object_file_p.
23978 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23979 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23980 can_remove_if_no_direct_calls_and_refs_p.
23982 2015-03-04 Nick Clifton <nickc@redhat.com>
23984 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23985 General register class.
23986 * config/rl78/rl78-real.md: Replace general register constraints
23987 with real+virtual register constraints.
23989 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23991 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23992 from checking for -mhtm option.
23994 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23996 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23997 (struct ipa_sra_check_caller_data): Add has_thunk field.
23998 (ipa_sra_check_caller): Check for thunk.
23999 (ipa_sra_preliminary_function_checks): Give up on function with
24001 (ipa_early_sra): Use call_for_symbol_and_aliases.
24003 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
24006 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24007 called for __stack_chk_guard symbol.
24009 2015-03-03 DJ Delorie <dj@redhat.com>
24011 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24013 (*addhi3_real): Likewise.
24014 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24015 pattern to match incrementing memory.
24016 * config/rl78/predicates.md (rl78_1_2_operand): New.
24017 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24018 it's the same and only mem.
24019 (rl78_alloc_physical_registers_op2): If there's effectively only
24020 one MEM, transcode it into HL.
24021 (rl78_far_p): Reject addresses that aren't legitimate.
24023 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24025 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24028 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24030 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24032 Implement call0 ABI for xtensa
24033 * config/xtensa/constraints.md ("a" constraint): Include stack
24034 pointer in case of call0 ABI.
24035 ("q" constraint): Make empty in case of call0 ABI.
24036 ("D" constraint): Include stack pointer in case of call0 ABI.
24037 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24038 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24040 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24042 (xtensa_regno_to_class): Make it a local variable in the
24043 function xtensa_regno_to_class.
24044 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24045 macro, function prototype and implementation.
24046 (reg_nonleaf_alloc_order): Make it a local variable in the
24047 function order_regs_for_local_alloc.
24048 (xtensa_conditional_register_usage): New function.
24049 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24050 (xtensa_valid_move): Allow direct moves to stack pointer
24051 register in call0 ABI.
24052 (xtensa_setup_frame_addresses): Only spill register windows in
24054 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24055 call0 ABI respectively.
24056 (xtensa_function_arg_1): Only mark a7 register for copying in
24058 (xtensa_call_save_reg): New function.
24059 (compute_frame_size): Add space for callee saved register
24060 storage to the frame size in call0 ABI.
24061 (xtensa_expand_prologue): Generate code to set up stack frame
24062 and save callee-saved registers in call0 ABI.
24063 (xtensa_expand_epilogue): New function.
24064 (xtensa_set_return_address): New function.
24065 (xtensa_return_addr): Calculate return address in call0 ABI.
24066 (xtensa_builtin_saveregs): Only mark a7 register for copying and
24067 emit copying code in windowed ABI.
24068 (order_regs_for_local_alloc): Add preferred register allocation
24069 order for non-leaf function in call0 ABI.
24070 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24071 (xtensa_asm_trampoline_template): Add trampoline generation for
24073 (xtensa_trampoline_init): Add trampoline initialization for
24075 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24077 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24078 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24079 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24080 ABI call-used registers.
24081 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24082 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24084 (REG_CLASS_CONTENTS): Include all registers into the preferred
24085 reload registers set, adjust the set in the
24086 xtensa_conditional_register_usage.
24087 (xtensa_regno_to_class): Drop variable declaration.
24088 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24090 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24092 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24093 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24094 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24095 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24096 location in call0 ABI.
24097 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24098 stack adjustment size when handling exception.
24099 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24100 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24102 ("return" pattern): Generate ret.n/ret in call0 ABI.
24103 ("epilogue" pattern): Expand epilogue.
24104 ("nonlocal_goto" pattern): Use default in call0 ABI.
24105 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24106 emit eh_set_a0_* depending on ABI.
24107 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24108 ("eh_set_a0_call0", "blockage"): New patterns.
24110 2015-03-03 Martin Liska <mliska@suse.cz>
24113 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24115 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24118 * config/rs6000/rs6000-tables.opt: Regenerate table.
24120 2015-03-03 Renlin Li <renlin.li@arm.com>
24122 * doc/md.texi (@item ^): Change ? into ^.
24124 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24126 * doc/tm.texi: Regenerated.
24128 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24130 * builtins.c (expand_builtin_return_addr): Add
24131 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24132 surrounding #ifdef.
24133 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24135 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24137 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24139 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24142 2015-03-03 Martin Jambor <mjambor@suse.cz>
24143 Eric Botcazou <ebotcazou@adacore.com>
24145 * tree-sra.c (ipa_sra_check_caller_data): New type.
24146 (has_caller_p): Removed.
24147 (ipa_sra_check_caller): New function.
24148 (ipa_sra_preliminary_function_checks): Use it.
24150 2015-03-03 Martin Liska <mliska@suse.cz>
24152 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24153 instead of if branch.
24155 2015-03-03 Martin Liska <mliska@suse.cz>
24158 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24160 2015-03-23 Jeff Law <law@redhat.com>
24162 PR tree-optimization/65241
24163 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24164 hash table if INSERT is true.
24166 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24169 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24171 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24174 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24175 (avr_pass_data_recompute_notes): New static variable.
24176 (avr_pass_recompute_notes): New class.
24177 (avr_register_passes): New static function.
24178 (avr_option_override): Call it.
24180 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24182 Fix various problems with specs file generation.
24185 * config.gcc (extra_gcc_objs) [avr]: Remove.
24186 * config/avr/driver-avr.c: Remove file.
24187 * config/avr/t-avr (driver-avr.o): Remove rule.
24188 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24189 INCLUDES to build. Depend on TM_H.
24190 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24191 build warnings. Fix non-matching types and non-existing %-codes.
24193 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24194 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24195 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24196 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24197 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24198 (LIBGCC_SPEC): Remove definitions.
24200 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24202 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24203 to create a register in testing mode.
24205 2015-03-03 Martin Liska <mliska@suse.cz>
24206 Jan Hubicka <hubicka@ucw.cz>
24209 * cgraph.c (cgraph_node::has_thunk_p): New function.
24210 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24211 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24212 (sem_function::merge): Assert is changed.
24214 2015-03-03 Martin Liska <mliska@suse.cz>
24215 Martin Jambor <mjambor@suse.cz>
24218 * ipa-icf.c (sem_item_optimizer::execute): Change function
24219 return value to boolean.
24220 (sem_item_optimizer::merge_classes): Likewise.
24221 (ipa_icf_driver): Return TODO_remove_functions in case there's
24222 a merge operation processed.
24223 * ipa-icf.h: Change function return value to boolean.
24225 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24228 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24229 processor type for 64-bit little endian PowerPC.
24231 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24232 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24233 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24234 printing built-in mask so it does not pass NULL pointers.
24236 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24239 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24242 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24243 !ISA_HAS_FP_CONDMOVE.
24245 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24247 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24250 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24252 * doc/invoke.texi (Options for Code Generation Conventions):
24253 Fix URL of DSO paper.
24255 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24258 * ipa-inline.c (check_callers): Looks for recursion.
24259 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24260 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24261 summary of inline clones.
24262 (do_estimate_growth_1): Fix recursion check.
24264 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24267 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24270 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24271 Aldy Hernandez <aldyh@redhat.com>
24274 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24275 when checking TYPE_BINFO.
24277 2015-03-02 Richard Biener <rguenther@suse.de>
24280 * ipa-icf-gimple.c: Include builtins.h.
24281 (func_checker::compare_memory_operand): Compare base alignment.
24283 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24286 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24287 are never passed by reference.
24289 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24292 * tree-chkp.c (chkp_check_lower): Don't check against
24293 zero bounds for already instrumented functions.
24294 (chkp_check_upper): Likewise.
24295 (chkp_fini): Clean pass local data to avoid wrong reusage.
24297 2015-02-28 Martin Liska <mliska@suse.cz>
24298 Jan Hubicka <hubicka@ucw.cz>
24300 * ipa-icf.c (sem_variable::equals): Improve debug output;
24301 get variable constructor.
24302 (sem_variable::parse): Do not filter out too early; give up on
24303 volatile and register vars.
24304 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24306 * ipa-icf.h (sem_variable::init): Do not set ctor.
24307 (sem_variable::ctor): Remove.
24309 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24311 PR middle-end/65233
24312 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24314 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24316 * ipa-icf.c: Include stor-layout.h
24317 (sem_function::compare_cgraph_references): Rename to ...
24318 (sem_item::compare_cgraph_references): ... this one.
24319 (sem_variable::equals_wpa): New function
24320 (sem_variable::equals): Do not check stuff already verified by
24322 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24323 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24324 (sem_function): Remove compare_cgraph_references.
24325 (sem_variable): Turns equals_wpa into non-inline.
24327 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24329 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24330 (sem_item::add_expr): New function.
24331 (sem_function::hash_stmt): Handle operands of most statements.
24332 (sem_variable::get_hash): Hash the actual constructor.
24333 * ipa-icf.h (sem_item): Add add_expr.
24334 (sem_function): Update prototype of hash_stmt
24336 2015-02-28 Martin Liska <mliska@suse.cz>
24337 Jan Hubicka <hubicka@ucw.cz>
24340 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24342 (func_checker::compare_variable_decl): Skip symtab vars.
24343 (func_checker::compare_cst_or_decl): Update.
24344 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24345 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24346 use correct symtab predicates.
24347 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24348 (sem_variable::parse): Update comment.
24349 (sem_item_optimizer::build_graph): Consider ultimate aliases
24352 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24354 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24357 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24359 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24360 (sem_variable::merge) Likewise.
24362 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24364 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24365 target; also match flag_ipa_devirt.
24367 2015-03-01 Martin Liska <mliska@suse.cz>
24368 Jan Hubicka <hubicka@ucw.cz>
24370 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24371 Validate variable alignment.
24372 * ipa-icf.c (sem_function::equals_private): Be more precise
24373 about non-common function attributes.
24374 (sem_variable::equals): Likewise.
24376 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24379 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24380 across COMDAT group boundary.
24382 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24385 * ipa-icf.c (clear_decl_rtl): New function.
24386 (sem_function::merge): Clear RTL before forming alias.
24387 (sem_variable::merge): Clear RTL before forming alias.
24389 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24392 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24394 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24396 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24399 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24401 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24402 a typo in the description.
24404 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24407 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24408 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24409 * lra-constraints.c: Include "params.h".
24410 (EBB_PROBABILITY_CUTOFF): Use
24411 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24412 (lra_inheritance): Use '<' instead of '<=' for
24413 EBB_PROBABILITY_CUTOFF.
24414 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24417 2015-02-27 Martin Liska <mliska@suse.cz>
24419 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24420 vector length condition.
24422 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24424 * doc/extend.texi (x86 transactional memory intrinsics):
24425 Reorganize discussion of _xbegin. Clarify that the return
24426 value is a bit mask. Expand example and move to end of section.
24428 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24429 Aldy Hernandez <aldyh@redhat.com>
24431 PR rtl-optimization/65220
24432 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24434 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24437 * lra-remat.c (update_scratch_ops): New.
24438 (do_remat): Call it.
24439 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24440 (remove_scratches): ... here.
24441 * lra-int.h (lra_register_new_scratch_op): New prototype.
24443 2015-02-27 Marek Polacek <polacek@redhat.com>
24446 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24447 -Wformat-signedness anymore.
24449 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24451 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24453 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24455 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24457 * config/s390/s390.c (enum s390_builtin):
24458 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24459 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24460 (s390_init_builtins): Generate new builtin functions.
24461 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24462 (s390_sfpc, s390_efpc): New pattern definitions.
24464 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24466 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24467 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24468 (s390_builtin_decls): New array.
24469 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24470 (s390_builtin_decl): New function.
24471 (TARGET_BUILTIN_DECL): Define macro.
24473 2015-02-27 Richard Biener <rguenther@suse.de>
24475 PR middle-end/63175
24476 * builtins.c (get_object_alignment_2): Make sure to re-apply
24477 the ANDed mask after recursing to its operand gets us a new
24478 misalignment bit position.
24480 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24481 Martin Liska <mliska@suse.cz>
24484 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24485 Use address_matters_p.
24486 (redirect_all_callers, set_addressable): New functions.
24487 (sem_function::merge): Reorganize and fix merging issues.
24488 (sem_variable::merge): Likewise.
24489 (sem_variable::compare_sections): Remove.
24490 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24492 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24494 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24496 (address_matters_1): New function.
24497 (symtab_node::address_matters_p): New function.
24498 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24499 check for merged flag.
24500 * cgraph.h (address_matters_p): Declare.
24501 (symtab_node::address_taken_from_non_vtable_p): Remove.
24502 (symtab_node::address_can_be_compared_p): New method.
24503 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24504 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24506 (comdat_can_be_unshared_p_1) Use address_matters_p.
24507 (update_vtable_references): Fix formating.
24508 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24509 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24510 * cgraphclones.c: Preserve merged and icf_merged flags.
24512 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24514 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24515 (Label Attributes): Likewise.
24516 (Cilk Plus Builtins): Likewise.
24517 (ARC SIMD Built-in Functions): Likewise.
24518 (ARM C Language Extensions (ACLE)): Likewise.
24519 (PowerPC Built-in Functions): Likewise.
24520 (PowerPC Hardware Transactional Memory Built-in Functions):
24523 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24525 PR tree-optimization/65216
24526 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24527 new stmt and new SSA_NAME for lhs whenever the arguments have
24528 changed and weren't just swapped. Fix comment typo.
24530 PR tree-optimization/65215
24531 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24532 for PDP endian targets.
24533 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24534 Fix up formatting issues.
24535 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24536 size is smaller than the original, adjust MEM_REF offset by the
24537 difference of sizes. Use is_gimple_mem_ref_addr instead of
24538 is_gimple_min_invariant test to avoid adding address temporaries.
24540 2015-02-26 Martin Liska <mliska@suse.cz>
24541 Jan Hubicka <hubicka@ucw.cz>
24544 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24545 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24546 (sem_item_optimizer::process_cong_reduction): Include division by
24547 sensitive references.
24548 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24549 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24550 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24552 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24555 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24557 * config/avr/avr.c: Same.
24558 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24559 Refuse any constant address not in 0..0xbf.
24560 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24561 tiny_valid_direct_memory_access_range from insn conditions.
24562 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24564 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24567 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24568 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24569 * config/sh/predicates.md (const_logical_operand): New predicate.
24570 * config/sh/sh.md: Add new peephole2 patterns.
24572 2015-02-26 Marek Polacek <polacek@redhat.com>
24575 * ipa-inline.c (early_inliner): Recompute inline parameters.
24577 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24580 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24581 instructions with TImode operands are included in the analysis.
24583 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24585 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24586 of an EDGE_FSM_THREAD.
24588 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24590 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24592 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24595 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24597 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24599 PR tree-optimization/65048
24600 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24601 (thread_through_all_blocks): Call valid_jump_thread_path.
24602 Remove invalid FSM jump-thread paths.
24604 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24606 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24607 (ipa_write_optimization_summaries): Likewise.
24608 * tree-streamer.h: Include data-streamer.h.
24609 (streamer_mode_table): Declare extern variable.
24610 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24611 * lto-streamer-out.c (lto_output_init_mode_table,
24612 lto_write_mode_table): New functions.
24613 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24615 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24616 (lto_create_simple_input_block): Add mode_table argument to the
24617 lto_input_block constructors.
24618 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24620 * data-streamer-in.c (string_for_index): Likewise.
24621 * ipa-inline-analysis.c (inline_read_section): Likewise.
24622 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24623 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24624 * lto-streamer-in.c (lto_read_body_or_constructor,
24625 lto_input_toplevel_asms): Likewise.
24626 (lto_input_mode_table): New function.
24627 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24628 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24629 Use bp_pack_machine_mode.
24630 * real.h (struct real_format): Add name field.
24631 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24632 (class lto_input_block): Add mode_table member.
24633 (lto_input_block::lto_input_block): Add mode_table_ argument,
24634 initialize mode_table.
24635 (struct lto_file_decl_data): Add mode_table field.
24636 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24637 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24638 unpack_ts_decl_common_value_fields,
24639 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24640 * tree-streamer.c (streamer_mode_table): New variable.
24641 * real.c (ieee_single_format, mips_single_format,
24642 motorola_single_format, spu_single_format, ieee_double_format,
24643 mips_double_format, motorola_double_format,
24644 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24645 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24646 ibm_extended_format, mips_extended_format, ieee_quad_format,
24647 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24648 decimal_single_format, decimal_double_format, decimal_quad_format,
24649 ieee_half_format, arm_half_format, real_internal_format): Add name
24651 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24653 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24656 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24657 reordering for selective scheduling.
24659 2015-02-26 Terry Guo <terry.guo@arm.com>
24661 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24662 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24663 (arm_arch_no_volatile_ce): Declare new global variable.
24664 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24665 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24666 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24667 (TARGET_NO_VOLATILE_CE): New macro.
24668 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24669 volatile memory access in IT block
24671 2015-02-25 Kai Tietz <ktietz@redhat.com>
24673 PR tree-optimization/61917
24674 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24675 that reduc_def_stmt is null.
24677 2015-02-25 Martin Liska <mliska@suse.cz>
24679 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24680 hard register variables.
24682 2015-02-25 Kai Tietz <ktietz@redhat.com>
24685 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24686 (symtab::noninterposable_alias): Likewise.
24688 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24691 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24693 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24695 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24698 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24699 as split condition; force split via '#' in output pattern.
24701 2015-02-25 Richard Biener <rguenther@suse.de>
24702 Kai Tietz <ktietz@redhat.com>
24704 PR tree-optimization/61917
24705 * tree-vect-loop.c (vectorizable_reduction): Allow
24706 vect_internal_def without reduction to exit graceful.
24708 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24711 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24712 only with NONDEBUG_INSN_P.
24714 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24716 Use variadic macros with avr-log.c.
24718 * config/avr/avr-protos.h (avr_vdump): New prototype.
24719 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24720 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24721 * config/avr/avr-log.c: Adjust comments.
24722 (avr_vdump): New function.
24723 (avr_vadump): Pass caller as 2nd argument instead of format string.
24724 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24725 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24727 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24730 * target.def (target_option_stream_in): New target hook.
24731 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24732 targetm.target_option.post_stream_in if non-NULL.
24733 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24734 * doc/tm.texi: Updated.
24735 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24737 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24739 2015-02-24 Jeff Law <law@redhat.com>
24742 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24743 of operand 0 and operand 2.
24744 (zero_cost_loop_end, loop_end): Similarly.
24746 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24748 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24751 2015-02-24 DJ Delorie <dj@redhat.com>
24753 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24754 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24755 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24756 instead of hardcoding SImode.
24758 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24760 * omp-low.c (create_omp_child_function): Tag entrypoint
24761 functions with a special attribute.
24763 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24766 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24768 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24770 PR rtl-optimization/65123
24771 * lra-remat.c (operand_to_remat): Check hard regs in insn
24774 2015-02-24 Nick Clifton <nickc@redhat.com>
24776 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24779 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24782 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24783 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24784 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24785 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24786 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24787 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24788 (BUILT_IN_GOACC_PARALLEL): Specify as
24789 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24790 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24791 * builtin-types.def
24792 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24793 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24794 Remove function types.
24795 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24796 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24797 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24798 New function types.
24800 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24802 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24804 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24806 PR tree-optimization/65170
24807 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24808 if val[1] < 0, clear also val[2] and return 3.
24810 2015-02-24 Alan Modra <amodra@gmail.com>
24813 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24814 when *base is a reg. Handle nested plus addresses. Simplify
24817 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24819 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24820 use natural alignment when optimizing for size.
24822 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24825 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24826 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24827 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24829 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24832 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24833 too big for a wide_int. Implement missing wrapping operation.
24835 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24838 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24839 instead of const_int 4294901760.
24841 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24843 * config/avr/t-avr: Fix typo in comment.
24845 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24847 * doc/rtl.texi (fma): Clarify documentation.
24849 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24852 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24853 over input_location.
24855 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24857 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24858 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24859 restrict alignments to absolute_biggest_alignment.
24860 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24862 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24863 * doc/tm.texi: Regenerate.
24864 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24866 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24869 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24871 2015-02-20 Richard Biener <rguenther@suse.de>
24873 PR tree-optimization/65136
24874 * tree-ssa-propagate.c: Include cfgloop.h.
24875 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24876 arguments with constants.
24878 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24879 Martin Liska <mliska@suse.cz>
24882 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24883 don't try to create_thunk if stdarg_p. If
24884 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24885 redirect_callers if possible.
24886 (sem_item_optimizer::execute): Call unregister_hooks here...
24887 (ipa_icf_driver): ... instead of here.
24889 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24891 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24892 Mark operand 0 as earlyclobber in 2nd alternative.
24893 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24894 Write negated shift amount into QI lowpart operand 0 and use it
24896 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24898 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24900 * cgraph.h (clone_function_name_1): Declare.
24901 * cgraphclones.c (clone_function_name_1): New function.
24902 (clone_function_name): Use it.
24903 * lto-partition.c: Include "stringpool.h".
24904 (must_not_rename, maybe_rewrite_identifier)
24905 (validize_symbol_for_target): New static functions.
24906 (privatize_symbol_name): Use must_not_rename.
24907 (promote_symbol): Call validize_symbol_for_target.
24908 (lto_promote_cross_file_statics): Likewise.
24909 (lto_promote_statics_nonwpa): Likewise.
24911 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24914 * config/avr/avr.md (pushhi_insn): New insn.
24915 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24917 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24918 Jakub Jelinek <jakub@redhat.com>
24920 * tree-streamer.c (preload_common_nodes): Don't preload
24921 TI_VA_LIST* for offloading.
24922 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24925 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24927 * config/pa/pa.c (pa_emit_move_sequence): Always force
24928 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24931 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24932 (TARGET_ASM_RELOC_RW_MASK): Define.
24933 (pa_cannot_force_const_mem): Revert previous change.
24935 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24936 Jan Hubicka <hubicka@ucw.cz>
24939 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24940 across jump functions.
24942 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24944 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24946 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24948 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24950 2015-02-19 Richard Henderson <rth@redhat.com>
24952 PR middle-end/65074
24953 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24954 test DECL_EXTERNAL independent of symtab_node.
24956 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24959 * varpool.c (varpool_node::get_constructor): Return early
24960 if this->lto_file_data is NULL.
24962 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24964 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24965 (rank_for_schedule_debug): Update.
24966 (ready_sort): Make static. Move sorting logic to ...
24967 (ready_sort_debug, ready_sort_real): New static functions.
24968 (schedule_block): Sort both debug insns and real insns in preparation
24969 for ready list trimming. Improve debug output.
24970 * sched-int.h (ready_sort): Remove global declaration.
24972 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24974 * ipa-icf.c (sem_function::equals_private): Adjust.
24975 (sem_function::bb_dict_test): Take a vec<int> * instead of
24977 * ipa-icf.h (bb_dict_test): Likewise.
24979 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24981 PR gcov-profile/64634
24982 * tree-eh.c (frob_into_branch_around): Fix up typos
24983 in function comment.
24984 (lower_catch): Put eh_seq resulting from EH lowering of
24985 the cleanup sequence after the cleanup rather than before it.
24987 2015-02-18 Tom de Vries <tom@codesourcery.com>
24989 * common.opt (fstdarg-opt): New option.
24990 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24991 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24992 (@item -fstdarg-opt): New item.
24994 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
24997 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24998 for common symbols.
25000 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25002 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25004 (ALL_HOST_OBJS): Add mkoffload.o.
25005 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25007 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
25009 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25010 (compare_virtual_tables): Be smarter about skipping typeinfos;
25011 do sane output on virtual table table mismatch.
25012 (warn_odr): Be ready for forward declarations of enums;
25013 output sane info on base mismatch and virtual table mismatch.
25014 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25015 when only one type is polymorphic.
25016 (get_odr_type): Fix hashtable corruption.
25017 (dump_odr_type): Dump mangled names.
25019 2015-02-18 Richard Biener <rguenther@suse.de>
25021 PR tree-optimization/65063
25022 * tree-predcom.c (determine_unroll_factor): Return 1 if we
25023 have replaced looparound PHIs.
25025 2015-02-18 Martin Liska <mliska@suse.cz>
25027 * lto-streamer.c (lto_streamer_init): Encapsulate
25028 streamer_check_handled_ts_structures with checking macro.
25030 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25033 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25034 section if !implicit_section.
25035 (cgraph_node::create_version_clone_with_body): Likewise.
25036 * trans-mem.c (ipa_tm_create_version): Likewise.
25038 2015-02-18 Richard Biener <rguenther@suse.de>
25040 PR tree-optimization/62217
25041 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25044 2015-02-18 Marek Polacek <polacek@redhat.com>
25047 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25048 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25049 is in range [-16K, -1]. Don't issue run-time error if
25050 (ptr > ptr + offset).
25052 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
25054 * doc/install.texi (nvptx-*-none): New section.
25055 * doc/invoke.texi (Nvidia PTX Options): Likewise.
25056 * config/nvptx/nvptx.opt: Update.
25058 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25059 (access_check): New functions, copied from
25060 config/i386/intelmic-mkoffload.c.
25061 (main): For non-installed testing, look in all COMPILER_PATHs for
25064 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25066 2015-02-18 Andrew Pinski <apinski@cavium.com>
25067 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25069 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25070 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25072 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25074 * ipa-visibility.c (function_and_variable_visibility): Only
25075 check locality if node is not already local.
25076 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25077 call_for_symbol_and_aliases instead of
25078 call_for_symbol_thunks_and_aliases.
25079 (ipa_inline): Likewise.
25080 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25081 first walk aliases.
25082 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25083 call_for_symbol_and_aliases.
25084 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25085 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25086 (ipa_propagate_frequency): Update.
25087 (ipa_profile): Add opt_for_fn gueards.
25089 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25091 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25092 * doc/invoke.texi (SH options): Document it.
25093 * config/sh/sh.c (sh_insn_length_adjustment): Check
25094 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25096 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25098 * common.opt (fipa-cp-alignment): New.
25099 * ipa-cp.c (ipcp_store_alignment_results): Check
25100 flag_ipa_cp_alignment.
25101 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25103 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25104 * doc/invoke.texi: Document -fipa-cp-alignment.
25106 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25109 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25110 to nil. Adjust comments.
25112 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25114 * ipa-visibility.c (function_and_variable_visibility): Only
25115 check locality if node is not already local.
25116 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25117 call_for_symbol_and_aliases instead of
25118 call_for_symbol_thunks_and_aliases.
25119 (ipa_inline): Likewise.
25120 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25121 first walk aliases.
25122 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25123 call_for_symbol_and_aliases.
25124 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25125 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25126 (ipa_propagate_frequency): Update.
25127 (ipa_profile): Add opt_for_fn guards.
25129 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25131 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25132 skipping of "strange" tokens.
25134 2015-02-17 Jeff Law <law@redhat.com>
25136 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25139 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25141 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25142 as forcing a HARD_DEP between instructions, thereby
25143 disallowing rewriting to break dependencies.
25145 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25147 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25148 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25149 variables in boundary that have no inlitalizer encoded and are
25151 * varasm.c (default_binds_local_p_2): External definitions do not
25152 count as definitions here.
25154 2015-02-16 Jeff Law <law@redhat.com>
25156 PR tree-optimization/64823
25157 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25159 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25160 threading through blocks with PHIs, but no statements.
25161 (thread_through_normal_block): Distinguish between blocks where
25162 we did not process all the statements and blocks with no statements.
25164 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25165 James Greenhalgh <james.greenhalgh@arm.com>
25168 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25169 section if not linkonce. Fix up formatting.
25170 (cgraph_node::create_version_clone_with_body): Copy section.
25171 * trans-mem.c (ipa_tm_create_version): Likewise.
25173 2015-02-16 Richard Biener <rguenther@suse.de>
25175 PR tree-optimization/65077
25176 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25177 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25178 (find_func_aliases): Allow float values to carry pointers again.
25180 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25182 * doc/install.texi (Specific): Reorder targets list to put
25183 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25186 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25187 David Edelsohn <dje.gcc@gmail.com>
25190 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25191 mapping class to external variable or function reference.
25192 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25195 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25198 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25199 ASM_WEAKEN_DECL if defined.
25201 2015-02-16 Richard Biener <rguenther@suse.de>
25204 * varasm.c (default_file_start): For LTO produced units
25205 emit <artificial> as file directive.
25207 2015-02-16 Richard Biener <rguenther@suse.de>
25209 PR tree-optimization/63593
25210 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25211 stmts and releasing SSA names until...
25212 (execute_pred_commoning): ... after processing all chains.
25214 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25217 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25218 external functions.
25220 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25222 * doc/bugreport.texi: Adjust section titles throughout the file
25223 to use "Title Case".
25224 * doc/extend.texi: Likewise.
25225 * doc/gcov.texi: Likewise.
25226 * doc/implement-c.texi: Likewise.
25227 * doc/implement-cxx.texi: Likewise.
25228 * doc/invoke.texi: Likewise.
25229 * doc/objc.texi: Likewise.
25230 * doc/standards.texi: Likewise.
25231 * doc/trouble.texi: Likewise.
25233 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25235 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25236 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25237 * tree.c (lookup_binfo_at_offset): Make static.
25238 (get_binfo_at_offset): Do not shadow offset; add explanatory
25241 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25243 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25244 for all floading point loads and stores except those using a register
25246 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25249 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25251 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25252 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25253 (estimate_growth): Handle uninlinable edges correctly.
25254 (check_callers): New.
25255 (growth_likely_positive): Handle aliases correctly.
25257 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25259 * ipa-chkp.c: Use iterate_direct_aliases.
25260 * symtab.c (resolution_used_from_other_file_p): Move inline.
25261 (symtab_node::create_reference): Fix formating.
25262 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25263 (symtab_node::iterate_reference): Move inline.
25264 (symtab_node::iterate_referring): Move inline.
25265 (symtab_node::iterate_direct_aliases): Move inline.
25266 (symtab_node::used_from_object_file_p_worker): Inline into ...
25267 (symtab_node::used_from_object_file_p): ... this one; move inline.
25268 (symtab_node::call_for_symbol_and_aliases): Move inline;
25269 use iterate_direct_aliases.
25270 (symtab_node::call_for_symbol_and_aliases_1): New method.
25271 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25272 use iterate_direct_aliases.
25273 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25274 (varpool_node::call_for_node_and_aliases): Rename to ...
25275 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25276 use iterate_direct_aliases.
25277 (varpool_node::call_for_symbol_and_aliases_1): New method.
25278 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25279 (ipa_discover_readonly_nonaddressable_var): Update.
25280 * ipa-devirt.c: Fix formating.
25281 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25283 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25284 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25285 * cgraph.h (used_from_object_file_p_worker): Remove.
25286 (resolution_used_from_other_file_p): Move inline.
25287 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25288 (symtab_node::iterate_reference): Move inline.
25289 (symtab_node::iterate_referring): Move inline.
25290 (symtab_node::iterate_direct_aliases): Move inline.
25291 (symtab_node::used_from_object_file_p_worker): Inline into ...
25292 (symtab_node::used_from_object_file_p): Move inline.
25293 * tree-emutls.c (ipa_lower_emutls): Update.
25294 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25295 (varpool_node::call_for_node_and_aliases): Remove.
25297 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25299 PR tree-optimization/62209
25300 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25301 op == range->exp, insert seq and gimplified code after labels
25302 instead of after the phi.
25304 2015-02-13 Jeff Law <law@redhat.com>
25307 Revert my change for tree-optimization/64823.
25309 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25311 PR tree-optimization/65053
25312 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25313 cond, either reset VR on lhs or set it to phi result VR.
25315 2015-02-13 Jeff Law <law@redhat.com>
25317 PR tree-optimization/64823
25318 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25319 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25320 threading through blocks with PHIs, but no statements.
25321 (thread_through_normal_block): Distinguish between blocks where
25322 we did not process all the statements and blocks with no statements.
25324 PR rtl-optimization/47477
25325 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25326 simplifier to narrow arithmetic.
25328 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25331 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25332 polymorphic call info when type is not known to be preserved.
25334 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25337 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25338 (inline_call): Use it.
25340 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25342 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25343 GOMP_DEVICE_NVIDIA_PTX.
25345 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25348 * stmt.c (emit_case_nodes): Use void_type_node instead of
25349 NULL_TREE as LABEL_DECL type.
25351 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25353 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25355 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25356 symbolic references to data to be forced to constant memory on the
25359 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25361 PR tree-optimization/65002
25362 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25364 * tree-sra.c (some_callers_have_no_vuse_p): New.
25365 (ipa_early_sra): Reject functions whose callers
25366 assume function is read only.
25368 2015-02-13 Richard Biener <rguenther@suse.de>
25371 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25372 for LTO produced CUs.
25374 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25376 PR tree-optimization/64705
25377 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25378 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25379 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25380 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25381 expand_simple_operations.
25383 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25384 Richard Henderson <rth@redhat.com>
25387 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25388 before notice_global_symbol.
25389 (varpool_node::finalize_decl): Likewise.
25390 * varasm.c (default_binds_local_p_2): Rename from
25391 default_binds_local_p_1, add weak_dominate argument. Use direct
25392 returns instead of assigning to local variable. Unify varpool and
25393 cgraph paths via symtab_node. Reject undef weak variables before
25394 testing visibility. Reorder tests for simplicity.
25395 (default_binds_local_p): Use default_binds_local_p_2.
25396 (default_binds_local_p_1): Likewise.
25397 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25399 (default_elf_asm_output_external): Emit visibility when specified.
25401 2015-02-13 Alan Modra <amodra@gmail.com>
25403 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25404 code setting up r11 for out-of-line fp restore.
25406 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25408 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25409 (muser-mode): Likewise.
25411 2015-02-13 Alan Modra <amodra@gmail.com>
25413 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25414 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25416 2015-02-12 David Howells <dhowells@redhat.com>
25418 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25420 * tree-ssa-uninit.c (dump_predicates): Likewise.
25421 * opts.c (print_filtered_help): Likewise.
25423 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25425 * dwarf2out.c (output_die): Use "%s", name instead of name to
25426 avoid -Wformat-security warning.
25428 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25429 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25430 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25431 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25433 2015-02-12 Jason Merrill <jason@redhat.com>
25435 * common.opt (-flifetime-dse): New.
25437 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25440 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25442 PR tree-optimization/65014
25443 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25444 use original second operand of arg0 or arg1 instead of
25445 that adjusted by STRIP_NOPS.
25447 2015-02-11 Jeff Law <law@redhat.com>
25450 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25451 that needs to be queued, just queue it for a single cycle.
25453 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25455 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25456 bodies of thunks; comment on why.
25457 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25458 symbols are extern.
25460 2015-02-11 Richard Henderson <rth@redhat.com>
25463 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25464 regions of __builtin_eh_copy_values.
25466 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25468 PR middle-end/65003
25469 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25470 ultimate alias is MEM with SYMBOL_REF satisfying
25471 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25472 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25474 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25476 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25477 "diagnostic-core.h".
25478 (main): Initialize progname, and call diagnostic_initialize.
25480 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25481 instead of __OPENMP_TARGET__.
25483 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25484 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25485 hard-coding PTX_ID.
25487 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25489 * doc/sourcebuild.texi (pie_enabled): Document.
25491 2015-02-11 Martin Liska <mliska@suse.cz>
25494 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25495 a return value for call to a function that is noreturn.
25497 2015-02-11 Richard Biener <rguenther@suse.de>
25500 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25503 2015-02-11 Andrew Pinski <apinski@cavium.com>
25506 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25507 Change the first argument type to size_type_node and add another
25509 (aarch64_simd_expand_builtin): Handle the new argument to
25510 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25511 print an out when the first two arguments are not
25512 nonzero integer constants.
25513 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25514 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25516 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25519 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25520 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25521 (ix86_set_current_function): Rewritten.
25522 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25523 when creating builtin fndecls.
25525 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25528 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25530 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25531 have no comdat group.
25532 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25533 (lto_output_varpool_node): Always output alias info.
25534 (output_refs): Output refs of boundary aliases, too.
25535 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25536 (output_symtab): Output call eges in thunks in boundary.
25537 (get_alias_symbol): Remove.
25538 (input_node, input_varpool_node): Do not special case weakrefs.
25539 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25540 alias and thunks targets in the boundary; do not take removed symbols
25541 from their comdat groups.
25542 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25543 (cgraph_node::global_info): Remove.
25544 (cgraph_node::rtl_info): Look through aliases and thunks.
25545 * cgrpah.h (global_info): Remove.
25546 (non_local_p): Remove.
25548 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25549 Sandra Loosemore <sandra@codesourcery.com>
25551 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25552 to inline asm. List dialects in proper order.
25554 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25555 Sandra Loosemore <sandra@codesourcery.com>
25557 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25559 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25561 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25562 modified) reference to Solaris.
25564 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25566 * doc/extend.texi (Extended Asm): Fix typos.
25568 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25571 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25573 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25576 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25577 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25578 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25579 * config/sh/constraints.md (Ara, Add): New constraints.
25580 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25582 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25583 atomic_mem_operand_0. Don't use force_reg on the memory address.
25584 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25585 Sra constraint. Convert to insn_and_split. Add workaround for
25587 (atomic_compare_and_swap<mode>_hard): Copy to
25588 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25589 Use atomic_mem_operand_0 predicate.
25590 (atomic_compare_and_swap<mode>_soft_gusa,
25591 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25592 AraAdd constraints.
25593 (atomic_compare_and_swap<mode>_soft_tcb,
25594 atomic_compare_and_swap<mode>_soft_imask,
25595 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25596 atomic_mem_operand_0 predicate and SraSdd constraints.
25597 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25599 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25600 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25601 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25602 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25603 force_reg on the memory address.
25604 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25605 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25606 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25607 atomic_mem_operand_1 predicate and Sra constraint.
25608 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25609 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25610 Use atomic_mem_operand_1 predicate.
25611 (atomic_<fetchop_name><mode>_hard): Copy to
25612 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25613 Use atomic_mem_operand_1 predicate.
25614 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25615 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25616 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25617 insn_and_split. Use atomic_mem_operand_1 predicate.
25618 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25619 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25620 Use atomic_mem_operand_1 predicate.
25621 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25622 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25623 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25624 in generated insn with original mem operand before emitting the insn.
25625 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25626 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25627 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25628 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25629 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25630 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25631 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25632 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25633 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25634 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25635 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25636 atomic_not_fetch<mode>_soft_tcb,
25637 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25638 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25639 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25640 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25642 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25644 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25645 and 3 earlyclobber operands.
25647 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25649 * common.opt (fstack-reuse): Mark as optimization.
25651 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25654 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25656 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25658 PR tree-optimization/64326
25659 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25661 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25663 PR gcov-profile/61889
25664 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25666 2015-02-10 Richard Biener <rguenther@suse.de>
25668 PR tree-optimization/64995
25669 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25670 value we use is final.
25671 (visit_reference_op_store): Always valueize op.
25672 (visit_use): Properly valueize vuses.
25674 2015-02-10 Richard Biener <rguenther@suse.de>
25676 PR tree-optimization/64909
25677 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25678 pass a scalar-stmt count estimate to the cost model.
25679 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25681 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25683 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25684 enabled by default together with var-tracking.
25686 2015-02-10 Nick Clifton <nickc@redhat.com>
25688 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25689 included in previous rl78 commit.
25691 2015-02-10 Richard Biener <rguenther@suse.de>
25693 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25694 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25695 return the bitpack.
25697 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25699 PR gcov-profile/61889
25700 * config.in: regenerate.
25701 * configure.in: Likewise.
25702 * configure.ac: Check for ftw.h.
25703 * gcov-tool.c: Check for ftw.h before using nftw.
25705 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25708 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25709 assert when not in lto mode.
25711 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25713 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25714 initialization/assignment of conflict_size.
25716 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25719 * ipa-cp.c (gather_caller_stats): Skip thunks.
25720 (propagate_constants_topo): Skip aliases.
25722 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25725 * config/sh/sh.c (sh_option_override): Don't change
25726 -freorder-blocks-and-partition to -freorder-blocks even when
25727 unwinding is enabled.
25728 (sh_can_follow_jump): Return false if the followee jump is
25729 a crossing jump when -freorder-blocks-and-partition is specified.
25730 * config/sh/sh.md (*jump_compact_crossing): New insn.
25732 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25733 Kaz Kojima <kkojima@gcc.gnu.org>
25736 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25737 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25738 (sh_can_redirect_branch): Rename to ...
25739 (sh_can_follow_jump): ... this. Constify argument types.
25740 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25741 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25742 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25743 * doc/tm.texi: Regenerate.
25745 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25748 * builtins.c (expand_builtin): Call targetm.expand_builtin
25749 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25751 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25754 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25756 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25759 * ipa-icf.c (set_local): New function.
25760 (sem_function::merge): Use it.
25762 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25764 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25765 (add_type_duplicate): Fix comparison of BINFOs.
25767 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25769 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25770 on getting VOID pointer.
25772 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25775 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25778 2015-02-09 Richard Biener <rguenther@suse.de>
25780 * genmatch.c (replace_id): Copy expr_type.
25782 2015-02-09 Richard Biener <rguenther@suse.de>
25784 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25785 (streamer_write_tree_bitfields): Declare.
25786 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25787 properly unpack padding.
25788 (unpack_value_fields): Inline ...
25789 (streamer_read_tree_bitfields): ... here.
25790 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25791 and properly add padding bits.
25792 (streamer_pack_tree_bitfields): Fold into ...
25793 (streamer_write_tree_bitfields): ... this new function,
25794 exposing the bitpack object.
25795 * lto-streamer-out.c (lto_write_tree_1): Call
25796 streamer_write_tree_bitfields.
25798 2015-02-09 Richard Biener <rguenther@suse.de>
25800 PR tree-optimization/54000
25801 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25802 (struct ivopts_data): Add loop_loc member.
25803 (tree_ssa_iv_optimize_loop): Dump loop location.
25804 (create_new_ivs): Likewise, also dump number of IVs generated.
25806 2015-02-09 Martin Liska <mliska@suse.cz>
25808 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25809 just if not yet registered.
25810 (ipa_icf_generate_summary): Register callgraph hooks.
25812 2015-02-08 Andrew Pinski <apinski@cavium.com>
25814 * config/aarch64/aarch64.c (gty_dummy): Delete.
25816 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25819 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25820 (cgraph_node::local_p): Remove thunk related FIXME.
25822 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25825 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25826 is local and optimized.
25827 (ix86_function_sseregparm): Likewise; also use target's SSE math
25828 settings; error out instead of silently generating wrong code
25830 (init_cumulative_args): Look through aliases.
25832 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25835 * ipa-split.c (execute_split_functions): Split if function has aliases.
25837 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25840 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25841 aliases before trying to expand it.
25842 (cgraph_node::expand_thunk): Fix formating.
25844 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25846 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25847 (Using Assembly Language with C): Expand introduction.
25848 (Basic Asm): Copy-edit. Add more information about uses of
25850 (Extended Asm): Copy-edit. Document new escape syntax and
25852 (Global Reg Vars): Copy-edit.
25853 (Local Reg Vars): Likewise.
25855 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25859 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25860 (DBX_CONTIN_CHAR): Define.
25862 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25863 Brian Rzycki <b.rzycki@samsung.com>
25865 PR tree-optimization/64878
25866 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25867 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25868 Stop recursion at loop phi nodes after having visited a loop phi node.
25870 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25872 * toplev.c (process_options): Change flag_ipa_ra before creating
25873 optimization_{default,current}_node.
25876 * cgraphunit.c (cgraph_node::expand_thunk): If
25877 restype is not is_gimple_reg_type nor the thunk_fndecl
25878 returns aggregate_value_p, set restmp to a temporary variable
25879 instead of resdecl.
25881 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25883 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25885 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25888 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25889 add a general secondary reload handler for SDmode, unless we have
25890 both read/write support for SDmode.
25892 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25894 PR middle-end/64937
25895 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25896 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25897 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25898 1 before, push it to abstract_vec.
25899 (dwarf2out_abstract_function): Adjust caller. Don't call
25900 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25901 DECL_ABSTRACT_P flags for all abstract_vec elts.
25903 2015-02-06 Renlin Li <renlin.li@arm.com>
25905 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25907 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25909 2015-02-06 Jeff Law <law@redhat.com>
25912 * config/h8300/h8300.c (push): New argument "in_prologue".
25913 Pass "in_prologue" along to "F".
25914 (h8300_push_pop): Corresponding changes.
25915 (h8300_expand_prologue): Likewise.
25916 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25918 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25920 PR rtl-optimization/64957
25922 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25923 IOR rather than for AND.
25925 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25928 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25929 of shift-add and (add + shift) operations. Rename local variable.
25931 2015-02-05 Jeff Law <law@redhat.com>
25934 * config/h8300/constraints.md (U): Correctly dectect
25935 "eightbit_data" memory addresses.
25936 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25937 handle (const (plus (symbol_ref (x)))) where x is declared
25938 as an 8-bit data memory address.
25939 * config/h8300/h8300.md (call, call_value): Correctly detect
25940 "funcvec" functions.
25943 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25944 24 to 28 bits for the H8/300.
25946 2015-02-06 Alan Modra <amodra@gmail.com>
25949 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25950 (rs6000_call_aix): Use it.
25952 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25954 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25957 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25959 * config/h8300/constraints.md ("U" constraint): Use strict
25960 variant of REG_OK_FOR_BASE_P after reload has started.
25962 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25964 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25965 define to zero if !TARGET_NEON.
25966 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25968 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25969 Trevor Saunders <tsaunders@mozilla.com>
25972 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25974 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25977 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25978 when removing varpool nodes.
25980 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25983 * varpool.c (varpool_node::remove): Fix order of variables.
25985 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25988 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25989 speculation resolution and key updates.
25991 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25993 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25994 about not letting any speculative edges unupdated.
25996 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25999 * gcov-io.c (gcov_var): Export.
26001 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26003 PR middle-end/64922
26004 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26005 edges that become speculative.
26007 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26009 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26010 or DW_LANG_Fortran08.
26011 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26013 (gen_compile_unit_die): Handle "GNU Fortran2003" and
26014 "GNU Fortran2008" language strings.
26015 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26016 * langhooks.h (lang_GNU_Fortran): New prototype.
26017 * langhooks.c (lang_GNU_Fortran): New function.
26018 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26021 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26023 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26024 (RTX_OK_FOR_OLO10_P): Likewise.
26026 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26028 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26030 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26032 PR middle-end/64922
26033 * gimple.c: Include gimple-ssa.h.
26034 (maybe_remove_unused_call_args): New function.
26035 * gimple.h (maybe_remove_unused_call_args): Declare.
26036 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26037 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26038 * gimple-fold.c (gimple_fold_call): Likewise.
26040 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
26042 PR rtl-optimization/64905
26043 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26044 pointer alignment if it isn't needed.
26046 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26048 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26049 cortex-a72.cortex-a53.
26050 * config/aarch64/aarch64-tune.md: Regenerate.
26051 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26053 2015-02-04 Nick Clifton <nickc@redhat.com>
26055 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26058 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26060 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26061 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26062 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26064 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26065 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26066 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26067 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26068 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26069 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26070 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26071 * tree-core.h (enum built_in_function): In between
26072 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26073 for builtins that use DEF_BUILTIN_CHKP macro.
26075 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26078 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26079 operands for tcc_comparison exprs. Fix typos.
26082 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26083 of two XORs that have an intervening AND or IOR.
26086 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26087 simplification of XOR of AND to not allocate new rtx before
26088 committing to a simplification.
26090 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26092 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26093 manual swaps in all peepholes.
26095 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26097 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26098 of manual swapping implementation.
26099 (aarch64_expand_vec_perm_const_1): Likewise.
26101 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26103 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26104 (generic_addrcost_table): Remove NAMED_PARAM.
26105 (cortexa57_addrcost_table): Likewise.
26106 (xgene1_addrcost_table): Likewise.
26107 (generic_regmove_table): Likewise.
26108 (cortexa53_regmove_table): Likewise.
26109 (xgene1_regmove_table): Likewise.
26110 (generic_vector_table): Likewise.
26111 (cortexa57_vector_table): Likewise.
26112 (xgene1_vector_table): Likewise.
26113 (generic_tunings): Likewise.
26114 (cortexa53_tunings): Likewise.
26115 (cortexa57_tunings): Likewise.
26116 (xgene1_tunings): Likewise.
26118 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26120 * config/arm/arm-cores.def: Add cortex-a72 and
26121 cortex-a72.cortex-a53.
26122 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26123 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26124 * config/arm/arm-tune.md: Regenerate.
26125 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26126 "cortex-a72.cortex-a53".
26127 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26129 2015-02-04 Nick Clifton <nickc@redhat.com>
26132 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26134 (nonimmediate_di_operand): Likewise.
26136 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26137 prefixes of known F5 using MSP430 MCUs.
26139 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26141 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26142 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26143 instead of __builtin_sqrt.
26145 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26147 * varasm.c (do_assemble_alias): Follow transparent alias
26149 (default_assemble_visibility): Follow transparent alias
26150 chain for decl name.
26152 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26154 PR middle-end/62103
26155 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26156 to compute size of referenced value in the constant case.
26158 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26160 PR rtl-optimization/64756
26161 * cse.c (invalidate_dest): New function.
26162 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26163 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26164 invalidate and do not record it.
26166 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26169 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26170 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26171 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26172 atomic_nand<mode>_soft_tcb): New insns.
26173 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26174 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26175 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26176 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26177 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26178 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26179 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26180 atomic_not<mode>_hard if operands[0] is unused.
26181 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26182 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26183 if operands[0] is unused.
26184 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26185 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26186 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26187 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26189 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26190 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26191 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26192 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26193 if operands[0] is unused.
26194 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26195 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26196 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26197 atomic_nand_fetchsi_hard if operands[0] is unused.
26198 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26199 atomic_nand<mode>_hard if operands[0] is unused.
26200 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26201 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26202 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26203 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26204 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26205 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26206 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26207 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26208 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26209 atomic_not<mode>_hard if operands[0] is unused.
26210 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26211 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26213 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26214 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26215 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26216 atomic_nand<mode>_hard if operands[0] is unused.
26217 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26218 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26220 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26223 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26224 * gcc-main.c: New file, containing "main" taken from gcc.c.
26225 * gcc.c (do_self_spec): Free decoded_options.
26226 (class driver): Move declaration to gcc.h.
26227 (main): Move declaration and implementation to new file
26229 (driver_get_configure_time_options): New function.
26230 * gcc.h (class driver): Move this declaration here, from
26232 (driver_get_configure_time_options): New declaration.
26234 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26236 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26237 cross-module inlining.
26238 * cgraph.h (cgraph_node): Add flag merged.
26239 * ipa-icf.c (sem_function::merge): Maintain it.
26241 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26243 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26244 instead of OBJECT_P.
26246 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26249 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26250 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26251 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26252 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26254 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26257 * combine.c (reg_n_sets_max): New variable.
26258 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26259 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26260 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26261 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26262 (rest_of_handle_combine): Initialize reg_n_sets_max.
26264 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26266 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26267 if some always_inline was inlined, apply changes before inlining
26270 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26273 * config/arm/arm.c (arm_option_override): Set
26274 arm_selected_arch/cpu/tune to NULL on entry.
26276 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26277 Andrew Pinski <pinskia@gcc.gnu.org>
26278 Jakub Jelinek <jakub@gcc.gnu.org>
26281 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26282 integer typing for small model. Use IN_RANGE.
26284 2015-02-02 Richard Biener <rguenther@suse.de>
26286 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26287 * tree-vrp.c (vrp_valueize_1): Likewise.
26289 2015-02-02 Alan Modra <amodra@gmail.com>
26291 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26292 than mem for toc_restore.
26293 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26294 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26295 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26297 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26300 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26301 explicit default options.
26303 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26306 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26307 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26308 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26310 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26313 * cfgexpand.c (deep_ter_debug_map): New variable.
26314 (avoid_deep_ter_for_debug): New function.
26315 (expand_debug_expr): If TERed SSA_NAME is in
26316 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26317 instead of trying to expand SSA_NAME's def stmt.
26318 (expand_debug_locations): When expanding debug bind
26319 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26320 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26322 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26323 all debug bind stmts. Delete deep_ter_debug_map after
26324 expand_debug_location if non-NULL and clear it.
26326 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26329 * config/sh/sync.md (atomic_fetch_notsi_hard,
26330 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26331 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26332 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26333 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26334 atomic_not_fetch<mode>_soft_imask): New insns.
26336 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26338 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26339 (rank_for_schedule_debug): Split from ...
26340 (rank_for_schedule): ... this.
26341 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26342 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26344 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26346 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26347 * doc/extend.texi (x86 Variable Attributes): Move section to
26348 correct alphabetization after renaming.
26349 (x86 Type Attributes): Likewise.
26350 (Target Builtins): Re-alphabetize menu.
26351 (x86 Built-in Functions): Move section to correct alphabetization
26353 (x86 transactional memory intrinsics): Likewise.
26354 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26355 and x86 Windows Options in table and menu.
26356 (x86 Options): Move section to correct alphabetization after
26358 (x86 Windows Options): Likewise.
26360 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26362 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26363 preferred names of the architecture and its 32- and 64-bit
26365 * doc/invoke.texi: Likewise.
26366 * doc/md.texi: Likewise.
26368 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26371 * config/i386/predicates.md (address_no_seg_operand): Reject
26372 non-CONST_INT_P operands in invalid mode.
26374 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26376 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26377 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26378 * config/i386/predicates.md (address_no_seg_operand): Call
26379 address_operand with VOIDmode.
26380 (vsib_address_operand): Ditto.
26381 (address_mpx_no_base_operand): Ditto.
26382 (address_mpx_no_index_operand): Ditto.
26384 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26387 * lra-constraints.c (original_subreg_reg_mode): New.
26388 (simplify_operand_subreg): Try to simplify subreg of const. Use
26389 original_subreg_reg_mode for it.
26390 (swap_operands): Update original_subreg_reg_mode.
26391 (curr_insn_transform): Set up original_subreg_reg_mode.
26393 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26396 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26398 (process_alt_operands): Use it.
26399 (curr_insn_transform): Check the optional reload pseudo class is
26402 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26404 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26405 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26407 * toplev.h (init_asm_output): Update comment on use of
26408 UNKNOWN_LOCATION with fatal_error.
26409 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26410 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26411 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26412 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26413 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26414 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26415 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26416 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26417 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26418 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26419 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26420 fatal_error changed to pass input_location as first argument.
26422 2015-01-30 Martin Liska <mliska@suse.cz>
26424 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26425 in #pragma GCC diagnostic guards.
26427 2015-01-30 Richard Biener <rguenther@suse.de>
26429 PR tree-optimization/64829
26430 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26431 not add a widening conversion pattern but hand off extra
26432 widenings to callers.
26433 (vect_recog_widen_mult_pattern): Handle extra widening produced
26434 by vect_handle_widen_op_by_const.
26435 (vect_recog_widen_shift_pattern): Likewise.
26436 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26437 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26438 (vect_init_vector_1): Likewise.
26439 (vect_get_vec_def_for_operand): Likewise.
26440 (vect_finish_stmt_generation): Likewise.
26441 (vectorizable_load): Likewise.
26442 (vect_analyze_stmt): Likewise.
26443 (vect_is_simple_use): Likewise.
26445 2015-01-29 Jeff Law <law@redhat.com>
26447 * combine.c (try_combine): Fix typo in comment.
26449 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26452 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26453 (rs6000_stack_info): Add assert.
26454 (rs6000_output_savres_externs): New function, split off from...
26455 (rs6000_output_function_prologue): ... here. Do not call it for
26458 2015-01-29 Jeff Law <law@redhat.com>
26461 * combine.c (try_combine): If I0 is a memory load and I3 a store
26462 to a related address, increase the "goodness" of doing a 4-insn
26463 combination with I0-I3.
26464 (make_field_assignment): Handle SUBREGs in the ior+and case.
26466 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26468 PR tree-optimization/64746
26469 * tree-if-conv.c (mask_exists): New function.
26470 (predicate_mem_writes): Save created mask with given size for further
26472 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26473 (ifcvt_repair_bool_pattern): Collect all statements that are root
26474 of bool pattern and use iterative algorithm to remove multiple uses
26475 of predicates, display number of required iterations.
26477 2015-01-29 Richard Biener <rguenther@suse.de>
26479 PR tree-optimization/64853
26480 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26481 stmt will get simulated again.
26482 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26484 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26486 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26487 return_in_pc. Remove redundant assignments.
26488 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26489 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26491 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26493 * config/i386/i386.c (ix86_mode_after): Make static.
26495 2015-01-29 Richard Biener <rguenther@suse.de>
26497 PR tree-optimization/64844
26498 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26499 dump cost model analysis.
26500 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26501 Do not register adjusted load/store costs here.
26503 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26504 Uros Bizjak <ubizjak@gmail.com>
26506 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26507 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26508 using x86_use_pseudo_pic_reg.
26509 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26510 support for fixed PIC register.
26511 (ix86_use_pseudo_pic_reg): Not static any more.
26513 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26515 PR middle-end/64805
26516 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26517 to avoid error in cgraph node verification.
26519 2015-01-29 Marek Polacek <polacek@redhat.com>
26521 * doc/standards.texi: Reflect that the default for C is gnu11.
26523 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26526 * reorg.c (switch_text_sections_between_p): New function.
26527 (relax_delay_slots): Call it when testing if the jump insn
26528 is removable. Use targetm.can_follow_jump when testing if
26529 the conditional branch can follow an unconditional jump.
26531 2015-01-27 Caroline Tice <cmtice@google.com>
26533 Committing VTV Cywin/Ming patch for Patrick Wollgast
26534 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26535 if -fvtable-verify=preinit/std is used.
26536 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26537 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26538 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26539 if -fvtable-verify=preinit/std is used.
26540 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26541 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26542 if -fvtable-verify=preinit/std is used.
26543 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26544 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26545 * varasm.c (assemble_variable): Add code to properly set the comdat
26546 section and name for the .vtable_map_vars section in case the
26547 target is PE or COFF.
26549 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26552 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26553 make sane BB profile.
26554 (cgraph_node::expand_thunk): Make sane BB profile.
26555 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26556 * cgraph.h (init_lowered_empty_function): Update prototype.
26557 * config/i386/i386.c (make_resolver_func): Update call.
26558 * predict.c (gate): Disable branch prediction pass if
26559 profile is already there.
26561 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26563 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26564 * opth-gen.awk: Likewise.
26565 * common.opt: Mark flag_fp_contract_mode as Optimization.
26567 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26569 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26570 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26572 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26575 * config/sh/predicates.md (atomic_arith_operand,
26576 atomic_logical_operand): Remove.
26577 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26578 (atomic_arith_operand_0): New predicate.
26579 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26580 Use atomic_arith_operand_0 for input values.
26581 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26582 atomic_compare_and_swap<mode>_soft_gusa,
26583 atomic_compare_and_swap<mode>_soft_tcb,
26584 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26585 arith_reg_operand instead of register_operand.
26586 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26587 atomic_arith_operand_0 for newval input.
26588 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26589 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26590 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26591 arith_reg_operand instead of register_operand.
26592 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26593 fetchop_predicate_1, fetchop_constraint_1_llcs,
26594 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26595 fetchop_constraint_1_imask): New code iterator attributes.
26596 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26597 register_operand. Use fetchop_predicate_1.
26598 (atomic_fetch_<fetchop_name>si_hard,
26599 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26600 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26601 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26602 and arith_reg_operand instead of register_operand. Use
26603 fetchop_predicate_1, fetchop_constraint_1_gusa.
26604 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26605 and arith_reg_operand instead of register_operand. Use
26606 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26608 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26609 and arith_reg_operand instead of register_operand. Use
26610 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26612 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26613 register_operand. Use atomic_logical_operand_1.
26614 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26615 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26616 arith_reg_operand instead of register_operand.
26617 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26618 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26619 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26620 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26621 register_operand. Use fetchop_predicate_1.
26622 (atomic_<fetchop_name>_fetchsi_hard,
26623 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26624 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26625 fetchop_constraint_1_llcs.
26626 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26627 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26628 fetchop_constraint_1_gusa.
26629 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26630 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26631 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26632 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26633 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26634 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26635 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26636 register_operand. Use atomic_logical_operand_1.
26637 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26638 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26639 arith_reg_operand instead of register_operand.
26640 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26641 arith_reg_operand instead of register_operand. Use logical_operand
26642 and K08. Adjust asm sequence to allow R0 usage.
26643 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26644 arith_reg_operand instead of register_operand. Use logical_operand
26647 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26650 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26651 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26652 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26653 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26654 all bits in *val_wide.
26656 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26658 * varpool.c (tls_model_names): Fix names.
26659 (varpool_node::dump): Dump tls- prefix for tls models.
26661 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26662 Bernd Schmidt <bernds@codesourcery.com>
26663 Nathan Sidwell <nathan@codesourcery.com>
26665 * config/nvptx/mkoffload.c: New file.
26666 * config/nvptx/t-nvptx: Add build rules for it.
26667 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26668 (extra_programs): Add mkoffload.
26669 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26671 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26673 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26675 PR middle-end/64809
26676 * cfgexpand.c (reorder_operands): Skip debug gimples.
26678 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26680 PR tree-optimization/64277
26681 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26682 range info when possible to refine estimation.
26684 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26686 PR tree-optimization/64718
26687 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26688 be a 16bit unsigned integer when n->range is 16.
26689 (bswap_replace): Convert src to that type if necessary for all bswap
26690 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26691 set in pass_optimize_bswap::execute ().
26693 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26695 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26696 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26697 integer and floating point variants.
26698 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26700 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26702 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26703 for all vector modes.
26705 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26708 * doc/sourcebuild.texi (comdat_group): Document.
26710 2015-01-28 Terry Guo <terry.guo@arm.com>
26712 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26714 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26716 * toplev.c (print_version): Add param "show_global_state", and
26717 only print GGC and plugin information if it is true.
26718 (init_asm_output): Pass in "true" for the new param when calling
26720 (process_options): Likewise.
26721 (toplev::main): Likewise.
26722 * toplev.h (print_version): Add new param to decl.
26724 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26728 * tree.c (lookup_binfo_at_offset): New function.
26729 (get_binfo_at_offset): Use it.
26731 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26734 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26735 on vtable being vtable.
26737 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26739 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26740 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26741 -mhotpatch= option.
26742 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26743 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26744 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26746 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26747 (s390_hotpatch_hw_max): New name.
26748 (s390_hotpatch_trampoline_halfwords): Renamed.
26749 (s390_hotpatch_hw_before_label): New name.
26750 (get_hotpatch_attribute): Removed.
26751 (s390_hotpatch_hw_after_label): New name.
26752 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26754 (s390_attribute_table): Ditto.
26755 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26756 (s390_function_num_hotpatch_hw): New name.
26757 Remove special handling of inline functions and hotpatching.
26758 Return number of nops before and after the function label.
26759 (s390_can_inline_p): Removed.
26760 (s390_asm_output_function_label): Emit a configurable number of nops
26761 after the function label.
26762 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26763 (TARGET_CAN_INLINE_P) Removed.
26764 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26766 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26767 Jiong Wang <jiong.wang@arm.com>
26769 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26771 (cb<optab><mode>1): Likewise.
26772 * config/aarch64/iterators.md (bcond): New define_code_attr.
26774 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26776 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26779 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26781 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26784 2015-01-27 Richard Biener <rguenther@suse.de>
26786 * tree-vrp.c (update_value_range): Intersect the range with
26787 old recorded SSA name range information.
26789 2015-01-27 Nick Clifton <nickc@redhat.com>
26791 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26792 BC, DE and HL registers directly, not via AX.
26793 When decrementing the stack pointer by a large amount, transfer SP
26794 into AX and perform the subtraction there.
26795 (rl78_expand_epilogue): Perform the inverse of the above
26798 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26800 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26802 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26803 Yury Gribov <y.gribov@samsung.com>
26806 * ubsan.c (ubsan_source_location): Refactor code.
26807 (ubsan_type_descriptor): Update type size. Refactor code.
26809 2015-01-27 Richard Biener <rguenther@suse.de>
26811 PR tree-optimization/56273
26812 PR tree-optimization/59124
26813 PR tree-optimization/64277
26814 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26815 from the first VRP pass.
26817 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26820 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26821 handle the first argument in the same loop as all the other arguments.
26823 PR rtl-optimization/61058
26824 * jump.c (cleanup_barriers): Update basic block boundaries
26825 if BLOCK_FOR_INSN is non-NULL on PREV.
26827 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26829 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26830 bounds narrowing, already instrumented calls and calls to
26831 not instrumentable functions.
26833 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26835 PR tree-optimization/64807
26836 * wide-int.cc (wi::divmod_internal): Clear
26837 b_dividend[dividend_blocks_needed].
26839 2015-01-26 DJ Delorie <dj@redhat.com>
26841 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26842 volatile memory references.
26844 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26847 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26849 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26850 shifts if it already fits into K08.
26852 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26855 * ipa-inline.c (inline_small_functions): Print "unknown" even
26856 if edge->call_stmt is non-NULL, but has builtins or unknown
26859 PR middle-end/64421
26860 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26861 with asterisk, skip the first character.
26863 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26866 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26869 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26872 * config/i386/i386.md (*movdi_internal): Also check operand 0
26873 to determine TYPE_LEA operand.
26874 (*movsi_internal): Ditto.
26876 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26878 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26879 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26881 2015-01-26 Renlin Li <renlin.li@arm.com>
26883 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26885 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26888 2015-01-26 Richard Biener <rguenther@suse.de>
26890 PR middle-end/64764
26891 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26892 combining two BIT_AND_EXPR predicates.
26894 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26897 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26899 2015-01-26 Terry Guo <terry.guo@arm.com>
26901 * config/arm/arm.c (arm_file_start): Update the assignment of
26902 Tag_ABI_HardFP_use.
26904 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26906 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26908 config/arm/arm.md: Include the new Cortex-A57 model.
26909 (generic_sched): Don't use generic_sched when tuning for
26912 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26913 Uros Bizjak <ubizjak@gmail.com>
26915 * config/i386/i386.c (get_builtin_code_for_version): Add
26916 support for BMI and BMI2 multiversion functions.
26918 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26920 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26921 (extract_bit_field): Likewise.
26922 (extract_low_bits): Likewise.
26923 (expand_mult): Likewise.
26924 (expand_mult_highpart_adjust): Likewise.
26926 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26928 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26929 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26930 * config/i386/i386.c (processor_model): Add
26931 M_INTEL_COREI7_BROADWELL.
26932 (arch_names_table): Add "broadwell".
26934 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26943 * config/sh/sh-protos.h
26944 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26945 sh_extending_set_of_reg::use_as_unextended_reg,
26946 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26947 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26948 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26949 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26950 (sh_treg_insns): New class.
26951 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26952 (scope_counter): New class.
26953 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26954 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26955 sh_extending_set_of_reg::can_use_as_unextended_reg,
26956 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26957 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26958 sh_split_treg_set_expr): New functions.
26959 (addsubcosts): Handle treg_set_expr.
26960 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26961 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26962 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26963 (sh_insn_operands_modified_between_p): Make non-static.
26964 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26965 simple_mem_operand in addition to displacement_mem_operand.
26966 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26967 (treg_set_expr, treg_set_expr_not_const01,
26968 arith_reg_or_treg_set_expr): New predicates.
26969 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26970 arith_or_int_operand instead of logical_operand. Convert to
26971 insn_and_split. Try to optimize constant operand in splitter.
26972 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26973 (*tstqi_t_zero): Delete.
26974 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26975 (tstsi_t_and_not): Delete.
26976 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26977 Convert to insn_and_split.
26978 (unnamed split, tstsi_t_zero_extract_xor,
26979 tstsi_t_zero_extract_subreg_xor_little,
26980 tstsi_t_zero_extract_subreg_xor_big): Delete.
26981 (*tstsi_t_shift_mask): New insn_and_split.
26982 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26983 to recombine with surrounding insns when splitting.
26984 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26985 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26986 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26987 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26988 (*cbranch_div0s: Delete.
26989 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26990 Try to recombine with surrounding insns when splitting. Add operand
26992 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26993 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26994 *addc_r_r_msb, *addc_2r_msb): Delete.
26995 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
26997 (*addc_negreg_t): New insn_and_split.
26998 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26999 Try to recombine with surrounding insns when splitting.
27000 Add operand order variants.
27001 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27002 insn_and_split patterns.
27003 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
27004 surrounding insns when splitting.
27005 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27006 (*rotcl): Likewise. Add zero_extract variant.
27007 (*ashrsi2_31): New insn_and_split.
27008 (*negc): Convert to insn_and_split. Use treg_set_expr.
27009 (*zero_extend<mode>si2_disp_mem): Update comment.
27010 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27012 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
27013 with surrounding insns when splitting.
27014 (any_treg_expr_to_reg): New insn_and_split.
27015 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27016 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27017 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27018 *zero_extract_2): New single bit zero extract patterns.
27019 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27020 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27021 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27022 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27024 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27025 register_operand for set source.
27027 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
27029 * i386.opt (prefetch_sse): New targetsave.
27030 * i386.c (ix86_function_specific_save): Save prefetch_sse.
27031 (ix86_function_specific_restore): Restore prefetch_sse and initialize
27032 ix86_cost/ix86_tune_cost.
27034 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27036 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27037 Support the JIT by using 0 as the language type.
27039 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
27042 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
27043 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27044 (mark_regno_live, process_bb_lives): Pass new parameter value to
27045 make_hard_regno_born.
27047 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27049 PR rtl-optimization/63637
27050 PR rtl-optimization/60663
27051 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27052 if elt->cost is MAX_COST for ASM_OPERANDS.
27053 (find_sets_in_insn): Fix up comment typo.
27054 (cse_insn): Don't set src_volatile for all non-volatile
27055 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27056 or with "memory" clobber. Set elt->cost to MAX_COST
27057 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
27058 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27060 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27062 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27065 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27067 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27068 libgcc/config/i386/elf-lib.h.
27070 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27073 * gcc.c (print_configuration): Don't print a blank line at the end
27075 (run_attempt): ... but here unstead.
27077 PR middle-end/64734
27078 * omp-low.c (scan_sharing_clauses): Don't ignore
27079 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27080 on target data/update constructs.
27082 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27085 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27086 (DEBUG_RELOAD): Removed define.
27087 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27088 (m32c_function_arg): Added a type cast.
27089 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27090 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27091 * config/m32c/bitops.md (andqi3_16): Likewise.
27092 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27093 (push_a01_l): Likewise.
27095 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27098 * main.c (main): Construct toplev instances with init_signals=true.
27099 * toplev.c (general_init): Add param "init_signals", and use it to
27100 conditionalize the calls to signal and host_hooks.extra_signals.
27101 (toplev::toplev): Add param "init_signals".
27102 (toplev::main): When invoking general_init, pass m_init_signals
27103 to control whether signal-handlers are installed.
27104 * toplev.h (toplev::toplev): Add param "init_signals".
27105 (toplev::m_init_signals): New field.
27107 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27110 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27111 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27112 latter may be affected by the former (e.g. on i686).
27114 2015-01-23 Martin Liska <mliska@suse.cz>
27116 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27117 false positive during profiledbootstrap.
27119 2015-01-23 Tom de Vries <tom@codesourcery.com>
27122 * lto-opts.c (lto_write_options): Output non-explicit conservative
27124 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27125 (append_compiler_options): Pass -fopenacc through.
27127 2015-01-23 Tom de Vries <tom@codesourcery.com>
27130 * lto-opts.c (lto_write_options): Output non-explicit conservative
27132 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27133 (append_compiler_options): Pass -fopenmp through.
27135 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27138 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27141 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27142 * diagnostic.def (DK_ICE_NOBT): New kind.
27143 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27144 like DK_ICE, but never print backtrace.
27145 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27146 (internal_error_no_backtrace): New function.
27147 * gcc.c (execute): Use internal_error_no_backtrace instead of
27150 2015-01-22 Jeff Law <law@redhat.com>
27153 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27154 improve code density for small immediate to memory case.
27155 (insv): Better handle bitfield assignments when the field is
27156 being set to all ones.
27157 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27160 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27161 Jakub Jelinek <jakub@redhat.com>
27163 PR middle-end/64729
27164 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27165 for !TARGET_LIBC_PROVIDES_SSP version and
27166 -fstack-protector-{all,strong,explicit} otherwise.
27167 * config/freebsd.h (LINK_SSP_SPEC): Handle
27168 -fstack-protector-{strong,explicit}.
27170 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27171 H.J. Lu <hongjiu.lu@intel.com>
27174 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27177 2015-01-22 Wei Mi <wmi@google.com>
27179 PR rtl-optimization/64557
27180 * dse.c (record_store): Call get_addr for mem_addr.
27181 (check_mem_read_rtx): Likewise.
27183 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27185 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27187 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27189 * toplev.c (init_local_tick): Process the failure when read
27190 fails for random_seed.
27192 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27193 'pretty_name' to avoid memory overflow.
27195 2015-01-22 Richard Biener <rguenther@suse.de>
27197 PR middle-end/64728
27198 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27199 abnormal coalescing on undefined SSA names.
27201 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27205 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27207 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27209 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27211 PR middle-end/63325
27212 * fold-const.c (fold_checksum_tree): Don't include value of
27213 expr->decl_with_vis.symtab_node in the checksum.
27215 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27217 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27219 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27222 * gcc.c (insert_comments): New function.
27223 (try_generate_repro): Call it.
27224 (append_text): Removed.
27226 2015-01-22 Richard Biener <rguenther@suse.de>
27228 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27229 with IL incompatible options. Properly honor user optimize
27232 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27234 PR rtl-optimization/64682
27235 * combine.c (distribute_notes): When moving a death note for
27236 a register that is set in the new I2, make sure to put it
27237 before that new I2.
27239 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27241 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27242 not TARGET_DEFAULT.
27244 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27247 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27248 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27249 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27252 * doc/invoke.texi (-fsanitize=vptr): Document.
27254 PR rtl-optimization/62078
27255 * dse.c: Include cfgcleanup.h.
27256 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27257 anything call purge_all_dead_edges and cleanup_cfg at the end
27260 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27262 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27265 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27267 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27270 2015-01-21 David Sherwood <david.sherwood@arm.com>
27271 Tejas Belagod <Tejas.Belagod@arm.com>
27273 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27274 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27275 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27278 2015-01-21 David Sherwood <david.sherwood@arm.com>
27279 Tejas Belagod <Tejas.Belagod@arm.com>
27281 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27282 (aarch64_reverse_mask): New decls.
27283 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27284 (insn_count): New mode_attr.
27285 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27286 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27287 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27288 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27289 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27290 (aarch64_simd_st4): New patterns.
27291 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27292 (aarch64_reverse_mask): New functions.
27294 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27296 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27298 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27299 addressing modes for BE.
27300 (aarch64_print_operand): Add 'R' specifier.
27301 (aarch64_simd_disambiguate_copy): Delete.
27302 (aarch64_simd_emit_reg_reg_move): New function.
27303 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27304 in define_splits for structural moves.
27305 (mov<mode>): Use less restrictive predicates.
27306 (*aarch64_mov<mode>): Simplify and only allow for LE.
27307 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27309 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27311 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27313 2015-01-21 Richard Henderson <rth@redhat.com>
27316 * ccmp.c (used_in_cond_stmt_p): Remove.
27317 (expand_ccmp_expr): Don't use it.
27319 2015-01-21 Nick Clifton <nickc@redhat.com>
27321 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27324 2015-01-21 Richard Biener <rguenther@suse.de>
27326 PR middle-end/64313
27327 * tree-core.h (builtin_info, builtin_info_type): Turn from
27328 an object with two arrays into an array of an object with
27329 decl and two flags, implicit_p and declared_p.
27330 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27331 set_builtin_decl, set_builtin_decl_implicit_p,
27332 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27333 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27334 * builtins.c (builtin_info): Adjust.
27335 * gimplify.c (gimplify_addr_expr): References to builtins
27336 that have been declared by the user makes them eligible for
27337 use by the compiler. Call set_builtin_decl_implicit_p on them.
27339 2015-01-20 Jeff Law <law@redhat.com>
27342 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27343 allow pc-relative addresses in operand predicates or constraints.
27345 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27347 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27348 neon on aarch32 processors for stringops.
27350 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27353 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27355 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27358 * ipa-inline.c: Include lto-streamer.h
27359 (report_inline_failed_reason): Output source file differences and
27360 flags on optimization/target node mismatch.
27361 (can_inline_edge_p): Consider caller to be the outer inline function;
27362 be less restrictive about matching opimize and optimize_size attributes.
27363 (inline_account_function_p): Break out from ...
27364 (inline_small_functions): ... here.
27365 * ipa-inline-transform.c (clone_inlined_nodes): Use
27366 inline_account_function_p.
27367 (inline_call): Use optimize attribution; use inline_account_function_p.
27368 (inline_transform): Use opt_for_fn.
27369 * ipa-inline.h (inline_account_function_p): Declare.
27371 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27374 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27375 mode if bitsize <= 0.
27376 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27377 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27378 sizes and positions.
27380 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27382 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27383 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27385 (TARGET_ASM_FILE_END): Define.
27387 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27389 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27390 (struct tune_params): Use the enum.
27391 * arm.c (arm_*_tune): Update.
27392 (arm_option_override): Update.
27394 2015-01-20 Richard Biener <rguenther@suse.de>
27397 * ipa-reference.c (add_static_var): Inline ...
27398 (analyze_function): ... here after splitting out from ...
27399 (is_proper_for_analysis): ... this.
27401 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27404 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27405 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27406 replace the conditional with it's true branch.
27407 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27408 (arm_lra_p): Remove.
27410 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27412 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27414 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27416 * config/tilegx/mul-tables.c: Move symtab.h include after
27417 coretypes.h include.
27418 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27419 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27420 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27421 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27422 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27424 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27428 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27430 PR rtl-optimization/64081
27431 * loop-iv.c (def_pred_latch_p): New function.
27432 (latch_dominating_def): Allow specific cases with non-single
27434 (iv_get_reaching_def): Likewise.
27435 (check_complex_exit_p): New function.
27436 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27437 with exits not executing on any iteration.
27439 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27442 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27443 to set branch cost.
27445 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27448 * i386.c (gate): Check flag_expensive_optimizations and
27450 (ix86_option_override_internal): Drop optimize_size condition
27451 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27452 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27453 MASK_PREFER_AVX128.
27454 (ix86_avx256_split_vector_move_misalign,
27455 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27456 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27457 optimize_insn_for_speed_p check.
27459 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27461 * config/mips/mips.h (FP_ASM_SPEC): New define.
27462 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27465 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27468 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27469 nullptr for insn when reaching the first insn.
27470 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27471 (sh_insn_operands_modified_between_p): Add nullptr check.
27472 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27473 sign extending mem load if the insn contains any UNSPEC or
27476 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27478 * params.def (inline-unit-growth): Drop to 15%.
27479 * invoke.texi (inline-unit-growth): Document change.
27481 2015-01-19 Martin Liska <mliska@suse.cz>
27484 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27485 function for second argument of OBJ_TYPE_REF.
27487 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27490 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27491 whether function is an alias.
27493 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27495 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27498 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27500 PR rtl-optimization/64671
27501 * lra-remat.c (operand_to_remat): Don't consider jump and call
27504 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27507 * config/rs6000/default64.h: Include rs6000-cpus.def.
27508 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27509 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27510 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27512 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27514 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27515 pseudo-op to specify assembler dialect.
27517 2015-01-19 Martin Liska <mliska@suse.cz>
27520 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27521 Handle safe potentially removed nodes during filtering.
27523 2015-01-19 Martin Liska <mliska@suse.cz>
27525 * doc/extend.texi (no_icf): Add new attribute description.
27526 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27527 where the pass attempts to merge a function with no_icf attribute.
27529 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27532 * doc/md.texi (ARM Options): Document register constraints.
27534 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27535 Andrew Pinski <apinski@cavium.com>
27538 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27539 (ashl<mode>3): Don't expand if operands[2] is not constant.
27541 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27544 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27545 Match xor-and-xor RTL pattern.
27547 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27549 PR rtl-optimization/64081
27550 * loop-iv.c (def_pred_latch_p): New function.
27551 (latch_dominating_def): Allow specific cases with non-single
27553 (iv_get_reaching_def): Likewise.
27554 (check_complex_exit_p): New function.
27555 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27556 with exits not executing on any iteration.
27558 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27560 * common.opt (fgraphite): Fix a typo.
27562 2015-01-19 Felix Yang <felix.yang@huawei.com>
27564 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27566 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27567 uminp, smax_nanp, smin_nanp): New builtins.
27568 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27569 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27570 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27571 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27572 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27573 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27574 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27575 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27576 vpminnms_f32): Rewrite using builtin functions.
27578 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27581 * omp-low.c (offload_symbol_decl): Remove variable.
27582 (get_offload_symbol_decl): Remove function.
27583 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27584 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27585 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27586 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27587 BUILT_IN_GOACC_UPDATE don't pass it at all.
27589 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27591 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27594 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27596 * ipa-chkp.c (chkp_produce_thunks): Add early param
27597 to split thunks production into two passes. Keep
27598 'always_inline' function bodies after the first pass.
27599 (pass_data_ipa_chkp_early_produce_thunks): New.
27600 (pass_ipa_chkp_early_produce_thunks): New.
27601 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27602 chkp_produce_thunks signature.
27603 (make_pass_ipa_chkp_early_produce_thunks): New.
27604 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27605 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27606 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27608 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27610 * cgraph.c (cgraph_node::dump): Dump profile flags.
27612 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27615 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27616 reg appear first in the parallel.
27618 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27620 * ipa-reference.c (set_reference_optimization_summary,
27621 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27623 (ignore_module_statics): New static var.
27624 (propagate_bits): If ipa-reference is disabled, do not look into local
27626 (analyze_function): Disable analysis when ipa_reference is disabled.
27627 (generate_summary): Do not dump when reference is disabled;
27628 collect vars accessed from functions with ipa-reference disabled.
27629 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27631 (gate): Enable for LTO.
27632 (ignore_edge_p): New function.
27633 (propagate): Skip functions w/o ipa-reference analysis.
27634 * optc-save-gen.awk: Handle optimize_debug correctly.
27635 * opth-gen.awk: Likewise.
27636 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27637 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27638 fira-share-save-slots, fira-share-spill-slots,
27639 fmodulo-sched-allow-regmoves, fpartial-inlining,
27640 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27641 ftracer, ftree-parallelize-loops, fassociative-math,
27642 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27644 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27645 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27647 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27650 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27653 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27655 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27657 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27659 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27660 Remove duplicate option listings.
27662 2015-01-18 Felix Yang <felix.yang@huawei.com>
27664 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27665 (autofdo_source_profile::get_callsite_total_count,
27666 function_instance::get_function_instance_by_decl,
27667 string_table::get_index, string_table::get_index_by_decl,
27668 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27669 Fix comment typos. Reformatting and minor code rearrangement.
27671 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27673 * config/rs6000/rs6000.md (probe_stack): Delete.
27674 (probe_stack_address): New.
27676 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27678 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27679 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27681 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27683 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27684 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27685 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27687 (rs6000_libcall_value): Use the new function.
27689 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27691 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27693 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27695 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27696 implement a more precise life analysis for it during backward scan.
27698 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27700 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27702 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27704 PR rtl-optimization/52773
27705 * calls.c (emit_library_call_value): When pushing arguments use
27706 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27707 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27708 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27710 2015-01-17 Jeff Law <law@redhat.com>
27712 PR rtl-optimization/32790
27713 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27714 not ZERO_EXTEND in SET_DESTs.
27716 2015-01-17 Alan Modra <amodra@gmail.com>
27718 * cprop.c (do_local_cprop): Revert last change.
27720 2015-01-16 DJ Delorie <dj@redhat.com>
27721 Nick Clifton <nickc@redhat.com>
27723 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27724 (addhi3_real): Likewise. Fix [HL+0] syntax.
27725 (subqi3_real): Likewise.
27726 (subhi3_real): Likewise.
27727 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27728 (cbranchhi4_real): Likewise.
27729 (cbranchhi4_real_inverted): Likewise.
27730 (cbranchsi4_real_lt): Likewise.
27731 (cbranchsi4_real_ge): Likewise.
27732 (cbranchsi4_real_ge): Likewise.
27733 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27734 (sub<mode>3_virt): Likewise.
27735 (cbranchqi4_virt): Likewise.
27736 (cbranchhi4_virt): Likewise.
27737 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27738 always use '[reg+imm]' even when imm is zero.
27739 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27740 (rl78_general_operand): New.
27741 (rl78_nonimmediate_operand): New.
27742 (rl78_nonfar_operand): Use them.
27743 (rl78_nonfar_nonimm_operand): Likewise.
27744 (rl78_stack_based_mem): Fix.
27745 * config/rl78/constraints.md (Ibqi): New.
27750 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27751 (iorqi3): Likewise.
27752 (xorqi3): Likewise.
27753 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27755 * config/rl78/constrains (Qs8): New constraint.
27756 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27757 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27758 * config/rl78/rl78-real.md (update_Z): New attribute.
27759 Update patterns to set it.
27760 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27761 shorter compare and branch sequence can be used.
27762 (cbranchhi4_real): Likewise.
27763 (cbranchhi4_real_inverted): Likewise.
27765 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27766 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27768 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27769 (rl78_option_override): Allow -mes0 only if C.
27770 (characterize_address): Support subregs of symbol_refs.
27771 (rl78_addr_space_address_mode): Move. Add __near.
27772 (rl78_far_p): Likewise.
27773 (rl78_addr_space_pointer_mode): Likewise.
27774 (rl78_as_legitimate_address): Likewise.
27775 (rl78_addr_space_subset_p): Likewise.
27776 (rl78_addr_space_convert): Likewise.
27777 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27778 symbols with -mes0.
27779 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27781 (rl78_alloc_physical_registers_op1): Change logic to prefer
27782 symbol[BC] addressing.
27783 (frodata_section): New.
27784 (rl78_asm_init_sections): Initialize it.
27785 (rl78_select_section): Put __far readonly symbols in .frodata.
27786 (rl78_make_type_far): New.
27787 (rl78_insert_attributes): Force all readonly symbols to be
27789 (rl78_asm_out_integer): New.
27790 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27791 * config/rl78/rl78.opt (-mes0): New.
27793 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27794 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27795 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27796 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27797 (rl78_saddr_p): New.
27798 (rl78_output_aligned_common): New.
27799 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27800 (rl78_handle_saddr_attribute): New.
27801 (rl78_handle_naked_attribute): New.
27802 (rl78_attribute_table): Add saddr.
27803 (rl78_print_operand_1): Don't print '!' on saddr operands.
27804 (rl78_print_operand_1): Strip encodings.
27806 (rl78_strip_name_encoding): New.
27807 (rl78_attrlist_to_encoding): New.
27808 (rl78_encode_section_info): New.
27809 (rl78_asm_init_sections): New.
27810 (rl78_select_section): New.
27811 (rl78_output_labelref): New.
27812 (rl78_output_aligned_common): New.
27813 (rl78_asm_out_integer): New.
27814 (rl78_asm_ctor_dtor): New.
27815 (rl78_asm_constructor): New.
27816 (rl78_asm_destructor): New.
27818 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27819 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27820 (transcode_memory_rtx): Update.
27821 (rl78_expand_epilogue): Use A_REG instead of 0.
27823 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27825 * config/arm/arm-protos.h (struct tune_params): New field
27826 sched_autopref_queue_depth.
27827 * config/arm/arm.c (sched-int.h): Include header.
27828 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27829 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27830 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27831 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27832 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27833 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27834 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27835 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27836 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27837 * config/arm/t-arm (arm.o): Update.
27838 * haifa-sched.c (update_insn_after_change): Update.
27839 (rank_for_schedule): Use auto-prefetcher model, if requested.
27840 (autopref_multipass_init): New static function.
27841 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27842 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27843 variable for debug dumps.
27844 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27845 (autopref_multipass_dfa_lookahead_guard): New global function that
27846 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27847 (init_h_i_d): Update.
27848 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27849 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27850 (autopref_multipass_data_): Structure for auto-prefetcher data.
27851 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27852 (struct _haifa_insn_data:autopref_multipass_data): New field.
27853 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27854 (autopref_multipass_dfa_lookahead_guard): Declare.
27856 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27858 * rtlanal.c (get_base_term): Handle SCRATCH.
27860 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27862 * config/aarch64/aarch64.c
27863 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27864 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27866 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27867 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27869 2015-01-17 Alan Modra <amodra@gmail.com>
27871 * cprop.c (do_local_cprop): Disallow replacement of fixed
27874 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27877 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27880 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27882 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27883 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27885 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27887 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27888 * config/arm/thumb1.md: ... Here.
27890 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27892 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27893 TImode for TARGET_32BIT.
27895 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27897 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27898 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27900 (rs6000_abi_word_mode): New function.
27902 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27904 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27905 instead of UNITS_PER_WORD to describe the size of stack slots.
27907 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27909 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27910 as rs6000_promote_function_mode. Move comment to there.
27911 (rs6000_promote_function_mode): New function.
27913 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27915 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27916 -mpowerpc64 is active.
27918 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27920 PR middle-end/64353
27921 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27924 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27926 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27927 introduced in revision 219724.
27929 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27930 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27933 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27934 destination is not a GP reg.
27935 (*movdi_aarch64): Likewise.
27937 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27940 * config/rs6000/default64.h: Revert ISA change.
27942 2015-01-16 Richard Biener <rguenther@suse.de>
27944 PR middle-end/64614
27945 * tree-ssa-uninit.c: Include tree-cfg.h.
27946 (MAX_SWITCH_CASES): New define.
27947 (convert_control_dep_chain_into_preds): Handle switch statements.
27948 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27949 (normalize_one_pred_1): Do not split bit-manipulations.
27952 2015-01-16 Richard Biener <rguenther@suse.de>
27954 PR tree-optimization/64568
27955 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27956 complex load rewriting for TARGET_MEM_REFs.
27958 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27960 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27962 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27965 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27967 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27968 (aarch64_lra_p): Remove.
27970 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27973 * ipa-chkp.h (chkp_instrumentable_p): New.
27974 * ipa-chkp.c: Include tree-inline.h.
27975 (chkp_instrumentable_p): New.
27976 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27977 Fix processing of not instrumentable functions.
27978 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27979 not instrumentable functions.
27980 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27981 chkp_instrumentable_p.
27982 * tree-inline.h (copy_forbidden): New.
27983 * tree-inline.c (copy_forbidden): Not static anymore.
27985 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27987 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27990 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27992 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27993 type OP_OUT to OP_INOUT.
27995 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27997 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27998 (high x) y) to y if x and y have the same base.
28000 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28002 * config/arm/cortex-a57.md: New.
28003 * config/aarch64/aarch64.md: Include it.
28004 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28005 * config/aarch64/aarch64-tune.md: Regenerate.
28007 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
28010 * ccmp.c (expand_ccmp_next): New function.
28011 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28012 and compare insn sequence.
28013 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28014 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28015 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28016 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28017 (*ccmp_ior): Changed to ccmp_ior<mode>.
28018 (cmp<mode>): New pattern.
28019 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28021 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28023 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
28025 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28026 _mm256_bsrli_epi128): New.
28027 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28029 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28031 * expmed.c (store_bit_field_using_insv): Improve warning message.
28032 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28034 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28036 PR rtl-optimization/64011
28037 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28038 there is partial overflow.
28040 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28042 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28044 (nds32_expand_epilogue_v3pop): Likewise.
28045 * config/nds32/nds32.md (sibcall): Define this for sibling call
28047 (sibcall_register): Likewise.
28048 (sibcall_immediate): Likewise.
28049 (sibcall_value): Likewise.
28050 (sibcall_value_register): Likewise.
28051 (sibcall_value_immediate): Likewise.
28052 (sibcall_epilogue): Likewise.
28053 (epilogue): Pass false to indicate this is not a sibcall epilogue.
28054 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28055 (nds32_expand_epilogue_v3pop): Likewise.
28057 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28059 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28060 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28061 (return_internal): New.
28062 (return): Define this named pattern.
28063 (simple_return): Define this named pattern.
28064 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28065 pattern instead of unspec_volatile_func_return.
28066 (nds32_expand_epilogue_v3pop): Likewise.
28067 (nds32_can_use_return_insn): New function.
28069 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28071 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28072 * config/nds32/nds32.md (pop25return): New.
28073 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28074 pop25return pattern.
28076 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28078 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28079 -mforbid-fp-as-gp, and -mex9 options.
28081 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28083 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28084 remove -mgp-direct option.
28086 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28088 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28089 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28091 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28093 * ipa-inline.c (inline_small_functions): Work around hints
28096 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28099 * doc/invoke.texi (Option Summary): Document new Nios II
28101 (Nios II Options): Likewise.
28102 * config/nios2/nios2.opt: Add -mgpopt= option support.
28103 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28104 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28105 * config/nios2/nios2.c (nios2_option_override): Adjust
28106 -mgpopt defaulting.
28107 (nios2_in_small_data_p): Return true for explicit small data
28108 sections even with -G0.
28109 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28112 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28115 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28117 (inline_call): Fix removal of aliases.
28119 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28121 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28122 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28123 * opts.c (common_handle_option): Add -fsanitize=vptr.
28124 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28125 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28126 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28127 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28128 (ubsan_expand_vptr_ifn): New prototype.
28129 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28130 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28131 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28132 expand_LOOP_VECTORIZED): Make argument nameless, remove
28134 (expand_UBSAN_VPTR): New function.
28135 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28137 (UBSAN_VPTR): New internal function.
28138 * sanopt.c (tree_map_traits): Renamed to ...
28139 (sanopt_tree_map_traits): ... this.
28140 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28141 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28142 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28143 (maybe_optimize_ubsan_vptr_ifn): New function.
28144 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28145 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28147 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28148 internal calls like pure functions for aliasing, even when they
28149 have other side-effects that prevent making them ECF_PURE.
28150 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28151 (ubsan_expand_vptr_ifn): New function.
28153 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28155 PR rtl-optimization/64110
28156 * stmt.c (parse_output_constraint): Process '^' and '$'.
28157 (parse_input_constraint): Ditto.
28158 * lra-constraints.c (process_alt_operands): Process the new
28160 * ira-costs.c (record_reg_classes): Process the new constraint
28162 * genoutput.c (indep_constraints): Add '^' and '$'.
28163 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28164 * doc/md.texi: Add description of the new constraints.
28166 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28167 Bernd Schmidt <bernds@codesourcery.com>
28168 Cesar Philippidis <cesar@codesourcery.com>
28169 James Norris <jnorris@codesourcery.com>
28170 Tom de Vries <tom@codesourcery.com>
28171 Ilmir Usmanov <i.usmanov@samsung.com>
28172 Dmitry Bocharnikov <dmitry.b@samsung.com>
28173 Evgeny Gavrin <e.gavrin@samsung.com>
28174 Jakub Jelinek <jakub@redhat.com>
28176 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28177 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28178 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28179 New function types.
28180 * builtins.c: Include "gomp-constants.h".
28181 (expand_builtin_acc_on_device): New function.
28182 (expand_builtin, is_inexpensive_builtin): Handle
28183 BUILT_IN_ACC_ON_DEVICE.
28184 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28186 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28188 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28189 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28190 i386/intelmic-offload.h.
28191 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28192 to libgomp and its dependencies.
28193 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28194 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28195 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28196 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28197 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28198 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28199 * doc/generic.texi: Update for OpenACC changes.
28200 * doc/gimple.texi: Likewise.
28201 * doc/invoke.texi: Likewise.
28202 * doc/sourcebuild.texi: Likewise.
28203 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28204 GF_OMP_FOR_KIND_OACC_LOOP.
28205 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28206 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28207 GF_OMP_TARGET_KIND_OACC_UPDATE,
28208 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28210 * gimple.c: Update comments for OpenACC changes.
28211 * gimple.def: Likewise.
28212 * gimple.h: Likewise.
28213 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28214 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28215 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28216 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28217 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28219 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28220 * gimplify.c: Include "gomp-constants.h".
28221 Update comments for OpenACC changes.
28222 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28223 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28224 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28225 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28226 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28227 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28228 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28229 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28230 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28232 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28233 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28234 OMP_CLAUSE_SET_MAP_KIND.
28235 (gimplify_oacc_cache): New function.
28236 (gimplify_omp_for): Handle OACC_LOOP.
28237 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28239 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28240 OACC_EXIT_DATA, OACC_UPDATE.
28241 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28242 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28243 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28244 (gimplify_body): Consider flag_openacc next to flag_openmp.
28245 * lto-streamer-out.c: Include "gomp-constants.h".
28246 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28247 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28248 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28249 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28250 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28251 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28252 * omp-low.c: Include "gomp-constants.h".
28253 Update comments for OpenACC changes.
28254 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28256 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28257 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28258 (create_omp_child_function, scan_omp_for, scan_omp_target)
28259 (check_omp_nesting_restrictions, lower_reduction_clauses)
28260 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28261 Update for OpenACC changes.
28262 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28263 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28264 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28265 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28266 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28267 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28269 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28270 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28271 (expand_omp_target, lower_omp_target): Handle
28272 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28273 GF_OMP_TARGET_KIND_OACC_UPDATE,
28274 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28275 GF_OMP_TARGET_KIND_OACC_DATA.
28276 (pass_expand_omp::execute, execute_lower_omp)
28277 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28279 (offload_symbol_decl): New variable.
28280 (oacc_get_reduction_array_id, oacc_max_threads)
28281 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28282 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28283 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28284 (oacc_gimple_assign, oacc_initialize_reduction_data)
28285 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28287 (is_targetreg_ctx): Remove function.
28288 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28289 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28290 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28291 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28292 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28293 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28294 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28295 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28296 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28297 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28298 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28299 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28300 * tree-core.h: Update comments for OpenACC changes.
28301 (enum omp_clause_map_kind): Remove.
28302 (struct tree_omp_clause): Change type of map_kind member from enum
28303 omp_clause_map_kind to unsigned char.
28304 * tree-inline.c: Update comments for OpenACC changes.
28305 * tree-nested.c: Likewise. Include "gomp-constants.h".
28306 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28307 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28308 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28309 OMP_CLAUSE_SET_MAP_KIND.
28310 * tree-pretty-print.c: Include "gomp-constants.h".
28311 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28312 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28313 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28314 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28315 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28316 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28317 instead of OMP_CLAUSE_MAP_*.
28318 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28319 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28320 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28321 * tree-streamer-in.c: Include "gomp-constants.h".
28322 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28323 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28324 * tree-streamer-out.c: Include "gomp-constants.h".
28325 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28327 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28328 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28329 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28330 * tree.c (omp_clause_num_ops): Update accordingly.
28331 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28333 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28334 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28335 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28336 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28337 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28338 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28339 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28340 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28341 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28343 * config/i386/intelmic-offload.h: New file.
28344 * config/nvptx/offload.h: Likewise.
28346 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28348 * explow.h: Remove duplicate contents.
28349 * dojump.h: Likewise.
28351 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28353 * arm.c (arm_xgene_tune): Add default initializer for instruction
28356 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28360 * ipa.c (symbol_table::remove_unreachable_nodes):
28361 Do not put abstract origins into boundary.
28363 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28365 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28366 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28368 2015-01-15 Steve Ellcey <sellcey@mips.com>
28370 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28371 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28372 builtins.def, and chkp-builtins.def.
28374 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28376 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28379 2015-01-15 Richard Biener <rguenther@suse.de>
28381 PR tree-optimization/61743
28382 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28383 information on PHIs for some simple cases.
28385 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28387 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28389 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28390 * config/arm/arm-cores.def (xgene1): New entry.
28391 * config/arm/arm-tables.opt: Regenerate.
28392 * config/arm/arm-tune.md: Regenerate.
28393 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28395 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28397 * tree-if-conv.c: Include hash-map.h.
28398 (aggressive_if_conv): New variable.
28399 (fold_build_cond_expr): Add simplification of non-zero condition.
28400 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28401 destination block is not always executed.
28402 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28403 than two predecessors if AGGRESSIVE_IF_CONV is true.
28404 (if_convertible_stmt_p): Fix commentary.
28405 (all_preds_critical_p): New function.
28406 (has_pred_critical_p): New function.
28407 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28408 BB can have more than two predecessors and all incoming edges can be
28410 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28411 to compute predicate for true edge.
28412 (find_phi_replacement_condition): Delete this function.
28413 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28414 Allow interchange PHI arguments if EXTENDED is false.
28415 Change check that block containing reduction statement candidate
28416 is predecessor of phi-block since phi may have more than two arguments.
28417 (phi_args_hash_traits): New helper structure.
28418 (struct phi_args_hash_traits): New type.
28419 (phi_args_hash_traits::hash): New function.
28420 (phi_args_hash_traits::equal_keys): New function.
28421 (gen_phi_arg_condition): New function.
28422 (predicate_scalar_phi): Add handling of phi nodes with more than two
28423 arguments, delete COND and TRUE_BB arguments, insert body of
28424 find_phi_replacement_condition to predicate ordinary phi nodes.
28425 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28426 delete call of find_phi_replacement_condition and invoke
28427 predicate_scalar_phi with two arguments.
28428 (insert_gimplified_predicates): Add assert that non-predicated block
28429 don't have statements to insert.
28430 (ifcvt_split_critical_edges): New function.
28431 (ifcvt_split_def_stmt): Likewise.
28432 (ifcvt_walk_pattern_tree): Likewise.
28433 (stmt_is_root_of_bool_pattern): Likewise.
28434 (ifcvt_repair_bool_pattern): Likewise.
28435 (ifcvt_local_dce): Likewise.
28436 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28437 is copy of inner or outer loop force_vectorize field, invoke
28438 ifcvt_split_critical_edges, ifcvt_local_dce and
28439 ifcvt_repair_bool_pattern for aggressive if-conversion.
28441 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28443 * config/aarch64/aarch64.md: Include xgene1.md.
28444 * config/aarch64/xgene1.md: New file.
28446 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28448 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28449 xgene1 (APM XGene-1) core definition.
28450 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28451 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28452 * doc/invoke.texi: Document -mcpu=xgene1.
28454 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28456 * dojump.h: New header file.
28457 * explow.h: Likewise.
28458 * expr.h: Remove includes.
28459 Move expmed.c prototypes to expmed.h.
28460 Move dojump.c prototypes to dojump.h.
28461 Move alias.c prototypes to alias.h.
28462 Move explow.c prototypes to explow.h.
28463 Move calls.c prototypes to calls.h.
28464 Move emit-rtl.c prototypes to emit-rtl.h.
28465 Move varasm.c prototypes to varasm.h.
28466 Move stmt.c prototypes to stmt.h.
28467 (saved_pending_stack_adjust): Move to dojump.h.
28468 (adjust_address): Move to explow.h.
28469 (adjust_address_nv): Move to emit-rtl.h.
28470 (adjust_bitfield_address): Likewise.
28471 (adjust_bitfield_address_size): Likewise.
28472 (adjust_bitfield_address_nv): Likewise.
28473 (adjust_automodify_address_nv): Likewise.
28474 * explow.c (expr_size): Move to expr.c.
28475 (int_expr_size): Likewise.
28476 (tree_expr_size): Likewise.
28477 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28478 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28479 * genemit.c (main): Generate includes statistics.h, real.h,
28480 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28482 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28483 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28484 explow.h, emit-rtl.h, stmt.h.
28485 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28486 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28487 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28488 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28489 emit-rtl.h, varasm.h, stmt.h.
28490 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28491 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28492 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28493 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28494 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28495 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28496 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28497 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28498 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28499 tm.h tree.h varasm.h vec.h wide-int.h.
28500 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28501 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28502 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28503 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28504 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28505 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28506 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28507 * loop-iv.c: Likewise.
28508 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28509 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28510 statistics.h stmt.h tree.h varasm.h wide-int.h.
28511 * lra-constraints.c: Likewise.
28512 * lra-eliminations.c: Likewise.
28513 * lra-lives.c: Likewise.
28514 * lra-remat.c: Likewise.
28515 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28516 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28517 statistics.h stmt.h tree.h varasm.h wide-int.h.
28518 * hw-doloop.c: Likewise.
28519 * ira-color.c: Likewise.
28520 * ira-emit.c: Likewise.
28521 * loop-doloop.c: Likewise.
28522 * loop-invariant.c: Likewise.
28523 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28524 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28525 statistics.h stmt.h tree.h varasm.h wide-int.h.
28526 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28527 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28528 statistics.h stmt.h tree.h varasm.h wide-int.h.
28529 * combine-stack-adj.c: Likewise.
28532 * ifcvt.c: Likewise.
28533 * ira-costs.c: Likewise.
28534 * jump.c: Likewise.
28535 * lra-coalesce.c: Likewise.
28536 * lra-spills.c: Likewise.
28537 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28538 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28539 stmt.h varasm.h wide-int.h.
28540 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28541 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28543 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28544 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28545 statistics.h stmt.h varasm.h wide-int.h.
28546 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28547 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28548 varasm.h wide-int.h.
28549 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28550 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28551 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28552 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28553 statistics.h stmt.h.
28554 * config/tilepro/tilepro.c: Likewise.
28555 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28556 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28557 * config/pdp11/pdp11.c: Likewise.
28558 * config/xtensa/xtensa.c: Likewise.
28559 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28560 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28562 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28563 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28564 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28565 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28566 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28567 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28568 * rtl-chkp.c: Likewise.
28569 * tree-chkp-opt.c: Likewise.
28570 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28571 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28572 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28573 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28574 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28575 statistics.h stmt.h.
28576 * tree-vect-data-refs.c: Likewise.
28577 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28578 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28579 rtl.h statistics.h stmt.h varasm.h.
28580 * internal-fn.c: Likewise.
28581 * ipa-icf-gimple.c: Likewise.
28582 * lto-section-out.c: Likewise.
28583 * tree-data-ref.c: Likewise.
28584 * tree-nested.c: Likewise.
28585 * tree-outof-ssa.c: Likewise.
28586 * tree-predcom.c: Likewise.
28587 * tree-pretty-print.c: Likewise.
28588 * tree-scalar-evolution.c: Likewise.
28589 * tree-ssa-strlen.c: Likewise.
28590 * tree-vect-loop.c: Likewise.
28591 * tree-vect-patterns.c: Likewise.
28592 * tree-vect-slp.c: Likewise.
28593 * tree-vect-stmts.c: Likewise.
28594 * tsan.c: Likewise.
28595 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28596 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28598 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28599 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28600 statistics.h stmt.h varasm.h.
28601 * loop-unroll.c: Likewise.
28602 * ubsan.c: Likewise.
28603 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28604 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28606 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28607 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28608 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28609 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28610 statistics.h stmt.h.
28611 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28612 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28613 statistics.h stmt.h varasm.h.
28614 * gimple-match-head.c: Likewise.
28615 * lto-cgraph.c: Likewise.
28616 * lto-section-in.c: Likewise.
28617 * lto-streamer-in.c: Likewise.
28618 * lto-streamer-out.c: Likewise.
28619 * tree-affine.c: Likewise.
28620 * tree-cfg.c: Likewise.
28621 * tree-cfgcleanup.c: Likewise.
28622 * tree-if-conv.c: Likewise.
28623 * tree-into-ssa.c: Likewise.
28624 * tree-ssa-alias.c: Likewise.
28625 * tree-ssa-copyrename.c: Likewise.
28626 * tree-ssa-dse.c: Likewise.
28627 * tree-ssa-forwprop.c: Likewise.
28628 * tree-ssa-live.c: Likewise.
28629 * tree-ssa-math-opts.c: Likewise.
28630 * tree-ssa-pre.c: Likewise.
28631 * tree-ssa-sccvn.c: Likewise.
28632 * tree-tailcall.c: Likewise.
28633 * tree-vect-generic.c: Likewise.
28634 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28635 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28636 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28637 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28638 * varasm.c: Likewise.
28639 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28640 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28642 * init-regs.c: Likewise.
28644 * omp-low.c: Likewise.
28645 * stack-ptr-mod.c: Likewise.
28646 * tree-ssa-reassoc.c: Likewise.
28647 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28648 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28650 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28651 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28652 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28653 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28654 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28655 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28656 * tree-ssa-phiopt.c: Likewise.
28657 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28658 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28659 * config/fr30/fr30.c: Likewise.
28660 * config/frv/frv.c: Likewise.
28661 * expr.c: Likewise.
28662 * final.c: Likewise.
28663 * optabs.c: Likewise.
28664 * passes.c: Likewise.
28665 * simplify-rtx.c: Likewise.
28666 * stmt.c: Likewise.
28667 * toplev.c: Likewise.
28668 * var-tracking.c: Likewise.
28669 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28670 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28671 * lower-subreg.c: Likewise.
28672 * postreload-gcse.c: Likewise.
28674 * reginfo.c: Likewise.
28675 * store-motion.c: Likewise.
28676 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28677 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28678 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28679 fixed-value.h hashtab.h statistics.h stmt.h.
28680 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28681 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28682 * except.c: Likewise.
28683 * explow.c: Likewise.
28684 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28685 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28687 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28688 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28689 * tree-ssa-structalias.c: Likewise.
28690 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28691 fixed-value.h insn-config.h real.h statistics.h.
28692 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28693 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28694 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28695 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28696 * cfgbuild.c: Likewise.
28697 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28698 fixed-value.h real.h rtl.h statistics.h stmt.h.
28699 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28700 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28701 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28702 fixed-value.h real.h statistics.h stmt.h.
28703 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28704 fixed-value.h real.h statistics.h stmt.h varasm.h.
28705 * cprop.c: Likewise.
28706 * modulo-sched.c: Likewise.
28707 * postreload.c: Likewise.
28708 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28709 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28710 statistics.h stmt.h varasm.h.
28711 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28712 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28713 rtl.h statistics.h stmt.h varasm.h.
28714 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28715 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28717 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28718 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28720 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28721 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28723 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28724 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28725 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28726 function.h real.h statistics.h stmt.h varasm.h.
28727 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28728 insn-config.h real.h statistics.h stmt.h.
28729 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28730 statistics.h stmt.h.
28731 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28732 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28733 statistics.h stmt.h varasm.h.
28734 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28735 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28736 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28737 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28738 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28739 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28740 statistics.h stmt.h varasm.h.
28741 * ipa-polymorphic-call.c: Likewise.
28742 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28743 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28744 statistics.h stmt.h.
28745 * config/c6x/c6x.c: Likewise.
28746 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28747 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28748 statistics.h stmt.h varasm.h.
28749 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28750 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28752 * ipa-split.c: Likewise.
28753 * tree-eh.c: Likewise.
28754 * tree-ssa-dce.c: Likewise.
28755 * tree-ssa-loop-niter.c: Likewise.
28756 * tree-vrp.c: Likewise.
28757 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28758 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28760 * config/nds32/nds32-fp-as-gp.c: Likewise.
28761 * config/nds32/nds32-intrinsic.c: Likewise.
28762 * config/nds32/nds32-isr.c: Likewise.
28763 * config/nds32/nds32-md-auxiliary.c: Likewise.
28764 * config/nds32/nds32-memory-manipulation.c: Likewise.
28765 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28766 * config/nds32/nds32-predicates.c: Likewise.
28767 * config/nds32/nds32.c: Likewise.
28768 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28769 fixed-value.h hashtab.h real.h statistics.h.
28770 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28771 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28772 * config/arm/arm.c: Likewise.
28773 * config/avr/avr.c: Likewise.
28774 * config/bfin/bfin.c: Likewise.
28775 * config/h8300/h8300.c: Likewise.
28776 * config/i386/i386.c: Likewise.
28777 * config/ia64/ia64.c: Likewise.
28778 * config/iq2000/iq2000.c: Likewise.
28779 * config/m32c/m32c.c: Likewise.
28780 * config/m32r/m32r.c: Likewise.
28781 * config/m68k/m68k.c: Likewise.
28782 * config/mcore/mcore.c: Likewise.
28783 * config/mep/mep.c: Likewise.
28784 * config/mips/mips.c: Likewise.
28785 * config/mn10300/mn10300.c: Likewise.
28786 * config/moxie/moxie.c: Likewise.
28787 * config/pa/pa.c: Likewise.
28788 * config/rl78/rl78.c: Likewise.
28789 * config/rx/rx.c: Likewise.
28790 * config/s390/s390.c: Likewise.
28791 * config/sh/sh.c: Likewise.
28792 * config/sparc/sparc.c: Likewise.
28793 * config/spu/spu.c: Likewise.
28794 * config/stormy16/stormy16.c: Likewise.
28795 * config/v850/v850.c: Likewise.
28796 * config/vax/vax.c: Likewise.
28797 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28798 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28799 * config/msp430/msp430.c: Likewise.
28800 * predict.c: Likewise.
28801 * value-prof.c: Likewise.
28802 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28803 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28804 * config/microblaze/microblaze.c: Likewise.
28805 * config/nios2/nios2.c: Likewise.
28806 * config/rs6000/rs6000.c: Likewise.
28807 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28808 insn-config.h real.h rtl.h statistics.h stmt.h.
28809 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28810 insn-config.h real.h statistics.h stmt.h.
28811 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28812 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28813 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28814 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28815 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28816 fixed-value.h real.h statistics.h stmt.h.
28817 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28818 fixed-value.h statistics.h stmt.h.
28819 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28822 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28824 * gengtype.c (create_user_defined_type): Workaround
28825 -Wmaybe-uninitialized false positives.
28826 * cse.c (fold_rtx): Likewise.
28827 * loop-invariant.c (gain_for_invariant): Likewise.
28829 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28831 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28832 set the memory attributes in all cases but clear MEM_EXPR if need be.
28834 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28836 PR tree-optimization/64434
28837 * cfgexpand.c (reorder_operands): New function.
28838 (expand_gimple_basic_block): Insert call of reorder_operands if
28841 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28843 * config/mips/micromips.md (*swp): Remove explicit parallel.
28844 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28845 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28846 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28847 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28848 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28849 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28850 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28851 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28852 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28853 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28854 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28855 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28856 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28857 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28858 (mips_wrdsp): Likewise.
28859 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28861 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28862 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28863 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28864 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28865 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28866 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28867 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28868 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28869 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28871 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28873 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28874 (mips_print_operand): Support 'y' to print exact log2 in decimal
28876 * config/mips/mips.h (ISA_HAS_LSA): New define.
28877 (ISA_HAS_DLSA): Likewise.
28878 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28879 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28881 2015-01-15 Martin Liska <mliska@suse.cz>
28884 * optc-save-gen.awk: Add support for array types.
28886 2015-01-15 Richard Biener <rguenther@suse.de>
28888 PR middle-end/64365
28889 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28890 for MEM_REF access functions with the same base can never partially
28893 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28895 * common.opt: New option -fstack-protector-explicit.
28896 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28897 (stack_protect_decl_phase): Handle stack_protect attribute for
28898 explicit stack protection requests.
28899 (expand_used_vars): Similarly.
28900 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28901 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28902 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28904 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28907 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28909 (sh_extending_set_of_reg): New struct.
28910 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28911 sh_remove_reg_dead_or_unused_notes): New Declarations.
28912 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28913 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28914 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28915 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28916 convert to insn_and_split and use new function sh_split_tst_subregs.
28918 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28920 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28922 (Optimization Options): Move -fuse-ld documentation to...
28923 (Link Options): ...here.
28925 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28927 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28929 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28930 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28931 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28932 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28933 instead of ZR for the memory operand of LL/SC.
28934 (compare_and_swap_12, sync_add<mode>): Likewise.
28935 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28936 (sync_new_<optab>_12, sync_nand_12): Likewise.
28937 (sync_old_nand_12, sync_new_nand_12): Likewise.
28938 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28939 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28940 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28941 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28942 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28943 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28944 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28945 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28946 * doc/md.texi (ZC): Update description.
28948 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28950 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28951 memory model is CONSUME.
28952 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28953 expand_builtin_atomic_store): Change invalid memory model errors to
28955 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28956 and issue warning for CONSUME.
28958 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28960 * lto-cgraph: Update function comments for
28961 lto_symtab_encoder_encode_*.
28963 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28965 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28967 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28969 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28970 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28971 lto_stream_offload_p instead.
28972 * lto-streamer.h (select_what_to_stream): Remove argument.
28973 * passes.c (ipa_write_summaries): Likewise.
28974 * tree-pass.h (ipa_write_summaries): Likewise.
28976 2015-01-14 Richard Biener <rguenther@suse.de>
28978 PR tree-optimization/59354
28979 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28980 groups larger than the slp group size as having gaps.
28982 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28984 PR middle-end/59448
28985 * builtins.c (get_memmodel): Promote consume to acquire always.
28987 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28990 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28993 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28996 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28998 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28999 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29000 AVX512VBMI, as it implies AVX512BW.
29002 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29005 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29006 (vec_unpacks_hi_v16sf): Ditto.
29008 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29010 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29013 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29015 * doc/invoke.texi (mapcs): Mention deprecation.
29016 (mapcs-frame): Likewise.
29018 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
29021 * config/arm/arm.c (callee_saved_reg_p): Define.
29022 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29023 register is callee saved instead of !call_used_regs[reg].
29024 (thumb1_compute_save_reg_mask): Likewise.
29026 2015-01-14 Hale Wang <hale.wang@arm.com>
29028 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29031 2015-01-14 Richard Biener <rguenther@suse.de>
29034 * tree-inline.c (insert_debug_decl_map): Check destination
29035 function MAY_HAVE_DEBUG_STMTS.
29036 (insert_init_debug_bind): Likewise.
29037 (insert_init_stmt): Remove redundant check.
29038 (remap_gimple_stmt): Drop debug stmts if the destination
29039 function has var-tracking assignments disabled.
29041 2015-01-14 Martin Liska <mliska@suse.cz>
29043 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29044 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29046 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29049 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29050 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29052 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29054 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29055 level from an ARCH; do not inject the default.
29056 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29057 MIPS_ISA_LEVEL_SPEC.
29058 (MIPS_ISA_NAN2008_SPEC): Update comment.
29059 (BASE_DRIVER_SELF_SPECS): Likewise.
29060 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29061 MIPS_DEFAULT_ISA_LEVEL_SPEC.
29062 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29063 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29064 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29066 2015-01-14 Richard Biener <rguenther@suse.de>
29068 PR tree-optimization/64493
29069 PR tree-optimization/64495
29070 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29071 assign the proper vectorized PHI to the inner loop exit PHIs.
29073 2015-01-14 Joey Ye <joey.ye@arm.com>
29075 * config/arm/arm.c (arm_compute_save_reg_mask):
29076 Do not save lr in case of tail call.
29077 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29079 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29081 * tree-vrp.c (check_array_ref): Emit more warnings
29082 for warn_array_bounds >= 2.
29083 * common.opt: New option -Warray-bounds=.
29084 * doc/invoke.texi: Document -Warray-bounds=.
29086 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29088 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29089 (mforbid-fp-as-gp): Remove.
29091 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29092 (nds32_symbol_load_store_p): Remove.
29093 (nds32_fp_as_gp_check_available): Clean up implementation.
29094 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29096 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29097 fp-as-gp and ex9 cases.
29099 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29101 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29102 for bintuils bug 14342.
29103 (init_ic_make_global_vars): Likewise.
29104 (gimple_init_edge_profiler): Likewise.
29105 (gimple_gen_ic_func_profiler): Likewise.
29107 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29109 * ipa-inline.c (inline_small_functions): Swap the operands in
29112 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29115 * ipa-inline-analysis.c (node_growth_cache): Remove.
29116 (initialize_growth_caches): Do not initialize it.
29117 (free_growth_caches): Do not free it.
29118 (do_estimate_growth): Rename to ...
29119 (estimate_growth): ... this one; drop growth cache code.
29120 (growth_likely_positive): Always go the heuristics way.
29121 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29122 (reset_edge_caches): Do not reset node growth.
29123 (heap_edge_removal_hook): Do not maintain cache.
29124 (inline_small_functions): Likewise; strenghten sanity check.
29125 (ipa_inline): Do not maintain caches.
29126 * ipa-inline.h (node_growth_cache): Remove.
29127 (do_estimate_growth): Remove to ...
29128 (estimate_growth): this one; remove inline version.
29129 (reset_node_growth_cache): Remove.
29131 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29134 * ipa-inline.c (inline_small_functions): Update callee keys after
29135 resolving speculation
29136 (inline_small_functions): Always check monotonicity of the queue.
29138 2015-01-13 Marek Polacek <polacek@redhat.com>
29140 PR middle-end/64391
29141 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29143 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29145 PR rtl-optimization/64286
29146 * ree.c (combine_reaching_defs): Move part of comment earlier,
29147 remove !SCALAR_INT_MODE_P check.
29148 (add_removable_extension): Don't add vector mode
29149 extensions if all uses of the source register aren't the same
29152 2015-01-13 Renlin Li <renlin.li@arm.com>
29154 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29155 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29157 2015-01-13 Martin Liska <mliska@suse.cz>
29159 * ipa-icf.c (sem_function::equals_private): Call new functions
29160 cl_target_option_print_diff and cl_optimization_print_diff.
29161 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29162 (cl_optimization_print_diff): Likewise.
29163 * opth-gen.awk: Likewise.
29165 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29167 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29168 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29169 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29170 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29171 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29172 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29174 2015-01-13 Andrew Pinski <apinski@cavium.com>
29176 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29177 instead of src mode.
29179 2015-01-13 Richard Biener <rguenther@suse.de>
29182 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29185 2015-01-13 Andrew Pinski <apinski@cavium.com>
29187 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29189 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29191 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29193 PR middle-end/63974
29194 * cfgexpand.c (expand_computed_goto): Don't call
29195 convert_memory_address here.
29197 2015-01-13 Richard Biener <rguenther@suse.de>
29199 PR tree-optimization/64406
29200 * tree-loop-distibution.c (pass_loop_distribution::execute):
29201 Reset the SCEV hashtable if we distributed anything.
29203 2015-01-13 Richard Biener <rguenther@suse.de>
29205 PR tree-optimization/64404
29206 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29207 SLP types for CSEd loads.
29209 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29211 PR tree-optimization/64436
29212 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29213 merge of two symbolic numbers for a bitwise OR to ...
29214 (perform_symbolic_merge): This. Also fix computation of the range and
29215 end of the symbolic number corresponding to the result of a bitwise OR.
29217 2015-01-13 Richard Biener <rguenther@suse.de>
29219 PR tree-optimization/64568
29220 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29221 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29223 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29225 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29226 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29228 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29230 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29231 target-specific symbol_ref flag.
29232 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29233 resides in rodata section.
29234 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29235 (nds32_encode_section_info): New function.
29237 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29239 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29240 clobbers TA_REGNUM if large code model is specified.
29241 (call_register): Likewise.
29242 (call_immediate): Likewise.
29243 (call_value): Likewise.
29244 (call_value_register): Likewise.
29245 (call_value_immediate): Likewise.
29247 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29249 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29250 (TARGET_CMODEL_MEDIUM): New macro.
29251 (TARGET_CMODEL_LARGE): New macro.
29252 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29253 code model setting in assembly code.
29255 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29257 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29258 Remove MASK_GP_DIRECT flag.
29259 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29260 one of the multilib default options.
29261 * config/nds32/nds32.opt (mgp-direct): Remove.
29262 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29263 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29265 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29267 * config/nds32/nds32.opt (mcmodel): Add new option.
29268 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29269 to describe code model.
29271 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29274 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29276 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29278 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29279 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29280 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29281 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29282 __builtin_sh_set_fpscr.
29284 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29286 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29287 after a funtion name just to indicate it is a function.
29288 ([-fsanitize-undefined-trap-on-error]): Likewise.
29289 ([-fdbg-cnt=]): Likewise.
29290 ([-mmemcpy]): Likewise.
29291 ([-mflush-func]): Likewise.
29292 ([-msynci]): Likewise.
29294 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29296 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29299 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29301 PR tree-optimization/64563
29302 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29303 instead of != VR_VARYING.
29306 * config/i386/i386.c (ix86_expand_prologue): Add
29307 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29309 PR tree-optimization/64454
29310 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29311 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29312 for signed or [0, op1 - 1] for unsigned modulo.
29313 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29314 even if op1 does not satisfy integer_pow2p.
29317 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29319 2015-01-12 Jeff Law <law@redhat.com>
29322 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29323 (trunchiqi2, truncsihi2): Similarly.
29325 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29326 rather than calling F.
29328 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29330 * tsan.c (instrument_expr): Use force_gimple_operand.
29331 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29333 2015-01-12 Richard Biener <rguenther@suse.de>
29335 PR tree-optimization/64530
29336 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29339 2015-01-12 Richard Biener <rguenther@suse.de>
29341 PR middle-end/64357
29342 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29345 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29347 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29348 Cortex-A17 tuning parameters.
29349 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29351 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29353 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29354 * config/arm/arm.c (arm_macro_fusion_p): New function.
29355 (arm_macro_fusion_pair_p): Likewise.
29356 (TARGET_SCHED_MACRO_FUSION_P): Define.
29357 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29358 (ARM_FUSE_NOTHING): Likewise.
29359 (ARM_FUSE_MOVW_MOVT): Likewise.
29360 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29361 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29362 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29363 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29364 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29365 arm_cortex_a5_tune): Specify fuseable_ops value.
29367 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29370 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29371 test for PIE with copy reloc.
29372 * configure: Regenerated.
29374 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29376 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29378 (arm_tls_descseq_addr): Likewise.
29379 (arm_gen_movmemqi): Likewise.
29380 (arm_expand_epilogue_apcs_frame): Likewise.
29381 (arm_expand_epilogue): Likewise.
29382 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29385 2015-01-12 Martin Liska <mliska@suse.cz>
29388 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29389 volatility for correct operands.
29391 2015-01-12 Martin Liska <mliska@suse.cz>
29393 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29394 indication that a function is not leaf.
29395 (sem_function::compare_polymorphic_p): Likewise.
29397 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29399 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29400 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29401 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29402 fold-const.h, tree-check.h.
29404 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29408 * ipa-inline.c (compute_uninlined_call_time,
29409 compute_inlined_call_time): Use counts for extra precision when
29411 (big_speedup_p): Fix formating.
29412 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29413 (relative_time_benefit): Remove.
29414 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29415 merge guessed and read profile paths.
29416 (inline_small_functions): Count only !optimize_size functions into
29417 initial size; be more lax about sanity check when profile is used;
29418 be sure to update inlined function profile when profile is read.
29420 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29423 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29424 cost when edge becomes direct.
29425 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29426 is resolved or when introducing new speculation.
29428 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29432 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29433 '||' to fix typo issue.
29435 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29436 accept and return NULL.
29438 2015-01-12 Martin Liska <mliska@suse.cz>
29440 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29441 file for being inlined.
29442 (cgraph_set_edge_callee): Delete.
29443 (cgraph_edge::redirect_callee): Move function to header file
29445 (cgraph_edge::make_direct): Use new function.
29446 (cgraph_edge::dump_edge_flags): New function created from
29447 static dump_edge_flags function.
29448 (cgraph_node::dump): Use new function.
29449 (cgraph_edge::verify_count_and_frequency): New function created
29450 from verify_edge_count_and_frequency.
29451 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29452 from verify_edge_corresponds_to_fndecl.
29453 (verify_edge_corresponds_to_fndecl): Delete.
29454 (cgraph_node::verify_node): Use new function.
29455 * cgraph.h (cgraph_edge::set_callee): New function.
29456 (cgraph_edge::dump_edge_flags): Likewise.
29457 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29459 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29461 * ipa-utils.c (estimate_function_body_sizes): Do not
29462 free node params when called late with early=true.
29464 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29466 * doc/md.texi (Instruction Patterns): Rewrite text for
29468 (Example): Likewise.
29470 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29472 * doc/invoke.texi (Option Summary): Break long lines.
29473 [(-fdiagnostics-color)]: Put long literal in @smallexample
29475 [(-fsanitize-recover)]: Likewise.
29476 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29477 [(-ffast-math)]: Likewise.
29478 [(--param max-inline-insns-recursive)]: Likewise.
29479 [(--param max-inline-recursive-depth)]: Likewise.
29480 [(-mno-text-section-literals)]: Likewise.
29482 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29484 * doc/install.texi: Update for libgomp being renamed from "GNU
29485 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29487 * doc/sourcebuild.texi: Likewise.
29489 2015-01-10 Anthony Green <green@moxielogic.com>
29491 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29492 mul.x availability for moxiebox configuration.
29494 2015-01-09 Anthony Green <green@moxielogic.com>
29496 * config/moxie/moxie.md: Tabify assembly output.
29498 2015-01-09 Anthony Green <green@moxielogic.com>
29500 * config/moxie/moxie.md (CC_REG): Correct register definition.
29502 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29504 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29505 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29508 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29510 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29512 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29513 Jakub Jelinek <jakub@redhat.com>
29515 PR middle-end/64412
29516 * lto-streamer.h (lto_stream_offload_p): New declaration.
29517 * lto-streamer.c (lto_stream_offload_p): New variable.
29518 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29519 at the same time as section_name_prefix.
29520 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29521 if lto_stream_offload_p.
29522 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29523 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29524 (write_ts_function_decl_tree_pointers): Don't
29525 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29526 * tree-streamer-in.c (unpack_value_fields): Don't stream
29527 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29528 (lto_input_ts_function_decl_tree_pointers): Don't stream
29529 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29530 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29531 instead of section_name_prefix string comparisons.
29533 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29535 PR rtl-optimization/64536
29536 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29539 2015-01-09 Michael Collison <michael.collison@linaro.org>
29541 PR tree-optimization/64322
29542 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29543 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29545 2015-01-09 Tom de Vries <tom@codesourcery.com>
29547 PR rtl-optimization/64539
29548 * regcprop.c (kill_clobbered_values): Factor out of ...
29549 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29550 instead of note_stores with kill_clobbered_value.
29552 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29554 * ginclude/unwind-arm-common.h: Revert previous commit.
29556 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29558 * config.gcc (arm*-*-freebsd*): New configuration.
29559 * config/arm/freebsd.h: New file.
29560 * config.host: Add extra components for arm*-*-freebsd*.
29561 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29562 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29564 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29566 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29568 * config/rs6000/t-rtems: Add e6500 multilibs.
29570 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29572 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29575 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29577 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29578 MULTILIB_EXCEPTIONS.
29580 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29582 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29583 MULTILIB_EXCEPTIONS.
29585 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29587 * config/arm/t-rtems-eabi: Rename to...
29588 * config/arm/t-rtems: ...this.
29589 * config/arm/rtems-eabi.h: Rename to...
29590 * config/arm/rtems.h: ...this.
29591 * config.gcc (arm*-*-rtems*): Reflect changes above.
29593 2015-01-09 Richard Biener <rguenther@suse.de>
29595 PR tree-optimization/64410
29596 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29598 (execute_update_addresses_taken): Deal with that.
29599 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29600 loads/stores for complex variables.
29602 2015-01-09 Martin Liska <mliska@suse.cz>
29604 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29606 (func_checker::compare_memory_operand): New function.
29607 (func_checker::compare_operand): Split case to newly
29609 (func_checker::compare_cst_or_decl): New function.
29610 (func_checker::compare_gimple_call): Identify
29612 (func_checker::compare_gimple_assign): Likewise.
29613 * ipa-icf-gimple.h: New function.
29615 2015-01-09 Martin Liska <mliska@suse.cz>
29618 * sreal.c (sreal::dump): Change unsigned format to signed for
29620 (sreal::to_double): Replace exp2 with scalbln.
29622 2015-01-09 Martin Liska <mliska@suse.cz>
29624 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29625 * ipa-icf.c (sem_function::equals_private): Add support for target and
29626 (sem_item_optimizer::merge_classes): Remove redundant function
29627 optimization flags comparison.
29628 * tree.h (target_opts_for_fn): New function.
29630 2015-01-09 Tom de Vries <tom@codesourcery.com>
29632 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29634 2015-01-09 Kito Cheng <kito@0xlab.org>
29636 PR rtl-optimization/64348
29637 * lra-constraints.c (split_reg): Fix caller-save store/restore
29638 instruction generation.
29640 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29642 PR gcov-profile/61790
29643 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29644 long long. Fallback to int64_t if host doesn't have long long and
29645 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29647 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29649 PR tree-optimization/63989
29650 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29651 from 1000 to 10000.
29652 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29653 (get_stridx): If we don't have a record for certain SSA_NAME,
29654 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29655 constant offset, call get_stridx_plus_constant.
29656 (get_stridx_plus_constant): New function.
29657 (zero_length_string): Don't use get_stridx here.
29660 PR middle-end/64388
29661 * dse.c (struct insn_info): Mention frame_read set also
29662 before reload for tail calls on some targets.
29663 (scan_insn): Revert 2014-12-22 change. Set frame_read
29664 also before reload for tail calls if
29665 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29666 instead of add_non_frame_wild_read for non-const/memset
29667 tail calls after reload.
29669 2015-01-08 Jason Merrill <jason@redhat.com>
29671 * ubsan.c (do_ubsan_in_current_function): New.
29672 (pass_ubsan::gate): Use it.
29673 * ubsan.h: Declare it.
29674 * convert.c (convert_to_integer): Use it.
29676 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29679 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29680 compare_code when it is unconditionally overwritten afterwards.
29681 Use ix86_reverse_condition instead of reverse_condition. Don't
29682 change code if *reverse_condition* returned UNKNOWN and don't
29683 swap ct/cf and negate diff in that case.
29685 2015-01-08 Mike Stump <mikestump@comcast.net>
29687 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29688 (pass_tsan_O0::gate): Likewise.
29689 * extend.texi (Function Attributes): Add no_sanitize_thread
29692 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29694 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29695 for registering builtins.
29696 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29697 add -fopenmp to the argv_obstack used when invoking
29698 compile_for_target.
29700 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29701 add "-m32" or "-m64" to argv_obstack.
29702 (generate_host_descr_file): Likewise, when invoking host_compiler.
29703 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29706 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29708 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29711 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29714 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29715 constant load if constant operand fits into I08.
29717 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29720 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29721 and TREE_THIS_VOLATILE for MEM_REFs.
29722 (build5_stat): Fix up initialization of TREE_READONLY and
29723 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29725 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29728 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29729 of r for the second alternative of the destination operand.
29731 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29734 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29736 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29738 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29740 ([-fivar-visibility], [-fvisibility]): Likewise.
29742 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29744 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29745 the file where @code, @command, etc is more appropriate.
29747 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29749 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29750 of -mrecip= documentation.
29752 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29755 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29756 correct reload handler if -m32 -mpowerpc64 is used.
29758 2015-01-06 Tom de Vries <tom@codesourcery.com>
29760 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29762 2015-01-08 Christian Bruel <christian.bruel@st.com>
29765 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29767 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29769 PR tree-optimization/63259
29770 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29771 if optab exists for 16bit byteswap.
29773 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29775 * opts.c (common_handle_option): Add support for
29776 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29777 * doc/invoke.texi: Document -fno-sanitize=all,
29778 -f{,no-}sanitize-recover=all. Document that
29779 -fsanitize=float-cast-overflow is not enabled
29780 by -fsanitize=undefined. Fix up documentation
29781 of -f{,no-}sanitize-recover.
29783 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29785 * config.gcc: Add Visium support.
29786 * configure.ac: Likewise.
29787 * configure: Regenerate.
29788 * doc/extend.texi (interrupt attribute): Add Visium.
29789 * doc/invoke.texi: Document Visium options.
29790 * doc/install.texi: Document Visium target.
29791 * doc/md.texi: Document Visium constraints.
29792 * common/config/visium: New directory.
29793 * config/visium: Likewise.
29795 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29797 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29798 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29800 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29802 * combine.c (combine_validate_cost): Do not count the cost of a
29803 split I2 twice. Do not display it twice in the dump, either.
29805 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29807 Revert parts of r219199.
29808 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29810 ([-Wtraditional]): Restore markup on <limits.h>.
29812 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29815 * doc/invoke.texi: Document -Wsuggest-override.
29817 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29819 PR rtl-optimization/64287
29820 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29821 (process_options): Disable flag_ipa_ra if profiling.
29823 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29825 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29827 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29829 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29830 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29831 put under #if TARGET_LOOPS guard.
29833 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29835 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29837 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29839 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29840 * rtl.h (refers_to_regno_p): Add overload.
29842 * bt-load.c: Likewise.
29843 * combine.c: Likewise.
29844 * df-scan.c: Likewise.
29845 * sched-deps.c: Likewise.
29846 * config/s390/s390.c: Likewise.
29847 * config/m32r/m32r.c: Likewise.
29848 * config/rs6000/spe.md: Likewise.
29849 * config/rs6000/rs6000.c: Likewise.
29850 * config/pa/pa.c: Likewise.
29851 * config/stormy16/stormy16.c: Likewise.
29852 * config/cris/cris.c: Likewise.
29853 * config/arc/arc.md: Likewise.
29854 * config/arc/arc.c: Likewise.
29855 * config/sh/sh.md: Likewise.
29856 * config/sh/sh.c: Likewise.
29857 * config/frv/frv.c: Likewise.
29859 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29862 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29863 call as cleanup of the whole body.
29864 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29865 * tsan.c (replace_func_exit): New function.
29866 (instrument_func_exit): Moved earlier.
29867 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29868 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29870 (tsan_pass): Don't call instrument_func_exit.
29871 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29872 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29876 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29877 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29878 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29879 if the result is integer_zerop, return NULL_TREE.
29880 * convert.c (convert_to_integer): Pass expr as ARG.
29882 PR tree-optimization/64465
29883 * tree-inline.c (redirect_all_calls): During inlining
29884 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29885 changed the stmt to a non-throwing call.
29887 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29889 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29890 etc markup throughout the file.
29892 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29894 Enable experimental TSAN support for Ada.
29895 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29897 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29899 PR tree-optimization/64494
29900 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29901 clear SSA_NAME_ANTI_RANGE_P flag.
29903 2015-01-05 Marek Polacek <polacek@redhat.com>
29905 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29907 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29909 Update copyright years.
29911 * gcc.c (process_command): Update copyright notice dates.
29912 * gcov-dump.c: Ditto.
29914 * doc/cpp.texi: Bump @copying's copyright year.
29915 * doc/cppinternals.texi: Ditto.
29916 * doc/gcc.texi: Ditto.
29917 * doc/gccint.texi: Ditto.
29918 * doc/gcov.texi: Ditto.
29919 * doc/install.texi: Ditto.
29920 * doc/invoke.texi: Ditto.
29922 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29924 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29926 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29928 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29929 ([-Wabi]): Likewise.
29930 ([-fmessage-length]): Likewise.
29931 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29932 ([-Wno-discarded-qualifiers]): Likewise.
29933 ([-Wnodiscarded-array-qualifiers]): Likewise.
29934 ([-Wno-virtual-move-assign]): Likewise.
29935 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29936 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29937 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29938 ([-fsanitize-undefined-trap-on-error]): Likewise.
29939 ([-floop-interchange]): Likewise.
29940 ([-ftree-coalesce-inlined-vars]): Likewise.
29941 ([-fvect-cost-model]): Likewise.
29942 ([-flto]): Likewise.
29943 ([--param]): Likewise.
29944 (Spec Files): Likewise.
29945 ([-mstrict-align]): Likewise.
29946 ([-mfix-cortex-a53-835769]): Likewise.
29947 ([-march], [-mtune]): Likewise.
29948 ([-mpic-register]): Likewise.
29949 ([-munaligned-access]): Likewise.
29950 ([-msp8]): Likewise.
29951 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29952 (AVR Built-in Macros): Likewise.
29953 ([-mpreferred-stack-boundary]): Likewise.
29954 ([-mtune-crtl]): Likewise.
29955 ([-mashf]): Likewise.
29956 ([-mmcu=]): Likewise.
29957 ([-minrt]): Likewise.
29958 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29959 ([-mupper-regs]): Likewise.
29960 ([-matomic-model]): Likewise.
29961 ([-mdiv]): Likewise.
29962 ([-mzdcbranch]): Likewise.
29963 ([-mdisable-callt]): Likewise.
29964 ([-msoft-float]): Likewise.
29965 ([-m8byte-align]): Likewise.
29966 ([-fstack-reuse]): Likewise.
29968 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29970 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29971 Fix markup, light copy-editing.
29972 ([-fauto-profile]): Rewrite to fix formatting and content
29975 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29977 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29978 Copy-edit description.
29979 ([-fisolate-erroneous-paths-attribute]): Likewise.
29980 * common.opt (fisolate-erroneous-paths-dereference):
29981 Copy-edit description.
29982 (fisolate-erroneous-paths-attribute): Likewise.
29984 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29986 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29989 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29991 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29992 ([-fvtv-debug]): Likewise.
29993 ([-Wc++-compat]): Likewise.
29994 ([-Wc++11-compat]): Likewise.
29995 ([-Wc++14-compat]): Likewise.
29996 ([-Wno-sized-deallocation]): Likewise.
29997 ([-femit-class-debug-always]): Likewise.
29998 ([-femit-struct-debug-detailed]): Likewise.
29999 ([-fno-keep-inline-dllexport]): Likewise.
30000 ([-fira-algorithm]): Likewise.
30001 ([-fira-region]): Likewise.
30002 ([-flra-remat]): Likewise.
30003 ([-fipa-ra]): Likewise.
30004 ([-fhoist-adjacent-loads]): Likewise.
30005 ([-fisolate-erroneous-paths-dereference]): Likewise.
30006 ([-fisolate-erroneous-paths-attribute]): Likewise.
30007 ([-ftree-switch-conversion]): Likewise.
30008 ([-ftree-tail-merge]): Likewise.
30009 ([-ftree-loop-if-convert]): Likewise.
30010 ([-ftree-loop-if-convert-stores]): Likewise.
30011 ([-ftree-loop-distribution]): Likewise.
30012 ([-ftree-loop-distribute-patterns]): Likewise.
30013 ([-flto-compression-level]): Likewise.
30014 ([-flto-report]): Likewise.
30015 ([-flto-report-wpa]): Likewise.
30016 ([-fuse-linker-plugin]): Likewise.
30017 ([-mfix-cortex-a53-835769]): Likewise.
30018 ([-mno-fix-cortex-a53-835769]): Likewise.
30019 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30020 explicit listing; add a note to the discussion indicating they
30021 exist. Reorder table to group similar options. Add missing
30022 @opindex entries. Add @need commands throughout the table to
30023 allow it to be split across multiple pages.
30024 ([-m8bit-idiv]): Fix @opindex.
30025 ([-mavx256-split-unaligned-load]): Likewise.
30026 ([-mavx256-split-unaligned-store]): Likewise.
30027 ([-mstack-protector-guard]): Likewise.
30028 ([-mcpu=]): Likewise.
30029 ([-mcpu]): Likewise.
30030 ([-mpointer-size=]): Likewise.
30032 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
30034 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30035 instead of `m' constraint. Likewise for unnamed movb comparison
30036 patterns using reg_before_reload_operand predicate.
30037 * config/pa/predicates.md (reg_before_reload_operand): Tighten
30038 predicate to reject register index and LO_SUM DLT memory forms
30041 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30043 * doc/invoke.texi (Option Summary): Fix spelling of
30044 -fdevirtualize-at-ltrans.
30045 ([-fdevirtualize]): Fix markup.
30046 ([-fdevirtualize-speculatively]): Fix typo.
30047 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
30048 implementor-speaky.
30049 * common.opt (fdevirtualize-at-ltrans): Likewise.
30050 * ipa-devirt.c: Fix typos in comments throughout the file.
30051 (ipa_devirt): Fix typos in format strings for dump output.
30053 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30055 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30056 discussion of defaults, light copy-editing.
30058 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30060 * tsan.c (instrument_expr): corrected previous checkin.
30062 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30064 Instrument bit field and unaligned accesses for TSAN.
30065 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30066 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30067 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30068 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30069 unaligned memory regions.
30071 2015-01-01 Anthony Green <green@moxielogic.com>
30073 * config/moxie/predicates.md (moxie_general_movsrc_operand):
30074 Restrict move source register offsets to 16 bits.
30076 Copyright (C) 2015 Free Software Foundation, Inc.
30078 Copying and distribution of this file, with or without modification,
30079 are permitted in any medium without royalty provided the copyright
30080 notice and this notice are preserved.