1 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
3 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4 Add new insn types for vector load and store pairs.
5 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7 * config/arm/cortex-a57.md (neon_load_c): Add insn types
9 (neon_store_complex): Add insn types "neon_stp{,_q}".
10 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13 2015-09-29 Jeff Law <law@redhat.com>
15 * config/rx/constraints.md (Int08): Fix undefined left shift
17 (Sint08, Sint16, Sint24): Likewise.
18 * config/rx/rx.c (rx_get_stack_layout): Likewise.
20 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
23 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
25 * config/msp430/constraints.md ('L' constraint): Similarly.
26 ('Ys' constraint): Similarly.
28 2015-09-29 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/67170
31 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
32 the translate function pointer parameter to get the
33 bool whether to disambiguate only by reference.
34 (walk_non_aliased_vuses): Likewise.
35 * tree-ssa-alias.c (maybe_skip_until): Adjust.
36 (get_continuation_for_phi_1): Likewise.
37 (get_continuation_for_phi): Likewise.
38 (walk_non_aliased_vuses): Likewise.
39 * tree-ssa-sccvn.c (const_parms): New bitmap.
40 (vn_reference_lookup_3): Adjust for interface change.
41 Disambiguate parameters pointing to readonly memory.
42 (free_scc_vn): Free const_parms.
43 (run_scc_vn): Initialize const_parms from a fn spec attribute.
45 2015-09-29 Richard Biener <rguenther@suse.de>
47 PR tree-optimization/67741
48 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
49 builtin calls with correct signature.
51 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
54 * config/i386/i386.c: Include dbgcnt.h.
55 (has_non_address_hard_reg): New.
56 (convertible_comparison_p): New.
57 (scalar_to_vector_candidate_p): New.
58 (remove_non_convertible_regs): New.
60 (scalar_chain::scalar_chain): New.
61 (scalar_chain::~scalar_chain): New.
62 (scalar_chain::add_to_queue): New.
63 (scalar_chain::mark_dual_mode_def): New.
64 (scalar_chain::analyze_register_chain): New.
65 (scalar_chain::add_insn): New.
66 (scalar_chain::build): New.
67 (scalar_chain::compute_convert_gain): New.
68 (scalar_chain::replace_with_subreg): New.
69 (scalar_chain::replace_with_subreg_in_insn): New.
70 (scalar_chain::emit_conversion_insns): New.
71 (scalar_chain::make_vector_copies): New.
72 (scalar_chain::convert_reg): New.
73 (scalar_chain::convert_op): New.
74 (scalar_chain::convert_insn): New.
75 (scalar_chain::convert): New.
76 (convert_scalars_to_vector): New.
80 (ix86_option_override): Created and register stv pass.
81 (flag_opts): Add -mstv.
82 (ix86_option_override_internal): Likewise.
83 * config/i386/i386.md (SWIM1248x): New.
84 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
85 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
86 (*anddi3_doubleword): New.
87 (*zext<mode>_doubleword): New.
88 (*zextsi_doubleword): New.
89 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
90 (*<code>di3_doubleword): New.
91 * config/i386/i386.opt (mstv): New.
92 * dbgcnt.def (stv_conversion): New.
94 2015-09-29 Tom de Vries <tom@codesourcery.com>
96 * tree-cfg.c (dump_function_to_file): Dump function attributes.
98 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
101 * config/sh/sh.c (sh_override_options_after_change): New.
102 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
103 (sh_option_override): Move align_loops, align_jumps and
104 align_functions handling into sh_override_options_after_change.
106 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
108 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
109 (nvptx_record_offload_symbol): Record function execution geometry.
110 * config/nvptx/mkoffload.c (process): Include launch geometry in
112 * omp-low.c (oacc_launch_pack): New.
113 (replace_oacc_fn_attrib): New.
114 (set_oacc_fn_attrib): New.
115 (get_oacc_fn_attrib): New.
116 (expand_omp_target): Create keyed varargs for GOACC_parallel call
118 * omp-low.h (get_oacc_fn_attrib): Declare.
119 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
120 (DEF_FUNCTION_TYPE_VAR_11): Delete.
121 * tree.h (OMP_CLAUSE_EXPR): New.
122 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
124 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
125 Sebastian Pop <s.pop@samsung.com>
127 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
129 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
130 Sebastian Pop <s.pop@samsung.com>
132 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
133 * graphite-scop-detection.c (struct sese_l): New type.
134 (get_entry_bb): API for getting entry bb of SESE.
135 (get_exit_bb): API for getting exit bb of SESE.
136 (class debug_printer): New type. Simple printer in debug mode.
137 (trivially_empty_bb_p): New. Return true when BB is empty or
138 contains only debug instructions.
139 (graphite_can_represent_expr): Call scalar_evoution_in_region
140 instead of analyze_scalar_evolution. Pass in scop instead of only
142 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
144 (stmt_simple_for_scop_p): Same.
145 (harmful_stmt_in_bb): Same.
146 (graphite_can_represent_loop): Deleted.
147 (struct scopdet_info): Deleted.
148 (scopdet_basic_block_info): Deleted.
149 (build_scops_1): Deleted.
150 (bb_in_sd_region): Deleted.
151 (find_single_entry_edge): Deleted.
152 (find_single_exit_edge): Deleted.
153 (create_single_entry_edge): Deleted.
154 (sd_region_without_exit): Deleted.
155 (create_single_exit_edge): Deleted.
156 (unmark_exit_edges): Deleted.
157 (mark_exit_edges): Deleted.
158 (create_sese_edges): Deleted.
159 (build_graphite_scops): Deleted.
160 (canonicalize_loop_closed_ssa): Recompute all dominators at the
162 (build_scops): Use the new scop_builder to build scops.
163 (dot_all_scops_1): Use the new pretty printer. Print loop father
165 (loop_body_is_valid_scop): New. Return true if loop body is a
167 (class scop_builder): New. Builds SCoPs for polyhedral
169 (scop_builder): New constructor.
170 (static sese_l invalid_sese): sese_l with invalid edges.
171 (get_sese): Get an sese (from a loop) if possible, invalid_sese
173 (get_nearest_dom_with_single_entry): Get nearest dominator of a
174 basic_block with single entry. Return NULL if we get to the
175 beginning of a function.
176 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
177 a basic_block with single exit. Return NULL if we get to the
178 beginning of a function.
179 (print_sese): Pretty-print SESE.
180 (merge_sese): Merge two SESEs if possible and return the new SESE.
181 (build_scop_depth): Start building the SCoP within a loop nest.
182 (build_scop_breadth): Start building the SCoP at a single loop
183 depth. Merge adjacent SESEs if valid.
184 (can_represent_loop_1): Returns true if Graphite can represent
185 loop inside SCoP. Helper for can_represent_loop.
186 (can_represent_loop): Returns true if Graphite can represent LOOP
187 and all its nested loops in SCoP.
188 (loop_is_valid_scop): Returns true if LOOP and all its nests
189 constitute a valid SCoP.
190 (region_has_one_loop): Returns true of a region has only one loop.
191 (add_scop): Add SCoP to the list of valid scops. Removes an
192 already existing scop if it intersects with or subsumed by this
194 (harmful_stmt_in_region): Returns true if SCoP has any statment
195 which cannot be represented by Graphite.
196 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
197 (remove_subscops): Remove any SCoP from the list of already found
198 SCoPs, if subsumed by S1.
199 (intersects): Return true if region bounded by SCoPs S1 and S2
201 (remove_intersecting_scops): Remove any SCoP which intersects with
203 * graphite.c (print_graphite_scop_statistics):
204 (print_graphite_statistics): Print SCoP info while debugging.
205 (graphite_initialize): Early exit in case number of loops in a
206 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
207 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
209 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
210 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
211 (recompute_all_dominators): Recalculate POST_DOMINATORS.
212 * tree-cfg.c (print_loops): Print the function name while printing
215 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
216 Sebastian Pop <s.pop@samsung.com>
218 PR tree-optimization/67700
219 * graphite-sese-to-poly.c (parameter_index_in_region): Call
220 invariant_in_sese_p_rec.
221 (extract_affine): Same.
222 (rewrite_cross_bb_scalar_deps): Call update_ssa.
223 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
224 * sese.h (invariant_in_sese_p_rec): Declare.
226 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
228 * doc/extend.texi (Asm Labels): Break out text for data vs
231 2015-09-28 Jiong Wang <jiong.wang@arm.com>
234 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
235 Jiong Wang <jiong.wang@arm.com>
237 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
238 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
239 (REG_CLASS_NAMES): Likewise.
240 (REG_CLASS_CONTENTS): Likewise.
241 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
242 (aarch64_register_move_cost): Likewise.
243 (aarch64_load_symref_appropriately): Invoke the new added pattern if
245 * config/aarch64/constraints.md (Uc0): New constraint.
247 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
249 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
251 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
253 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
254 SECTION_EXCLUDE in XO mapping class.
256 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
259 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
260 and handle ne and eq codes.
261 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
262 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
263 CONST_INT_P. Use reverse_condition.
264 (sh_split_treg_set_expr): Likewise.
266 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
268 * config/arm/types.md (type): Add rotate_imm.
269 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
271 (*rorsi3_insn_uxtw): Likewise.
272 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
273 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
274 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
276 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
278 PR rtl-optimization/67481
279 * ifcvt.c (contains_ccmode_rtx_p): New function.
280 (insn_valid_noce_process_p): Use it.
282 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
284 PR rtl-optimization/67456
285 PR rtl-optimization/67464
286 PR rtl-optimization/67465
287 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
288 move in the mode of x. Handle combination of complex and simple
289 block pairs as well as the case when one is empty.
291 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
293 * doc/gimple.texi: Update references to gimple_statement_base.
294 * gdbhooks.py: Likewise.
295 * gimple.h: Likewise.
297 2015-09-28 Daniel Cederman <cederman@gaisler.com>
299 * config/sparc/driver-sparc.c: map LEON to leon3
301 2015-09-28 Daniel Cederman <cederman@gaisler.com>
303 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
304 and make it inverse to change default
305 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
307 * doc/invoke.texi: Document change of default
309 2015-09-28 Daniel Cederman <cederman@gaisler.com>
311 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
312 true on %f0 for a target without FPU.
313 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
315 (untyped_return): Do not load %f0 for a target without FPU.
317 2015-09-28 Andrew Pinski <apinski@cavium.com>
319 * config/aarch64/aarch64.md (prefetch):
320 Change the predicate of operand 0 to register_operand.
322 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
324 * config/i386/predicates.md (register_sse4nonimm_operand): New
326 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
327 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
328 Use register_sse4nonimm_operand as operand 0 predicate.
329 (*vec_extractv8hi_sse2): Remove insn pattern.
330 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
331 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
333 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
334 Kaz Kojima <kkojima@gcc.gnu.org>
337 * config/sh/sh-protos.h (sh_lra_p): Declare.
338 * config/sh/sh.c (sh_lra_p): Make non-static.
339 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
340 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
341 Expand into addsi3_scr if operands[2] if needed.
342 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
343 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
344 (addsi3_scr, *addsi3): New insn_and_split patterns.
346 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
348 PR rtl-optimization/64164
349 PR tree-optimization/67312
353 * cfgexpand.c (parm_in_stack_slot_p): Remove.
354 (ssa_default_def_partition): Remove.
355 (get_rtl_for_parm_ssa_default_def): Remove.
356 (set_rtl): Check that RTL assignments match expectations.
357 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
358 default def location for params and results. Record SSA names
359 or types in REG and MEM attrs, respectively.
361 (expand_one_ssa_partition): Drop logic that assigned MEMs with
362 unassigned addresses.
363 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
364 deferred stack alloc vars.
365 (expand_used_vars): Skip partitions holding parm default defs.
366 Move adjust_one_expanded_partition_var loop...
367 (pass_expand::execute): ... here. Drop redundant assert.
368 Adjust comments before the final loop over all ssa names.
369 Require assigned rtl of parms and results to match exactly.
370 Reset its attributes to match them, not any other variables in
372 (expand_debug_expr): Use entry value for PARM's default defs
373 only iff they have zero nondebug uses.
374 * cfgexpand.h (parm_in_stack_slot_p): Remove.
375 (get_rtl_for_parm_ssa_default_def): Remove.
376 (set_parm_rtl): Declare.
377 * doc/invoke.texi: Improve wording.
378 * explow.c (promote_decl_mode): Fix promote_function_mode for
379 result decls not by reference.
380 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
381 bypass TYPE_MODE to get the actual vector mode.
382 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
383 2015-08-19's changes as follows. Drop include of
384 basic-block.h and df.h.
385 (rtl_for_parm): Remove.
386 (maybe_reset_rtl_for_parm): Remove.
387 (parm_in_unassigned_mem_p): Remove.
388 (use_register_for_decl): Add logic for RESULT_DECLs matching
389 assign_parms' behavior.
390 (split_complex_args): Revert.
391 (assign_parms_augmented_arg_list): Revert. Add comment
392 referencing the logic above.
393 (assign_parm_adjust_stack_rtl): Revert.
394 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
395 of SET_DECL_RTL. Set up a REG if the parm demands so.
396 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
397 calls into a single set_parm_rtl. Set up a temporary RTL
398 temporarily for expand_assignment.
399 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
400 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
401 (assign_bounds): Revert.
402 (assign_parms): Revert. Use set_parm_rtl.
403 (allocate_struct_function): Relayout result and parms of
404 non-abstruct functions.
405 (expand_function_start): Revert. Use set_parm_rtl. If the
406 result is not a hard reg, create a pseudo from the promoted
407 mode of the default def. Promote static chain mode.
408 * tree-outof-ssa.c (remove_ssa_form): Drop unused
409 partition_has_default_def. Set up
410 partitions_for_parm_default_defs.
411 (finish_out_of_ssa): Remove partition_has_default_def.
412 Release partitions_for_parm_default_defs.
413 * tree-outof-ssa.h (struct ssaexpand): Remove
414 partition_has_default_def. Add
415 partitions_for_parm_default_defs.
416 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
418 (build_ssa_conflict_graph): Fix conflict-detection of default
419 defs of even unused default defs of params and results.
420 (for_all_parms): New.
421 (create_default_def): New.
422 (register_default_def): New.
423 (coalesce_with_default): New.
424 (create_outofssa_var_map): Create default defs for all parms
425 and results, and register their partitions. Add GIMPLE_RETURN
426 operands as coalesce candidates with results. Add default
427 defs of each parm or result as coalesce candidates with its
428 other defs. Mark each result def, and each default def of
429 parms, as used_in_copy.
430 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
431 with the ssa names, even anonymous ones. Drop
432 parm_in_stack_slot_p calls. Require same signedness and
434 (coalesce_ssa_name): Add coalesce candidates for all defs of
435 each parm and result, even unused ones.
436 (parm_default_def_partition_arg): New type.
437 (set_parm_default_def_partition): New.
438 (get_parm_default_def_partitions): New.
439 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
440 * tree-ssa-live.c (partition_view_init): Regard unused defs of
441 parms and results as used.
442 (verify_live_on_entry): Don't error out just because they're
445 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
447 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
448 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
449 (output_fde): Don't output length for debug_frame on AIX.
450 (output_call_frame_info): Don't output length for debug_frame on AIX.
451 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
452 HAVE_XCOFF_DWARF_EXTRAS.
453 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
454 HAVE_XCOFF_DWARF_EXTRAS.
455 (output_compilation_unit_header): Don't output length on AIX.
456 (output_pubnames): Don't output length on AIX.
457 (output_aranges): Delete argument. Compute length locally. Don't
458 output length on AIX.
459 (output_line_info): Don't output length on AIX.
460 (dwarf2out_finish): Don't compute aranges_length.
461 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
462 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
463 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
464 symbol decoration for AIX.
465 (rs6000_xcoff_debug_unwind_info): New.
466 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
468 (rs6000_xcoff_declare_function_name): Emit different
469 .function pseudo-op when DWARF2_DEBUG. Don't call
470 xcoffout_declare_function for DWARF2_DEBUG.
471 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
473 * config/rs6000/aix71.h: New.
474 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
476 * configure: Regenerate.
477 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
480 2015-09-26 Jeff Law <law@redhat.com>
482 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
484 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
487 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
490 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
493 * config/cris/cris.md (asrandb): Fix left shift undefined
497 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
500 * lra-constarints.c (match_reload): Check presence of the input pseudo
501 in the output operand.
503 2015-09-25 Tobias Burnus <burnus@net-b.de>
505 * doc/invoke.texi (-fsanitize): Minor wording tweak.
507 2015-09-25 Tobias Burnus <burnus@net-b.de>
509 * doc/invoke.texi (-fsanitize): Update URLs.
511 2015-09-25 Teresa Johnson <tejohnson@google.com>
513 * opts.c (finish_options): Unset -freorder-blocks-and-partition
514 if not using profile.
516 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
518 PR pretty-print/67567
519 * pretty-print.c (pp_string): Add gcc_checking_assert.
520 * pretty-print.h (output_buffer_append_r): Likewise.
522 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
525 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
526 addr2 individually. Don't emit logical or insn if one is known to
527 be aligned approriately.
528 (sh_expand_cmpnstr): Likewise.
530 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
532 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
533 __builtin_aarch64_fp[sc]r arguments into a register.
535 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
537 * config.gcc (x86_archs): Replace lakemount with lakemont.
538 (with_cpu): Likewise.
539 (with_arch): Likewise.
540 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
541 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
542 __tune_lakemount__ with __tune_lakemont__.
543 * config/i386/i386.c (lakemount_cost): Renamed to ...
544 (lakemont_cost): This.
545 (m_LAKEMOUNT): Renamed to ...
547 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
548 (processor_target_table): Replace "lakemount" with "lakemont".
549 (processor_alias_table): Likewise.
550 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
552 (ix86_adjust_cost): Likewise.
553 (ia32_multipass_dfa_lookahead): Likewise.
554 * config/i386/i386.h (processor_type): Likewise.
555 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
556 * doc/invoke.texi: Replace lakemount with lakemont. Replace
557 Lakemount with Lakemont.
559 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
561 * config.gcc (x86_archs): Replace iamcu with lakemount.
562 (with_cpu): Likewise.
563 (with_arch): Likewise.
564 * doc/invoke.texi: Likewise.
565 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
566 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
567 __tune_iamcu__ with __tune_lakemount__.
568 * config/i386/i386.c (iamcu_cost): Renamed to ...
569 (lakemount_cost): This.
570 (m_IAMCU): Renamed to ...
572 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
573 (processor_target_table): Replace "iamcu" with "lakemount".
574 (processor_alias_table): Likewise.
575 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
577 (ix86_adjust_cost): Likewise.
578 (ia32_multipass_dfa_lookahead): Likewise.
579 * config/i386/i386.h (processor_type): Likewise.
580 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
582 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
584 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
585 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
587 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
588 (pa_expand_compare_and_swap_loop): New.
589 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
590 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
591 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
592 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
593 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
596 2015-09-24 Michael Collison <michael.collison@linaro.org>
599 * read-md.c (read_name): Allow mode iterators inside angle
600 brackets in rtl expressions.
602 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
605 * ira-color.c (update_allocno_cost): Add parameter.
606 (update_costs_from_allocno): Decrease conflict cost. Pass the new
609 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
612 * opts-common.c (prune_options): Discard all -fdiagnostics-color
613 but the last one, which is moved to the front to be processed
615 * opts.c (enable_warning_as_error): Reject options that do not
618 2015-09-24 Jiong Wang <jiong.wang@arm.com>
620 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
622 2015-09-24 Jiong Wang <jiong.wang@arm.com>
624 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
625 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
626 (aarch64_cannot_force_const_mem): Likewise.
627 (aarch64_classify_address): Likewise.
628 (aarch64_classify_symbolic_expression): Likewise.
629 (aarch64_print_operand): Likewise.
630 (aarch64_classify_symbol): Likewise.
631 (aarch64_mov_operand_p): Likewise.
632 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
633 (aarch64_mov_operand): Likewise.
635 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
637 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
638 for info->spe_gp_size.
640 2015-09-24 Richard Biener <rguenther@suse.de>
643 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
646 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
648 * tree-object-size.c (plus_stmt_object_size)
649 (cond_expr_object_size): Change the formal parameters from gimple
651 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
652 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
653 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
655 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
657 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
658 Check for ld -type pie on Solaris 11.x and 12.
659 * configure: Regenerate.
660 * config.in: Regenerate.
662 * gcc.c (LD_PIE_SPEC): Allow redefinition.
664 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
665 (STARTFILE_SPEC): Use it.
666 (ENDFILE_CRTEND_SPEC): Define.
667 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
668 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
669 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
670 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
671 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
672 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
673 (ENDFILE_ARCH_SPEC): Define.
674 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
676 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
678 * configure.ac (gcc_cv_solaris_crts): New test.
679 * configure. Regenerate.
680 * config.in: Regenerate.
681 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
682 HAVE_SOLARIS_CRTS variant.
684 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
686 * tree-inline.h (count_insns_seq): Delete prototype.
687 (estimate_num_insns_seq): Define prototype.
688 * tree-inline.c (count_insns_seq): Delete.
689 (estimate_num_insns_seq): Remove static qualifier.
690 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
691 with estimate_num_insns_seq.
693 2015-09-24 Richard Biener <rguenther@suse.de>
695 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
697 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
698 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
700 (ao_ref_init_from_vn_reference): Record clique and base in the
702 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
704 2015-09-24 Richard Biener <rguenther@suse.de>
706 PR tree-optimization/48885
707 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
708 as not including any restrict tags from other pointers.
710 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
712 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
713 character when appending to offload_targets.
715 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
716 offload targets by commas, not colons.
717 * config.in: Regenerate.
718 * configure: Likewise.
719 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
720 instead of setting up the default offload targets here...
721 (process_command): ..., do it here.
723 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
724 targets are separated by commas.
725 * config.h.in: Regenerate.
727 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
728 Nathan Sidwell <nathan@codesourcery.com>
730 * omp-low.h (omp_reduction_init_op): Declare.
731 * omp-low.c (omp_reduction_init_op): New, broken out of ...
732 (omp_reduction_init): ... here. Call it.
733 * tree-parloops.c (initialize_reductions): Use
734 omp_reduction_init_op.
736 2015-09-23 Richard Biener <rguenther@suse.de>
739 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
740 undefined overflow unless they will cancel out.
742 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
744 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
747 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
750 * opts.h (write_langs): Declare.
751 * opts-global.c (write_langs): Make it extern.
753 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
756 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
757 overlapping regs when matching the pattern.
759 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
761 * config/aarch64/aarch64-simd.md
762 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
763 (aarch64_float_truncate_hi_v4sf_le): New.
764 (aarch64_float_truncate_hi_v4sf_be): Likewise.
766 2015-09-23 Richard Biener <rguenther@suse.de>
768 * tree-ssa-structalias.c (intra_create_variable_infos): Build
769 representatives for all restrict qualified pointer destinations.
771 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
773 * config/i386/i386.md (define_code_attr mshift): New.
774 (define_mode_iterator SWI1248_AVX512BW): Rename ...
775 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
777 (define_insn "*k<logic><mode>"): Use new iterator name.
778 (define_insn "*<mshift><mode>3"): New.
780 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
783 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
784 mark the block as accessible.
786 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
788 * function.c (thread_prologue_and_epilogue_insns): Delete
789 orig_entry_edge argument to try_shrink_wrapping.
790 * shrink-wrap.c (can_get_prologue): New function.
791 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
792 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
793 can_get_prologue where needed. Remove code that finds a single
794 edge for the prologue. Remove code that tests if any reg clobbered
795 by the prologue is live on the prologue edge. Remove code that finds
796 the new prologue edge after duplicating blocks. Make a new prologue
798 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
800 2015-09-22 Jeff Law <law@redhat.com>
802 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
805 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
807 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
808 -Wtemplates, -Wnamespaces): Document.
810 2015-09-22 Tom de Vries <tom@codesourcery.com>
812 PR tree-optimization/67671
813 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
814 pointer references as restrict.
816 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
818 * config/nios2/nios2.c (nios2_legitimize_address): When handling
819 'reg + reloc' cases, allow first operand to be non-REG, and use
820 force_reg() to enforce address pattern.
822 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
825 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
826 (define_mode_iterator VI12_AVX_AVX512F): New.
827 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
828 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
829 (define_insn "*<code><mode>3"): ... Into new pattern using
830 VI12_AVX_AVX512F iterators without masking.
832 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
834 * config.gcc: Support "skylake-avx512".
835 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
836 PROCESSOR_SKYLAKE_AVX512.
837 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
838 (processor_target_table): Add "skylake-avx512".
839 (PTA_SKYLAKE_AVX512): Define.
840 (ix86_option_override_internal): Add "skylake_avx512".
841 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
842 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
843 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
844 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
845 * doc/invoke.texi (skylake-avx512): New.
847 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
849 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
851 (define_insn "kunpcksi"): Ditto.
852 (define_insn "kunpckdi"): Ditto.
854 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
856 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
857 iterator instead of fixed modes.
859 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
861 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
863 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
864 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
865 out_result. Update to support update-fetch operations.
866 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
867 Adjust for change to aarch64_gen_atomic_ldop.
868 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
869 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
870 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
871 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
872 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
874 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
876 * config/aarch64/aarch64-protos.h
877 (aarch64_atomic_ldop_supported_p): Declare.
878 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
879 (enum aarch64_atomic_load_op_code): New.
880 (aarch64_emit_atomic_load_op): New.
881 (aarch64_gen_atomic_ldop): Update to support load-operate
883 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
885 (aarch64_atomic_<atomic_optab><mode>): New.
886 (aarch64_atomic_<atomic_optab><mode>_lse): New.
887 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
888 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
889 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
891 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
893 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
894 (UNSPECV_ATOMIC_LDOP_OR): New.
895 (UNSPECV_ATOMIC_LDOP_BIC): New.
896 (UNSPECV_ATOMIC_LDOP_XOR): New.
897 (UNSPECV_ATOMIC_LDOP_PLUS): New.
900 (aarch64_atomic_load<atomic_ldop><mode>): New.
902 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
904 * config/aarch64/aarch64.md
905 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
908 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
910 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
912 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
913 (aarch64_gen_atomic_ldop): New.
914 (aarch64_split_atomic_op): Fix whitespace and add a comment.
915 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
916 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
917 (atomic_exchange<mode>): Replace with an expander.
918 (aarch64_atomic_exchange<mode>): New.
919 (aarch64_atomic_exchange<mode>_lse): New.
920 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
921 (aarch64_atomic_swp<mode>): New.
923 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
925 * tree-inline.c (expand_call_inline): Use inform for extra note.
926 Do not give a note with UNKNOWN_LOCATION.
927 Replace input_location with gimple_location (stmt).
928 Use true/false instead of TRUE/FALSE.
930 2015-09-22 Tom de Vries <tom@codesourcery.com>
932 PR tree-optimization/67666
933 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
934 with single field non-conservative.
936 2015-09-21 David S. Miller <davem@davemloft.net>
940 2015-09-11 David S. Miller <davem@davemloft.net>
942 * config/sparc/constraints.md: Make "U" constraint a real register
944 * config/sparc/sparc.c (TARGET_LRA_P): Define.
945 (D_MODES, DF_MODES): Add missing cast.
946 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
947 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
948 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
950 * config/sparc/sparc.h (PROMOTE_MODE): Define.
951 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
952 provide these insn when flag_pic.
954 2015-09-17 David S. Miller <davem@davemloft.net>
956 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
958 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
960 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
961 (HARD_REGNO_CALLER_SAVE_MODE): Define.
962 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
963 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
964 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
965 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
966 provide when flag_pic.
968 2015-09-21 Jeff Law <law@redhat.com>
970 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
973 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
975 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
977 2015-09-21 Richard Biener <rguenther@suse.de>
979 * passes.c (rest_of_decl_compilation): Do not call
980 dwarf2out_early_global_decl for aliases.
982 2015-09-21 Richard Biener <rguenther@suse.de>
985 * dwarf2out.c (add_location_or_const_value_attribute): Remove
986 attribute parameter. Early exit if either DW_AT_const_value
987 or DW_AT_location are present already.
988 (gen_variable_die): Adjust caller.
989 (dwarf2out_late_global_decl): Likewise.
991 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
994 * config/sh/sh.c (sh_remove_overlapping_post_inc,
995 sh_peephole_emit_move_insn): Add new functions.
996 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
997 sh_peephole_emit_move_insn): Declere them.
998 * config/sh/sh.md: Use them in various peephole2 patterns.
1000 2015-09-21 Richard Biener <rguenther@suse.de>
1003 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1004 address with -fno-delete-null-pointer-checks.
1006 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1008 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1009 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1010 (reduc_uplus_v16qi): Remove.
1012 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1013 (reduc_<VEC_reduc_name>_v2df): Remove.
1014 (reduc_<VEC_reduc_name>_v4sf): Remove.
1015 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1017 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1018 gen_ function by removing * prefix.
1019 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1021 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1024 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1025 Print i_bound without converting it to a tree.
1027 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1029 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1030 operands[4] operands[5] swap with std::swap, removed tmp variable.
1031 (arm_evpc_neon_vzip): Replaced in0/in1 and
1032 out0/out1 swaps with std::swap, removed x variable.
1033 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1034 out0/out1 swaos with std::swap, removed x variable.
1035 (arm_expand_vec_perm_const_1): Replaced
1036 d->op0/d->op1 swap with std::swap, removed x variable.
1037 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1038 out0/out1 swaps with std::swap, removed x variable.
1040 2015-09-21 Jonathan Yong <10walls@gmail.com>
1042 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1043 sysroot/usr/lib/32api for additional win32 libraries,
1044 fixes failing Cygwin bootstrapping.
1046 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1048 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1050 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1053 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1054 (*mov_t_msb_neg): Rewrite negc pattern.
1056 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1058 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1059 immediate generation code.
1061 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1063 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1064 redundant immediate generation code.
1066 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1068 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1069 (AARCH64_NUM_BITMASKS): Remove.
1070 (aarch64_bitmasks_cmp): Remove.
1071 (aarch64_build_bitmask_table): Remove.
1073 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1075 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1076 slow immediate matching loops with a faster algorithm.
1078 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1080 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1083 2015-09-20 Jeff Law <law@redhat.com>
1085 PR tree-optimization/47679
1086 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1087 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1088 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1089 (thread_through_normal_block): Use record_temporary_equivalences.
1091 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1093 * coretypes.h (gimple): Change typedef to be a forward declaration.
1094 * gimple.h (gimple_statement_base): rename to gimple.
1095 * (all functions and types using gimple): Adjust.
1098 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1099 David Edelsohn <dje.gcc@gmail.com>
1101 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1102 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1103 (EH_FRAME_THROUGH_COLLECT2): Define.
1104 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1105 (ASM_OUTPUT_DWARF_PCREL): Define.
1106 (ASM_OUTPUT_DWARF_DATAREL): Define.
1108 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1110 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1113 2015-09-18 Jeff Law <law@redhat.com>
1115 PR tree-optimization/47679
1116 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1118 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1119 object. Update constructor.
1120 (pass_dominator::execute): Corresponding chagnes to declaration
1121 and initialization of avail_exprs_stack. Update constructor call
1122 for dom_opt_dom_walker object.
1123 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1124 it down to children as needed.
1125 (record_equivalences_from_incoming_edge): Likewise.
1126 (eliminate_redundant_computations): Likewise.
1127 (record_equivalences_from_stmt): Likewise.
1128 (simplify_stmt_for_jump_threading): Likewise.
1129 (record_temporary_equivalences): Likewise.
1130 (optimize_stmt): Likewise.
1131 (dom_opt_dom_walker::thread_across_edge): Update access to
1132 avail_exprs_stack object and pass it to children as needed.
1133 (dom_opt_dom_walker::before_dom_children): Similarly.
1134 (dom_opt_dom_walker::after_dom_children): Similarly.
1135 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1136 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1137 Add avail_expr_stack argument. Pass it to children as needed.
1138 (dummy_simplify): Likewise.
1139 (simplify_control_stmt_condition): Likewise.
1140 (thread_around_empty_blocks): Likewise.
1141 (thread_through_normal_block): Likewise.
1142 (thread_across_edge): Likewise.
1143 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1144 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1146 PR tree-optimization/47679
1147 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1149 (dom_opt_dom_walker): New private member holding the const_and_copies
1150 object. Update constructor.
1151 (pass_dominator::execute): Corresponding changes to declaration
1152 and initialization of const_and_copies. Update constructor call
1153 for the dom_opt_dom_walker object.
1154 (record_temporary_equivalences): Accept const_and_copies argument
1155 pass it down to children as needed.
1156 (record_equality): Likewise.
1157 (record_equivalences_from_incoming_edge): Likewise.
1158 (cprop_into_successor_phis, optimize_stmt): Likewise.
1159 (eliminate_redundant_computations): Likewise.
1160 (dom_opt_dom_walker::thread_across_edge): Update access to
1161 const_and_copies object and pass it to children as needed.
1162 (dom_opt_dom_walker::before_dom_children): Similarly.
1163 (dom_opt_dom_walker::after_dom_children): Similarly.
1165 PR tree-optimization/47679
1166 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1167 it into the avail_exprs_stack class.
1168 (pass_dominator::execute): Corresponding changes to declaration
1169 and initialization of avail_exprs. Pass avail_exprs to
1170 dump_dominator_optimization_stats.
1171 (record_cond): Extract avail_exprs from avail_exprs_stack.
1172 (lookup_avail_expr): Similarly.
1173 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1175 (dump_dominator_optimization_stats): Make static and prototype.
1176 Add argument for the hash table to dump.
1177 (debug_dominator_optimization_stats): Remove.
1178 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1180 (debug_dominator_optimization_stats): Similarly.
1181 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1182 "void" in prototype for pop_to_marker method. Add accessor method
1183 for the underlying avail_exprs table.
1185 * tree-ssa-threadedge.c: Remove trailing whitespace.
1187 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1189 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1191 (pa_ldil_cint_p): Likewise.
1192 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1193 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1195 * config/pa/pa.md: Likewise.
1197 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1199 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1200 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1201 (diagnostic_show_locus): Likewise.
1202 (diagnostic_print_caret_line): Likewise.
1203 * diagnostic-show-locus.c: New file.
1205 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1207 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1208 "back" parameter. Declare label in #if block.
1210 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1213 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1214 the address to a register.
1216 2015-09-18 Jeff Law <law@redhat.com>
1218 PR tree-optimization/47679
1219 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1220 * tree-ssa-dom.c: Remove unnecessary header includes.
1221 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1222 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1223 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1224 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1225 (pass_phi_only_cprop::execute): Likewise.
1226 (make_pass_phi_only_cprop): Likewise.
1227 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1228 uses of file scoped statics by passing the required objects
1229 as parameters wherever needed.
1231 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1232 David Edelsohn <dje.gcc@gmail.com>
1234 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1235 EH_FRAME_THROUGH_COLLECT2.
1236 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1238 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1239 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1240 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1241 * except.c (switch_to_exception_section): Use a read-only section
1242 even if EH_FRAME_SECTION_NAME is undefined.
1243 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1244 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1245 (scan_prog_file): Don't export __dso_handle nor
1247 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1248 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1249 (ASM_OUTPUT_DWARF_PCREL): Define.
1250 (ASM_OUTPUT_DWARF_DATAREL): Define.
1251 (EH_FRAME_THROUGH_COLLECT2): Define.
1252 (EH_FRAME_IN_DATA_SECTION): Delete.
1253 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1254 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1256 (rs6000_asm_output_dwarf_datarel): Declare.
1257 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1258 (rs6000_aix_asm_output_dwarf_datarel): New.
1259 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1260 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1261 (EH_FRAME_THROUGH_COLLECT2): Define.
1262 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1263 (EH_FRAME_THROUGH_COLLECT2): Define.
1264 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1265 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1266 (EH_FRAME_THROUGH_COLLECT2): New.
1267 (ASM_OUTPUT_DWARF_DATAREL): New.
1268 * doc/tm.texi: Regenerate.
1270 2015-09-18 Richard Biener <rguenther@suse.de>
1272 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1273 we're in early phase.
1274 (schedule_generic_params_dies_gen): Likewise.
1275 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1276 work as possible, retaining unhandled cases.
1277 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1278 clear out generic_type_instances at the end.
1279 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1280 (dwarf2out_early_finish): ... here. Do most of
1281 gen_remaining_tmpl_value_param_die_attribute here.
1283 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1285 PR tree-optimization/67283
1286 * tree-sra.c (type_consists_of_records_p): Rename to...
1287 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1288 (completely_scalarize_record): Rename to...
1289 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1290 (scalarize_elem): New.
1291 (analyze_all_variable_accesses): Follow renamings.
1293 2015-09-18 Richard Biener <rguenther@suse.de>
1295 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1298 2015-09-18 Richard Biener <rguenther@suse.de>
1300 PR tree-optimization/66142
1301 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1302 treat MEM[&x] and x the same.
1303 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1304 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1305 when we simplified sth.
1306 (vn_reference_maybe_forwprop_address): Likewise.
1307 (valueize_refs_1): When we simplified through
1308 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1309 set valueized_anything to true.
1310 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1311 one ref kills the other instead of just a offset-based test.
1312 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1313 for the operand_equal_p test to compare bases and also compare
1316 2015-09-17 Christian Bruel <christian.bruel@st.com>
1318 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1320 2015-09-17 Richard Henderson <rth@redhat.com>
1323 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1324 pointers that encode the alignment of the object.
1326 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1328 PR rtl-optimization/66790
1329 * df-problems.c (LIVE): Amend documentation.
1331 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1333 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1335 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1336 * genopinit.c (main): Add an include guard to insn-opinit.h.
1337 Protect the rtx_code parts with NUM_RTX_CODE.
1338 * optabs.h: Split parts out to...
1339 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1340 * optabs.c: Split parts out to...
1341 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1342 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1343 * fold-const.c: Likewise.
1344 * target-globals.c: Likewise.
1345 * tree-if-conv.c: Likewise.
1346 * tree-ssa-forwprop.c: Likewise.
1347 * tree-ssa-loop-prefetch.c: Likewise.
1348 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1349 Remove unncessary include files.
1350 * tree-ssa-phiopt.c: Likewise.
1351 * tree-ssa-reassoc.c: Likewise.
1352 * tree-switch-conversion.c: Likewise.
1353 * tree-vect-data-refs.c: Likewise.
1354 * tree-vect-generic.c: Likewise.
1355 * tree-vect-loop.c: Likewise.
1356 * tree-vect-patterns.c: Likewise.
1357 * tree-vect-slp.c: Likewise.
1358 * tree-vect-stmts.c: Likewise.
1359 * tree-vrp.c: Likewise.
1360 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1361 rather than optabs.h.
1362 * expr.c: Include optabs-tree.h.
1363 * function.c: Likewise.
1365 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1368 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1369 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1370 * config/arm/arm.c: Include common/common-target.h.
1371 (use_return_insn): Return 0 if the static chain register was saved
1372 above a non-APCS frame.
1373 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1374 (struct scratch_reg): New.
1375 (get_scratch_register_on_entry): New function.
1376 (release_scratch_register_on_entry): Likewise.
1377 (arm_emit_probe_stack_range): Likewise.
1378 (output_probe_stack_range): Likewise.
1379 (arm_expand_prologue): Factor out code dealing with the IP register
1380 for nested function and adjust it for stack checking.
1381 Invoke arm_emit_probe_stack_range if static builtin stack checking
1383 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1385 (arm_expand_epilogue): Add the saved static chain register, if any, to
1386 the amount of pre-pushed registers to pop.
1387 (arm_frame_pointer_required): Return true if static stack checking is
1388 enabled and we want to catch the exception with the EABI unwinder.
1389 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1390 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1391 * config/arm/arm.md (probe_stack): New insn.
1392 (probe_stack_range): Likewise.
1394 2015-09-17 Richard Biener <rguenther@suse.de>
1396 * genmatch.c (parser::parse_expr): Improve error message
1397 for mis-placed flags.
1399 2015-09-17 Richard Biener <rguenther@suse.de>
1401 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1402 debug hook when we created a varpool node.
1403 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1404 dwarf2out_early_global_decl, when not just add location or
1405 value attributes to existing DIEs.
1407 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1409 * config/aarch64/aarch64.md (copysigndf3): New.
1410 (copysignsf3): Likewise.
1412 2015-09-17 David S. Miller <davem@davemloft.net>
1414 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1415 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1416 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1417 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1418 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1419 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1420 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1421 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1422 provide when flag_pic.
1424 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1426 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1427 object_allocator change.
1429 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1431 PR tree-optimization/66388
1432 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1433 (dump_iv): Dump no_overflow information.
1434 (alloc_iv): Initialize new field for struct iv.
1435 (mark_bivs): Count number of no_overflow bivs.
1436 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1438 (idx_find_step): Call new functions above.
1439 (add_candidate_1, add_candidate): New paramter.
1440 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1441 (get_computation_aff): Simplify convertion of cand for BIV.
1442 (get_computation_cost_at): Step cand's base if necessary.
1444 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1446 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1448 (tree_simplify_using_condition): Ditto.
1449 (simplify_using_initial_conditions): Ditto.
1450 (loop_exits_before_overflow): Pass new argument to function
1451 simplify_using_initial_conditions. Remove case for type conversions
1453 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1455 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1456 in iv base using loop initial conditions.
1458 2015-09-16 Jeff Law <law@redhat.com>
1460 PR tree-optimization/47679
1461 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1462 (free_all_edge_infos): Use it.
1463 (allocate_edge_info): Free preexisting edge info data.
1464 (pass_dominator::execute): Set up initial edge info structures.
1465 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1467 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1468 If non-null, then push/pop markers appropriately.
1469 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1470 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1473 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1475 * config/ft32/ft32.c: Fix the memory address space predicate.
1477 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1480 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1481 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1483 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1485 * toplev.h (check_global_declaration): Remove declaration.
1486 * toplev.c (check_global_declaration): Move to ...
1487 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1488 (analyze_functions): Update call.
1490 2015-09-16 David S. Miller <davem@davemloft.net>
1492 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1493 lowpart of a SUBREG has offset zero.
1495 2015-09-16 Jeff Law <law@redhat.com>
1497 PR tree-optimization/47679
1498 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1499 tree-ssa-scopedtables.h.
1500 (struct hashable_expr, class expr_hash_elt): Likewise.
1501 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1502 Move associated methods into tree-ssa-scopedtables.c.
1503 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1504 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1505 (add_hashable_expr): Likewise.
1506 (record_cond): Delete element directly.
1507 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1508 private copy ctor and assignment operator methods.
1509 (expr_elt_hasher): Inline trivial methods.
1510 (initialize_expr_from_cond): Prototype.
1511 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1512 methods that were previously in tree-ssa-dom.c. Improve various
1515 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1517 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1519 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1522 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1525 2015-09-16 Richard Biener <rguenther@suse.de>
1528 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1529 location of possibly shared trees.
1531 2015-09-16 Richard Biener <rguenther@suse.de>
1534 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1536 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1538 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1539 offset and size computations instead of HOST_WIDE_INT.
1541 2015-09-16 Richard Biener <rguenther@suse.de>
1544 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1545 result before builting a tree via wide_int_to_tree.
1547 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1549 * Makefile.in: Add memory-block.cc
1550 (pool_allocator::initialize): Use fixed block size.
1551 (pool_allocator::release): Use memory_block_pool.
1552 (pool_allocator::allocate): Likewise.
1553 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1555 * cfg.c (initialize_original_copy_tables): Likewise.
1556 * cselib.c (elt_list_pool, elt_loc_list_pool,
1557 cselib_val_pool): Likewise.
1558 * df-problems.c (df_chain_alloc): Likewise.
1559 * df-scan.c (df_scan_alloc): Likewise.
1560 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1561 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1562 group_info_pool, deferred_change_pool): Likewise.
1563 * et-forest.c (et_nodes, et_occurrences): Likewise.
1564 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1565 ipcp_agg_lattice_pool): Likewise.
1566 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1567 * ipa-profile.c (histogram_pool): Likewise.
1568 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1569 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1570 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1571 * ira-color.c (update_cost_record_pool): Likewise.
1572 * lra-lives.c (lra_live_range_pool): Likewise.
1573 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1574 * memory-block.cc: New file.
1575 * memory-block.h: New file.
1576 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1577 * sched-deps.c (sched_deps_init): Likewise.
1578 * sel-sched-ir.c (sched_lists_pool): Likewise.
1579 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1580 * tree-sra.c (access_pool): Likewise.
1581 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1582 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1583 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1584 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1585 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1586 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1587 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1588 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1590 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1592 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1594 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1597 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1599 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1600 to pass TLS call argument, according to current ABI.
1601 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1602 callx0 for TLS call, according to current ABI.
1604 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1606 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1607 on stack restore statements.
1608 (decide_copy_try_finally): Do not consider a stack restore statement as
1609 coming from sources.
1611 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1613 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1614 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1616 2015-09-15 Jeff Law <law@redhat.com>
1618 PR tree-optimization/47679
1619 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1620 methods and private members.
1621 (avail_exprs_stack): Similarly. Change type of global
1622 from a pair of expr_hash_elt_t to the new class.
1623 (expr_elt_hasher::hash): Corresponding changes.
1624 (expr_elt_hasher::equal): Similarly.
1625 (avail_expr_hash): Similarly.
1626 (pass_dominator::execute): Similarly.
1627 (dom_opt_dom_walker::thread_across_edge): Similarly.
1628 (record_cond): Similarly.
1629 (dom_opt_dom_walker::before_dom_children): Similarly.
1630 (dom_opt_dom_walker::after_dom_children): Similarly.
1631 (lookup_avail_expr): Likewise.
1632 (initialize_hash_element): Now a expr_hash_elt constructor.
1633 (initialize_hash_element_from_expr): Similarly.
1634 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1635 (free_expr_hash_elt): Call dtor for the element.
1636 (remove_local_expressions_from_table): Now the "pop_to_marker"
1637 method in the available_exprs_stack class.
1638 (avail_expr_stack::record_expr): Method factored out.
1639 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1641 (hashable_expr_equal_p): Fix formatting.
1643 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1645 * input.h (location_get_source_line): Drop "expanded_location"
1646 param in favor of a file and line number.
1647 * input.c (location_get_source_line): Likewise.
1648 (dump_location_info): Update for change in signature of
1649 location_get_source_line.
1650 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1652 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1654 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1655 Bump to 4KB for SJLJ exceptions.
1656 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1657 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1658 * doc/tm.texi: Regenerate.
1660 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1662 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1663 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1666 2015-09-15 Richard Biener <rguenther@suse.de>
1668 PR tree-optimization/67470
1669 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1670 structure for PHI hoisting by inserting a forwarder block
1673 2015-09-15 Christian Bruel <christian.bruel@st.com>
1675 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1676 (arm_option_print): New function.
1678 2015-09-15 Christian Bruel <christian.bruel@st.com>
1681 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1682 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1683 Remove flags parameter.
1684 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1685 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1686 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1687 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1688 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1689 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1690 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1691 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1693 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1695 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1697 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1698 AARCH64_VALID_SIMD_DREG_MODE.
1700 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1702 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1703 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1704 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1705 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1706 aarch64_ld4_lane<mode>): Combine together, making...
1707 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1708 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1709 aarch64_st4_lane<mode>): Combine together, making...
1710 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1711 * config/aarch64/iterators.md (nregs): Add comment.
1713 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1715 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1716 Change operand mode from <V_TWO_ELEM> to BLK.
1717 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1718 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1719 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1720 (aarch64_ld2_lane<mode>): Likewise.
1721 (aarch64_st2_lane<VQ:mode>): Likewise.
1722 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1724 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1726 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1727 Change operand mode from <V_FOUR_ELEM> to BLK.
1728 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1729 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1730 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1731 (aarch64_ld4_lane<mode>): Likewise.
1732 (aarch64_st4_lane<mode>): Likewise.
1733 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1735 2015-09-15 Richard Biener <rguenther@suse.de>
1738 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1739 transfer EH info from old to new stmt.
1740 (replace_call_with_value): Likewise.
1741 (replace_call_with_call_and_fold): Likewise.
1742 (gimple_fold_builtin_memory_op): Likewise.
1743 (gimple_fold_builtin_memset): Likewise.
1744 (gimple_fold_builtin_stpcpy): Likewise.
1745 (gimple_fold_call): Likewise.
1747 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1749 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1751 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1752 (aarch64_simd_intEI_type_node): Likewise.
1753 (aarch64_simd_builtin_std_type): Remove EImode case.
1754 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1755 * config/aarch64/aarch64-modes.def: Remove EImode.
1757 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1759 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1760 Change operand mode from <V_THREE_ELEM> to BLK.
1761 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1762 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1763 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1764 (aarch64_ld3_lane<mode>): Likewise.
1765 (aarch64_st3_lane<mode>): Likewise.
1766 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1768 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1770 * config/aarch64/aarch64-simd.md
1771 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1772 Change all TImode operands to BLKmode.
1773 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1774 Change all EImode operands to BLKmode.
1775 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1776 Change all OImode operands to BLKmode.
1778 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1779 and call set_mem_size.
1780 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1782 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1784 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1786 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1788 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1790 (vec_store_lanesci_lane<mode>): Rename to...
1791 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1793 (vec_store_lanesxi_lane<mode>): Rename to...
1794 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1796 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1797 aarch64_st4_lane<mode>): Follow renaming.
1799 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1801 * config/s390/s390.c (s390_const_operand_ok): Add missing
1804 2015-09-15 Richard Biener <rguenther@suse.de>
1807 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1809 * lto-streamer-out.c (clear_line_info): Likewise.
1811 2015-09-15 Richard Biener <rguenther@suse.de>
1813 * doc/match-and-simplify.texi: Fix wording.
1815 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1817 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1818 unnecessary type conversion in op1.
1820 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1822 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1823 (dup_block_and_redirect): Delete function.
1824 (can_dup_for_shrink_wrapping): New function.
1825 (fix_fake_fallthrough_edge): New function.
1826 (try_shrink_wrapping): Rewrite function.
1827 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1829 2015-09-14 Rich Felker <dalias@libc.org>
1831 * configure.ac: Change target pattern for sh TLS support
1832 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1833 * configure: Regenerate.
1835 2015-09-14 Jeff Law <law@redhat.com>
1837 PR tree-optimization/47679
1838 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1839 type rather than void *.
1841 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1844 * diagnostic.c (diagnostic_initialize): Do not set
1845 some_warnings_are_errors.
1846 (diagnostic_finish): Use DK_WERROR count instead.
1847 (diagnostic_report_diagnostic): Do not set
1848 some_warnings_are_errors.
1849 * diagnostic.h (struct diagnostic_context): Remove
1850 some_warnings_are_errors.
1852 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1854 * config/sparc/predicates.md (const_all_ones_operand): Use
1855 CONSTM1_RTX to simplify definition.
1857 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1860 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1863 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1865 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1866 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1867 OPT_fshow_column to handled saved option cases.
1868 (append_compiler_options): Do not skip the above added options.
1870 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1873 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1874 nopcrelative_literal_loads.
1875 (aarch64_classify_address): Likewise.
1876 (aarch64_constant_pool_reload_icode): Define.
1877 (aarch64_secondary_reload): Handle secondary reloads for
1879 (aarch64_override_options): Handle nopcrelative_literal_loads.
1880 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1881 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1883 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1884 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1885 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1887 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1889 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1892 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1893 sync_compare_and_swap_optab libcall to target_oval.
1895 2015-09-14 Marek Polacek <polacek@redhat.com>
1897 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1899 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1901 2015-09-11 Mark Wielaard <mjw@redhat.com>
1904 * toplev.c (check_global_declaration): Check and use
1905 warn_unused_const_variable.
1906 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1907 (-Wunused-variable): Remove non-constant. For C implies
1908 -Wunused-const-variable.
1909 (-Wunused-const-variable): New.
1911 2015-09-14 Richard Biener <rguenther@suse.de>
1913 * doc/match-and-simplify.texi: Update for changed syntax
1914 of inner ifs and the new switch expression.
1916 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1918 * config/i386/haswell.md: New file describing Haswell pipeline.
1919 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1920 haswell-like processors.
1921 (ix86_reassociation_width): Increase reassociation width for 64-bit
1922 Haswell processor family.
1923 * config/i386/i386.md: Introduce haswell cpu and include new md file.
1925 2015-09-14 Richard Biener <rguenther@suse.de>
1927 * doc/match-and-simplify.texi: Fixup some formatting issues
1928 and document the 's' flag.
1930 2015-09-13 Olivier Hainque <hainque@adacore.com>
1931 Eric Botcazou <ebotcazou@adacore.com>
1933 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
1934 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
1935 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
1936 (TARGET_CPU_gr5): Likewise.
1937 (TARGET_CPU_gr6): Likewise.
1938 (MULTILIB_DEFAULTS): Likewise.
1939 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
1940 for mcpu=gr5 and mcpu=gr6.
1941 (MULTILIB_DIRNAMES): Adjust accordingly.
1943 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1945 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
1946 (mem_ref_p): Likewise.
1947 (outermost_indep_loop): Adjust.
1948 (mem_ref_in_stmt): Likewise.
1949 (determine_max_movement): Likewise.
1950 (mem_ref_alloc): Likewise.
1951 (record_mem_ref_loc): Likewise.
1952 (set_ref_stored_in_loop): Likewise.
1953 (mark_ref_stored): Likewise.
1954 (gather_mem_refs_stmt): Likewise.
1955 (mem_refs_may_alias_p): Likewise.
1956 (for_all_locs_in_loop): Likewise.
1957 (struct rewrite_mem_ref_loc): Likewise.
1958 (rewrite_mem_refs): Likewise.
1959 (struct first_mem_ref_loc_1): Likewise.
1960 (first_mem_ref_loc): Likewise.
1961 (struct sm_set_flag_if_changed): Likewise.
1962 (execute_sm_if_changed_flag_set): Likewise.
1963 (execute_sm): Likewise.
1964 (hoist_memory_references):
1965 (struct ref_always_accessed): Likewise.
1966 (ref_always_accessed_p): Likewise.
1967 (refs_independent_p): Likewise.
1968 (record_dep_loop): Likewise.
1969 (ref_indep_loop_p_1): Likewise.
1970 (ref_indep_loop_p_2): Likewise.
1971 (ref_indep_loop_p): Likewise.
1972 (can_sm_ref_p): Likewise.
1973 (find_refs_for_sm): Likewise.
1974 (tree_ssa_lim_finalize): Likewise.
1976 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1978 * dwarf2out.c (dw_attr_ref): Remove typedef.
1979 (dw_line_info_ref): Likewise.
1980 (pubname_ref): Likewise.
1981 (dw_ranges_ref): Likewise.
1982 (dw_ranges_by_label_ref): Likewise.
1983 (comdat_type_node_ref): Likewise.
1985 (get_AT_low_pc): Likewise.
1986 (get_AT_hi_pc): Likewise.
1987 (get_AT_string): Likewise.
1988 (get_AT_flag): Likewise.
1989 (get_AT_unsigned): Likewise.
1990 (get_AT_ref): Likewise.
1991 (get_AT_file): Likewise.
1992 (remove_AT): Likewise.
1993 (print_die): Likewise.
1994 (check_die): Likewise.
1995 (die_checksum): Likewise.
1996 (attr_checksum_ordered): Likewise.
1997 (struct checksum_attributes): Likewise.
1998 (collect_checksum_attributes): Likewise.
1999 (die_checksum_ordered): Likewise.
2000 (same_die_p): Likewise.
2001 (is_declaration_die): Likewise.
2002 (clone_die): Likewise.
2003 (clone_as_declaration): Likewise.
2004 (copy_declaration_context): Likewise.
2005 (break_out_comdat_types): Likewise.
2006 (copy_decls_walk): Likewise.
2007 (output_location_lists): Likewise.
2008 (external_ref_hasher::hash): Likewise.
2009 (optimize_external_refs_1): Likewise.
2010 (build_abbrev_table): Likewise.
2011 (size_of_die): Likewise.
2012 (unmark_all_dies): Likewise.
2013 (size_of_pubnames): Likewise.
2014 (output_die_abbrevs): Likewise.
2015 (output_die): Likewise.
2016 (output_pubnames): Likewise.
2017 (add_ranges_num): Likewise.
2018 (add_ranges_by_labels): Likewise.
2019 (add_high_low_attributes): Likewise.
2020 (gen_producer_string): Likewise.
2021 (dwarf2out_set_name): Likewise.
2022 (new_line_info_table): Likewise.
2023 (prune_unused_types_walk_attribs): Likewise.
2024 (prune_unused_types_update_strings): Likewise.
2025 (prune_unused_types): Likewise.
2026 (resolve_addr): Likewise.
2027 (optimize_location_lists_1): Likewise.
2028 (index_location_lists): Likewise.
2029 (dwarf2out_finish): Likewise.
2031 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2033 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2035 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2037 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2038 (dump_asserts_for): Adjust.
2039 (register_new_assert_for): Likewise.
2040 (process_assert_insertions): Likewise.
2041 (insert_range_assertions): Likewise.
2043 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2045 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2047 (new_temp_expr_table): Adjust.
2048 (free_temp_expr_table): Likewise.
2049 (version_to_be_replaced_p): Likewise.
2050 (make_dependent_on_partition): Likewise.
2051 (add_to_partition_kill_list): Likewise.
2052 (remove_from_partition_kill_list): Likewise.
2053 (add_dependence): Likewise.
2054 (finished_with_expr): Likewise.
2055 (process_replaceable): Likewise.
2056 (kill_expr): Likewise.
2057 (kill_virtual_exprs): Likewise.
2058 (mark_replaceable): Likewise.
2059 (find_replaceable_in_bb): Likewise.
2060 (find_replaceable_exprs): Likewise.
2061 (debug_ter): Likewise.
2063 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2065 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2066 (struct btr_user): Rename from btr_user_s.
2067 (struct btr_def): Rename from btr_def_s.
2068 (find_btr_def_group): Adjust.
2069 (add_btr_def): Likewise.
2070 (new_btr_user): Likewise.
2071 (note_other_use_this_block): Likewise.
2072 (compute_defs_uses_and_gen): Likewise.
2073 (link_btr_uses): Likewise.
2074 (build_btr_def_use_webs): Likewise.
2075 (block_at_edge_of_live_range_p): Likewise.
2076 (btr_def_live_range): Likewise.
2077 (combine_btr_defs): Likewise.
2078 (move_btr_def): Likewise.
2079 (migrate_btr_def): Likewise.
2080 (migrate_btr_defs): Likewise.
2082 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2084 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2085 (shared_hash): Remove typedef.
2086 (struct dataflow_set): Adjust.
2087 (shared_hash_unshare): Likewise.
2088 (dataflow_set_merge): Likewise.
2089 (vt_initialize): Likewise.
2090 (vt_finalize): Likewise.
2092 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2094 * var-tracking.c (struct location_chain): Rename from
2096 (struct variable_part): Adjust.
2097 (variable_htab_free): Likewise.
2098 (unshare_variable): Likewise.
2099 (get_init_value): Likewise.
2100 (get_addr_from_local_cache): Likewise.
2101 (drop_overlapping_mem_locs): Likewise.
2102 (val_reset): Likewise.
2103 (struct variable_union_info): Likewise.
2104 (variable_union): Likewise.
2105 (find_loc_in_1pdv): Likewise.
2106 (insert_into_intersection): Likewise.
2107 (intersect_loc_chains): Likewise.
2108 (canonicalize_loc_order_check): Likewise.
2109 (canonicalize_values_mark): Likewise.
2110 (canonicalize_values_star): Likewise.
2111 (canonicalize_vars_star): Likewise.
2112 (variable_merge_over_cur): Likewise.
2113 (remove_duplicate_values): Likewise.
2114 (variable_post_merge_new_vals): Likewise.
2115 (variable_post_merge_perm_vals): Likewise.
2116 (find_mem_expr_in_1pdv): Likewise.
2117 (dataflow_set_preserve_mem_locs): Likewise.
2118 (dataflow_set_remove_mem_locs): Likewise.
2119 (variable_part_different_p): Likewise.
2120 (onepart_variable_different_p): Likewise.
2121 (find_src_set_src): Likewise.
2122 (dump_var): Likewise.
2123 (set_slot_part): Likewise.
2124 (clobber_slot_part): Likewise.
2125 (delete_slot_part): Likewise.
2126 (vt_expand_var_loc_chain): Likewise.
2127 (emit_note_insn_var_location): Likewise.
2128 (vt_finalize): Likewise.
2130 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2132 * dse.c (store_info_t): Remove typedef.
2133 (group_info_t): Likewise.
2134 (const_group_info_t): Likewise.
2135 (deferred_change_t): Likewise.
2136 (get_group_info): Adjust.
2137 (free_store_info): Likewise.
2138 (canon_address): Likewise.
2139 (clear_rhs_from_active_local_stores): Likewise.
2140 (record_store): Likewise.
2141 (replace_read): Likewise.
2142 (check_mem_read_rtx): Likewise.
2143 (scan_insn): Likewise.
2144 (remove_useless_values): Likewise.
2145 (dse_step1): Likewise.
2146 (dse_step2_init): Likewise.
2147 (dse_step2_nospill): Likewise.
2148 (scan_stores_nospill): Likewise.
2149 (scan_reads_nospill): Likewise.
2150 (dse_step3_exit_block_scan): Likewise.
2151 (dse_step3): Likewise.
2152 (dse_step5_nospill): Likewise.
2153 (dse_step6): Likewise.
2155 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2157 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2158 (alias_set_entry): Remove typedef.
2159 (alias_set_subset_of): Adjust.
2160 (alias_sets_conflict_p): Likewise.
2161 (init_alias_set_entry): Likewise.
2162 (get_alias_set): Likewise.
2163 (new_alias_set): Likewise.
2164 (record_alias_subset): Likewise.
2166 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2168 * doc/install.texi (Downloading the source): Mark up
2169 contrib/download_prerequisites properly and drop leading "./".
2171 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2173 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2174 * config/lm32/lm32.h: Likewise.
2175 * config/mep/mep.h: Likewise.
2176 * config/visium/visium.h: Likewise.
2177 * system.h: Poison STRUCT_VALUE macro.
2179 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2181 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2182 CONSTANT_P operands.
2184 2015-09-11 David S. Miller <davem@davemloft.net>
2186 * config/sparc/constraints.md: Make "U" constraint a real register
2188 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2189 (D_MODES, DF_MODES): Add missing cast.
2190 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2191 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2192 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2194 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2195 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2196 provide these insn when flag_pic.
2198 2015-09-11 Jeff Law <law@redhat.com>
2200 PR tree-optimization/47679
2201 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2202 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2203 member with m_. Update inline member functions as necessary. Add
2205 * tree-ssa-scopedtables.c: Update const_and_copies's member
2206 functions to use m_ prefix to access the stack.
2208 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2210 * graphite-optimize-isl.c (disable_tiling): Remove.
2211 (get_schedule_for_band): Do not use disable_tiling.
2212 (get_prevector_map): Delete function.
2213 (enable_polly_vector): Remove.
2214 (get_schedule_for_band_list): Remove dead code.
2216 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2218 * graphite-optimize-isl.c (get_tile_map): Refactor.
2219 (get_schedule_for_band): Same.
2220 (getScheduleForBand): Same.
2221 (get_prevector_map): Same.
2222 (get_schedule_for_band_list): Same.
2223 (get_schedule_map): Same.
2224 (get_single_map): Same.
2225 (apply_schedule_map_to_scop): Same.
2226 (optimize_isl): Same.
2228 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2231 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2233 * config/aarch64/iterators.md (GPF_TF_F16): New.
2236 2015-09-10 Nathan Sidwell <nathan@acm.org>
2238 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2239 (nvptx_reorg): Adjust comments.
2241 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2244 * configure.ac: Check if setenv and unsetenv are declared.
2245 * configure: Rebuild.
2246 * config.in: Rebuild.
2247 * system.h: Declare setenv and unsetenv if not declared.
2249 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2251 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2252 commentary to simplify permute mask adjustment equation.
2253 (special_handling_values): Add SH_VPERM.
2254 (const_load_sequence_p): New function.
2255 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2256 the mask loaded from the constant pool.
2257 (adjust_vperm): New function.
2258 (handle_special_swappables): Call adjust_vperm.
2259 (dump_swap_insn_table): Handle SH_VPERM.
2261 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2263 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2264 * shrink-wrap.h (requires_stack_frame_p): Put back.
2266 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2268 * reload1.c (elimination_costs_in_insn): Locally turn
2269 -Wmaybe-uninitialized into a warning.
2271 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2273 * shrink-wrap.c (requires_stack_frame_p): Make static.
2274 (prepare_shrink_wrap): Likewise.
2275 (dup_block_and_redirect): Likewise.
2276 * shrink-wrap.h: Remove declarations of those functions.
2278 2015-09-10 Mark Wielaard <mjw@redhat.com>
2280 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2282 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2285 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2286 missing simplify_gen_subreg.
2288 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2290 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2291 the vector element is bigger than 64 bit.
2293 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2295 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2296 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2298 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2300 * config/s390/s390.c: Add V1TImode to constant pool modes.
2302 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2305 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2306 predicate. Set predicable_short_it attr to "no".
2308 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2310 PR rtl-optimization/67421
2311 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2312 left wide shift tranformation.
2314 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2316 * common/config/arc/arc-common.c: Remove references to A5.
2317 * config/arc/arc-opts.h: Likewise.
2318 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2319 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2320 * config/arc/t-arc-newlib: Likewise.
2322 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2324 * config/arc/arc.md (length): Fix attribute length for conditional
2325 executed instructions with long immediate.
2327 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2329 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2330 type for second alternative.
2332 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2334 * doc/invoke.texi (Downloading GCC): Mention
2335 contrib/download_prerequisites script.
2337 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2340 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2341 for combined loop, assert seen_error () and return GS_ERROR.
2344 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2345 if decl is already in outer->variables.
2348 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2349 asserting that decl is not specified in octx->variables,
2350 break out of the loop if it is.
2353 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2354 iterator is not explicitly determined, but is defined inside
2355 of the combined workshare region, handle it like if it has
2356 DECL_EXPR in OMP_FOR_PRE_BODY.
2358 2015-09-09 Nathan Sidwell <nathan@acm.org>
2360 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2361 (*cmp<mode>): Add assembler spacing.
2362 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2363 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2365 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2366 (nvptx_expand_call): Likewise.
2367 (nvptx_output_call_insn): Likewise.
2368 (nvptx_reorg_subreg): Add spacing.
2370 2015-09-09 Marek Polacek <polacek@redhat.com>
2373 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2376 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2379 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2381 2015-09-09 Tom de Vries <tom@codesourcery.com>
2383 * params-list.h: Add missing copyright notice.
2385 2015-09-09 Nathan Sidwell <nathan@acm.org>
2387 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2388 sel_truesi, not andsi.
2390 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2392 * config/arm/arm.md (*subsi3_compare0): Rename to...
2393 (subsi3_compare0): ... This.
2394 (modsi3): New define_expand.
2395 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2396 when operand is power of 2.
2398 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2400 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2401 (*neg<mode>2_compare0): Rename to...
2402 (neg<mode>2_compare0): ... This.
2403 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2404 Move check for speed inside the if-then-elses. Reflect
2405 CSNEG sequence in MOD by power of 2 case.
2407 2015-09-09 Alan Modra <amodra@gmail.com>
2410 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2411 reload replacement for PRE_MODIFY address reg.
2413 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2415 PR tree-optimization/53852
2416 * config.in: Regenerate.
2417 * configure: Regenerate.
2418 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2419 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2420 PARAM_MAX_ISL_OPERATIONS is reached.
2421 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2422 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2423 result equal to isl_stat_ok as the status now can be isl_error_quota.
2424 (subtract_commutative_associative_deps): Same.
2425 (compute_deps): Same.
2427 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2428 Sebastian Pop <s.pop@samsung.com>
2430 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2431 Return the parameter if it was saved in corresponding
2432 parameter_rename_map of the region.
2433 (copy_def): Copy def from sese region to the newly created region.
2434 (copy_internal_parameters): Copy all the internal parameters defined
2435 within a region to the newly created region.
2436 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2437 translating isl to gimple.
2438 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2439 the loop-nest does not have any data-references.
2440 (build_graphite_scops): Create a scop only when there is at least one
2442 (contains_only_close_phi_nodes): Deleted.
2443 (print_graphite_scop_statistics): Deleted
2444 (print_graphite_statistics): Deleted
2445 (limit_scops): Deleted.
2446 (build_scops): Removed call to limit_scops.
2447 * sese.c (new_sese): Construct.
2448 (free_sese): Destruct.
2449 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2451 (set_rename): Pass sese region so that parameters inside the region can
2452 be added to its parameter_rename_map.
2453 (rename_uses): Pass sese region.
2454 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2455 generated in the header of the scop. For each SSA_NAME in the
2456 parameter_rename_map rename its usage.
2457 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2459 (scalar_evolution_in_region): If the tree t is invariant just return t.
2460 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2461 struct sese to keep track of all the parameters which need renaming.
2462 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2464 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2466 2015-09-08 Tom de Vries <tom@codesourcery.com>
2468 * Makefile.in (generated_files): Add params.list.
2469 (params.list, s-params.list): Add rule.
2470 * params.h (enum compiler_param): Include params-list.h. Move define
2471 DEFPARAM, include params.def and undef DEFPARAM ...
2472 * params-list.h: ... here. New file.
2474 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2476 * pretty-print.h (printer_fn): Fix typo in comment.
2478 2015-09-07 Jeff Law <law@redhat.com>
2480 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2482 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2484 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2485 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2486 (arm_neon_fp16_hw): New.
2488 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2490 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2491 UNITS_PER_WORD >= 4.
2493 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2495 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2496 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2497 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2498 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2499 (aarch64_float_extend_lo_v2df): Rename to...
2500 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2502 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2503 (float_extend_lo): Add v4sf.
2505 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2506 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2507 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2508 (Vwide): New mode_attr.
2510 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2512 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2513 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2514 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2515 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2516 V4HF and V8HF variants to iterator.
2518 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2520 * config/aarch64/iterators.md (VDQF_F16): New.
2521 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2523 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2525 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2526 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2527 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2528 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2529 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2530 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2531 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2532 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2533 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2534 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2535 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2536 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2537 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2538 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2539 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2540 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2541 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2542 vld1q_dup_f16): New.
2544 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2546 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2547 Reparameterize to...
2548 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2549 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2550 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2552 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2554 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2556 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2558 * config/aarch64/iterators.md (VDF, Vdtype): New.
2559 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2561 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2563 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2564 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2565 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2566 Add __builtin_aarch64_simd_hf.
2567 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2568 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2569 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2570 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2571 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2572 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2573 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2574 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2575 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2577 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2578 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2579 (VDC, Vdbl): Add V4HF.
2581 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2583 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2584 V4HFmode and V8HFmode.
2585 (aarch64_split_simd_move): Add case for V8HFmode.
2586 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2587 (aarch64_simd_builtin_std_type): Handle HFmode.
2588 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2590 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2591 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2592 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2594 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2597 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2598 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2600 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2601 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2602 vst1q_lane_f16): New.
2603 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2604 (VALLDI_F16, VALL_F16): New.
2605 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2606 Add cases for V4HF and V8HF.
2607 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2609 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2611 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2612 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2613 vld4_dup): Add v4hf variant.
2614 (vget_high, vget_low): Add v8hf variant.
2615 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2616 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2617 v4hf and v8hf variants.
2619 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2621 (V_DOUBLE): Add case for V4HF.
2623 (V_HALF): Add case for V8HF.
2624 (VDQX): Add V4HF, V8HF.
2625 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2626 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2628 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2629 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2630 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2631 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2632 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2633 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2634 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2635 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2636 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2638 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2639 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2640 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2641 Change VDX to VD_RE.
2643 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2644 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2645 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2647 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2648 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2649 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2650 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2651 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2652 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2653 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2654 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2655 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2657 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2659 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2660 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2661 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2662 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2663 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2664 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2665 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2666 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2667 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2668 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2671 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2673 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2675 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2677 * config/arm/arm-builtins.c (v8hf_UP): New.
2678 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2680 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2682 * config/arm/arm_neon.h (float16x8_t): New typedef.
2684 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2686 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2687 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2688 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2689 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2690 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2691 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2692 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2693 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2694 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2695 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2697 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2699 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2700 non-alphanumeric characters in the symbol name.
2702 2015-09-07 Marek Polacek <polacek@redhat.com>
2705 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2708 2015-09-07 Marek Polacek <polacek@redhat.com>
2710 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2712 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2714 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2717 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2720 * tree-ssa-live.c: Include cfgloop.h.
2721 (remove_unused_locals): Clear loop->simduid if simduid is about
2722 to be removed from cfun->local_decls.
2724 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2727 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2730 2015-09-04 Tom de Vries <tom@codesourcery.com>
2732 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2734 2015-09-04 Jeff Law <law@redhat.com>
2736 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2737 unnecessary constructor. It's now trivial and implemented inside...
2738 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2739 constructor. Add comments to various methods. Remove unused
2741 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2742 * tree-vrp.c (identify_jump_threads): Likewise.
2743 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2745 (thread_across_edge): Similarly.
2746 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2747 arguments in constructor call.
2749 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2751 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2752 temp path contains a '-'.
2754 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2755 Petr Murzin <petr.murzin@intel.com>
2756 Kirill Yukhin <kirill.yukhin@intel.com>
2758 * config/i386/i386-builtin-types.def
2759 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2760 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2761 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2762 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2763 * config/i386/i386.c
2764 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2765 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2766 IX86_BUILTIN_SCATTERALTDIV16SI.
2767 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2768 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2769 __builtin_ia32_scatteraltdiv8si.
2770 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2771 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2772 IX86_BUILTIN_SCATTERALTDIV16SI.
2773 (ix86_vectorize_builtin_scatter): New.
2774 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2775 ix86_vectorize_builtin_scatter.
2777 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2778 Petr Murzin <petr.murzin@intel.com>
2779 Kirill Yukhin <kirill.yukhin@intel.com>
2781 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2782 * doc/tm.texi: Regenerate.
2783 * target.def: Add scatter builtin.
2784 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2785 for loads/stores in case of gather/scatter accordingly.
2786 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2787 STMT_VINFO_GATHER_P(S).
2788 (vect_check_gather): Rename to ...
2789 (vect_check_gather_scatter): this.
2790 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2791 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2792 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2793 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2794 variable and new checkings for it accordingly.
2796 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2797 STMT_VINFO_GATHER_P(S).
2798 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2799 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2801 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2803 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2805 (mulv16qi3): New define_expand.
2807 2015-09-03 Martin Sebor <msebor@redhat.com>
2810 * doc/extend.texi (Other Builtins): Document when the address
2811 of a built-in function can be taken.
2813 2015-09-03 Richard Biener <rguenther@suse.de>
2815 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2816 (dwarf2out_early_finish): ... here.
2817 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2818 flush_limbo_die_list. Assert we have no deferred asm names.
2820 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2822 * optabs.c (expand_binop): Don't create a broadcast vector with a
2823 source element wider than the inner mode.
2825 2015-09-03 Richard Biener <rguenther@suse.de>
2827 * varasm.c (output_constant): Use fold_convert instead of
2830 2015-09-03 Tom de Vries <tom@codesourcery.com>
2832 PR tree-optimization/65637
2833 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2834 fin_bb has 2 predecessors.
2836 2015-09-03 Tom de Vries <tom@codesourcery.com>
2838 PR tree-optimization/65637
2839 * omp-low.c (find_phi_with_arg_on_edge): New function.
2840 (expand_omp_for_static_chunk): Fix inner loop phi.
2842 2015-09-03 Tom de Vries <tom@codesourcery.com>
2844 PR tree-optimization/65637
2845 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2848 2015-09-03 Tom de Vries <tom@codesourcery.com>
2850 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2852 2015-09-03 Tom de Vries <tom@codesourcery.com>
2854 * doc/invoke.texi (parloops-chunk-size): Add item.
2855 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2856 * tree-parloops.c: Include params.h.
2857 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2858 param parloops-chunk-size is used.
2860 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2863 * fold-const.c (fold_binary_loc) : Move
2864 Transform (x >> c) << c into x & (-1<<c) or
2865 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2866 types using simplify and match.
2867 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2868 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2870 2015-09-03 Richard Biener <rguenther@suse.de>
2873 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2874 (create_variable_info_for_1): Use ctor_for_analysis instead
2876 (create_variable_info_for): Likewise.
2878 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2881 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2882 in new callgraph edge.
2884 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2889 * config/aarch64/aarch64-simd.md
2890 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2891 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2892 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2893 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2895 2015-09-02 Alan Modra <amodra@gmail.com>
2897 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2898 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2899 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2901 2015-09-02 Alan Modra <amodra@gmail.com>
2904 * config/rs6000/predicates.md (current_file_function_operand): Don't
2905 return true for weak symbols.
2906 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2908 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2909 Andrew Bennett <andrew.bennett@imgtec.com>
2911 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2912 * config/mips/mips-protos.h: Add definitions for
2913 mips_output_jump and mips_output_equal_conditional_branch
2914 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2916 (mips_emit_compare): Add support for the MIPS R6 conditional
2918 (mips_process_sync_loop): Likewise.
2919 (mips_output_order_conditional_branch): Likewise.
2920 (mips16_build_call_stub): Change MIPS_CALL to
2922 (mips_print_operand_punctuation): Update 's' case to only
2923 apply to micromips r2.
2924 (mips_adjust_insn_length): Add support for forbidden slot
2926 (mips_avoid_hazard): Likewise.
2927 (mips_reorg_process_insns): Likewise.
2928 (mips_output_jump): New function.
2929 (mips_output_equal_conditional_branch): Likewise.
2930 (mips_output_conditional_branch): Use jrc/bc if compact
2931 branch support is enabled. Ensure the forbidden slots
2932 between the two branch instructions is filled with a nop.
2933 (mips_option_override): Add support to process the compact
2934 branch option and set the correct defaults. Prevent
2935 non-explict relocs being using for MIPS R6.
2936 (mips_trampoline_init): Add compact branch support.
2937 (mips_mult_zero_zero_cost): Allow zero initialisation of
2938 accumulators with TARGET_DSP.
2939 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
2940 (TARGET_CB_MAYBE): New define.
2941 (TARGET_CB_ALWAYS): New define.
2942 (ISA_HAS_DELAY_SLOTS): New define.
2943 (ISA_HAS_COMPACT_BRANCHES): New define.
2944 (ISA_HAS_JRC): New define.
2945 (MIPS_BRANCH_C): New define.
2946 (MIPS_CALL): Removed.
2947 (MICROMIPS_J): Removed.
2948 * config/mips/mips.md (compact_form): New attr.
2949 (hazard): Add support for forbidden slots.
2950 (define_delay): Add support for compact branches.
2951 (*branch_order<mode>): Likewise.
2952 (*branch_order<mode>_inverted): Likewise.
2953 (*branch_equality<mode>): Likewise.
2954 (*branch_equality<mode>_inverted): Likewise.
2955 (*jump_absolute): Likewise.
2956 (*jump_pic): Likewise.
2957 (indirect_jump): Use mips_output_jump to produce assembly output.
2958 (tablejump_<mode>"): Likewise.
2959 (*<optab>"): Likewise.
2960 (<optab>_internal): Likewise.
2961 (sibcall_internal): Likewise.
2962 (sibcall_value_internal): Likewise.
2963 (sibcall_value_multiple_internal): Likewise.
2964 (call_internal): Likewise.
2965 (call_split): Likewise.
2966 (call_internal_direct): Likewise.
2967 (call_direct_split): Likewise.
2968 (call_value_internal): Likewise.
2969 (call_value_split): Likewise.
2970 (call_value_internal_direct): Likewise.
2971 (call_value_direct_split): Likewise.
2972 (call_value_multiple_internal): Likewise.
2973 (call_value_multiple_split): Likewise.
2974 (mips_get_fcsr_mips16_<mode>): Likewise.
2975 (mips_set_fcsr_mips16_<mode>): Likewise.
2976 (tls_get_tp_mips16_<mode>): Likewise.
2977 * config/mips/mips.opt: Add -mcompact-branches option.
2978 * config/mips/predicates.md (order_operator): Ensure the
2979 conditional compact branches are only used if the ISA them.
2980 * doc/invoke.texi: Document -mcompact-branches option.
2982 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
2985 * lra-lives.c (process_bb_lives): Process move pseudos with the
2986 same value for copies and preferences
2987 * lra-constraints.c (match_reload): Create match reload pseudo
2988 with the same value from single dying input pseudo.
2990 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2993 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2995 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
2997 * trans-mem.c: Add contributed-by.
2998 * trans-mem.h: Same.
3000 2015-09-01 Richard Biener <rguenther@suse.de>
3002 * expr.c (expand_expr_real_1): For expanding TERed defs
3003 set the current location to that of the def if not UNKNOWN.
3005 2015-09-01 David Sherwood <david.sherwood@arm.com>
3007 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3009 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3011 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3012 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3013 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3015 (noce_simple_bbs): New function.
3016 (noce_try_move): Bail if basic blocks are not simple.
3017 (noce_try_store_flag): Likewise.
3018 (noce_try_store_flag_constants): Likewise.
3019 (noce_try_addcc): Likewise.
3020 (noce_try_store_flag_mask): Likewise.
3021 (noce_try_cmove): Likewise.
3022 (noce_try_minmax): Likewise.
3023 (noce_try_abs): Likewise.
3024 (noce_try_sign_mask): Likewise.
3025 (noce_try_bitop): Likewise.
3026 (bbs_ok_for_cmove_arith): New function.
3027 (noce_emit_all_but_last): Likewise.
3028 (noce_emit_insn): Likewise.
3029 (noce_emit_bb): Likewise.
3030 (noce_try_cmove_arith): Handle non-simple basic blocks.
3031 (insn_valid_noce_process_p): New function.
3032 (contains_mem_rtx_p): Likewise.
3033 (bb_valid_for_noce_process_p): Likewise.
3034 (noce_process_if_block): Allow non-simple basic blocks
3037 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3039 * tree-ssa-dom.c (record_equivalences_from_phis,
3040 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3041 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3043 2015-09-01 Nick Clifton <nickc@redhat.com>
3045 * config/msp430/msp430.opt (mcpu): Fix typo.
3047 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3049 * config/aarch64/aarch64.c (aarch64_set_current_function):
3050 Re-layout any vector parameters have non-simd layout.
3051 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3053 (aarch64_simd_expand_args): Delete call to the above.
3055 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3057 * doc/invoke.texi (asan-stack): Add space before option.
3059 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3061 * tree.h (zerop): New function.
3062 * tree.c (zerop): Likewise.
3063 (element_precision): Handle expressions.
3064 * match.pd (define_predicates): Add zerop.
3065 (x <= +Inf): Fix comment.
3066 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3067 * fold-const.c (fold_binary_loc): ... here. Remove.
3069 2015-08-31 Richard Biener <rguenther@suse.de>
3072 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3074 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3076 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3077 (CEXPI): New operator list.
3078 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3079 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3081 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3083 2015-08-31 Tom de Vries <tom@codesourcery.com>
3085 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3086 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3088 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3089 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3090 (rewrite_into_loop_closed_ssa): ... here.
3091 (replace_uses_in_dominated_bbs): Remove function.
3092 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3093 rewrite_into_loop_closed_ssa_1.
3095 2015-08-31 Michael Matz <matz@suse.de>
3097 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3098 enter entry and exit blocks for reverse post order.
3100 2015-08-31 Richard Biener <rguenther@suse.de>
3102 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3103 (lto_location_cache::current_sysp): Likewise.
3104 (output_block::current_sysp): Likewise.
3105 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3106 (lto_location_cache::apply_location_cache): Properly record
3107 system header locations.
3108 (lto_location_cache::input_location): Input whether a file
3110 * lto-streamer-out.c (lto_output_location): Stream whether a file
3113 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3116 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3118 2015-08-31 Tom de Vries <tom@codesourcery.com>
3120 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3121 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3122 Improve function header comments.
3124 2015-08-30 Michael Collison <michael.collison@linaro.org>
3127 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3130 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3132 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3133 special_handling bitfield.
3134 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3135 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3136 that represents a general xxpermdi.
3137 (insn_is_swappable_p): Add handling for vec_concat of two
3138 doublewords, which maps to a specific xxpermdi.
3139 (adjust_xxpermdi): New function.
3140 (adjust_concat): Likewise.
3141 (handle_special_swappables): Call adjust_xxpermdi and
3143 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3145 2015-08-30 Rich Felker <dalias@libc.org>
3147 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3148 case instead of sh[123456ble]-*-*.
3150 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3152 * ira.c (print_unform_and_important_classes,
3153 print_translated_classes): Remove reg_class_names static array.
3154 (print_unform_and_important_classes): Rename to ...
3155 (print_uniform_and_important_classes): ... this.
3156 (ira_debug_allocno_classes): Update accordingly.
3158 2015-08-29 Tom de Vries <tom@codesourcery.com>
3160 PR tree-optimization/46193
3161 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3164 2015-08-28 Jeff Law <law@redhat.com>
3167 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3168 unable to find X NE 0 in the tables, return X as the simplified
3170 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3171 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3173 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3174 after removing the control flow statement and unnecessary edges.
3176 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3179 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3181 PR tree-optimization/67283
3182 * tree-sra.c (type_consists_of_records_p): Rename to...
3183 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3185 (completely_scalarize_record): Rename to...
3186 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3188 (scalarize_elem): New.
3190 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3192 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3193 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3194 (aarch64_symbol_type): Likewise.
3195 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3197 (aarch64_expand_mov_immediate): Likewise.
3198 (aarch64_print_operand): Likewise.
3199 (aarch64_classify_tls_symbol): Likewise.
3201 2015-08-28 Richard Biener <rguenther@suse.de>
3203 * cgraphunit.c (symbol_table::compile): Move early debug generation
3205 (symbol_table::finalize_compilation_unit): ... back here and
3206 add a !seen_error () guard.
3208 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3210 * toplev.c (process_options): Do not use flag_loop_block,
3211 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3212 flag_loop_optimize_isl.
3214 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3216 * Makefile.in (OBJS): Remove graphite-blocking.o and
3217 graphite-interchange.o.
3218 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3219 Alias of floop-nest-optimize.
3220 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3221 Document as alias of -floop-nest-optimize.
3222 * graphite-blocking.c: Remove.
3223 * graphite-interchange.c: Remove.
3224 * graphite-optimize-isl.c: Include dumpfile.h.
3225 (getScheduleForBand): Add dump for tiled loops. Use
3226 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3227 * graphite-poly.c (scop_max_loop_depth): Remove.
3228 (print_scattering_function_1): Remove.
3229 (print_scattering_function): Remove.
3230 (print_scattering_functions): Remove.
3231 (debug_scattering_function): Remove.
3232 (debug_scattering_functions): Remove.
3233 (apply_poly_transforms): Remove use of flag_loop_block,
3234 flag_loop_strip_mine, and flag_loop_interchange.
3235 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3237 (print_pdr_access_layout): Remove.
3238 (print_pdr): Print ISL representation.
3239 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3240 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3242 (openscop_print_pbb_domain): Remove.
3243 (print_pbb): Remove call to print_scattering_function.
3244 (openscop_print_scop_context): Remove.
3245 (print_scop_context): Do not print matrices anymore.
3246 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3247 SCOP_TRANSFORMED_SCHEDULE.
3248 (print_isl_set): Add printing of a new line.
3249 (print_isl_map): Same.
3250 (print_isl_aff): Same.
3251 (print_isl_constraint): Same.
3252 (loop_to_lst): Remove.
3253 (scop_to_lst): Remove.
3254 (lst_indent_to): Remove.
3255 (print_lst): Remove.
3256 (debug_lst): Remove.
3257 (dot_lst_1): Remove.
3259 (reverse_loop_at_level): Remove.
3260 (reverse_loop_for_pbbs): Remove.
3261 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3262 (pdr_nb_params): Remove.
3263 (pdr_alias_set_dim): Remove.
3264 (pdr_subscript_dim): Remove.
3265 (pdr_iterator_dim): Remove.
3266 (pdr_parameter_dim): Remove.
3267 (same_pdr_p): Remove.
3268 (struct poly_scattering): Remove.
3269 (struct poly_bb): Remove _original, _transformed, _saved.
3270 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3271 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3272 (PBB_NB_LOCAL_VARIABLES): Remove.
3273 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3274 (schedule_to_scattering): Remove.
3275 (number_of_write_pdrs): Remove.
3276 (pbb_dim_iter_domain): Remove.
3277 (pbb_nb_params): Remove.
3278 (pbb_nb_scattering_orig): Remove.
3279 (pbb_nb_scattering_transform): Remove.
3280 (pbb_nb_dynamic_scattering_transform): Remove.
3281 (pbb_nb_local_vars): Remove.
3282 (pbb_iterator_dim): Remove.
3283 (pbb_parameter_dim): Remove.
3284 (psco_scattering_dim): Remove.
3285 (psct_scattering_dim): Remove.
3286 (psct_local_var_dim): Remove.
3287 (psco_iterator_dim): Remove.
3288 (psct_iterator_dim): Remove.
3289 (psco_parameter_dim): Remove.
3290 (psct_parameter_dim): Remove.
3291 (psct_dynamic_dim): Remove.
3292 (psct_static_dim): Remove.
3293 (psct_add_local_variable): Remove.
3294 (new_lst_loop): Remove.
3295 (new_lst_stmt): Remove.
3298 (lst_add_loop_under_loop): Remove.
3299 (lst_depth): Remove.
3300 (lst_dewey_number): Remove.
3301 (lst_dewey_number_at_depth): Remove.
3304 (lst_find_pbb): Remove.
3305 (find_lst_loop): Remove.
3306 (lst_find_first_pbb): Remove.
3307 (lst_empty_p): Remove.
3308 (lst_find_last_pbb): Remove.
3309 (lst_contains_p): Remove.
3310 (lst_contains_pbb): Remove.
3311 (lst_create_nest): Remove.
3312 (lst_remove_from_sequence): Remove.
3313 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3314 (lst_niter_for_loop): Remove.
3315 (pbb_update_scattering): Remove.
3316 (lst_update_scattering_under): Remove.
3317 (lst_update_scattering): Remove.
3318 (lst_insert_in_sequence): Remove.
3319 (lst_replace): Remove.
3320 (lst_substitute_3): Remove.
3321 (lst_distribute_lst): Remove.
3322 (lst_remove_all_before_including_pbb): Remove.
3323 (lst_remove_all_before_excluding_pbb): Remove.
3324 (struct scop): Remove original_schedule, transformed_schedule, and
3326 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3327 (SCOP_SAVED_SCHEDULE): Remove.
3328 (poly_scattering_new): Remove.
3329 (poly_scattering_free): Remove.
3330 (poly_scattering_copy): Remove.
3331 (store_scattering_pbb): Remove.
3332 (store_lst_schedule): Remove.
3333 (restore_lst_schedule): Remove.
3334 (store_scattering): Remove.
3335 (restore_scattering_pbb): Remove.
3336 (restore_scattering): Remove.
3337 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3338 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3339 compute the scattering polyhedron dimension from the dimension of
3341 (build_scop_scattering): Update call to
3342 build_pbb_scattering_polyhedrons.
3343 (build_poly_scop): Remove call to scop_to_lst.
3344 * graphite.c (graphite_transform_loops): Add call to print_scop.
3345 (gate_graphite_transforms): Remove use of flag_loop_block,
3346 flag_loop_interchange, and flag_loop_strip_mine.
3348 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3350 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3351 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3352 -floop-nest-optimize.
3353 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3354 (generate_luj_sepclass): Remove.
3355 (generate_luj_options): Remove.
3356 (set_options): Remove opt_luj.
3357 (scop_to_isl_ast): Remove opt_luj.
3358 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3359 flag_loop_unroll_jam.
3360 (getPrevectorMap_full): Remove.
3361 (getScheduleForBandList): Remove map_sepcl.
3362 (getScheduleMap): Same.
3363 (apply_schedule_map_to_scop): Remove sepcl.
3364 (optimize_isl): Same.
3365 * graphite-poly.c (apply_poly_transforms): Remove check for
3366 flag_loop_unroll_jam.
3367 (new_poly_bb): Remove map_sepclass.
3368 * graphite-poly.h (struct poly_bb): Same.
3369 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3370 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3371 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3372 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3374 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3377 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3379 (UNSPEC_ADD_CARRY): Remove.
3380 (addqi3_cconly_overflow): New expander.
3381 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3382 Adjust for changed add<mode>3_carry.
3383 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3384 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3385 (<plusminus_insn><mode>3_carry): Remove expander.
3386 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3387 add<mode>3_carry and sub<mode>3_carry.
3388 (plusminus_carry_mnemonic): Remove code attribute.
3389 (add<mode>3_carry): Canonicalize insn pattern.
3390 (*addsi3_carry_zext): Ditto.
3391 (sub<mode>3_carry): Ditto.
3392 (*subsi3_carry_zext): Ditto.
3393 (adcx<mode>3): Remove insn pattern.
3394 (addcarry<mode>): New insn pattern.
3395 (subborrow<mode>): Ditto.
3396 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3397 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3398 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3399 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3400 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3401 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3402 Rewrite expander to not clobber carry flag chains.
3404 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3406 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3407 instead of a rotate.
3409 2015-08-27 Marek Polacek <polacek@redhat.com>
3412 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3413 an entry into an irreducible region.
3415 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3417 * configure: Regenerate.
3419 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3421 PR tree-optimization/67283
3422 * tree-sra.c (type_consists_of_records_p): Rename to...
3423 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3425 (completely_scalarize_record): Rename to...
3426 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3427 (scalarize_elem): New.
3429 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3431 * tree-sra.c (completely_scalarize_var): Rename to...
3432 (create_total_scalarization_access): ... Here. Drop call to
3433 completely_scalarize_record.
3435 (analyze_all_variable_accesses): Replace completely_scalarize_var
3436 with create_total_scalarization_access and completely_scalarize_record.
3438 2015-08-27 Alan Modra <amodra@gmail.com>
3441 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3444 2015-08-27 Richard Biener <rguenther@suse.de>
3446 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3447 call with !seen_error ().
3448 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3449 early debug generation and finish...
3450 (symbol_table::compile): ... here to put it after a !seen_error ()
3453 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3455 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3458 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3459 Andre Vieira <andre.simoesdiasvieira@arm.com>
3461 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3462 (*cb<optab><mode>1): Likewise.
3463 (*tb<optab><mode>1): Likewise.
3464 (*cb<optab><mode>1): Likewise.
3465 * config/aarch64/iterators.md (inv_cb): New code attribute.
3467 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3468 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3470 2015-08-27 Richard Biener <rguenther@suse.de>
3472 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3474 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3476 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3479 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3481 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3484 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3486 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3487 floating point in VSX registers.
3488 (rs6000_output_move_128bit): Always print out the set insn if we
3489 can't generate an appropriate 128-bit move.
3490 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3491 point in VSX registers comparisons.
3492 (rs6000_expand_float128_convert): Likewise.
3494 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3495 predicate for only GPR hard registers.
3497 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3498 modes to iterators. Add new iterators for moving 128-bit values in
3499 scalar FPR registers and VSX registers.
3500 (FMOVE128): Likewise.
3501 (FMOVE128_FPR): Likewise.
3502 (FMOVE128_GPR): Likewise.
3503 (FMOVE128_VSX): Likewise.
3504 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3509 (RELOAD): Add IEEE 128-bit floating point modes.
3510 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3511 floating point in VSX registers modes.
3512 (signbit<mode>2, IBM128 iterator): Likewise.
3513 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3514 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3516 (neg<mode>2, TFIFKF iterator): Likewise.
3517 (negtf2_internal): Likewise.
3519 (abs<mode>2, TFIFKF iterator): Likewise.
3520 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3521 VSX insn support for negate, absolute value, and negative absolute
3523 (ieee_128bit_vsx_neg<mode>2): Likewise.
3524 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3525 (ieee_128bit_vsx_abs<mode>2): Likewise.
3526 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3527 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3528 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3529 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3530 floating point in VSX registers.
3531 (unpack<mode>_dm): Likewise.
3532 (unpack<mode>_nodm): Likewise.
3533 (pack<mode>): Likewise.
3534 (unpackv1ti): Likewise.
3535 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3536 (packv1ti): Likewise.
3537 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3538 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3540 (extenddftf2_internal): Likewise.
3541 (trunctfdf2): Likewise.
3542 (trunctfdf2_internal2): Likewise.
3543 (fix_trunc_helper): Likewise.
3544 (fix_trunctfdi2"): Likewise.
3545 (floatditf2): Likewise.
3546 (floatuns<mode>tf2): Likewise.
3547 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3548 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3549 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3550 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3551 (float<SDI:mode><IFKF:mode>2): Likewise.
3552 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3554 2015-08-26 Renlin Li <renlin.li@arm.com>
3556 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3558 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3559 Jiong Wang <jiong.wang@arm.com>
3561 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3562 (tlsie_tiny_<mode>): New define_insn.
3563 (tlsie_tiny_sidi): Likewise.
3564 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3566 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3567 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3569 (aarch64_expand_mov_immediate): Likewise.
3570 (aarch64_print_operand): Likewise.
3571 (arch64_classify_tls_symbol): Likewise.
3573 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3575 * config/arm/arm-arches.def: Replace single value flags with
3576 an initializer built from ARM_FSET_MAKE_CPU1.
3577 * config/arm/arm-cores.def: Likewise.
3578 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3579 derivation from the ARM_CORE macro definition, use the given value
3581 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3582 ARM_ARCH macro definition, use the given value instead.
3584 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3586 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3588 (struct builtin_description): Replace field mask with field
3590 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3591 (IWMMXT2_BUILTIN): Likewise.
3592 (IWMMXT2_BUILTIN2): Likewise.
3593 (FP_BUILTIN): Likewise.
3594 (CRC32_BUILTIN): Likewise.
3595 (CRYPTO_BUILTIN): Likewise.
3596 (iwmmx_mbuiltin): Likewise.
3597 (iwmmx2_mbuiltin): Likewise.
3598 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3599 struct builtin_description.
3601 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3603 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3604 (struct builtin_description): Change type of mask to unsigned
3606 * config/arm/arm-protos.h (insn_flags): Declare as type
3608 (tune_flags): Likewise.
3609 * config/arm/arm.c (feature_count): New.
3610 (insn_flags): Define as type arm_feature_set.
3611 (tune_flags): Likewise.
3612 (struct processors): Define field flags as type arm_feature_set.
3613 (all_cores): Update for change to struct processors.
3614 (all_architectures): Likewise.
3615 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3617 (arm_option_override_internal): Likewise.
3618 (arm_option_override): Likewise.
3620 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3621 Jiong Wang <jiong.wang@arm.com>
3623 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3624 tls size for tiny, small, large memory model.
3625 (aarch64_load_symref_appropriately): Support new symbol types.
3626 (aarch64_expand_mov_immediate): Likewise.
3627 (aarch64_print_operand): Likewise.
3628 (aarch64_classify_tls_symbol): Likewise.
3629 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3630 (aarch64_symbol_type): Likewise.
3631 * config/aarch64/aarch64.md (tlsle): Deleted.
3632 (tlsle12_<mode>): New define_insn.
3633 (tlsle24_<mode>): Likewise.
3634 (tlsle32_<mode>): Likewise.
3635 (tlsle48_<mode>): Likewise.
3636 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3639 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3641 * config/arm/arm-protos.h (FL_NONE): New.
3643 (arm_feature_set): New.
3644 (ARM_FSET_MAKE): New.
3645 (ARM_FSET_MAKE_CPU1): New.
3646 (ARM_FSET_MAKE_CPU2): New.
3647 (ARM_FSET_CPU1): New.
3648 (ARM_FSET_CPU2): New.
3649 (ARM_FSET_EMPTY): New.
3650 (ARM_FSET_ANY): New.
3651 (ARM_FSET_HAS_CPU1): New.
3652 (ARM_FSET_HAS_CPU2): New.
3653 (ARM_FSET_HAS_CPU): New.
3654 (ARM_FSET_ADD_CPU1): New.
3655 (ARM_FSET_ADD_CPU2): New.
3656 (ARM_FSET_DEL_CPU1): New.
3657 (ARM_FSET_DEL_CPU2): New.
3658 (ARM_FSET_UNION): New.
3659 (ARM_FSET_INTER): New.
3660 (ARM_FSET_XOR): New.
3661 (ARM_FSET_EXCLUDE): New.
3662 (AFM_FSET_IS_EMPTY): New.
3663 (ARM_FSET_CPU_SUBSET): New.
3665 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3667 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3668 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3669 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3671 (aarch64_expand_mov_immediate): Likewise.
3672 (aarch64_print_operand): Likewise.
3673 (aarch64_classify_symbol): Likewise.
3675 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3677 * config/aarch64/aarch64.opt (mtls-size): New entry.
3678 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3679 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3680 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3682 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3684 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3685 ARM_CORE entry. Fix some white-space.
3686 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3687 ARM_CORE definition.
3689 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3691 * fold-const.c (fold_binary_loc) : Move Optimize
3692 root(x)*root(y) as root(x*y) to match.pd.
3693 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3694 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3695 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3696 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3697 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3698 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3699 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3700 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3701 (rdiv @0 (exps:s @1)) : New simplifier.
3703 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3705 * gcc.c (driver::finalize): Only assign to extra_specs if
3708 2015-08-25 Marek Polacek <polacek@redhat.com>
3711 * varasm.c (declare_weak): Return after giving an error.
3713 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3715 * gcc-main.c (main): Add params to driver ctor.
3716 * gcc.c (class env_manager): New.
3718 (env_manager::init): New.
3719 (env_manager::get): New.
3720 (env_manager::xput): New.
3721 (env_manager::restore): New.
3722 Poison getenv and putenv.
3723 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3724 (target_system_root): Update initialization to use
3725 DEFAULT_TARGET_SYSTEM_ROOT.
3726 (struct spec_list): Add field "default_ptr".
3727 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3728 (init_spec): Likewise.
3729 (set_spec): Clear field "default_ptr".
3730 (read_specs): Free "spec" and "buffer".
3731 (xputenv): Reimplement in terms of env_manager.
3732 (process_command): Replace ::getenv calls with calls to the
3733 env_manager singleton.
3734 (process_brace_body): Free string in three places.
3735 (driver::driver): New.
3736 (driver::~driver): New.
3737 (used_arg): Convert from a function to...
3738 (class used_arg_t): ...this class, and...
3739 (used_arg): ...this new global instance.
3740 (used_arg_t::finalize): New function.
3741 (getenv_spec_function): Add "const" to local "value". Replace
3742 ::getenv call with call to the env_manager singleton.
3743 (path_prefix_reset): New function.
3744 (driver::finalize): New function.
3745 * gcc.h (driver::driver): New.
3746 (driver::~driver): New.
3747 (driver::finalize): New.
3749 2015-08-25 Nathan Sidwell <nathan@acm.org>
3751 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3752 target doesn't have one.
3754 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3757 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3759 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3762 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3763 a define_insn, remove second alternative.
3765 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3766 Joseph Myers <joseph@codesourcery.com>
3768 * gcc.c (struct switchstr): Expand comment.
3770 2015-08-25 Nathan Sidwell <nathan@acm.org>
3772 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3773 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3775 2015-08-25 Richard Biener <rguenther@suse.de>
3778 * genmatch.c (expr::gen_transform): Verify the result of
3779 builtin_decl_implicit.
3780 (dt_simplify::gen_1): Likewise.
3782 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3784 * config/arm/constraints.md: Also list Cs and US ARM-specific
3785 constraints as used.
3787 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3790 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3792 (nonpic_symbol_mentioned_p): Likewise.
3793 (sh_delegitimize_address): Likewise.
3794 (sh_function_ok_for_sibcall): Take into account weak symbols.
3795 (sh_expand_sym_label2reg): New.
3796 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3797 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3798 (call_pcrel): Use sh_expand_sym_label2reg.
3799 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3800 (symPCREL_label2reg) New expand.
3802 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3804 * graphite-poly.c: Change type of region from void* to sese.
3805 * graphite-poly.h (struct scop): Changing the type of scop::region
3806 from void* to sese. Change accessor macro accordingly.
3807 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3809 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3811 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3812 Constrain only on INTEGER_TYPE.
3814 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3817 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3818 -mefficient-unaligned-vsx on ISA 2.7.
3820 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3821 option to a masked option.
3823 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3824 logic for -mefficient-unaligned-vsx so that it is set via an arch
3825 ISA option, instead of being set if -mtune=power8 is set. Move
3826 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3827 near other default option handling.
3829 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3831 * genflags.c (gen_macro): Delete.
3832 (gen_proto): Don't create GEN.*CALL.* macros.
3833 * gensupport.h (get_file_location): Declare.
3834 * gensupport.c (rtx_locs): New variable.
3835 (read_md_rtx): Record rtx locations.
3836 (get_file_location): New function.
3837 * target-insns.def (call, call_pop, call_value, call_value_pop)
3838 (sibcall, sibcall_value): New patterns.
3839 * gentarget-def.c (parse_argument): New function.
3840 (def_target_insn): Use it. Handle optional operands. Raise an
3841 error if an .md pattern has the wrong number of operands for the
3842 pattern name. Remove the names of unused operands from the prototype.
3843 * builtins.c (expand_builtin_apply): Use targetm functions
3844 instead of HAVE_call_value and GEN_CALL_VALUE.
3845 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3846 and sibcall_value_pop.
3847 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3849 * config/alpha/alpha.md (untyped_call): Likewise.
3850 * config/iq2000/iq2000.md (untyped_call): Likewise.
3851 * config/m68k/m68k.md (untyped_call): Likewise.
3852 * config/mips/mips.md (untyped_call): Likewise.
3853 * config/pa/pa.md (untyped_call): Likewise.
3854 * config/rs6000/rs6000.md (untyped_call): Likewise.
3855 * config/sparc/sparc.md (untyped_call): Likewise.
3856 * config/tilegx/tilegx.md (untyped_call): Likewise.
3857 * config/tilepro/tilepro.md (untyped_call): Likewise.
3858 * config/visium/visium.md (untyped_call): Likewise.
3859 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3860 gen_call_value instead of GEN_CALL_VALUE.
3861 * config/arm/arm.md (untyped_call): Likewise.
3862 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3865 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3867 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3868 (have_cbranchcc4): New variable.
3869 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3870 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3871 (if_convert): Initialize have_cbranchcc4.
3873 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3875 * builtins.c (expand_cmpstrn): Rename to...
3876 (expand_cmpstrn_or_cmpmem): ...this.
3877 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3878 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3879 Remove mode argument.
3880 (expand_builtin): Update accordingly.
3882 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3884 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3885 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3886 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3887 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3888 Add predicates for operands 0 and 3.
3889 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3891 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3892 immediate_operand to nonmemory_operand.
3894 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3896 * df-scan.c (df_insn_info_init_fields): New function, split out
3898 (df_insn_create_insn_record): ...here.
3899 (df_insn_info_free_fields): New function, split out from...
3900 (df_insn_info_delete): ...here.
3901 (df_insn_rescan): Use the new functions instead of freeing and
3902 reallocating the df_insn_info.
3904 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3906 * doc/install.texi (Binaries): Remove links no longer valid.
3908 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3910 * config/nvptx/mkoffload.c (process): Replace
3911 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3913 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3916 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3918 2015-08-24 Renlin Li <renlin.li@arm.com>
3920 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3921 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3922 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3923 * config/arm/constraints.md ("j"): Add check for high code.
3925 2015-08-24 Tom de Vries <tom@codesourcery.com>
3927 PR tree-optimization/65468
3928 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
3931 2015-08-24 Nathan Sidwell <nathan@acm.org>
3933 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
3934 change to nvptx_type_from_mode call. Use arg_promotion for both
3935 split and non-split args.
3937 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3939 * target-insns.def (movstr): New pattern.
3940 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
3941 (expand_movstr): Use targetm rather than HAVE_movstr/
3944 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3946 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
3949 2015-08-24 Andrew Pinski <apinski@cavium.com>
3951 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
3952 AARCH64_EXTRA_TUNING_OPTION.
3953 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
3955 (aarch64_extra_tuning_flags): Base the shifted value on the index
3956 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
3957 * config/aarch64/aarch64.c: Remove the last argument to
3958 AARCH64_EXTRA_TUNING_OPTION.
3960 2015-08-23 Nathan Sidwell <nathan@acm.org>
3962 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
3964 (nvptx_declare_function_name): Insert formatting tabs for
3967 2015-08-23 Tom de Vries <tom@codesourcery.com>
3969 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
3970 parm_decl, rather than generating a dummy default def in cfun.
3971 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
3972 ssa_name from cfun and child_fn do not share a stmt as def stmt.
3973 (move_stmt_op): Handle PARM_DECl.
3974 (gather_ssa_name_hash_map_from): New function.
3975 (move_sese_region_to_fn): Add default defs for function params, and add
3976 them to vars_map. Release copied ssa names.
3977 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3979 2015-08-23 Tom de Vries <tom@codesourcery.com>
3981 * doc/sourcebuild.texi: Rename vect_no_int_max with
3982 vect_no_int_min_max. Update description.
3984 2015-08-22 Andrew Pinski <apinski@cavium.com>
3986 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3987 * config/aarch64/aarch64-protos.h
3988 (aarch64_fusion_pairs_index): New enum.
3989 (aarch64_fusion_pairs): Base the shifted value on the index instead
3990 Rewrite AARCH64_FUSE_ALL to be based on the end index.
3991 of the argument to AARCH64_FUSION_PAIR.
3992 * config/aarch64/aarch64.c: Remove the last argument to
3993 AARCH64_FUSION_PAIR.
3995 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
3997 * dominance.c (new_zero_array): Define.
3998 (dom_info): Redefine as class with proper encapsulation.
3999 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4001 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4002 allocations/deallocations. Pass function as parameter (instead of
4004 (dom_info::get_idom): Define accessor method.
4005 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4006 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4007 (calculate_dominance_info): Adjust to use dom_info class.
4008 (verify_dominators): Likewise.
4010 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4012 * print-rtl.c (print_rtx): Check the correct range for
4013 flag_dump_unnumbered_links to behave as documented.
4015 PR rtl-optimization/67227
4016 PR rtl-optimization/64164
4017 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4018 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4019 identical gimple_reg exprs.
4021 2015-08-21 Nathan Sidwell <nathan@acm.org>
4023 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4025 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4026 crtl->stack_alignment_needed to determine alignment.
4027 (nvptx_get_drap_rtx): New.
4028 (TARGET_GET_DRAP_RTX): Override.
4029 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4031 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4033 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4035 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4037 * configure.ac: Remove uwin* cases.
4038 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4039 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4040 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4041 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4042 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4043 i[34567]86-*-uwin*, powerpc-*-beos*.
4045 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4047 * gencodes.c (gencodes): Print the comma for the preceding
4048 enum value rather than the current one. Use aliased enum values
4049 rather than #defines for compiled-out patterns.
4050 (main): Update accordingly. Replace LAST_INSN_CODE with
4052 * lra.c (insn_code_data): Update accordingly.
4053 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4054 * recog.h (target_recog): Likewise.
4055 (preprocess_insn_constraints): Change parameter to unsigned int.
4056 * recog.c (preprocess_insn_constraints): Likewise.
4057 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4058 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4060 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4062 PR rtl-optimization/61657
4063 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4064 unsigned. Remove superflous uint64_t cast.
4066 2014-08-21 Felix Yang <felix.yang@huawei.com>
4067 Jiji Jiang <jiangjiji@huawei.com>
4069 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4070 argument and get builtin function code directly from CALL.
4071 (gimple_stringop_fixed_value): Modified accordingly.
4072 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4073 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4075 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4077 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4079 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4081 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4083 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4084 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4085 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4086 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4087 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4088 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4089 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4090 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4091 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4092 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4094 * match.pd (SIN ) : New Operator.
4095 (TAN) : New Operator.
4096 (mult (SQRT@1 @0) @1) : New simplifier.
4097 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4098 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4099 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4100 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4101 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4102 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4103 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4104 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4105 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4106 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4108 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4110 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4111 loop if EXPR is simplified to const value.
4113 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4115 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4116 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4118 2015-08-21 Richard Biener <rguenther@suse.de>
4121 * gimple-fold.c (replace_stmt_with_simplification): Assert
4122 seq is empty when replacing a call with itself but different
4124 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4125 a call require that it is const.
4127 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4129 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4130 * builtins.c (get_object_alignment_2): Adjust.
4131 * varasm.c (align_variable): Likewise.
4132 (get_variable_align): Likewise.
4133 (build_constant_desc): Likewise.
4134 (force_const_mem): Likewise.
4135 * doc/tm.texi.in: Likewise.
4136 * doc/tm.texi: Regenerate.
4138 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4140 * genconfig.c (main): Always define HAVE_cc0.
4141 * recog.c (rest_of_handle_peephole2): Adjust.
4143 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4145 * reorg.c (relax_delay_slots): Don't use #if to check value of
4148 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4150 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4151 * targhooks.c (default_have_conditional_execution): Adjust.
4153 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4155 * rtl.h (rtvec_all_equal_p): Declare.
4156 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4157 * rtl.c (rtvec_all_equal_p): New function.
4158 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4159 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4160 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4161 * config/arm/arm.c (neon_vdup_constant): Likewise.
4162 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4163 * config/tilegx/constraints.md (W, Y): Likewise.
4164 * config/tilepro/constraints.md (W, Y): Likewise.
4165 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4166 (classify_immediate): Use unwrap_const_vec_duplicate.
4167 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4168 (reg_or_v2s8bit_operand): Likewise.
4169 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4170 (reg_or_v4s8bit_operand): Likewise.
4172 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4174 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4175 (vec_shasigma_be): New #define.
4176 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4177 (VPMSUMH): Likewise.
4178 (VPMSUMW): Likewise.
4179 (VPMSUMD): Likewise.
4180 (VPMSUM): New BU_P8V_OVERLOAD_2.
4181 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4182 entries for VEC_MADD and VEC_VPMSUM.
4184 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4186 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4187 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4188 (avr_pgm_check_var_decl): Same.
4190 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4192 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4193 initialization of HFmode scalar type (float16_t) to...
4194 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4197 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4199 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4200 having an -mfp16-format.
4202 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4204 * config/i386/predicates.md (vector_all_ones_operand): Use
4205 CONSTM1_RTX to simplify definition.
4207 2015-08-20 Richard Biener <rguenther@suse.de>
4209 * toplev.c (compile_file): Remove loop calling late_global_decl
4211 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4212 on decls we assembled.
4214 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4216 * common/config/aarch64/aarch64-common.c
4217 (AARCH64_CPU_NAME_LENGTH): Delete.
4218 (aarch64_option_extension): New.
4219 (all_extensions): Likewise.
4220 (processor_name_to_arch): Likewise.
4221 (arch_to_arch_name): Likewise.
4223 (all_architectures): Likewise.
4224 (aarch64_get_extension_string_for_isa_flags): Likewise.
4225 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4227 * config/aarch64/aarch64-protos.h
4228 (aarch64_get_extension_string_for_isa_flags): New.
4229 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4230 (aarch64_option_print): Get the string to print from
4231 aarch64_get_extension_string_for_isa_flags.
4232 (aarch64_declare_function_name): Likewise.
4233 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4234 (MCPU_TO_MARCH_SPEC): This.
4235 (ASM_CPU_SPEC): Use it.
4236 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4237 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4238 (EXTRA_SPEC_FUNCTIONS): Use it.
4240 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4242 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4243 expansion when !ISA_HAS_LWL_LWR.
4244 (mips_block_move_straight): Update the size of elements copied to
4245 account for alignment when !ISA_HAS_LWL_LWR.
4246 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4248 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4250 * expr.c (expand_expr_real_2): Check gimple statement during
4253 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4255 * common.opt (fstack-protector): Initialize to -1.
4256 (fstack-protector-all): Likewise.
4257 (fstack-protector-strong): Likewise.
4258 (fstack-protector-explicit): Likewise.
4259 * configure.ac: Add --enable-default-ssp.
4260 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4261 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4263 * doc/install.texi: Document --enable-default-ssp.
4264 * config.in: Regenerated.
4265 * configure: Likewise.
4267 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4269 PR rtl-optimization/64164
4270 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4271 (parm_in_stack_slot_p): ... this. Disregard mode, what
4272 matters is whether the parm will live in a pseudo or a stack
4274 (expand_one_ssa_partition): Deal with params without a default
4275 def. Disregard mode.
4276 * cfgexpand.h: Renamed function declaration.
4277 * tree-ssa-coalesce.c: Adjust.
4278 * function.c (split_complex_args): Allocate stack slot for
4279 unassigned parms before splitting.
4280 (parm_in_unassigned_mem_p): New. Use it instead of
4281 parm_maybe_byref_p throughout this file.
4282 (assign_parm_setup_block): Use it. Accept pseudos in the
4283 expand-assigned rtl.
4284 (assign_parm_setup_reg): Drop BLKmode requirement.
4285 (assign_parm_setup_stack): Allocate and fill in the address of
4286 unassigned MEM parms.
4288 2015-08-19 David Sherwood <david.sherwood@arm.com>
4290 * genmodes.c (emit_mode_unit_size_inline): New function.
4291 (emit_mode_unit_precision_inline): New function.
4292 (emit_insn_modes_h): Emit new #define. Emit new functions.
4293 (emit_mode_unit_size): New function.
4294 (emit_mode_unit_precision): New function.
4295 (emit_mode_adjustments): Add mode_unit_size adjustments.
4296 (emit_insn_modes_c): Emit new arrays.
4297 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4298 use new inline methods.
4300 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4302 * config/aarch64/aarch64.c (bit_count): Delete prototype
4304 (aarch64_print_operand): Use popcount_hwi instead of the above.
4306 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4308 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4311 2015-08-19 Marek Polacek <polacek@redhat.com>
4314 * gimple-ssa-isolate-paths.c
4315 (insert_trap_and_remove_trailing_statements): Rename to ...
4316 (insert_trap): ... this. Don't remove trailing statements; split
4318 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4320 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4323 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4324 conditionalize the whole on __GNUC__. Add fallback code
4325 depending neither on undefined nor implementation-defined behaviour.
4327 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4329 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4330 whitespaces with tab.
4332 2015-08-19 Florian Weimer <fweimer@redhat.com>
4334 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4335 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4336 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4337 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4340 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4342 * config/arm/arm.c (bounds_check): Use %wd print format
4343 for HOST_WIDE_INT arguments.
4345 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4347 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4348 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4349 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4350 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4351 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4352 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4353 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4354 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4355 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4358 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4360 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4361 function.c, graphite-scop-detection.c, haifa-sched.c,
4362 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4363 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4364 varasm.c: Remove typedefs of structs.
4366 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4368 * config/rs6000/altivec.h (vec_adde): New define.
4369 (vec_addec): Likewise.
4370 (vec_double): Likewise.
4371 (vec_bperm): Likewise.
4373 * config/rs6000/rs6000-builtin.def (ADDE): New
4374 BU_ALTIVEC_OVERLOAD_3.
4376 (DOUBLE): New BU_VSX_OVERLOAD_1.
4377 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4378 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4379 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4380 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4381 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4382 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4383 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4384 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4385 and P8V_BUILTIN_VEC_VBPERMQ.
4387 2015-08-18 Jason Merrill <jason@redhat.com>
4389 * print-tree.c (print_node): Handle TREE_BINFO.
4391 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4394 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4395 we can expand BUILT_IN_SIGNBIT inline.
4396 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4397 * doc/extend.texi: Document the type-generic __builtin_signbit.
4399 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4401 PR rtl-optimization/67218
4402 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4403 (simplify_unary_operation_1): Use it.
4405 2015-08-18 Marek Polacek <polacek@redhat.com>
4408 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4409 if the call isn't valid.
4410 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4411 gimple_call_builtin_p.
4412 (call_may_clobber_ref_p_1): Likewise.
4413 (stmt_kills_ref_p): Likewise.
4415 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4417 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4418 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4419 (mips_hard_regno_scratch_ok): Likewise.
4420 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4421 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4423 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4425 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4426 (determine_value_range): Call refine_value_range_using_guard for
4427 each loop initial condition to improve value range.
4429 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4431 * config/i386/i386.c: Remove include of fibheap.h.
4433 2015-08-17 Richard Biener <rguenther@suse.de>
4435 PR tree-optimization/67221
4436 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4437 (sccvn_dom_walker::before_dom_children): Mark backedges of
4438 non-executable blocks as not executable.
4440 2015-08-17 David Sherwood <david.sherwood@arm.com>
4442 * config/arm/arm.c (neon_element_bits): Replace call to
4443 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4444 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4445 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4446 (neon_vdup_lane<mode>): Likewise.
4447 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4448 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4449 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4450 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4451 * config/spu/spu.c (arith_immediate_p): Likewise.
4452 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4453 * expr.c (expand_expr_real_2): Likewise.
4454 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4455 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4456 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4457 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4459 * fold-const.c (fold_binary_loc): Replace call to
4460 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4461 GET_MODE_UNIT_PRECISION (m).
4463 2015-08-17 Mike Stump <mikestump@comcast.net>
4465 * config/arm/arm.c (arm_block_move_unaligned_straight):
4466 Emit normal move instead of unaligned load when source or destination
4467 are appropriately aligned.
4469 2015-08-17 Richard Biener <rguenther@suse.de>
4470 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4473 * match.pd (div (coss (op @0) : New simplifier.
4475 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4477 PR rtl-optimization/64164
4480 PR rtl-optimization/67000
4483 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4484 * tree-ssa-copyrename.c: Removed.
4485 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4486 -ftree-coalesce-vars.
4487 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4488 * common.opt (ftree-copyrename): Ignore.
4489 (ftree-coalesce-inlined-vars): Likewise.
4490 * doc/invoke.texi: Remove the ignored options above.
4491 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4492 * tree-ssa-coalesce.h: ... here.
4493 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4494 headers required by it.
4495 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4496 across variables when flag_tree_coalesce_vars. Check register
4497 use and promoted modes to allow coalescing. Do not coalesce
4498 maybe-byref parms with SSA_NAMEs of other variables, or
4499 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4500 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4501 with its member functions to tree-ssa-coalesce.c.
4502 (var_map_base_init): Likewise. Renamed to
4503 compute_samebase_partition_bases.
4504 (partition_view_normal): Drop want_bases parameter.
4505 (partition_view_bitmap): Likewise.
4506 * tree-ssa-live.h: Adjust declarations.
4507 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4508 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4509 default defs at the entry point.
4510 (dump_part_var_map): New.
4511 (compute_optimized_partition_bases): New, called by...
4512 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4513 of compute_samebase_partition_bases. Adjust.
4514 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4515 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4516 (ssa_default_def_partition): New.
4517 (get_rtl_for_parm_ssa_default_def): New.
4518 (align_local_variable, add_stack_var): Support anonymous SSA
4520 (defer_stack_allocation): Likewise. Declare earlier.
4521 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4522 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4523 Do no record deferred-allocation marker in
4524 SA.partition_to_pseudo.
4525 (expand_stack_vars): Adjust check for the marker in it.
4526 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4527 redundant MEM attr setting.
4528 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4530 (expand_one_stack_var): ... this. New wrapper to check and
4531 skip already expanded SSA partitions.
4532 (record_alignment_for_reg_var): New, factored out of...
4533 (expand_one_var): ... this.
4534 (expand_one_ssa_partition): New.
4535 (adjust_one_expanded_partition_var): New.
4536 (expand_one_register_var): Check and skip already expanded SSA
4538 (expand_used_vars): Don't create DECLs for anonymous SSA
4539 names. Expand all SSA partitions, then adjust all SSA names.
4540 (pass::execute): Replace the loops that set
4541 SA.partition_to_pseudo from partition leaders and cleared
4542 DECL_RTL for multi-location variables, and that which used to
4543 rename vars and set attrs, with one that clears DECL_RTL and
4544 checks that PARMs and RESULTs default_defs match DECL_RTL.
4545 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4546 * emit-rtl.c: Include stor-layout.h.
4547 (set_reg_attrs_for_parm): Handle NULL decl.
4548 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4550 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4551 rather than its possibly-NULL DECL.
4552 * explow.c (promote_ssa_mode): New.
4553 * explow.h (promote_ssa_mode): Declare.
4554 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4555 (read_complex_part): Export.
4556 * expr.h (read_complex_part): Declare.
4557 * cfgexpand.h (parm_maybe_byref_p): Declare.
4558 * function.c: Include cfgexpand.h.
4559 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4560 (use_register_for_parm_decl): Wrapper for the above to
4561 special-case the result_ptr.
4562 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4563 (split_complex_args): Take assign_parm_data_all argument.
4564 Pass it to rtl_for_parm. Set up rtl and context for split
4565 args. Reset complex parm before fetching its default decl
4567 (assign_parms_unsplit_complex): Use the default-def complex
4568 parm rtl if it matches the components.
4569 (assign_parms_augmented_arg_list): Adjust.
4570 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4571 multiple locations. Recognize split complex args.
4572 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4573 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4574 (assign_parm_setup_block): Prefer SSA-assigned location, and
4575 fill in its address if the memory location of a maybe-byref
4576 parm was not assigned by cfgexpand.
4577 (assign_parm_setup_reg): Likewise. Adjust its mode as
4578 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4579 sure passed_pointer parms don't need conversion. Copy address
4581 (assign_parm_setup_stack): Prefer SSA-assigned location.
4582 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4583 rtl before testing for pointer bounds. Special-case result_ptr.
4584 (expand_function_start): Maybe reset DECL_RTL of result.
4585 Prefer SSA-assigned location for result and static chain.
4586 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4587 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4588 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4589 anonymous SSA names. Use promote_ssa_mode.
4590 (get_temp_reg): Likewise.
4591 (remove_ssa_form): Adjust.
4592 * stor-layout.c (layout_decl): Don't set mem attributes of
4594 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4595 and get its reg_usage for reg invalidation.
4596 (compute_bb_dataflow): Pass it insn.
4597 (emit_notes_in_bb): Likewise.
4599 2015-08-14 Marek Polacek <polacek@redhat.com>
4601 * tree-core.h (tree_base): Fix typo.
4603 2015-08-14 Marek Polacek <polacek@redhat.com>
4606 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4607 nonnull argument position is not outside function arguments.
4609 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4612 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4613 'lconst_atomic' with 'const_atomic'.
4614 (atomic_fetch_<optab><mode>): Likewise.
4615 (atomic_<optab>_fetch<mode>): Likewise.
4616 * config/aarch64/iterators.md (lconst-atomic): Move below
4618 (const_atomic): New.
4620 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4621 Bernd Schmidt <bernds@codesourcery.com>
4623 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4625 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4626 (DWARF2_DEBUGGING_INFO): Don't define.
4627 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4628 * toplev.c (process_options): Add a case for it.
4629 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4630 (dwarf2out_init): Skip most initializations if
4631 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4633 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4634 DWARF2_LINENO_DEBUGGING_INFO.
4635 * opts.c (set_debug_level): Likewise.
4637 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4639 * config/arm/types.md (is_neon_type): Add missing types.
4641 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4643 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4645 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4646 (processor_alias_table): Add skylake description.
4647 (enum processor_model): Add skylake processor.
4648 (arch_names_table): Add skylake record.
4649 * doc/invoke.texi: Add skylake item.
4651 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4653 * ira-int.h: Include recog.h.
4654 * ira-build.c: Don't include recog.h.
4655 * ira-color.c: Likewise.
4656 * ira-conflicts.c: Likewise.
4657 * ira-costs.c: Likewise.
4658 * ira-emit.c: Likewise.
4659 * ira-lives.c: Likewise.
4661 * sched-deps.c: Likewise.
4662 * sel-sched.c: Likewise.
4663 * target-globals.c: Likewise.
4665 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4668 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4669 compiler that the n_dups and n_operands loop bounds are invariant.
4671 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4673 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4674 expressions in A and B.
4676 2015-08-13 Richard Biener <rguenther@suse.de>
4678 * tree.c (nonnull_arg_p): Move from ...
4679 * tree-vrp.c (nonnull_arg_p): ... here.
4680 * tree.h (nonnull_arg_p): Declare.
4681 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4682 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4683 Properly initialize static chain and by-reference result pointer.
4684 (run_scc_vn): Adjust.
4686 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4688 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4691 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4693 * config/aarch64/aarch64-protos.h
4694 (aarch64_gen_atomic_cas): Declare.
4695 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4696 Choose appropriate instruction pattern for the target.
4697 (aarch64_gen_atomic_cas): New.
4698 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4699 (atomic_compare_and_swap<mode>_1): Rename to
4700 aarch64_compare_and_swap<mode>. Fix some indentation.
4701 (aarch64_compare_and_swap<mode>_lse): New.
4702 (aarch64_atomic_cas<mode>): New.
4704 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4706 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4709 2015-08-13 Richard Biener <rguenther@suse.de>
4711 PR tree-optimization/67191
4712 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4713 assert we value-numbered last stmts operand because it can validly
4714 trigger for unreachable code.
4716 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4718 PR rtl-optimization/67103
4719 * ifcvt.c (noce_try_store_flag_constants): Move
4720 x = (-(test != 0) & (b - a)) + a transformation to...
4721 (noce_try_cmove): ... Here. Try it if normal conditional
4724 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4726 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4728 * config/mips/mips.md (processor): Remove w32 and w64.
4730 2015-08-13 Richard Biener <rguenther@suse.de>
4732 PR tree-optimization/66502
4733 PR tree-optimization/67167
4734 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4736 (vn_phi_lookup): Adjust.
4737 (vn_phi_insert): Likewise.
4738 (visit_phi): Prefer to value-number to another PHI node
4739 over value-numbering to a PHI argument.
4740 (init_scc_vn): Mark DFS back edges.
4742 2015-08-13 Richard Biener <rguenther@suse.de>
4744 * gimple.h (gcall::code_): New constant static member.
4745 (gcond::code_): Likewise.
4746 * gimple.c (gcall::code_): Define.
4747 (gcond::code_): Likewise.
4748 (is_a_helper <const gcond *>): Add.
4749 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4750 and forward to a new gcall overload with less checking and a
4751 cheaper way to access the operand.
4752 (gimple_call_lhs_ptr): Likewise.
4753 (gimple_call_set_lhs): Likewise.
4754 (gimple_call_internal_p): Likewise.
4755 (gimple_call_with_bounds_p): Likewise.
4756 (gimple_call_set_with_bounds): Likewise.
4757 (gimple_call_internal_fn): Likewise.
4758 (gimple_call_set_ctrl_altering): Likewise.
4759 (gimple_call_ctrl_altering_p): Likewise.
4760 (gimple_call_fntype): Likewise.
4761 (gimple_call_fn): Likewise.
4762 (gimple_call_fn_ptr): Likewise.
4763 (gimple_call_set_fndecl): Likewise.
4764 (gimple_call_fndecl): Likewise.
4765 (gimple_call_chain): Likewise.
4766 (gimple_call_num_args): Likewise.
4767 (gimple_call_arg): Likewise.
4768 (gimple_call_arg_ptr): Likewise.
4769 (gimple_call_set_arg): Likewise.
4770 (gimple_call_noreturn_p): Likewise.
4771 (gimple_cond_code): Likewise.
4772 (gimple_cond_lhs): Likewise.
4773 (gimple_cond_rhs): Likewise.
4774 (gimple_has_lhs): Reduce checking.
4776 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4779 * match.pd (div (mult @0 @1) @1) : New simplifier.
4781 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4784 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4785 predicate to allow construction of vector constants using the
4786 VSLDOI vector shift instruction.
4788 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4791 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4792 the number of bytes to be shifted left and filled in with either
4793 all zero or all one bits.
4794 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4796 (output_vec_const_move): On power8, generate XXLORC to generate
4797 a vector constant with all 1's. Do a split if we need to use a
4800 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4801 properly test for the MSB.
4803 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4804 vector constants that can be created with VSLDOI.
4806 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4809 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4810 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4811 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4812 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4813 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4814 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4815 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4816 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4817 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4819 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4821 * config/xtensa/constraints.md (define_constraint "Y"): New
4823 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4824 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4825 * config/xtensa/predicates.md (move_operand): Match constants
4826 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4827 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4828 immediate references to TLS data.
4829 (xtensa_emit_move_sequence): Don't force constants to memory in
4830 the presence of TARGET_AUTO_LITPOOLS.
4831 (print_operand): Add 'y' format, same as default, but capable of
4832 printing SF mode constants as well.
4833 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4834 (movsf_internal): Add movi pattern that loads literal.
4835 (movsf, movdf): Don't force constants to memory in the presence
4836 of TARGET_AUTO_LITPOOLS.
4837 (movdf_internal): Add 'Y' constraint.
4838 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4839 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4841 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4843 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4845 * config/arm/arm.c (ARM_FPU): Update macro.
4846 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4847 (TARGET_FP16): Likewise.
4848 (TARGET_CRYPTO): Likewise.
4849 (TARGET_NEON): Likewise.
4850 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4853 2015-08-12 Tom de Vries <tom@codesourcery.com>
4857 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4858 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4859 accordingly. Mention default for --with-stage1-ldflags.
4861 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4863 * config/arm/arm.h (arm_fpu_feature_set): New.
4864 (ARM_FPU_FSET_HAS): New.
4868 (FPU_FL_CRYPTO): New.
4870 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4872 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4873 after -mcmodel=large -fPIC sorry.
4875 2015-08-12 Richard Biener <rguenther@suse.de>
4877 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4878 comparison operand order and commutative ternary op operand order.
4879 (sccvn_dom_walker::cond_stack): New state to track temporary
4881 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4883 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4885 (sccvn_dom_walker::record_conds): Add a temporary conditional
4886 expressions and all related expressions also true/false.
4887 (sccvn_dom_walker::before_dom_children): Record temporary
4888 expressions based on the controlling condition of a single
4889 predecessor. When trying to simplify a conditional statement
4890 lookup expressions we might have inserted earlier.
4892 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4895 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4896 to ARM core registers.
4898 2015-08-12 Nathan Sidwell <nathan@acm.org>
4900 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4901 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4903 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4905 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4907 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4909 2015-08-12 Richard Biener <rguenther@suse.de>
4911 * gimple.h (remove_pointer): New trait.
4912 (GIMPLE_CHECK2): New inline template function.
4913 (gassign::code_): New constant static member.
4914 (is_a_helper<const gassign *>): Add.
4915 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4916 and forward to a new gassign overload with less checking and a
4917 cheaper way to access the operand.
4918 (gimple_assign_lhs_ptr): Likewise.
4919 (gimple_assign_set_lhs): Likewise.
4920 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4922 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
4924 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
4926 (gimple_assign_rhs_code): Likewise.
4927 * gimple.c (gassign::code_): Define.
4929 2015-08-12 Richard Biener <rguenther@suse.de>
4931 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4932 Eliminate edges marked as not executable by SCCVN.
4933 * tree-ssa-sccvn.c: Include gimple-iterator.h.
4934 (cond_dom_walker): Rename to sccvn_dom_walker.
4935 (sccvn_dom_walker::before_dom_children): Value-number defs
4937 (run_scc_vn): Remove loop value-numbering all SSA names.
4938 Drop not visited SSA names to varying.
4940 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4942 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4943 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4944 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4945 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4946 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4947 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4948 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4949 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4950 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4952 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
4955 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
4956 to enum feature_priority and feature_list.
4957 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
4958 and isa_names_table.
4960 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4962 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
4965 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4969 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
4970 account when deciding what was the command-line status.
4972 2015-08-11 Nathan Sidwell <nathan@acm.org>
4974 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4976 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4977 we're not the only contributor to target phi.
4979 2015-08-11 Jiong Wang <jiong.wang@arm.com>
4981 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4984 2015-08-11 Tom de Vries <tom@codesourcery.com>
4986 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4988 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
4990 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4992 * config/i386/i386.md (cpu): Remove knl.
4994 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4998 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4999 open-coded sequence.
5000 * omp-low.c (oacc_process_reduction_data): Remove handline of
5001 GOMP_DEVICE_HOST_NONSHM.
5003 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5004 GET_MODE_INNER changes.
5006 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5007 Ilya Verbin <ilya.verbin@intel.com>
5009 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5011 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5013 * doc/options.texi (EnabledBy): Document that the argument must be
5015 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5016 Not enabled by -Wall.
5017 * optc-gen.awk: Give nicer error messages. Detect if the argument
5018 of EnabledBy is not a Common option.
5019 * common.opt (Wnull-dereference): Not enabled by -Wall.
5020 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5022 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5024 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5025 model == 0x4f as Broadwell.
5027 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5029 PR rtl-optimization/67028
5030 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5031 Add test to see if a const_int fits in the new mode.
5033 2015-08-07 DJ Delorie <dj@redhat.com>
5035 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5037 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5039 PR rtl-optimization/67029
5040 * ira-color.c: Include "recog.h" before including "ira-int.h".
5041 * target-globals.c: Likewise.
5042 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5043 adds an alternative_mask argument and use it instead of
5044 preferred_alternatives.
5045 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5046 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5047 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5048 (sched_analyze_insn): Update call to
5049 ira_implicitly_set_insn_hard_regs.
5050 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5051 (implicit_clobber_conflict_p): Update call to
5052 ira_implicitly_set_insn_hard_regs.
5054 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5056 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5058 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5061 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5062 currently_expanding_to_rtl is set.
5064 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5066 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5067 * configure: Regenerate.
5069 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5070 Jiong Wang <jiong.wang@arm.com>
5072 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5073 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5074 (REG_CLASS_NAMES): Likewise.
5075 (REG_CLASS_CONTENTS): Likewise.
5076 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5077 (aarch64_register_move_cost): Likewise.
5078 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5080 * config/aarch64/constraints.md (Uc0): New constraint.
5082 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5084 * config/aarch64/constraints.md (Usf): Add the test of
5085 aarch64_is_noplt_call_p.
5087 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5089 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5091 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5092 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5093 (call_symbol): Likewise.
5095 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5097 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5098 for vectorizing multiplication patterns.
5099 * tree-vectorizer.h: Adjust the number of patterns.
5101 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5103 * config/i386/sse.md (*vec_concatv2df): Declare added
5104 alternatives as sselog type.
5106 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5108 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5111 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5113 * config/s390/s390.c (s390_expand_tbegin): Expand either
5114 tbegin_1_z13 or tbegin_1 depending on VX flag.
5115 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5117 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5119 * config/s390/s390.opt: Clarify description for -mzvector
5120 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5123 2015-08-06 Richard Biener <rguenther@suse.de>
5125 * gimple.h (gimple_call_set_fn): Access op member directly.
5126 (gimple_call_chain_ptr): Likewise.
5127 (gimple_call_set_chain): Likewise.
5128 (gimple_cond_lhs_ptr): Likewise.
5129 (gimple_cond_set_lhs): Likewise.
5130 (gimple_cond_rhs_ptr): Likewise.
5131 (gimple_cond_set_rhs): Likewise.
5132 (gimple_cond_true_label): Likewise.
5133 (gimple_cond_set_true_label): Likewise.
5134 (gimple_cond_set_false_label): Likewise.
5135 (gimple_cond_false_label): Likewise.
5136 (gimple_label_label): Likewise.
5137 (gimple_label_set_label): Likewise.
5138 (gimple_goto_set_dest): Likewise.
5139 (gimple_asm_input_op): Likewise.
5140 (gimple_asm_input_op_ptr): Likewise.
5141 (gimple_asm_set_input_op): Likewise.
5142 (gimple_asm_output_op): Likewise.
5143 (gimple_asm_output_op_ptr): Likewise.
5144 (gimple_asm_set_output_op): Likewise.
5145 (gimple_asm_clobber_op): Likewise.
5146 (gimple_asm_set_clobber_op): Likewise.
5147 (gimple_asm_label_op): Likewise.
5148 (gimple_asm_set_label_op): Likewise.
5149 (gimple_switch_index): Likewise.
5150 (gimple_switch_index_ptr): Likewise.
5151 (gimple_return_retval_ptr): Likewise.
5152 (gimple_return_retval): Likewise.
5153 (gimple_return_set_retval): Likewise.
5154 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5155 (gimple_switch_label): Likewise.
5156 (gimple_switch_set_label): Likewise.
5158 2015-08-06 Richard Biener <rguenther@suse.de>
5160 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5161 bool comparison canonicalization and restrict to integers.
5163 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5165 * coretypes.h (enum symbol_visibility): Relocate here.
5166 * flag-types.h (enum symbol_visibility): Remove.
5167 * tree-core.h (enum symbol_visibility): Remove.
5169 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5172 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5173 for no_split_stack function attribute along with
5175 (rs6000_expand_split_stack_prologue): Likewise.
5177 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5178 Jeff Law <law@redhat.com>
5181 * doc/invoke.texi (Wnull-dereference): New.
5182 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5183 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5184 Warn for potential NULL dereferences.
5185 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5186 * ubsan.c (instrument_nonnull_arg): Call
5187 infer_nonnull_range_by_attribute.
5188 (instrument_nonnull_return): Likewise.
5189 * common.opt (Wnull-dereference); New.
5190 * gimple.c (infer_nonnull_range): Remove bool arguments.
5191 (infer_nonnull_range_by_dereference): New.
5192 (infer_nonnull_range_by_attribute): New.
5193 * gimple.h: Update declarations.
5195 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5197 * gensupport.c (sequence_num): Replace with...
5198 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5199 ...these new variables.
5200 (init_rtx_reader_args_cb): Update accordingly.
5201 (get_num_code_insns): Likewise.
5202 (read_md_rtx): Rework to use a while loop and get_c_test.
5203 Use the new counters. Remove redundant DEFINE_SUBST case.
5204 * genoutput.c (gen_split): Delete.
5205 (main): Don't call it.
5207 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5209 * gensupport.h (get_c_test): Declare.
5210 * gensupport.c (get_c_test): New function.
5211 * genconditions.c (main): Use it.
5212 * genrecog.c (validate_pattern): Likewise.
5213 (match_pattern_1): Likewise. Remove c_test argument.
5214 (match_pattern): Update accordingly and remove c_test argument.
5215 (main): Update accordingly.
5217 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5219 * gensupport.h (get_num_insn_codes): Declare.
5220 * gensupport.c (get_num_insn_codes): New function.
5221 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5223 (main): Likewise. Use get_num_insn_codes.
5224 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5226 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5229 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5230 is zero- rather than sign-extended.
5232 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5234 * target-insns.def (can_extend): Delete.
5236 2015-08-05 Richard Biener <rguenther@suse.de>
5238 PR tree-optimization/67121
5239 * tree-if-conv.c (combine_blocks): Clear range-info produced
5240 by stmts no longer executed conditionally.
5242 2015-08-05 Nick Clifton <nickc@redhat.com>
5244 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5245 to allow identical far pointers to remain.
5247 2015-08-05 Richard Biener <rguenther@suse.de>
5250 * match.pd: Compare address bases with == if they are decls
5251 or SSA names, not operand_equal_p. Otherwise fail.
5253 2015-08-05 Richard Biener <rguenther@suse.de>
5255 PR tree-optimization/67055
5256 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5259 * g++.dg/torture/pr67055.C: New testcase.
5261 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5263 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5265 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5266 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5267 AVX-512 alternative out of SSE.
5268 (define_insn "*vec_concatv2df"): Ditto.
5270 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5272 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5273 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5274 CODE_FOR_avx_ptestv4di.
5275 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5276 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5277 (define_insn "avx_ptest256"): Merge this ...
5278 (define_insn "sse4_1_ptest"): And this ...
5279 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5281 2015-08-05 Richard Biener <rguenther@suse.de>
5283 PR tree-optimization/67109
5284 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5285 against too big groups. Print whether this is a load or store
5286 group. Rename from ...
5287 (vect_analyze_group_access): ... this which is now a wrapper
5288 dissolving an invalid group.
5289 (vect_analyze_data_ref_accesses): Print whether this is a load
5292 2015-08-05 Richard Biener <rguenther@suse.de>
5295 * match.pd: Guard const_binop result checking against NULL_TREE
5298 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5300 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5301 when dest and value in the REG_EQUAL are same and dest
5304 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5306 * config/moxie/moxie.h (PRINT_OPERAND,
5307 PRINT_OPERAND_ADDRESS): Remove macros.
5308 * config/moxie/moxie-protos.h (moxie_print_operand,
5309 moxie_print_operand_address): Remove declaration.
5310 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5311 TARGET_PRINT_OPERAND_ADDRESS): Define.
5312 (moxie_print_operand, moxie_print_operand_address): Make static.
5314 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5317 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5318 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5320 2015-08-04 Richard Biener <rguenther@suse.de>
5322 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5324 (dt_operand::gen_gimple_expr): Adjust.
5326 2015-08-04 Richard Biener <rguenther@suse.de>
5328 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5329 bool compares on RHS.
5330 * match.pd: Add X ==/!= !X is false/true pattern.
5332 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5334 * config/aarch64/aarch64.c: Change inner loop statement cost
5335 to be consistent with other targets.
5337 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5339 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5342 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5344 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5345 (machine_function): Remove pseudos field.
5347 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5349 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5350 Exit early and use target_option_current_node if processing current
5353 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5355 * doc/extend.texi (AArch64 Function Attributes): New node.
5356 (AArch64 Pragmas): Likewise.
5358 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5360 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5361 Initialize simd builtins if TARGET_SIMD.
5362 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5363 Make sure that the builtins are initialized only once no matter how
5364 many times the function is called.
5365 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5366 (aarch64_relayout_simd_param): New function.
5367 (aarch64_simd_expand_args): Use above during argument expansion.
5368 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5369 simd builtins if TARGET_SIMD.
5370 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5372 (aarch64_relayout_simd_types): Likewise.
5374 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5376 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5377 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5378 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5379 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5381 (aarch64_reset_previous_fndecl): New function.
5382 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5384 * config/aarch64/aarch64-c.c: New file.
5385 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5386 Push and pop options at beginning and end. Remove ifdef
5387 __ARM_FEATURE_CRC32.
5388 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5389 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5390 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5391 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5393 (aarch64_register_pragmas): Likewise.
5394 (aarch64_reset_previous_fndecl): Likewise.
5395 (aarch64_process_target_attr): Likewise.
5396 (aarch64_override_options_internal): Likewise.
5398 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5400 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5402 (aarch64_can_inline_p): Likewise.
5403 (TARGET_CAN_INLINE_P): Define.
5405 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5407 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5408 Remove static. Handle OPT_mgeneral_regs_only,
5409 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5410 OPT_momit_leaf_frame_pointer.
5411 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5412 (aarch64_attr_opt_type): New enum.
5413 (aarch64_attribute_info): New struct.
5414 (aarch64_handle_attr_arch): New function.
5415 (aarch64_handle_attr_cpu): Likewise.
5416 (aarch64_handle_attr_tune): Likewise.
5417 (aarch64_handle_attr_isa_flags): Likewise.
5418 (aarch64_attributes): New table.
5419 (aarch64_process_one_target_attr): New function.
5420 (num_occurences_in_str): Likewise.
5421 (aarch64_process_target_attr): Likewise.
5422 (aarch64_option_valid_attribute_p): Likewise.
5423 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5424 * config/aarch64/aarch64-protos.h: Include input.h
5425 (aarch64_handle_option): Declare prototype.
5427 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5429 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5430 * config/aarch64/aarch64.c: Include target-globals.h
5431 (aarch64_previous_fndecl): New variable.
5432 (aarch64_set_current_function): New function.
5433 (TARGET_SET_CURRENT_FUNCTION): Define.
5435 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5437 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5438 (explicit_arch): Likewise.
5439 (x_aarch64_isa_flags): Likewise.
5440 (mgeneral-regs-only): Mark as Save.
5441 (mfix-cortex-a53-835769): Likewise.
5442 (mcmodel=): Likewise.
5443 (mstrict-align): Likewise.
5444 (momit-leaf-frame-pointer): Likewise.
5445 (mtls-dialect): Likewise.
5446 (master=): Likewise.
5447 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5448 (aarch64_isa_flags): Remove extern declaration.
5449 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5450 to indicate success or failure.
5451 (aarch64_validate_march): Likewise.
5452 (aarch64_validate_mtune): Likewise.
5453 (aarch64_isa_flags): Delete.
5454 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5455 instead of aarch64_isa_flags.
5456 (aarch64_get_tune_cpu): New function.
5457 (aarch64_get_arch): Likewise.
5458 (aarch64_override_options): Use above and set up explicit_tune_core
5460 (aarch64_print_extension): Move earlier in file. Add isa_flags
5461 argument and use that instead of the global aarch64_isa_flags.
5462 (aarch64_option_save): New function.
5463 (aarch64_option_restore): Likewise.
5464 (aarch64_option_print): Likewise.
5465 (aarch64_declare_function_name): Likewise.
5466 (aarch64_start_file): Delete.
5467 (TARGET_ASM_FILE_START): Do not define.
5468 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5469 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5472 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5474 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5475 flag_omit_leaf_frame_pointer to 2.
5477 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5479 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5481 (TARGET_FIX_ERR_A53_835769): New macro.
5482 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5483 handling of opts->x_aarch64_fix_a53_err835769.
5484 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5485 than aarch64_fix_a53_err835769.
5486 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5487 * config/aarch64/aarch64-linux.h: Likewise.
5489 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5491 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5492 ix86_expand_int_movcc as boolean.
5494 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5496 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5497 (aarch64_cpu_string): Likewise.
5498 (aarch64_tune_string): Likewise.
5499 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5500 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5501 Add extra argument to put result into.
5502 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5503 (aarch64_parse_cpu): Add arguments to put results into. Return
5504 aarch64_parse_opt_result.
5505 (aarch64_parse_tune): Likewise.
5506 (aarch64_override_options_after_change_1): New function.
5507 (aarch64_override_options_internal): New function.
5508 (aarch64_validate_mcpu): Likewise.
5509 (aarch64_validate_march): Likewise.
5510 (aarch64_validate_mtune): Likewise.
5511 (aarch64_override_options): Update to reflect above changes.
5512 Move some logic into aarch64_override_options_internal.
5513 Initialize target_option_default_node and target_option_current_node.
5514 (aarch64_override_options_after_change): Move logic into
5515 aarch64_override_options_after_change_1 and call it with global_options.
5516 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5517 flag values from that.
5519 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5521 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5522 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5523 * config/aarch64/aarch64.c (struct processor): Add arch field.
5524 (all_architectures): Handle above, move above all_cores.
5525 (all_cores): Handle above.
5526 (aarch64_parse_arch): Handle above changes.
5527 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5528 above. Update comments.
5529 (armv8.1-a): Likewise.
5530 * config/aarch64/aarch64-cores.def: Update according to above.
5531 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5532 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5533 aarch64_arch_driver_info.
5535 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5537 * config/aarch64/aarch64.c (struct processor): Add ident field.
5538 Rename core sched_core.
5539 (all_cores): Handle above changes.
5540 (all_architectures): Likewise.
5541 (aarch64_parse_arch): Likewise.
5542 (aarch64_override_options): Likewise.
5544 2015-08-04 Richard Biener <rguenther@suse.de>
5546 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5547 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5548 comparisons embedded in [VEC_]COND_EXPRs.
5550 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5552 * tree-if-conv.c: Fix various typos in comments.
5553 * tree-vect-stmts.c: Likewise.
5555 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5557 PR tree-optimization/67043
5558 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5559 preheader after hoisting invariant in it.
5560 (find_defs): Force recomputation of all luids.
5562 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5564 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5565 using a base register.
5567 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5569 * main.c (main): Pass in NULL for toplev's external_timer.
5570 * timevar.c: Include coretypes.h.
5571 (class timer::named_items): New.
5572 (timer::named_items::named_items): New.
5573 (timer::named_items::~named_items): New.
5574 (timer::named_items::push): New.
5575 (timer::named_items::pop): New.
5576 (timer::named_items::print): New.
5577 (timer::timer): Initialize field "m_jit_client_items".
5578 (timer::~timer): New.
5579 (timer::push): Move bulk of implementation to...
5580 (timer::push_internal): ...here. New function.
5581 (timer::pop): Move bulk of implementation to...
5582 (timer::pop_internal): ...here. New function.
5583 (timer::push_client_item): New.
5584 (timer::pop_client_item): New.
5585 (timer::print_row): New function, taken from timer::print.
5586 (timer::print): Print "GCC items" header if we also have client
5587 items. Move row-printing to timer::print_row. Print any client
5589 (timer::get_topmost_item_name): New method.
5590 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5591 (TV_JIT_CLIENT_CODE): New.
5592 * timevar.h (timer::push_client_item): New declaration.
5593 (timer::pop_client_item): New declaration.
5594 (timer::get_topmost_item_name): New method.
5595 (timer::push_internal): New declaration.
5596 (timer::pop_internal): New declaration.
5597 (timer::print_row): New declaration.
5598 (timer::named_items): New declaration.
5599 (timer::m_jit_client_items): New field.
5600 (timer): Add friend class named_items.
5601 (auto_timevar::auto_timevar): Add timer param.
5602 (auto_timevar::~auto_timevar): Use field "m_timer".
5603 (auto_timevar::m_timer): New field.
5604 * toplev.c (initialize_rtl): Add g_timer as param when
5605 constructing auto_timevar instance.
5606 (toplev::toplev): Add "external_timer" param, and use it to
5607 initialize the "g_timer" global if non-NULL.
5608 (toplev::~toplev): If this created "g_timer", delete it.
5609 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5610 with "external_timer" timer *.
5612 2015-08-03 Alexander Basov <coohpt@gmail.com>
5617 * cfgexpand.c (expand_one_var): Add check if stack is going to
5618 be used in naked function.
5619 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5620 whether expression should not reside in MEM.
5621 * function.c (use_register_for_decl): Do not use registers for
5622 non-register things (volatile, float, BLKMode) in naked functions.
5624 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5627 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5628 Adjust splits to match new pattern.
5630 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5632 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5635 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5636 point in VSX registers.
5638 * config/rs6000/constraints.md (wb constraint): Document unused
5640 (we constraint): Likewise.
5641 (wo constraint): Likewise.
5642 (wp constraint): New constraint for IEEE 128-bit floating point in
5644 (wq constraint): Likewise.
5646 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5647 IEEE 128-bit floating point in VSX registers.
5648 (easy_scalar_constant): Likewise.
5650 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5651 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5653 (rs6000_init_hard_regno_mode_ok): Likewise.
5655 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5656 floating point in VSX registers.
5665 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5666 IEEE 128-bit floating point in VSX registers on little endian.
5667 (vsx_le_undo_permute_<mode>): Likewise.
5668 (vsx_le_perm_load_<mode>): Likewise.
5669 (vsx_le_perm_store_<mode>): Likewise.
5670 (splitters for IEEE 128-bit fp moves): Likewise.
5672 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5675 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5676 floating point in VSX registers.
5679 * doc/md.text (Machine Constraints): Document wp and wq
5680 constraints on PowerPC.
5682 2015-08-03 Jeff Law <law@redhat.com>
5685 PR gcov-profile/66899
5686 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5687 iterate over the jump threading paths when an element in the
5688 jump threading paths array is eliminated.
5690 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5692 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5694 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5696 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5697 is_use_properly_guarded the variable def_preds. Free its
5698 contents before returning.
5699 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5700 (is_use_properly_guarded): Replace local variable def_preds with
5701 a parameter. Adjust accordingly. Only update *def_preds if it's
5704 2015-08-03 Richard Biener <rguenther@suse.de>
5706 * genmatch.c (simplify::for_subst_vec): New member.
5707 (binary_ok): New helper for for lowering.
5708 (lower_for): Delay substituting operators into result expressions
5709 if we can merge the results eventually again.
5710 (capture_info::walk_result): Adjust for user_id appearing as
5711 result expression operator.
5712 (expr::gen_transform): Likewise.
5713 (dt_simplify::gen_1): Likewise.
5714 (dt_simplify::gen): Pass not substituted operators to tail
5715 functions or initialize local variable with it.
5716 (decision_tree::gen): Adjust function signature.
5717 * match.pd: Fix tests against global code and add default
5718 cases to switch stmts.
5720 2015-08-03 Richard Biener <rguenther@suse.de>
5722 * genmatch.c (dt_simplify::gen): Create captures array
5723 with an initializer.
5725 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5727 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5728 the host compiler is affected by placement new aliasing bug.
5729 * configure: Regenerate.
5730 * Makefile.in (ALIASING_FLAGS): New variable.
5731 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5733 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5736 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5737 (negmulsf3_vfp): Likewise.
5738 (muldf3negdf_vfp): Disable for -frounding-math.
5739 (mulsf3negsf_vfp): Likewise.
5740 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5741 fix MULT cost with -frounding-math.
5743 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5745 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5746 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5747 explicit. Prefer to add the flag whenever possible.
5748 (noce_process_if_block): Try noce_try_store_flag_constants before
5751 2015-08-03 Richard Biener <rguenther@suse.de>
5753 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5754 New hash-map to record equivalent transforms.
5755 (dt_node::analyze): Populate the equivalent transforms hash-map.
5756 (dt_simplify::info): Add reference to hash-map entry.
5757 (dt_simplify::gen): If we have split out a function for the
5758 transform, generate a call to it.
5759 (sinfo_hashmap_traits::hash): New function.
5760 (compare_op): New helper function for ...
5761 (sinfo_hashmap_traits::equal_keys): ... this new function.
5762 (decision_tree::gen): Split out common equivalent transforms
5765 2015-08-03 Richard Biener <rguenther@suse.de>
5767 * gimple-fold.c (fold_gimple_assign): Remove folding of
5768 the comparison in COND_EXPRs.
5770 2015-08-03 Richard Biener <rguenther@suse.de>
5772 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5773 on the rhs of assignments first simplify the embedded
5776 2015-08-03 Richard Biener <rguenther@suse.de>
5778 PR tree-optimization/66917
5779 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5781 (DR_VECT_AUX): New macro.
5782 (set_dr_misalignment): Adjust.
5783 (dr_misalignment): Likewise.
5784 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5785 Compute whether the base is at least element aligned.
5786 * tree-vect-stmts.c (ensure_base_align): Adjust.
5787 (vectorizable_store): If the base is not element aligned
5788 preserve alignment of the original access if misalignment is unknown.
5789 (vectorizable_load): Likewise.
5791 2015-08-02 Martin Sebor <msebor@redhat.com>
5793 * c-family/c.opt (-Wframe-address): New warning option.
5794 * doc/invoke.texi (Wframe-address): Document it.
5795 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5796 Clarify possible effects of calling the functions with non-zero
5797 arguments and mention -Wframe-address.
5798 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5800 2015-08-01 Michael Collison <michael.collison@linaro.org
5801 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5803 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5804 (*arm_umin_cmp): Likewise.
5806 2015-08-01 Caroline Tice <cmtice@google.com>
5809 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5811 (vtbl_find_mangled_name): New function.
5812 (vtbl_register_mangled_name): New function.
5813 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5814 mangled name in mangled name vectors.
5815 (find_or_create_vtbl_map_node): Ditto.
5816 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5817 update recursion_depth on function entry; pass it to every recursive
5818 call; automatically exit if depth > 25 (give up looking at that point).
5819 (verify_bb_vtables): Initialize recursion_depth and pass it to
5820 var_is_used_for_virtual_call_p.
5821 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5822 global variable decls.
5823 (vtbl_register_mangled_name): New extern function decl.
5825 2015-08-01 Tom de Vries <tom@codesourcery.com>
5827 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5829 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5831 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5832 operation_no_trapping_overflow. Allow non-overflow operations.
5833 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5836 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5839 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5841 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5843 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5844 Enable for TARGET_32BIT.
5845 (*if_move_neg): Likewise.
5847 2015-07-31 Nick Clifton <nickc@redhat.com>
5849 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5850 Returns true for __model__.
5851 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5853 2015-07-31 Alan Modra <amodra@gmail.com>
5856 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5857 (rs6000_emit_prologue): Set it.
5858 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5860 2015-07-31 Richard Biener <rguenther@suse.de>
5862 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5863 -> X == (C1 ^ C2) which is already implemented in match.pd.
5864 Remove redundant dispatching to fold_relational_const.
5865 Move unordered self and NaN compares ...
5866 * match.pd: ... as patterns here. Remove some stray captures
5869 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5871 * config/i386/i386.c
5872 (bdesc_special_args): Convert mask type from signed to unsigned for
5874 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5875 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5876 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5877 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5878 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5879 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5880 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5881 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5882 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5883 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5884 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5885 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5886 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5887 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5888 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5889 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5890 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5891 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5892 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5893 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5894 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5895 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5896 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5897 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5898 * config/i386/i386-builtin-types.def
5899 (V16QI_FTYPE_V16SI): Remove.
5900 (V8DF_FTYPE_V8SI): Ditto.
5901 (V8HI_FTYPE_V8DI): Ditto.
5902 (V8SI_FTYPE_V8DI): Ditto.
5903 (V8SF_FTYPE_V8DF): Ditto.
5904 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5905 (V16HI_FTYPE_V16SI): Ditto.
5906 (V16SF_FTYPE_V16HI): Ditto.
5907 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5908 (V16SF_FTYPE_V16SI): Ditto.
5909 (V4DI_FTYPE_V4DI): Ditto.
5910 (V16SI_FTYPE_V16SF): Ditto.
5911 (V16SF_FTYPE_FLOAT): Ditto.
5912 (V8DF_FTYPE_DOUBLE): Ditto.
5913 (V8DI_FTYPE_INT64): Ditto.
5914 (V8DI_FTYPE_V4DI): Ditto.
5915 (V16QI_FTYPE_V8DI): Ditto.
5916 (UINT_FTYPE_V4SF): Ditto.
5917 (UINT64_FTYPE_V4SF): Ditto.
5918 (UINT_FTYPE_V2DF): Ditto.
5919 (UINT64_FTYPE_V2DF): Ditto.
5920 (V16SI_FTYPE_V16SI): Ditto.
5921 (V8DI_FTYPE_V8DI): Ditto.
5922 (V16SI_FTYPE_PV4SI): Ditto.
5923 (V16SF_FTYPE_PV4SF): Ditto.
5924 (V8DI_FTYPE_PV2DI): Ditto.
5925 (V8DF_FTYPE_PV2DF): Ditto.
5926 (V4DI_FTYPE_PV2DI): Ditto.
5927 (V4DF_FTYPE_PV2DF): Ditto.
5928 (V16SI_FTYPE_PV2SI): Ditto.
5929 (V16SF_FTYPE_PV2SF): Ditto.
5930 (V8DI_FTYPE_PV4DI): Ditto.
5931 (V8DF_FTYPE_PV4DF): Ditto.
5932 (V8SF_FTYPE_FLOAT): Ditto.
5933 (V4SF_FTYPE_FLOAT): Ditto.
5934 (V4DF_FTYPE_DOUBLE): Ditto.
5935 (V8SF_FTYPE_PV4SF): Ditto.
5936 (V8SI_FTYPE_PV4SI): Ditto.
5937 (V4SI_FTYPE_PV2SI): Ditto.
5938 (V8SF_FTYPE_PV2SF): Ditto.
5939 (V8SI_FTYPE_PV2SI): Ditto.
5940 (V16SF_FTYPE_PV8SF): Ditto.
5941 (V16SI_FTYPE_PV8SI): Ditto.
5942 (V8DI_FTYPE_V8SF): Ditto.
5943 (V4DI_FTYPE_V4SF): Ditto.
5944 (V2DI_FTYPE_V4SF): Ditto.
5945 (V64QI_FTYPE_QI): Ditto.
5946 (V32HI_FTYPE_HI): Ditto.
5947 (V8UHI_FTYPE_V8UHI): Ditto.
5948 (V16UHI_FTYPE_V16UHI): Ditto.
5949 (V32UHI_FTYPE_V32UHI): Ditto.
5950 (V2UDI_FTYPE_V2UDI): Ditto.
5951 (V4UDI_FTYPE_V4UDI): Ditto.
5952 (V8UDI_FTYPE_V8UDI): Ditto.
5953 (V4USI_FTYPE_V4USI): Ditto.
5954 (V8USI_FTYPE_V8USI): Ditto.
5955 (V16USI_FTYPE_V16USI): Ditto.
5956 (V2DF_FTYPE_V2DF_UINT64): Ditto.
5957 (V2DI_FTYPE_V2DF_V2DF): Ditto.
5958 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
5959 (V8DF_FTYPE_V8DF_V8DI): Ditto.
5960 (V4SF_FTYPE_V4SF_UINT64): Ditto.
5961 (V4SI_FTYPE_V4SF_V4SF): Ditto.
5962 (V16SF_FTYPE_V16SF_V16SI): Ditto.
5963 (V64QI_FTYPE_V32HI_V32HI): Ditto.
5964 (V32HI_FTYPE_V16SI_V16SI): Ditto.
5965 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5966 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
5967 (V32HI_FTYPE_V64QI_V64QI): Ditto.
5968 (V32HI_FTYPE_V32HI_V32HI): Ditto.
5969 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5970 (V16SI_FTYPE_V16SI_V4SI): Ditto.
5971 (V16SI_FTYPE_V16SI_V16SI): Ditto.
5972 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5973 (V16SI_FTYPE_V16SI_SI): Ditto.
5974 (V8DI_FTYPE_V8DI_V8DI): Ditto.
5975 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5976 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5977 (V8DI_FTYPE_V8DI_V2DI): Ditto.
5978 (QI_FTYPE_QI): Ditto.
5979 (SI_FTYPE_SI): Ditto.
5980 (DI_FTYPE_DI): Ditto.
5981 (QI_FTYPE_QI_QI): Ditto.
5982 (QI_FTYPE_QI_INT): Ditto.
5983 (HI_FTYPE_HI_INT): Ditto.
5984 (SI_FTYPE_SI_INT): Ditto.
5985 (DI_FTYPE_DI_INT): Ditto.
5986 (HI_FTYPE_V16QI_V16QI): Ditto.
5987 (SI_FTYPE_V32QI_V32QI): Ditto.
5988 (DI_FTYPE_V64QI_V64QI): Ditto.
5989 (QI_FTYPE_V8HI_V8HI): Ditto.
5990 (HI_FTYPE_V16HI_V16HI): Ditto.
5991 (SI_FTYPE_V32HI_V32HI): Ditto.
5992 (QI_FTYPE_V4SI_V4SI): Ditto.
5993 (QI_FTYPE_V8SI_V8SI): Ditto.
5994 (QI_FTYPE_V2DI_V2DI): Ditto.
5995 (QI_FTYPE_V4DI_V4DI): Ditto.
5996 (QI_FTYPE_V8DI_V8DI): Ditto.
5997 (HI_FTYPE_V16SI_V16SI): Ditto.
5998 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5999 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6000 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6001 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6002 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6003 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6004 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6005 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6006 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6007 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6008 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6009 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6010 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6011 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6012 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6013 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6014 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6015 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6016 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6017 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6018 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6019 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6020 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6021 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6022 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6023 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6024 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6025 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6026 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6027 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6028 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6029 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6030 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6031 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6032 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6033 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6034 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6035 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6036 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6037 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6038 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6039 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6040 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6041 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6042 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6043 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6044 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6045 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6046 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6047 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6048 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6049 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6050 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6051 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6052 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6053 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6054 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6055 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6056 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6057 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6058 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6059 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6060 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6061 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6062 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6063 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6064 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6065 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6066 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6067 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6068 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6069 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6070 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6071 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6072 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6073 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6074 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6075 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6076 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6077 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6078 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6079 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6080 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6081 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6082 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6083 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6084 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6085 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6086 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6087 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6088 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6089 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6090 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6091 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6092 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6093 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6094 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6095 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6096 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6097 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6098 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6099 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6100 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6101 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6102 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6103 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6104 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6105 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6106 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6107 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6108 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6109 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6110 (HI_FTYPE_HI): Ditto.
6111 (HI_FTYPE_V16QI): Ditto.
6112 (SI_FTYPE_V32QI): Ditto.
6113 (DI_FTYPE_V64QI): Ditto.
6114 (QI_FTYPE_V8HI): Ditto.
6115 (HI_FTYPE_V16HI): Ditto.
6116 (SI_FTYPE_V32HI): Ditto.
6117 (QI_FTYPE_V4SI): Ditto.
6118 (QI_FTYPE_V8SI): Ditto.
6119 (HI_FTYPE_V16SI): Ditto.
6120 (QI_FTYPE_V2DI): Ditto.
6121 (QI_FTYPE_V4DI): Ditto.
6122 (QI_FTYPE_V8DI): Ditto.
6123 (V16QI_FTYPE_HI): Ditto.
6124 (V32QI_FTYPE_SI): Ditto.
6125 (V64QI_FTYPE_DI): Ditto.
6126 (V8HI_FTYPE_QI): Ditto.
6127 (V16HI_FTYPE_HI): Ditto.
6128 (V32HI_FTYPE_SI): Ditto.
6129 (V4SI_FTYPE_QI): Ditto.
6130 (V4SI_FTYPE_HI): Ditto.
6131 (V8SI_FTYPE_QI): Ditto.
6132 (V8SI_FTYPE_HI): Ditto.
6133 (V2DI_FTYPE_QI): Ditto.
6134 (V4DI_FTYPE_QI): Ditto.
6135 (HI_FTYPE_HI_HI): Ditto.
6136 (SI_FTYPE_SI_SI): Ditto.
6137 (DI_FTYPE_DI_DI): Ditto.
6138 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6139 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6140 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6141 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6142 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6143 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6144 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6145 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6146 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6147 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6148 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6149 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6150 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6151 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6152 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6153 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6154 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6155 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6156 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6157 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6158 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6159 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6160 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6161 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6162 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6163 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6164 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6165 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6166 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6167 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6168 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6169 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6170 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6171 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6172 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6173 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6174 (V16SI_FTYPE_HI): Ditto.
6175 (V8DI_FTYPE_QI): Ditto.
6176 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6177 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6178 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6179 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6180 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6181 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6182 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6183 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6184 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6185 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6186 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6187 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6188 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6189 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6190 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6191 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6192 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6193 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6194 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6195 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6196 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6197 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6198 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6199 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6200 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6201 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6202 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6203 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6204 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6205 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6206 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6207 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6208 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6209 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6210 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6211 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6212 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6213 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6214 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6215 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6216 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6217 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6218 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6219 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6220 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6221 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6222 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6223 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6224 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6225 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6226 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6227 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6228 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6229 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6230 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6231 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6232 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6233 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6234 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6235 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6236 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6237 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6238 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6239 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6240 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6241 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6242 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6243 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6244 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6245 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6246 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6247 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6248 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6249 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6250 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6251 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6252 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6253 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6254 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6255 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6256 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6257 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6258 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6259 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6260 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6261 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6262 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6263 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6264 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6265 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6266 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6267 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6268 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6269 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6270 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6271 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6272 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6273 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6274 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6275 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6276 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6277 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6278 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6279 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6280 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6281 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6282 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6283 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6284 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6285 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6286 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6287 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6288 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6289 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6290 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6291 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6292 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6293 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6294 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6295 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6296 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6297 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6298 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6299 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6300 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6301 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6302 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6303 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6304 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6305 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6306 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6307 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6308 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6309 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6310 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6311 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6312 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6313 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6314 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6315 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6316 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6317 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6318 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6319 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6320 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6321 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6322 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6323 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6324 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6325 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6326 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6327 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6328 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6329 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6330 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6331 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6332 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6333 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6334 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6335 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6336 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6337 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6338 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6339 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6340 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6341 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6342 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6343 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6344 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6345 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6346 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6347 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6348 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6349 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6350 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6351 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6352 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6353 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6354 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6355 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6356 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6357 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6358 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6359 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6360 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6361 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6362 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6363 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6364 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6365 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6366 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6367 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6368 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6369 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6370 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6371 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6372 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6373 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6374 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6375 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6376 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6377 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6378 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6379 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6380 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6381 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6382 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6383 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6384 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6385 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6386 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6387 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6388 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6389 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6390 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6391 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6392 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6393 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6394 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6395 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6396 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6397 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6398 (QI_FTYPE_V8DF_INT_QI): Ditto.
6399 (QI_FTYPE_V4DF_INT_QI): Ditto.
6400 (QI_FTYPE_V2DF_INT_QI): Ditto.
6401 (HI_FTYPE_V16SF_INT_HI): Ditto.
6402 (QI_FTYPE_V8SF_INT_QI): Ditto.
6403 (QI_FTYPE_V4SF_INT_QI): Ditto.
6404 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6406 2015-07-31 Richard Biener <rguenther@suse.de>
6408 * gimple-fold.c (fold_gimple_assign): Remove folding of
6411 2015-07-31 Tom de Vries <tom@codesourcery.com>
6413 PR tree-optimization/66846
6414 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6415 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6416 (expand_omp_target) [ENABLE_CHECKING]: Same.
6417 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6418 cfun if !LOOPS_NEED_FIXUP.
6419 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6420 that omp_for already has its own loop struct.
6421 * tree-parloops.c (create_phi_for_local_result)
6422 (create_call_for_reduction): Handle simple latch bb.
6423 (create_parallel_loop): Add simple latch bb to preserve
6424 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6425 (gen_parallel_loop): Remove call to cancel_loop_tree.
6426 (parallelize_loops): Skip loops that are inner loops of parallelized
6428 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6429 verify_loop_structure.
6431 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6433 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6434 * config/v850/v850.md (RV_REGNUM): New constants.
6435 * config/v850/v850.c (v850_libcall_value): New functions.
6436 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6437 (TARGET_LIBCALL_VALUE): Define.
6439 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6441 * rtl.h (lowpart_subreg): Move in file.
6442 * loop-iv.c (lowpart_subreg): Move to...
6443 * simplify-rtx.c (lowpart_subreg): ...here.
6444 (simplify_binary_operation_1): Use lowpart_subreg instead of
6445 simplify_gen_subreg.
6446 * expr.c (expand_expr_real_2): Ditto.
6447 * emit-rtl.c (gen_lowpart_common): Ditto.
6448 * combine.c (gen_lowpart_for_combine): Ditto.
6449 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6450 expand_debug_source_expr): Ditto.
6452 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6454 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6455 (expand_builtin_atomic_clear): Remove support for atomic_clear
6458 2015-07-30 Richard Biener <rguenther@suse.de>
6460 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6461 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6462 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6463 redundant operand canonicalization.
6465 2015-07-30 David Sherwood <david.sherwood@arm.com>
6467 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6468 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6469 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6470 * config/arm/arm.c (neon_valid_immediate): Likewise.
6471 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6472 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6473 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6474 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6475 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6476 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6477 * config/i386/sse.md
6478 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6479 (*ssse3_palignr<mode>_perm): Likewise.
6480 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6481 * config/spu/spu.c (arith_immediate_p): Likewise.
6482 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6483 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6485 2015-07-30 Richard Biener <rguenther@suse.de>
6487 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6488 (decision_tree::gen_generic): ... this into ...
6489 (decision_tree::gen): ... this.
6490 (main): Adjust callers.
6492 2015-07-30 Richard Biener <rguenther@suse.de>
6494 * genmatch.c (verbose): New global.
6495 (warning_at): Add overload with source_location.
6496 (capture_info::capture_info): Add bool whether generating gimple
6497 or generic. Add gimple member.
6498 (capture_info::cinfo): Add capture member.
6499 (capture_info::walk_match): Record capture. Warn on
6501 (capture_info::walk_c_expr): Add more fragments captures cannot
6502 escape through. Warn on escaped captures.
6503 (dt_simplify::gen_1): Warn on operands we force to have no
6505 (main): Initialize verbose.
6506 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6508 2015-07-30 Richard Biener <rguenther@suse.de>
6511 * match.pd: Allow both operands to independently have conversion
6512 when simplifying compares of addresses.
6514 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6518 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6519 around those cases that need one.
6521 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6523 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6525 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6527 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6528 New. Copied from config/i386/gnu-user.h.
6529 (ASM_COMMENT_START): Likewise.
6530 (DBX_REGISTER_NUMBER): Likewise.
6532 2015-07-29 Richard Biener <rguenther@suse.de>
6534 * gimple-fold.c (fold_gimple_cond): Remove.
6535 (fold_stmt_1): Do not call it.
6537 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6539 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6540 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6542 * config/aarch64/aarch64-modes.def: Add HFmode.
6544 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6545 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6547 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6548 aarch64_promoted_type): New.
6550 (aarch64_float_const_representable_p): Disable HFmode.
6551 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6552 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6553 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6555 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6556 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6558 * config/aarch64/iterators.md (GPF_F16): New.
6560 2015-07-29 Richard Biener <rguenther@suse.de>
6562 * match.pd: Merge address comparison patterns and make them
6563 handle some more cases.
6565 2015-07-29 Richard Biener <rguenther@suse.de>
6567 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6568 (parser::parse_capture): Add bool argument on whether to reject
6570 (parser::parse_expr): Adjust.
6571 (parser::parse_op): Likewise.
6572 (parser::parse_pattern): Likewise.
6574 2015-07-29 Richard Biener <rguenther@suse.de>
6576 * gimple-fold.c (has_use_on_stmt): New function.
6577 (replace_stmt_with_simplification): Use it to allow
6578 abnormals originally referenced in the stmt.
6579 (fold_stmt_1): Canonicalize operand order.
6581 2015-07-28 David Sherwood <david.sherwood@arm.com>
6583 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6584 GET_MODE_INNER unconditionally.
6585 * config/spu/spu.c (arith_immediate_p): Likewise.
6586 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6587 * expmed.c (synth_mult): Remove check for VOIDmode result from
6589 (expand_mult_const): Likewise.
6590 * fold-const.c (fold_binary_loc): Replace call to element_precision
6591 with call to GET_MODE_PRECISION.
6592 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6594 (emit_mode_inner): Likewise.
6595 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6597 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6598 (GET_MODE_UNIT_PRECISION): Likewise.
6599 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6600 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6601 * stor-layout.c (bitwise_type_for_mode): Update assert.
6602 (element_precision): Remove.
6604 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6606 * target-insns.def (reload_load_address): New targetm instruction
6608 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6610 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6612 * target-insns.def (atomic_test_and_set): New targetm instruction
6614 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6615 HAVE_*/gen_* interface.
6617 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6619 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6621 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6622 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6623 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6624 * rtlanal.c (nonzero_bits1): Likewise.
6625 (num_sign_bit_copies1): Likewise.
6627 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6629 * target-insns.def (eh_return): New targetm instruction pattern.
6630 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6632 * function.c (thread_prologue_and_epilogue_insns): Remove
6633 preprocessor condition.
6635 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6637 * target-insns.def (indirect_jump): New targetm instruction pattern.
6638 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6641 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6643 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6644 instead of nonimmediate_operand. Remove C condiition.
6646 2015-07-28 Richard Biener <rguenther@suse.de>
6648 * match.pd: Add more simplification of address comparisons.
6650 2015-07-28 Richard Biener <rguenther@suse.de>
6652 * match.pd: Re-order two cases in comparison with max/min
6653 value simplification to make it apply for bools.
6655 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6657 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6658 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6659 (aarch64_rtx_costs): Properly strip extend or extract before
6660 passing down to rtx costs again.
6662 2015-07-28 Nick Clifton <nickc@redhat.com>
6664 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6665 Optimizes the case where -mes0 is active and a constant symbolic
6667 * config/rl78/rl78-protos.h: Prototype the new function.
6668 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6670 2015-07-28 Tom de Vries <tom@codesourcery.com>
6672 * tree-parloops.c (reduc_stmt_res): New function.
6673 (initialize_reductions, add_field_for_reduction)
6674 (create_phi_for_local_result, create_loads_for_reductions)
6675 (create_stores_for_reduction, build_new_reduction): Handle case that
6676 reduc_stmt is a phi.
6677 (gather_scalar_reductions): Allow double_reduc reductions.
6679 2015-07-28 Richard Biener <rguenther@suse.de>
6681 * fold-const.c (fold_comparison): Remove equality folding
6682 of decl addresses ...
6683 * match.pd: ... here and merge with existing pattern.
6685 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6687 PR tree-optimization/66828
6688 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6689 from int64_t to uint64_t.
6691 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6693 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6694 as valid only in the error message of the driver, not in the
6695 messages of the language compilers.
6697 2015-07-27 Tom de Vries <tom@codesourcery.com>
6699 * tree-parloops.c (gather_scalar_reductions): Simplify function
6702 2015-07-27 Marek Polacek <polacek@redhat.com>
6704 * ipa-devirt.c (types_same_for_odr): Fix typo.
6706 2015-07-27 Jason Merrill <jason@redhat.com>
6709 * dwarf2out.c (gen_inlined_subroutine_die): Check
6710 cgraph_function_possibly_inlined_p.
6712 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6714 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6715 Place integer variant first.
6716 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6718 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6721 * config/arm/arm-builtins.c (enum arm_builtins):
6722 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6723 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6724 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6725 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6726 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6728 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6731 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6732 Add qualifier_lane_index.
6733 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6734 (arm_getlane_qualifiers): Use qualifier_lane_index.
6735 (arm_lanemac_qualifiers): Rename to...
6736 (arm_mac_n_qualifiers): ...this.
6737 (LANEMAC_QUALIFIERS): Rename to...
6738 (MAC_N_QUALIFIERS): ...this.
6739 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6740 (arm_setlane_qualifiers): Use qualifier_lane_index.
6741 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6742 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6743 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6744 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6746 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6747 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6748 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6749 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6750 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6751 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6752 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6753 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6754 qualifiers to TERNOP_IMM.
6755 (vdup_lane): Change qualifiers to GETLANE.
6756 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6757 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6758 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6759 vqdmlsl_n): Change qualifiers to MAC_N.
6761 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6762 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6763 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6764 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6765 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6766 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6767 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6768 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6769 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6770 Remove call to neon_lane_bounds.
6772 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6774 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6775 Place integer variant first.
6777 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6779 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6780 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6781 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6782 for armv6kz targets.
6783 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6784 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6785 (FL_FOR_ARCH6ZK): Remove.
6786 (FL_FOR_ARCH6KZ): New.
6787 (arm_arch6zk): New declaration.
6788 * config/arm/arm-tables.opt: Regenerate.
6789 * config/arm/arm.c (arm_arch6kz): New.
6790 (arm_option_override): Set arm_arch6kz.
6791 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6792 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6793 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6795 2015-07-27 Marek Polacek <polacek@redhat.com>
6799 * doc/invoke.texi: Document -Wtautological-compare.
6801 2015-07-27 Richard Biener <rguenther@suse.de>
6803 * genmatch.c (decision_tree::gen_gimple): Split out large
6804 subtrees into separate functions.
6805 (decision_tree::gen_generic): Likewise.
6807 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6809 * config/alpha/alpha.c: Use SUBREG_P predicate.
6810 * config/alpha/predicates.md: Ditto.
6812 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6814 * config.host (s390*-*-*): Include driver-native.c only when
6815 building with s390* as host *and* target.
6817 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6820 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6821 T bit register modified_between_p check.
6823 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6825 * config/i386/i386.c: Use SUBREG_P predicate.
6826 * config/i386/i386.md: Ditto.
6827 * config/i386/sse.md: Ditto.
6828 * config/i386/predicates.md: Ditto.
6830 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6833 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6834 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6836 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6838 * Makefile.in: Remove use of TREEBROWSER.
6839 * config.in: Regenerated.
6840 * configure: Regenerated.
6841 * configure.ac: Remove definition of TREEBROWSER.
6842 * tree-browser.c: Removed.
6843 * tree-browser.def: Removed.
6845 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6847 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6848 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6850 (scopdet_basic_block_info): Print when a loop or bb cannot be
6851 represented in Graphite.
6853 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6856 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6857 execution guard when min_size is less than size_needed.
6859 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6861 * doc/install.texi: Document supported versions of ISL.
6863 2015-07-25 Jeff Law <law@redhat.com>
6867 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6868 unable to find X NE 0 in the tables, return X as the simplified
6870 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6871 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6873 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6874 after removing the control flow statement and unnecessary edges.
6876 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6879 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6881 PR rtl-optimization/64164
6882 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6883 * tree-ssa-copyrename.c: Removed.
6884 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6885 -ftree-coalesce-vars.
6886 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6887 * common.opt (ftree-copyrename): Ignore.
6888 (ftree-coalesce-inlined-vars): Likewise.
6889 * doc/invoke.texi: Remove the ignored options above.
6890 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6891 * tree-ssa-coalesce.h: ... here.
6892 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6893 headers required by it.
6894 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6895 across variables when flag_tree_coalesce_vars. Check register
6896 use and promoted modes to allow coalescing. Moved to
6897 tree-ssa-coalesce.c.
6898 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6899 with its member functions to tree-ssa-coalesce.c.
6900 (var_map_base_init): Likewise. Renamed to
6901 compute_samebase_partition_bases.
6902 (partition_view_normal): Drop want_bases parameter.
6903 (partition_view_bitmap): Likewise.
6904 * tree-ssa-live.h: Adjust declarations.
6905 * tree-ssa-coalesce.c: Include explow.h.
6906 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6907 default defs at the entry point.
6908 (dump_part_var_map): New.
6909 (compute_optimized_partition_bases): New, called by...
6910 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6911 of compute_samebase_partition_bases. Adjust.
6912 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6913 * cfgexpand.c (leader_merge): New.
6914 (get_rtl_for_parm_ssa_default_def): New.
6915 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6916 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6917 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6918 redundant MEM attr setting.
6919 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6921 (expand_one_stack_var): ... this. New wrapper to check and
6922 skip already expanded SSA partitions.
6923 (record_alignment_for_reg_var): New, factored out of...
6924 (expand_one_var): ... this.
6925 (expand_one_ssa_partition): New.
6926 (adjust_one_expanded_partition_var): New.
6927 (expand_one_register_var): Check and skip already expanded SSA
6929 (expand_used_vars): Don't create DECLs for anonymous SSA
6930 names. Expand all SSA partitions, then adjust all SSA names.
6931 (pass::execute): Replace the loops that set
6932 SA.partition_to_pseudo from partition leaders and cleared
6933 DECL_RTL for multi-location variables, and that which used to
6934 rename vars and set attrs, with one that clears DECL_RTL and
6935 checks that PARMs and RESULTs default_defs match DECL_RTL.
6936 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6937 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6938 * explow.c (promote_ssa_mode): New.
6939 * explow.h (promote_ssa_mode): Declare.
6940 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6941 * function.c: Include cfgexpand.h.
6942 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6943 (use_register_for_parm_decl): Wrapper for the above to
6944 special-case the result_ptr.
6945 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6946 (split_complex_args): Take assign_parm_data_all argument.
6947 Pass it to rtl_for_parm. Set up rtl and context for split
6949 (assign_parms_augmented_arg_list): Adjust.
6950 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6951 multiple locations. Recognize split complex args.
6952 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6953 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6954 (assign_parm_setup_block): Prefer SSA-assigned location.
6955 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6956 if stack_parm is NULL.
6957 (assign_parm_setup_stack): Prefer SSA-assigned location.
6958 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6959 rtl before testing for pointer bounds. Special-case result_ptr.
6960 (expand_function_start): Maybe reset DECL_RTL of result.
6961 Prefer SSA-assigned location for result and static chain.
6962 Factor out DECL_RESULT and SET_DECL_RTL.
6963 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6964 anonymous SSA names. Use promote_ssa_mode.
6965 (get_temp_reg): Likewise.
6966 (remove_ssa_form): Adjust.
6967 * stor-layout.c (layout_decl): Don't set mem attributes of
6969 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6970 and get its reg_usage for reg invalidation.
6971 (compute_bb_dataflow): Pass it insn.
6972 (emit_notes_in_bb): Likewise.
6974 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6976 * config/i386/i386.c (ix86_va_start): Remove
6977 unneeded !TARGET_64BIT check.
6978 (ix86_gimplify_va_arg): Ditto.
6980 2015-07-24 Tom de Vries <tom@codesourcery.com>
6982 * graphite-sese-to-poly.c (build_poly_scop): Always call
6983 rewrite_commutative_reductions_out_of_ssa.
6985 2015-07-24 Tom de Vries <tom@codesourcery.com>
6987 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6988 flag_associative_math to FLOAT_TYPE_P. Honour
6989 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6991 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6994 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6995 and "%qD" in warning_at instead of "%q+D" in warning.
6997 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6999 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7000 (ix86_function_abi): Cleanup.
7002 2015-07-24 Michael Darling <darlingm@gmail.com>
7005 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7006 * configure: Likewise
7007 * configure.ac: Likewise
7008 * doc/install.texi: Likewise
7009 * doc/tm.texi: Likewise
7010 * doc/tm.texi.in: Likewise
7012 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7014 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7015 manually swapping values.
7016 * cse.c (fold_rtx): Likewise.
7017 * lra-eliminations.c (form_sum): Likewise.
7019 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7022 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7023 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7024 (*jcc_1, *jcc_2, jump, simple_return_internal)
7025 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7026 Set length_nobnd attribute instead of length attribute.
7027 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7028 (length_nobnd): Remove attribute.
7029 (length): Remove length_nobnd processing.
7031 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7033 * gimplify.c (omp_default_clause): New function. Reorganize flow
7034 for clarity. Broken out of ...
7035 (omp_notice_variable): ... here.
7037 2015-07-24 Gary Funck <gary@intrepid.com>
7040 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7041 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7043 2015-07-24 Tom de Vries <tom@codesourcery.com>
7045 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7046 exit-first loop transform.
7048 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7051 * tree-cfg.c (struct replace_decls_d): New struct.
7052 (replace_block_vars_by_duplicates_1): New function.
7053 (replace_block_vars_by_duplicates): Use it to replace the decls
7054 in the value exprs by duplicates.
7056 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7058 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7059 -shared, -symbolic, -rdynamic.
7061 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7064 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7065 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7068 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7071 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7072 edge summary is available.
7074 2015-07-24 Richard Biener <rguenther@suse.de>
7076 * genmatch.c (struct dt_node): Add statistic fields.
7077 (dt_node::analyze): New method.
7078 (decision_tree::gen_gimple): Call analyze on the root node
7079 and print statistics to stderr.
7080 (decision_tree::gen_generic): Likewise.
7082 2015-07-24 Richard Biener <rguenther@suse.de>
7084 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7085 against the highest or lowest possible integer ...
7086 * match.pd: ... as patterns here.
7088 2015-07-24 Richard Biener <rguenther@suse.de>
7090 * genmatch.c (struct capture_info): Add same_as field.
7091 (capture_info::capture_info): Initialize same_as.
7092 (capture_info::walk_match): Compute same_as.
7093 (capture_info::walk_result): Compute stuff for the leader.
7094 (capture_info::walk_c_expr): Likewise.
7095 (dt_simplify::gen_1): Only look at leaders when deciding
7096 to force no side-effects or emit side-effects of omitted operands.
7098 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7100 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7101 reg note to the GPR -> FPR save instructions.
7103 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7105 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7107 (s390_expand_insv): Don't generate risbg pattern for constant zero
7109 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7110 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7113 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7115 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7118 (s390_issue_rate): Likewise.
7119 (s390_sched_reorder): Likewise.
7120 (s390_sched_variable_issue): Likewise.
7121 (s390_loop_unroll_adjust): Likewise.
7122 (s390_option_override): Likewise.
7124 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7126 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7127 processor capabilities with -march=native.
7128 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7129 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7130 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7132 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7134 * config/s390/s390.c (s390_issue_rate): Handle
7135 PROCESSOR_2094_Z9_EC.
7136 (s390_option_override): Likewise.
7137 (s390_adjust_priority): Likewise.
7139 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7141 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7142 when cross compiling.
7144 2015-07-24 Richard Biener <rguenther@suse.de>
7146 * fold-const.c (maybe_canonicalize_comparison_1): Move
7147 A code CST canonicalization ...
7148 * match.pd: ... to a pattern here.
7150 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7153 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7155 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7156 (HONOR_REG_ALLOC_ORDER): Define.
7158 2015-07-24 Richard Biener <rguenther@suse.de>
7160 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7161 * fold-const.c (fold_comparison): Move parameter does not
7162 alias &local simplification ...
7163 * match.pd: ... as a pattern here.
7165 2015-07-24 Richard Biener <rguenther@suse.de>
7167 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7168 valueizing call operands.
7169 * gimple-match-head.c (maybe_push_res_to_seq): Take
7170 number of call arguments from ops array.
7171 (do_valueize): New function.
7172 (gimple_simplify): Return true if valueization changed
7173 any operand even if the result didn't simplify further.
7175 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7178 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7180 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7183 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7185 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7187 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7190 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7192 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7195 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7197 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7198 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7200 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7201 ms_va_list_type_node initialization.
7203 2015-07-23 Jeff Law <law@redhat.com>
7206 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7207 unable to find X NE 0 in the tables, return X as the simplified
7209 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7210 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7212 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7213 after removing the control flow statement and unnecessary edges.
7215 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7217 * tree-pass.h (get_current_pass_name): Removed.
7219 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7221 PR rtl-optimization/64164
7222 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7223 * tree-ssa-copyrename.c: Removed.
7224 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7225 -ftree-coalesce-vars.
7226 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7227 * common.opt (ftree-copyrename): Ignore.
7228 (ftree-coalesce-inlined-vars): Likewise.
7229 * doc/invoke.texi: Remove the ignored options above.
7230 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7231 * tree-ssa-coalesce.h: ... here.
7232 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7233 headers required by it.
7234 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7235 across variables when flag_tree_coalesce_vars. Check register
7236 use and promoted modes to allow coalescing. Moved to
7237 tree-ssa-coalesce.c.
7238 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7239 with its member functions to tree-ssa-coalesce.c.
7240 (var_map_base_init): Likewise. Renamed to
7241 compute_samebase_partition_bases.
7242 (partition_view_normal): Drop want_bases parameter.
7243 (partition_view_bitmap): Likewise.
7244 * tree-ssa-live.h: Adjust declarations.
7245 * tree-ssa-coalesce.c: Include explow.h.
7246 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7247 default defs at the entry point.
7248 (dump_part_var_map): New.
7249 (compute_optimized_partition_bases): New, called by...
7250 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7251 of compute_samebase_partition_bases. Adjust.
7252 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7253 * cfgexpand.c (leader_merge): New.
7254 (get_rtl_for_parm_ssa_default_def): New.
7255 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7256 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7257 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7258 redundant MEM attr setting.
7259 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7261 (expand_one_stack_var): ... this. New wrapper to check and
7262 skip already expanded SSA partitions.
7263 (record_alignment_for_reg_var): New, factored out of...
7264 (expand_one_var): ... this.
7265 (expand_one_ssa_partition): New.
7266 (adjust_one_expanded_partition_var): New.
7267 (expand_one_register_var): Check and skip already expanded SSA
7269 (expand_used_vars): Don't create DECLs for anonymous SSA
7270 names. Expand all SSA partitions, then adjust all SSA names.
7271 (pass::execute): Replace the loops that set
7272 SA.partition_to_pseudo from partition leaders and cleared
7273 DECL_RTL for multi-location variables, and that which used to
7274 rename vars and set attrs, with one that clears DECL_RTL and
7275 checks that PARMs and RESULTs default_defs match DECL_RTL.
7276 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7277 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7278 * explow.c (promote_ssa_mode): New.
7279 * explow.h (promote_ssa_mode): Declare.
7280 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7281 * function.c: Include cfgexpand.h.
7282 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7283 (use_register_for_parm_decl): Wrapper for the above to
7284 special-case the result_ptr.
7285 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7286 (split_complex_args): Take assign_parm_data_all argument.
7287 Pass it to rtl_for_parm. Set up rtl and context for split
7289 (assign_parms_augmented_arg_list): Adjust.
7290 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7291 multiple locations. Recognize split complex args.
7292 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7293 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7294 (assign_parm_setup_block): Prefer SSA-assigned location.
7295 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7296 if stack_parm is NULL.
7297 (assign_parm_setup_stack): Prefer SSA-assigned location.
7298 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7299 rtl before testing for pointer bounds. Special-case result_ptr.
7300 (expand_function_start): Maybe reset DECL_RTL of result.
7301 Prefer SSA-assigned location for result and static chain.
7302 Factor out DECL_RESULT and SET_DECL_RTL.
7303 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7304 anonymous SSA names. Use promote_ssa_mode.
7305 (get_temp_reg): Likewise.
7306 (remove_ssa_form): Adjust.
7307 * stor-layout.c (layout_decl): Don't set mem attributes of
7309 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7310 and get its reg_usage for reg invalidation.
7311 (compute_bb_dataflow): Pass it insn.
7312 (emit_notes_in_bb): Likewise.
7314 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7317 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7319 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7320 (rs6000_emit_2insn_and): Handle dot forms.
7321 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7322 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7323 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7325 2015-07-23 Richard Biener <rguenther@suse.de>
7327 * generic-match-head.c: Include cgraph.h.
7328 * gimple-match-head.c: Likewise.
7329 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7331 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7332 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7335 2015-07-23 Richard Biener <rguenther@suse.de>
7337 * gimple-fold.c (fold_gimple_cond): Do not require folding
7338 results to pass valid_gimple_rhs_p.
7339 * tree-cfg.h (fold_cond_expr_cond): Remove.
7340 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7341 (make_edges): Do not call it.
7342 * tree-inline.c (tree_function_versioning): Likewise.
7344 2015-07-23 Tom de Vries <tom@codesourcery.com>
7346 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7347 vect_force_simple_reduction.
7348 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7349 (vect_is_simple_reduction_1): Add and handle
7350 need_wrapping_integral_overflow parameter.
7351 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7352 need_wrapping_integral_overflow parameter.
7353 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7354 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7357 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7359 PR tree-optimization/66926,66951
7360 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7361 INNER_LOOP and fix up condition for renaming virtual operands.
7363 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7365 * combine.c (try_combine): Use std::swap instead of manually
7368 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7370 * config/mips/i6400.md: New file.
7371 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7372 (mips64r6): Likewise.
7374 * config/mips/mips-tables.opt: Regenerate.
7375 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7376 (mips_issue_rate): Add support for i6400.
7377 (mips_multipass_dfa_lookahead): Likewise.
7378 * config/mips/mips.h (TUNE_I6400): Define.
7379 * config/mips/mips.md: Include i6400.md.
7380 (processor): Add i6400.
7381 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7383 2015-07-23 Richard Biener <rguenther@suse.de>
7386 * match.pd: Guard widen and sign-change comparison simplification
7389 2015-07-23 Richard Biener <rguenther@suse.de>
7391 PR tree-optimization/66945
7392 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7393 ::before_dom_children): Force the propagators idea of
7394 non-executable edges to materialize, not what the folder
7397 2015-07-23 Richard Biener <rguenther@suse.de>
7399 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7400 (gimple_cond_make_true): Use 1 != 0.
7402 2015-07-22 DJ Delorie <dj@redhat.com>
7404 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7407 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7408 (ashrhi3): Likewise.
7409 (lshrhi3): Likewise.
7410 (movhi): Take advantage of zero-extend to load small constants.
7412 (and<mode>3): Likewise.
7413 (zero_extendqihi2): Likewise.
7414 (zero_extendqisi2): New.
7415 * config/msp430/constraints.md (N,O): New.
7416 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7418 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7421 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7422 to enum feature_priority and feature_list.
7423 (fold_builtin_cpu): Add F_AES to enum processor_features
7424 and isa_names_table.
7426 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7429 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7430 for 64bit target only.
7432 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7434 * config/nvptx/nvptx.c: Expand some comments.
7436 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7438 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7439 (cortex_a53_advsimd): ...This.
7441 2015-07-22 Richard Biener <rguenther@suse.de>
7443 * genmatch.c (expr::gen_transform): Clarify error message
7444 and display location.
7446 2015-07-22 Richard Biener <rguenther@suse.de>
7448 * genmatch.c (struct operand): Add location member.
7449 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7451 (struct simplify): Remove match_location and result_location
7453 (elsehwere): Adjust.
7455 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7457 * config/mips/m5100.md: New file.
7458 * config/mips/mips-cpus.def (m5100, m5101): Define.
7459 * config/mips/mips-tables.opt: Regenerate.
7460 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7461 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7462 -march=m5101 to -mips32r5.
7463 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7464 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7466 * config/mips/mips.md: Include m5100.md.
7467 (processor): Add m5100.
7468 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7470 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7472 * config/mips/mips-cpus.def (interaptiv): Define.
7473 * config/mips/mips-tables.opt: Regenerate.
7474 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7476 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7477 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7479 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7482 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7483 (HONOR_REG_ALLOC_ORDER): Define.
7485 2015-07-22 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/66952
7488 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7489 blocks we end up executing unconditionally reset all SSA
7490 info such as range and alignment.
7491 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7492 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7494 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7496 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7499 2015-07-22 Richard Biener <rguenther@suse.de>
7501 * genmatch.c (parser::parse_result): Properly handle
7502 match with result operands and conditions.
7504 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7507 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7508 Add qualifier_struct_load_store_lane_index.
7509 (aarch64_types_loadstruct_lane_qualifiers): Use
7510 qualifier_struct_load_store_lane_index for lane index argument for
7512 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7513 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7514 (aarch64_simd_expand_args): Add new argument describing mode of
7515 builtin. Check lane bounds for arguments with
7516 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7517 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7518 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7519 (aarch64_simd_expand_builtin): Handle arguments with
7520 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7521 aarch64_simd_expand_args.
7522 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7523 vst[234]_lane with BUILTIN_VALLDIF.
7524 * config/aarch64/aarch64-simd.md:
7525 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7526 endianness reversal on lane index.
7527 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7528 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7529 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7530 (vec_store_lanesci_lane<mode>): Ditto.
7531 (vec_store_lanesxi_lane<mode>): Ditto.
7532 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7533 reversal of lane index.
7534 (aarch64_ld3_lane<mode>): Ditto.
7535 (aarch64_ld4_lane<mode>): Ditto.
7536 (aarch64_st2_lane<mode>): Ditto.
7537 (aarch64_st3_lane<mode>): Ditto.
7538 (aarch64_st4_lane<mode>): Ditto.
7539 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7540 to qmode. Add new mode parameter. Update uses.
7541 (__LD3_LANE_FUNC): Ditto.
7542 (__LD4_LANE_FUNC): Ditto.
7543 (__ST2_LANE_FUNC): Ditto.
7544 (__ST3_LANE_FUNC): Ditto.
7545 (__ST4_LANE_FUNC): Ditto.
7547 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7549 * doc/invoke.texi (Language Independent Options): Rename node to
7550 Diagnostic Message Formatting Options.
7552 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7555 * lra-remat.c (operand_to_remat): Prevent using insns with input
7556 subregs processed separately by IRA.
7558 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7560 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7562 (single_imm_use): Check for iterator node.
7563 (num_imm_uses): Likewise.
7564 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7565 (single_imm_use_1): Check for iterator node.
7567 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7568 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7570 * configure.ac: Add check for new options in isl-0.15.
7571 * config.in, configure: Rebuilt.
7572 * graphite-blocking.c: Include <isl/constraint.h>
7573 * graphite-interchange.c, graphite-poly.c: Likewise.
7574 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7575 * graphite.c: Likewise.
7576 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7578 * graphite-dependences.c: Include <isl/constraint.h>.
7579 (max_number_of_out_dimensions): Returns isl_stat.
7580 (extend_schedule_1): Likewise
7581 (extend_schedule): Corresponding changes.
7582 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7584 (getSingleMap): Change return type of isl_stat.
7585 (optimize_isl): Conditionally use
7586 isl_options_set_schedule_serialize_sccs.
7587 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7588 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7590 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7593 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7594 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7596 2015-07-21 Richard Biener <rguenther@suse.de>
7598 PR tree-optimization/66948
7599 * genmatch.c (capture_info::walk_match): Also recurse to
7600 captures. Properly compute expr state from captures of
7602 * match.pd: Add single-use guards to
7603 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7605 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7607 * config/nvptx/mkoffload.c (process): Add static destructor call.
7609 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7612 * match.pd (A - B -> A + (-B)): Don't allow folding
7613 when type if a fixed-point type.
7615 2015-07-20 DJ Delorie <dj@redhat.com>
7617 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7618 (iorqi3_real): Likewise for set1.
7620 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7622 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7625 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7627 * graphite-isl-ast-to-gimple.c:
7628 Refactor so that each function can access 'region'. This will help
7629 maintain a parameter rename_map within a region.
7631 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7633 * config/rs6000/rs6000.md (*lt0_disi): New.
7635 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7638 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7639 "available letters" comment.
7640 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7641 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7642 and_2rld_operand): Delete.
7643 (and_operand): Adjust.
7644 (rotate_mask_operator): New.
7645 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7646 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7647 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7648 extract_ME): Delete.
7649 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7650 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7651 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7652 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7653 rs6000_emit_2insn_and): New.
7654 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7655 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7656 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7657 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7658 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7659 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7660 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7661 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7662 rs6000_emit_2insn_and): New.
7663 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7664 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7666 <NOT>: Don't fall through to next case.
7667 <AND>: Handle the various rotate-and-mask cases directly.
7668 <IOR>: Always cost as one insn.
7669 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7670 (and<mode>3): Adjust expander for the new patterns.
7671 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7672 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7673 (*and<mode>3_imm_dot_shifted): New.
7674 (*and<mode>3_mask): Delete, rewrite as ...
7675 (and<mode>3_mask): ... New.
7676 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7677 (andsi3_internal0_nomc): Delete.
7678 (*andsi3_internal6): Delete.
7679 (*and<mode>3_2insn): New.
7680 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7681 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7682 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7683 *insvdi_internal3): Delete.
7684 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7685 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7686 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7687 *ior<mode>_mask): New.
7688 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7689 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7690 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7691 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7693 (ashr<mode>3): Delete expander.
7694 (*ashr<mode>3): Rename to ...
7695 (ashr<mode>3): ... This.
7696 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7697 (*rotldi3_internal4, *rotldi3_internal5 and split,
7698 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7699 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7700 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7701 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7702 (splitter for loading a mask): Adjust.
7703 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7705 2015-07-20 Marek Polacek <polacek@redhat.com>
7707 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7708 output_add_clobbers, output_added_clobbers_hard_reg_p,
7709 gen_rtx_scratch): Remove declarations.
7711 2015-07-20 Marek Polacek <polacek@redhat.com>
7714 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7716 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7718 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7719 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7721 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7723 * combine.c (combine_simplify_rtx): Move simplification step
7724 before various transformations/substitutions.
7726 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7728 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7729 (struct int_traits): Likewise.
7731 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7733 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7734 function to vmsdbgout_function_decl.
7736 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7739 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7740 from misaligned positions.
7741 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7743 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7747 * Makefile.in: Removed omega.o.
7748 * common.opt: Document flag fcheck-data-deps as deprecated.
7749 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7750 its associated params: omega-max-vars, omega-max-geqs,
7751 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7752 omega-max-keys, omega-eliminate-redundant-constraints.
7753 * doc/loop.texi: Remove all the section on Omega.
7754 * graphite-blocking.c: Include missing params.h: it used to be
7755 included through tree-data-ref.h and omega.h.
7756 * graphite-isl-ast-to-gimple.c: Same.
7757 * graphite-optimize-isl.c: Same.
7758 * graphite-sese-to-poly.c: Same.
7762 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7763 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7764 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7765 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7766 * passes.def: Remove pass_check_data_deps.
7767 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7768 (dump_conflict_function): Same.
7769 (dump_subscript): Same.
7770 (print_direction_vector): Same.
7771 (print_dir_vectors): Same.
7772 (print_lambda_vector): Same.
7773 (print_dist_vectors): Same.
7774 (dump_data_dependence_relation): Same.
7775 (dump_data_dependence_relations): Same.
7776 (dump_dist_dir_vectors): Same.
7778 (init_omega_eq_with_af): Removed.
7779 (omega_extract_distance_vectors): Removed.
7780 (omega_setup_subscript): Removed.
7781 (init_omega_for_ddr_1): Removed.
7782 (init_omega_for_ddr): Removed.
7783 (ddr_consistent_p): Removed.
7784 (compute_affine_dependence): Do not use omega to check data
7786 (compute_data_dependences_for_bb): Removed.
7787 (analyze_all_data_dependences): Removed.
7788 (tree_check_data_deps): Removed.
7789 * tree-data-ref.h: Do not include omega.h.
7790 (compute_data_dependences_for_bb): Removed.
7791 (tree_check_data_deps): Removed.
7792 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7793 (make_pass_check_data_deps): Removed.
7794 * tree-ssa-phiopt.c: Include params.h.
7795 * tree-vect-data-refs.c: Same.
7796 * tree-vect-slp.c: Same.
7798 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7800 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7801 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7802 (mem->fpreg splitters): Ditto.
7803 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7804 Disable DFmode for TARGET_64BIT.
7806 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7809 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7812 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7814 * config/nvptx/mkoffload.c (process): Constify host data.
7815 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7817 (generate_host_descr_file): Likewise.
7819 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7820 Sebastian Pop <s.pop@samsung.com>
7823 * graphite-dependences.c (add_pdr_constraints): Renamed
7824 pdr->extent to pdr->subscript_sizes.
7825 * graphite-interchange.c (build_linearized_memory_access): Add
7826 back all gcc_assert's that the "isl_int to isl_val conversion"
7827 patch has removed. Refactored.
7828 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7829 * graphite-poly.c (new_poly_dr): Same.
7830 (free_poly_dr): Same.
7831 * graphite-poly.h (struct poly_dr): Same.
7832 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7833 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7834 * graphite-scop-detection.h: Fix space.
7835 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7836 back all gcc_assert's removed by a previous patch.
7837 (wrap): Remove the_isl_ctx global variable that the same patch has
7839 (build_loop_iteration_domains): Same.
7840 (add_param_constraints): Same.
7841 (pdr_add_data_dimensions): Same. Refactored.
7842 (build_poly_dr): Renamed extent to subscript_sizes.
7844 2015-07-17 Marek Polacek <polacek@redhat.com>
7846 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7847 * match.pd: ... here.
7849 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7851 * config/nvptx/mkoffload.c (process): Constify target data.
7852 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7853 Constify target data.
7854 (generate_target_offloadend_file): Likewise.
7856 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7858 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7859 to allow renaming of PHI arguments on edges incoming from outer
7860 loop header, add corresponding check before start PHI iterator.
7861 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7862 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7863 with true force_vectorize. Set-up dominator for outer loop too.
7864 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7865 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7866 was marked with force_vectorize and has restricted cfg.
7867 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7869 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7870 do peeling for outer loops.
7872 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7873 Matthias Klose <doko@ubuntu.com>
7875 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7876 build-sysroot, sysroot from the `Miscenalleous configure options' to
7877 the `Directories' section and strip trailing `/' from with_sysroot.
7878 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7879 * configure: Regenerated.
7881 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7884 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7885 (TARGET_HARD_DF_REGS): Ditto.
7886 (TARGET_HARD_XF_REGS): Ditto.
7887 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7888 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7889 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7890 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7891 (*movsf_internal): Add alternatives 16 and 17. Enable
7892 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7894 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7896 PR rtl-optimization/66891
7897 * calls.c (expand_call): Wrap precompute_register_parameters with
7898 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7900 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7902 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7903 Define target data struct and initialize it.
7905 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7907 PR rtl-optimization/66626
7908 * ira.h (emit-rtl.h): Include.
7909 (non_spilled_static_chain_regno_p): New.
7910 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7911 unless it is non spilled static chain pseudo.
7912 (assign_hard_rego): Spill memory profitable allocno unless it is
7913 non spilled static chain pseudo.
7914 (allocno_spill_priority_compare): Put non spilled static chain
7915 pseudo at the end of sorted array.
7916 (improve_allocation): Do nothing if we have static chain and
7918 (allocno__priority_compare_func): Put non spilled static chain
7919 pseudo at the beginning of sorted array.
7920 (move_spill_restore): Ignore non spilled static chain pseudo.
7921 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7922 to non spilled static chain pseudo.
7923 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
7924 pseudo at the beginning of sorted array.
7925 (spill_for): Spill non spilled static chain pseudo last.
7926 * lra-constraints.c (lra_constraints): Remove static chain pseudo
7927 check for equivalence.
7929 2015-07-16 Martin Liska <mliska@suse.cz>
7932 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
7933 dst_ctx if it does not exist.
7935 2015-07-16 Martin Liska <mliska@suse.cz>
7937 * hash-set.h (remove): New function.
7938 (iterator): New iteration class for hash_set.
7940 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7942 * genattrtab.c (make_canonical): Add a file_location parameter.
7943 Use fatal_at rather than fatal.
7944 (get_attr_value): Likewise. Update call to make_canonical.
7945 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
7946 (make_internal_attr): Update calls accordingly.
7948 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7950 * read-md.h (message_with_line, error_with_line): Delete.
7951 * read-md.c (message_with_line, error_with_line): Delete.
7952 * gensupport.h: Include read-md.h.
7953 (md_rtx_info): New structure.
7954 (read_md_rtx): Use it. Return a bool success value.
7955 * gensupport.c (read_md_rtx): Likewise.
7956 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
7957 (main): Update after interface changes.
7958 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
7959 (main): Update after interface changes.
7960 * genattrtab.c (insn_code_number): Delete.
7961 (optimize_attrs): Add a max_insn_code parameter and use it instead
7962 of insn_code_number.
7963 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
7964 Use *_at rather than *_with_line functions.
7965 (gen_insn): Likewise.
7966 (gen_delay): Likewise.
7967 (gen_insn_reserv): Likewise.
7968 (gen_bypass): Take an md_rtx_info rather than an rtx.
7969 (main): Update after interface changes. Use a local max_insn_code
7970 variable instead of insn_code_number.
7971 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7972 an rtx. Use fatal_at rather than fatal.
7973 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7974 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7975 (gen_absence_set, gen_final_absence_set, gen_automaton)
7976 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7977 (main): Update after interface changes.
7978 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7980 (main): Update after interface changes.
7981 * genconditions.c (main): Use new read_md_rtx interface.
7982 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7983 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7984 (main): Update after interface changes.
7985 * genemit.c (insn_code_number, insn_index_number): Delete.
7986 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7987 Use fatal_at rather than fatal.
7988 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
7990 (gen_split): Likewise.
7991 (main): Update after interface changes.
7992 * genextract.c (line_no): Delete.
7993 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7994 Update call to walk_rtx.
7995 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
7996 rather than message_with_line.
7997 (walk_rtx): Add an md_rtx_info argument. Update call to
7998 VEC_safe_set_locstr.
7999 (main): Update after interface changes.
8000 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8001 and lineno. Use error_at rather than separate message_with_line
8002 calls and have_error assignments.
8003 (main): Update after interface changes.
8004 * genmddump.c (main): Use new read_md_rtx interface.
8005 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8006 (main): Update after interface changes.
8007 * genoutput.c (next_code_number): Delete.
8008 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8009 (gen_peephole, gen_expand, gen_split): Likewise.
8010 (note_constraint): Likewise. Use *_at rather than *_with_line
8012 (main): Update after interface changes.
8013 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8015 (main): Update after interface changes.
8016 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8017 than an rtx and lineno.
8018 (process_define_constraint): Likewise.
8019 (process_define_register_constraint): Likewise.
8020 (main): Update after interface changes.
8021 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8022 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8023 Use *_at rather than *_with_line functions.
8024 (match_pattern_2): Likewise.
8025 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8026 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8027 Use *_at rather than *_with_line functions.
8028 * gentarget-def.c (add_insn): New function.
8029 (main): Use it. Use new read_md_rtx interface.
8031 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8033 * gensupport.h (compute_test_codes): Take a file_location rather
8035 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8036 rather than *_with_line functions.
8037 (process_define_predicate): Update call to compute_test_codes.
8038 * genpreds.c (validate_exp): Take a file_location rather than a
8039 line number. Use *_at functions rather than *_with_line functions.
8040 (process_define_predicate): Update call to validate_exp.
8041 (constraint_data): Replace lineno field with a file_location.
8042 (add_constraint): Take a file_location rather than a line number.
8043 Use *_at functions rather than *_with_line functions. Fix error
8044 message for address constraints. Update after changes to
8045 validate_exp, constraint_data and compute_test_codes.
8046 (process_define_constraint): Update accordingly.
8047 (process_define_register_constraint): Likewise.
8049 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8051 * genoutput.c (data): Use a file_location to record the source
8054 (idata, idata_end): Remove initialization.
8055 (constraint_data): Replace lineno with a file_location.
8056 (output_insn_data): Update after changes to data.
8057 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8058 (scan_operands): Likewise, using *_at rather than *_with_line
8060 (process_template): Likewise.
8061 (validate_insn_alternatives): Likewise.
8062 (validate_insn_operands): Likewise.
8063 (validate_optab_operands): Likewise.
8064 (init_insn_for_nothing): Initialize idata and idata_end.
8065 (note_constraint): Update after changes to constraint_data,
8066 using at rather than with_line functions.
8067 (mdep_constraint_len): Take a file_location rather than a
8068 line number. Use at rather than with_line functions.
8070 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8072 * read-md.h (fatal_at): Declare.
8073 * read-md.c (fatal_at): New function.
8074 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8075 to record the source position.
8076 (check_attr_test): Take a file_location instead of a line number.
8077 Use fatal_at instead of fatal.
8078 (check_attr_value): Update after above changes, using "at"
8079 rather than "with_line" reporting functions.
8080 (convert_set_attr_alternative): Likewise.
8081 (gen_attr): Likewise.
8082 (check_defs): Likewise. Don't assign to read_md_filename.
8083 (gen_insn): Update initialization after above changes.
8084 (gen_delay): Likewise.
8085 (write_insn_cases): Print the filename for a define_peephole.
8086 (gen_insn_reserv): Take a line number as argument and update
8087 the call to check_attr_test.
8088 (main): Pass a line number to gen_insn_reserv.
8090 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8092 * read-md.h (file_location): New structure.
8093 (directive_handler_t): Take a file_location rather than a line number.
8094 (message_at, error_at): Declare.
8095 (read_skip_construct): Delete.
8096 * read-md.c (message_with_line_1): Replace with...
8097 (message_at_1): ...this new function.
8098 (message_at, error_at): New functions.
8099 (message_with_line, error_with_line): Update to use message_at_1.
8100 (handle_enum): Take a file_location rather than a line number
8101 and use error_at for error reporting.
8102 (handle_include): Likewise.
8103 (read_skip_construct): Likewise. Make static.
8104 (handle_file): Update after above changes. Pass a file_location
8105 rather than a line number to handle_directive.
8106 * gensupport.c (queue_elem): Replace separate filename and lineno
8107 with a file_location.
8108 (queue_pattern): Replace filename and lineno arguments with a
8109 file_location. Update after change to queue_elem.
8110 (process_define_predicate): Replace lineno argument with a
8111 file_location and use error_at for error reporting. Update
8112 after above changes.
8113 (process_rtx): Likewise.
8114 (subst_pattern_match): Likewise.
8115 (get_alternatives_number): Likewise.
8116 (alter_predicate_for_insn): Likewise.
8117 (rtx_handle_directive): Likewise.
8118 (is_predicable): Update after above changes, using error_at rather
8119 than error_with_line.
8120 (has_subst_attribute): Likewise.
8121 (identify_predicable_attribute): Likewise.
8122 (alter_attrs_for_subst_insn): Likewise.
8123 (process_one_cond_exec): Likewise.
8124 (process_substs_on_one_elem): Likewise.
8125 (process_define_subst): Likewise.
8126 (check_define_attr_duplicates): Likewise.
8127 (read_md_rtx): Update after change to queue_elem.
8129 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8131 * genoutput.c (next_index_number): Delete.
8132 (data): Remove index_number.
8133 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8134 (main): Remove manipulation of next_index_number.
8136 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8138 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8139 (make_canonical): Likewise.
8141 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8143 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8144 instead of adjust_address_nv.
8145 (restore_stack_nonlocal): Likewise.
8146 (nonlocal_goto): Likewise.
8148 2015-07-16 Tom de Vries <tom@codesourcery.com>
8150 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8151 not have a corresponding loop header phi.
8153 2015-07-16 Tom de Vries <tom@codesourcery.com>
8155 * tree-parloops.c (create_loads_for_reductions): Handle case that
8156 reduction is unused.
8158 2015-07-16 Richard Biener <rguenther@suse.de>
8160 PR tree-optimization/66894
8161 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8162 about deriving NE_EXPR from truncated values.
8164 2015-07-16 Martin Liska <mliska@suse.cz>
8167 (object_allocator): Add new class.
8168 (pool_allocator::initialize): Use the underlying class.
8169 (pool_allocator::allocate): Likewise.
8170 (pool_allocator::remove): Likewise.
8171 (operator new): A new generic allocator.
8172 * asan.c (struct asan_mem_ref): Remove unused members.
8173 (asan_mem_ref_new): Replace new operator with
8174 object_allocator::allocate.
8175 (free_mem_ref_resources): Change deallocation.
8176 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8177 with object_allocator.
8178 * config/sh/sh.c (add_constant): Replace new operator with
8179 object_allocator::allocate.
8180 (sh_reorg): Change call to a release method.
8181 * cselib.c (struct elt_list): Remove unused members.
8182 (new_elt_list): Replace new operator with
8183 object_allocator::allocate.
8184 (new_elt_loc_list): Likewise.
8185 (new_cselib_val): Likewise.
8186 (unchain_one_elt_list): Change delete operator with remove method.
8187 (unchain_one_elt_loc_list): Likewise.
8188 (unchain_one_value): Likewise.
8189 (cselib_finish): Release newly added static allocators.
8190 * cselib.h (struct cselib_val): Remove unused members.
8191 (struct elt_loc_list): Likewise.
8192 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8194 * df-scan.c (struct df_scan_problem_data): Likewise.
8195 (df_scan_alloc): Likewise.
8196 * df.h (struct dataflow): Likewise.
8197 * dse.c (struct read_info_type): Likewise.
8198 (struct insn_info_type): Likewise.
8199 (struct dse_bb_info_type): Likewise.
8200 (struct group_info): Likewise.
8201 (struct deferred_change): Likewise.
8202 (get_group_info): Likewise.
8203 (delete_dead_store_insn): Likewise.
8204 (free_read_records): Likewise.
8205 (replace_read): Likewise.
8206 (check_mem_read_rtx): Likewise.
8207 (scan_insn): Likewise.
8208 (dse_step1): Likewise.
8209 (dse_step7): Likewise.
8210 * et-forest.c (struct et_occ): Remove unused members.
8211 (et_new_occ): Use allocate instead of new operator.
8212 (et_new_tree): Likewise.
8213 (et_free_tree): Call release method explicitly.
8214 (et_free_tree_force): Likewise.
8215 (et_free_pools): Likewise.
8216 (et_split): Use remove instead of delete operator.
8217 * et-forest.h (struct et_node): Remove unused members.
8218 * ipa-cp.c: Change pool_allocator to object_allocator.
8219 * ipa-inline-analysis.c: Likewise.
8220 * ipa-profile.c: Likewise.
8221 * ipa-prop.c: Likewise.
8222 * ipa-prop.h: Likewise.
8223 * ira-build.c (initiate_cost_vectors): Cast return value.
8224 (ira_allocate_cost_vector): Likewise.
8225 * ira-color.c (struct update_cost_record): Remove unused members.
8226 * lra-int.h (struct lra_live_range): Likewise.
8227 (struct lra_copy): Likewise.
8228 (struct lra_insn_reg): Likewise.
8229 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8230 * lra.c (new_insn_reg): Replace new operator with allocate method.
8231 (free_insn_regs): Same for operator delete.
8232 (finish_insn_regs): Release new static allocator.
8233 (finish_insn_recog_data): Likewise.
8234 (lra_free_copies): Replace delete operator with remove method.
8235 (lra_create_copy): Replace operator new with allocate method.
8236 (invalidate_insn_data_regno_info): Same for remove method.
8237 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8238 (free_debug_insn_changes): Replace delete operator with remove method.
8239 (replace_oldest_value_reg): Replace operator new with allocate method.
8240 (pass_cprop_hardreg::execute): Release new static variable.
8241 * sched-deps.c (sched_deps_init): Change pool_allocator to
8243 * sel-sched-ir.c: Likewise.
8244 * sel-sched-ir.h: Likewise.
8245 * stmt.c (expand_case): Likewise.
8246 (expand_sjlj_dispatch_table): Likewise.
8247 * tree-sra.c (struct access): Remove unused members.
8248 (struct assign_link): Likewise.
8249 (sra_deinitialize): Release newly added static pools.
8250 (create_access_1):Replace operator new with allocate method.
8251 (build_accesses_from_assign): Likewise.
8252 (create_artificial_child_access): Likewise.
8253 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8254 pool_allocator to object_allocator.
8255 * tree-ssa-pre.c: Likewise.
8256 * tree-ssa-reassoc.c: Likewise.
8257 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8258 * tree-ssa-strlen.c: Likewise.
8259 * tree-ssa-structalias.c: Likewise.
8260 * var-tracking.c (onepart_pool_allocate): New function.
8261 (unshare_variable): Use the newly added function.
8262 (variable_merge_over_cur): Likewise.
8263 (variable_from_dropped): Likewise.
8264 (variable_was_changed): Likewise.
8265 (set_slot_part): Likewise.
8266 (emit_notes_for_differences_1): Likewise.
8267 (vt_finalize): Release newly added static pools.
8269 2015-07-16 Martin Jambor <mjambor@suse.cz>
8271 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8272 all uses. Fix two typos in its general comment.
8273 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8275 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8277 * config/i386/linux-common.h (LINK_MPX): New.
8278 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8279 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8280 indicating '-z bndplt' support by linker.
8281 * configure: Regenerate.
8282 * config.in: Regenerate.
8284 2015-07-16 Richard Biener <rguenther@suse.de>
8286 * fold-const.c (fold_widened_comparison): Remove.
8287 (fold_sign_changed_comparison): Likewise.
8288 (fold_comparison): Move widened and sign-changed comparison
8290 * match.pd: ... to patterns here.
8291 * generic-match-head.c: Include target.h.
8292 * gimple-match-head.c: Likewise.
8294 2015-07-16 Richard Biener <rguenther@suse.de>
8296 * tree-ssa-dom.c (dom_valueize): New function.
8297 (record_temporary_equivalences): Also record equivalences
8298 for dominating stmts that have uses of equivalences we are
8301 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8303 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8304 add_autoinc_candidates.
8305 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8306 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8307 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8308 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8310 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8311 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8312 Remove parameter struct iv*. Call add_autoinc_candidates here.
8313 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8314 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8316 (find_iv_candidates): Call new functions.
8318 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8320 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8321 uninitialized-variable warning.
8323 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8326 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8327 when the destination is R0.
8329 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8332 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8333 * config/i386/i386.c (ix86_expand_pextr): New function.
8334 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8335 for non-lowpart subregs.
8336 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8337 (insv<mode>): Use SWI248 mode iterator.
8338 (insv<mode>_1): Ditto.
8340 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8341 Sebastian Pop <s.pop@samsung.com>
8343 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8344 iterator to use_stmt.
8346 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8347 Sebastian Pop <s.pop@samsung.com>
8349 * graphite-scop-detection.c (build_scops_1): Discard scops for
8352 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8353 Sebastian Pop <s.pop@samsung.com>
8355 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8356 case of a return statement in scop.
8358 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8359 Sebastian Pop <s.pop@samsung.com>
8361 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8362 INTEGER_TYPE parameters.
8363 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8364 VECTOR_CST in scan_tree_for_params.
8365 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8367 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8369 * gimple-pretty-print.h: Don't include pretty-print.h.
8370 * tree-streamer.h: Don't include lto-streamer.h.
8371 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8372 * gimple-streamer-in.c: Remove redundant includes.
8373 * gimple-streamer-out.c: Likewise.
8374 * ipa-devirt.c: Likewise.
8375 * ipa-icf.c: Likewise.
8376 * ipa-inline-analysis.c: Likewise.
8377 * ipa-polymorphic-call.c: Likewise.
8378 * ipa-profile.c: Likewise.
8379 * ipa-prop.c: Likewise.
8380 * ipa-pure-const.c: Likewise.
8381 * lto-cgraph.c: Likewise.
8382 * lto-streamer-in.c: Likewise.
8383 * lto-streamer-out.c: Likewise.
8384 * lto-streamer.c: Likewise.
8385 * tree-streamer-in.c: Likewise.
8386 * tree-streamer-out.c: Likewise.
8387 * tree-streamer.c: Likewise.
8389 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8391 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8393 * opts.c: Remove multiline #include comment.
8395 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8397 * config/nvptx/mkoffload.c (process): Add C++ protection to
8400 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8403 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8404 null before IEEE 128-bit floating point support patch.
8406 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8408 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8409 for (!c) != {0,...,0} ? a : b for vector modes.
8411 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8412 Martin Jambor <mjambor@suse.cz>
8414 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8415 struct func_body_info* instead of struct ipa_node_params*, expecting
8416 fbi->info to be filled in. Replace throughout. Adjust call to
8417 ipa_load_from_parm_agg.
8418 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8419 instead of struct ipa_node_params*. Adjust calls to other functions
8420 so that they pass either fbi or fbi->info.
8421 (set_switch_stmt_execution_predicate): Likewise.
8422 (will_be_nonconstant_predicate): Likewise.
8423 (compute_bb_predicates): Likewise.
8424 (estimate_function_body_sizes): Move asserts earlier. Fill in
8425 struct func_body_info, replace parms_info with fbi.info. Adjust
8426 calls to functions that now accept struct func_body_info.
8427 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8428 (struct func_body_info): Likewise.
8429 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8430 remove static. Adjust callers.
8431 (ipa_load_from_parm_agg): Remove.
8432 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8433 (func_body_info): Likewise.
8434 (ipa_load_from_parm_agg): Adjust prototype.
8436 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8438 * gensupport.c (rtx_handle_directive): Adjust.
8439 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8440 instead of expr list rtx.
8441 (add_define_attr_for_define_subst): Likewise.
8442 (add_define_subst_attr): Likewise.
8443 (read_subst_mapping): Likewise.
8444 (read_rtx): Likewise.
8445 * rtl.h (read_rtx): Adjust.
8447 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8449 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8451 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8454 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8455 (*tls_local_dynamic_base_64_<mode>): Ditto.
8456 (*tls_local_dynamic_base_64_largepic): Ditto.
8457 (tls_global_dynamic_64_<mode>): Update expander pattern.
8458 (tls_local_dynamic_base_64_<mode>): Ditto.
8460 2015-07-15 Richard Biener <rguenther@suse.de>
8462 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8463 and bool_var == 1 -> bool_var simplifications ...
8464 * match.pd: ... to patterns here. Factor out negate_expr_p
8465 cases from the A - B -> A + (-B) patterns as negate_expr_p
8466 predicate and add a -(A + B) -> (-B) - A pattern.
8468 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8470 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8472 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8473 Robert Suchanek <robert.suchanek@imgtec.com>
8475 * config/mips/mips.c (mips_int_mask): New enum.
8476 (mips_shadow_set): Likewise.
8477 (int_mask): New variable.
8478 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8479 (machine_function): Add int_mask and use_shadow_register_set.
8480 (mips_attribute_table): Add attribute handlers for interrupt and
8481 use_shadow_register_set.
8482 (mips_interrupt_mask): New static function.
8483 (mips_handle_interrupt_attr): Likewise.
8484 (mips_handle_use_shadow_register_set_attr): Likewise.
8485 (mips_use_shadow_register_set): Change return type to enum
8486 mips_shadow_set. Add argument handling for use_shadow_register_set
8488 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8489 compare with mips_shadow_set enum.
8490 (mips_compute_frame_info): Add interrupt mask and
8491 use_shadow_register_set to per-function information structure.
8492 Add a stack slot for EPC unconditionally.
8493 (mips_expand_prologue): Compare use_shadow_register_set value
8494 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8495 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8496 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8497 copying the stack pointer from the shadow register set.
8498 * config/mips/mips.h (SR_IM0): New define.
8499 * config/mips/mips.md (mips_rdpgpr): Rename to...
8500 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8501 * doc/extend.texi (Declaring Attributes of Functions): Document
8502 optional arguments for interrupt and use_shadow_register_set
8505 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8507 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8508 interrupt attribute.
8509 (mips_expand_prologue): Disable the floating point unit in an ISR.
8510 * config/mips/mips.h (SR_COP1): New define.
8512 2015-07-15 Richard Biener <rguenther@suse.de>
8514 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8515 to tell how many tokens to peek ahead (default 1).
8516 (parser::eat_token, parser::eat_ident): Return token consumed.
8517 (parser::parse_result): Parse new switch statement.
8518 * match.pd: Use case statements where appropriate.
8520 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8522 PR rtl-optimization/58066
8523 * calls.c (expand_call): Precompute register parameters before stack
8524 alignment is performed.
8526 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8528 PR rtl-optimization/66838
8529 * postreload.c (reload_cse_move2add): Also process
8530 CALL_INSN_FUNCTION_USAGE when resetting information of
8531 call-clobbered registers.
8533 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8534 Cesar Philippidis <cesar@codesourcery.com>
8535 Chung-Lin Tang <cltang@codesourcery.com>
8537 * config/nios2/constraints.md (U, v): New constraints.
8538 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8539 (ldstex_memory_operand): New.
8540 * config/nios2/sync.md: New file.
8541 * config/nios2/nios2.md (unspecv): Add new builtin function
8543 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8544 (top-level): Include sync.md.
8545 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8547 (N2_BUILTINS): Add arch field setting, add new builtins.
8548 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8550 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8551 Also handle ldex/stex/ldsex/stsex builtins.
8552 (nios2_expand_rdprs_builtin): New function.
8553 (nios2_expand_cache_builtin): New function.
8554 (nios2_expand_wrpie_builtin): New function.
8555 (nios2_expand_eni_builtin): New function.
8556 (nios2_expand_builtin): Add arch field handling and new builtin
8558 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8560 * doc/md.texi (Machine Constraints): Document U and v constraints.
8562 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8563 Cesar Philippidis <cesar@codesourcery.com>
8564 Chung-Lin Tang <cltang@codesourcery.com>
8566 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8567 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8568 callee_save_reg_size and uses_anonymous_args fields.
8569 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8570 (nios2_create_cfa_notes): New function.
8571 (nios2_adjust_stack): New function for adjusting stack.
8572 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8573 Use nios2_adjust_stack.
8574 (nios2_expand_epilogue): Likewise.
8575 (nios2_expand_return): New function.
8576 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8577 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8578 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8579 * config/nios2/nios2.md (return): Use nios2_expand_return.
8581 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8582 Cesar Philippidis <cesar@codesourcery.com>
8583 Chung-Lin Tang <cltang@codesourcery.com>
8585 * config/nios2/predicates.md (pop_operation): New.
8586 (ldwm_operation, stwm_operation): New.
8587 (nios2_hard_register_operand): New.
8588 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8589 (ldstwm_operation_p): Declare.
8590 (gen_ldstwm_peep): Declare.
8591 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8592 (base_reg_adjustment_p): New.
8593 (pop_operation_p): New.
8594 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8595 (nios2_ldstwm_regset_p): New.
8596 (ldstwm_operation_p): New.
8598 (nios2_ldst_parallel): New.
8599 (struct ldswm_operand): Declare.
8600 (compare_ldstwm_operands): New.
8601 (can_use_cdx_ldstw): New.
8602 (gen_ldstwm_peep): New.
8603 * config/nios2/nios2-ldstwm.sml: New.
8604 * config/nios2/nios2.md: Include ldstwm.md.
8605 * config/nios2/ldstwm.md: Generated.
8607 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8608 Cesar Philippidis <cesar@codesourcery.com>
8609 Chung-Lin Tang <cltang@codesourcery.com>
8611 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8612 (REG_ALLOC_ORDER): Define.
8613 (ADJUST_REG_ALLOC_ORDER): Define.
8614 (HONOR_REG_ALLOC_ORDER): Define.
8615 (CDX_REG_P): Define.
8616 (ANDCLEAR_INT): Define.
8617 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8618 (nios2_label_align): Declare.
8619 (nios2_cdx_narrow_form_p): Declare.
8620 (nios2_adjust_reg_alloc_order): Declare.
8621 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8623 (nios2_large_unspec_reloc_p): New function, split from...
8624 (nios2_legitimate_pic_operand_p): ...here.
8625 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8626 (nios2_print_operand_punct_valid_p): New.
8627 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8628 (split_mem_address): New.
8629 (split_alu_insn): New.
8631 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8632 (enum nios2_add_insn_kind): New.
8633 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8634 (nios2_add_insn_classify): New.
8635 (nios2_add_insn_asm): New.
8636 (nios2_cdx_narrow_form_p): New.
8637 (label_align, min_labelno, max_labelno): New.
8639 (nios2_label_align): New.
8640 (nios2_adjust_reg_alloc_order): New.
8641 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8642 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8643 * config/nios2/constraints.md (P): New constraint.
8644 * config/nios2/predicates.md (const_and_operand): New.
8646 (stack_memory_operand): New.
8647 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8648 (length): Update to use nios2_cdx_narrow_form_p().
8649 (type): Add new insn type values.
8650 (control, alu, st, ld, shift): Update insn reservations with
8651 new insn type values.
8652 (*high, *lo_sum): Define new insn patterns for constant generation.
8653 (movqi_internal, movhi_internal, movsi_internal): Reduce
8654 alternatives, update asm template to handle CDX variants, update
8656 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8657 template, update type attributes.
8658 (extendhisi2, extendqi<mode>2): Likewise.
8659 (addsi3): Change to use function for asm string.
8660 (subsi3): Add CDX notation to asm template, update type attributes.
8661 (negsi3, one_cmplsi3): Likewise.
8662 (andsi3): New pattern, specialized from logical patterns.
8663 (<code>si3): Remove and case, combine alternatives, update asm
8665 (<shift_op>si3): Add CDX notation, update type attributes.
8666 (rotrsi3): Update type attribute.
8667 (*merge, extzv, insv): New insn patterns.
8668 (return): Change to define_expand.
8669 (simple_return): Add CDX notation, update type attributes.
8670 (indirect_jump): Add CDX notation.
8671 (jump): Update asm cases, update length attribute expression.
8672 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8673 (nios2_cbranch): Update asm cases and length attribute expression
8674 to handle CDX variants.
8675 (nios2_cmp<code>): Update asm template.
8676 (nop): Add CDX notation, update type attributes.
8677 (trap): Add CDX notation.
8678 (ctrapsi4): Update asm cases and length attribute expression to
8680 * doc/md.texi (Machine Constraints): Document P constraint.
8682 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8683 Cesar Philippidis <cesar@codesourcery.com>
8684 Chung-Lin Tang <cltang@codesourcery.com>
8686 * config/nios2/nios2.h (SMALL_INT12): New macro.
8687 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8688 (nios2_valid_addr_expr_p): Use it.
8689 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8690 with implicit "io" instructions on R2.
8691 * config/nios2/constraints.md (w): New constraint.
8692 * config/nios2/predicates.md (ldstio_memory_operand): New.
8693 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8694 operand predicate and constraint.
8695 (ld<bh>io_signed, st<bhw>io>): Likewise.
8696 * doc/md.texi (Machine Constraints): Document w constraint.
8698 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8699 Cesar Philippidis <cesar@codesourcery.com>
8700 Chung-Lin Tang <cltang@codesourcery.com>
8702 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8703 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8704 Nios II architecture level.
8705 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8706 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8707 (OPTION_DEFAULT_SPECS): Define.
8708 (ASM_SPEC): Add -march= spec strings.
8709 * config/nios2/nios2.c (nios2_option_override): Check for
8710 conflicts involving new options.
8711 * config.gcc (nios2*-*-*): Support --with-arch=.
8712 * doc/invoke.texi (Option Summary, Nios II Options): Document
8713 -march=, -mbmx, and -mcdx.
8715 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8717 PR rtl-optimization/66626
8718 * lra-constraints.c (lra_constraints): Prevent equivalence
8719 substitution for static chain pseudo in functions with nonlocal
8722 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8724 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8725 (nios2_emit_stack_limit_check): Add size parameter. Handle
8726 -fstack-limit-symbol as well as -fstack-limit-register.
8727 (nios2_expand_prologue): Emit only a single stack limit check,
8728 even if multiple stack adjustments are required.
8729 (nios2_option_override): Diagnose unsupported combination of -fpic
8730 and -stack-limit-symbol.
8732 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8734 * Makefile.in (top_srcdir): New.
8735 * configure.ac: Use AM_ZLIB.
8736 * configure: Regeneated.
8738 2015-07-14 Matthias Klose <doko@ubuntu.com>
8741 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8743 2015-07-14 Richard Biener <rguenther@suse.de>
8745 PR tree-optimization/66863
8746 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8747 what we record for conversion use stmt lhs inequalities.
8749 2015-07-14 Richard Biener <rguenther@suse.de>
8751 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8752 (decision_tree::gen_gimple): Likewise.
8754 2015-07-14 Tom de Vries <tom@codesourcery.com>
8756 * gcc.c (greater_than_spec_func): Declare forward.
8757 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8758 -ftree-parallelize-loops={0,1}.
8759 (static_spec_functions): Add greater_than_spec_func function with name
8761 (greater_than_spec_func): New function.
8763 2015-07-14 Richard Biener <rguenther@suse.de>
8765 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8766 wideing type conversion case from record_equivalences_from_incoming_edge
8767 and use record_equality to record equivalences.
8768 (record_equivalences_from_incoming_edge): Call
8769 record_temporary_equivalences.
8771 2015-07-14 Richard Biener <rguenther@suse.de>
8773 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8774 (struct if_expr): New.
8775 (struct with_expr): Likewise.
8776 (is_a_helper): Add helpers for if_expr and with_expr.
8777 (struct simplify): Add simplify_kind enum and member. Remove
8779 (simplify::simplify): Adjust.
8780 (lower_commutative): Adjust.
8781 (lower_opt_convert): Likewise.
8782 (lower_cond): Likewise.
8783 (replace_id): Handle with_expr and if_expr.
8784 (lower_for): Adjust.
8785 (dt_simplify::gen_1): New recursive worker, split out from ...
8786 (dt_simplify::gen): ... here. Deal with if and with expansion
8788 (capture_info::capture_info): Take context argument
8789 (capture_info::walk_result): Only analyze specific result.
8790 (parser::parse_result): New function.
8791 (parser::parse_simplify): Adjust to parse ifs with then end
8793 (parser::parse_if): Simplify.
8794 (parser::parse_pattern): Pass down simplify kind.
8795 * match.pd: Convert if structure to new syntax.
8797 2015-07-13 Marek Polacek <polacek@redhat.com>
8799 * rtl.c (rtx_equal_p_cb): Fix typo.
8801 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8803 * omega.h: Don't include config.h, don't include params.h again if
8804 omega.h has already been included.
8805 * graphite-poly.h: Include sese.h.
8806 * graphite.c: Don't include sese.h, remove needless includes and
8807 minimize includes outside #ifdef HAVE_isl block.
8808 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8809 and wrap entire file in #ifdef HAVE_isl
8810 * graphite-dependences.c: Likewise.
8811 * graphite-interchange.c: Likewise.
8812 * graphite-isl-ast-to-gimple.c: Likewise.
8813 * graphite-optimize-isl.c: Likewise.
8814 * graphite-poly.c: Likewise.
8815 * graphite-scop-detection.c: Likewise.
8816 * graphite-sese-to-poly.c: Likewise.
8818 2015-07-13 Tom de Vries <tom@codesourcery.com>
8820 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8822 2015-07-13 Renlin Li <renlin.li@arm.com>
8825 * simplify-rtx.c (simplify_const_relational_operation): Add
8826 side_effects_p checks.
8828 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8830 * bitmap.h: Fix double word typos.
8833 * cfgloopmanip.c: Same.
8836 * cgraphclones.c: Same.
8838 * config/aarch64/aarch64-protos.h: Same.
8839 * config/aarch64/aarch64.c: Same.
8840 * config/aarch64/aarch64.md: Same.
8841 * config/arm/arm.md: Same.
8842 * config/arm/arm1020e.md: Same.
8843 * config/arm/arm1026ejs.md: Same.
8844 * config/arm/arm926ejs.md: Same.
8845 * config/arm/fa526.md: Same.
8846 * config/arm/fa606te.md: Same.
8847 * config/arm/fa626te.md: Same.
8848 * config/arm/fa726te.md: Same.
8849 * config/arm/fmp626.md: Same.
8850 * config/darwin.c: Same.
8851 * config/epiphany/epiphany.c: Same.
8852 * config/frv/frv.c: Same.
8853 * config/ft32/ft32.c: Same.
8854 * config/gnu-user.h: Same.
8855 * config/h8300/constraints.md: Same.
8856 * config/i386/i386.c: Same.
8857 * config/i386/i386.md: Same.
8858 * config/iq2000/iq2000.md: Same.
8859 * config/mips/mips.c: Same.
8860 * config/mmix/mmix.md: Same.
8861 * config/moxie/moxie.c: Same.
8862 * config/nds32/nds32.md: Same.
8863 * config/pa/pa.h: Same.
8864 * config/rs6000/aix.h: Same.
8865 * config/rs6000/rs6000.h: Same.
8866 * config/sh/sh.c: Same.
8867 * config/tilegx/tilegx.md: Same.
8868 * config/tilepro/gen-mul-tables.cc: Same.
8871 * doc/invoke.texi: Same.
8873 * dwarf2out.c: Same.
8878 * hash-table.h: Same.
8879 * internal-fn.c: Same.
8881 * ipa-devirt.c: Same.
8884 * ipa-profile.c: Same.
8889 * reg-stack.c: Same.
8895 * tree-inline.c: Same.
8897 * tree-ssa-dom.c: Same.
8898 * tree-ssa-loop-ivopts.c: Same.
8899 * tree-ssa-structalias.c: Same.
8900 * tree-ssa-tail-merge.c: Same.
8901 * tree-ssa-ter.c: Same.
8902 * tree-ssa-threadupdate.c: Same.
8903 * tree-ssa-uninit.c: Same.
8904 * tree-ssanames.c: Same.
8905 * tree-vect-loop-manip.c: Same.
8911 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8914 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8915 tree_ssa_phiopt_worker): Call it.
8917 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8919 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8920 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8923 2015-07-11 Marek Polacek <polacek@redhat.com>
8926 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
8927 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
8928 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
8929 rather than bb_has_abnormal_call_pred.
8930 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
8931 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
8932 rather than bb_has_abnormal_call_pred.
8934 2015-07-10 Anatoly Sokolov <aesok@post.ru>
8936 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8937 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
8938 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8939 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
8940 v850_legitimate_address_p): New functions.
8941 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8943 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
8946 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
8947 indirect sibcall with register arguments if register available
8948 for argument passing.
8949 (init_cumulative_args): Set cfun->machine->arg_reg_available
8950 to (cum->nregs > 0) or to true if function has a variable
8952 (function_arg_advance_32): Set cfun->machine->arg_reg_available
8953 to false if cum->nregs <= 0.
8954 * config/i386/i386.h (machine_function): Add arg_reg_available.
8956 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8958 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
8959 and gen_higpart instead of gen_rtx_SUBREG.
8960 * config/i386/i386.md
8961 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
8962 (read-modify peephole2): Use gen_lowpart instead of
8963 gen_rtx_SUBREG for operand 5.
8965 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8967 * config/tilepro/gen-mul-tables.cc (main): Change include list for
8969 * config/tilepro/mul-tables.c: Regenerate.
8970 * config/tilegx/mul-tables.c: Regenerate.
8972 2015-07-10 Richard Biener <rguenther@suse.de>
8974 * fold-const.c (distribute_bit_expr): Remove.
8975 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8976 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8977 to A & (B | C) and simplifying A << C1 << C2 to ...
8978 * match.pd: ... patterns here.
8980 2015-07-10 Jiong Wang <jiong.wang@arm.com>
8982 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8983 Mark mem as READONLY and NOTRAP for PIC symbol.
8985 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8987 * gimple-predict.h: New file.
8988 (gimple_predict_predictor, gimple_predict_set_predictor,
8989 gimple_predict_outcome, gimple_predict_set_outcome,
8990 gimple_build_predict): Relocate here.
8991 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8992 gimple_predict_outcome, gimple_predict_set_outcome): Move to
8994 * gimple.c (gimple_build_predict): Move to gimple-predict.h
8995 * basic-block.h: Don't include cfghooks.h.
8996 * backend.h: Don't include predict.h.
8997 * cfghooks.h: Include predict.h.
8998 * gimple-pretty-print.c: Include gimple-predict.h.
8999 * gimplify.c: Likwise.
9000 * predict.c: Adjust includes.
9001 * tree-inline.c: Likewise.
9003 * auto-inc-dec.c: Likewise.
9004 * auto-profile.c: Likewise.
9005 * bb-reorder.c: Likewise.
9006 * builtins.c: Likewise.
9007 * caller-save.c: Likewise.
9008 * calls.c: Likewise.
9009 * cfganal.c: Likewise.
9010 * cfgbuild.c: Likewise.
9012 * cfgcleanup.c: Likewise.
9013 * cfgexpand.c: Likewise.
9014 * cfghooks.c: Likewise.
9015 * cfgloopanal.c: Likewise.
9016 * cfgloop.c: Likewise.
9017 * cfgloopmanip.c: Likewise.
9018 * cfgrtl.c: Likewise.
9019 * cgraph.c: Likewise.
9020 * cgraphunit.c: Likewise.
9021 * combine.c: Likewise.
9022 * cprop.c: Likewise.
9025 * dojump.c: Likewise.
9027 * except.c: Likewise.
9028 * expmed.c: Likewise.
9030 * final.c: Likewise.
9031 * fold-const.c: Likewise.
9032 * function.c: Likewise.
9033 * fwprop.c: Likewise.
9034 * gcc-plugin.h: Likewise.
9036 * genattrtab.c: Likewise.
9037 * genemit.c: Likewise.
9038 * gengtype.c: Likewise.
9039 * genopinit.c: Likewise.
9040 * genoutput.c: Likewise.
9041 * genpreds.c: Likewise.
9042 * genrecog.c: Likewise.
9043 * gimple-fold.c: Likewise.
9044 * gimple-iterator.c: Likewise.
9045 * gimple-ssa-isolate-paths.c: Likewise.
9046 * gimple-ssa-strength-reduction.c: Likewise.
9047 * graph.c: Likewise.
9048 * graphite-blocking.c: Likewise.
9049 * graphite.c: Likewise.
9050 * graphite-dependences.c: Likewise.
9051 * graphite-interchange.c: Likewise.
9052 * graphite-isl-ast-to-gimple.c: Likewise.
9053 * graphite-optimize-isl.c: Likewise.
9054 * graphite-poly.c: Likewise.
9055 * graphite-scop-detection.c: Likewise.
9056 * graphite-sese-to-poly.c: Likewise.
9057 * haifa-sched.c: Likewise.
9058 * ifcvt.c: Likewise.
9059 * internal-fn.c: Likewise.
9060 * ipa-cp.c: Likewise.
9061 * ipa-profile.c: Likewise.
9062 * ipa-split.c: Likewise.
9063 * ipa-utils.c: Likewise.
9064 * ira-build.c: Likewise.
9065 * ira-color.c: Likewise.
9066 * ira-conflicts.c: Likewise.
9067 * ira-costs.c: Likewise.
9068 * ira-emit.c: Likewise.
9069 * ira-lives.c: Likewise.
9071 * loop-doloop.c: Likewise.
9072 * loop-init.c: Likewise.
9073 * loop-invariant.c: Likewise.
9074 * loop-unroll.c: Likewise.
9075 * lower-subreg.c: Likewise.
9076 * lra-assigns.c: Likewise.
9078 * lra-coalesce.c: Likewise.
9079 * lra-constraints.c: Likewise.
9080 * lra-lives.c: Likewise.
9081 * lto-cgraph.c: Likewise.
9082 * lto-streamer-in.c: Likewise.
9083 * mode-switching.c: Likewise.
9084 * modulo-sched.c: Likewise.
9085 * omp-low.c: Likewise.
9086 * optabs.c: Likewise.
9087 * passes.c: Likewise.
9088 * postreload.c: Likewise.
9089 * postreload-gcse.c: Likewise.
9090 * profile.c: Likewise.
9091 * recog.c: Likewise.
9092 * regstat.c: Likewise.
9093 * reload1.c: Likewise.
9094 * reorg.c: Likewise.
9095 * rtlanal.c: Likewise.
9096 * sched-ebb.c: Likewise.
9097 * sel-sched-ir.c: Likewise.
9099 * shrink-wrap.c: Likewise.
9100 * simplify-rtx.c: Likewise.
9102 * store-motion.c: Likewise.
9103 * tracer.c: Likewise.
9104 * trans-mem.c: Likewise.
9105 * tree-call-cdce.c: Likewise.
9106 * tree-cfg.c: Likewise.
9107 * tree-cfgcleanup.c: Likewise.
9108 * tree-chkp.c: Likewise.
9109 * tree-complex.c: Likewise.
9110 * tree-eh.c: Likewise.
9111 * tree-if-conv.c: Likewise.
9112 * tree-loop-distribution.c: Likewise.
9113 * tree-outof-ssa.c: Likewise.
9114 * tree-parloops.c: Likewise.
9115 * tree-predcom.c: Likewise.
9116 * tree-pretty-print.c: Likewise.
9117 * tree-profile.c: Likewise.
9118 * tree-sra.c: Likewise.
9119 * tree-ssa.c: Likewise.
9120 * tree-ssa-coalesce.c: Likewise.
9121 * tree-ssa-dce.c: Likewise.
9122 * tree-ssa-dom.c: Likewise.
9123 * tree-ssa-forwprop.c: Likewise.
9124 * tree-ssa-ifcombine.c: Likewise.
9125 * tree-ssa-loop-ch.c: Likewise.
9126 * tree-ssa-loop-im.c: Likewise.
9127 * tree-ssa-loop-ivcanon.c: Likewise.
9128 * tree-ssa-loop-ivopts.c: Likewise.
9129 * tree-ssa-loop-manip.c: Likewise.
9130 * tree-ssa-loop-prefetch.c: Likewise.
9131 * tree-ssa-loop-unswitch.c: Likewise.
9132 * tree-ssa-math-opts.c: Likewise.
9133 * tree-ssa-phiopt.c: Likewise.
9134 * tree-ssa-pre.c: Likewise.
9135 * tree-ssa-reassoc.c: Likewise.
9136 * tree-ssa-sink.c: Likewise.
9137 * tree-ssa-tail-merge.c: Likewise.
9138 * tree-ssa-threadedge.c: Likewise.
9139 * tree-ssa-threadupdate.c: Likewise.
9140 * tree-switch-conversion.c: Likewise.
9141 * tree-tailcall.c: Likewise.
9142 * tree-vect-data-refs.c: Likewise.
9143 * tree-vect-loop.c: Likewise.
9144 * tree-vect-loop-manip.c: Likewise.
9145 * tree-vectorizer.c: Likewise.
9146 * tree-vrp.c: Likewise.
9147 * ubsan.c: Likewise.
9148 * value-prof.c: Likewise.
9149 * varasm.c: Likewise.
9150 * var-tracking.c: Likewise.
9151 * config/aarch64/aarch64-builtins.c: Likewise.
9152 * config/aarch64/aarch64.c: Likewise.
9153 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9154 * config/alpha/alpha.c: Likewise.
9155 * config/arc/arc.c: Likewise.
9156 * config/arm/arm.c: Likewise.
9157 * config/avr/avr.c: Likewise.
9158 * config/bfin/bfin.c: Likewise.
9159 * config/c6x/c6x.c: Likewise.
9160 * config/cr16/cr16.c: Likewise.
9161 * config/cris/cris.c: Likewise.
9162 * config/darwin.c: Likewise.
9163 * config/darwin-c.c: Likewise.
9164 * config/epiphany/epiphany.c: Likewise.
9165 * config/epiphany/mode-switch-use.c: Likewise.
9166 * config/epiphany/resolve-sw-modes.c: Likewise.
9167 * config/fr30/fr30.c: Likewise.
9168 * config/frv/frv.c: Likewise.
9169 * config/ft32/ft32.c: Likewise.
9170 * config/h8300/h8300.c: Likewise.
9171 * config/i386/i386.c: Likewise.
9172 * config/i386/winnt.c: Likewise.
9173 * config/ia64/ia64.c: Likewise.
9174 * config/iq2000/iq2000.c: Likewise.
9175 * config/lm32/lm32.c: Likewise.
9176 * config/m32c/m32c.c: Likewise.
9177 * config/m32r/m32r.c: Likewise.
9178 * config/m68k/m68k.c: Likewise.
9179 * config/mcore/mcore.c: Likewise.
9180 * config/mep/mep.c: Likewise.
9181 * config/microblaze/microblaze.c: Likewise.
9182 * config/mips/mips.c: Likewise.
9183 * config/mmix/mmix.c: Likewise.
9184 * config/mn10300/mn10300.c: Likewise.
9185 * config/moxie/moxie.c: Likewise.
9186 * config/msp430/msp430.c: Likewise.
9187 * config/nds32/nds32.c: Likewise.
9188 * config/nds32/nds32-cost.c: Likewise.
9189 * config/nds32/nds32-fp-as-gp.c: Likewise.
9190 * config/nds32/nds32-intrinsic.c: Likewise.
9191 * config/nds32/nds32-isr.c: Likewise.
9192 * config/nds32/nds32-md-auxiliary.c: Likewise.
9193 * config/nds32/nds32-memory-manipulation.c: Likewise.
9194 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9195 * config/nds32/nds32-predicates.c: Likewise.
9196 * config/nios2/nios2.c: Likewise.
9197 * config/nvptx/nvptx.c: Likewise.
9198 * config/pa/pa.c: Likewise.
9199 * config/pdp11/pdp11.c: Likewise.
9200 * config/rl78/rl78.c: Likewise.
9201 * config/rs6000/rs6000.c: Likewise.
9202 * config/rx/rx.c: Likewise.
9203 * config/s390/s390.c: Likewise.
9204 * config/sh/sh.c: Likewise.
9205 * config/sh/sh-mem.cc: Likewise.
9206 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9207 * config/sh/sh_treg_combine.cc: Likewise.
9208 * config/sparc/sparc.c: Likewise.
9209 * config/spu/spu.c: Likewise.
9210 * config/stormy16/stormy16.c: Likewise.
9211 * config/tilegx/tilegx.c: Likewise.
9212 * config/tilepro/tilepro.c: Likewise.
9213 * config/v850/v850.c: Likewise.
9214 * config/vax/vax.c: Likewise.
9215 * config/visium/visium.c: Likewise.
9216 * config/xtensa/xtensa.c: Likewise.
9218 2015-07-10 Richard Biener <rguenther@suse.de>
9220 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9221 (decision_tree::gen_gimple): Likewise.
9222 (decision_tree::gen_generic): Likewise.
9224 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9227 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9228 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9230 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9233 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9234 or ORT_TASK contexts.
9235 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9238 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9240 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9243 2015-07-10 Tom de Vries <tom@codesourcery.com>
9245 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9246 insert nit + 1 bound.
9248 2015-07-10 Richard Biener <rguenther@suse.de>
9250 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9251 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9252 (if_convertible_loop_p_1): For this always compute bb predicates.
9253 (if_convertible_loop_p): And free them.
9255 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9257 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9260 2015-07-10 Richard Biener <rguenther@suse.de>
9262 PR tree-optimization/66823
9263 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9266 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9268 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9269 to handle mips[32|64]r3 and mips[32|64]r5.
9271 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9274 * tree-nested.c (get_static_chain): Or in a flag into
9275 info->static_chain_added.
9276 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9277 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9279 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9280 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9283 PR tree-optimization/66718
9284 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9286 (vect_simd_lane_linear): New function.
9287 (vectorizable_simd_clone_call): Support using linear arguments for
9288 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9290 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9293 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9295 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9297 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9298 Use machine mode, not enum machine_mode in the prototype.
9300 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9301 classify 128-bit floating point support.
9302 (FLOAT128_IBM_P): Likewise.
9303 (FLOAT128_VECTOR_P): Likewise.
9304 (FLOAT128_2REG_P): Likewise.
9305 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9306 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9307 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9308 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9310 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9311 tests against TFmode/TDmode, since those modes do not use VSX
9313 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9315 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9316 tests against TFmode, etc.
9317 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9318 (reg_offset_addressing_ok_p): Likewise.
9319 (rs6000_legitimate_offset_address_p): Likewise.
9320 (rs6000_legitimize_address): Likewise.
9321 (rs6000_legitimize_reload_address): Likewise.
9322 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9323 TDmode to use the new helper macros, which will include IFmode and
9325 (rs6000_emit_move): Likewise.
9326 (rs6000_darwin64_record_arg_recurse): Likewise.
9327 (print_operand): Likewise.
9328 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9329 that uses a single vector register as a vector and not as a
9330 floating point register in terms of the calling sequence.
9331 (rs6000_discover_homogeneous_aggregate): Likewise.
9332 (rs6000_return_in_memory): Likewise.
9333 (init_cumulative_args): Likewise.
9334 (rs6000_function_arg_boundary): Likewise.
9335 (rs6000_function_arg_advance_1): Likewise.
9336 (rs6000_function_arg): Likewise.
9337 (rs6000_pass_by_reference): Likewise.
9338 (rs6000_gimplify_va_arg): Likewise.
9339 (rs6000_secondary_reload_memory): Use machine_mode not enum
9341 (rs6000_split_multireg_move): Use new helper macros.
9342 (spe_func_has_64bit_regs_p): Likewise.
9343 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9344 (output_toc): Use new helper macros.
9345 (rs6000_register_move_cost): Likewise.
9346 (rs6000_function_value): Add IEEE 128-bit floating point calling
9348 (rs6000_libcall_value): Likewise.
9349 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9350 floating point support.
9351 (rs6000_vector_mode_supported_p): Likewise.
9353 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9355 PR rtl-optimization/66782
9356 * lra-int.h (struct lra_insn_recog_data): Add comment about
9357 clobbered hard regs for arg_hard_regs.
9358 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9359 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9360 Add condition for processing used hard regs.
9361 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9362 Process clobbered hard regs.
9364 2015-07-09 Michael Matz <matz@suse.de>
9366 * genmatch.c (fprintf_indent): New function.
9367 (operand::gen_transform): Add indent parameter.
9368 (expr::gen_transform, c_expr::gen_transform,
9369 capture::gen_transform): Ditto and use fprintf_indent.
9370 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9371 (dt_operand::gen, dt_operand::gen_predicate,
9372 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9373 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9374 (decision_tree::gen_gimple): Adjust calls and indent generated
9376 (decision_tree::gen_generic): Ditto.
9377 (write_predicate): Ditto.
9379 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9382 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9383 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9384 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9385 {GENERAL,SSE,MMX}_REG_P where appropriate.
9387 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9389 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9390 * builtins.c: Adjust includes.
9391 * gimple.c: Likewise.
9392 * ipa-icf.c: Likewise.
9393 * lto-opts.c: Likewise.
9394 * ipa-reference.c: Likewise.
9395 * lto-section-out.c: Likewise.
9396 * lto-streamer-in.c: Likewise.
9397 * lto-streamer-out.c: Likewise.
9398 * opts-global.c: Likewise.
9399 * symtab.c: Likewise.
9400 * tree-chkp.c: Likewise.
9401 * tree-ssa-live.c: Likewise.
9402 * tree-streamer-in.c: Likewise.
9403 * tree-streamer-out.c: Likewise.
9404 * config/darwin.c: Likewise.
9405 * config/i386/winnt.c: Likewise.
9407 2015-07-09 Richard Biener <rguenther@suse.de>
9409 * genmatch.c (struct expr): Add force_single_use flag.
9410 (expr::expr): Add copy constructor.
9411 (capture_info::walk_match): Gather force_single_use captures.
9412 (expr::gen_transform): Use possibly NULLified sequence.
9413 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9414 seq if any constrained expr is not single-use.
9415 (parser::parse_expr): Refactor to allow multiple flags. Handle
9416 's' flag to force an expression have a single-use if the pattern
9417 simplifies to more than one statement.
9418 * match.pd: Convert most single_use conditionals to :s flags.
9420 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9422 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9423 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9424 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9426 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9428 * flags.h: Don't include flag-types.h or options.h.
9429 * opts-common.c: Adjust includes.
9430 * opts-global.c: Likewise.
9431 * common/config/epiphany/epiphany-common.c: Likewise.
9433 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9436 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9439 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9442 * config/i386/i386.c (ix86_return_in_memory): Return true
9443 if int_size_in_bytes returns negative for IA MCU.
9445 2015-07-09 Marek Polacek <polacek@redhat.com>
9447 PR tree-optimization/66718
9448 * Makefile.in (OBJS): Add gimple-laddress.o.
9449 * passes.def: Schedule pass_laddress.
9450 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9451 * tree-pass.h (make_pass_laddress): Declare.
9452 * gimple-laddress.c: New file.
9454 2015-07-09 Richard Biener <rguenther@suse.de>
9456 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9458 2015-07-09 Richard Biener <rguenther@suse.de>
9460 PR tree-optimization/66807
9461 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9463 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9465 * function.c (stack_protect_epilogue): Use if rather than switch for
9466 check targetm.have_stack_protect_test.
9468 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9470 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9471 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9472 * config/arc/arc.h: Likewise.
9473 * config/arm/arm.h: Likewise.
9474 * config/bfin/bfin.h: Likewise.
9475 * config/epiphany/epiphany.h: Likewise.
9476 * config/frv/frv.h: Likewise.
9477 * config/ia64/ia64.h: Likewise.
9478 * config/iq2000/iq2000.h: Likewise.
9479 * config/lm32/lm32.h: Likewise.
9480 * config/m32r/m32r.h: Likewise.
9481 * config/mcore/mcore.h: Likewise.
9482 * config/mep/mep.h: Likewise.
9483 * config/microblaze/microblaze.h: Likewise.
9484 * config/mips/mips.h: Likewise.
9485 * config/mmix/mmix.h: Likewise.
9486 * config/mn10300/mn10300.h: Likewise.
9487 * config/nds32/nds32.h: Likewise.
9488 * config/nios2/nios2.h: Likewise.
9489 * config/pa/pa.h: Likewise.
9490 * config/rl78/rl78.h: Likewise.
9491 * config/sh/sh.h: Likewise.
9492 * config/sparc/sparc.h: Likewise.
9493 * config/stormy16/stormy16.h: Likewise.
9494 * config/tilegx/tilegx.h: Likewise.
9495 * config/tilepro/tilepro.h: Likewise.
9496 * config/v850/v850.h: Likewise.
9497 * config/xtensa/xtensa.h: Likewise.
9498 * doc/tm.texi: Regenerate.
9499 * doc/tm.texi.in: Adjust.
9500 * combine.c (simplify_set): Likewise.
9501 (simplify_comparison): Likewise.
9502 * expr.c (store_constructor): Likewise.
9503 * internal-fn.c (expand_arith_overflow): Likewise.
9504 * reload.c (push_reload): Likewise.
9505 (find_reloads): Likewise.
9506 (find_reloads_subreg_address): Likewise.
9507 * reload1.c (eliminate_regs_1): Likewise.
9508 * rtlanal.c (nonzero_bits1): Likewise.
9509 (num_sign_bit_copies1): Likewise.
9510 * simplify-rtx.c (simplify_truncation): Likewise.
9512 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9514 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9515 of AUTO_INC_DEC with the preprocessor.
9516 * combine.c (combine_instructions): Likewise.
9517 (can_combine_p): Likewise.
9518 (try_combine): Likewise.
9519 * emit-rtl.c (try_split): Likewise.
9520 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9521 * lower-subreg.c (resolve_simple_move): Likewise.
9522 * lra.c (update_inc_notes): Likewise.
9523 * recog.c (asm_operand_ok): Likewise.
9524 (constrain_operands): Likewise.
9525 * regrename.c (scan_rtx_address): Likewise.
9526 * reload.c (update_auto_inc_notes): Likewise.
9527 (reg_inc_found_and_valid_p): Likewise.
9528 * reload1.c (reload): Likewise.
9529 (emit_input_reload_insns): Likewise.
9530 (delete_output_reload): Likewise.
9531 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9532 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9534 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9536 * rtl.h: Always define AUTO_INC_DEC.
9537 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9538 * combine.c (combine_instructions): Likewise.
9539 (can_combine_p): Likewise.
9540 (try_combine): Likewise.
9541 * emit-rtl.c (try_split): Likewise.
9542 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9543 * lower-subreg.c (resolve_simple_move): Likewise.
9544 * lra.c (update_inc_notes): Likewise.
9545 * recog.c (asm_operand_ok): Likewise.
9546 (constrain_operands): Likewise.
9547 * regrename.c (scan_rtx_address): Likewise.
9548 * reload.c (update_auto_inc_notes): Likewise.
9549 (find_equiv_reg): Likewise.
9550 * reload1.c (reload): Likewise.
9551 (reload_as_needed): Likewise.
9552 (choose_reload_regs): Likewise.
9553 (emit_input_reload_insns): Likewise.
9554 (delete_output_reload): Likewise.
9555 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9556 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9558 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9560 * combine.c (can_combine_def_p): Don't check the value of
9561 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9562 (combinable_i3pat): Likewise.
9563 (mark_used_regs_combine): Likewise.
9564 * regrename.c (rename_chains): Likewise.
9565 * reload.c (find_reloads_address): Likewise.
9566 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9568 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9570 * combine.c (update_rsp_from_reg_equal): Don't check if
9571 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9572 (reg_nonzero_bits_for_combine): Likewise.
9573 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9575 * config/frv/frv.h: Likewise.
9576 * config/lm32/lm32.h: Likewise.
9577 * config/mep/mep.h: Likewise.
9578 * config/mips/mips.h: Likewise.
9579 * config/rs6000/rs6000.h: Likewise.
9580 * config/sh/sh.h: Likewise.
9581 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9582 * config/tilepro/tilepro.h: Likewise.
9583 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9584 * doc/tm.texi: Regenerate.
9585 * doc/tm.texi.in: Adjust.
9586 * rtlanal.c (nonzero_bits1): Likewise.
9588 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9590 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9591 with the preprocessor.
9592 (combine_instructions): Likewise.
9593 (try_combine): Likewise.
9595 (distribute_notes): Likewise.
9597 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9599 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9601 (simplify_set): Likewise.
9602 * cse.c (cse_insn): Likewise.
9603 * fold-const.c (fold_single_bit_test): Likewise.
9604 (fold_unary_loc): Likewise.
9605 * postreload.c (reload_cse_simplify_set): Likewise.
9606 (reload_cse_simplify_operands): Likewise.
9608 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9610 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9611 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9613 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9616 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9617 __iamcu__ is defined.
9619 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9621 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9623 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9626 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9627 names from preservation.
9629 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9632 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9634 (function_arg_advance_32): Don't pass vectors in registers for
9636 (function_arg_32): Likewise.
9637 (ix86_return_in_memory): Don't return vectors in registers for
9640 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9643 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9644 hard regno live at the start of BB with incoming abnormal edges.
9645 * lra-lives.c (process_bb_lives): Ditto.
9647 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9650 * config/nvptx/mkoffload.c (main): Create an offload image only in
9651 64-bit configurations.
9653 2015-07-08 Martin Liska <mliska@suse.cz>
9656 * tree-sra.c (create_access_1): Call ctor without brackets.
9657 (create_artificial_child_access): Likewise.
9659 2015-07-08 Richard Biener <rguenther@suse.de>
9661 PR tree-optimization/66793
9662 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9663 Properly split the block after stmts ending it.
9665 2015-07-08 Richard Biener <rguenther@suse.de>
9667 PR tree-optimization/66794
9668 * passes.c (execute_function_todo): Assert that post-dominators
9670 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9671 Free post-dominators.
9673 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9675 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9678 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9680 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9681 more than or equal 8 and less than 32 when optimizing for size.
9683 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9685 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9686 COSTS_N_INSNS (1) and increment it appropriately throughout the
9689 2015-07-08 Richard Biener <rguenther@suse.de>
9691 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9693 2015-07-08 Alan Modra <amodra@gmail.com>
9695 * target.def (rtx_costs): Remove "code" param, add "mode".
9696 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9697 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9698 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9699 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9700 call. Track mode when given in rtx.
9701 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9702 (default_address_cost): Pass Pmode to rtx_cost.
9703 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9704 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9706 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9707 (notreg_cost): Add mode param. Use it.
9708 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9709 mode param and pass to set_src_cost. Update all calls.
9710 (hash_scan_set): Formatting.
9711 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9712 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9714 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9715 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9716 emit_store_flag): Update set_src_cost and rtx_cost calls.
9717 * auto-inc-dec.c (attempt_change): Likewise.
9718 * calls.c (precompute_register_parameters): Likewise.
9719 * combine.c (expand_compound_operation, make_extraction,
9720 force_to_mode, distribute_and_simplify_rtx): Likewise.
9721 * dojump.c (prefer_and_bit_test): Likewise.
9722 * dse.c (find_shift_sequence): Likewise.
9723 * expr.c (compress_float_constant): Likewise.
9724 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9725 * ifcvt.c (noce_try_sign_mask): Likewise.
9726 * loop-doloop.c (doloop_optimize): Likewise.
9727 * loop-invariant.c (create_new_invariant): Likewise.
9728 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9729 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9730 lshift_cheap_p): Likewise.
9731 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9732 try_replace_in_use, reload_cse_move2add): Likewise.
9733 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9735 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9736 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9737 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9738 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9739 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9740 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9742 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9743 * config/arc/arc.c (arc_rtx_costs): Likewise.
9744 * config/arm/arm.c (arm_rtx_costs): Likewise.
9745 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9746 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9747 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9748 * config/cris/cris.c (cris_rtx_costs): Likewise.
9749 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9750 * config/frv/frv.c (frv_rtx_costs): Likewise.
9751 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9752 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9753 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9754 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9755 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9756 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9757 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9758 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9759 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9760 * config/mep/mep.c (mep_rtx_cost): Likewise.
9761 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9762 * config/mips/mips.c (mips_rtx_costs): Likewise.
9763 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9764 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9765 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9766 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9767 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9768 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9769 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9770 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9771 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9772 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9773 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9774 * config/s390/s390.c (s390_rtx_costs): Likewise.
9775 * config/sh/sh.c (sh_rtx_costs): Likewise.
9776 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9777 * config/spu/spu.c (spu_rtx_costs): Likewise.
9778 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9779 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9780 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9781 * config/v850/v850.c (v850_rtx_costs): Likewise.
9782 * config/vax/vax.c (vax_rtx_costs): Likewise.
9783 * config/visium/visium.c (visium_rtx_costs): Likewise.
9784 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9785 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9786 "code" param, and pass as outer_code to first rtx_cost call. Pass
9787 mode to rtx_cost calls.
9788 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9790 (aarch64_rtx_costs_wrapper): Update.
9791 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9792 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9794 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9796 (avr_operand_rtx_cost): Similarly.
9797 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9798 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9799 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9800 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9801 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9802 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9804 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9805 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9806 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9807 * doc/tm.texi: Regenerate.
9809 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9811 * tree-core.h: Include symtab.h.
9812 * rtl.h: Include hard-reg-set.h but not flags.h.
9813 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9814 hard-reg-set.h is always included.
9815 * regs.h: Don't include hard-reg-set.h or rtl.h.
9816 * cfg.h: Include dominance.h.
9817 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9818 * backend.h: New. Aggregate commonly used backend header files.
9819 * gimple-ssa.h: Don't include tree-hasher.h.
9820 * ssa.h: New. Aggregate commonly used SSA header files.
9821 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9822 * sel-sched-ir.h: Flatten includes.
9823 * lra-int.h: Flatten completely.
9824 * sel-sched-dump.h: Flatten includes.
9825 * ira-int.h: Flatten includes.
9826 * gimple-streamer.h: Remove all includes.
9827 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9828 * resource.h: Flatten hard-reg-set.h and df.h.
9829 * sched-int.h: Flatten insn-arrt.h and df.h.
9830 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9831 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9832 * genattrtab.c (write_header): Adjust generated includes.
9833 * genautomata.c (main): Likewise.
9834 * genconditions.c (write-header): Likewise.
9835 * genemit.c (main): Likewise.
9836 * gengtype.c (open_base_files): Likewise.
9837 * genopinit.c (main): Likewise.
9838 * genoutput.c (output_prologue): Likewise.
9839 * genpeep.c (main): Likewise.
9840 * genpreds.c (write_insn_preds_c): Likewise.
9841 * genrecog.c (write_header): Likewise.
9842 * alias.c: Adjust includes.
9844 * attribs.c: Likewise.
9845 * auto-inc-dec.c: Likewise.
9846 * auto-profile.c: Likewise.
9847 * bb-reorder.c: Likewise.
9848 * bt-load.c: Likewise.
9849 * builtins.c: Likewise.
9850 * caller-save.c: Likewise.
9851 * calls.c: Likewise.
9854 * cfganal.c: Likewise.
9855 * cfgbuild.c: Likewise.
9856 * cfgcleanup.c: Likewise.
9857 * cfgexpand.c: Likewise.
9858 * cfghooks.c: Likewise.
9859 * cfgloop.c: Likewise.
9860 * cfgloopanal.c: Likewise.
9861 * cfgloopmanip.c: Likewise.
9862 * cfgrtl.c: Likewise.
9863 * cgraph.c: Likewise.
9864 * cgraphbuild.c: Likewise.
9865 * cgraphclones.c: Likewise.
9866 * cgraphunit.c: Likewise.
9867 * cilk-common.c: Likewise.
9868 * combine-stack-adj.c: Likewise.
9869 * combine.c: Likewise.
9870 * compare-elim.c: Likewise.
9871 * convert.c: Likewise.
9872 * coverage.c: Likewise.
9873 * cppbuiltin.c: Likewise.
9874 * cprop.c: Likewise.
9876 * cselib.c: Likewise.
9877 * data-streamer-in.c: Likewise.
9878 * data-streamer-out.c: Likewise.
9879 * data-streamer.c: Likewise.
9880 * dbxout.c: Likewise.
9883 * debug.c: Likewise.
9884 * df-core.c: Likewise.
9885 * df-problems.c: Likewise.
9886 * df-scan.c: Likewise.
9888 * dojump.c: Likewise.
9889 * dominance.c: Likewise.
9890 * domwalk.c: Likewise.
9891 * double-int.c: Likewise.
9893 * dumpfile.c: Likewise.
9894 * dwarf2asm.c: Likewise.
9895 * dwarf2cfi.c: Likewise.
9896 * dwarf2out.c: Likewise.
9897 * emit-rtl.c: Likewise.
9898 * et-forest.c: Likewise.
9899 * except.c: Likewise.
9900 * explow.c: Likewise.
9901 * expmed.c: Likewise.
9903 * final.c: Likewise.
9904 * fixed-value.c: Likewise.
9905 * fold-const.c: Likewise.
9906 * function.c: Likewise.
9907 * fwprop.c: Likewise.
9908 * gcc-plugin.h: Likewise.
9909 * gcse-common.c: Likewise.
9911 * generic-match-head.c: Likewise.
9912 * ggc-page.c: Likewise.
9913 * gimple-builder.c: Likewise.
9914 * gimple-expr.c: Likewise.
9915 * gimple-fold.c: Likewise.
9916 * gimple-iterator.c: Likewise.
9917 * gimple-low.c: Likewise.
9918 * gimple-match-head.c: Likewise.
9919 * gimple-pretty-print.c: Likewise.
9920 * gimple-ssa-isolate-paths.c: Likewise.
9921 * gimple-ssa-strength-reduction.c: Likewise.
9922 * gimple-streamer-in.c: Likewise.
9923 * gimple-streamer-out.c: Likewise.
9924 * gimple-walk.c: Likewise.
9925 * gimple.c: Likewise.
9926 * gimplify-me.c: Likewise.
9927 * gimplify.c: Likewise.
9928 * godump.c: Likewise.
9929 * graph.c: Likewise.
9930 * graphite-blocking.c: Likewise.
9931 * graphite-dependences.c: Likewise.
9932 * graphite-interchange.c: Likewise.
9933 * graphite-isl-ast-to-gimple.c: Likewise.
9934 * graphite-optimize-isl.c: Likewise.
9935 * graphite-poly.c: Likewise.
9936 * graphite-scop-detection.c: Likewise.
9937 * graphite-sese-to-poly.c: Likewise.
9938 * graphite.c: Likewise.
9939 * haifa-sched.c: Likewise.
9940 * hw-doloop.c: Likewise.
9941 * ifcvt.c: Likewise.
9942 * init-regs.c: Likewise.
9943 * internal-fn.c: Likewise.
9944 * ipa-chkp.c: Likewise.
9945 * ipa-comdats.c: Likewise.
9946 * ipa-cp.c: Likewise.
9947 * ipa-devirt.c: Likewise.
9948 * ipa-icf-gimple.c: Likewise.
9949 * ipa-icf.c: Likewise.
9950 * ipa-inline-analysis.c: Likewise.
9951 * ipa-inline-transform.c: Likewise.
9952 * ipa-inline.c: Likewise.
9953 * ipa-polymorphic-call.c: Likewise.
9954 * ipa-profile.c: Likewise.
9955 * ipa-prop.c: Likewise.
9956 * ipa-pure-const.c: Likewise.
9957 * ipa-ref.c: Likewise.
9958 * ipa-reference.c: Likewise.
9959 * ipa-split.c: Likewise.
9960 * ipa-utils.c: Likewise.
9961 * ipa-visibility.c: Likewise.
9963 * ira-build.c: Likewise.
9964 * ira-color.c: Likewise.
9965 * ira-conflicts.c: Likewise.
9966 * ira-costs.c: Likewise.
9967 * ira-emit.c: Likewise.
9968 * ira-lives.c: Likewise.
9971 * langhooks.c: Likewise.
9973 * loop-doloop.c: Likewise.
9974 * loop-init.c: Likewise.
9975 * loop-invariant.c: Likewise.
9976 * loop-iv.c: Likewise.
9977 * loop-unroll.c: Likewise.
9978 * lower-subreg.c: Likewise.
9979 * lra-assigns.c: Likewise.
9980 * lra-coalesce.c: Likewise.
9981 * lra-constraints.c: Likewise.
9982 * lra-eliminations.c: Likewise.
9983 * lra-lives.c: Likewise.
9984 * lra-remat.c: Likewise.
9985 * lra-spills.c: Likewise.
9987 * lto-cgraph.c: Likewise.
9988 * lto-compress.c: Likewise.
9989 * lto-opts.c: Likewise.
9990 * lto-section-in.c: Likewise.
9991 * lto-section-out.c: Likewise.
9992 * lto-streamer-in.c: Likewise.
9993 * lto-streamer-out.c: Likewise.
9994 * lto-streamer.c: Likewise.
9996 * mode-switching.c: Likewise.
9997 * modulo-sched.c: Likewise.
9998 * omega.c: Likewise.
9999 * omp-low.c: Likewise.
10000 * optabs.c: Likewise.
10001 * opts-global.c: Likewise.
10002 * passes.c: Likewise.
10003 * plugin.c: Likewise.
10004 * postreload-gcse.c: Likewise.
10005 * postreload.c: Likewise.
10006 * predict.c: Likewise.
10007 * print-rtl.c: Likewise.
10008 * print-tree.c: Likewise.
10009 * profile.c: Likewise.
10010 * real.c: Likewise.
10011 * realmpfr.c: Likewise.
10012 * recog.c: Likewise.
10014 * reg-stack.c: Likewise.
10015 * regcprop.c: Likewise.
10016 * reginfo.c: Likewise.
10017 * regrename.c: Likewise.
10018 * regstat.c: Likewise.
10019 * reload.c: Likewise.
10020 * reload1.c: Likewise.
10021 * reorg.c: Likewise.
10022 * resource.c: Likewise.
10023 * rtl-chkp.c: Likewise.
10024 * rtlanal.c: Likewise.
10025 * rtlhooks.c: Likewise.
10026 * sanopt.c: Likewise.
10027 * sched-deps.c: Likewise.
10028 * sched-ebb.c: Likewise.
10029 * sched-rgn.c: Likewise.
10030 * sched-vis.c: Likewise.
10031 * sdbout.c: Likewise.
10032 * sel-sched-dump.c: Likewise.
10033 * sel-sched-ir.c: Likewise.
10034 * sel-sched.c: Likewise.
10035 * sese.c: Likewise.
10036 * shrink-wrap.c: Likewise.
10037 * simplify-rtx.c: Likewise.
10038 * stack-ptr-mod.c: Likewise.
10039 * stmt.c: Likewise.
10040 * stor-layout.c: Likewise.
10041 * store-motion.c: Likewise.
10042 * stringpool.c: Likewise.
10043 * symtab.c: Likewise.
10044 * target-globals.c: Likewise.
10045 * targhooks.c: Likewise.
10046 * toplev.c: Likewise.
10047 * tracer.c: Likewise.
10048 * trans-mem.c: Likewise.
10049 * tree-affine.c: Likewise.
10050 * tree-browser.c: Likewise.
10051 * tree-call-cdce.c: Likewise.
10052 * tree-cfg.c: Likewise.
10053 * tree-cfgcleanup.c: Likewise.
10054 * tree-chkp-opt.c: Likewise.
10055 * tree-chkp.c: Likewise.
10056 * tree-chrec.c: Likewise.
10057 * tree-complex.c: Likewise.
10058 * tree-data-ref.c: Likewise.
10059 * tree-dfa.c: Likewise.
10060 * tree-diagnostic.c: Likewise.
10061 * tree-dump.c: Likewise.
10062 * tree-eh.c: Likewise.
10063 * tree-emutls.c: Likewise.
10064 * tree-if-conv.c: Likewise.
10065 * tree-inline.c: Likewise.
10066 * tree-into-ssa.c: Likewise.
10067 * tree-iterator.c: Likewise.
10068 * tree-loop-distribution.c: Likewise.
10069 * tree-nested.c: Likewise.
10070 * tree-nrv.c: Likewise.
10071 * tree-object-size.c: Likewise.
10072 * tree-outof-ssa.c: Likewise.
10073 * tree-parloops.c: Likewise.
10074 * tree-phinodes.c: Likewise.
10075 * tree-predcom.c: Likewise.
10076 * tree-pretty-print.c: Likewise.
10077 * tree-profile.c: Likewise.
10078 * tree-scalar-evolution.c: Likewise.
10079 * tree-sra.c: Likewise.
10080 * tree-ssa-address.c: Likewise.
10081 * tree-ssa-alias.c: Likewise.
10082 * tree-ssa-ccp.c: Likewise.
10083 * tree-ssa-coalesce.c: Likewise.
10084 * tree-ssa-copy.c: Likewise.
10085 * tree-ssa-copyrename.c: Likewise.
10086 * tree-ssa-dce.c: Likewise.
10087 * tree-ssa-dom.c: Likewise.
10088 * tree-ssa-dse.c: Likewise.
10089 * tree-ssa-forwprop.c: Likewise.
10090 * tree-ssa-ifcombine.c: Likewise.
10091 * tree-ssa-live.c: Likewise.
10092 * tree-ssa-loop-ch.c: Likewise.
10093 * tree-ssa-loop-im.c: Likewise.
10094 * tree-ssa-loop-ivcanon.c: Likewise.
10095 * tree-ssa-loop-ivopts.c: Likewise.
10096 * tree-ssa-loop-manip.c: Likewise.
10097 * tree-ssa-loop-niter.c: Likewise.
10098 * tree-ssa-loop-prefetch.c: Likewise.
10099 * tree-ssa-loop-unswitch.c: Likewise.
10100 * tree-ssa-loop.c: Likewise.
10101 * tree-ssa-math-opts.c: Likewise.
10102 * tree-ssa-operands.c: Likewise.
10103 * tree-ssa-phiopt.c: Likewise.
10104 * tree-ssa-phiprop.c: Likewise.
10105 * tree-ssa-pre.c: Likewise.
10106 * tree-ssa-propagate.c: Likewise.
10107 * tree-ssa-reassoc.c: Likewise.
10108 * tree-ssa-sccvn.c: Likewise.
10109 * tree-ssa-scopedtables.c: Likewise.
10110 * tree-ssa-sink.c: Likewise.
10111 * tree-ssa-strlen.c: Likewise.
10112 * tree-ssa-structalias.c: Likewise.
10113 * tree-ssa-tail-merge.c: Likewise.
10114 * tree-ssa-ter.c: Likewise.
10115 * tree-ssa-threadedge.c: Likewise.
10116 * tree-ssa-threadupdate.c: Likewise.
10117 * tree-ssa-uncprop.c: Likewise.
10118 * tree-ssa-uninit.c: Likewise.
10119 * tree-ssa.c: Likewise.
10120 * tree-ssanames.c: Likewise.
10121 * tree-stdarg.c: Likewise.
10122 * tree-streamer-in.c: Likewise.
10123 * tree-streamer-out.c: Likewise.
10124 * tree-streamer.c: Likewise.
10125 * tree-switch-conversion.c: Likewise.
10126 * tree-tailcall.c: Likewise.
10127 * tree-vect-data-refs.c: Likewise.
10128 * tree-vect-generic.c: Likewise.
10129 * tree-vect-loop-manip.c: Likewise.
10130 * tree-vect-loop.c: Likewise.
10131 * tree-vect-patterns.c: Likewise.
10132 * tree-vect-slp.c: Likewise.
10133 * tree-vect-stmts.c: Likewise.
10134 * tree-vectorizer.c: Likewise.
10135 * tree-vrp.c: Likewise.
10136 * tree.c: Likewise.
10137 * tsan.c: Likewise.
10138 * ubsan.c: Likewise.
10139 * valtrack.c: Likewise.
10140 * value-prof.c: Likewise.
10141 * var-tracking.c: Likewise.
10142 * varasm.c: Likewise.
10143 * varpool.c: Likewise.
10144 * vmsdbgout.c: Likewise.
10145 * vtable-verify.c: Likewise.
10147 * wide-int.cc: Likewise.
10148 * xcoffout.c: Likewise.
10149 * config/aarch64/aarch64-builtins.c: Likewise.
10150 * config/aarch64/aarch64.c: Likewise.
10151 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10152 * config/alpha/alpha.c: Likewise.
10153 * config/arc/arc.c: Likewise.
10154 * config/arm/aarch-common.c: Likewise.
10155 * config/arm/arm-builtins.c: Likewise.
10156 * config/arm/arm-c.c: Likewise.
10157 * config/arm/arm.c: Likewise.
10158 * config/avr/avr-c.c: Likewise.
10159 * config/avr/avr-log.c: Likewise.
10160 * config/avr/avr.c: Likewise.
10161 * config/bfin/bfin.c: Likewise.
10162 * config/c6x/c6x.c: Likewise.
10163 * config/cr16/cr16.c: Likewise.
10164 * config/cris/cris.c: Likewise.
10165 * config/darwin-c.c: Likewise.
10166 * config/darwin.c: Likewise.
10167 * config/epiphany/epiphany.c: Likewise.
10168 * config/epiphany/mode-switch-use.c: Likewise.
10169 * config/epiphany/resolve-sw-modes.c: Likewise.
10170 * config/fr30/fr30.c: Likewise.
10171 * config/frv/frv.c: Likewise.
10172 * config/ft32/ft32.c: Likewise.
10173 * config/h8300/h8300.c: Likewise.
10174 * config/i386/i386-c.c: Likewise.
10175 * config/i386/i386.c: Likewise.
10176 * config/i386/msformat-c.c: Likewise.
10177 * config/i386/winnt-cxx.c: Likewise.
10178 * config/i386/winnt-stubs.c: Likewise.
10179 * config/i386/winnt.c: Likewise.
10180 * config/ia64/ia64-c.c: Likewise.
10181 * config/ia64/ia64.c: Likewise.
10182 * config/iq2000/iq2000.c: Likewise.
10183 * config/lm32/lm32.c: Likewise.
10184 * config/m32c/m32c-pragma.c: Likewise.
10185 * config/m32c/m32c.c: Likewise.
10186 * config/m32r/m32r.c: Likewise.
10187 * config/m68k/m68k.c: Likewise.
10188 * config/mcore/mcore.c: Likewise.
10189 * config/mep/mep-pragma.c: Likewise.
10190 * config/mep/mep.c: Likewise.
10191 * config/microblaze/microblaze-c.c: Likewise.
10192 * config/microblaze/microblaze.c: Likewise.
10193 * config/mips/mips.c: Likewise.
10194 * config/mmix/mmix.c: Likewise.
10195 * config/mn10300/mn10300.c: Likewise.
10196 * config/moxie/moxie.c: Likewise.
10197 * config/msp430/msp430-c.c: Likewise.
10198 * config/msp430/msp430.c: Likewise.
10199 * config/nds32/nds32-cost.c: Likewise.
10200 * config/nds32/nds32-fp-as-gp.c: Likewise.
10201 * config/nds32/nds32-intrinsic.c: Likewise.
10202 * config/nds32/nds32-isr.c: Likewise.
10203 * config/nds32/nds32-md-auxiliary.c: Likewise.
10204 * config/nds32/nds32-memory-manipulation.c: Likewise.
10205 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10206 * config/nds32/nds32-predicates.c: Likewise.
10207 * config/nds32/nds32.c: Likewise.
10208 * config/nios2/nios2.c: Likewise.
10209 * config/nvptx/nvptx.c: Likewise.
10210 * config/pa/pa.c: Likewise.
10211 * config/pdp11/pdp11.c: Likewise.
10212 * config/rl78/rl78-c.c: Likewise.
10213 * config/rl78/rl78.c: Likewise.
10214 * config/rs6000/rs6000-c.c: Likewise.
10215 * config/rs6000/rs6000.c: Likewise.
10216 * config/rx/rx.c: Likewise.
10217 * config/s390/s390-c.c: Likewise.
10218 * config/s390/s390.c: Likewise.
10219 * config/sh/sh-c.c: Likewise.
10220 * config/sh/sh-mem.cc: Likewise.
10221 * config/sh/sh.c: Likewise.
10222 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10223 * config/sh/sh_treg_combine.cc: Likewise.
10224 * config/sol2-c.c: Likewise.
10225 * config/sol2-cxx.c: Likewise.
10226 * config/sol2-stubs.c: Likewise.
10227 * config/sol2.c: Likewise.
10228 * config/sparc/sparc-c.c: Likewise.
10229 * config/sparc/sparc.c: Likewise.
10230 * config/spu/spu-c.c: Likewise.
10231 * config/spu/spu.c: Likewise.
10232 * config/stormy16/stormy16.c: Likewise.
10233 * config/tilegx/mul-tables.c: Likewise.
10234 * config/tilegx/tilegx-c.c: Likewise.
10235 * config/tilegx/tilegx.c: Likewise.
10236 * config/tilepro/mul-tables.c: Likewise.
10237 * config/tilepro/tilepro-c.c: Likewise.
10238 * config/tilepro/tilepro.c: Likewise.
10239 * config/v850/v850-c.c: Likewise.
10240 * config/v850/v850.c: Likewise.
10241 * config/vax/vax.c: Likewise.
10242 * config/visium/visium.c: Likewise.
10243 * config/vms/vms-c.c: Likewise.
10244 * config/vms/vms.c: Likewise.
10245 * config/vxworks.c: Likewise.
10246 * config/xtensa/xtensa.c: Likewise.
10248 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10250 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10251 Remove operand constraints. Change operand 2 predicate to
10252 nonmemory operand. Limit const_int values to mode bitsize. Only
10253 allow const_int values less than 32 when optimizing for size.
10254 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10255 Remove operand constraints.
10256 (*bt<mode>): Use SImode for const_int values less than 32.
10257 (regmode): Remove mode attribute.
10259 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10261 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10262 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10263 moxie_legitimate_address_p): New functions.
10264 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10266 2015-07-07 Tom de Vries <tom@codesourcery.com>
10268 PR tree-optimization/66642
10269 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10270 header comment. Rename split_edge variable to edge_at_split. Split
10271 exit edge to create new loop exit bb. Insert loop exit phis in new
10274 2015-07-07 Tom de Vries <tom@codesourcery.com>
10276 * tree-cfg.c (get_virtual_phi): New function.
10277 * tree-cfg.h (get_virtual_phi): Declare.
10278 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10279 (rewrite_virtuals_into_loop_closed_ssa): New function.
10280 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10282 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10283 (transform_to_exit_first_loop_alt): Use
10284 rewrite_virtuals_into_loop_closed_ssa.
10286 2015-07-07 Richard Biener <rguenther@suse.de>
10288 * fold-const.c (fold_binary_loc): Move
10289 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10290 * match.pd: ... here.
10291 Add (X * C1) % C2 -> 0 simplification pattern derived from
10294 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10297 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10298 change for target/65249.
10300 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10302 * symtab.c (address_matters_1): Fix typo in comment above.
10303 (can_increase_alignment_p): Likewise.
10305 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10307 * function.c (free_after_compilation): Clear PROP_cfg in
10308 f->curr_properties.
10310 2015-07-07 Richard Biener <rguenther@suse.de>
10312 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10314 (add_control_edge): Remove excessive vertical space in dumping.
10315 (process_ssa_edge_worklist): Simulate at most one statement and
10316 return whether we did. Do not simulate PHIs if they are in a
10317 BB not yet simulated.
10318 (ssa_propagate): Adjust to always drain the BB worklist whenever
10319 a BB is available there, likewise the VARYING edges list before
10320 the interesting edge list.
10322 2015-07-07 Christian Bruel <christian.bruel@st.com>
10325 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10327 2015-07-07 Richard Biener <rguenther@suse.de>
10329 PR middle-end/66739
10330 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10333 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10335 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10336 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10337 Copy operand 0 to a temporary if !ext_register_operand. Remove
10338 ancient extract_bit_field workaround.
10339 (insv<mode>_1): Rename from mov<mode>_insv_1.
10340 (*insvqi): Rename from *movqi_insv_2.
10341 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10342 for renamed insvsi_1.
10343 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10345 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10347 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10348 call to nvptx_reorg_subreg.
10350 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10352 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10353 * graphite-dependencies.c, graphite-interchange.c,
10354 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10355 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10358 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10360 * match.pd: Remove element_mode inside HONOR_*.
10361 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10362 (~X | X -> -1, ~X ^ X -> -1): Merge.
10363 * tree.c (build_each_one_cst): New function.
10364 * tree.h (build_each_one_cst): Likewise.
10366 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10368 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10371 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10373 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10374 * config/mips/mips.opt (mfused-madd): Remove.
10375 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10376 * config/mips/mips.h (TARGET_MIPS8000): New.
10377 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10378 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10379 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10380 (ISA_HAS_NMADD4_NMSUB4): Remove.
10381 (ISA_HAS_NMADD3_NMSUB3): Remove.
10382 (ISA_HAS_FUSED_MADD4): New.
10383 (ISA_HAS_UNFUSED_MADD4): New.
10384 (ISA_HAS_FUSED_MADDF): New.
10385 (ISA_HAS_FUSED_MADD3): New.
10386 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10387 (*fma<mode>4_madd3) New.
10388 (*fma<mode>4_madd4) New.
10389 (*fma<mode>4_maddf) New.
10391 (*fms<mode>4_msub3) New.
10392 (*fms<mode>4_msub4) New.
10394 (*fnma<mode>4_nmadd3) New.
10395 (*fnma<mode>4_nmadd4) New.
10397 (*fnms<mode>4_nmsub3) New.
10398 (*fnms<mode>4_nmsub4) New.
10399 (*madd4<mode>) Modify to be unfused only.
10400 (*msub4<mode>) Modify to be unfused only.
10401 (*nmadd4<mode>) Modify to be unfused only.
10402 (*nmsub4<mode>) Modify to be unfused only.
10403 (*madd3<mode>) Remove.
10404 (*msub3<mode>) Remove.
10405 (*nmadd3<mode>) Remove.
10406 (*nmsub3<mode>) Remove.
10407 (*nmadd3<mode>_fastmath) Remove.
10408 (*nmsub3<mode>_fastmath) Remove.
10409 (*nmadd4<mode>_fastmath) Update condition.
10410 (*nmsub4<mode>_fastmath) Update condition.
10412 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10415 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10416 alignment attribute, exploring one level down for records and arrays.
10418 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10420 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10421 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10422 Copy operand 1 to a temporary if !ext_register_operand. Remove
10423 ancient extract_bit_field workaround.
10424 (*extv<mode>): Rename from *mov<mode>_extv_1.
10425 (*extvqi): Rename from *movqi_extv_1.
10426 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10427 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10428 to a temporary if !ext_register_operand. Remove ancient
10429 extract_bit_field workaround.
10430 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10431 (*extzvqi): Rename from *movqi_extzv_2.
10432 (*testqi_ext_3): Remove modes from const_int_operand predicated
10433 operands. Add "n" constraint.
10434 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10435 operand. Add "J" constraint.
10436 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10437 const_0_to_63 predicated operand.
10438 (regmode): New insn attribute.
10439 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10440 to nonmemory_operand. Use regmode insn attribute.
10441 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10442 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10443 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10444 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10445 operands. Use "N" constraint instead of "n".
10447 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10449 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10451 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10454 * config/i386/i386.c (iamcu_cost): New.
10455 (m_IAMCU): Likewise.
10456 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10457 (processor_target_table): Add an entry for "iamcu".
10458 (processor_alias_table): Likewise.
10459 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10460 (ix86_adjust_cost): Likewise.
10461 (ia32_multipass_dfa_lookahead): Likewise.
10462 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10463 * config/i386/x86-tune.def: Updated for m_IAMCU.
10465 2015-07-06 Richard Biener <rguenther@suse.de>
10467 PR tree-optimization/66772
10468 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10469 values are available in the PHI node BB when there are
10470 still unexecutable edges.
10472 2015-07-06 Richard Biener <rguenther@suse.de>
10474 PR tree-optimization/66767
10475 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10476 Make sure to build the alignment test on a SSA name without
10477 final alignment info valid only if the alignment test
10480 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10483 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10484 loop start when inserting LSETUP.
10486 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10489 * config/i386/i386.c (ix86_option_override_internal): Allow
10490 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10492 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10494 * read-md.c (decimal_string): Rename to ...
10495 (md_decimal_string): ... this.
10496 (handle_enum): Reflect this.
10498 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10501 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10503 2015-07-06 Richard Biener <rguenther@suse.de>
10505 PR middle-end/66759
10506 * match.pd: Add missing constraint of y to REAL_CST in
10507 REAL_CST - x CMP y to y - CST CMP x simplification.
10509 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10511 PR tree-optimization/66757
10512 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10514 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10515 Sandra Loosemore <sandra@codesourcery.com>
10517 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10518 Delete extern declaration.
10519 (gprel_constant_p): Add extern declaration.
10520 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10521 instead of nios2_symbol_ref_in_small_data_p.
10522 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10523 (nios2_symbol_ref_in_small_data_p): Make static.
10524 (gprel_constant_p): Make non-static.
10526 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10528 * doc/fragments.texi (Target Fragment): Convert debian.org
10530 * doc/install.texi (Configuration): Ditto.
10532 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10534 PR tree-optimization/66718
10535 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10536 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10538 PR tree-optimization/66718
10539 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10540 vectorizable_load, vectorizable_condition): Move vectype,
10541 nunits, ncopies computation after checking what kind of statement
10544 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10546 * target-insns.def (extv, extzv, insv): New targetm instruction
10548 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10550 * recog.c (simplify_while_replacing): Likewise.
10552 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10554 * target-insns.def (doloop_begin, doloop_end): New targetm
10555 instruction patterns.
10556 * loop-init.c: Include target.h.
10557 (pass_loop2::gate): Use the new targetm patterns instead of
10558 HAVE_*/gen_* interface.
10559 (pass_rtl_doloop::gate): Likewise.
10560 (pass_rtl_doloop::execute): Remove preprocessor condition.
10561 * hw-doloop.c: Build unconditionally.
10562 * loop-doloop.c: Likewise.
10563 (doloop_optimize): Use the new targetm patterns instead of
10564 HAVE_*/gen_* interface.
10565 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10566 * modulo-sched.c (doloop_register_get): Likewise.
10568 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10570 * target-insns.def (clear_cache): New targetm instruction pattern.
10571 * builtins.c (expand_builtin___clear_cache): Use it instead of
10572 HAVE_*/gen_* interface.
10574 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10576 * target-insns.def (allocate_stack, check_stack, probe_stack)
10577 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10578 New targetm instruction patterns.
10579 * explow.c (allocate_dynamic_stack_space): Use them instead of
10580 HAVE_*/gen_* interface.
10581 (emit_stack_probe): Likewise.
10582 (probe_stack_range): Likewise.
10583 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10585 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10587 * target-insns.def (stack_protect_set, stack_protect_test): New
10588 targetm instruction patterns.
10589 * cfgexpand.c (stack_protect_prologue): Use them instead of
10590 HAVE_*/gen_* interface.
10591 * function.c (stack_protect_epilogue): Likewise.
10593 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10595 * expr.h (gen_move_insn_uncast): Delete.
10596 * expr.c (gen_move_insn_uncast): Delete.
10598 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10600 * target-insns.def (restore_stack_block, restore_stack_function)
10601 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10602 (save_stack_nonlocal): New targetm instruction patterns.
10603 * builtins.c (expand_builtin_apply): Use them instead of
10604 HAVE_*/gen_* interface.
10605 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10607 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10609 * target-insns.def (trap): New targetm instruction pattern.
10610 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10612 * explow.c (allocate_dynamic_stack_space): Likewise.
10613 * ifcvt.c (find_if_header): Likewise.
10615 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10617 * target-insns.def (prefetch): New targetm instruction pattern.
10618 * tree-ssa-loop-prefetch.c: Include targeth.
10619 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10620 of HAVE_*/gen_* interface.
10621 * builtins.c (expand_builtin_prefetch): Likewise.
10622 * toplev.c (process_options): Likewise.
10624 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10626 * target-insns.def (untyped_call, untyped_return): New targetm
10627 instruction patterns.
10628 * builtins.c (expand_builtin_apply): Use them instead of
10629 HAVE_*/gen_* interface.
10630 (result_vector): Define unconditionally.
10632 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10634 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10635 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10636 (nonlocal_goto_receiver): New targetm instruction patterns.
10637 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10638 of HAVE_*/gen_* interface.
10639 (expand_builtin_setjmp_receiver): Likewise.
10640 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10641 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10643 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10645 * target.def: Add code_for_* hooks.
10646 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10647 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10648 * target-insns.def (casesi, tablejump): New targetm instruction
10650 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10651 (do_tablejump): Likewise.
10652 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10653 (expand_sjlj_dispatch_table): Likewise.
10654 * targhooks.c (default_case_values_threshold): Likewise.
10656 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10658 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10659 Use rtx_insn * instead of rtx.
10660 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10661 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10662 (nios2_call_tls_get_addr): Likewise.
10663 (nios2_emit_expensive_div): Likewise.
10664 (nios2_emit_move_sequence): Change return type to bool.
10665 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10666 Change return type to bool.
10668 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10671 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10673 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10676 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10677 of register_operand. Remove constraint.
10679 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10681 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10682 the first argument.
10684 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10686 * attribs.c (decl_attributes): Guard inform with the return value
10687 of the preceding warning.
10689 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10691 * doc/invoke.texi (moverride): Move to correct section.
10693 2015-07-03 Richard Biener <rguenther@suse.de>
10695 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10697 (dt_operand::gen_gimple_expr): After valueizing operands
10698 re-canonicalize operand order for commutative tree codes.
10700 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10703 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10705 (__crc32w): Likewise.
10706 (__crc32d): Likewise.
10707 (__rdpmc): Likewise.
10708 (__rdtscp): Likewise.
10709 (_rdpmc): Likewise.
10710 (_rdtscp): Likewise.
10711 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10714 2015-07-03 Richard Biener <rguenther@suse.de>
10716 * fold-const.c (fold_mathfn_compare): Remove.
10717 (fold_inf_compare): Likewise.
10718 (fold_comparison): Move floating point comparison simplifications...
10719 * match.pd: ... to patterns here. Introduce simple_comparisons
10720 operator list and use it for patterns formerly in fold_comparison.
10722 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10724 PR tree-optimization/66119
10725 * toplev.c (process_options): Don't set up default values for
10726 the sra_max_scalarization_size_{speed,size} parameters.
10727 * tree-sra (analyze_all_variable_accesses): If no values
10728 have been set for the sra_max_scalarization_size_{speed,size}
10729 parameters, call get_move_ratio to get target defaults.
10731 2015-07-03 Richard Biener <rguenther@suse.de>
10733 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10734 * match.pd: ... here.
10736 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10739 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10740 is not actually the default on FreeBSD.
10742 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10744 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10746 (CMPGE_8HI): Likewise.
10747 (CMPGE_4SI): Likewise.
10748 (CMPGE_2DI): Likewise.
10749 (CMPGE_U16QI): Likewise.
10750 (CMPGE_U8HI): Likewise.
10751 (CMPGE_U4SI): Likewise.
10752 (CMPGE_U2DI): Likewise.
10753 (CMPLE_16QI): Likewise.
10754 (CMPLE_8HI): Likewise.
10755 (CMPLE_4SI): Likewise.
10756 (CMPLE_2DI): Likewise.
10757 (CMPLE_U16QI): Likewise.
10758 (CMPLE_U8HI): Likewise.
10759 (CMPLE_U4SI): Likewise.
10760 (CMPLE_U2DI): Likewise.
10761 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10762 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10763 ALTIVEC_BUILTIN_VEC_CMPLE.
10764 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10765 floating-point vector modes.
10766 (vector_nlt<mode>): New define_expand.
10767 (vector_nltu<mode>): Likewise.
10768 (vector_ngt<mode>): Likewise.
10769 (vector_ngtu<mode>): Likewise.
10771 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10773 PR rtl-optimization/66706
10774 * combine.c (make_compound_operation): If an AND of SUBREG of
10775 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10777 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10779 * tree-pass.h (make_pass_ch_vect): New.
10780 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10782 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10783 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10784 make_pass_ch_vect): New.
10785 (pass_ch): Extend ch_base.
10787 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10788 (ch_base::copy_headers): ...here.
10790 2015-07-02 Richard Biener <rguenther@suse.de>
10792 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10793 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10794 (fold_binary_loc): Implement (T)ptr & CST in terms of
10795 get_pointer_alignment_1.
10796 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10797 Make sure to build the alignment test on a SSA name without
10798 final alignment info valid only after the prologue.
10800 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10802 * config/cris/cris.md ("epilogue"): Remove condition.
10803 ("prologue"): Ditto.
10805 2015-07-02 Richard Biener <rguenther@suse.de>
10807 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10808 parameter to record a condition that is false.
10809 (record_conditions): When recording an extra NE_EXPR that is
10810 true also record a EQ_EXPR that is false.
10812 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10814 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10815 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10816 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10817 (set_iv, find_interesting_uses_address, add_candidate_1): New
10818 argument to alloc_iv.
10819 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10820 duplicate struct iv.
10821 (free_loop_data): Don't free struct iv explicitly.
10822 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10824 2015-07-01 DJ Delorie <dj@redhat.com>
10826 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10828 (SUPPORTS_DISCRIMINATOR): Define.
10830 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10833 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10834 there are no CALLs in the same pattern.
10836 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10838 PR rtl-optimization/61047
10839 * rtlanal.c (get_initial_register_offset): New function.
10840 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10842 2015-07-01 Richard Biener <rguenther@suse.de>
10844 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10845 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10846 ~X CMP C -> X CMP' ~C to ...
10847 * match.pd: ... patterns here.
10849 2015-07-01 Nick Clifton <nickc@redhat.com>
10851 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10852 a 16-bit value into a 20-bit memory slot.
10854 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10856 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10857 "aarch64_tiny", "aarch64_small", "aarch64_large",
10858 "aarch64_little_endian", "aarch64_big_endian".
10860 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10862 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10863 Document "aarch64_small_fpic".
10865 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10867 * configure.ac: Add check for aarch64 assembler -fpic relocation
10869 * configure: Regenerate.
10870 * config.in: Regenerate.
10871 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10872 to -fPIC if not support of -fpic relocation modifier in assembler.
10874 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10877 * rtl.c (classify_insn): Handle returns in PARALLELs.
10879 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10881 PR middle-end/66633
10882 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10883 to true if the function is nested and if not optimizing.
10884 (convert_local_omp_clauses): Initialize need_frame to true if the
10885 function contains nested functions and if not optimizing.
10887 2015-07-01 Richard Biener <rguenther@suse.de>
10889 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10890 (X & Y) ^ Y -> ~X & Y transforms to ...
10891 * match.pd: ... here.
10893 2015-07-01 Richard Biener <rguenther@suse.de>
10895 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10896 of converts to avoid uninteresting noise from the conversion
10897 simplifying patterns.
10899 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10901 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10902 gcc_assert evaluating its argument for side-effect.
10904 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10907 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10910 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10912 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10913 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10914 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10915 to the inner DFS walk.
10917 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10919 * target-insns.def (jump): New targetm instruction pattern.
10920 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10921 instead of gen_jump.
10922 (fix_up_crossing_landing_pad): Likewise.
10923 (add_labels_and_missing_jumps): Likewise.
10924 (fix_crossing_conditional_branches): Likewise.
10925 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10926 (force_nonfallthru_and_redirect): Likewise.
10927 * cse.c (cse_insn): Likewise.
10928 * expmed.c (expand_divmod): Likewise.
10929 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
10930 * haifa-sched.c (init_before_recovery): Likewise.
10931 (sched_create_recovery_edges): Likewise.
10932 * ifcvt.c (find_cond_trap): Likewise.
10933 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
10934 (expand_float, expand_fix): Likewise.
10935 * stmt.c (emit_jump): Likewise.
10937 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10939 * defaults.h (HAVE_load_multiple, gen_load_multiple)
10940 (HAVE_store_multiple, gen_store_multiple): Delete.
10941 * target-insns.def (load_multiple, store_multiple): New targetm
10942 instruction patterns.
10943 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
10944 of HAVE_*/gen_* interface.
10946 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10948 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
10949 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
10950 (gen_mem_signal_fence): Delete.
10951 * target-insns.def (mem_signal_fence, mem_thread_fence)
10952 (memory_barrier): New targetm instruction patterns.
10953 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10955 (expand_mem_signal_fence): Likewise.
10957 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10959 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
10960 * target-insns.def (epilogue, prologue, sibcall_prologue): New
10961 targetm instruction patterns.
10962 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
10964 * calls.c (expand_call): Likewise.
10965 * cfgrtl.c (cfg_layout_finalize): Likewise.
10966 * df-scan.c (df_get_entry_block_def_set): Likewise.
10967 (df_get_exit_block_use_set): Likewise.
10968 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
10969 * final.c (final_start_function): Likewise.
10970 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10971 (reposition_prologue_and_epilogue_notes): Likewise.
10972 * reorg.c (find_end_label): Likewise.
10973 * toplev.c (process_options): Likewise.
10975 2015-06-30 David Malcolm <dmalcolm@redhat.com>
10977 * typed-splay-tree.h: New file.
10979 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
10982 * lra-int.h (lra_substitute_pseudo): Add a parameter.
10983 (lra_substitute_pseudo_within_insn): Ditto.
10984 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
10986 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
10987 to lra_substitute_pseudo.
10988 * lra-lives.c (process_bb_lives): Add an argument to
10989 lra_substitute_pseudo_within_insn call.
10990 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10991 argument to lra_substitute_pseudo and
10992 lra_substitute_pseudo_within_insn calls.
10993 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10995 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10997 * configure: Regenerated.
10999 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11001 * config.gcc: Support i[34567]86-*-elfiamcu target.
11002 * config/i386/iamcu.h: New.
11003 * config/i386/i386.opt: Add -miamcu.
11004 * doc/invoke.texi: Document -miamcu.
11005 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11006 off x87/MMX/SSE/AVX codegen for -miamcu.
11007 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11008 __iamcu/__iamcu__ for -miamcu.
11009 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11010 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11011 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11012 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11013 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11014 MCU by default. Default long double to 64-bit for Intel MCU.
11015 Turn on -freg-struct-return for Intel MCU. Issue an error when
11016 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11018 (function_arg_advance_32): Pass value whose size is no larger
11019 than 8 bytes in registers for Intel MCU.
11020 (function_arg_32): Likewise.
11021 (ix86_return_in_memory): Return value whose size is no larger
11022 than 8 bytes in registers for Intel MCU.
11023 (iamcu_alignment): New function.
11024 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11026 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11027 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11030 2015-06-30 Marek Polacek <polacek@redhat.com>
11032 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11033 both operands of the resulting expression.
11035 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11036 the final expression with the operand's type and then convert
11037 it to the type of the expression.
11039 2015-06-30 Richard Biener <rguenther@suse.de>
11041 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11042 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11043 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11044 * match.pd: ... to patterns here.
11046 2015-06-30 Richard Biener <rguenther@suse.de>
11048 PR tree-optimization/66704
11049 * tree-vect-data-refs.c (vect_setup_realignment): Use
11050 make_ssa_name for non-SSA name source.
11052 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11054 PR middle-end/66702
11055 * omp-low.c (simd_clone_adjust): Handle addressable linear
11056 or uniform parameters or non-gimple type uniform parameters.
11058 2015-06-30 Richard Biener <rguenther@suse.de>
11060 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11061 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11062 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11063 * match.pd: ... here.
11064 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11065 Move (x & y) | x -> x and friends before
11066 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11068 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11070 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11071 -mfix-ut699 is not specified.
11072 (leon3_load): Rename into...
11073 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11076 2015-06-30 Marek Polacek <polacek@redhat.com>
11078 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11079 * match.pd: ... here.
11081 2015-06-30 Richard Biener <rguenther@suse.de>
11083 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11084 * fold-const.c (build_range_check): Replace uses of
11085 HAVE_canonicalize_funcptr_for_compare.
11086 (fold_widened_comparison): Likewise.
11087 (fold_sign_changed_comparison): Likewise.
11088 * dojump.c: Include "target.h".
11089 (do_compare_and_jump): Replace uses of
11090 HAVE_canonicalize_funcptr_for_compare and
11091 gen_canonicalize_funcptr_for_compare.
11092 * expr.c (do_store_flag): Likewise.
11094 2015-06-30 Tom de Vries <tom@codesourcery.com>
11096 PR tree-optimization/66652
11097 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11098 max_loop_iterations to determine if nit + 1 overflows.
11100 2015-06-30 Richard Biener <rguenther@suse.de>
11102 * tree-vrp.c (register_edge_assert_for_2): Also register
11103 asserts for dominating conversion results.
11105 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11107 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11108 field in struct iv.
11110 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11113 * configure.ac: Fix filds and fildq test for 64-bit.
11114 * configure: Regenerated.
11116 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11118 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11119 (nvptx_reorg): Here. Keep the non-subreg pieces.
11121 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11123 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11124 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11126 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11128 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11129 Set attribute "length_nobnd" instead of "length".
11132 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11134 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11136 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11137 assert less restrictive.
11139 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11142 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11143 do_warn_unused_parameter.
11144 * function.c (do_warn_unused_parameter): Move from here.
11145 * function.h (do_warn_unused_parameter): Do not declare.
11147 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11150 * gcc.target/arm/armv-sync-comp-swap.c: New.
11151 * gcc.target/arm/armv-sync-op-acquire.c: New.
11152 * gcc.target/arm/armv-sync-op-full.c: New.
11153 * gcc.target/arm/armv-sync-op-release.c: New.
11155 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11158 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11159 initial acquire barrier with final barrier.
11161 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11164 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11165 initial acquire barrier with final barrier.
11167 2015-06-29 Richard Henderson <rth@redhat.com>
11169 * config/i386/constraints.md (Bf): New constraint.
11170 * config/i386/i386-c.c (ix86_target_macros): Define
11171 __GCC_ASM_FLAG_OUTPUTS__.
11172 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11174 * doc/extend.texi (FlagOutputOperands): Document them.
11176 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11178 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11179 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11181 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11182 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11183 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11184 (aarch64_symbol_context): Ditto.
11185 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11186 and use new pattern name.
11187 (aarch64_expand_mov_immediate): Ditto.
11188 (aarch64_print_operand): Ditto.
11189 (aarch64_classify_tls_symbol): Ditto.
11191 2015-06-29 Marek Polacek <polacek@redhat.com>
11192 Marc Glisse <marc.glisse@inria.fr>
11194 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11195 * match.pd: ... pattern here.
11197 2015-06-29 Tom de Vries <tom@codesourcery.com>
11199 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11200 function structure.
11202 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11204 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11205 feature description, split out the native option, add a link to
11206 the feature documentation, rearrange and slightly rewrite text.
11207 (Aarch64 options, -mcpu): Likewise.
11208 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11209 +rdma implies Adv. SIMD.
11211 2015-06-29 Marek Polacek <polacek@redhat.com>
11214 * function.c (stack_protect_epilogue): Remove a cast to int.
11215 * doc/invoke.texi: Update -Wswitch-bool description.
11217 2015-06-29 Richard Biener <rguenther@suse.de>
11219 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11220 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11221 via ptr_difference_const ...
11222 * match.pd: ... here.
11223 When matching (X ^ Y) == Y also match with swapped operands.
11225 2015-06-29 Richard Biener <rguenther@suse.de>
11227 * lto-streamer.h (LTO_major_version): Bump to 5.
11229 2015-06-29 Richard Biener <rguenther@suse.de>
11231 PR tree-optimization/66677
11232 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11233 STMT_VINFO_VEC_STMT clobbering less strict.
11235 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11237 PR middle-end/64130
11238 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11239 division, compute max and min when value ranges for dividend and
11240 divisor are available.
11242 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11243 Sandra Loosemore <sandra@codesourcery.com>
11245 * regrename.h (regrename_do_replace): Change to return bool.
11246 * regrename.c (rename_chains): Check return value of
11247 regname_do_replace.
11248 (regrename_do_replace): Re-validate the modified insns and
11249 return bool status.
11250 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11251 Update to match rename_chains changes.
11252 * config/c6x/c6x.c (try_rename_operands): Assert that
11253 regrename_do_replace returns true.
11255 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11257 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11258 operand 2 here. Use copy_addr_to_reg to copy non-index
11259 register operand 2 to a temporary.
11260 (<mode>_stx): Ditto for operand 1.
11261 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11262 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11263 (ix86_store_bounds): Ditto.
11265 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11267 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11269 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11271 * gimple.c (gimple_call_set_fndecl): Remove.
11272 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11273 build1_loc directly instead of build_fold_addr_expr_loc.
11275 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11277 * hash-map.h (hash_map::traverse): Use the definition of the
11278 Key typedef rather than the typedef itself.
11280 2015-06-26 Martin Jambor <mjambor@suse.cz>
11283 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11284 NULL instead of calling dump_enabled_p.
11286 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11288 * config/aarch64/aarch64.opt: (override): New.
11289 * doc/invoke.texi (override): Document.
11290 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11291 (aarch64_fusible_pairs): Likewise.
11292 (aarch64_tuning_flags): Likewise.
11293 (aarch64_tuning_override_function): Likewise.
11294 (aarch64_tuning_override_functions): Likewise.
11295 (aarch64_parse_one_option_token): Likewise.
11296 (aarch64_parse_boolean_options): Likewise.
11297 (aarch64_parse_fuse_string): Likewise.
11298 (aarch64_parse_tune_string): Likewise.
11299 (aarch64_parse_one_override_token): Likewise.
11300 (aarch64_parse_override_string): Likewise.
11301 (aarch64_override_options): Parse the -override string if it
11304 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11306 * config/aarch64/aarch64-protos.h (tune_params): Remove
11307 const from members.
11308 (aarch64_tune_params): Remove const, change to no longer be
11310 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11311 change to no longer be a pointer, initialize to generic_tunings.
11312 (aarch64_min_divisions_for_recip_mul): Change dereference of
11313 aarch64_tune_params to member access.
11314 (aarch64_reassociation_width): Likewise.
11315 (aarch64_rtx_mult_cost): Likewise.
11316 (aarch64_address_cost): Likewise.
11317 (aarch64_branch_cost): Likewise.
11318 (aarch64_rtx_costs): Likewise.
11319 (aarch64_register_move_cost): Likewise.
11320 (aarch64_memory_move_cost): Likewise.
11321 (aarch64_sched_issue_rate): Likewise.
11322 (aarch64_builtin_vectorization_cost): Likewise.
11323 (aarch64_override_options): Take a copy of the selected tuning
11324 struct in to aarch64_tune_params, rather than just setting
11325 a pointer, change dereferences of aarch64_tune_params to member
11327 (aarch64_override_options_after_change): Change dereferences of
11328 aarch64_tune_params to member access.
11329 (aarch64_macro_fusion_p): Likewise.
11330 (aarch_macro_fusion_pair_p): Likewise.
11331 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11333 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11335 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11336 (aarch64_tune_flags): Likewise.
11337 (AARCH64_TUNE_FMA_STEERING): Likewise.
11338 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11339 to AARCH64_FL_USE_FMA_STEERING_PASS.
11340 (cortex-a57.cortex-a53): Likewise.
11341 (cortex-a72): Use cortexa72_tunings.
11342 (cortex-a72.cortex-a53): Likewise.
11343 (exynos-m1): Likewise.
11344 * config/aarch64/aarch64-protos.h (tune_params): Add
11345 a field: extra_tuning_flags.
11346 * config/aarch64/aarch64-tuning-flags.def: New.
11347 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11348 (aarch64_extra_tuning_flags): Likewise.
11349 (aarch64_tune_params): Declare here.
11350 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11351 (cortexa53_tunings): Likewise.
11352 (cortexa57_tunings): Likewise.
11353 (thunderx_tunings): Likewise.
11354 (xgene1_tunings): Likewise.
11355 (cortexa72_tunings): New.
11356 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11357 (gate): Check against aarch64_tune_params.
11358 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11361 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11363 * config/aarch64/aarch64-fusion-pairs.def: New.
11364 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11365 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11366 aarch64_fusion_pairs.
11367 (AARCH64_FUSE_MOV_MOVK): Likewise.
11368 (AARCH64_FUSE_ADRP_ADD): Likewise.
11369 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11370 (AARCH64_FUSE_ADRP_LDR): Likewise.
11371 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11373 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11375 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11376 SYMBOL_SMALL_GOT_28K.
11377 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11378 relocation modifiers.
11379 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11380 (ldr_got_small_28k_<mode>): New.
11381 (ldr_got_small_28k_sidi): New.
11382 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11383 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11384 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11385 SYMBOL_SMALL_GOT_28K.
11386 (aarch64_rtx_costs): Add costs for new instruction sequences.
11387 (initialize_aarch64_code_model): Initialize new model.
11388 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11389 (aarch64_asm_preferred_eh_data_format): Support new model.
11390 (aarch64_load_symref_appropriately): Generate new instruction
11391 sequences for -fpic.
11392 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11393 (aarch64_use_pseudo_pic_reg): New function.
11395 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11397 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11398 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11399 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11400 (aarch64_expand_mov_immediate): Ditto.
11401 (aarch64_print_operand): Ditto.
11402 (aarch64_classify_symbol): Ditto.
11404 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11406 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11408 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11411 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11412 assertion failed. Remove assertion itself.
11414 2015-06-26 Richard Biener <rguenther@suse.de>
11416 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11417 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11419 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11420 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11421 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11422 * match.pd: ... patterns here.
11424 2015-06-26 Marek Polacek <polacek@redhat.com>
11426 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11427 (x | y) & (~x ^ y) -> x & y): New patterns.
11429 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11431 * rtl.h (emit): Add an optional boolean parameter to control
11432 whether barriers are emitted.
11433 * emit-rtl.c (emit): Likewise.
11434 * gensupport.c (get_emit_function): Return null rather than "emit".
11435 * genemit.c (gen_emit_seq): Handle the null return value.
11436 Don't emit barriers after the final instruction in the sequence.
11437 * gentarget-def.c (main): Don't emit barriers after the instruction.
11439 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11441 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11442 TARGET_UNIFIED_ASM.
11444 2015-06-26 Richard Biener <rguenther@suse.de>
11446 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11448 2015-06-26 Richard Biener <rguenther@suse.de>
11450 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11451 irrespective on whether the inner operation has a single use
11452 of both off are constant.
11454 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11455 Segher Boessenkool <segher@kernel.crashing.org>
11458 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11459 before doing PUT_MODE or PUT_CODE on operands to avoid
11460 in-place RTX modification.
11462 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11464 * gentarget-def.c (def_target_insn): Cast return of strtol to
11467 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11469 * gimple.h (gimple_call_set_fn): Move inline function.
11470 * gimple.c (gimple_call_set_fn): Relocate here.
11472 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11476 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11477 the replacement insn will work.
11479 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11481 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11484 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11486 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11487 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11488 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11489 (symtab_node::address_can_be_compared_p): Move function.
11490 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11492 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11493 * auto-profile.c: Likewise.
11494 * bb-reorder.c: Likewise.
11495 * builtins.c: Likewise.
11496 * calls.c: Likewise.
11497 * cfgexpand.c: Likewise.
11498 * cgraphbuild.c: Likewise.
11499 * cgraphclones.c: Likewise.
11500 * cgraphunit.c: Likewise.
11501 * combine.c: Likewise.
11502 * coverage.c: Likewise.
11503 * data-streamer-in.c: Likewise.
11504 * data-streamer-out.c: Likewise.
11505 * data-streamer.c: Likewise.
11506 * dbxout.c: Likewise.
11507 * dwarf2out.c: Likewise.
11508 * except.c: Likewise.
11509 * expr.c: Likewise.
11510 * final.c: Likewise.
11511 * fold-const.c: Likewise.
11512 * ggc-page.c: Likewise.
11513 * gimple-fold.c: Likewise.
11514 * gimple-iterator.c: Likewise.
11515 * gimple-pretty-print.c: Likewise.
11516 * gimple-streamer-in.c: Likewise.
11517 * gimple-streamer-out.c: Likewise.
11518 * gimple.c: Likewise.
11519 * gimplify.c: Likewise.
11520 * ipa-chkp.c: Likewise.
11521 * ipa-comdats.c: Likewise.
11522 * ipa-cp.c: Likewise.
11523 * ipa-devirt.c: Likewise.
11524 * ipa-icf-gimple.c: Likewise.
11525 * ipa-icf.c: Likewise.
11526 * ipa-inline-analysis.c: Likewise.
11527 * ipa-inline-transform.c: Likewise.
11528 * ipa-inline.c: Likewise.
11529 * ipa-polymorphic-call.c: Likewise.
11530 * ipa-profile.c: Likewise.
11531 * ipa-prop.c: Likewise.
11532 * ipa-pure-const.c: Likewise.
11533 * ipa-ref.c: Likewise.
11534 * ipa-reference.c: Likewise.
11535 * ipa-split.c: Likewise.
11536 * ipa-utils.c: Likewise.
11537 * ipa-visibility.c: Likewise.
11539 * langhooks.c: Likewise.
11540 * lto-cgraph.c: Likewise.
11541 * lto-compress.c: Likewise.
11542 * lto-opts.c: Likewise.
11543 * lto-section-in.c: Likewise.
11544 * lto-section-out.c: Likewise.
11545 * lto-streamer-in.c: Likewise.
11546 * lto-streamer-out.c: Likewise.
11547 * lto-streamer.c: Likewise.
11548 * omp-low.c: Likewise.
11549 * opts-global.c: Likewise.
11550 * passes.c: Likewise.
11551 * predict.c: Likewise.
11552 * print-tree.c: Likewise.
11553 * profile.c: Likewise.
11555 * sanopt.c: Likewise.
11556 * stor-layout.c: Likewise.
11557 * symtab.c: Likewise.
11558 * toplev.c: Likewise.
11559 * trans-mem.c: Likewise.
11560 * tree-cfg.c: Likewise.
11561 * tree-chkp.c: Likewise.
11562 * tree-eh.c: Likewise.
11563 * tree-emutls.c: Likewise.
11564 * tree-inline.c: Likewise.
11565 * tree-nested.c: Likewise.
11566 * tree-parloops.c: Likewise.
11567 * tree-pretty-print.c: Likewise.
11568 * tree-profile.c: Likewise.
11569 * tree-sra.c: Likewise.
11570 * tree-ssa-alias.c: Likewise.
11571 * tree-ssa-live.c: Likewise.
11572 * tree-ssa-loop-ivcanon.c: Likewise.
11573 * tree-ssa-loop-ivopts.c: Likewise.
11574 * tree-ssa-pre.c: Likewise.
11575 * tree-ssa-sccvn.c: Likewise.
11576 * tree-ssa-strlen.c: Likewise.
11577 * tree-ssa-structalias.c: Likewise.
11578 * tree-streamer-in.c: Likewise.
11579 * tree-streamer-out.c: Likewise.
11580 * tree-streamer.c: Likewise.
11581 * tree-switch-conversion.c: Likewise.
11582 * tree-tailcall.c: Likewise.
11583 * tree-vect-data-refs.c: Likewise.
11584 * tree-vect-stmts.c: Likewise.
11585 * tree-vectorizer.c: Likewise.
11586 * tree.c: Likewise.
11587 * tsan.c: Likewise.
11588 * ubsan.c: Likewise.
11589 * value-prof.c: Likewise.
11590 * varasm.c: Likewise.
11591 * varpool.c: Likewise.
11592 * config/arm/arm.c: Likewise.
11593 * config/bfin/bfin.c: Likewise.
11594 * config/c6x/c6x.c: Likewise.
11595 * config/cris/cris.c: Likewise.
11596 * config/darwin-c.c: Likewise.
11597 * config/darwin.c: Likewise.
11598 * config/i386/i386.c: Likewise.
11599 * config/i386/winnt.c: Likewise.
11600 * config/microblaze/microblaze.c: Likewise.
11601 * config/mips/mips.c: Likewise.
11602 * config/rs6000/rs6000.c: Likewise.
11603 * config/rx/rx.c: Likewise.
11604 * config/s390/s390.c: Likewise.
11605 * config/tilegx/mul-tables.c: Likewise.
11607 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11609 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11610 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11611 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11612 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11613 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11614 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11615 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11616 config/microblaze/microblaze.c, config/mips/mips.c,
11617 config/mmix/mmix.c, config/mn10300/mn10300.c,
11618 config/moxie/moxie.c, config/msp430/msp430.c,
11619 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11620 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11621 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11622 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11623 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11624 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11625 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11626 target-def.h include.
11627 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11629 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11631 * Makefile.in (TARGET_DEF): Add target-insns.def.
11632 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11633 (build/gentarget-def.o): New rule.
11634 (genprogrtl): Add target-def.
11635 * target-insns.def, gentarget-def.c: New files.
11636 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11637 based on the contents of target-insns.def.
11638 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11639 (HAVE_return, gen_return): Delete.
11640 * target-def.h: Include insn-target-def.h.
11641 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11642 instead of direct calls. Rely on them to do the appropriate assertions.
11643 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11644 (convert_jumps_to_returns): Use targetm interface instead of
11646 (thread_prologue_and_epilogue_insns): Likewise.
11647 * reorg.c (find_end_label, dbr_schedule): Likewise.
11648 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11649 * shrink-wrap.c (convert_to_simple_return): Likewise.
11650 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11652 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11654 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11655 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11656 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11657 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11658 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11659 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11660 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11661 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11662 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11663 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11664 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11665 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11666 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11667 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11668 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11669 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11672 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11674 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11675 (unbounded_int_hashmap_traits::key_type): Likewise.
11676 * hash-map.h (hash_map): Get the key type from the traits.
11677 * hash-traits.h (default_hash_traits): By default, inherit from the
11678 template parameter.
11679 * alias.c (alias_set_traits): Delete.
11680 (alias_set_entry_d::children): Use alias_set_hash as the first
11681 template parameter.
11682 (record_alias_subset): Update accordingly.
11683 * except.c (tree_hash_traits): Delete.
11684 (type_to_runtime_map): Use tree_hash as the first template parameter.
11685 (init_eh): Update accordingly.
11686 * genmatch.c (capture_id_map_hasher): Delete.
11687 (cid_map_t): Use nofree_string_hash as first template parameter.
11688 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11689 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11690 Use symbol_compare_hash as the first template parameter in
11691 subdivide_hash_map.
11692 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11693 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11694 template parameter.
11695 * passes.c (pass_registry_hasher): Delete.
11696 (name_to_pass_map): Use nofree_string_hash as the first template
11698 (register_pass_name): Update accordingly.
11699 * sanopt.c (sanopt_tree_map_traits): Delete.
11700 (sanopt_tree_triplet_map_traits): Delete.
11701 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11702 template parameter.
11703 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11704 the first template parameter.
11705 * sese.c (rename_map_hasher): Delete.
11706 (rename_map_type): Use tree_ssa_name_hash as the first template
11708 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11709 (function_summary::m_map): Use map_hash as the first template
11711 (function_summary::release): Update accordingly.
11712 * tree-if-conv.c (phi_args_hash_traits): Delete.
11713 (predicate_scalar_phi): Use tree_operand_hash as the first template
11714 parameter to phi_arg_map.
11715 * tree-inline.h (dependence_hasher): Delete.
11716 (copy_body_data::dependence_map): Use dependence_hash as the first
11717 template parameter.
11718 * tree-inline.c (remap_dependence_clique): Update accordingly.
11719 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11720 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11722 (addr_stridxptr): Update accordingly.
11723 * value-prof.c (profile_id_traits): Delete.
11724 (cgraph_node_map): Use profile_id_hash as the first template
11726 (init_node_map): Update accordingly.
11727 * config/alpha/alpha.c (string_traits): Delete.
11728 (machine_function::links): Use nofree_string_hash as the first
11729 template parameter.
11730 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11731 * config/m32c/m32c.c (pragma_traits): Delete.
11732 (pragma_htab): Use nofree_string_hash as the first template parameter.
11733 (m32c_note_pragma_address): Update accordingly.
11734 * config/mep/mep.c (pragma_traits): Delete.
11735 (pragma_htab): Use nofree_string_hash as the first template parameter.
11736 (mep_note_pragma_flag): Update accordingly.
11737 * config/mips/mips.c (mips16_flip_traits): Delete.
11738 (mflip_mips16_htab): Use nofree_string_hash as the first template
11740 (mflip_mips16_use_mips16_p): Update accordingly.
11741 (local_alias_traits): Delete.
11742 (mips16_local_aliases): Use nofree_string_hash as the first template
11744 (mips16_local_alias): Update accordingly.
11746 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11748 * hash-map-traits.h (default_hashmap_traits): Delete.
11750 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11752 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11753 (unbounded_int_hashmap_traits): Likewise.
11754 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11756 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11758 * ipa-icf.h (symbol_compare_hash): New class.
11759 (symbol_compare_hashmap_traits): Use it.
11760 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11761 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11762 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11763 default_hashmap_traits.
11764 * sanopt.c (sanopt_tree_triplet_hash): New class.
11765 (sanopt_tree_triplet_map_traits): Use it.
11767 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11769 * gengtype-parse.c (require_template_declaration): Allow '+' in
11770 template parameters. Consolidate cases.
11771 * hash-traits.h (int_hash): New class.
11772 * alias.c (alias_set_hash): New structure.
11773 (alias_set_traits): Use it.
11774 * symbol-summary.h (function_summary::map_hash): New class.
11775 (function_summary::summary_hashmap_traits): Use it.
11776 * tree-inline.h (dependence_hash): New class.
11777 (dependence_hasher): Use it.
11778 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11779 * value-prof.c (profile_id_hash): New class.
11780 (profile_id_traits): Use it.
11782 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11784 * config/mips/mips.c (mips16_flip_traits): Use it.
11785 (local_alias_traits, mips16_local_aliases): Convert from a map of
11786 rtxes to a map of symbol names.
11787 (mips16_local_alias): Update accordingly.
11789 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11791 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11792 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11793 * passes.c (pass_registry_hasher): Likewise.
11794 * config/alpha/alpha.c (string_traits): Likewise.
11795 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11796 * config/m32c/m32c.c (pragma_traits): Likewise.
11797 * config/mep/mep.c (pragma_traits): Likewise.
11799 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11801 * tree-hash-traits.h (tree_hash): New class.
11802 * except.c: Include tree-hash-traits.h.
11803 (tree_hash_traits): Use tree_hash.
11805 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11807 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11808 * sese.c: Include tree-hash-traits.h.
11809 (rename_map_hasher): Use tree_ssa_name_hasher.
11811 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11813 * tree-hash-traits.h (tree_decl_hash): New class.
11814 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11815 (stridxlist_hash_traits): Use tree_decl_hash.
11817 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11819 * tree-hash-traits.h: New file.
11820 (tree_operand_hash): New class.
11821 * sanopt.c: Include tree-hash-traits.h.
11822 (sanopt_tree_map_traits): Use tree_operand_hash.
11823 * tree-if-conv.c: Include tree-hash-traits.h.
11824 (phi_args_hash_traits): Use tree_operand_hash.
11825 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11826 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11828 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11830 * hash-map-traits.h: Include hash-traits.h.
11831 (simple_hashmap_traits): New class.
11832 * mem-stats.h (hash_map): Change the default traits to
11833 simple_hashmap_traits<default_hash_traits<Key> >.
11835 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11837 * hash-table.h: Update comments.
11839 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11841 * hash-traits.h (default_hash_traits): New structure.
11842 * hash-set.h (default_hashset_traits): Delete.
11843 (hash_set): Use default_hash_traits<Key> instead of
11844 default_hashset_traits. Delete hash_entry type and use Key directly.
11845 * ipa-devirt.c (pair_traits): Delete.
11846 (default_hash_traits <type_pair>): Override.
11847 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11848 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11850 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11852 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11854 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11856 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11857 (has_is_empty, is_empty_helper): Delete.
11858 (has_mark_deleted, mark_deleted_helper): Delete.
11859 (has_mark_empty, mark_empty_helper): Delete.
11860 (hash_table::is_deleted): Call the Descriptor unconditionally.
11861 (hash_table::is_empty): Likewise.
11862 (hash_table::mark_deleted): Likewise.
11863 (hash_table::mark_empty): Likewise.
11865 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11867 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11868 redundant typedefs and members.
11869 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11870 redundant typedefs.
11871 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11872 * ipa-devirt.c (odr_name_hasher): Likewise.
11873 (polymorphic_call_target_hasher): Likewise.
11874 * ira-costs.c (cost_classes_hasher): Likewise.
11875 * statistics.c (stats_counter_hasher): Likewise.
11876 * trans-mem.c (log_entry_hasher): Likewise.
11877 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11878 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11879 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11880 * var-tracking.c (variable_hasher): Likewise.
11881 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11882 Remove redundant typedefs and members.
11884 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11886 * hash-traits.h (ggc_cache_hasher): Rename to...
11887 (ggc_cache_remove): ...this and remove typedefs.
11888 (ggc_cache_ptr_hash): New class.
11889 * hash-table.h: Update commentary.
11890 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11891 rather than ggc_cache_hasher.
11892 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11893 (const_double_hasher, const_fixed_hasher): Likewise.
11894 * function.c (insn_cache_hasher): Likewise.
11895 * trans-mem.c (tm_wrapper_hasher): Likewise.
11896 * tree.h (tree_decl_map_cache_hasher): Likewise.
11897 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11898 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11899 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11900 * varasm.c (tm_clone_hasher): Likewise.
11901 * config/i386/i386.c (dllimport_hasher): Likewise.
11902 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11903 (tree_hasher): Likewise.
11905 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11907 * hash-traits.h (ggc_hasher): Rename to...
11908 (ggc_remover): ...this and remove typedefs.
11909 (ggc_cache_hasher): Update accordingly. Add typedefs.
11910 (ggc_ptr_hash): New class.
11911 * hash-table.h: Update comment.
11912 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11914 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11915 (tree_descriptor_hasher): Likewise.
11916 * cgraph.c (function_version_hasher): Likewise.
11917 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11918 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11919 (dw_loc_list_hasher, addr_hasher): Likewise.
11920 * function.h (used_type_hasher): Likewise.
11921 * function.c (temp_address_hasher): Likewise.
11922 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11923 * libfuncs.h (libfunc_hasher): Likewise.
11924 * lto-streamer.h (decl_state_hasher): Likewise.
11925 * optabs.c (libfunc_decl_hasher): Likewise.
11926 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
11927 * varasm.c (section_hasher, object_block_hasher): Likewise.
11928 (const_rtx_desc_hasher): Likewise.
11929 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
11930 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
11932 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11934 * hash-traits.h (free_ptr_hash): New class.
11935 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
11936 rather than typed_free_remove. Remove redudant typedefs.
11937 (external_ref_hasher): Likewise.
11938 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
11939 (ehspec_hasher): Likewise.
11940 * ggc-common.c (saving_hasher): Likewise.
11941 * gimplify.c (gimplify_hasher): Likewise.
11942 * haifa-sched.c (delay_i2_hasher): Likewise.
11943 * loop-invariant.c (invariant_expr_hasher): Likewise.
11944 * loop-iv.c (biv_entry_hasher): Likewise.
11945 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
11946 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
11947 * tree-cfg.c (locus_discrim_hasher): Likewise.
11948 * tree-eh.c (finally_tree_hasher): Likewise.
11949 * tree-into-ssa.c (var_info_hasher): Likewise.
11950 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
11951 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
11952 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
11953 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
11954 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
11955 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
11956 (shared_bitmap_hasher): Likewise.
11957 * tree-ssa-threadupdate.c (redirection_data): Likewise.
11958 * tree-vectorizer.h (peel_info_hasher): Likewise.
11959 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
11960 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
11962 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11964 * hash-table.h: Update comments.
11965 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
11966 (nofree_ptr_hash): New class.
11967 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
11968 than typed_noop_remove. Remove redudant typedefs.
11969 * attribs.c (attribute_hasher): Likewise.
11970 * cfg.c (bb_copy_hasher): Likewise.
11971 * cselib.c (cselib_hasher): Likewise.
11972 * dse.c (invariant_group_base_hasher): Likewise.
11973 * dwarf2cfi.c (trace_info_hasher): Likewise.
11974 * dwarf2out.c (macinfo_entry_hasher): Likewise.
11975 (comdat_type_hasher, loc_list_hasher): Likewise.
11976 * gcse.c (pre_ldst_expr_hasher): Likewise.
11977 * genmatch.c (id_base): Likewise.
11978 * genrecog.c (test_pattern_hasher): Likewise.
11979 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11980 * haifa-sched.c (delay_i1_hasher): Likewise.
11981 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11982 * ipa-icf.h (congruence_class_group_hash): Likewise.
11983 * ipa-profile.c (histogram_hash): Likewise.
11984 * ira-color.c (allocno_hard_regs_hasher): Likewise.
11985 * lto-streamer.h (string_slot_hasher): Likewise.
11986 * lto-streamer.c (tree_entry_hasher): Likewise.
11987 * plugin.c (event_hasher): Likewise.
11988 * postreload-gcse.c (expr_hasher): Likewise.
11989 * store-motion.c (st_expr_hasher): Likewise.
11990 * tree-sra.c (uid_decl_hasher): Likewise.
11991 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11992 (ssa_name_var_hash): Likewise.
11993 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11994 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11995 * tree-ssa-pre.c (pre_expr_d): Likewise.
11996 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11997 * vtable-verify.h (registration_hasher): Likewise.
11998 * vtable-verify.c (vtbl_map_hasher): Likewise.
11999 * config/arm/arm.c (libcall_hasher): Likewise.
12000 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12001 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12002 * config/sol2.c (comdat_entry_hasher): Likewise.
12003 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12004 (print_fold_checksum, fold_checksum_tree): Likewise.
12005 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12006 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12007 (fold_build_call_array_loc): Likewise.
12008 * tree-ssa-ccp.c (gimple_htab): Likewise.
12009 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12010 rather than pointer_type.
12012 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12014 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12015 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12017 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12019 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12020 (ggc_hasher::ggc_mx): Likewise.
12021 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12022 that duplicate ggc_hasher ones.
12024 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12026 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12027 (gt_cleare_cache): Check here for deleted and empty entries.
12028 Replace handle_cache_entry with a call to keep_cache_entry.
12029 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12030 (ggc_cache_hasher::keep_cache_entry): New function.
12031 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12032 (tm_wrapper_hasher::keep_cache_entry): New function.
12033 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12034 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12035 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12036 (type_cache_hasher::keep_cache_entry): New function.
12037 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12038 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12039 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12040 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12041 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12042 (tm_clone_hasher::keep_cache_entry): New function.
12043 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12044 (dllimport_hasher::keep_cache_entry): New function.
12046 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12048 * hash-table.h: Include hash-traits.h.
12049 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12050 (ggc_cache_hasher): Move to...
12051 * hash-traits.h: ...this new file.
12053 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12055 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12056 struct cl_optimization.
12057 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12058 * tree.c (make_node_stat): Allocate cl_optimization struct.
12059 (copy_node_stat): Allocate and copy cl_optimization struct.
12061 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12063 * function.h (struct incoming_args): Move struct.
12064 (pass_by_reference, reference_callee_copied): Remove prototypes.
12065 * emit-rtl.h (struct incoming_args): Relocate struct here.
12066 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12068 * function.c (pass_by_reference, reference_callee_copied): Move.
12069 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12070 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12071 * ipa-chkp.c: Include calls.h.
12073 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12075 * alias.h (alias_set_type): Move typedef.
12076 * coretypes.h (alias_set_type): Relocate typedef here.
12077 * rtl.h: Don't include alias.h.
12079 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12081 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12082 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12084 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12085 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12087 * calls.c: Include hard-reg-set.h before rtl.h.
12090 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12091 Vladimir Makarov <vmakarov@redhat.com>
12093 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12096 2015-06-25 Richard Biener <rguenther@suse.de>
12098 * fold-const.c (fold_binary_loc): Move simplification of
12099 (X <<>> C1) & C2 ...
12100 * match.pd: ... here.
12102 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12104 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12106 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12108 * match.pd: Add patterns for vec_conds between 1 and 0.
12110 2015-06-25 Richard Biener <rguenther@suse.de>
12112 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12113 STMT_VINFO_VEC_STMT for SLP.
12114 (vectorizable_store): Likewise.
12115 (vectorizable_load): Likewise.
12116 (vect_transform_stmt): Catch SLP vectorization clobbering
12117 STMT_VINFO_VEC_STMT.
12119 2015-06-25 Richard Biener <rguenther@suse.de>
12121 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12123 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12124 cleanup resulting dead code and parameters.
12125 (vect_transform_slp_perm_load): Adjust.
12127 2015-06-25 Nick Clifton <nickc@redhat.com>
12129 * config/bfin/bfin.c (bfin_expand_prologue): Set
12130 current_function_static_stack_size if flag_stack_usage_info is set.
12131 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12132 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12133 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12134 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12136 2015-06-25 Tom de Vries <tom@codesourcery.com>
12138 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12139 comment that the generated IV is unsigned.
12141 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12144 * config/arm/arm.c (arm_dbx_register_number): Return
12145 DWARF_FRAME_REGISTERS by default.
12147 2015-06-25 Tom de Vries <tom@codesourcery.com>
12149 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12150 argument. Call verify_dominator when reusing dominator info.
12152 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12155 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12156 an additional element of the unspec vector. Modify indices
12158 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12159 * config/sh/sh.c (prepare_move_operands): Pass incremented
12160 const_int to gen_GOTaddr2picreg.
12161 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12163 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12165 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12166 Condition on TARGET_FLOAT.
12168 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12170 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12173 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12175 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12177 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12178 aarch64_err_no_fpadvsimd.
12180 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12181 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12182 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12183 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12184 Turn error into assert, test TARGET_FLOAT.
12185 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12188 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12191 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12193 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12195 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12197 2015-06-24 Renlin Li <renlin.li@arm.com>
12199 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12200 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12202 2015-06-24 Richard Biener <rguenther@suse.de>
12204 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12206 (lower_opt_convert): Support lowering of conditional view_convert.
12207 (parser::parse_operation): Likewise.
12208 (parser::parse_for): Likewise.
12210 2015-06-24 Renlin Li <renlin.li@arm.com>
12212 * varasm.c (emit_local): Use unsigned int for align variable.
12214 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12217 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12218 for negative numbers.
12220 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12222 PR rtl-optimization/66306
12223 * reload.c (find_reloads): Swap the match_dup info for
12224 commutative operands.
12226 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12228 * config/s390/vx-builtins.md
12229 ("vec_scatter_element<mode>_<non_vec_int>")
12230 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12231 attribute with bhfgq.
12233 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12235 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12237 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12239 * config/s390/s390-builtin-types.def: Add flag to indicate the
12240 options under which the function type is needed.
12241 * config/s390/s390-builtins.def: Add flag to indicate the options
12242 under which the builtin is enabled.
12243 * config/s390/s390-builtins.h: Add flags parameter to macro
12245 (bflags_for_builtin): New function.
12246 (flags_for_builtin): Renamed to ...
12247 (opflags_for_builtin): ... this.
12248 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12249 flags_for_builtin to bflags_for_builtin and
12250 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12251 * config/s390/s390.c: Add initialization of bflags_builtin and
12252 opflags_builtin arrays.
12253 Remove code for flags_builtin.
12254 (s390_init_builtins): Only create builtin function types if one of
12255 their flags is active.
12256 Only create builtins if all of their flags are active.
12257 (s390_expand_builtin): Rename flags_for_builtin to
12258 opflags_for_builtin.
12260 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12262 * config/s390/vecintrin.h: Remove internal builtins.
12264 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12266 * config/s390/s390.c (s390_secondary_reload): Fix check for
12267 GENERAL_REGS register class.
12269 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12271 * config/s390/s390.c (s390_support_vector_misalignment): Call
12272 default implementation for !TARGET_VX.
12274 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12276 * config/s390/s390.c (s390_legitimate_constant_p): Add
12279 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12281 * config/s390/s390.c (s390_vector_abi): New variable definition.
12282 (s390_check_type_for_vector_abi): New function.
12283 (TARGET_ASM_FILE_END): New macro definition.
12284 (s390_asm_file_end): New function.
12285 (s390_function_arg): Call s390_check_type_for_vector_abi.
12286 (s390_gimplify_va_arg): Likewise.
12287 * configure: Regenerate.
12288 * configure.ac: Check for .gnu_attribute Binutils feature.
12290 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12293 * config/bfin/bfin.c (hwloop_optimize): Initialize
12294 JUMP_LABEL for newly created jump.
12296 2015-06-23 Tristan Gingold <gingold@adacore.com>
12298 * collect-utils.c (collect_wait): Unlink the response file here
12300 (do_wait): ...here.
12301 (utils_cleanup): ...and here.
12303 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12305 * df-scan.c: Don't include target-def.h.
12306 * targhooks.c: Likewise.
12307 * config/arm/arm-c.c: Likewise.
12308 * config/i386/i386-c.c: Likewise.
12309 * config/nds32/nds32-cost.c: Likewise.
12310 * config/nds32/nds32-fp-as-gp.c: Likewise.
12311 * config/nds32/nds32-intrinsic.c: Likewise.
12312 * config/nds32/nds32-isr.c: Likewise.
12313 * config/nds32/nds32-md-auxiliary.c: Likewise.
12314 * config/nds32/nds32-memory-manipulation.c: Likewise.
12315 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12316 * config/nds32/nds32-predicates.c: Likewise.
12318 2015-06-23 Richard Biener <rguenther@suse.de>
12320 PR tree-optimization/66636
12321 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12322 def type for further defs for strided stores.
12324 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12326 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12327 conditional selects.
12328 (setcc_int<mode>, setcc_float<mode>): Reformat.
12330 2015-06-23 Marek Polacek <polacek@redhat.com>
12332 * match.pd ((x + y) - (x | y) -> x & y,
12333 (x + y) - (x & y) -> x | y): New patterns.
12335 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12338 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12339 '-dynamic-linker' within %{!shared: ...}.
12341 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12344 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12345 (addsub_vs_operator): Ditto.
12346 (addsub_vs_parallel): Ditto.
12347 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12348 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12349 Put minus RTX before plus and adjust vec_merge selector.
12350 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12351 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12352 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12353 (addsub vec_merge splitters): New combiner splitters.
12354 (addsub vec_select/vec_concat splitters): Ditto.
12356 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12358 PR tree-optimization/66449
12359 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12360 POINTER_PLUS_EXPR for pointers.
12362 2015-06-23 Alan Modra <amodra@gmail.com>
12364 * rtlanal.c (commutative_operand_precedence): Correct comments.
12365 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12366 declaration. Return an int. Distinguish REG,REG return from
12368 (struct simplify_plus_minus_op_data): Make local to function.
12369 (simplify_plus_minus): Don't set canonicalized if merely sorting
12370 registers. Avoid packing ops if nothing changes. White space fixes.
12372 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12374 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12375 -fdump-ada-spec is passed but not if -fsyntax-only is.
12377 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12380 * lra-lives.c (process_bb_lives): Check insn copying the same
12381 reload pseudo and don't create a copy for it.
12383 2015-06-22 Tom de Vries <tom@codesourcery.com>
12385 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12388 2015-06-22 Tom de Vries <tom@codesourcery.com>
12390 * builtins.def (DEF_GOMP_BUILTIN): Test
12391 'flag_tree_parallelize_loops > 1' instead of
12392 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12394 2015-06-22 Tom de Vries <tom@codesourcery.com>
12396 * dominance.c (calculate_dominance_info): Verify dominators if
12399 2015-06-22 Marek Polacek <polacek@redhat.com>
12401 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12402 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12403 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12404 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12406 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12409 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12410 cost of embedded comparison.
12412 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12415 * config/rs6000/predicates.md (altivec_register_operand): Permit
12416 virtual stack registers.
12417 (vsx_register_operand): Likewise.
12418 (vfloat_operand): Likewise.
12419 (vint_operand): Likewise.
12420 (vlogical_operand): Likewise.
12422 2015-06-22 Richard Biener <rguenther@suse.de>
12424 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12425 and single_scalar_iteration_cost members.
12426 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12427 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12428 (vect_get_single_scalar_iteration_cost): Remove.
12429 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12430 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12431 * tree-vect-loop.c (destroy_loop_vec_info): Free
12433 (vect_get_single_scalar_iteration_cost): Compute result into
12434 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12435 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12436 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12437 (vect_estimate_min_profitable_iters): Use them.
12439 2015-06-22 Christian Bruel <christian.bruel@st.com>
12442 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12443 (TARGET_INSERT_ATTRIBUTES): Define.
12444 (thumb_flipper): New var.
12445 * config/arm/arm.opt (-mflip-thumb): New switch.
12447 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12448 Martin Liska <mliska@suse.cz>
12451 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12452 construction of arg_types.
12453 (sem_function::sem_function): Likewise.
12454 (sem_function::~sem_function): Remove destruction of arg_types.
12455 (sem_function::compatible_parm_types_p): New function.
12456 (sem_function::equals_wpa): Reorg matching of return values
12457 and parameter types.
12458 (sem_function::equals_private): Reorg mathcing of argument types.
12459 (sem_function::parse_tree_args): Remove.
12460 * ipa-icf.h (init_wpa): Do not call it.
12461 (parse_tree_args): Remove.
12462 (compatible_parm_types_p): Declare.
12463 (result_type): Remove.
12464 (arg_types): Remove.
12466 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12469 * ipa-polymorphic-call.c
12470 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12471 initializing alias oracle; fix formating; set base_alias_set if it
12474 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12476 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12477 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12478 (find_inc): Likewise.
12479 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12481 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12482 * df-scan.c (df_swap_refs): Remove.
12483 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12484 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12485 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12486 * fold-const.c (fold_relational_const): Likewise.
12487 * genattrtab.c (simplify_test_exp): Likewise.
12488 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12489 gimple_simplify): Likewise.
12490 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12491 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12492 * ipa-devirt.c (add_type_duplicate): Likewise.
12493 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12494 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12495 * lra.c (lra_create_copy): Likewise.
12496 * lto-streamer-out.c (DFS::DFS): Likewise.
12497 * modulo-sched.c (get_sched_window): Likewise.
12498 * omega.c (omega_pretty_print_problem): Likewise.
12499 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12500 * reload1.c (reloads_unique_chain_p): Likewise.
12501 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12502 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12504 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12506 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12507 predicate_mem_writes): Likewise.
12508 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12509 * tree-predcom.c (combine_chains): Likewise.
12510 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12511 refs_may_alias_p_1): Likewise.
12512 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12513 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12514 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12515 number_of_iterations_cond): Likewise.
12516 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12517 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12518 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12519 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12520 * tree-vrp.c (extract_range_from_binary_expr_1,
12521 extract_range_from_unary_expr_1): Likewise.
12523 2015-06-20 Marek Polacek <polacek@redhat.com>
12525 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12527 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12530 * config/sh/sh.c (prepare_move_operands): Replace subreg
12531 index term with R0 for base and index addressing.
12533 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12535 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12537 (movsf_aarch64): Change condition from register_operand to
12538 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12539 load1. Change type for alternative 7 to store1.
12540 (movdf_aarch64): Likewise.
12542 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12544 * config/vax/vax.md: Adjust sign/zero extend patterns to
12545 handle SUBREGs in operands[1].
12547 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12549 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12550 of manually swapping.
12551 (expand_vec_perm_interleave2): Likewise.
12553 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12555 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12556 reuse bounds created for abnormal ssa names.
12558 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12560 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12561 (allocate_stack_<mode>): ... this, and add :P on both
12562 match_operand and unspec.
12563 (allocate_stack): New expander.
12565 2015-06-19 Christian Bruel <christian.bruel@st.com>
12569 * config/arm/arm.c (arm_set_current_function): Handle
12570 explicit default options.
12572 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12574 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12575 (zero-extended cmove with mem peephole2): New pattern.
12576 (cmove with mem peephole2): Merge patterns.
12578 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12580 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12582 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12584 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12585 * config/mips/mips.md (*madd4<mode>): Ditto.
12586 (*nmadd3<mode>) Ditto.
12587 (*nmadd4<mode>_fastmath): Ditto.
12588 (*nmadd3<mode>_fastmath): Ditto.
12589 (*nmsub4<mode>): Ditto.
12590 (*nmsub3<mode>): Ditto.
12591 (*nmsub4<mode>_fastmath): Ditto.
12592 (*nmsub3<mode>_fastmath): Ditto.
12594 2015-06-18 Michael Matz <matz@suse.de>
12596 PR middle-end/66253
12597 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12598 grouped strided stores.
12599 (vectorizable_load): Don't use the DR from first_stmt in
12600 the non-SLP grouped strided case.
12602 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12605 * function.c (assign_bounds): Add arguments assign_regs,
12606 assign_special, assign_bt.
12607 (assign_parms): For vararg functions handle bounds in BT
12608 and special slots after incoming vararg bounds.
12610 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12612 PR middle-end/66568
12613 * cfgexpand.c (expand_return): Handle missing bounds.
12614 (expand_gimple_stmt_1): Likewise.
12615 * tree-chkp.c (chkp_expand_zero_bounds): New.
12616 * tree-chkp.h (chkp_expand_zero_bounds): New.
12618 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12620 PR middle-end/66567
12621 * ipa-chkp.c (chkp_maybe_create_clone): Require
12622 functions to be instrumentable.
12623 * tree-chkp.c (chkp_replace_function_pointer): Use
12624 chkp_instrumentable_p instead of attribute check.
12626 2015-06-18 Richard Biener <rguenther@suse.de>
12628 PR tree-optimization/66510
12629 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12630 number of vector loads for SLP permuted loads.
12631 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12632 check the stride for loop vectorization.
12633 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12634 vectorization factor.
12635 (vect_analyze_group_access): If the group size is not a power
12636 of two require a epilogue loop.
12637 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12638 compute and optimizing and alias test pruning after final
12639 vectorization factor computation.
12640 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12642 (vect_transform_slp_perm_load): Properly compute the original
12643 number of vector load stmts.
12645 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12647 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12648 "unlikely character , in @var" warning.
12650 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12652 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12653 (ix86_function_arg_advance): Ditto.
12654 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12656 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12658 * function.h (struct rtl_data): Remove struct and accessor macros.
12659 * emit-rtl.h (struct rtl_data): Relocate to here.
12660 * Makefile.in (GTFILES): Add emit-rtl.h.
12661 * df-core.c: Include emit-rtl.h.
12662 * genattrtab.c: Likewise.
12663 * genconditions.c: Likewise.
12664 * genpreds.c: Likewise.
12665 * genrecog.c: Likewise.
12666 * regcprop.c: Likewise.
12667 * resource.c: Likewise.
12668 * sched-rgn.c: Likewise.
12669 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12670 * config/i386/winnt.c: Likewise.
12672 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12674 PR middle-end/66429
12675 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12676 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12677 and has_force_vectorize_loops flags from cfun into
12679 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12680 if simduid is non-NULL.
12681 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12682 * passes.def (pass_simduid_cleanup): Add new pass after loop
12684 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12685 indirection from htab argument's type.
12686 (shrink_simd_arrays): New function.
12687 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12688 Don't call adjust_simduid_builtins if there are no loops.
12689 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12690 (pass_simduid_cleanup::execute): New method.
12691 (make_pass_simduid_cleanup): New function.
12693 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12695 * tree-core.h (tree_target_option): Make opts field a pointer to a
12696 cl_target_option instead of an instance of the struct.
12697 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12699 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12700 TARGET_OPTION_NODE.
12701 (copy_node_stat): Allocate and copy struct cl_target_option.
12703 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12705 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12706 Remove conditional exposure of prototypes.
12707 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12708 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12709 definitions in tree.h with functions.
12710 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12712 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12714 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12716 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12717 (*cmp<mode>_signed): ... this.
12718 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12719 (*cmp<mode>_unsigned): ... this. Remove %b.
12721 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12723 * coretypes.h: Include input.h and as-a.h.
12724 * rtl.h: Include input.h and as-a.h for generator files.
12725 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12726 * vec.c: Don't include diagnostic-core.h.
12727 * alias.c: Do not include input.h, line-map.h or is-a.h.
12728 * asan.c: Likewise.
12729 * attribs.c: Likewise.
12730 * auto-inc-dec.c: Likewise.
12731 * auto-profile.c: Likewise.
12732 * bb-reorder.c: Likewise.
12733 * bt-load.c: Likewise.
12734 * builtins.c: Likewise.
12735 * caller-save.c: Likewise.
12736 * calls.c: Likewise.
12737 * ccmp.c: Likewise.
12739 * cfganal.c: Likewise.
12740 * cfgbuild.c: Likewise.
12741 * cfgcleanup.c: Likewise.
12742 * cfgexpand.c: Likewise.
12743 * cfghooks.c: Likewise.
12744 * cfgloop.c: Likewise.
12745 * cfgloop.h: Likewise.
12746 * cfgloopanal.c: Likewise.
12747 * cfgloopmanip.c: Likewise.
12748 * cfgrtl.c: Likewise.
12749 * cgraph.c: Likewise.
12750 * cgraphbuild.c: Likewise.
12751 * cgraphclones.c: Likewise.
12752 * cgraphunit.c: Likewise.
12753 * cilk-common.c: Likewise.
12754 * combine-stack-adj.c: Likewise.
12755 * combine.c: Likewise.
12756 * compare-elim.c: Likewise.
12757 * convert.c: Likewise.
12758 * coverage.c: Likewise.
12759 * cppbuiltin.c: Likewise.
12760 * cprop.c: Likewise.
12762 * cselib.c: Likewise.
12763 * data-streamer-in.c: Likewise.
12764 * data-streamer-out.c: Likewise.
12765 * data-streamer.c: Likewise.
12766 * dbxout.c: Likewise.
12769 * debug.c: Likewise.
12770 * df-core.c: Likewise.
12771 * df-problems.c: Likewise.
12772 * df-scan.c: Likewise.
12775 * diagnostic-core.h: Likewise.
12776 * diagnostic.c: Likewise.
12777 * dojump.c: Likewise.
12778 * dominance.c: Likewise.
12779 * domwalk.c: Likewise.
12780 * double-int.c: Likewise.
12782 * dumpfile.c: Likewise.
12783 * dumpfile.h: Likewise.
12784 * dwarf2asm.c: Likewise.
12785 * dwarf2cfi.c: Likewise.
12786 * dwarf2out.c: Likewise.
12787 * emit-rtl.c: Likewise.
12788 * et-forest.c: Likewise.
12789 * except.c: Likewise.
12790 * explow.c: Likewise.
12791 * expmed.c: Likewise.
12792 * expr.c: Likewise.
12793 * final.c: Likewise.
12794 * fixed-value.c: Likewise.
12795 * fold-const.c: Likewise.
12796 * function.c: Likewise.
12797 * fwprop.c: Likewise.
12798 * gcc-plugin.h: Likewise.
12799 * gcse.c: Likewise.
12800 * generic-match-head.c: Likewise.
12801 * ggc-page.c: Likewise.
12802 * gimple-builder.c: Likewise.
12803 * gimple-expr.c: Likewise.
12804 * gimple-fold.c: Likewise.
12805 * gimple-iterator.c: Likewise.
12806 * gimple-low.c: Likewise.
12807 * gimple-match-head.c: Likewise.
12808 * gimple-pretty-print.c: Likewise.
12809 * gimple-ssa-isolate-paths.c: Likewise.
12810 * gimple-ssa-strength-reduction.c: Likewise.
12811 * gimple-streamer-in.c: Likewise.
12812 * gimple-streamer-out.c: Likewise.
12813 * gimple-streamer.h: Likewise.
12814 * gimple-walk.c: Likewise.
12815 * gimple.c: Likewise.
12816 * gimplify-me.c: Likewise.
12817 * gimplify.c: Likewise.
12818 * godump.c: Likewise.
12819 * graph.c: Likewise.
12820 * graphite-blocking.c: Likewise.
12821 * graphite-dependences.c: Likewise.
12822 * graphite-interchange.c: Likewise.
12823 * graphite-isl-ast-to-gimple.c: Likewise.
12824 * graphite-optimize-isl.c: Likewise.
12825 * graphite-poly.c: Likewise.
12826 * graphite-scop-detection.c: Likewise.
12827 * graphite-sese-to-poly.c: Likewise.
12828 * graphite.c: Likewise.
12829 * haifa-sched.c: Likewise.
12830 * hw-doloop.c: Likewise.
12831 * ifcvt.c: Likewise.
12832 * init-regs.c: Likewise.
12833 * input.c: Likewise.
12834 * internal-fn.c: Likewise.
12835 * ipa-chkp.c: Likewise.
12836 * ipa-comdats.c: Likewise.
12837 * ipa-cp.c: Likewise.
12838 * ipa-devirt.c: Likewise.
12839 * ipa-icf-gimple.c: Likewise.
12840 * ipa-icf.c: Likewise.
12841 * ipa-inline-analysis.c: Likewise.
12842 * ipa-inline-transform.c: Likewise.
12843 * ipa-inline.c: Likewise.
12844 * ipa-polymorphic-call.c: Likewise.
12845 * ipa-profile.c: Likewise.
12846 * ipa-prop.c: Likewise.
12847 * ipa-pure-const.c: Likewise.
12848 * ipa-ref.c: Likewise.
12849 * ipa-reference.c: Likewise.
12850 * ipa-split.c: Likewise.
12851 * ipa-utils.c: Likewise.
12852 * ipa-visibility.c: Likewise.
12854 * ira-build.c: Likewise.
12855 * ira-color.c: Likewise.
12856 * ira-conflicts.c: Likewise.
12857 * ira-costs.c: Likewise.
12858 * ira-emit.c: Likewise.
12859 * ira-lives.c: Likewise.
12861 * jump.c: Likewise.
12862 * langhooks.c: Likewise.
12864 * loop-doloop.c: Likewise.
12865 * loop-init.c: Likewise.
12866 * loop-invariant.c: Likewise.
12867 * loop-iv.c: Likewise.
12868 * loop-unroll.c: Likewise.
12869 * lower-subreg.c: Likewise.
12870 * lra-assigns.c: Likewise.
12871 * lra-coalesce.c: Likewise.
12872 * lra-constraints.c: Likewise.
12873 * lra-eliminations.c: Likewise.
12874 * lra-lives.c: Likewise.
12875 * lra-remat.c: Likewise.
12876 * lra-spills.c: Likewise.
12878 * lto-cgraph.c: Likewise.
12879 * lto-compress.c: Likewise.
12880 * lto-opts.c: Likewise.
12881 * lto-section-in.c: Likewise.
12882 * lto-section-out.c: Likewise.
12883 * lto-streamer-in.c: Likewise.
12884 * lto-streamer-out.c: Likewise.
12885 * lto-streamer.c: Likewise.
12887 * mode-switching.c: Likewise.
12888 * modulo-sched.c: Likewise.
12889 * omega.c: Likewise.
12890 * omp-low.c: Likewise.
12891 * optabs.c: Likewise.
12892 * opts-global.c: Likewise.
12893 * opts.h: Likewise.
12894 * passes.c: Likewise.
12895 * plugin.c: Likewise.
12896 * postreload-gcse.c: Likewise.
12897 * postreload.c: Likewise.
12898 * predict.c: Likewise.
12899 * pretty-print.h: Likewise.
12900 * print-rtl.c: Likewise.
12901 * print-tree.c: Likewise.
12902 * profile.c: Likewise.
12903 * real.c: Likewise.
12904 * realmpfr.c: Likewise.
12905 * recog.c: Likewise.
12907 * reg-stack.c: Likewise.
12908 * regcprop.c: Likewise.
12909 * reginfo.c: Likewise.
12910 * regrename.c: Likewise.
12911 * regstat.c: Likewise.
12912 * reload.c: Likewise.
12913 * reload1.c: Likewise.
12914 * reorg.c: Likewise.
12915 * resource.c: Likewise.
12916 * rtl-chkp.c: Likewise.
12917 * rtl-error.c: Likewise.
12918 * rtlanal.c: Likewise.
12919 * rtlhooks.c: Likewise.
12920 * sanopt.c: Likewise.
12921 * sched-deps.c: Likewise.
12922 * sched-ebb.c: Likewise.
12923 * sched-rgn.c: Likewise.
12924 * sched-vis.c: Likewise.
12925 * sdbout.c: Likewise.
12926 * sel-sched-dump.c: Likewise.
12927 * sel-sched-ir.c: Likewise.
12928 * sel-sched.c: Likewise.
12929 * sese.c: Likewise.
12930 * shrink-wrap.c: Likewise.
12931 * simplify-rtx.c: Likewise.
12932 * stack-ptr-mod.c: Likewise.
12933 * statistics.c: Likewise.
12934 * stmt.c: Likewise.
12935 * stor-layout.c: Likewise.
12936 * store-motion.c: Likewise.
12937 * streamer-hooks.c: Likewise.
12938 * stringpool.c: Likewise.
12939 * symtab.c: Likewise.
12940 * target-globals.c: Likewise.
12941 * targhooks.c: Likewise.
12942 * toplev.c: Likewise.
12943 * tracer.c: Likewise.
12944 * trans-mem.c: Likewise.
12945 * tree-affine.c: Likewise.
12946 * tree-browser.c: Likewise.
12947 * tree-call-cdce.c: Likewise.
12948 * tree-cfg.c: Likewise.
12949 * tree-cfgcleanup.c: Likewise.
12950 * tree-chkp-opt.c: Likewise.
12951 * tree-chkp.c: Likewise.
12952 * tree-chrec.c: Likewise.
12953 * tree-complex.c: Likewise.
12954 * tree-data-ref.c: Likewise.
12955 * tree-dfa.c: Likewise.
12956 * tree-diagnostic.c: Likewise.
12957 * tree-dump.c: Likewise.
12958 * tree-eh.c: Likewise.
12959 * tree-emutls.c: Likewise.
12960 * tree-if-conv.c: Likewise.
12961 * tree-inline.c: Likewise.
12962 * tree-into-ssa.c: Likewise.
12963 * tree-iterator.c: Likewise.
12964 * tree-loop-distribution.c: Likewise.
12965 * tree-nested.c: Likewise.
12966 * tree-nrv.c: Likewise.
12967 * tree-object-size.c: Likewise.
12968 * tree-outof-ssa.c: Likewise.
12969 * tree-parloops.c: Likewise.
12970 * tree-phinodes.c: Likewise.
12971 * tree-predcom.c: Likewise.
12972 * tree-pretty-print.c: Likewise.
12973 * tree-profile.c: Likewise.
12974 * tree-scalar-evolution.c: Likewise.
12975 * tree-sra.c: Likewise.
12976 * tree-ssa-address.c: Likewise.
12977 * tree-ssa-alias.c: Likewise.
12978 * tree-ssa-ccp.c: Likewise.
12979 * tree-ssa-coalesce.c: Likewise.
12980 * tree-ssa-copy.c: Likewise.
12981 * tree-ssa-copyrename.c: Likewise.
12982 * tree-ssa-dce.c: Likewise.
12983 * tree-ssa-dom.c: Likewise.
12984 * tree-ssa-dse.c: Likewise.
12985 * tree-ssa-forwprop.c: Likewise.
12986 * tree-ssa-ifcombine.c: Likewise.
12987 * tree-ssa-live.c: Likewise.
12988 * tree-ssa-loop-ch.c: Likewise.
12989 * tree-ssa-loop-im.c: Likewise.
12990 * tree-ssa-loop-ivcanon.c: Likewise.
12991 * tree-ssa-loop-ivopts.c: Likewise.
12992 * tree-ssa-loop-manip.c: Likewise.
12993 * tree-ssa-loop-niter.c: Likewise.
12994 * tree-ssa-loop-prefetch.c: Likewise.
12995 * tree-ssa-loop-unswitch.c: Likewise.
12996 * tree-ssa-loop.c: Likewise.
12997 * tree-ssa-math-opts.c: Likewise.
12998 * tree-ssa-operands.c: Likewise.
12999 * tree-ssa-phiopt.c: Likewise.
13000 * tree-ssa-phiprop.c: Likewise.
13001 * tree-ssa-pre.c: Likewise.
13002 * tree-ssa-propagate.c: Likewise.
13003 * tree-ssa-reassoc.c: Likewise.
13004 * tree-ssa-sccvn.c: Likewise.
13005 * tree-ssa-scopedtables.c: Likewise.
13006 * tree-ssa-sink.c: Likewise.
13007 * tree-ssa-strlen.c: Likewise.
13008 * tree-ssa-structalias.c: Likewise.
13009 * tree-ssa-tail-merge.c: Likewise.
13010 * tree-ssa-ter.c: Likewise.
13011 * tree-ssa-threadedge.c: Likewise.
13012 * tree-ssa-threadupdate.c: Likewise.
13013 * tree-ssa-uncprop.c: Likewise.
13014 * tree-ssa-uninit.c: Likewise.
13015 * tree-ssa.c: Likewise.
13016 * tree-ssanames.c: Likewise.
13017 * tree-stdarg.c: Likewise.
13018 * tree-streamer-in.c: Likewise.
13019 * tree-streamer-out.c: Likewise.
13020 * tree-streamer.c: Likewise.
13021 * tree-switch-conversion.c: Likewise.
13022 * tree-tailcall.c: Likewise.
13023 * tree-vect-data-refs.c: Likewise.
13024 * tree-vect-generic.c: Likewise.
13025 * tree-vect-loop-manip.c: Likewise.
13026 * tree-vect-loop.c: Likewise.
13027 * tree-vect-patterns.c: Likewise.
13028 * tree-vect-slp.c: Likewise.
13029 * tree-vect-stmts.c: Likewise.
13030 * tree-vectorizer.c: Likewise.
13031 * tree-vrp.c: Likewise.
13032 * tree.c: Likewise.
13033 * tsan.c: Likewise.
13034 * ubsan.c: Likewise.
13035 * valtrack.c: Likewise.
13036 * value-prof.c: Likewise.
13037 * var-tracking.c: Likewise.
13038 * varasm.c: Likewise.
13039 * varpool.c: Likewise.
13040 * vmsdbgout.c: Likewise.
13041 * vtable-verify.c: Likewise.
13043 * wide-int.cc: Likewise.
13044 * xcoffout.c: Likewise.
13045 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13046 * common/common-targhooks.c: Likewise.
13047 * config/aarch64/aarch64-builtins.c: Likewise.
13048 * config/aarch64/aarch64.c: Likewise.
13049 * config/alpha/alpha.c: Likewise.
13050 * config/arc/arc.c: Likewise.
13051 * config/arm/aarch-common.c: Likewise.
13052 * config/arm/arm-builtins.c: Likewise.
13053 * config/arm/arm-c.c: Likewise.
13054 * config/arm/arm.c: Likewise.
13055 * config/avr/avr-c.c: Likewise.
13056 * config/avr/avr-log.c: Likewise.
13057 * config/avr/avr.c: Likewise.
13058 * config/bfin/bfin.c: Likewise.
13059 * config/c6x/c6x.c: Likewise.
13060 * config/cr16/cr16.c: Likewise.
13061 * config/cris/cris.c: Likewise.
13062 * config/darwin-c.c: Likewise.
13063 * config/darwin.c: Likewise.
13064 * config/default-c.c: Likewise.
13065 * config/epiphany/epiphany.c: Likewise.
13066 * config/epiphany/mode-switch-use.c: Likewise.
13067 * config/epiphany/resolve-sw-modes.c: Likewise.
13068 * config/fr30/fr30.c: Likewise.
13069 * config/frv/frv.c: Likewise.
13070 * config/ft32/ft32.c: Likewise.
13071 * config/glibc-c.c: Likewise.
13072 * config/h8300/h8300.c: Likewise.
13073 * config/i386/i386-c.c: Likewise.
13074 * config/i386/i386.c: Likewise.
13075 * config/i386/msformat-c.c: Likewise.
13076 * config/i386/winnt-cxx.c: Likewise.
13077 * config/i386/winnt-stubs.c: Likewise.
13078 * config/i386/winnt.c: Likewise.
13079 * config/ia64/ia64-c.c: Likewise.
13080 * config/ia64/ia64.c: Likewise.
13081 * config/iq2000/iq2000.c: Likewise.
13082 * config/lm32/lm32.c: Likewise.
13083 * config/m32c/m32c-pragma.c: Likewise.
13084 * config/m32c/m32c.c: Likewise.
13085 * config/m32r/m32r.c: Likewise.
13086 * config/m68k/m68k.c: Likewise.
13087 * config/mcore/mcore.c: Likewise.
13088 * config/mep/mep-pragma.c: Likewise.
13089 * config/mep/mep.c: Likewise.
13090 * config/microblaze/microblaze-c.c: Likewise.
13091 * config/microblaze/microblaze.c: Likewise.
13092 * config/mips/mips.c: Likewise.
13093 * config/mmix/mmix.c: Likewise.
13094 * config/mn10300/mn10300.c: Likewise.
13095 * config/moxie/moxie.c: Likewise.
13096 * config/msp430/msp430-c.c: Likewise.
13097 * config/msp430/msp430.c: Likewise.
13098 * config/nds32/nds32-cost.c: Likewise.
13099 * config/nds32/nds32-fp-as-gp.c: Likewise.
13100 * config/nds32/nds32-intrinsic.c: Likewise.
13101 * config/nds32/nds32-isr.c: Likewise.
13102 * config/nds32/nds32-md-auxiliary.c: Likewise.
13103 * config/nds32/nds32-memory-manipulation.c: Likewise.
13104 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13105 * config/nds32/nds32-predicates.c: Likewise.
13106 * config/nds32/nds32.c: Likewise.
13107 * config/nios2/nios2.c: Likewise.
13108 * config/nvptx/nvptx.c: Likewise.
13109 * config/pa/pa.c: Likewise.
13110 * config/pdp11/pdp11.c: Likewise.
13111 * config/rl78/rl78-c.c: Likewise.
13112 * config/rl78/rl78.c: Likewise.
13113 * config/rs6000/rs6000-c.c: Likewise.
13114 * config/rs6000/rs6000.c: Likewise.
13115 * config/rx/rx.c: Likewise.
13116 * config/s390/s390-c.c: Likewise.
13117 * config/s390/s390.c: Likewise.
13118 * config/sh/sh-c.c: Likewise.
13119 * config/sh/sh-mem.cc: Likewise.
13120 * config/sh/sh.c: Likewise.
13121 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13122 * config/sh/sh_treg_combine.cc: Likewise.
13123 * config/sol2-c.c: Likewise.
13124 * config/sol2-cxx.c: Likewise.
13125 * config/sol2-stubs.c: Likewise.
13126 * config/sol2.c: Likewise.
13127 * config/sparc/sparc-c.c: Likewise.
13128 * config/sparc/sparc.c: Likewise.
13129 * config/spu/spu-c.c: Likewise.
13130 * config/spu/spu.c: Likewise.
13131 * config/stormy16/stormy16.c: Likewise.
13132 * config/tilegx/mul-tables.c: Likewise.
13133 * config/tilegx/tilegx-c.c: Likewise.
13134 * config/tilegx/tilegx.c: Likewise.
13135 * config/tilepro/mul-tables.c: Likewise.
13136 * config/tilepro/tilepro-c.c: Likewise.
13137 * config/tilepro/tilepro.c: Likewise.
13138 * config/v850/v850-c.c: Likewise.
13139 * config/v850/v850.c: Likewise.
13140 * config/vax/vax.c: Likewise.
13141 * config/visium/visium.c: Likewise.
13142 * config/vms/vms-c.c: Likewise.
13143 * config/vms/vms.c: Likewise.
13144 * config/vxworks.c: Likewise.
13145 * config/winnt-c.c: Likewise.
13146 * config/xtensa/xtensa.c: Likewise.
13148 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13150 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13152 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13154 2015-06-17 Richard Biener <rguenther@suse.de>
13156 PR tree-optimization/66251
13157 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13158 stmts for SLP strided stores.
13161 2015-05-22 Richard Biener <rguenther@suse.de>
13163 PR tree-optimization/66251
13164 * tree-vect-stmts.c (vectorizable_conversion): Properly
13165 set STMT_VINFO_VEC_STMT even for the SLP case.
13167 2015-05-26 Michael Matz <matz@suse.de>
13169 PR middle-end/66251
13170 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13171 STMT_VINFO_VEC_STMT, also with SLP.
13173 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13176 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13177 (*avx_addsubv4df3_1s): Ditto.
13178 (*sse3_addsubv2df3_1): Ditto.
13179 (*sse3_addsubv2df3_1s): Ditto.
13180 (*avx_addsubv8sf3_1): Ditto.
13181 (*avx_addsubv8sf3_1s): Ditto.
13182 (*sse3_addsubv4sf3_1): Ditto.
13183 (*sse3_addsubv4sf3_1s): Ditto.
13185 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13187 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13188 (SYSROOT_SUFFIX_SPEC): Update.
13189 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13190 (STARTFILE_PREFIX_SPEC): Update.
13191 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13192 (MULTILIB_REQUIRED): New.
13193 (MULTILIB_OSDIRNAMES): New.
13194 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13195 (MULTILIB_REQUIRED): New.
13196 (MULTILIB_OSDIRNAMES): New.
13198 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13200 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13201 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13202 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13203 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13204 (AARCH64_FL_PAN): New.
13205 (AARCH64_FL_LOR): New.
13206 (AARCH64_FL_RDMA): New.
13207 (AARCH64_FL_FOR_ARCH8_1): New.
13208 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13209 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13211 2015-06-16 Martin Liska <mliska@suse.cz>
13213 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13214 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13217 2015-06-16 Richard Biener <rguenther@suse.de>
13219 * tree-vect-stmts.c (vectorizable_store): Adjust.
13220 (vectorizable_load): Likewise.
13221 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13223 (vect_create_data_ref_ptr): Likewise.
13224 (bump_vector_ptr): Adjust.
13226 2015-06-16 Richard Biener <rguenther@suse.de>
13228 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13229 with the first element if this is grouped loads.
13231 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13233 * config/arm/arm-protos.h (struct tune_params): Rename
13234 log_op_non_sc to log_op_non_short_circuit, and rename enum
13235 values to expand SC to SHORT_CIRCUIT.
13236 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13237 to LOG_OP_NON_SHORT_CIRCUIT.
13238 (arm_fastmul_tune):Likewise
13239 (arm_strongarm_tune): Likewise.
13240 (arm_xscale_tune): Likewise.
13241 (arm_9e_tune): Likewise.
13242 (arm_marvell_pj4_tune): Likewise.
13243 (arm_v6t2_tune): Likewise.
13244 (arm_cortex_tune): Likewise.
13245 (arm_cortex_a8_tune): Likewise.
13246 (arm_cortex_a7_tune): Likewise.
13247 (arm_cortex_a15_tune): Likewise.
13248 (arm_cortex_a53_tune): Likewise.
13249 (arm_cortex_a57_tune): Likewise.
13250 (arm_xgene1_tune): Likewise.
13251 (arm_cortex_a5_tune): Likewise.
13252 (arm_cortex_a9_tune): Likewise.
13253 (arm_cortex_a12_tune): Likewise.
13254 (arm_v7m_tune): Likewise.
13255 (arm_cortex_m7_tune): Likewise.
13256 (arm_v6m_tune): Likewise.
13257 (arm_fa726te_tune): Likewise.
13259 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13261 * altivec.md: Delete UNSPEC_VMLADDUHM.
13262 (mulv4si3_p8): New pattern.
13263 (mulv4si3): Use it for POWER8.
13264 (mulv8hi3): Use vmladduhm with zero addend.
13265 (altivec_vmladduhm): Descriptive RTL.
13267 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13269 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13270 to use neon_move instead of mov_imm.
13271 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13272 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13274 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13275 aarch64_float_const_zero_rtx_p check before TFmode check.
13276 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13278 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13279 code and attributes to match. Change condition from register_operand
13280 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13281 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13284 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13287 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13288 there is no parent.
13290 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13292 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13293 HOST_WIDE_INT parameter.
13295 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13298 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13299 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13301 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13303 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13305 * rtl.h (classify_insn): Declare.
13306 * emit-rtl.c (classify_insn): Move to...
13307 * rtl.c: ...here and add generator support.
13308 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13309 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13310 * genemit.c (gen_emit_seq): New function.
13311 (gen_expand, gen_split): Use it.
13313 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13315 * tree.c (make_vector_stat): Fix comment to state that the
13316 function returns a VECTOR_CST.
13318 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13320 * gensupport.h (add_implicit_parallel): Declare.
13321 * genrecog.c (add_implicit_parallel): Move to...
13322 * gensupport.c (add_implicit_parallel): ...here.
13323 (process_one_cond_exec): Use it.
13324 * genemit.c (gen_insn): Likewise.
13326 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13329 * passes.c (rest_of_decl_compilation): Do not register globals for
13330 early debug if they are declared in built-ins.
13332 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13334 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13336 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13338 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13340 (noce_try_cmove_arith): Likewise.
13341 (noce_get_alt_condition): Likewise.
13343 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13345 * common/config/i386/i386-common.c
13346 (OPTION_MASK_ISA_MWAITX_SET): New.
13347 (ix86_handle_option): Handle mwaitx.
13348 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13349 (x86_64-*-*): Likewise.
13350 * config/i386/mwaitxintrin.h: New header.
13351 * config/i386/cpuid.h (bit_MWAITX): Define.
13352 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13354 * config/i386/i386.opt (mwaitx): New.
13355 * config/i386/i386-builtin-types.def
13356 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13357 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13358 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13360 (ix86_option_override_internal): Handle new option.
13361 (processor_alias_table): Added PTA_MWAITX.
13362 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13363 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13364 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13365 IX86_BUILTIN_MONITORX built-ins.
13366 * config/i386/i386.h (TARGET_MWAITX): New.
13367 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13369 (mwaitx): New pattern.
13370 (monitorx_<mode>): New pattern.
13371 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13372 * doc/extend.texi: Document monitorx and mwaitx builtins.
13373 * doc/invoke.texi: Document -mmwaitx option.
13375 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13377 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13378 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13380 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13382 * dbxout.c (xcoff_debug_hooks): Provide a function for
13383 register_main_translation_unit hook.
13385 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13387 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13388 variants cases from switch.
13389 (rs6000_post_atomic_barrier): Same.
13390 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13391 (rs6000_expand_atomic_exchange): Same.
13392 (rs6000_expand_atomic_op): Same.
13393 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13394 SYNC variants cases from switch.
13395 (atomic_load): Same.
13396 (atomic_store): Same.
13398 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13400 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13401 CONST_INT for goto.
13403 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13406 * dwarf2out.c (check_die): Check for common duplicate attributes.
13407 (add_location_or_const_value_attribute): Do not add duplicate
13409 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13411 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13412 (gen_type_die_with_usage): Call check_die.
13413 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13415 2015-06-11 Jason Merrill <jason@redhat.com>
13417 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13420 2015-06-11 Marek Polacek <polacek@redhat.com>
13422 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13424 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13427 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13428 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13429 (*addx_extend_sp32): Fix pasto.
13430 (*subx_extend): Rename into...
13431 (*subx_extend_sp32): ...this.
13432 (*adddi3_extend_sp32): Add earlyclobber.
13433 (*subdi3_insn_sp32): Likewise.
13434 (*subdi3_extend_sp32): Likewise.
13435 (*and_not_di_sp32): Likewise.
13436 (*or_not_di_sp32): Likewise.
13437 (*xor_not_di_sp32): Likewise.
13438 (*negdi2_sp32): Likewise.
13439 (*one_cmpldi2_sp32): Likewise.
13441 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13443 * debug.h (struct gcc_debug_hooks): Add a
13444 register_main_translation_unit hook.
13445 * debug.c (do_nothing_debug_hooks): Provide a function for this
13447 * dbxout.c (dbx_debug_hooks): Likewise.
13448 * sdbout.c (sdb_debug_hooks): Likewise.
13449 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13450 * dwarf2out.c (main_translation_unit): New global variable.
13451 (dwarf2out_register_main_translation_unit): New function
13452 implementing the new hook.
13453 (dwarf2_debug_hooks): Assign
13454 dwarf2out_register_main_translation_unit to this new hook.
13455 (dwarf2out_init): Associate any main translation unit to
13458 2015-06-11 Marek Polacek <polacek@redhat.com>
13460 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13462 2015-06-11 Marek Polacek <polacek@redhat.com>
13464 * match.pd: Use single_use throughout.
13466 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13468 * config/arm/arm.c (arm_option_params_internal): When optimising
13469 for speed set max_insns_skipped when arm_restrict_it.
13471 2015-06-11 Christian Bruel <christian.bruel@st.com>
13474 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13476 (arm_cpu_builtins): New function.
13477 (arm_pragma_target_parse): Call arm_cpu_builtins.
13478 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13479 (arm_register_target_pragmas): Likewise.
13480 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13481 Call arm_register_target_pragmas.
13482 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13483 (arm_pragma_target_parse): Likewise.
13485 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13487 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13488 of the second operand.
13490 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13493 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13494 to prepare mask operand for AVX512 modes.
13496 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13499 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13500 if you use a constraint that targets a VSX register, you must use
13501 %x<n> in the template.
13503 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13505 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13506 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13507 (define_insn "trap"): New definition.
13509 2015-06-10 Richard Biener <rguenther@suse.de>
13511 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13513 (vect_supported_load_permutation_p): ... here. Handle
13514 supportable permutations in reductions.
13515 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13516 for vectorizing strided group loads.
13518 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13521 * config/i386/i386.c (ix86_split_long_move): For collisions
13522 involving direct tls segment refs, move the UNSPEC_TP possibly
13523 wrapped in ZERO_EXTEND out of the address for lea, to each of
13526 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13528 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13529 dmb sy. Adjust tabs.
13531 2015-06-10 Tom de Vries <tom@codesourcery.com>
13533 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13535 2015-06-10 Martin Liska <mliska@suse.cz>
13538 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13539 all enum values in mem_alloc_origin.
13540 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13542 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13543 * bitmap.c (bitmap_register): Likewise.
13544 (dump_bitmap_statistics): Likewise.
13545 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13546 (ggc_record_overhead): Likewise.
13547 * hash-map.h: Likewise.
13548 * hash-set.h: Likewise.
13549 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13550 * hash-table.h: Likewise.
13551 * vec.c (vec_prefix::register_overhead): Likewise.
13552 (vec_prefix::release_overhead): Likewise.
13553 (dump_vec_loc_statistics): Likewise.
13555 2015-06-09 Christian Bruel <christian.bruel@st.com>
13558 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13559 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13560 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13561 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13562 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13563 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13564 (arm_valid_target_attribute_p): Likewise.
13565 (arm_set_current_function, arm_can_inline_p): Likewise.
13566 (arm_valid_target_attribute_rec): Likewise.
13567 (arm_previous_fndecl): New variable.
13568 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13569 (TARGET_CAN_INLINE_P): Define.
13570 (arm_asm_trampoline_template): Emit mode.
13571 (arm_file_start): Don't set unified syntax.
13572 (arm_declare_function_name): Set unified syntax and mode.
13573 (arm_option_override): Init target_option_default_node.
13574 and target_option_current_node.
13575 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13576 (*call_symbol): Likewise.
13577 * doc/extend.texi: Document ARM/Thumb target attribute.
13578 * doc/invoke.texi: Likewise.
13580 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13583 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13584 PR rtl-optimization/64164
13585 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13586 * tree-ssa-copyrename.c: Removed.
13587 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13588 -ftree-coalesce-vars.
13589 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13590 * common.opt (ftree-copyrename): Ignore.
13591 (ftree-coalesce-inlined-vars): Likewise.
13592 * doc/invoke.texi: Remove the ignored options above.
13593 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13594 * tree-ssa-coalesce.h: ... here.
13595 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13596 headers required by it.
13597 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13598 across variables when flag_tree_coalesce_vars. Check register
13599 use and promoted modes to allow coalescing. Moved to
13600 tree-ssa-coalesce.c.
13601 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13602 with its member functions to tree-ssa-coalesce.c.
13603 (var_map_base_init): Likewise. Renamed to
13604 compute_samebase_partition_bases.
13605 (partition_view_normal): Drop want_bases parameter.
13606 (partition_view_bitmap): Likewise.
13607 * tree-ssa-live.h: Adjust declarations.
13608 * tree-ssa-coalesce.c: Include explow.h.
13609 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13610 default defs at the entry point.
13611 (dump_part_var_map): New.
13612 (compute_optimized_partition_bases): New, called by...
13613 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13614 of compute_samebase_partition_bases. Adjust.
13615 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13616 * cfgexpand.c (leader_merge): New.
13617 (get_rtl_for_parm_ssa_default_def): New.
13618 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13619 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13620 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13621 redundant MEM attr setting.
13622 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13624 (expand_one_stack_var): ... this. New wrapper to check and
13625 skip already expanded SSA partitions.
13626 (record_alignment_for_reg_var): New, factored out of...
13627 (expand_one_var): ... this.
13628 (expand_one_ssa_partition): New.
13629 (adjust_one_expanded_partition_var): New.
13630 (expand_one_register_var): Check and skip already expanded SSA
13632 (expand_used_vars): Don't create DECLs for anonymous SSA
13633 names. Expand all SSA partitions, then adjust all SSA names.
13634 (pass::execute): Replace the loops that set
13635 SA.partition_to_pseudo from partition leaders and cleared
13636 DECL_RTL for multi-location variables, and that which used to
13637 rename vars and set attrs, with one that clears DECL_RTL and
13638 checks that PARMs and RESULTs default_defs match DECL_RTL.
13639 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13640 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13641 * explow.c (promote_ssa_mode): New.
13642 * explow.h (promote_ssa_mode): Declare.
13643 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13644 * function.c: Include cfgexpand.h.
13645 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13646 (use_register_for_parm_decl): Wrapper for the above to
13647 special-case the result_ptr.
13648 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13649 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13650 multiple locations.
13651 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13652 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13653 (assign_parm_setup_block): Prefer SSA-assigned location.
13654 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13655 if stack_parm is NULL.
13656 (assign_parm_setup_stack): Prefer SSA-assigned location.
13657 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13658 rtl before testing for pointer bounds. Special-case result_ptr.
13659 (expand_function_start): Maybe reset DECL_RTL of result.
13660 Prefer SSA-assigned location for result and static chain.
13661 Factor out DECL_RESULT and SET_DECL_RTL.
13662 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13663 anonymous SSA names. Use promote_ssa_mode.
13664 (get_temp_reg): Likewise.
13665 (remove_ssa_form): Adjust.
13666 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13667 and get its reg_usage for reg invalidation.
13668 (compute_bb_dataflow): Pass it insn.
13669 (emit_notes_in_bb): Likewise.
13670 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13671 fail assert on conversion between unsigned types.
13673 2015-06-09 Tom de Vries <tom@codesourcery.com>
13675 PR tree-optimization/65460
13676 * omp-low.c (expand_omp_target): Set parallelized_function on
13677 cgraph_node for child_fn.
13679 2015-06-09 Tom de Vries <tom@codesourcery.com>
13681 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13682 parallelized_function before add_new_function.
13684 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13686 * gcc-plugin.h: Move decls to plugin.h and include it.
13687 * plugin.h: Relocate decls from gcc-plugin.h
13688 * ggc-page.c: Include required header files.
13689 * passes.c: Likewise.
13690 * cgraphunit.c: Likewise.
13692 2015-06-09 Tom de Vries <tom@codesourcery.com>
13694 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13696 2015-06-09 Jason Merrill <jason@redhat.com>
13699 * toplev.c (check_global_declaration): Don't warn about a clone.
13701 2015-06-09 Marek Polacek <polacek@redhat.com>
13703 PR tree-optimization/66299
13704 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13705 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13708 2015-06-09 Richard Biener <rguenther@suse.de>
13710 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13711 (vect_analyze_slp_instance): Instead do not falsely drop
13714 2015-06-09 Richard Biener <rguenther@suse.de>
13716 PR middle-end/66423
13717 * match.pd: Handle A % (unsigned)(1 << B).
13719 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13721 * varasm.c (output_object_block_htab): Remove.
13722 (output_object_block_compare): New.
13723 (output_object_blocks): Sort named object_blocks before outputting
13726 2015-06-09 Richard Biener <rguenther@suse.de>
13728 PR tree-optimization/66419
13729 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13730 consider GROUP_GAP when detecting a perfect subchain.
13732 2015-06-09 Nick Clifton <nickc@redhat.com>
13734 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13735 place read only data in the .frodata section.
13737 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13739 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13740 (atomic_store<mode>): Likewise.
13742 2015-06-09 Richard Biener <rguenther@suse.de>
13744 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13746 2015-06-09 Richard Biener <rguenther@suse.de>
13748 PR middle-end/66413
13749 * tree-inline.c (insert_init_debug_bind): Unshare value.
13751 2015-06-09 Richard Biener <rguenther@suse.de>
13753 PR tree-optimization/66396
13754 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13755 Rename virtual operands.
13757 2015-06-09 Tom de Vries <tom@codesourcery.com>
13759 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13760 always return false.
13762 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13764 PR rtl-optimization/64164
13765 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13766 * tree-ssa-copyrename.c: Removed.
13767 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13768 -ftree-coalesce-vars.
13769 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13770 * common.opt (ftree-copyrename): Ignore.
13771 (ftree-coalesce-inlined-vars): Likewise.
13772 * doc/invoke.texi: Remove the ignored options above.
13773 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13774 * tree-ssa-coalesce.h: ... here.
13775 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13776 headers required by it.
13777 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13778 across variables when flag_tree_coalesce_vars. Check register
13779 use and promoted modes to allow coalescing. Moved to
13780 tree-ssa-coalesce.c.
13781 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13782 with its member functions to tree-ssa-coalesce.c.
13783 (var_map_base_init): Likewise. Renamed to
13784 compute_samebase_partition_bases.
13785 (partition_view_normal): Drop want_bases parameter.
13786 (partition_view_bitmap): Likewise.
13787 * tree-ssa-live.h: Adjust declarations.
13788 * tree-ssa-coalesce.c: Include explow.h.
13789 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13790 default defs at the entry point.
13791 (dump_part_var_map): New.
13792 (compute_optimized_partition_bases): New, called by...
13793 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13794 of compute_samebase_partition_bases. Adjust.
13795 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13796 * cfgexpand.c (leader_merge): New.
13797 (get_rtl_for_parm_ssa_default_def): New.
13798 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13799 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13800 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13801 redundant MEM attr setting.
13802 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13804 (expand_one_stack_var): ... this. New wrapper to check and
13805 skip already expanded SSA partitions.
13806 (record_alignment_for_reg_var): New, factored out of...
13807 (expand_one_var): ... this.
13808 (expand_one_ssa_partition): New.
13809 (adjust_one_expanded_partition_var): New.
13810 (expand_one_register_var): Check and skip already expanded SSA
13812 (expand_used_vars): Don't create DECLs for anonymous SSA
13813 names. Expand all SSA partitions, then adjust all SSA names.
13814 (pass::execute): Replace the loops that set
13815 SA.partition_to_pseudo from partition leaders and cleared
13816 DECL_RTL for multi-location variables, and that which used to
13817 rename vars and set attrs, with one that clears DECL_RTL and
13818 checks that PARMs and RESULTs default_defs match DECL_RTL.
13819 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13820 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13821 * explow.c (promote_ssa_mode): New.
13822 * explow.h (promote_ssa_mode): Declare.
13823 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13824 * function.c: Include cfgexpand.h.
13825 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13826 (use_register_for_parm_decl): Wrapper for the above to
13827 special-case the result_ptr.
13828 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13829 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13830 multiple locations.
13831 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13832 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13833 (assign_parm_setup_block): Prefer SSA-assigned location.
13834 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13835 if stack_parm is NULL.
13836 (assign_parm_setup_stack): Prefer SSA-assigned location.
13837 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13838 rtl before testing for pointer bounds. Special-case result_ptr.
13839 (expand_function_start): Maybe reset DECL_RTL of result.
13840 Prefer SSA-assigned location for result and static chain.
13841 Factor out DECL_RESULT and SET_DECL_RTL.
13842 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13843 anonymous SSA names. Use promote_ssa_mode.
13844 (get_temp_reg): Likewise.
13845 (remove_ssa_form): Adjust.
13846 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13847 and get its reg_usage for reg invalidation.
13848 (compute_bb_dataflow): Pass it insn.
13849 (emit_notes_in_bb): Likewise.
13850 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13851 fail assert on conversion between unsigned types.
13853 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13856 * tree-inline.c (reset_debug_binding): New.
13857 (reset_debug_bindings): Likewise.
13858 (expand_call_inline): Call it.
13860 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13862 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13865 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13867 * lto-streamer-out.c (lto_output_location): Stream
13868 reserved locations correctly.
13869 * lto-streamer-in.c (lto_output_location): Likewise.
13871 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13873 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13874 * ggc.h: Don't include statistics.h>
13875 * hash-map.h: Remove all includes.
13876 * hash-set.h: Likewise.
13877 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13878 the include list. Remove <new>.
13879 * inchash.h: Remove all includes.
13880 * mem-stats.h: Likewise.
13881 * vec.h: No special processing for generators or ggc.
13882 * alias.c : Adjust include files.
13883 * alloc-pool.c : Likewise.
13884 * alloc-pool.h : Likewise.
13885 * asan.c : Likewise.
13886 * attribs.c : Likewise.
13887 * auto-inc-dec.c : Likewise.
13888 * auto-profile.c : Likewise.
13889 * bb-reorder.c : Likewise.
13890 * bitmap.c : Likewise.
13891 * bitmap.h : Likewise.
13892 * bt-load.c : Likewise.
13893 * builtins.c : Likewise.
13894 * caller-save.c : Likewise.
13895 * calls.c : Likewise.
13896 * ccmp.c : Likewise.
13897 * cfg.c : Likewise.
13898 * cfganal.c : Likewise.
13899 * cfgbuild.c : Likewise.
13900 * cfgcleanup.c : Likewise.
13901 * cfgexpand.c : Likewise.
13902 * cfghooks.c : Likewise.
13903 * cfgloop.c : Likewise.
13904 * cfgloop.h : Likewise.
13905 * cfgloopanal.c : Likewise.
13906 * cfgloopmanip.c : Likewise.
13907 * cfgrtl.c : Likewise.
13908 * cgraph.c : Likewise.
13909 * cgraphbuild.c : Likewise.
13910 * cgraphclones.c : Likewise.
13911 * cgraphunit.c : Likewise.
13912 * cilk-common.c : Likewise.
13913 * combine-stack-adj.c : Likewise.
13914 * combine.c : Likewise.
13915 * compare-elim.c : Likewise.
13916 * context.c : Likewise.
13917 * convert.c : Likewise.
13918 * coverage.c : Likewise.
13919 * cppbuiltin.c : Likewise.
13920 * cprop.c : Likewise.
13921 * cse.c : Likewise.
13922 * cselib.c : Likewise.
13923 * data-streamer-in.c : Likewise.
13924 * data-streamer-out.c : Likewise.
13925 * data-streamer.c : Likewise.
13926 * data-streamer.h : Likewise.
13927 * dbxout.c : Likewise.
13928 * dce.c : Likewise.
13929 * ddg.c : Likewise.
13930 * debug.c : Likewise.
13931 * df-core.c : Likewise.
13932 * df-problems.c : Likewise.
13933 * df-scan.c : Likewise.
13935 * dfp.c : Likewise.
13936 * dojump.c : Likewise.
13937 * dominance.c : Likewise.
13938 * domwalk.c : Likewise.
13939 * double-int.c : Likewise.
13940 * dse.c : Likewise.
13941 * dumpfile.c : Likewise.
13942 * dwarf2asm.c : Likewise.
13943 * dwarf2cfi.c : Likewise.
13944 * dwarf2out.c : Likewise.
13945 * emit-rtl.c : Likewise.
13946 * et-forest.c : Likewise.
13947 * except.c : Likewise.
13948 * except.h : Likewise.
13949 * explow.c : Likewise.
13950 * expmed.c : Likewise.
13951 * expr.c : Likewise.
13952 * final.c : Likewise.
13953 * fixed-value.c : Likewise.
13954 * fold-const.c : Likewise.
13955 * function.c : Likewise.
13956 * fwprop.c : Likewise.
13957 * gcc-plugin.h : Likewise.
13958 * gcc.c : Likewise.
13959 * gcse-common.c : Likewise.
13960 * gcse.c : Likewise.
13961 * genattrtab.c : Likewise.
13962 * genautomata.c : Likewise.
13963 * genconditions.c : Likewise.
13964 * genemit.c : Likewise.
13965 * generic-match-head.c : Likewise.
13966 * genextract.c : Likewise.
13967 * gengtype-state.c : Likewise.
13968 * gengtype.c : Likewise.
13969 * genhooks.c : Likewise.
13970 * genmatch.c : Likewise.
13971 * genmodes.c : Likewise.
13972 * genrecog.c : Likewise.
13973 * gensupport.c : Likewise.
13974 * ggc-common.c : Likewise.
13975 * ggc-internal.h : Likewise.
13976 * ggc-none.c : Likewise.
13977 * ggc-page.c : Likewise.
13978 * gimple-builder.c : Likewise.
13979 * gimple-expr.c : Likewise.
13980 * gimple-fold.c : Likewise.
13981 * gimple-iterator.c : Likewise.
13982 * gimple-low.c : Likewise.
13983 * gimple-match-head.c : Likewise.
13984 * gimple-pretty-print.c : Likewise.
13985 * gimple-ssa-isolate-paths.c : Likewise.
13986 * gimple-ssa-strength-reduction.c : Likewise.
13987 * gimple-ssa.h : Likewise.
13988 * gimple-streamer-in.c : Likewise.
13989 * gimple-streamer-out.c : Likewise.
13990 * gimple-streamer.h : Likewise.
13991 * gimple-walk.c : Likewise.
13992 * gimple.c : Likewise.
13993 * gimplify-me.c : Likewise.
13994 * gimplify.c : Likewise.
13995 * godump.c : Likewise.
13996 * graph.c : Likewise.
13997 * graphds.c : Likewise.
13998 * graphite-blocking.c : Likewise.
13999 * graphite-dependences.c : Likewise.
14000 * graphite-interchange.c : Likewise.
14001 * graphite-isl-ast-to-gimple.c : Likewise.
14002 * graphite-optimize-isl.c : Likewise.
14003 * graphite-poly.c : Likewise.
14004 * graphite-scop-detection.c : Likewise.
14005 * graphite-sese-to-poly.c : Likewise.
14006 * graphite.c : Likewise.
14007 * haifa-sched.c : Likewise.
14008 * hard-reg-set.h : Likewise.
14009 * hw-doloop.c : Likewise.
14010 * ifcvt.c : Likewise.
14011 * inchash.c : Likewise.
14012 * incpath.c : Likewise.
14013 * init-regs.c : Likewise.
14014 * input.c : Likewise.
14015 * internal-fn.c : Likewise.
14016 * ipa-chkp.c : Likewise.
14017 * ipa-comdats.c : Likewise.
14018 * ipa-cp.c : Likewise.
14019 * ipa-devirt.c : Likewise.
14020 * ipa-icf-gimple.c : Likewise.
14021 * ipa-icf.c : Likewise.
14022 * ipa-inline-analysis.c : Likewise.
14023 * ipa-inline-transform.c : Likewise.
14024 * ipa-inline.c : Likewise.
14025 * ipa-polymorphic-call.c : Likewise.
14026 * ipa-profile.c : Likewise.
14027 * ipa-prop.c : Likewise.
14028 * ipa-pure-const.c : Likewise.
14029 * ipa-ref.c : Likewise.
14030 * ipa-reference.c : Likewise.
14031 * ipa-split.c : Likewise.
14032 * ipa-utils.c : Likewise.
14033 * ipa-visibility.c : Likewise.
14034 * ipa.c : Likewise.
14035 * ira-build.c : Likewise.
14036 * ira-color.c : Likewise.
14037 * ira-conflicts.c : Likewise.
14038 * ira-costs.c : Likewise.
14039 * ira-emit.c : Likewise.
14040 * ira-lives.c : Likewise.
14041 * ira.c : Likewise.
14042 * jump.c : Likewise.
14043 * langhooks.c : Likewise.
14044 * lcm.c : Likewise.
14045 * libfuncs.h : Likewise.
14046 * lists.c : Likewise.
14047 * loop-doloop.c : Likewise.
14048 * loop-init.c : Likewise.
14049 * loop-invariant.c : Likewise.
14050 * loop-iv.c : Likewise.
14051 * loop-unroll.c : Likewise.
14052 * lower-subreg.c : Likewise.
14053 * lra-assigns.c : Likewise.
14054 * lra-coalesce.c : Likewise.
14055 * lra-constraints.c : Likewise.
14056 * lra-eliminations.c : Likewise.
14057 * lra-lives.c : Likewise.
14058 * lra-remat.c : Likewise.
14059 * lra-spills.c : Likewise.
14060 * lra.c : Likewise.
14061 * lto-cgraph.c : Likewise.
14062 * lto-compress.c : Likewise.
14063 * lto-opts.c : Likewise.
14064 * lto-section-in.c : Likewise.
14065 * lto-section-out.c : Likewise.
14066 * lto-streamer-in.c : Likewise.
14067 * lto-streamer-out.c : Likewise.
14068 * lto-streamer.c : Likewise.
14069 * lto-streamer.h : Likewise.
14070 * mcf.c : Likewise.
14071 * mode-switching.c : Likewise.
14072 * modulo-sched.c : Likewise.
14073 * omega.c : Likewise.
14074 * omp-low.c : Likewise.
14075 * optabs.c : Likewise.
14076 * opts-global.c : Likewise.
14077 * opts.h : Likewise.
14078 * passes.c : Likewise.
14079 * plugin.c : Likewise.
14080 * postreload-gcse.c : Likewise.
14081 * postreload.c : Likewise.
14082 * predict.c : Likewise.
14083 * print-rtl.c : Likewise.
14084 * print-tree.c : Likewise.
14085 * profile.c : Likewise.
14086 * read-md.c : Likewise.
14087 * read-md.h : Likewise.
14088 * read-rtl.c : Likewise.
14089 * real.c : Likewise.
14090 * realmpfr.c : Likewise.
14091 * recog.c : Likewise.
14092 * ree.c : Likewise.
14093 * reg-stack.c : Likewise.
14094 * regcprop.c : Likewise.
14095 * reginfo.c : Likewise.
14096 * regrename.c : Likewise.
14097 * regstat.c : Likewise.
14098 * reload.c : Likewise.
14099 * reload1.c : Likewise.
14100 * reorg.c : Likewise.
14101 * resource.c : Likewise.
14102 * rtl-chkp.c : Likewise.
14103 * rtl.c : Likewise.
14104 * rtl.h : Likewise.
14105 * rtlanal.c : Likewise.
14106 * rtlhash.c : Likewise.
14107 * rtlhash.h : Likewise.
14108 * rtlhooks.c : Likewise.
14109 * sanopt.c : Likewise.
14110 * sched-deps.c : Likewise.
14111 * sched-ebb.c : Likewise.
14112 * sched-rgn.c : Likewise.
14113 * sched-vis.c : Likewise.
14114 * sdbout.c : Likewise.
14115 * sel-sched-dump.c : Likewise.
14116 * sel-sched-ir.c : Likewise.
14117 * sel-sched-ir.h : Likewise.
14118 * sel-sched.c : Likewise.
14119 * sese.c : Likewise.
14120 * shrink-wrap.c : Likewise.
14121 * shrink-wrap.h : Likewise.
14122 * simplify-rtx.c : Likewise.
14123 * stack-ptr-mod.c : Likewise.
14124 * statistics.c : Likewise.
14125 * stmt.c : Likewise.
14126 * stor-layout.c : Likewise.
14127 * store-motion.c : Likewise.
14128 * stringpool.c : Likewise.
14129 * symtab.c : Likewise.
14130 * target-globals.c : Likewise.
14131 * targhooks.c : Likewise.
14132 * tlink.c : Likewise.
14133 * toplev.c : Likewise.
14134 * tracer.c : Likewise.
14135 * trans-mem.c : Likewise.
14136 * tree-affine.c : Likewise.
14137 * tree-affine.h : Likewise.
14138 * tree-browser.c : Likewise.
14139 * tree-call-cdce.c : Likewise.
14140 * tree-cfg.c : Likewise.
14141 * tree-cfgcleanup.c : Likewise.
14142 * tree-chkp-opt.c : Likewise.
14143 * tree-chkp.c : Likewise.
14144 * tree-chrec.c : Likewise.
14145 * tree-complex.c : Likewise.
14146 * tree-data-ref.c : Likewise.
14147 * tree-dfa.c : Likewise.
14148 * tree-diagnostic.c : Likewise.
14149 * tree-dump.c : Likewise.
14150 * tree-eh.c : Likewise.
14151 * tree-eh.h : Likewise.
14152 * tree-emutls.c : Likewise.
14153 * tree-hasher.h : Likewise.
14154 * tree-if-conv.c : Likewise.
14155 * tree-inline.c : Likewise.
14156 * tree-inline.h : Likewise.
14157 * tree-into-ssa.c : Likewise.
14158 * tree-iterator.c : Likewise.
14159 * tree-loop-distribution.c : Likewise.
14160 * tree-nested.c : Likewise.
14161 * tree-nrv.c : Likewise.
14162 * tree-object-size.c : Likewise.
14163 * tree-outof-ssa.c : Likewise.
14164 * tree-parloops.c : Likewise.
14165 * tree-phinodes.c : Likewise.
14166 * tree-predcom.c : Likewise.
14167 * tree-pretty-print.c : Likewise.
14168 * tree-profile.c : Likewise.
14169 * tree-scalar-evolution.c : Likewise.
14170 * tree-sra.c : Likewise.
14171 * tree-ssa-address.c : Likewise.
14172 * tree-ssa-alias.c : Likewise.
14173 * tree-ssa-ccp.c : Likewise.
14174 * tree-ssa-coalesce.c : Likewise.
14175 * tree-ssa-copy.c : Likewise.
14176 * tree-ssa-copyrename.c : Likewise.
14177 * tree-ssa-dce.c : Likewise.
14178 * tree-ssa-dom.c : Likewise.
14179 * tree-ssa-dse.c : Likewise.
14180 * tree-ssa-forwprop.c : Likewise.
14181 * tree-ssa-ifcombine.c : Likewise.
14182 * tree-ssa-live.c : Likewise.
14183 * tree-ssa-loop-ch.c : Likewise.
14184 * tree-ssa-loop-im.c : Likewise.
14185 * tree-ssa-loop-ivcanon.c : Likewise.
14186 * tree-ssa-loop-ivopts.c : Likewise.
14187 * tree-ssa-loop-manip.c : Likewise.
14188 * tree-ssa-loop-niter.c : Likewise.
14189 * tree-ssa-loop-prefetch.c : Likewise.
14190 * tree-ssa-loop-unswitch.c : Likewise.
14191 * tree-ssa-loop.c : Likewise.
14192 * tree-ssa-math-opts.c : Likewise.
14193 * tree-ssa-operands.c : Likewise.
14194 * tree-ssa-phiopt.c : Likewise.
14195 * tree-ssa-phiprop.c : Likewise.
14196 * tree-ssa-pre.c : Likewise.
14197 * tree-ssa-propagate.c : Likewise.
14198 * tree-ssa-reassoc.c : Likewise.
14199 * tree-ssa-sccvn.c : Likewise.
14200 * tree-ssa-scopedtables.c : Likewise.
14201 * tree-ssa-sink.c : Likewise.
14202 * tree-ssa-strlen.c : Likewise.
14203 * tree-ssa-structalias.c : Likewise.
14204 * tree-ssa-tail-merge.c : Likewise.
14205 * tree-ssa-ter.c : Likewise.
14206 * tree-ssa-threadedge.c : Likewise.
14207 * tree-ssa-threadupdate.c : Likewise.
14208 * tree-ssa-uncprop.c : Likewise.
14209 * tree-ssa-uninit.c : Likewise.
14210 * tree-ssa.c : Likewise.
14211 * tree-ssanames.c : Likewise.
14212 * tree-stdarg.c : Likewise.
14213 * tree-streamer-in.c : Likewise.
14214 * tree-streamer-out.c : Likewise.
14215 * tree-streamer.c : Likewise.
14216 * tree-streamer.h : Likewise.
14217 * tree-switch-conversion.c : Likewise.
14218 * tree-tailcall.c : Likewise.
14219 * tree-vect-data-refs.c : Likewise.
14220 * tree-vect-generic.c : Likewise.
14221 * tree-vect-loop-manip.c : Likewise.
14222 * tree-vect-loop.c : Likewise.
14223 * tree-vect-patterns.c : Likewise.
14224 * tree-vect-slp.c : Likewise.
14225 * tree-vect-stmts.c : Likewise.
14226 * tree-vectorizer.c : Likewise.
14227 * tree-vectorizer.h : Likewise.
14228 * tree-vrp.c : Likewise.
14229 * tree.c : Likewise.
14230 * tsan.c : Likewise.
14231 * ubsan.c : Likewise.
14232 * valtrack.c : Likewise.
14233 * valtrack.h : Likewise.
14234 * value-prof.c : Likewise.
14235 * var-tracking.c : Likewise.
14236 * varasm.c : Likewise.
14237 * varpool.c : Likewise.
14239 * vmsdbgout.c : Likewise.
14240 * vtable-verify.c : Likewise.
14241 * vtable-verify.h : Likewise.
14242 * web.c : Likewise.
14243 * wide-int.cc : Likewise.
14244 * xcoffout.c : Likewise.
14245 * config/aarch64/aarch64-builtins.c : Likewise.
14246 * config/aarch64/aarch64.c : Likewise.
14247 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14248 * config/alpha/alpha.c : Likewise.
14249 * config/arc/arc.c : Likewise.
14250 * config/arm/aarch-common.c : Likewise.
14251 * config/arm/arm-builtins.c : Likewise.
14252 * config/arm/arm-c.c : Likewise.
14253 * config/arm/arm.c : Likewise.
14254 * config/avr/avr-c.c : Likewise.
14255 * config/avr/avr-log.c : Likewise.
14256 * config/avr/avr.c : Likewise.
14257 * config/bfin/bfin.c : Likewise.
14258 * config/c6x/c6x.c : Likewise.
14259 * config/cr16/cr16.c : Likewise.
14260 * config/cris/cris.c : Likewise.
14261 * config/darwin-c.c : Likewise.
14262 * config/darwin.c : Likewise.
14263 * config/default-c.c : Likewise.
14264 * config/epiphany/epiphany.c : Likewise.
14265 * config/epiphany/mode-switch-use.c : Likewise.
14266 * config/epiphany/resolve-sw-modes.c : Likewise.
14267 * config/fr30/fr30.c : Likewise.
14268 * config/frv/frv.c : Likewise.
14269 * config/ft32/ft32.c : Likewise.
14270 * config/glibc-c.c : Likewise.
14271 * config/h8300/h8300.c : Likewise.
14272 * config/i386/i386-c.c : Likewise.
14273 * config/i386/i386.c : Likewise.
14274 * config/i386/msformat-c.c : Likewise.
14275 * config/i386/winnt-cxx.c : Likewise.
14276 * config/i386/winnt-stubs.c : Likewise.
14277 * config/i386/winnt.c : Likewise.
14278 * config/ia64/ia64-c.c : Likewise.
14279 * config/ia64/ia64.c : Likewise.
14280 * config/iq2000/iq2000.c : Likewise.
14281 * config/lm32/lm32.c : Likewise.
14282 * config/m32c/m32c-pragma.c : Likewise.
14283 * config/m32c/m32c.c : Likewise.
14284 * config/m32r/m32r.c : Likewise.
14285 * config/m68k/m68k.c : Likewise.
14286 * config/mcore/mcore.c : Likewise.
14287 * config/mep/mep-pragma.c : Likewise.
14288 * config/mep/mep.c : Likewise.
14289 * config/microblaze/microblaze-c.c : Likewise.
14290 * config/microblaze/microblaze.c : Likewise.
14291 * config/mips/mips.c : Likewise.
14292 * config/mmix/mmix.c : Likewise.
14293 * config/mn10300/mn10300.c : Likewise.
14294 * config/moxie/moxie.c : Likewise.
14295 * config/msp430/msp430-c.c : Likewise.
14296 * config/msp430/msp430.c : Likewise.
14297 * config/nds32/nds32-cost.c : Likewise.
14298 * config/nds32/nds32-fp-as-gp.c : Likewise.
14299 * config/nds32/nds32-intrinsic.c : Likewise.
14300 * config/nds32/nds32-isr.c : Likewise.
14301 * config/nds32/nds32-md-auxiliary.c : Likewise.
14302 * config/nds32/nds32-memory-manipulation.c : Likewise.
14303 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14304 * config/nds32/nds32-predicates.c : Likewise.
14305 * config/nds32/nds32.c : Likewise.
14306 * config/nios2/nios2.c : Likewise.
14307 * config/nvptx/nvptx.c : Likewise.
14308 * config/pa/pa.c : Likewise.
14309 * config/pdp11/pdp11.c : Likewise.
14310 * config/rl78/rl78-c.c : Likewise.
14311 * config/rl78/rl78.c : Likewise.
14312 * config/rs6000/rs6000-c.c : Likewise.
14313 * config/rs6000/rs6000.c : Likewise.
14314 * config/rx/rx.c : Likewise.
14315 * config/s390/s390-c.c : Likewise.
14316 * config/s390/s390.c : Likewise.
14317 * config/sh/sh-c.c : Likewise.
14318 * config/sh/sh-mem.cc : Likewise.
14319 * config/sh/sh.c : Likewise.
14320 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14321 * config/sh/sh_treg_combine.cc : Likewise.
14322 * config/sol2-c.c : Likewise.
14323 * config/sol2-cxx.c : Likewise.
14324 * config/sol2-stubs.c : Likewise.
14325 * config/sol2.c : Likewise.
14326 * config/sparc/sparc-c.c : Likewise.
14327 * config/sparc/sparc.c : Likewise.
14328 * config/spu/spu-c.c : Likewise.
14329 * config/spu/spu.c : Likewise.
14330 * config/stormy16/stormy16.c : Likewise.
14331 * config/tilegx/mul-tables.c : Likewise.
14332 * config/tilegx/tilegx-c.c : Likewise.
14333 * config/tilegx/tilegx.c : Likewise.
14334 * config/tilepro/mul-tables.c : Likewise.
14335 * config/tilepro/tilepro-c.c : Likewise.
14336 * config/tilepro/tilepro.c : Likewise.
14337 * config/v850/v850-c.c : Likewise.
14338 * config/v850/v850.c : Likewise.
14339 * config/vax/vax.c : Likewise.
14340 * config/visium/visium.c : Likewise.
14341 * config/vms/vms-c.c : Likewise.
14342 * config/vms/vms.c : Likewise.
14343 * config/vxworks.c : Likewise.
14344 * config/winnt-c.c : Likewise.
14345 * config/xtensa/xtensa.c : Likewise.
14347 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14350 * ipa-utils.h (warn_types_mismatch): Update prototype.
14351 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14353 (type_mismatch_p): New function.
14354 (warn_types_mismatch): Reorg to work better on non-C++ types.
14355 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14356 (add_type_duplicate): Update.
14358 2015-06-08 Tom de Vries <tom@codesourcery.com>
14360 PR rtl-optimization/66444
14361 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14364 2015-06-08 Richard Biener <rguenther@suse.de>
14366 PR tree-optimization/66422
14367 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14368 block after inserted gcc_unreachable.
14370 2015-06-08 Nick Clifton <nickc@redhat.com>
14372 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14373 (rx_promote_function_mode): Likewise.
14374 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14376 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14378 * genattrtab.c (insn_alternatives): Change type from int *
14380 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14381 (get_attr_value): Change type of num_alt to uint64_t.
14382 (compute_alternative_mask): Change return type from
14383 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14384 (make_alternative_compare, mk_attr_alt): Change argument type
14385 from int to uint64_t.
14386 (simplify_test_exp): Change type of i from int to uint64_t.
14387 Shift ((uint64_t) 1) instead of 1 up.
14388 (main): Adjust oballocvec first argument from int to uint64_t.
14389 Shift ((uint64_t) 1) instead of 1 up.
14391 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14394 * gdbhooks.py: Import sys.
14395 (intptr): New function. Replace int(...) by intptr(...).
14397 2015-06-08 Richard Biener <rguenther@suse.de>
14399 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14400 adjustment for gaps at the end of a SLP load group properly.
14401 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14402 all permutations we can generate.
14403 (vect_transform_slp_perm_load): Use the correct group-size.
14405 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14407 * genmatch.c (expr::gen_transform): For conditions, guess the type
14408 from the second operand.
14410 2015-06-08 Tom de Vries <tom@codesourcery.com>
14412 PR tree-optimization/66442
14413 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14414 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14415 if the loop latch is not a singleton. Use
14416 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14418 2015-06-08 Marek Polacek <polacek@redhat.com>
14421 * toplev.c (check_global_declaration): Don't warn about artificial
14424 2015-06-08 Tom de Vries <tom@codesourcery.com>
14426 PR tree-optimization/66436
14427 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14429 * gimplify.c: Add tree-dump.h include.
14430 (gimplify_function_tree): Dump function to gimple dump file.
14431 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14434 2015-06-08 Tom de Vries <tom@codesourcery.com>
14436 PR tree-optimization/66435
14437 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14440 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14442 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14443 of ptr_type_node to not be ptr_to_node.
14444 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14445 TREE_TYPE of pointers.
14446 * gimple-expr.c (useless_type_conversion): Reorder the check for
14447 function pointers and TYPE_CANONICAL.
14449 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14452 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14453 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14454 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14456 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14457 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14458 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14459 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14460 and non iso if unix2003.
14462 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14464 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14466 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14468 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14469 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14470 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14471 except.c, final.c, function.c, gcse-common.c, genemit.c,
14472 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14473 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14474 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14475 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14478 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14480 * combine.c (combine_split_insns): Remove cast.
14481 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14482 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14483 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14484 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14485 * genemit.c (gen_split): Change return type of generated functions to
14487 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14488 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14489 gen_peephole2_* functions.
14490 (print_subroutine, main): Likewise.
14491 * recog.c (peephole2_optimize): Remove cast.
14492 (peep2_next_insn): Promote return type to rtx_insn.
14493 * recog.h (peep2_next_insn): Fix prototype.
14494 * rtl.h (try_split, split_insns): Likewise.
14496 2015-06-06 DJ Delorie <dj@redhat.com>
14498 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14499 and subtraction too.
14501 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14504 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14505 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14506 instead of Snd. Disparage Sid/z alternative with '^'.
14508 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14510 * dwarf2out.c: Remove deferred_locations*.
14511 (dwarf2_debug_hooks): Add early_finish hook.
14512 Remove global_decl hook.
14513 Add early_global_decl and late_global_decl hook.
14514 New global early_dwarf.
14515 New structure set_early_dwarf.
14516 (output_die): Indicate whether a DIE was generated early
14517 when generating assembly with -dA.
14518 (struct limbo_die_struct): Document created_for field.
14519 Remove file_table_last_lookup.
14520 (remove_AT): Return TRUE if successful.
14521 (remove_child_TAG): Clear die_parent.
14522 (reparent_child): New function abstracted from...
14523 (splice_child_die): ...here.
14524 (new_die): ICE if a DIE ends up in limbo too late.
14526 (defer_location): Remove.
14527 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14528 (fill_variable_array_bounds): New.
14529 (decl_start_label): Call fill_variable_array_bounds.
14530 (gen_formal_parameter_die): Rewrite to reuse previously generated
14532 (gen_subprogram_die): Same.
14533 (gen_variable_die): Same.
14534 (gen_const_die): Same.
14535 (gen_label_die): Same.
14536 (gen_lexical_block_die): Same.
14537 (decl_will_get_specification_p): New.
14538 (local_function_static): New.
14539 (gen_struct_or_union_type_die): Fill in variable-length fields.
14540 (gen_typedef_die): Fill in variable-length typedefs.
14541 (gen_tagged_type_die): Gracefully return on error_mark_node.
14542 Handle re-entrancy.
14543 (gen_type_die_with_usage): Handle variable-length types.
14544 Remove duplicate code for ARRAY_TYPE case.
14545 (process_scope_var): Only process imported modules during early
14547 (dwarf2out_early_global_decl): New.
14548 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14549 (dwarf2out_type_decl): Set early_dwarf while calling
14551 (dwarf2out_decl): Verify that we did not recreate a previously
14553 Do not return on DECL_EXTERNALs in VAR_DECLs.
14554 Abstract some code to local_function_static.
14555 (lookup_filename): Remove use of file_table_last_lookup.
14556 Gracefully exit on missing file_name.
14557 (dwarf2out_finish): Verify limbo list.
14558 Remove deferred_locations_list use.
14559 Move deferred_asm_name and limbo flushing to...
14560 (dwarf2out_early_finish): ...here. New.
14561 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14562 deferred_asm_name, and file_table_last_lookup.
14563 * cgraph.h (referred_to_p): Add default argument.
14564 * cgraphunit.c (referred_to_p): Add and handle include_self
14566 (analyze_functions): Add first_time argument.
14567 Call check_global_declaration for all symbols.
14568 Call late_global_decl for nodes for moribund nodes.
14569 (finalize_compilation_unit): Add new argument to
14571 Call early_global_decl for functions.
14572 Call early_finish debug hook.
14573 * dbxout.c (dbxout_early_global_decl): New.
14574 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14575 (dbx_debug_hooks): Add new hooks.
14576 (xcoff_debug_hooks): Same.
14577 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14578 Add early and late debug hooks.
14579 Remove global_decl hook.
14580 * debug.h (struct gcc_debug_hooks): Add early_finish,
14581 early_global_decl, and late_global_decl fields.
14582 Remove global_decl field.
14583 Document gcc_debug_hooks.
14584 * gengtype.c (output_typename): Remove.
14585 * godump.c (go_early_global_decl): New.
14586 (go_late_global_decl): New.
14587 (go_global_decl): Remove.
14588 (dump_go_spec_init): Remove global_decl. Add
14589 {early,late}_global_decl.
14590 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14591 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14592 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14593 (write_global_declarations): Remove.
14594 (global_decl_processing): New.
14595 * langhooks.h (struct lang_hooks_for_decls): Remove
14596 final_write_globals field.
14597 Add post_compilation_parsing_cleanups field.
14598 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14599 * sdbout.c: Add early and late_global_decl hooks. Remove
14600 sdbout_global_decl hook.
14601 Add early_finish field for sdb_debug_hooks.
14602 (sdbout_global_decl): Remove.
14603 (sdbout_early_global_decl): New.
14604 (sdbout_late_global_decl): New.
14605 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14606 * toplev.c (check_global_declaration): Rename from
14607 check_global_declaration_1.
14608 Adapt to use symtab infrastructure.
14609 (check_global_declarations): Remove.
14610 (emit_debug_global_declarations): Remove.
14611 (compile_file): Remove call to final_write_globals langhook.
14612 Run the actual compilation process.
14613 Perform any post compilation parser cleanups.
14614 Generate late debug info.
14615 * toplev.h (check_global_declaration): New.
14616 (check_global_declaration_1): Remove.
14617 (check_global_declarations): Remove.
14618 (write_global_declarations): Remove.
14619 (emit_debug_global_declarations): Remove.
14620 (global_decl_processing): New.
14621 * tree-core.h (struct tree_block): Add DIE field.
14622 * tree.h (BLOCK_DIE): New.
14623 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14625 (vmsdbgout_early_global_decl): New.
14626 (vmsdbgout_late_global_decl): New.
14627 Add early_finish debug hook field to vmsdbg_debug_hooks.
14628 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14629 Add early and late_global_decl debug hooks.
14631 2015-06-05 Julian Brown <julian@codesourcery.com>
14632 Sandra Loosemore <sandra@codesourcery.com>
14634 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14635 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14636 to print-sysroot-suffix.sh script.
14638 2015-06-05 Tom de Vries <tom@codesourcery.com>
14640 merge from gomp4 branch:
14641 2015-05-28 Tom de Vries <tom@codesourcery.com>
14643 PR tree-optimization/65443
14644 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14645 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14646 (try_transform_to_exit_first_loop_alt): New function.
14647 (transform_to_exit_first_loop): Use
14648 try_transform_to_exit_first_loop_alt.
14650 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14652 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14653 emit_cmp_and_jump_insns with the mode of target.
14655 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14657 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14659 2015-06-04 DJ Delorie <dj@redhat.com>
14661 * config/msp430/msp430.md (movsi_s): New. Special case for
14662 storing a 20-bit symbol into a 32-bit register.
14663 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14664 * config/msp430/predicates.md (msp430_symbol_operand): New.
14666 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14668 * c-family/c-common.c (noplt): New attribute.
14669 (handle_noplt_attribute): New handler.
14670 * calls.c (prepare_call_address): Check for noplt
14672 * config/i386/i386.c (ix86_expand_call): Check
14673 for noplt attribute.
14674 (ix86_nopic_noplt_attribute_p): New function.
14675 (ix86_output_call_insn): Output indirect call for non-pic
14677 * doc/extend.texi (noplt): Document new attribute.
14678 * doc/invoke.texi: Document new attribute.
14680 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14682 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14683 real.h, and fixed-value.h when included in host source files.
14684 * double-int.h: Remove redundant #includes listed above.
14685 * fixed-value.h: Likewise.
14686 * real.h: Likewise.
14687 * wide-int.h: Likewise.
14688 * inchash.h: Likewise.
14689 * rtl.h: Add some include files When included from a generator file.
14690 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14691 * internal-fn.h: Don't include coretypes.h.
14692 * alias.c: Adjust includes for restructured coretypes.h.
14693 * asan.c: Likewise.
14694 * attribs.c: Likewise.
14695 * auto-inc-dec.c: Likewise.
14696 * auto-profile.c: Likewise.
14697 * bb-reorder.c: Likewise.
14698 * bt-load.c: Likewise.
14699 * builtins.c: Likewise.
14700 * caller-save.c: Likewise.
14701 * calls.c: Likewise.
14702 * ccmp.c: Likewise.
14704 * cfganal.c: Likewise.
14705 * cfgbuild.c: Likewise.
14706 * cfgcleanup.c: Likewise.
14707 * cfgexpand.c: Likewise.
14708 * cfghooks.c: Likewise.
14709 * cfgloop.c: Likewise.
14710 * cfgloop.h: Likewise.
14711 * cfgloopanal.c: Likewise.
14712 * cfgloopmanip.c: Likewise.
14713 * cfgrtl.c: Likewise.
14714 * cgraph.c: Likewise.
14715 * cgraphbuild.c: Likewise.
14716 * cgraphclones.c: Likewise.
14717 * cgraphunit.c: Likewise.
14718 * cilk-common.c: Likewise.
14719 * combine-stack-adj.c: Likewise.
14720 * combine.c: Likewise.
14721 * compare-elim.c: Likewise.
14722 * convert.c: Likewise.
14723 * coverage.c: Likewise.
14724 * cppbuiltin.c: Likewise.
14725 * cprop.c: Likewise.
14727 * cselib.c: Likewise.
14728 * data-streamer-in.c: Likewise.
14729 * data-streamer-out.c: Likewise.
14730 * data-streamer.c: Likewise.
14731 * dbxout.c: Likewise.
14734 * debug.c: Likewise.
14735 * df-core.c: Likewise.
14736 * df-problems.c: Likewise.
14737 * df-scan.c: Likewise.
14740 * dojump.c: Likewise.
14741 * dominance.c: Likewise.
14742 * domwalk.c: Likewise.
14743 * double-int.c: Likewise.
14745 * dumpfile.c: Likewise.
14746 * dwarf2asm.c: Likewise.
14747 * dwarf2cfi.c: Likewise.
14748 * dwarf2out.c: Likewise.
14749 * dwarf2out.h: Likewise.
14750 * emit-rtl.c: Likewise.
14751 * et-forest.c: Likewise.
14752 * except.c: Likewise.
14753 * explow.c: Likewise.
14754 * expmed.c: Likewise.
14755 * expr.c: Likewise.
14756 * final.c: Likewise.
14757 * fixed-value.c: Likewise.
14758 * fold-const.c: Likewise.
14759 * function.c: Likewise.
14760 * fwprop.c: Likewise.
14761 * gcc-plugin.h: Likewise.
14762 * gcse.c: Likewise.
14763 * generic-match-head.c: Likewise.
14764 * ggc-page.c: Likewise.
14765 * gimple-builder.c: Likewise.
14766 * gimple-expr.c: Likewise.
14767 * gimple-fold.c: Likewise.
14768 * gimple-iterator.c: Likewise.
14769 * gimple-low.c: Likewise.
14770 * gimple-match-head.c: Likewise.
14771 * gimple-pretty-print.c: Likewise.
14772 * gimple-ssa-isolate-paths.c: Likewise.
14773 * gimple-ssa-strength-reduction.c: Likewise.
14774 * gimple-streamer-in.c: Likewise.
14775 * gimple-streamer-out.c: Likewise.
14776 * gimple-streamer.h: Likewise.
14777 * gimple-walk.c: Likewise.
14778 * gimple.c: Likewise.
14779 * gimplify-me.c: Likewise.
14780 * gimplify.c: Likewise.
14781 * godump.c: Likewise.
14782 * graph.c: Likewise.
14783 * graphite-blocking.c: Likewise.
14784 * graphite-dependences.c: Likewise.
14785 * graphite-interchange.c: Likewise.
14786 * graphite-isl-ast-to-gimple.c: Likewise.
14787 * graphite-optimize-isl.c: Likewise.
14788 * graphite-poly.c: Likewise.
14789 * graphite-scop-detection.c: Likewise.
14790 * graphite-sese-to-poly.c: Likewise.
14791 * graphite.c: Likewise.
14792 * haifa-sched.c: Likewise.
14793 * hooks.h: Likewise.
14794 * hw-doloop.c: Likewise.
14795 * ifcvt.c: Likewise.
14796 * incpath.c: Likewise.
14797 * init-regs.c: Likewise.
14798 * internal-fn.c: Likewise.
14799 * ipa-chkp.c: Likewise.
14800 * ipa-comdats.c: Likewise.
14801 * ipa-cp.c: Likewise.
14802 * ipa-devirt.c: Likewise.
14803 * ipa-icf-gimple.c: Likewise.
14804 * ipa-icf.c: Likewise.
14805 * ipa-inline-analysis.c: Likewise.
14806 * ipa-inline-transform.c: Likewise.
14807 * ipa-inline.c: Likewise.
14808 * ipa-polymorphic-call.c: Likewise.
14809 * ipa-profile.c: Likewise.
14810 * ipa-prop.c: Likewise.
14811 * ipa-pure-const.c: Likewise.
14812 * ipa-ref.c: Likewise.
14813 * ipa-reference.c: Likewise.
14814 * ipa-split.c: Likewise.
14815 * ipa-utils.c: Likewise.
14816 * ipa-visibility.c: Likewise.
14818 * ira-build.c: Likewise.
14819 * ira-color.c: Likewise.
14820 * ira-conflicts.c: Likewise.
14821 * ira-costs.c: Likewise.
14822 * ira-emit.c: Likewise.
14823 * ira-lives.c: Likewise.
14825 * jump.c: Likewise.
14826 * langhooks.c: Likewise.
14828 * loop-doloop.c: Likewise.
14829 * loop-init.c: Likewise.
14830 * loop-invariant.c: Likewise.
14831 * loop-iv.c: Likewise.
14832 * loop-unroll.c: Likewise.
14833 * lower-subreg.c: Likewise.
14834 * lra-assigns.c: Likewise.
14835 * lra-coalesce.c: Likewise.
14836 * lra-constraints.c: Likewise.
14837 * lra-eliminations.c: Likewise.
14838 * lra-lives.c: Likewise.
14839 * lra-remat.c: Likewise.
14840 * lra-spills.c: Likewise.
14842 * lto-cgraph.c: Likewise.
14843 * lto-compress.c: Likewise.
14844 * lto-opts.c: Likewise.
14845 * lto-section-in.c: Likewise.
14846 * lto-section-out.c: Likewise.
14847 * lto-streamer-in.c: Likewise.
14848 * lto-streamer-out.c: Likewise.
14849 * lto-streamer.c: Likewise.
14851 * mode-switching.c: Likewise.
14852 * modulo-sched.c: Likewise.
14853 * omega.c: Likewise.
14854 * omp-low.c: Likewise.
14855 * optabs.c: Likewise.
14856 * opts-global.c: Likewise.
14857 * passes.c: Likewise.
14858 * plugin.c: Likewise.
14859 * postreload-gcse.c: Likewise.
14860 * postreload.c: Likewise.
14861 * predict.c: Likewise.
14862 * print-rtl.c: Likewise.
14863 * print-tree.c: Likewise.
14864 * profile.c: Likewise.
14865 * real.c: Likewise.
14866 * realmpfr.c: Likewise.
14867 * realmpfr.h: Likewise.
14868 * recog.c: Likewise.
14870 * reg-stack.c: Likewise.
14871 * regcprop.c: Likewise.
14872 * reginfo.c: Likewise.
14873 * regrename.c: Likewise.
14874 * regs.h: Likewise.
14875 * regstat.c: Likewise.
14876 * reload.c: Likewise.
14877 * reload1.c: Likewise.
14878 * reorg.c: Likewise.
14879 * resource.c: Likewise.
14880 * rtl-chkp.c: Likewise.
14881 * rtlanal.c: Likewise.
14882 * rtlhooks.c: Likewise.
14883 * sanopt.c: Likewise.
14884 * sched-deps.c: Likewise.
14885 * sched-ebb.c: Likewise.
14886 * sched-rgn.c: Likewise.
14887 * sched-vis.c: Likewise.
14888 * sdbout.c: Likewise.
14889 * sel-sched-dump.c: Likewise.
14890 * sel-sched-ir.c: Likewise.
14891 * sel-sched.c: Likewise.
14892 * sese.c: Likewise.
14893 * shrink-wrap.c: Likewise.
14894 * shrink-wrap.h: Likewise.
14895 * simplify-rtx.c: Likewise.
14896 * stack-ptr-mod.c: Likewise.
14897 * statistics.c: Likewise.
14898 * stmt.c: Likewise.
14899 * stor-layout.c: Likewise.
14900 * store-motion.c: Likewise.
14901 * stringpool.c: Likewise.
14902 * symtab.c: Likewise.
14903 * target-globals.c: Likewise.
14904 * targhooks.c: Likewise.
14905 * toplev.c: Likewise.
14906 * tracer.c: Likewise.
14907 * trans-mem.c: Likewise.
14908 * tree-affine.c: Likewise.
14909 * tree-affine.h: Likewise.
14910 * tree-browser.c: Likewise.
14911 * tree-call-cdce.c: Likewise.
14912 * tree-cfg.c: Likewise.
14913 * tree-cfgcleanup.c: Likewise.
14914 * tree-chkp-opt.c: Likewise.
14915 * tree-chkp.c: Likewise.
14916 * tree-chrec.c: Likewise.
14917 * tree-complex.c: Likewise.
14918 * tree-data-ref.c: Likewise.
14919 * tree-dfa.c: Likewise.
14920 * tree-diagnostic.c: Likewise.
14921 * tree-dump.c: Likewise.
14922 * tree-eh.c: Likewise.
14923 * tree-emutls.c: Likewise.
14924 * tree-if-conv.c: Likewise.
14925 * tree-inline.c: Likewise.
14926 * tree-into-ssa.c: Likewise.
14927 * tree-iterator.c: Likewise.
14928 * tree-loop-distribution.c: Likewise.
14929 * tree-nested.c: Likewise.
14930 * tree-nrv.c: Likewise.
14931 * tree-object-size.c: Likewise.
14932 * tree-outof-ssa.c: Likewise.
14933 * tree-parloops.c: Likewise.
14934 * tree-phinodes.c: Likewise.
14935 * tree-predcom.c: Likewise.
14936 * tree-pretty-print.c: Likewise.
14937 * tree-pretty-print.h: Likewise.
14938 * tree-profile.c: Likewise.
14939 * tree-scalar-evolution.c: Likewise.
14940 * tree-sra.c: Likewise.
14941 * tree-ssa-address.c: Likewise.
14942 * tree-ssa-alias.c: Likewise.
14943 * tree-ssa-ccp.c: Likewise.
14944 * tree-ssa-coalesce.c: Likewise.
14945 * tree-ssa-copy.c: Likewise.
14946 * tree-ssa-copyrename.c: Likewise.
14947 * tree-ssa-dce.c: Likewise.
14948 * tree-ssa-dom.c: Likewise.
14949 * tree-ssa-dse.c: Likewise.
14950 * tree-ssa-forwprop.c: Likewise.
14951 * tree-ssa-ifcombine.c: Likewise.
14952 * tree-ssa-live.c: Likewise.
14953 * tree-ssa-loop-ch.c: Likewise.
14954 * tree-ssa-loop-im.c: Likewise.
14955 * tree-ssa-loop-ivcanon.c: Likewise.
14956 * tree-ssa-loop-ivopts.c: Likewise.
14957 * tree-ssa-loop-manip.c: Likewise.
14958 * tree-ssa-loop-niter.c: Likewise.
14959 * tree-ssa-loop-prefetch.c: Likewise.
14960 * tree-ssa-loop-unswitch.c: Likewise.
14961 * tree-ssa-loop.c: Likewise.
14962 * tree-ssa-loop.h: Likewise.
14963 * tree-ssa-math-opts.c: Likewise.
14964 * tree-ssa-operands.c: Likewise.
14965 * tree-ssa-phiopt.c: Likewise.
14966 * tree-ssa-phiprop.c: Likewise.
14967 * tree-ssa-pre.c: Likewise.
14968 * tree-ssa-propagate.c: Likewise.
14969 * tree-ssa-reassoc.c: Likewise.
14970 * tree-ssa-sccvn.c: Likewise.
14971 * tree-ssa-scopedtables.c: Likewise.
14972 * tree-ssa-sink.c: Likewise.
14973 * tree-ssa-strlen.c: Likewise.
14974 * tree-ssa-structalias.c: Likewise.
14975 * tree-ssa-tail-merge.c: Likewise.
14976 * tree-ssa-ter.c: Likewise.
14977 * tree-ssa-threadedge.c: Likewise.
14978 * tree-ssa-threadupdate.c: Likewise.
14979 * tree-ssa-uncprop.c: Likewise.
14980 * tree-ssa-uninit.c: Likewise.
14981 * tree-ssa.c: Likewise.
14982 * tree-ssanames.c: Likewise.
14983 * tree-stdarg.c: Likewise.
14984 * tree-streamer-in.c: Likewise.
14985 * tree-streamer-out.c: Likewise.
14986 * tree-streamer.c: Likewise.
14987 * tree-switch-conversion.c: Likewise.
14988 * tree-tailcall.c: Likewise.
14989 * tree-vect-data-refs.c: Likewise.
14990 * tree-vect-generic.c: Likewise.
14991 * tree-vect-loop-manip.c: Likewise.
14992 * tree-vect-loop.c: Likewise.
14993 * tree-vect-patterns.c: Likewise.
14994 * tree-vect-slp.c: Likewise.
14995 * tree-vect-stmts.c: Likewise.
14996 * tree-vectorizer.c: Likewise.
14997 * tree-vrp.c: Likewise.
14998 * tree.c: Likewise.
14999 * tsan.c: Likewise.
15000 * ubsan.c: Likewise.
15001 * valtrack.c: Likewise.
15002 * value-prof.c: Likewise.
15003 * var-tracking.c: Likewise.
15004 * varasm.c: Likewise.
15005 * varpool.c: Likewise.
15006 * vmsdbgout.c: Likewise.
15007 * vtable-verify.c: Likewise.
15009 * wide-int-print.cc: Likewise.
15010 * wide-int-print.h: Likewise.
15011 * wide-int.cc: Likewise.
15012 * xcoffout.c: Likewise.
15013 * config/aarch64/aarch64-builtins.c: Likewise.
15014 * config/aarch64/aarch64.c: Likewise.
15015 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15016 * config/alpha/alpha.c: Likewise.
15017 * config/arc/arc.c: Likewise.
15018 * config/arm/aarch-common.c: Likewise.
15019 * config/arm/arm-builtins.c: Likewise.
15020 * config/arm/arm-c.c: Likewise.
15021 * config/arm/arm.c: Likewise.
15022 * config/avr/avr-c.c: Likewise.
15023 * config/avr/avr-log.c: Likewise.
15024 * config/avr/avr.c: Likewise.
15025 * config/bfin/bfin.c: Likewise.
15026 * config/c6x/c6x.c: Likewise.
15027 * config/cr16/cr16.c: Likewise.
15028 * config/cris/cris.c: Likewise.
15029 * config/darwin-c.c: Likewise.
15030 * config/darwin.c: Likewise.
15031 * config/default-c.c: Likewise.
15032 * config/epiphany/epiphany.c: Likewise.
15033 * config/epiphany/mode-switch-use.c: Likewise.
15034 * config/epiphany/resolve-sw-modes.c: Likewise.
15035 * config/fr30/fr30.c: Likewise.
15036 * config/frv/frv.c: Likewise.
15037 * config/ft32/ft32.c: Likewise.
15038 * config/glibc-c.c: Likewise.
15039 * config/h8300/h8300.c: Likewise.
15040 * config/i386/i386-c.c: Likewise.
15041 * config/i386/i386.c: Likewise.
15042 * config/i386/msformat-c.c: Likewise.
15043 * config/i386/winnt-cxx.c: Likewise.
15044 * config/i386/winnt-stubs.c: Likewise.
15045 * config/i386/winnt.c: Likewise.
15046 * config/ia64/ia64-c.c: Likewise.
15047 * config/ia64/ia64.c: Likewise.
15048 * config/iq2000/iq2000.c: Likewise.
15049 * config/lm32/lm32.c: Likewise.
15050 * config/m32c/m32c-pragma.c: Likewise.
15051 * config/m32c/m32c.c: Likewise.
15052 * config/m32r/m32r.c: Likewise.
15053 * config/m68k/m68k.c: Likewise.
15054 * config/mcore/mcore.c: Likewise.
15055 * config/mep/mep-pragma.c: Likewise.
15056 * config/mep/mep.c: Likewise.
15057 * config/microblaze/microblaze-c.c: Likewise.
15058 * config/microblaze/microblaze.c: Likewise.
15059 * config/mips/mips.c: Likewise.
15060 * config/mmix/mmix.c: Likewise.
15061 * config/mn10300/mn10300.c: Likewise.
15062 * config/moxie/moxie.c: Likewise.
15063 * config/msp430/msp430-c.c: Likewise.
15064 * config/msp430/msp430.c: Likewise.
15065 * config/nds32/nds32-cost.c: Likewise.
15066 * config/nds32/nds32-fp-as-gp.c: Likewise.
15067 * config/nds32/nds32-intrinsic.c: Likewise.
15068 * config/nds32/nds32-isr.c: Likewise.
15069 * config/nds32/nds32-md-auxiliary.c: Likewise.
15070 * config/nds32/nds32-memory-manipulation.c: Likewise.
15071 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15072 * config/nds32/nds32-predicates.c: Likewise.
15073 * config/nds32/nds32.c: Likewise.
15074 * config/nios2/nios2.c: Likewise.
15075 * config/nvptx/nvptx.c: Likewise.
15076 * config/pa/pa.c: Likewise.
15077 * config/pdp11/pdp11.c: Likewise.
15078 * config/rl78/rl78-c.c: Likewise.
15079 * config/rl78/rl78.c: Likewise.
15080 * config/rs6000/rs6000-c.c: Likewise.
15081 * config/rs6000/rs6000.c: Likewise.
15082 * config/rx/rx.c: Likewise.
15083 * config/s390/s390-c.c: Likewise.
15084 * config/s390/s390.c: Likewise.
15085 * config/sh/sh-c.c: Likewise.
15086 * config/sh/sh-mem.cc: Likewise.
15087 * config/sh/sh.c: Likewise.
15088 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15089 * config/sh/sh_treg_combine.cc: Likewise.
15090 * config/sol2-c.c: Likewise.
15091 * config/sol2-cxx.c: Likewise.
15092 * config/sol2-stubs.c: Likewise.
15093 * config/sol2.c: Likewise.
15094 * config/sparc/sparc-c.c: Likewise.
15095 * config/sparc/sparc.c: Likewise.
15096 * config/spu/spu-c.c: Likewise.
15097 * config/spu/spu.c: Likewise.
15098 * config/stormy16/stormy16.c: Likewise.
15099 * config/tilegx/mul-tables.c: Likewise.
15100 * config/tilegx/tilegx-c.c: Likewise.
15101 * config/tilegx/tilegx.c: Likewise.
15102 * config/tilepro/mul-tables.c: Likewise.
15103 * config/tilepro/tilepro-c.c: Likewise.
15104 * config/tilepro/tilepro.c: Likewise.
15105 * config/v850/v850-c.c: Likewise.
15106 * config/v850/v850.c: Likewise.
15107 * config/vax/vax.c: Likewise.
15108 * config/visium/visium.c: Likewise.
15109 * config/vms/vms-c.c: Likewise.
15110 * config/vms/vms.c: Likewise.
15111 * config/vxworks.c: Likewise.
15112 * config/winnt-c.c: Likewise.
15113 * config/xtensa/xtensa.c: Likewise.
15114 * common/config/bfin/bfin-common.c: Likewise.
15116 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15118 * tree.h (tree_code_for_canonical_type_merging): New function.
15119 * tree.c (gimple_canonical_types_compatible_p): Use
15120 tree_code_for_canonical_type_merging..
15122 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15126 * doc/tm.texi: Regenerate.
15127 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15128 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15129 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15130 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15131 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15132 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15133 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15134 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15135 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15137 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15139 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15140 register fma steering pass.
15141 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15142 AARCH64_TUNE_FMA_STEERING.
15144 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15146 * tree.c (verify_type_variant): Verify that type and variant is
15148 (gimple_canonical_types_compatible_p): Look for main variants.
15150 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15152 * config.gcc (powerpc*-*-*): Add support for a new configure
15153 option --with-advance-toolchain=<xxx> which overrides using the
15154 default header files, libraries and dynamic linker.
15156 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15157 specs to support the configure --with-advance-toolchain=<xxx>
15159 (INCLUDE_EXTRA_SPEC): Likewise.
15160 (LINK_OS_EXTRA_SPEC32): Likewise.
15161 (LINK_OK_EXTRA_SPEC64): Likewise.
15162 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15163 (DYNAMIC_LINKER_PREFIX): Likewise.
15164 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15166 (GLIBC_DYNAMIC_LINKER32): Likewise.
15167 (GLIBC_DYNAMIC_LINKER64): Likewise.
15168 (LINK_OS_LINUX_SPEC32): Likewise.
15169 (LINK_OS_LINUX_SPEC64): Likewise.
15171 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15172 configuration option.
15174 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15177 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15178 to determine current function ABI.
15179 (ix86_function_value_regno_p): Ditto.
15181 2015-06-03 Martin Liska <mliska@suse.cz>
15183 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15184 * bitmap.h (struct bitmap_usage): Likewise.
15185 * ggc-common.c (struct ggc_usage): Likewise.
15186 * mem-stats.h (struct mem_location): Likewise.
15187 (struct mem_usage): Likewise.
15188 * vec.c (struct vec_usage): Likewise.
15190 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15192 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15195 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15197 * doc/plugins.texi (enum plugin_event): New event.
15198 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15199 and PLUGIN_FINISH_FUNCTION.
15200 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15201 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15203 2015-06-03 Richard Biener <rguenther@suse.de>
15205 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15206 compute GROUP_GAP for the first element.
15207 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15210 2015-06-03 Nick Clifton <nickc@redhat.com>
15212 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15213 copy when calling a function.
15214 * config/rl78/rl78.c (need_to_save): Do not push the frame
15215 pointer in an interrupt handler prologue if it is never used.
15217 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15219 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15221 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15223 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15224 reference when cloning alias node.
15226 2015-06-03 Martin Liska <mliska@suse.cz>
15228 * alloc-pool.h (struct pool_usage): Correct space padding.
15229 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15230 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15231 * tree.c (dump_tree_statistics): Align columns in a report.
15233 2015-06-03 Martin Liska <mliska@suse.cz>
15235 * alloc-pool.c (allocate_pool_descriptor): Remove.
15236 (struct pool_output_info): Likewise.
15237 (print_alloc_pool_statistics): Likewise.
15238 (dump_alloc_pool_statistics): Likewise.
15239 * alloc-pool.h (struct pool_usage): New struct.
15240 (pool_allocator::initialize): Change usage of memory statistics
15241 to a new interface.
15242 (pool_allocator::release): Likewise.
15243 (pool_allocator::allocate): Likewise.
15244 (pool_allocator::remove): Likewise.
15245 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15246 for a pool allocator.
15247 * mem-stats.h (struct mem_location): Add new ctor.
15248 (struct mem_usage): Add counter for number of
15250 (mem_alloc_description::register_descriptor): New overload of
15251 * mem-stats.h (mem_location::to_string): New function.
15252 * bitmap.h (struct bitmap_usage): Use this new function.
15253 * ggc-common.c (struct ggc_usage): Likewise.
15256 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15258 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15259 of GCC_INSN_FLAGS_H block.
15261 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15263 * explow.c (plus_constant): Update check after force_const_mem call
15264 to see if the value returned is not a NULL_RTX.
15266 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15268 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15269 remove instumentation thunks calling reachable functions.
15270 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15271 * lto/lto-partition.c (privatize_symbol_name_1): New.
15272 (privatize_symbol_name): Privatize both decl and orig_decl
15273 names for instrumented functions.
15274 * cgraph.c (cgraph_node::verify_node): Add transparent
15275 alias chain check for instrumented node.
15277 2015-06-03 Marek Polacek <polacek@redhat.com>
15281 * tree.c (attribute_value_equal): Handle attribute format.
15282 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15284 2015-06-03 Richard Biener <rguenther@suse.de>
15286 PR tree-optimization/63916
15287 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15288 Forward-propagate non-invariant addresses by splicing their
15289 reference ops if the result isn't going to be used by PRE.
15290 (vn_reference_lookup_3): Remove pointless assert.
15292 2015-06-03 Richard Biener <rguenther@suse.de>
15294 PR tree-optimization/66375
15295 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15296 add to the evolution before following SSA edges.
15298 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15300 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15301 (dump_use, dump_cand, find_induction_variables): Pass new argument
15303 (record_use): Preserve the ssa name information in IV.
15305 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15307 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15309 (add_mode_tests): Don't add mode tests if the predicate only
15310 accepts scalar constant integers. Otherwise, allow the mode
15311 of "op" to be VOIDmode if the predicate does accept such integers.
15313 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15316 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15317 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15318 (aarch64_secondary_reload): Likewise
15319 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15321 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15324 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15325 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15328 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15330 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15332 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15333 provide access to the IBM extended double floating point mode if
15334 long double is IEEE 128-bit floating point.
15335 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15336 point if long double is the IBM extended double type.
15338 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15339 enable adding IEEE 128-bit floating point support.
15340 (-mfloat128-software): Likewise.
15341 (-mfloat128-sw): Likewise.
15343 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15344 128-bit floating point types to occupy any register if
15345 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15346 -mfloat128-software is enabled.
15347 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15349 (rs6000_option_override_internal): Add -mfloat128-* support.
15350 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15352 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15353 and float128 type nodes.
15354 (ieee128_float_type_node): Likewise.
15355 (ibm128_float_type_node): Likewise.
15357 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15360 * config/aarch64/geniterators.sh: Rewrite in awk.
15362 2015-06-02 Martin Liska <mliska@suse.cz>
15364 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15365 values to avoid -Wmaybe-uninitialized errors.
15367 2015-06-02 Richard Biener <rguenther@suse.de>
15370 * dwarf2out.c (lookup_context_die): New function.
15371 (resolve_addr): Avoid forcing a full DIE for the
15372 target of a DW_TAG_GNU_call_site during late compilation.
15373 Instead create a stub DIE without a type if we have a
15374 context DIE present.
15376 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15378 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15380 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15382 PR tree-optimization/48052
15383 * cfgloop.h (struct control_iv): New.
15384 (struct loop): New field control_ivs.
15385 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15386 (number_of_iterations_lt): Set no_overflow information.
15387 (number_of_iterations_exit): Init control iv in niter struct.
15388 (record_control_iv): New.
15389 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15390 (loop_exits_before_overflow): New. Interface factored out of
15391 scev_probably_wraps_p.
15392 (scev_probably_wraps_p): Factor loop niter related code into
15393 loop_exits_before_overflow.
15394 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15395 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15397 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15399 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15400 the target doesn't belong to the current function.
15402 2015-06-02 Marek Polacek <polacek@redhat.com>
15404 PR middle-end/66345
15405 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15406 get_maxval_strlen does not produce an INTEGER_CST.
15408 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15410 * config/arc/constraints.md: Use lower-case names in match_code.
15411 * config/mmix/constraints.md: Likewise.
15413 2015-06-02 Richard Biener <rguenther@suse.de>
15415 PR tree-optimization/65961
15416 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15417 check and clarify dump message.
15418 (vect_build_slp_tree): If all children are built up from scalars
15419 build up the parent from scalars instead.
15420 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15422 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15425 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15426 instead of print ... .
15428 2015-06-02 Alan Modra <amodra@gmail.com>
15430 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15433 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15435 PR tree-optimization/52563
15436 PR tree-optimization/62173
15437 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15438 (alloc_iv, set_iv): New parameter.
15439 (determine_biv_step): Delete.
15440 (find_bivs): Inline original determine_biv_step. Pass new
15441 argument to set_iv.
15442 (idx_find_step): Use no_overflow information for conversion.
15443 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15444 resolve_mixers handle folded_casts.
15445 (instantiate_scev_name): Change bool parameter to bool pointer.
15446 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15447 (instantiate_array_ref, instantiate_scev_not): Ditto.
15448 (instantiate_scev_3, instantiate_scev_2): Ditto.
15449 (instantiate_scev_1, instantiate_scev_r): Ditto.
15450 (instantiate_scev_convert, ): Change parameter. Pass argument
15451 to chrec_convert_aggressive.
15452 (instantiate_scev): Change argument.
15453 (resolve_mixers): New parameter and set it.
15454 (scev_const_prop): New argument.
15455 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15456 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15458 (chrec_convert): New parameter. Move definition below.
15459 (chrec_convert_aggressive): New parameter and set it. Call
15460 convert_affine_scev.
15461 * tree-chrec.h (chrec_convert): New parameter.
15462 (chrec_convert_aggressive): Ditto.
15464 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15466 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15467 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15468 the LHS of a no-return call if its type has variable size.
15469 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15470 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15472 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15474 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15475 * config.in: Regenerate.
15477 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15479 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15480 consecutive accesses within outer-loop with force_vectorize
15481 for references with zero step in inner-loop.
15483 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15485 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15486 rather than from gcc/build directory.
15488 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15491 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15492 for __sync memory models, emit initial loads and final barriers as
15495 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15498 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15499 (aarch64_split_atomic_op): Check for __sync memory models, emit
15500 appropriate initial loads and final barriers.
15502 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15504 * Makefile.in: Fix gcov dependencies that should
15505 not point to a build folder.
15507 2015-06-01 Richard Biener <rguenther@suse.de>
15510 2015-05-29 Richard Biener <rguenther@suse.de>
15512 PR tree-optimization/66314
15513 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15514 parameter that says which loop the new block belongs to.
15515 (ssa_create_duplicates): Blocks duplicated for the threaded
15516 path belong to the loop of the thread destination.
15518 2015-06-01 Martin Liska <mliska@suse.cz>
15520 * sched-deps.c: Include pool-alloc.h before
15521 cselib.h header file is included.
15523 2015-06-01 Richard Biener <rguenther@suse.de>
15525 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15528 2015-06-01 Martin Liska <mliska@suse.cz>
15530 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15531 a function local variable.
15533 2015-06-01 Martin Liska <mliska@suse.cz>
15535 * alloc-pool.c (create_alloc_pool): Remove.
15536 (empty_alloc_pool): Likewise.
15537 (free_alloc_pool): Likewise.
15538 (free_alloc_pool_if_empty): Likewise.
15539 (pool_alloc): Likewise.
15540 (pool_free): Likewise.
15541 * alloc-pool.h: Remove old declarations.
15543 2015-06-01 Martin Liska <mliska@suse.cz>
15545 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15546 (ira_create_object): Likewise.
15547 (ira_create_allocno): Likewise.
15548 (ira_create_live_range): Likewise.
15549 (copy_live_range): Likewise.
15550 (ira_finish_live_range): Likewise.
15551 (ira_free_allocno_costs): Likewise.
15552 (finish_allocno): Likewise.
15553 (finish_allocnos): Likewise.
15554 (initiate_prefs): Likewise.
15555 (ira_create_pref): Likewise.
15556 (finish_pref): Likewise.
15557 (finish_prefs): Likewise.
15558 (initiate_copies): Likewise.
15559 (ira_create_copy): Likewise.
15560 (finish_copy): Likewise.
15561 (finish_copies): Likewise.
15562 (finish_prefs): Likewise.
15564 2015-06-01 Martin Liska <mliska@suse.cz>
15566 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15567 (allocate_and_init_ipcp_value): Likewise.
15568 (ipcp_lattice::add_value): Likewise.
15569 (merge_agg_lats_step): Likewise.
15570 (ipcp_driver): Likewise.
15571 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15572 (ipa_free_all_structures_after_iinln): Likewise.
15573 * ipa-prop.h: Likewise.
15575 2015-06-01 Martin Liska <mliska@suse.cz>
15577 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15579 (set_hint_predicate): Likewise.
15580 (inline_summary_alloc): Likewise.
15581 (reset_inline_edge_summary): Likewise.
15582 (reset_inline_summary): Likewise.
15583 (set_cond_stmt_execution_predicate): Likewise.
15584 (set_switch_stmt_execution_predicate): Likewise.
15585 (compute_bb_predicates): Likewise.
15586 (estimate_function_body_sizes): Likewise.
15587 (inline_free_summary): Likewise.
15589 2015-06-01 Martin Liska <mliska@suse.cz>
15591 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15592 (ipa_edge_duplication_hook): Likewise.
15593 (ipa_free_all_structures_after_ipa_cp): Likewise.
15594 (ipa_free_all_structures_after_iinln): Likewise.
15596 2015-06-01 Martin Liska <mliska@suse.cz>
15598 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15599 (ipa_profile_generate_summary): Likewise.
15600 (ipa_profile_read_summary): Likewise.
15601 (ipa_profile): Likewise.
15603 2015-06-01 Martin Liska <mliska@suse.cz>
15605 * tree-ssa-structalias.c (new_var_info): Use new type-based
15607 (new_constraint): Likewise.
15608 (init_alias_vars): Likewise.
15609 (delete_points_to_sets): Likewise.
15611 2015-06-01 Martin Liska <mliska@suse.cz>
15613 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15614 (free_strinfo): Likewise.
15615 (pass_strlen::execute): Likewise.
15617 2015-06-01 Martin Liska <mliska@suse.cz>
15619 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15621 (vn_reference_insert_pieces): Likewise.
15622 (vn_phi_insert): Likewise.
15623 (visit_reference_op_call): Likewise.
15624 (copy_phi): Likewise.
15625 (copy_reference): Likewise.
15626 (process_scc): Likewise.
15627 (allocate_vn_table): Likewise.
15628 (free_vn_table): Likewise.
15630 2015-06-01 Martin Liska <mliska@suse.cz>
15632 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15634 (add_repeat_to_ops_vec): Likewise.
15635 (get_ops): Likewise.
15636 (maybe_optimize_range_tests): Likewise.
15637 (init_reassoc): Likewise.
15638 (fini_reassoc): Likewise.
15640 2015-06-01 Martin Liska <mliska@suse.cz>
15642 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15644 (bitmap_set_new): Likewise.
15645 (get_or_alloc_expr_for_constant): Likewise.
15646 (get_or_alloc_expr_for): Likewise.
15647 (phi_translate_1): Likewise.
15648 (compute_avail): Likewise.
15649 (init_pre): Likewise.
15650 (fini_pre): Likewise.
15652 2015-06-01 Martin Liska <mliska@suse.cz>
15654 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15655 (delete_dep_node): Likewise.
15656 (create_deps_list): Likewise.
15657 (free_deps_list): Likewise.
15658 (sched_deps_init): Likewise.
15659 (sched_deps_finish): Likewise.
15661 2015-06-01 Martin Liska <mliska@suse.cz>
15663 * regcprop.c (free_debug_insn_changes): Use new type-based
15665 (replace_oldest_value_reg): Likewise.
15666 (pass_cprop_hardreg::execute): Likewise.
15668 2015-06-01 Martin Liska <mliska@suse.cz>
15670 * ira-build.c (initiate_cost_vectors): Use new type-based
15672 (ira_allocate_cost_vector): Likewise.
15673 (ira_free_cost_vector): Likewise.
15674 (finish_cost_vectors): Likewise.
15676 2015-06-01 Martin Liska <mliska@suse.cz>
15678 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15680 (free_sched_pools): Likewise.
15681 * sel-sched-ir.h (_list_alloc): Likewise.
15682 (_list_remove): Likewise.
15684 2015-06-01 Martin Liska <mliska@suse.cz>
15686 * stmt.c (add_case_node): Use new type-based pool allocator.
15687 (expand_case): Likewise.
15688 (expand_sjlj_dispatch_table): Likewise.
15690 2015-06-01 Martin Liska <mliska@suse.cz>
15692 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15693 (free_bb): Likewise.
15694 (pass_cse_reciprocals::execute): Likewise.
15696 2015-06-01 Martin Liska <mliska@suse.cz>
15698 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15699 (sra_deinitialize) Likewise.
15700 (create_access_1) Likewise.
15701 (build_accesses_from_assign) Likewise.
15702 (create_artificial_child_access) Likewise.
15704 2015-06-01 Martin Liska <mliska@suse.cz>
15706 * dse.c (get_group_info):Use new type-based pool allocator.
15707 (dse_step0) Likewise.
15708 (free_store_info) Likewise.
15709 (delete_dead_store_insn) Likewise.
15710 (free_read_records) Likewise.
15711 (record_store) Likewise.
15712 (replace_read) Likewise.
15713 (check_mem_read_rtx) Likewise.
15714 (scan_insn) Likewise.
15715 (dse_step1) Likewise.
15716 (dse_step7) Likewise.
15718 2015-06-01 Martin Liska <mliska@suse.cz>
15720 * df-scan.c (struct df_scan_problem_data):Use new type-based
15722 (df_scan_free_internal) Likewise.
15723 (df_scan_alloc) Likewise.
15724 (df_grow_reg_info) Likewise.
15725 (df_free_ref) Likewise.
15726 (df_insn_create_insn_record) Likewise.
15727 (df_mw_hardreg_chain_delete) Likewise.
15728 (df_insn_info_delete) Likewise.
15729 (df_free_collection_rec) Likewise.
15730 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15731 (df_sort_and_compress_mws) Likewise.
15732 (df_ref_create_structure) Likewise.
15733 (df_ref_record) Likewise.
15735 2015-06-01 Martin Liska <mliska@suse.cz>
15737 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15738 (df_chain_unlink_1) Likewise.
15739 (df_chain_unlink) Likewise.
15740 (df_chain_remove_problem) Likewise.
15741 (df_chain_alloc) Likewise.
15742 (df_chain_free) Likewise.
15743 * df.h (struct dataflow) Likewise.
15745 2015-06-01 Martin Liska <mliska@suse.cz>
15747 * cselib.c (new_elt_list):Use new type-based pool allocator.
15748 (new_elt_loc_list) Likewise.
15749 (unchain_one_elt_list) Likewise.
15750 (unchain_one_elt_loc_list) Likewise.
15751 (unchain_one_value) Likewise.
15752 (new_cselib_val) Likewise.
15753 (cselib_init) Likewise.
15754 (cselib_finish) Likewise.
15756 2015-06-01 Martin Liska <mliska@suse.cz>
15758 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15759 (sh_reorg) Likewise.
15761 2015-06-01 Martin Liska <mliska@suse.cz>
15763 * cfg.c (initialize_original_copy_tables):Use new type-based
15765 (free_original_copy_tables) Likewise.
15766 (copy_original_table_clear) Likewise.
15767 (copy_original_table_set) Likewise.
15769 2015-06-01 Martin Liska <mliska@suse.cz>
15771 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15773 (asan_mem_ref_new) Likewise.
15774 (free_mem_ref_resources) Likewise.
15776 2015-06-01 Martin Liska <mliska@suse.cz>
15778 * var-tracking.c (variable_htab_free):Use new type-based
15780 (attrs_list_clear) Likewise.
15781 (attrs_list_insert) Likewise.
15782 (attrs_list_copy) Likewise.
15783 (shared_hash_unshare) Likewise.
15784 (shared_hash_destroy) Likewise.
15785 (unshare_variable) Likewise.
15786 (var_reg_delete_and_set) Likewise.
15787 (var_reg_delete) Likewise.
15788 (var_regno_delete) Likewise.
15789 (drop_overlapping_mem_locs) Likewise.
15790 (variable_union) Likewise.
15791 (insert_into_intersection) Likewise.
15792 (canonicalize_values_star) Likewise.
15793 (variable_merge_over_cur) Likewise.
15794 (dataflow_set_merge) Likewise.
15795 (remove_duplicate_values) Likewise.
15796 (variable_post_merge_new_vals) Likewise.
15797 (dataflow_set_preserve_mem_locs) Likewise.
15798 (dataflow_set_remove_mem_locs) Likewise.
15799 (variable_from_dropped) Likewise.
15800 (variable_was_changed) Likewise.
15801 (set_slot_part) Likewise.
15802 (clobber_slot_part) Likewise.
15803 (delete_slot_part) Likewise.
15804 (loc_exp_insert_dep) Likewise.
15805 (notify_dependents_of_changed_value) Likewise.
15806 (emit_notes_for_differences_1) Likewise.
15807 (vt_emit_notes) Likewise.
15808 (vt_initialize) Likewise.
15809 (vt_finalize) Likewise.
15811 2015-06-01 Martin Liska <mliska@suse.cz>
15813 * ira-color.c (init_update_cost_records):Use new type-based
15815 (get_update_cost_record) Likewise.
15816 (free_update_cost_record_list) Likewise.
15817 (finish_update_cost_records) Likewise.
15818 (initiate_cost_update) Likewise.
15820 2015-06-01 Martin Liska <mliska@suse.cz>
15822 * lra.c (init_insn_regs): Use new type-based pool allocator.
15823 (new_insn_reg) Likewise.
15824 (free_insn_reg) Likewise.
15825 (free_insn_regs) Likewise.
15826 (finish_insn_regs) Likewise.
15827 (init_insn_recog_data) Likewise.
15828 (init_reg_info) Likewise.
15829 (finish_reg_info) Likewise.
15830 (lra_free_copies) Likewise.
15831 (lra_create_copy) Likewise.
15832 (invalidate_insn_data_regno_info) Likewise.
15834 2015-06-01 Martin Liska <mliska@suse.cz>
15836 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15837 (free_live_range_list) Likewise.
15838 (create_live_range) Likewise.
15839 (copy_live_range) Likewise.
15840 (lra_merge_live_ranges) Likewise.
15841 (remove_some_program_points_and_update_live_ranges) Likewise.
15842 (lra_live_ranges_init) Likewise.
15843 (lra_live_ranges_finish) Likewise.
15845 2015-06-01 Martin Liska <mliska@suse.cz>
15847 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15848 (et_new_tree): Likewise.
15849 (et_free_tree): Likewise.
15850 (et_free_tree_force): Likewise.
15851 (et_free_pools): Likewise.
15852 (et_split): Likewise.
15854 2015-06-01 Martin Liska <mliska@suse.cz>
15856 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15858 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15859 (pool_allocator::release): Likewise.
15860 (inline pool_allocator::release_if_empty): Likewise.
15861 (inline pool_allocator::~pool_allocator): Likewise.
15862 (pool_allocator::allocate): Likewise.
15863 (pool_allocator::remove): Likewise.
15865 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15867 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15870 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15872 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15874 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15875 (arm_macro_fusion_p): Likewise.
15876 (arm_macro_fusion_pair_p): Likewise.
15878 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15880 * config/aarch64/aarch64-protos.h (tune_params): Rename
15881 fuseable_ops to fusible_ops.
15882 * config/aarch64/aarch64.c (generic_tunings): Rename
15883 fuseable_ops to fusible_ops.
15884 (cortexa53_tunings): Likewise.
15885 (cortexa57_tunings): Likewise.
15886 (thunderx_tunings): Likewise.
15887 (xgene1_tunings): Likewise.
15888 (aarch64_macro_fusion_p): Likewise.
15889 (aarch64_macro_fusion_pair_p): Likewise.
15891 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15893 * config/s390/driver-native.c: New file.
15894 * config/s390/x-native: New file.
15895 * config.host: Add new files for s390.
15896 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15898 * config.gcc: Likewise.
15899 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15900 * config/s390/s390-opts.h (enum processor_type): Ditto.
15901 * config/s390/s390.c (s390_option_override): Catch unhandled
15904 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15907 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15908 redirection for instrumented calls.
15909 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15910 (append_compiler_options): Append -fcheck-pointer-bounds.
15911 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15912 (chkp_redirect_edge): New.
15913 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15914 (chkp_redirect_edge): New.
15916 2015-06-01 Richard Biener <rguenther@suse.de>
15918 PR tree-optimization/66280
15919 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15922 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15924 * config/aarch64/aarch64.md
15925 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
15928 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15930 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
15931 Remove obsolete kludge.
15933 2015-06-01 Richard Biener <rguenther@suse.de>
15935 * tree-ssa-reassoc.c (get_rank): Simplify.
15937 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
15939 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
15940 * configure: Regenerated.
15942 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
15944 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
15945 issue (add space between string literal and macro).
15946 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
15948 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
15950 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
15951 implict or explicit -fPIE or -fpie.
15953 2015-05-30 Mike Frysinger <vapier@gentoo.org>
15955 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
15957 2015-05-28 DJ Delorie <dj@redhat.com>
15959 * expmed.c (extract_bit_field_1): Avoid clobbering a
15960 yet-to-be-used base/index register.
15962 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
15964 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
15965 (alias_stats): Add num_universal.
15966 (alias_set_subset_of): Special case pointers; be ready for NULL
15968 (alias_sets_conflict_p): Special case pointers; be ready for NULL
15970 (init_alias_set_entry): Break out from ...
15971 (record_alias_subset): ... here; propagate new fields;
15972 allocate children only when really needed.
15973 (get_alias_set): Do less generous pointer globbing.
15974 (dump_alias_stats_in_alias_c): Update statistics.
15976 2015-05-30 Alan Modra <amodra@gmail.com>
15978 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15979 correct block for use of r12.
15980 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15982 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15985 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15988 2015-05-29 Jakub Jelinek <jakub@redhat.com>
15990 PR tree-optimization/66142
15991 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15992 virtual phis that feed themselves.
15994 2015-05-29 Richard Biener <rguenther@suse.de>
15996 PR tree-optimization/66314
15997 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15998 parameter that says which loop the new block belongs to.
15999 (ssa_create_duplicates): Blocks duplicated for the threaded
16000 path belong to the loop of the thread destination.
16002 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16004 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16005 to cleanup-saved-temps.
16006 * doc/sourcebuild.texi (Clean up generated test files): Expand
16008 (dg-keep-saved-temps): Document new proc.
16009 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16010 cleanup-saved-temps): Remove.
16012 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16014 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16015 gcc_AC_CHECK_DECLS.
16016 * configure: Regenerate.
16018 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16020 * config/nios2/linux.h (CPP_SPEC): Define.
16022 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16024 * config/microblaze/linux.h (CPP_SPEC): Define.
16026 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16028 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16029 -pthread is specified.
16031 2015-05-28 Richard Biener <rguenther@suse.de>
16033 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16034 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16035 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16036 after pattern recog.
16037 (vect_create_epilog_for_reduction): Properly handle reductions
16039 (vectorizable_reduction): Likewise.
16040 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16042 (vect_get_constant_vectors): Create the correct number of
16043 initial values for reductions.
16044 (vect_schedule_slp_instance): Handle reduction chains that are
16045 type changing properly.
16046 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16048 2015-05-28 Richard Biener <rguenther@suse.de>
16050 PR tree-optimization/66142
16051 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16052 values better in memcpy destination handling. Handle non-aliasing
16055 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16058 * config/darwin-c.c (version_components): New global enum.
16059 (parse_version, version_as_legacy_macro)
16060 (version_as_modern_macro, macosx_version_as_macro): New functions.
16061 (version_as_macro): Remove.
16062 (darwin_cpp_builtins): Use new function.
16064 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16066 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16067 with ATTRIBUTE_UNUSED.
16069 2015-05-28 Julian Brown <julian@codesourcery.com>
16073 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16074 sequence for !ACCEL_COMPILER.
16076 2015-05-28 Nick Clifton <nickc@redhat.com>
16078 * config/rx/rx.c (push_regs): New function. Extracts code from...
16079 (rx_expand_prologue): ... here. Use push_regs to push even small
16080 spans of registers.
16081 (pop_regs): New function.
16082 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16085 2015-05-28 Richard Biener <rguenther@suse.de>
16087 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16089 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16090 (vect_update_slp_costs_according_to_vf): Likewise.
16091 (vect_slp_analyze_operations): Update prototype.
16092 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16093 vect_update_slp_costs_according_to_vf, adjust.
16094 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16095 (vect_analyze_slp_cost_1): Likewise.
16096 (vect_analyze_slp_cost): Likewise. Properly deal with
16097 widening reduction ops. Commit body costs.
16098 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16099 cost for loops from here.
16100 (vect_slp_analyze_operations): But do it from here when
16101 the vectorization factor is known and stmts are analyzed.
16102 (vect_bb_vectorization_profitable_p): Simplify.
16103 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16104 (vect_update_slp_costs_according_to_vf): Remove.
16106 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16107 H.J. Lu <hongjiu.lu@intel.com>
16109 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16110 (BUILD_CFLAGS): Likewise.
16111 (BUILD_CXXFLAGS): Likewise.
16112 (LINKER): Add @NO_PIE_FLAG@.
16113 (BUILD_LDFLAGS): Likewise.
16114 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16115 --enable-default-pie.
16116 * common.opt (fPIE): Initialize to -1.
16118 (no-pie): New option.
16119 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16120 * configure.ac: Add --enable-default-pie.
16121 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16122 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16123 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16124 * gcc.c (NO_PIE_SPEC): New.
16125 (PIE_SPEC): Likewise.
16126 (NO_FPIE1_SPEC): Likewise.
16127 (FPIE1_SPEC): Likewise.
16128 (NO_FPIE2_SPEC): Likewise.
16129 (FPIE2_SPEC): Likewise.
16130 (NO_FPIE2_SPEC): Likewise.
16131 (FPIE_SPEC): Likewise.
16132 (NO_FPIE_SPEC): Likewise.
16133 (NO_FPIC1_SPEC): Likewise.
16134 (FPIC1_SPEC): Likewise.
16135 (NO_FPIC2_SPEC): Likewise.
16136 (FPIC2_SPEC): Likewise.
16137 (NO_FPIC2_SPEC): Likewise.
16138 (FPIC_SPEC): Likewise.
16139 (NO_FPIC_SPEC): Likewise.
16140 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16141 (FPIE1_OR_FPIC1_SPEC): Likewise.
16142 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16143 (FPIE2_OR_FPIC2_SPEC): Likewise.
16144 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16145 (FPIE_OR_FPIC_SPEC): Likewise.
16146 (LD_PIE_SPEC): Likewise.
16147 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16148 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16149 * config/darwin.h (PIE_SPEC): Renamed to ...
16150 (DARWIN_PIE_SPEC): This.
16151 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16152 * config/darwin9.h (PIE_SPEC): Renamed to ...
16153 (DARWIN_PIE_SPEC): This.
16154 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16155 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16156 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16157 FPIE2_OR_FPIC2_SPEC.
16158 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16159 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16160 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16161 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16162 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16163 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16164 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16165 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16166 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16167 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16168 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16169 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16170 * config/sparc/linux.h (ASM_SPEC): Likewise.
16171 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16172 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16173 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16174 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16175 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16176 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16177 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16178 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16179 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16180 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16181 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16182 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16183 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16184 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16185 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16186 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16187 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16188 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16189 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16190 * config/vax/linux.h (ASM_SPEC): Likewise.
16191 * doc/install.texi: Document --enable-default-pie.
16192 * doc/invoke.texi: Document -no-pie.
16193 * config.in: Regenerated.
16194 * configure: Likewise.
16196 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16198 PR rtl-optimization/66168
16199 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16200 can_move_invariant_reg.
16202 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16205 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16206 REG_EQUAL note when doing insert.
16208 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16209 instead of "%d" for 'o' operand.
16211 2015-05-27 Nathan Sidwell <nathan@acm.org>
16214 * tree.c (build_pointer_type_for_mode): Canonical type does not
16215 inherit can_alias_all.
16216 (build_reference_type_for_mode): Likewise.
16218 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16220 * expr.h (array_at_struct_end_p): Move to...
16221 (array_ref_element_size): Likewise.
16222 (component_ref_field_offset): Likewise.
16223 * tree.h (array_ref_element_size): ...here.
16224 (array_at_struct_end_p): Likewise.
16225 (component_ref_field_offset): Likewise.
16226 * expr.c (array_ref_element_size): Move to...
16227 (array_ref_low_bound): Likewise.
16228 (array_at_struct_end_p): Likewise.
16229 (array_ref_up_bound): Likewise.
16230 (component_ref_field_offset): Likewise.
16231 * tree.c (array_ref_element_size): ...here.
16232 (array_ref_low_bound): Likewise.
16233 (array_ref_up_bound): Likewise.
16234 (array_at_struct_end_p): Likewise.
16235 (component_ref_field_offset): Likewise.
16237 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16238 Szabolcs Nagy <szabolcs.nagy@arm.com>
16240 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16242 2015-05-27 Jason Merrill <jason@redhat.com>
16245 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16246 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16247 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16249 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16251 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16254 * statistics.c (statistics_fini_pass): Print pass name.
16256 2015-05-27 Richard Biener <rguenther@suse.de>
16258 PR tree-optimization/66272
16260 2014-08-15 Richard Biener <rguenther@suse.de>
16262 PR tree-optimization/62031
16263 * tree-data-ref.c (dr_analyze_indices): Do not set
16264 DR_UNCONSTRAINED_BASE.
16265 (dr_may_alias_p): All indirect accesses have to go the
16266 formerly DR_UNCONSTRAINED_BASE path.
16267 * tree-data-ref.h (struct indices): Remove
16268 unconstrained_base member.
16269 (DR_UNCONSTRAINED_BASE): Remove.
16271 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16273 * dwarf2out.c: Remove block_map.
16274 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16275 (gen_lexical_block_die): Same.
16276 (dwarf2out_function_decl): Remove block_map use.
16277 (dwarf2out_c_finalize): Same.
16278 * tree-core.h (struct tree_block): Add die field.
16279 * tree.h (BLOCK_DIE): New.
16281 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16284 * expr.c (memory_load_overlap): New function.
16285 (emit_push_insn): When pushing partial args to the stack would
16286 clobber the register part load the overlapping part into a pseudo
16287 and put it into the hard reg after pushing. Change return type
16288 to bool. Add bool argument.
16289 * expr.h (emit_push_insn): Change return type to bool.
16291 * calls.c (expand_call): Cancel sibcall optimization when encountering
16292 partial argument on targets with ARGS_GROW_DOWNWARD and
16293 !STACK_GROWS_DOWNWARD.
16294 (emit_library_call_value_1): Update callsite of emit_push_insn.
16295 (store_one_arg): Likewise.
16297 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16299 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16301 2015-05-27 Martin Liska <mliska@suse.cz>
16303 * Makefile.in: Add additional dependencies related to memory report
16305 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16306 * bitmap.c (struct bitmap_descriptor_d): Remove.
16307 (struct loc): Likewise.
16308 (struct bitmap_desc_hasher): Likewise.
16309 (bitmap_desc_hasher::hash): Likewise.
16310 (bitmap_desc_hasher::equal): Likewise.
16311 (get_bitmap_descriptor): Likewise.
16312 (bitmap_register): User new memory descriptor API.
16313 (register_overhead): Likewise.
16314 (bitmap_find_bit): Register nsearches and search_iter statistics.
16315 (struct bitmap_output_info): Remove.
16316 (print_statistics): Likewise.
16317 (dump_bitmap_statistics): Use new memory descriptor.
16318 * bitmap.h (struct bitmap_usage): New class.
16319 * genmatch.c: Extend header file inclusion.
16320 * genpreds.c: Likewise.
16321 * ggc-common.c (struct ggc_usage): New class.
16322 (struct ggc_loc_desc_hasher): Remove.
16323 (ggc_loc_desc_hasher::hash): Likewise.
16324 (ggc_loc_desc_hasher::equal): Likewise.
16325 (struct ggc_ptr_hash_entry): Likewise.
16326 (struct ptr_hash_hasher): Likewise.
16327 (ptr_hash_hasher::hash): Likewise.
16328 (ptr_hash_hasher::equal): Likewise.
16329 (make_loc_descriptor): Likewise.
16330 (ggc_prune_ptr): Likewise.
16331 (dump_ggc_loc_statistics): Use new memory descriptor.
16332 (ggc_record_overhead): Likewise.
16333 (ggc_free_overhead): Likewise.
16334 (final_cmp_statistic): Remove.
16335 (cmp_statistic): Likewise.
16336 (ggc_add_statistics): Liekwise.
16337 (ggc_prune_overhead_list): Likewise.
16338 * hash-map-traits.h: New file.
16339 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16340 separate header file.
16341 * hash-set.h: Pass memory statistics info to ctor.
16342 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16343 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16344 (hash_table::~hash_table): Register memory release operation.
16345 (hash_table::alloc_entries): Handle memory allocation operation.
16346 (hash_table::expand): Likewise.
16347 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16349 (iterative_hash_host_wide_int): Likewise.
16350 * inchash.h (class hash): Likewise.
16351 * mem-stats-traits.h: New file.
16352 * mem-stats.h: New file.
16353 (mem_location): Add new class.
16354 (mem_usage): Likewise.
16355 (mem_alloc_description): Likewise.
16356 * sese.c: Add new header file inclusision.
16357 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16359 * tree-sra.c: Add new header file inclusision.
16360 * vec.c (struct vec_descriptor): Remove.
16361 (hash_descriptor): Likewise.
16362 (struct vec_usage): Likewise.
16363 (struct ptr_hash_entry): Likewise.
16364 (hash_ptr): Likewise.
16365 (eq_ptr): Likewise.
16366 (vec_prefix::register_overhead): Use new memory descriptor API.
16367 (vec_prefix::release_overhead): Likewise.
16368 (add_statistics): Remove.
16369 (dump_vec_loc_statistics): Use new memory descriptor API.
16370 * vec.h (struct vec_prefix): Likewise.
16371 (va_heap::reserve): Likewise.
16372 (va_heap::release): Likewise.
16373 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16375 2015-05-27 Richard Biener <rguenther@suse.de>
16377 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16378 earlier and remove ??? comment.
16379 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16380 and got called from loop analysis bail out. Always pass the SLP
16381 node to the vectorizable_* functions.
16382 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16383 the premature SLP check here.
16384 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16385 detected SLP stmts.
16386 (vect_detect_hybrid_slp_1): Likewise.
16388 2015-05-26 Jeff Law <law@redhat.com>
16390 * combine.c (find_split_point): Verify that the shift count is a
16391 constant when choosing (plus (ashift ...)) as a split point.
16393 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16394 No functional changes.
16396 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16398 * ipa-polymorphic-call.c
16399 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16400 case when call target is already known.
16402 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16405 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16406 take into account the case that operands[1] and operands[2]
16407 are the same register.
16409 2015-05-26 Michael Matz <matz@suse.de>
16411 PR middle-end/66251
16413 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16415 (vect_create_vectorized_demotion_stmts): Always set
16416 STMT_VINFO_VEC_STMT, also with SLP.
16417 (vectorizable_store): Handle strided group stores.
16419 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16422 * config/aarch64/aarch64.md
16423 (*adds_shift_imm_<mode>): New pattern.
16424 (*subs_shift_imm_<mode>): Likewise.
16425 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16426 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16427 (*add_uxt<mode>_shift2): Likewise.
16428 (*add_uxtsi_shift2_uxtw): Likewise.
16429 (*sub_uxt<mode>_shift2): Likewise.
16430 (*sub_uxtsi_shift2_uxtw): Likewise.
16432 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16434 * config/rs6000/constraints.md (Y, U): Use match_test.
16436 2015-05-26 Christian Bruel <christian.bruel@st.com>
16439 * config/arm/arm.c (arm_option_check_internal)
16440 (arm_option_params_internal): Check opts->target_flags to set macros.
16441 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16442 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16443 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16444 (builtin_define): Replaced with def_or_undef_macro.
16445 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16446 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16447 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16448 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16449 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16450 (TARGET_ARM_FEATURE_LDREX_P)
16451 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16452 * config/arm/arm-c.c (def_or_undef_macro): New function.
16453 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16455 2015-05-26 Christian Bruel <christian.bruel@st.com>
16457 * c-common.h (builtin_define_with_int_value)
16458 (builtin_define_type_sizeof): Declare.
16459 * c-cppbuiltin.c (builtin_define_with_int_value)
16460 (builtin_define_type_sizeof): Externalize.
16461 (builtin_define_std): Cleanup declaration.
16462 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16463 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16464 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16465 (builtin_define, builtin_assert): New macros.
16467 2015-05-26 Richard Biener <rguenther@suse.de>
16469 PR tree-optimization/66142
16470 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16471 MEM_REFs for the same base address.
16473 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16476 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16478 2015-05-26 Jason Merrill <jason@redhat.com>
16480 * configure.ac: Set CXXFLAGS for ISL test.
16481 * configure: Regenerate.
16483 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16484 strstr and basename.
16485 * configure: Regenerate.
16487 2015-05-26 Richard Biener <rguenther@suse.de>
16489 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16490 X % C -> X & (C - 1) for C being a power-of two to ...
16491 * match.pd: ... patterns.
16493 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16495 * match.pd (swapped_tcc_comparison): New operator list.
16496 (-A CMP -B): New simplification.
16497 * fold-const.c (fold_comparison): Remove corresponding code.
16499 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16501 * caller-save.c (init_caller_save): Base temporary register numbers
16502 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16503 * cfgloopanal.c (init_set_costs): Likewise.
16504 * dojump.c (prefer_and_bit_test): Likewise.
16505 * expr.c (init_expr_target): Likewise.
16506 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16507 * lower-subreg.c (init_lower_subreg): Likewise.
16508 * postreload.c (reload_cse_regs_1): Likewise.
16510 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16512 * gensupport.h (compute_test_codes): Declare.
16513 * gensupport.c (compute_predicate_codes): Rename to...
16514 (compute_test_codes): ...this. Generalize error message.
16515 (process_define_predicate): Update accordingly.
16516 * genpreds.c (compute_maybe_allows): Delete.
16517 (add_constraint): Use compute_test_codes to determine whether
16518 something can accept a SUBREG, REG or MEM.
16520 2015-05-26 Torvald Riegel <triegel@redhat.com>
16522 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16523 'memory model' to align with C++11; fix description of memory orders;
16526 2015-05-26 Richard Biener <rguenther@suse.de>
16528 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16529 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16530 detect whether we apply SLP. Remove call to
16531 vect_update_slp_costs_according_to_vf.
16532 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16533 vect_update_slp_costs_according_to_vf from here. Dispatch
16534 to vect_slp_analyze_operations to analyze SLP stmts.
16535 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16536 unused bb_vec_info parameter, adjust assert.
16537 (vect_slp_analyze_operations): Pass in the slp instance tree
16538 instead of bb_vec_info.
16539 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16540 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16542 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16544 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16545 Q_REGS. Expand comment.
16546 (REG_CLASS_NAMES): Ditto.
16547 (REG_CLASS_CONTENTS): Ditto.
16549 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16552 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16553 when LEGACY_INT_REGNO_P is processed.
16555 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16557 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16559 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16561 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16562 register if not marked dead/unused, before return.
16564 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16567 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16568 is set; check for assembler name at LTO time.
16569 (type_in_anonymous_namespace): Remove hacks, check that all
16570 anonymous types are called "<anon>"
16571 (odr_type_p): Simplify; add check for "<anon>"
16572 (odr_subtypes_equivalent): Add odr_type_p check.
16573 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16576 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16578 * ipa-utils.h (method_class_type): Remove.
16579 * cgraphunit.c (walk_polymorphic_call_targets): Use
16580 TYPE_METHOD_BASETYPE.
16581 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16582 on main variants only.
16583 (method_class_type): Remove.
16584 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16585 (build_type_inheritance_graph): Likewise.
16586 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16587 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16588 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16590 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16592 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16593 is_typedef_decl, typedef_variant_p): Constify.
16594 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16595 is_typedef_decl, typedef_variant_p): Constify.
16597 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16599 * defaults.h (gen_tablejump): New function.
16600 (HAVE_tablejump): Add default value.
16602 * stmt.c: Likewise.
16604 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16606 * defaults.h (gen_store_multiple): New function.
16607 (HAVE_store_multiple): Add default value.
16608 * expr.c (move_block_from_reg): Adjust.
16610 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16612 * defaults.h (gen_load_multiple): New function.
16613 (HAVE_load_multiple): Add default value.
16614 * expr.c (move_block_to_reg): Adjust.
16616 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16618 * defaults.h (gen_mem_signal_fence): New function.
16619 (HAVE_mem_signal_fence): Add default value.
16620 * optabs.c: Adjust.
16622 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16624 * defaults.h (gen_memory_barrier): New function.
16625 (HAVE_memory_barrier): Add default value.
16626 * optabs.c: Adjust.
16628 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16630 * defaults.h (gen_mem_thread_fence): New function.
16631 (HAVE_mem_thread_fence): Add default definition.
16632 * optabs.c: Adjust.
16634 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16636 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16637 instead of if it is defined.
16638 (combine_simplify_rtx): Likewise.
16639 * lra-constraints.c (process_address_1): Likewise.
16640 * config/darwin.c: Adjust.
16641 * genconfig.c (main): Always define HAVE_lo_sum.
16643 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16645 * genmatch.c (parser::parse_operation): Reject expanding
16646 operator-list inside 'for'.
16648 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16650 * genmatch.c (parser::parse_for): Reject iterator if used as
16653 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16655 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16656 after end of id-list.
16658 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16660 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16661 we do not try to compute canonical type for type that does not need
16663 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16665 * tree.h (type_with_alias_set_p): New.
16667 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16669 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16670 function attributes.
16671 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16673 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16675 * Makefile.in (check_gcc_parallelize): Delete.
16676 (lang_checks_parallelized): Update comment.
16678 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16680 PR rtl-optimization/66237
16681 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16682 location of an "as_a" cast.
16684 2015-05-22 Jeff Law <law@redhat.com>
16686 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16687 (peepholes with non-canonical RTL sources): Remove.
16688 (peepholes for indexed stores of FP regs in integer modes): Match and
16689 generate canonical RTL.
16691 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16693 PR tree-optimization/63387
16694 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16695 ((x ord x) & (y ord y) -> (x ord y),
16696 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16697 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16698 vectors like scalars.
16700 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16702 * convert.c (convert_to_integer, convert_to_vector): Include the
16703 types in the error message.
16705 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16707 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16710 2015-05-22 Jeff Law <law@redhat.com>
16712 * config/pa/pa.md (integer_indexed_store splitters): Use
16713 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16714 insns -- adjusting the constant 2nd operand accordingly.
16716 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16717 (plus (ashift X log2) Y) if it is a split point.
16719 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16720 out of hppa_legitimize_address to handle both forms of a multiply
16722 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16723 Always generate the ASHIFT variant as the result is not directly
16724 used in a MEM. Update comments and refactor slightly to improve
16727 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16730 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16731 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16732 (aarch64_composite_type_p): Return false if given type and mode are
16733 for a short vector.
16735 2015-05-22 Richard Biener <rguenther@suse.de>
16737 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16739 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16740 patterns when determining whether SLP is pure.
16741 (vect_is_slp_reduction): Remove check for pattern stmts.
16742 (vect_is_simple_reduction_1): Remove dead code.
16743 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16744 (vect_get_and_check_slp_defs): Pass in the stmt number.
16745 Allow the first def in a reduction to be not a pattern stmt when
16746 the rest of the stmts def are patterns.
16747 (vect_build_slp_tree_1): Allow tcc_expression codes like
16748 SAD_EXPR and DOT_PROD_EXPR.
16749 (vect_build_slp_tree): Adjust.
16750 (vect_analyze_slp): Refactor and move BB vect error message ...
16751 (vect_slp_analyze_bb_1): ... here.
16753 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16755 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16756 for CSWTCH temporary.
16758 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16760 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16761 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16764 2015-05-22 Richard Biener <rguenther@suse.de>
16766 PR tree-optimization/66251
16767 * tree-vect-stmts.c (vectorizable_conversion): Properly
16768 set STMT_VINFO_VEC_STMT even for the SLP case.
16770 2015-05-22 Marek Polacek <polacek@redhat.com>
16772 * doc/extend.texi: Use @pxref instead of @xref.
16774 2015-05-22 hiraditya <hiraditya@msn.com>
16776 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16779 2015-05-22 Richard Biener <rguenther@suse.de>
16781 PR tree-optimization/65701
16782 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16783 Move peeling cost models into one place. Peel for alignment
16784 for single loads only if an aligned load is cheaper than
16787 2015-05-22 Marek Polacek <polacek@redhat.com>
16790 * doc/extend.texi (Enumerator Attributes): New section.
16791 Document syntax of enumerator attributes.
16793 2015-05-22 Richard Biener <rguenther@suse.de>
16795 * tree-vect-loop.c (get_reduction_op): New function.
16796 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16797 Make ready for BB reductions.
16798 (vect_create_epilog_for_reduction): Use get_reduction_op.
16799 (vectorizable_reduction): Init reduc_index to a valid value.
16800 Adjust vect_model_reduction_cost call.
16801 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16802 operand for reduction defaults. Add SAD_EXPR support.
16803 Assert we have a neutral op for SLP reductions.
16804 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16805 walking pattern stmt ops only recurse to SSA names.
16807 2015-05-22 Richard Biener <rguenther@suse.de>
16809 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16810 assert with guard, remove check on detected reduction.
16811 (vect_recog_sad_pattern): Likewise.
16812 (vect_recog_widen_sum_pattern): Likewise.
16814 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16816 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16817 __always_inline__ attribute.
16818 (vaesdq_u8): Likewise.
16819 (vaesmcq_u8): Likewise.
16820 (vaesimcq_u8): Likewise.
16821 (vsha1cq_u32): Likewise.
16822 (vsha1mq_u32): Likewise.
16823 (vsha1pq_u32): Likewise.
16824 (vsha1h_u32): Likewise.
16825 (vsha1su0q_u32): Likewise.
16826 (vsha1su1q_u32): Likewise.
16827 (vsha256hq_u32): Likewise.
16828 (vsha256h2q_u32): Likewise.
16829 (vsha256su0q_u32): Likewise.
16830 (vsha256su1q_u32): Likewise.
16831 (vmull_p64): Likewise.
16832 (vmull_high_p64): Likewise.
16834 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16836 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16838 * output.h: Likewise.
16839 * genconfig.c (main): Alwways define HAVE_peephole.
16840 * genpeep.c: Don't emit checks of HAVE_peephole.
16842 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16844 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16845 check HAVE_conditional_move with the preprocessor.
16847 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16849 * genconfig.c (main): Always define HAVE_conditional_move.
16850 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16851 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16854 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16856 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16857 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16858 and FRAME_POINTER_REGNUM with the preprocessor.
16860 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16862 * defaults.h: Add default for STACK_PUSH_CODE.
16863 * expr.c: Don't redefine STACK_PUSH_CODE.
16864 * recog.c: Likewise.
16866 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16868 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16869 sched-deps.c: Use if instead of preprocessor checks with
16870 STACK_GROWS_DOWNWARD.
16872 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16874 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16876 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16877 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16878 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16879 * doc/tm.texi: Regenerate.
16881 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16884 * config/i386/constraints.md (Bg): New constraint for GOT memory
16886 * config/i386/i386.md (*call_got_x32): New pattern.
16887 (*call_value_got_x32): Likewise.
16888 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16890 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16892 PR tree-optimization/66233
16893 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16896 2015-05-21 Jeff Law <law@redhat.com>
16898 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16899 than MULT for shadd sequences.
16901 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16903 * alias.c (alias_stats): New static var.
16904 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16905 (dump_alias_stats_in_alias_c): New function.
16906 * alias.h (dump_alias_stats_in_alias_c): Declare.
16907 * tree-ssa-alias.c (dump_alias_stats): Call it.
16909 2015-05-08 Michael Matz <matz@suse.de>
16911 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16913 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16914 (STMT_VINFO_STRIDED_P): ... this.
16915 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16916 (vect_verify_datarefs_alignment): Likewise.
16917 (vect_enhance_data_refs_alignment): Likewise.
16918 (vect_analyze_data_ref_access): Likewise.
16919 (vect_analyze_data_refs): Accept strided stores.
16920 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16921 (vect_model_load_cost): Adjust for macro rename.
16922 (vectorizable_mask_load_store): Likewise.
16923 (vectorizable_load): Likewise.
16924 (vectorizable_store): Open code strided stores.
16926 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16928 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
16929 Document sqrt_insn.
16931 2015-05-21 Richard Biener <rguenther@suse.de>
16934 * match.pd: Guard pattern optimzing (int)(float)int
16935 conversions to apply only on GIMPLE.
16937 2015-05-21 Jeff Law <law@redhat.com>
16939 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
16940 multiply-accumulate/shift-add insn generation.
16942 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16945 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
16946 operands[1] are the same.
16948 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
16950 PR middle-end/66221
16951 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
16952 build_distinct_type_copy to copy bounds.
16954 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
16956 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
16957 Change to unsigned int.
16959 2015-05-20 Jeff Law <law@redhat.com>
16961 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
16962 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
16963 (pa_shadd_constant_p): Allow constants for shadd insns rather
16964 than valid scaling constants for memory addresses.
16965 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
16966 * config/pa/predicates.md (mem_shadd_operand): New predicate.
16967 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
16968 (shift-add insns using ASHIFT): New patterns.
16970 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
16972 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16974 (fix_up_fall_thru_edges): Likewise.
16975 (fix_crossing_conditional_branches): Likewise. Promote jump targets
16976 from to rtx_insn to rtx_code_label where feasible.
16977 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16978 gen_move_insn (returned type changed to rtx_insn).
16979 * builtins.c (expand_errno_check): Fix arguments of
16980 do_compare_rtx_and_jump (now expects rtx_code_label).
16981 (expand_builtin_acc_on_device): Likewise.
16982 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16983 invert_jump (now exprects rtx_jump_insn).
16984 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16985 (construct_init_block): Use rtx_code_label.
16986 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16987 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16988 calling redirect_jump.
16989 (patch_jump_insn): Likewise.
16990 (redirect_branch_edge): Likewise.
16991 (force_nonfallthru_and_redirect): Likewise.
16992 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16994 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16995 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16996 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16997 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16998 to store the value retured by gen_label_rtx.
16999 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17001 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17002 (split_branches): Fix calls of redirect_jump.
17003 * dojump.c (jumpifnot): Promote argument type from rtx to
17005 (jumpifnot_1): Likewise.
17006 (jumpif): Likewise.
17007 (jumpif_1): Likewise.
17008 (do_jump_1): Likewise.
17009 (do_jump): Likewise. Use rtx_code_label when feasible.
17010 (do_jump_by_parts_greater_rtx): Likewise.
17011 (do_jump_by_parts_zero_rtx): Likewise.
17012 (do_jump_by_parts_equality_rtx): Likewise.
17013 (do_compare_rtx_and_jump): Likewise.
17014 * dojump.h: Update function prototypes.
17015 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17017 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17019 (emit_label_before): Likewise.
17020 (emit_jump_insn_after_noloc): Likewise.
17021 (emit_jump_insn_after_setloc): Likewise.
17022 (emit_jump_insn_after): Likewise
17023 (emit_jump_insn_before_setloc): Likewise.
17024 (emit_jump_insn_before): Likewise.
17025 (emit_label_before): Promote return type to rtx_code_label.
17026 (emit_label): Likewise.
17027 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17028 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17030 (emit_stack_restore): Likewise.
17031 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17032 (do_cmp_and_jump): Likewise.
17033 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17034 from rtx to rtx_code_label.
17035 (gen_move_insn_uncast): New function.
17036 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17037 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17038 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17039 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17040 invert_jump_1 and redirect_jump_1.
17041 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17042 do_compare_rtx_and_jump.
17043 (expand_addsub_overflow): Likewise.
17044 (expand_neg_overflow): Likewise.
17045 (expand_mul_overflow): Likewise.
17046 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17047 return value of gen_move_insn.
17048 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17049 * loop-doloop.c (add_test): Use rtx_code_label.
17050 (doloop_modify): Likewise.
17051 (doloop_optimize): Likewise.
17052 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17053 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17055 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17056 (split_reg): Likewise.
17057 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17059 * optabs.c (expand_binop_directly): Remove casts of values returned by
17061 (expand_unop_direct): Likewise.
17062 (expand_abs): Likewise.
17063 (maybe_emit_unop_insn): Likewise.
17064 (maybe_gen_insn): Promote return type to rtx_insn.
17065 * optabs.h: Update prototype of maybe_gen_insn.
17066 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17068 * recog.c (struct peep2_insn_data): Promote type of insn field to
17070 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17071 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17072 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17073 * recog.h (struct insn_gen_fn): Promote return types of function
17074 pointers and operator ().from rtx to rtx_insn.
17075 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17076 (fill_eager_delay_slots): Likewise.
17077 (relax_delay_slots): Likewise.
17078 (make_return_insns): Likewise.
17079 (dbr_schedule): Likewise.
17080 (optimize_skips): Likewise.
17081 (reorg_redirect_jump): Likewise.
17082 (fill_slots_from_thread): Likewise.
17083 * reorg.h: Update prototypes.
17084 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17085 rtx_jump_insn instead of check. Use it's jump_target method.
17086 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17087 (rtx_jump_insn::jump_target): Define new method.
17088 (rtx_jump_insn::set_jump_target): Define new method.
17089 * rtlanal.c (tablejump_p): Promote type of one local variable.
17090 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17091 (sched_analyze_insn): Likewise.
17092 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17093 (print_insn): Likewise.
17094 * stmt.c (label_rtx): Promote return type to rtx_insn.
17095 (force_label_rtx): Likewise.
17096 (jump_target_rtx): Define new function.
17097 (expand_label): Use it, get rid of one cast.
17098 (expand_naked_return): Promote rtx to rtx_code_label.
17099 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17100 (expand_case): Use rtx_code_label instread of rtx where feasible.
17101 (expand_sjlj_dispatch_table): Likewise.
17102 (emit_case_nodes): Likewise.
17103 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17104 * store-motion.c (insert_store): Make use of new return type of
17105 gen_move_insn and remove a cast.
17106 (replace_store_insn): Likewise.
17108 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17110 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17111 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17113 2015-05-20 Jeff Law <law@redhat.com>
17115 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17116 dispose of the jump thread path when the jump threading
17117 opportunity is cancelled.
17119 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17121 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17122 when printing the caret character.
17124 2015-05-20 Marek Polacek <polacek@redhat.com>
17126 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17128 2015-05-20 Marek Polacek <polacek@redhat.com>
17130 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17131 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17132 * gimple-fold.c (canonicalize_bool): Likewise.
17133 (same_bool_result_p): Likewise.
17134 * tree-if-conv.c (parse_predicate): Likewise.
17136 2015-05-20 Marek Polacek <polacek@redhat.com>
17138 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17139 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17141 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17143 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17144 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17147 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17149 * config/mips/mips.h (micromips_globals): Declare.
17151 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17153 * timevar.def (TV_INITIALIZE_RTL): New.
17154 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17155 function's time to TV_INITIALIZE_RTL.
17157 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17159 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17160 gimple_build_nop calls.
17161 (chkp_find_bounds_for_elem): Likewise.
17162 (chkp_get_zero_bounds): Likewise.
17163 (chkp_get_none_bounds): Likewise.
17164 (chkp_get_bounds_by_definition): Likewise.
17165 (chkp_generate_extern_var_bounds): Likewise.
17166 (chkp_get_bounds_for_decl_addr): Likewise.
17167 (chkp_get_bounds_for_string_cst): Likewise.
17169 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17171 PR tree-optimization/65447
17172 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17173 (dump_use, dump_uses): Support to dump sub use.
17174 (record_use): New parameters to support sub use. Remove call to
17176 (record_sub_use, record_group_use): New functions.
17177 (compute_max_addr_offset, split_all_small_groups): New functions.
17178 (group_address_uses, rewrite_use_address): New functions.
17179 (strip_offset): New declaration.
17180 (find_interesting_uses_address): Call record_group_use.
17181 (add_candidate): New assertion.
17182 (infinite_cost_p): Move definition forward.
17183 (add_costs): Check INFTY cost and return immediately.
17184 (get_computation_cost_at): Clear setup cost and dependent bitmap
17186 (determine_use_iv_cost_address): Compute cost for sub uses.
17187 (rewrite_use_address_1): Rename from old rewrite_use_address.
17188 (free_loop_data): Free sub uses.
17189 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17191 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17192 Jim Wilson <jim.wilson@linaro.org>
17194 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17195 new fields loadv and storev.
17196 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17197 Initialize loadv and storev.
17198 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17199 (cortexa53_extra_costs): Likewise.
17200 (cortexa57_extra_costs): Likewise.
17201 (xgene1_extra_costs): Likewise.
17202 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17205 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17207 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17209 (cortexa8_extra_costs): Likewise.
17210 (cortexa5_extra_costs): Likewise.
17211 (cortexa7_extra_costs): Likewise.
17212 (cortexa12_extra_costs): Likewise.
17213 (cortexa15_extra_costs): Likewise.
17214 (v7m_extra_costs): Likewise.
17216 2015-05-20 Jeff Law <law@redhat.com>
17218 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17219 instead of open-coded version. Also delete the jump thread created
17220 within this function.
17222 2015-05-20 Alan Modra <amodra@gmail.com>
17224 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17225 stack adjusting insn. Formatting.
17226 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17227 r12. If possible, emit first -fsplit-stack arg pointer insn
17228 before stack adjust. Don't use r12 to save cr if split-stack.
17230 2015-05-20 Alan Modra <amodra@gmail.com>
17232 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17234 (rs6000_supports_split_stack): New function.
17235 * gcc/config/rs6000/rs6000.c (machine_function): Add
17236 split_stack_arg_pointer.
17237 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17238 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17239 rather than virtual_incoming_args_rtx.
17240 (rs6000_va_start): Likewise.
17241 (split_stack_arg_pointer_used_p): New function.
17242 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17243 (morestack_ref): New var.
17244 (gen_add3_const, rs6000_expand_split_stack_prologue,
17245 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17246 rs6000_split_stack_space_check): New functions.
17247 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17248 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17249 (UNSPECV_SPLIT_STACK_RETURN): Define.
17250 (split_stack_prologue, load_split_stack_limit,
17251 load_split_stack_limit_di, load_split_stack_limit_si,
17252 split_stack_return, split_stack_space_check): New expands and insns.
17253 * gcc/config/rs6000/rs6000-protos.h
17254 (rs6000_expand_split_stack_prologue): Declare.
17255 (rs6000_split_stack_space_check): Declare.
17257 2015-05-20 Alan Modra <amodra@gmail.com>
17259 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17260 (direct_return): Test vrsave_size rather than vrsave_mask.
17261 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17262 (rs6000_emit_epilogue): Likewise.
17264 2015-05-20 Alan Modra <amodra@gmail.com>
17266 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17267 when not saving registers.
17268 (debug_stack_info): Adjust to omit printing unused offsets,
17270 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17273 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17276 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17277 value_type to const char *.
17279 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17281 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17282 to build a biarch toolchain again.
17284 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17286 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17287 or implicit declarations.
17288 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17290 (get_odr_type): Check type has linkage before adding bases.
17291 (register_odr_type): Check that type has linkage before adding it.
17292 (type_known_to_have_no_deriavations_p): Rename to ..
17293 (type_known_to_have_no_derivations_p): This one.
17294 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17295 (type_known_to_have_no_derivations_p): This one.
17296 * ipa-polymorphic-call.c
17297 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17300 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17302 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17303 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17305 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17307 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17308 (s390_invalid_binary_op): New function.
17309 (TARGET_INVALID_BINARY_OP): Define macro.
17311 2015-05-19 David Sherwood <david.sherwood@arm.com>
17313 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17314 if mode is not a scalar integer.
17315 (get_inv_cost): Increase computational cost for unused invariants.
17317 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17319 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17320 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17321 * config/s390/s390-builtin-types.def: New file.
17322 * config/s390/s390-builtins.def: New file.
17323 * config/s390/s390-builtins.h: New file.
17324 * config/s390/s390-c.c: New file.
17325 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17326 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17327 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17328 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17330 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17332 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17333 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17334 variable definitions.
17335 (s390_const_operand_ok): New function.
17336 (s390_expand_builtin): Rewrite.
17337 (s390_init_builtins): New function.
17338 (s390_handle_vectorbool_attribute): New function.
17339 (s390_attribute_table): Add s390_vector_bool attribute.
17340 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17341 (s390_branch_condition_mask): Generate masks for new modes.
17342 (s390_expand_vec_compare_cc): New function.
17343 (s390_mangle_type): Add mangling for vector bool types.
17344 (enum s390_builtin): Remove.
17345 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17347 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17348 s390_cpu_cpp_builtins.
17349 (REGISTER_TARGET_PRAGMAS): New macro.
17350 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17351 (insn_cmp mode attribute): Add new CC modes.
17352 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17353 (lcbb): New pattern definition.
17354 * config/s390/s390intrin.h: Include vecintrin.h.
17355 * config/s390/t-s390: New file.
17356 * config/s390/vecintrin.h: New file.
17357 * config/s390/vector.md: Include vx-builtins.md.
17358 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17361 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17363 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17365 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17366 (s390_select_ccmode): Likewise.
17367 (s390_canonicalize_comparison): Swap operands if necessary.
17368 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17369 single element vector instructions.
17370 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17371 (s390_branch_condition_mask): Generate CC masks for the new modes.
17372 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17373 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17374 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17375 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17376 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17377 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17378 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17379 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17380 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17381 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17382 (sqrt<mode>2): Add vector instruction.
17384 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17386 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17388 * config/s390/predicates.md (const0_operand, constm1_operand)
17389 (constable_operand): Accept vector operands.
17390 * config/s390/s390-modes.def: Add supported vector modes.
17391 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17392 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17393 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17394 (s390_expand_vec_compare, s390_expand_vcond)
17395 (s390_expand_vec_init): Add prototypes.
17396 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17397 (s390_vector_mode_supported_p): New function.
17398 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17399 (s390_contiguous_bitmask_vector_p): New function.
17400 (s390_bytemask_vector_p): New function.
17401 (s390_split_ok_p): Vector regs don't work either.
17402 (regclass_map): Add VEC_REGS.
17403 (s390_legitimate_constant_p): Handle vector constants.
17404 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17405 (legitimate_reload_vector_constant_p): New function.
17406 (s390_preferred_reload_class): Handle CONST_VECTOR.
17407 (s390_reload_symref_address): Likewise.
17408 (s390_secondary_reload): Vector memory instructions only support
17409 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17410 (s390_emit_ccraw_jump): New function.
17411 (s390_expand_vec_strlen): New function.
17412 (s390_expand_vec_compare): New function.
17413 (s390_expand_vcond): New function.
17414 (s390_expand_vec_init): New function.
17415 (s390_dwarf_frame_reg_mode): New function.
17416 (print_operand): Handle addresses with 'O' and 'R' constraints.
17417 (NR_C_MODES, constant_modes): Add vector modes.
17418 (s390_output_pool_entry): Handle vector constants.
17419 (s390_hard_regno_mode_ok): Handle vector registers.
17420 (s390_class_max_nregs): Likewise.
17421 (s390_cannot_change_mode_class): New function.
17422 (s390_invalid_arg_for_unprototyped_fn): New function.
17423 (s390_function_arg_vector): New function.
17424 (s390_function_arg_float): Remove size variable.
17425 (s390_pass_by_reference): Handle vector arguments.
17426 (s390_function_arg_advance): Likewise.
17427 (s390_function_arg): Likewise.
17428 (s390_return_in_memory): Vector values are returned in a VR if
17430 (s390_function_and_libcall_value): Handle vector arguments.
17431 (s390_gimplify_va_arg): Likewise.
17432 (s390_call_saved_register_used): Consider the arguments named.
17433 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17435 (s390_preferred_simd_mode): New function.
17436 (s390_support_vector_misalignment): New function.
17437 (s390_vector_alignment): New function.
17438 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17439 (TARGET_VECTOR_MODE_SUPPORTED_P)
17440 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17441 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17442 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17443 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17444 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17445 (FIRST_PSEUDO_REGISTER): Increase value.
17446 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17447 (VECTOR_REG_P): Define macros.
17448 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17449 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17450 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17451 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17452 Add vector registers.
17453 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17454 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17455 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17457 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17458 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17459 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17460 (VR*_REGNUM): New constants.
17461 (ALL): New mode iterator.
17462 (INTALL): Remove mode iterator.
17464 (movti): Implement TImode moves for VRs.
17465 Disable TImode splitter for VR targets.
17466 Implement splitting TImode GPR<->VR moves.
17467 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17468 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17469 reload<mode>_la_in, reload<mode>_la_out.
17470 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17471 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17472 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17473 (mov<mode> SF SD): Prefer lder, lde for loading.
17474 Add lrl and strl instructions.
17475 Add vector instructions.
17476 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17477 Call s390_expand_vec_strlen on z13.
17478 (*cc_to_int): Change predicate to nonimmediate_operand.
17479 (addti3): Rename to *addti3. New expander.
17480 (subti3): Rename to *subti3. New expander.
17481 * config/s390/vector.md: New file.
17483 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17485 * common/config/s390/s390-common.c (processor_flags_table): Add
17487 * config.gcc: Add z13.
17488 * config/s390/s390-opts.h (enum processor_type): Add
17489 PROCESSOR_2964_Z13.
17490 * config/s390/s390.c (s390_adjust_priority): Check for
17491 PROCESSOR_2964_Z13.
17492 (s390_reorg): Likewise.
17493 (s390_sched_reorder): Likewise.
17494 (s390_sched_variable_issue): Likewise.
17495 (s390_loop_unroll_adjust): Likewise.
17496 (s390_option_override): Likewise. Default to -mvx when available.
17497 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17498 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17499 (TARGET_VX_ABI): Define macros.
17501 (TARGET_DEFAULT): Add MASK_OPT_VX.
17502 * config/s390/s390.md ("cpu" attribute): Add z13.
17503 ("cpu_facility" attribute): Add vec.
17504 * config/s390/s390.opt (processor_type): Add z13.
17505 (mvx): New options.
17506 * doc/invoke.texi: Add z13 option for -march.
17508 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17510 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17511 mode check to make sure that only scalar integer values are
17514 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17516 * tree.c (verify_type_variant): Fix #undef.
17517 (gimple_canonical_types_compatible_p): Move here from lto.c
17518 (verify_type): Verify TYPE_CANONICAL compatibility.
17519 * tree.h (gimple_canonical_types_compatible_p): Declare.
17521 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17523 PR middle-end/66199
17524 * tree.h (OMP_TEAMS_COMBINED): Define.
17525 * gimplify.c (enum gimplify_omp_var_data): Add
17526 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17527 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17528 (omp_notice_variable): Accept both ORT_TEAMS
17529 and ORT_COMBINED_TEAMS. Don't recurse if
17530 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17531 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17533 (omp_no_lastprivate): New function.
17534 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17535 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17536 notice_outer and set appropriate bits, otherwise make
17537 sure default(none) combined constructs won't complain.
17538 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17539 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17540 omp_no_lastprivate either remove the clause or turn it
17541 into OMP_CLAUSE_PRIVATE.
17542 (gimplify_omp_for): Fix up handling of implicit
17543 lastprivate or linear iterators.
17544 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17545 ORT_COMBINED_TEAMS.
17546 * omp-low.c (lower_omp_for_lastprivate): For combined
17547 for simd use fd.loop.n2 from the for rather than simd.
17549 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17551 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17552 instead of gen_rtx_raw_REG.
17553 (cris_expand_epilogue): Likewise.
17554 * config/microblaze/microblaze.c (microblaze_classify_address):
17556 * config/sparc/sparc.md: Likewise.
17558 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17560 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17561 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17562 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17563 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17564 Use CASE_CONST_SCALAR_INT.
17565 (print_operand) <case 'M'>: Use mode_width_operand to check the
17566 value of the constant.
17567 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17568 * config/alpha/predicates.md (input_operand): Use general_operand
17569 instead of match_code as operand check.
17570 (symbolic_operand): Use match_code with subexpression digits.
17571 * config/alpha/constraints.md (Q): Ditto.
17573 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17575 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17577 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17579 * config/s390/s390.c (s390_secondary_reload): Fix check for
17580 load/store relative.
17582 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17584 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17585 alternative_mask to uint64_t.
17587 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17589 PR tree-optimization/66187
17590 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17591 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17592 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17594 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17596 * diagnostic.c (diagnostic_report_current_module): Strengthen
17597 local "new_map" from const line_map * to
17598 const line_map_ordinary *.
17599 * genmatch.c (error_cb): Likewise for local "map".
17600 (output_line_directive): Likewise for local "map".
17601 * input.c (expand_location_1): Likewise for local "map".
17602 Pass NULL rather than &map to
17603 linemap_unwind_to_first_non_reserved_loc, since the value is never
17604 read from there, and the value written back not read from here.
17605 (is_location_from_builtin_token): Strengthen local "map" from
17606 const line_map * to const line_map_ordinary *.
17607 (dump_location_info): Strengthen locals "map" from
17608 line_map *, one to const line_map_ordinary *, the other
17609 to const line_map_macro *.
17610 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17611 const line_map * to const line_map_macro *.
17612 (maybe_unwind_expanded_macro_loc): Add a call to
17613 linemap_check_macro when writing to the "map" field of the
17615 Introduce local const line_map_ordinary * "ord_map", using it in
17616 place of "map" in the part of the function where we know we have
17617 an ordinary map. Strengthen local "m" from const line_map * to
17618 const line_map_ordinary *.
17620 2015-05-19 Nick Clifton <nickc@redhat.com>
17623 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17624 separate source and destination registers.
17626 2015-05-19 Richard Biener <rguenther@suse.de>
17628 PR tree-optimization/66165
17629 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17630 for no load permutation.
17632 PR tree-optimization/66185
17633 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17634 when building the SLP node from scalars.
17636 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17637 Tristan Gingold <gingold@adacore.com>
17639 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17640 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17641 (expand_stack_restore): Call record_new_stack_level.
17642 (expand_stack_save): Do not call do_pending_stack_adjust.
17643 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17644 * calls.c (expand_call): Call record_new_stack_level for alloca.
17645 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17646 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17647 (update_sjlj_context): New global function.
17648 * except.h (update_sjlj_context): Declare.
17649 * explow.c (record_new_stack_level): New global function.
17650 (allocate_dynamic_stack_space): Call record_new_stack_level.
17651 * explow.h (record_new_stack_level): Declare.
17652 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17653 * cfgrtl.c (duplicate_insn_chain): Likewise.
17655 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17657 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17658 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17659 STACK_GROWS_DOWNWARD as normal if.
17660 (expand_call): Likewise.
17662 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17665 * config/sh/sh.md (*round_int_even): New insn_and_split and
17666 accompanying new unnamed split.
17668 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17670 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17671 (bitmap_clear_range): Likewise.
17672 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17673 bitmap_set_range unconditionally.
17674 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17675 * df-scan.c (df_mark_reg): Likewise.
17676 * haifa-sched.c (setup_ref_regs): Likewise.
17677 * sched-rgn.c (update_live_1): Likewise.
17679 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17681 * regs.h (END_HARD_REGNO): Delete.
17682 (END_REGNO): Move to...
17684 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17685 * caller-save.c (mark_set_regs): Likewise.
17686 * combine.c (move_deaths, distribute_notes): Likewise.
17687 * cse.c (invalidate, invalidate_for_call): Likewise.
17688 * df-scan.c (df_ref_record): Likewise.
17689 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17690 (record_last_reg_set_info): Likewise.
17691 * reg-stack.c (convert_regs_exit): Likewise.
17692 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17693 * resource.c (update_live_status): Likewise.
17694 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17696 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17698 * rtl.h (reg_info): Add an nregs field.
17699 (REG_NREGS): Use it.
17700 (SET_REGNO_RAW): Delete.
17701 (set_regno_raw): New function.
17702 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17703 (END_REGNO): Redefine in terms of REG_NREGS.
17704 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17706 * emit-rtl.c (set_mode_and_regno): Likewise.
17707 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17708 instead of SET_REGNO_RAW.
17710 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17712 * rtl.h (PUT_MODE_RAW): New macro.
17713 (PUT_REG_NOTE_KIND): Use it.
17714 (set_mode_and_regno): Declare.
17715 (gen_raw_REG): Change regno to "unsigned int".
17716 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17717 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17718 use set_mode_and_regno to change the mode of registers.
17719 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17720 * emit-rtl.c (set_mode_and_regno): New function.
17721 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17722 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17723 * expr.c (init_expr_target): Likewise.
17724 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17725 * postreload.c (reload_cse_simplify_operands): Likewise.
17727 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17729 * caller-save.c (init_caller_save): Use word_mode and
17730 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17731 * expr.c (init_expr_target): Likewise.
17732 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17733 * postreload.c (reload_cse_regs_1): Likewise.
17735 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17737 * rtl.def (REG): Change format to "r".
17738 * rtl.h (rtunion): Remove rt_reg.
17739 (reg_info): New structure.
17740 (rtx_def): Add reg field to main union.
17741 (X0REGATTR): Delete.
17742 (REG_CHECK): New macro.
17743 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17744 * rtl.c (rtx_format): Document "r".
17745 (rtx_code_size): Handle REG specially.
17746 * gengenrtl.c (special_format): Return true for formats
17748 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17749 Deal with REG_ATTRS after the field loop.
17750 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17751 * expmed.c (init_expmed): Call gen_raw_REG instead of
17753 * expr.c (init_expr_target): Likewise.
17754 * regcprop.c (maybe_mode_change): Likewise.
17755 * varasm.c (make_decl_rtl): Likewise.
17756 * final.c (leaf_renumber_regs_insn): Return early after
17758 * genemit.c (gen_exp): Handle 'r' fields.
17759 * genpeep.c (match_rtx): Likewise.
17760 * gensupport.c (subst_pattern_match): Likewise.
17761 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17762 (alter_constraints, subst_dup): Likewise.
17763 * read-rtl.c (read_rtx_code): Likewise.
17764 * print-rtl.c (print_rtx): Likewise.
17765 * genrecog.c (find_operand, find_matching_operand): Likewise.
17766 (validate_pattern, match_pattern_2): Likewise.
17767 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17768 (rtx_test::regno_field): New function.
17769 (operator ==, safe_to_hoist_p, transition_parameter_type)
17770 (parameter_type_string, print_parameter_value)
17771 (print_nonbool_test, print_test): Handle new enum values.
17772 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17773 * lra-constraints.c (operands_match_p): Likewise.
17775 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17777 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17778 Change type of new_regno to unsigned int.
17779 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17780 new_regno to unsigned int.
17781 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17782 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17783 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17784 (SET_REGNO_RAW): Add space after ",".
17786 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17788 * rtl.h (REG_NREGS): New macro
17789 * alias.c (record_set): Use it.
17790 * cfgcleanup.c (mark_effect): Likewise.
17791 * combine.c (likely_spilled_retval_1): Likewise.
17792 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17793 (move_deaths, distribute_notes): Likewise.
17794 * cselib.c (cselib_record_set): Likewise.
17795 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17796 * df-scan.c (df_mark_reg): Likewise.
17797 * dse.c (look_for_hardregs): Likewise.
17798 * dwarf2out.c (reg_loc_descriptor): Likewise.
17799 (multiple_reg_loc_descriptor): Likewise.
17800 * expr.c (write_complex_part, read_complex_part): Likewise.
17801 (emit_move_complex): Likewise.
17802 * haifa-sched.c (setup_ref_regs): Likewise.
17803 * ira-lives.c (mark_hard_reg_live): Likewise.
17804 * lra.c (lra_set_insn_recog_data): Likewise.
17805 * mode-switching.c (create_pre_exit): Likewise.
17806 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17807 (reload_combine_recognize_pattern): Likewise.
17808 (reload_combine_note_use, move2add_record_mode): Likewise.
17809 (reload_cse_move2add): Likewise.
17810 * reg-stack.c (subst_stack_regs_pat): Likewise.
17811 * regcprop.c (kill_value, copy_value): Likewise.
17812 (copyprop_hardreg_forward_1): Likewise.
17813 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17814 (build_def_use): Likewise.
17815 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17816 (deps_analyze_insn): Likewise.
17817 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17818 * sel-sched.c (count_occurrences_equiv): Likewise.
17819 * valtrack.c (dead_debug_insert_temp): Likewise.
17821 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17823 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17824 * dse.c (note_add_store): Likewise.
17825 * ira-lives.c (mark_hard_reg_dead): Likewise.
17826 * loop-invariant.c (mark_reg_store): Likewise.
17827 (mark_reg_death): Likewise.
17828 * postreload.c (reload_combine): Likewise.
17829 (reload_combine_note_store): Likewise.
17830 (reload_combine_note_use): Likewise.
17831 * recog.c (peep2_reg_dead_p): Likewise.
17833 2015-05-19 Alan Modra <amodra@gmail.com>
17835 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17836 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17837 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17839 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17840 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17841 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17842 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17844 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17846 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17847 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17848 (join2_loadhi): Likewise.
17849 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17850 load-load and store-stores.
17851 * config/mips/mips.opt (mload-store-pairs): New option.
17852 (TARGET_LOAD_STORE_PAIRS): New macro.
17853 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17854 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17855 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17857 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17859 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17861 * dojump.c (do_compare_rtx_and_jump): Likewise.
17862 * expmed.c (emit_store_flag_1): Likewise.
17863 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17864 * final.c (sprint_ul): Use std::reverse for reversing a string.
17865 * fold-const.c (extract_muldiv_1): Use std::swap.
17866 * genmodes.c (emit_mode_int_n): Likewise.
17867 * ifcvt.c (dead_or_predicable): Likewise.
17868 * ira-build.c (ira_merge_live_ranges): Likewise.
17869 (swap_allocno_copy_ends_if_necessary): Likewise.
17870 * ira.c (ira_setup_alts): Likewise.
17871 * loop-iv.c (iv_analyze_expr): Likewise.
17872 (implies_p): Likewise.
17873 (canon_condition): Likewise.
17874 * lra-constraints.c (swap_operands): Likewise.
17875 * lra-lives.c (lra_merge_live_ranges): Likewise.
17876 * omega.c (swap): Remove.
17878 (omega_unprotect_1): Use std::swap.
17879 (omega_solve_geq): Likewise.
17880 * optabs.c (expand_binop_directly): Likewise.
17881 (expand_binop): Likewise.
17882 (emit_conditional_move): Likewise.
17883 (emit_conditional_add): Likewise.
17884 * postreload.c (reload_cse_simplify_operands): Likewise.
17885 * reg-stack.c (emit_swap_insn): Likewise.
17886 (swap_to_top): Likewise.
17887 (compare_for_stack_reg): Likewise.
17888 (subst_asm_stack_regs): Likewise.
17889 * reload.c (find_reloads): Likewise.
17890 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17891 * sel-sched.c (invoke_reorder_hooks): Likewise.
17892 (create_block_for_bookkeeping): Likewise.
17893 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17894 (lambda_matrix_right_hermite): Use std::swap.
17895 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17896 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17897 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17898 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17899 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17900 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17901 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17902 * tree-vrp.c (compare_ranges): Likewise.
17903 * var-tracking.c (add_with_sets): Likewise.
17904 (vt_find_locations): Likewise.
17906 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17908 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17910 (FBSD_ENDFILE_SPEC): Likewise.
17911 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17912 config/freebsd-spec.h.
17913 (ENDFILE_SPEC): Likewise.
17915 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17916 Richard Henderson <rth@redhat.com>
17919 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17920 Check for a memory location that is not a reference (using an AND)
17921 to an unaligned location here.
17922 * config/alpha/predicates.md (normal_memory_operand): Remove.
17924 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
17926 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
17927 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
17929 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
17931 * config/mips/mips.c (micromips_globals): New variable.
17932 (mips_set_compression_mode): Save and reinitialize target-dependent
17933 state for microMIPS.
17935 2015-05-18 Martin Liska <mliska@suse.cz>
17937 * dbgcnt.def: Add new counter.
17938 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
17940 2015-05-18 Martin Liska <mliska@suse.cz>
17942 * dbgcnt.def: Sort counters.
17943 * opts.c (common_handle_option): Do not compile if
17944 -fdbg-cnt-list is enabled.
17946 2015-05-18 Tom de Vries <tom@codesourcery.com>
17948 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
17949 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
17950 address operator to va_list operand.
17951 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
17953 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
17955 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
17956 * config/s390/s390.c (s390_gimplify_va_arg): Same.
17957 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
17959 2015-05-18 Tom de Vries <tom@codesourcery.com>
17961 * tree-ssa-tail-merge.c: Fix whitespace.
17963 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
17965 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
17966 cortex-a17, and cortex-a17.cortex-a7.
17968 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
17971 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17973 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
17976 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17977 QImode inner modes for TARGET_AVX512BW. Force mask operand
17978 to a register for AVX512F modes.
17980 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17982 * toplev.c (emit_debug_global_declarations): Do not output debug info
17983 when doing slim LTO objects.
17985 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17987 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17988 odr_types_equivalent_p): Declare.
17989 (odr_type_p): Use gcc_checking_assert.
17990 (type_in_anonymous_namespace_p) Declare.
17991 (type_with_linkage_p): Declare.
17992 * common.opt (Wlto-type-mismatch): New warning.
17993 * ipa-devirt.c (compound_type_base): New function.
17994 (odr_or_derived_type_p): New function.
17995 (odr_types_equivalent_p): New function.
17996 (add_type_duplicate): Simplify.
17997 (type_with_linkage_p): Add hack to prevent false positives on C types
17998 (type_in_anonymous_namespace_p): Likewise.
17999 * tree.c (need_assembler_name_p): Use type_with_linkage.
18000 * tree.h (type_in_anonymous_namespace_p): Remove.
18001 * doc/invoke.texi (-Wlto-type-mismatch): Document
18003 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18005 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18006 (verify_type): Verify STRING_FLAG.
18008 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18011 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18012 with accessor function.
18013 * tree-diagnostic.c (diagnostic_report_current_function): Use
18014 diagnostic_location function.
18015 (maybe_unwind_expanded_macro_loc): Likewise.
18016 (virt_loc_aware_diagnostic_finalizer): Likewise.
18017 (default_tree_printer): Replace locus pointer with accessor function.
18018 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18019 (diagnostic_set_info_translated): Initialize second location.
18020 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18021 (diagnostic_show_locus): Handle two locations. Call
18022 diagnostic_print_caret_line.
18023 (diagnostic_print_caret_line): New.
18024 (default_diagnostic_starter): Use diagnostic_location function.
18025 (diagnostic_report_diagnostic): Use diagnostic_location function.
18026 (verbatim): Do not set text.locus.
18027 * diagnostic.h (struct diagnostic_info): Remove location field.
18028 (struct diagnostic_context): Make caret_chars an array of two.
18029 (diagnostic_location): New inline.
18030 (diagnostic_expand_location): Handle two locations.
18031 (diagnostic_same_line): New inline.
18032 (diagnostic_print_caret_line): Declare.
18033 (CARET_LINE_MARGIN): New constant.
18034 * pretty-print.c (pp_printf): Do not set text.locus.
18035 (pp_verbatim): Do not set text.locus.
18036 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18037 (struct text_info): Replace locus pointer with locations
18038 array. Add accessor functions.
18040 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18041 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18044 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18045 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18046 large constants in register instead of splitting them.
18048 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18051 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18052 replacements in memory addresses.
18053 (get_unaligned_address): Ditto.
18055 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18057 * config/ft32/*: New files for FT32 port.
18058 * doc/install.texi: Add FT32 information.
18059 * doc/invoke.texi: Add FT32 information.
18060 * doc/md.texi: Add FT32 information.
18061 * doc/contrib.texi: Self added.
18063 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18065 PR tree-optimization/64454
18066 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18067 (-1 - A -> ~A): Remove unnecessary condition.
18069 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18071 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18072 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18073 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18075 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18077 * ipa-chkp.h (chkp_wrap_function): New.
18078 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18079 (chkp_wrap_function_name): New.
18080 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18081 to get wrapper name.
18082 * lto-cgraph.c: Include ipa-chkp.h.
18083 (input_cgraph_1): Avoid alias chain for wrappers.
18085 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18087 PR middle-end/66134
18088 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18089 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18091 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18093 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18094 (AARCH64_FL_SLOWMUL): Delete.
18095 (AARCH64_FL_CRC): Redefine to 1<<3.
18096 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18098 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18100 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18103 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18105 * config/alpha/alpha.md (extendqidi2): Use general_operand
18106 instead of some_operand for operand[1] predicate.
18107 (extendhidi2): Ditto.
18108 (cbranchdi4): Use general_operand instead of some_operand
18109 for operand[1] and operands[2] predicates.
18110 (cstoredi4): Ditto.
18111 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18112 (some_ni_operand): Ditto.
18114 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18116 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18117 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18118 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18119 low part of the constant using alpha_emit_set_const_1.
18120 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18122 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18124 * varasm.c (output_constant_pool_1): Pass down alignment from
18125 constant pool entry's descriptor to output_constant_pool_2.
18126 (output_object_block): Add comment prior to call to
18127 output_constant_pool_1.
18129 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18131 PR rtl-optimization/65862
18132 * target.def (ira_change_pseudo_allocno_class): New hook.
18133 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18135 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18136 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18138 * ira-costs.c (find_costs_and_classes): Call the hook and change
18139 classes when it is necessary.
18140 * doc/tm.texi: Update.
18142 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18144 * config/i386/i386.md (sibcall_memory): Check that register with
18145 callee address is not also used as one of the arguments, instead
18146 of checking that it is not live after the sibcall.
18147 (sibcall_pop_memory): Ditto.
18148 (sibcall_value_memory): Ditto.
18149 (sibcall_value_pop_memory): Ditto.
18151 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18153 * generic-match-head.c (types_match): Handle non-types.
18154 * gimple-match-head.c (types_match): Likewise.
18155 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18157 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18159 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18160 (csneg3<mode>_insn): Enable expansion of pattern.
18162 2015-05-14 Nick Clifton <nickc@redhat.com>
18164 * config/rl78/rl78.c (rl78_select_section): Select the correct
18165 default section based upon the category of the decl.
18167 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18169 PR rtl-optimization/30967
18170 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18171 destination mode for the cost of scc patterns.
18173 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18175 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18176 using SWIM248 mode iterator.
18177 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18178 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18179 for operand[2] constraint.
18180 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18182 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18184 PR middle-end/66133
18185 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18186 make sure it is never noreturn, even when the task body does not
18188 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18189 right before GIMPLE_OMP_RETURN.
18190 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18191 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18192 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18194 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18196 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18197 * tree-ssa-math-opts.c: Include params.h
18198 (pow_synth_sqrt_info): New struct.
18199 (representable_as_half_series_p): New function.
18200 (get_fn_chain): Likewise.
18201 (print_nested_fn): Likewise.
18202 (dump_fractional_sqrt_sequence): Likewise.
18203 (dump_integer_part): Likewise.
18204 (expand_pow_as_sqrts): Likewise.
18205 (gimple_expand_builtin_pow): Use above to attempt to expand
18206 pow as series of square roots. Removed now unused variables.
18208 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18210 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18211 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18212 Remove *p0 and *p1 arguments. Rewrite function.
18213 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18214 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18215 alpha_emit_set_long_const.
18216 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18217 (alpha_output_mi_thunk_osf): Ditto.
18218 * config/alpha/alpha.md (movti): Do not check operands[1]
18221 2015-05-13 Richard Biener <rguenther@suse.de>
18223 PR tree-optimization/66129
18224 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18226 (vect_schedule_slp_instance): Fix typo.
18228 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18230 * common.opt (fdump-internal-locations): New option.
18231 * input.c: Include diagnostic-core.h.
18232 (get_end_location): New function.
18233 (write_digit): New function.
18234 (write_digit_row): New function.
18235 (dump_location_range): New function.
18236 (dump_labelled_location_range): New function.
18237 (dump_location_info): New function.
18238 * input.h (dump_location_info): New prototype.
18239 * toplev.c (compile_file): Handle flag_dump_locations.
18241 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18243 * gimple-expr.h (is_gimple_constant): Reorder.
18244 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18246 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18248 * combine.c (simplify_set): When generating a CC set, if the
18249 source already is in the correct mode, do not wrap it in a
18250 compare. Simplify the rest of that code.
18252 2015-05-13 Richard Biener <rguenther@suse.de>
18254 PR tree-optimization/66123
18255 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18258 2015-05-13 Richard Biener <rguenther@suse.de>
18260 PR middle-end/66110
18261 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18263 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18265 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18267 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18268 * aclocal.m4: Regenerated with automake-1.11.6.
18270 2015-05-13 Tom de Vries <tom@codesourcery.com>
18272 PR tree-optimization/66010
18273 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18274 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18275 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18276 and rval based on do_deref.
18278 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18281 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18282 link time constants into adress expressions and therefore set
18285 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18288 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18289 Use SWI248 iterator instead of SWI.
18290 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18291 Use eq_attr "alternative" "0" instead of match_test in
18292 length_immediate attribute computation.
18293 (*mulvhi4, *mulvhi4_1): New define_insns.
18296 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18297 SIGNED to get precision of non-negative value.
18299 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18302 * function.c (diddle_return_value_1): Process bounds first.
18303 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18306 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18308 PR rtl-optimization/64616
18309 * loop-invariant.c (can_move_invariant_reg): New.
18310 (move_invariant_reg): Call above new function to decide whether
18311 instruction can just be moved, skipping creation of temporary
18314 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18316 PR target/pr66047.c
18317 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18318 with implied regparm is called from -mno-sse function.
18319 (init_cumulative_args): Output error if ix86_function_sseregparm
18320 return -1 and SSE register would be needed.
18321 (function_arg_advance_32): Likewise.
18322 (function_arg_32): Likewise.
18323 * i386.h (ix86_args): Add decl field.
18325 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18328 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18329 inlines across optimization boundary.
18331 2015-05-12 Jason Merrill <jason@redhat.com>
18333 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18334 string literal and macro name.
18336 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18338 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18339 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18340 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18342 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18344 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18345 (-Wmisleading-indentation): New option.
18346 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18348 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18350 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18351 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18352 (alpha_extract_integer): Ditto.
18353 (alpha_legitimate_constant_p): Ditto.
18354 (alpha_split_tmode_pair): Ditto.
18355 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18356 (alpha_expand_mov): Ditto.
18357 (print_operand): Remove handling of 'H' modifier.
18358 <case 'm'>: Remove CONST_DOUBLE handling.
18359 (summarize_insn): Handle CONST_WIDE_INT.
18360 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18362 (movti): Handle CONST_WIDE_INT.
18363 * config/alpha/constraints.md ('H'): Remove constraint definition.
18364 ('G'): Do not match MODE_FLOAT class.
18365 * config/alpha/predicates.md (const0_operand): Also match
18367 (non_add_const_operand): Ditto.
18368 (non_zero_const_operand): Ditto.
18369 (some_operand): Ditto.
18370 (input_operand): Ditto. Handle CONST_WIDE_INT.
18371 (and_operand): Do not match const_double.
18372 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18374 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18377 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18378 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18379 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18380 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18381 is_mm_seq_cst, is_mm_sync): New accessor functions.
18382 * builtins.c (expand_builtin_sync_operation,
18383 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18384 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18385 (get_memmodel, expand_builtin_atomic_compare_exchange,
18386 expand_builtin_atomic_load, expand_builtin_atomic_store,
18387 expand_builtin_atomic_clear): Use new accessor routines.
18388 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18389 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18390 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18391 MEMMODEL_SYNC_ACQUIRE.
18392 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18393 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18394 expand_atomic_store): Use new accessors.
18395 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18396 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18397 final enum to use MEMMODEL_LAST.
18398 * c-family/c-common.c: Use new accessor for memmodel_base.
18399 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18401 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18402 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18403 mem_thread_fence, *dmb): Likewise.
18404 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18405 alpha_split_compare_and_swap_12): Likewise.
18406 * config/arm/arm.c (arm_expand_compare_and_swap,
18407 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18408 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18409 atomic_loaddi): Likewise.
18410 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18412 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18413 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18415 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18416 atomic_store<mode>, atomic_compare_and_swap<mode>,
18417 atomic_exchange<mode>): Use new accessors.
18418 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18419 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18420 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18421 rs6000_post_atomic_barrier): Add new cases.
18422 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18423 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18424 (atomic_load<mode>): Add new cases and use new accessors.
18425 (store_quadpti): Add new cases.
18426 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18428 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18429 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18432 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18434 * ipa-devirt.c (type_with_linkage_p): New function.
18435 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18437 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18438 (can_be_name_hashed_p): Simplify.
18439 (hash_odr_name): Check that type has linkage before checking if it is
18441 (types_same_for_odr): Likewise.
18442 (odr_name_hasher::equal): Likewise.
18443 (odr_subtypes_equivalent_p): Likewise.
18444 (warn_types_mismatch): Likewise.
18445 (get_odr_type): Likewise.
18446 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18447 * ipa-utils.h (odr_type_p): Move offline.
18448 * tree.c (need_assembler_name_p): Fix handling of types
18450 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18452 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18454 * timevar.c (timevar_enable): Delete in favor of...
18455 (g_timer): New global.
18456 (struct timevar_def): Move to timevar.h inside class timer.
18457 (struct timevar_stack_def): Likewise.
18458 (timevars): Delete global in favor of field "m_timevars" within
18459 class timer in timevar.h
18460 (stack): Likewise, in favor of field "m_stack".
18461 (unused_stack_instances): Likewise, in favor of field
18462 "m_unused_stack_instances".
18463 (start_time): Likewise, in favor of field "m_start_time".
18464 (get_time): Eliminate check for timevar_enable.
18465 (timer::timer): New function, built from part of timevar_init.
18466 (timevar_init): Rewrite idempotency test from using
18467 "timevar_enable" bool to using dynamic allocation of "g_timer".
18468 Move rest of implementation into timer's constructor.
18469 (timevar_push_1): Rename to...
18470 (timer::push): ...this, adding "m_" prefixes to variables that
18471 are now fields of timer.
18472 (timevar_pop_1): Likewise, rename to...
18473 (timer::pop): ...this, and add "m_" prefixes.
18474 (timevar_start): Replace test for "timevar_enable" with one for
18475 "g_timer", and move bulk of implementation to...
18476 (timer::start): ...here, adding "m_" prefixes.
18477 (timevar_stop): Likewise, from here...
18478 (timer::stop): ...to here.
18479 (timevar_cond_start): Likewise, from here...
18480 (timer::cond_start): ...to here.
18481 (timevar_cond_stop): Likewise, from here...
18482 (timer::cond_stop): ...to here.
18483 (validate_phases): Rename to...
18484 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18485 locals "total" and "tv" const.
18486 (timevar_print): Rename to...
18487 (timer::print): ...this, and add "m_" prefixes. Make locals
18488 "total" and "tv" const. Eliminate test for timevar_enable.
18489 * timevar.h (timevar_enable): Eliminate.
18490 (g_timer): New declaration.
18491 (timevar_push_1): Eliminate.
18492 (timevar_pop_1): Eliminate.
18493 (timevar_print): Eliminate.
18494 (class timer): New class.
18495 (timevar_push): Rewrite to use g_timer.
18496 (timevar_pop): Likewise.
18497 * toplev.c (toplev::~toplev): Likewise.
18499 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18501 * arm-protos.h (arm_sched_autopref): Delete.
18502 (tune_params): Re-organize, use enums for flag values.
18503 (FUSE_OPS): New macro.
18504 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18505 (ARM_PREFETCH_BENEFICIAL): Likewise.
18506 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18507 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18508 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18509 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18510 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18511 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18512 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18513 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18515 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18516 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18517 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18519 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18521 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18524 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18525 Sandra Loosemore <sandra@codesourcery.com>
18527 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18529 (REG_CLASS_NAMES): Add "IJMP_REGS".
18530 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18531 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18532 use new "c" register constraint.
18533 * config/nios2/constraint.md (c): New register constraint
18534 corresponding to IJMP_REGS.
18536 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18538 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18539 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18540 define_splits): Delete, revamp, transmogrify into ...
18541 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18542 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18543 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18546 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18548 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18549 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18551 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18553 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18554 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18555 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18556 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18557 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18558 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18559 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18560 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18561 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18562 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18563 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18564 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18565 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18566 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18567 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18568 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18569 and 30 corresponding splitters): Delete.
18571 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18573 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18576 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18578 * combine.c (recog_for_combine_1): New function, factored out
18579 from recog_for_combine.
18580 (change_zero_ext): New function.
18581 (recog_for_combine): If recog fails, try again with the pattern
18582 modified by change_zero_ext; if that still fails, restore the
18585 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18587 * combine.c (get_undo_marker): New function.
18588 (undo_to_marker): New function, largely factored out from ...
18589 (undo_all): ... this. Adjust.
18591 2015-05-12 Richard Biener <rguenther@suse.de>
18593 PR tree-optimization/66101
18594 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18595 fixup if we turn a loop exit edge to a fallthru edge.
18597 2015-05-12 Richard Biener <rguenther@suse.de>
18599 PR tree-optimization/37021
18600 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18601 (SLP_TREE_TWO_OPERATORS): New define.
18602 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18603 SLP_TREE_TWO_OPERATORS.
18604 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18606 (vect_build_slp_tree): Adjust.
18607 (vect_analyze_slp_cost_1): Likewise.
18608 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18609 emitting two vector stmts and mixing the results.
18611 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18613 * call.c (print_z_candidates): Remove dead code.
18615 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18617 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18618 and zEC12_simple_fp.
18619 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18622 2015-05-12 Tom de Vries <tom@codesourcery.com>
18624 PR tree-optimization/66010
18625 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18627 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18628 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18629 va_lists are passed, and remove corresponding handling.
18630 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18631 do_deref argument to ifn_va_arg.
18632 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18635 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18638 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18639 REG before taking its REGNO.
18641 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18643 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18644 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18645 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18646 present to get more accurate information about the number of sign bit
18647 copies and non zero bits.
18649 2015-05-12 Richard Biener <rguenther@suse.de>
18651 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18652 do not allow unrolling.
18654 2015-05-11 Richard Henderson <rth@redhat.com>
18656 * config/i386/i386-modes.def (CCP): New.
18657 * config/i386/i386.c (put_condition_code): Handle it.
18658 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18660 2015-05-11 Richard Henderson <rth@redhat.com>
18662 * target.def (md_asm_clobbers): Replace with...
18663 (md_asm_adjust): this.
18664 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18665 (TARGET_MD_ASM_ADJUST): New.
18666 * tm.texi: Rebuild.
18667 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18668 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18669 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18671 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18672 constraints instead of lists of outputs and inputs.
18673 (expand_asm_stmt): Save and restore input_location around the
18674 body of the function. Move asm data into vectors instead of
18675 building tree lists. Generate cleanup sequences as needed,
18676 rather than waiting til the end. Use new md_asm_adjust hook.
18678 * config/vxworks.c: Include vec.h before target.h.
18679 * gimple.c: Likewise.
18680 * incpath.c: Likewise.
18681 * mode-switching.c: Likewise.
18683 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18684 (cris_md_asm_adjust): this.
18685 (TARGET_MD_ASM_CLOBBERS): Remove.
18686 (TARGET_MD_ASM_ADJUST): New.
18687 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18688 (ix86_md_asm_adjust): this.
18689 (TARGET_MD_ASM_CLOBBERS): Remove.
18690 (TARGET_MD_ASM_ADJUST): New.
18691 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18692 (mn10300_md_asm_adjust): this.
18693 (TARGET_MD_ASM_CLOBBERS): Remove.
18694 (TARGET_MD_ASM_ADJUST): New.
18695 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18696 (rs6000_md_asm_adjust): this.
18697 (TARGET_MD_ASM_CLOBBERS): Remove.
18698 (TARGET_MD_ASM_ADJUST): New.
18699 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18700 (visium_md_asm_adjust): this.
18701 (TARGET_MD_ASM_CLOBBERS): Remove.
18702 (TARGET_MD_ASM_ADJUST): New.
18704 2015-05-11 Richard Henderson <rth@redhat.com>
18706 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18707 if noutputs is zero.
18708 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18710 * cfgexpand.c (expand_asm_operands): Merge into...
18711 (expand_asm_stmt): ... here.
18713 * cfgexpand.c (expand_asm_operands): Don't call
18714 resolve_asm_operand_names.
18715 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18717 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18719 * dwarf2out.c (gen_member_die): Sanity check that we access
18720 TYPE_MAIN_VARIANT for TYPE_METHODS.
18721 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18722 checking TYPE_METHODS.
18723 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18725 (build_distinct_type_copy): Clear TYPE_METHODS.
18726 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18727 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18728 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18730 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18732 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18733 (emit_pattern_before_setloc): Likewise.
18735 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18737 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18738 for define_peephole2s.
18739 (get_peephole2_pattern): New function.
18740 (main): Use it. Call validate_pattern.
18742 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18744 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18745 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18746 (Last callee saved reg is different for AVR_TINY architecture)
18748 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18750 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18751 when looking for memory references.
18753 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18756 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18757 via function pointers.
18759 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18761 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18762 indirect call by forcing address into a pseudo with -fno-plt.
18763 * common.opt (flag_plt): New option.
18764 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18765 ([-fno-plt]): Document.
18767 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18770 * config/rs6000/option-defaults.h: Add space between string literal
18773 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18775 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18776 accross ARM targets.
18778 2015-05-11 Christian Bruel <christian.bruel@st.com>
18780 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18781 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18783 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18785 PR rtl-optimization/66076
18786 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18787 Don't grow the heap array if it is already big enough from a
18788 previous iteration.
18790 2015-05-11 Christian Bruel <christian.bruel@st.com>
18792 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18793 (is_called_in_ARM_mode): Remove.
18794 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18795 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18796 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18797 arm_declare_function_name.
18799 2015-05-11 Christian Bruel <christian.bruel@st.com>
18801 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18802 (arm_option_params_internal); New function.
18803 (arm_option_check_internal): New function.
18804 (arm_option_override_internal): New function.
18805 (thumb_code, thumb1_code): Remove.
18806 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18807 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18808 (thumb_code, thumb1_code): Remove.
18809 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18811 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18813 * config/alpha/alpha.c (alpha_emit_set_const_1)
18814 (alpha_emit_set_long_const, alpha_extract_integer)
18815 (alpha_legitimate_constant_p, alpha_split_const_mov)
18816 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18817 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18818 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18820 * config/alpha/predicates.md (mode_mask_operand): Do not match
18822 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18823 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18824 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18825 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18826 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18828 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18831 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18832 default_binds_local_p_2.
18833 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18834 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18836 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18838 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18840 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18842 Patch by Richard Biener
18843 * coverage.c (coverage_obj_init): Delay building of type variant
18844 until the type is finished.
18846 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18848 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18849 mismatch between C and C++ type; compoare correctly ARG_TYPES
18850 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18851 (odr_types_equivalent_p): Fix wording of warning about attributes;
18852 it is OK to match prototype and non-prototype.
18854 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18856 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18857 TYPE_ARG_TYPES list.
18858 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18859 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18861 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18863 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18864 * tree.h (is_lang_specific): Constify.
18866 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18868 PR tree-optimization/64454
18869 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18872 2015-05-08 Jason Merrill <jason@redhat.com>
18874 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18875 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18876 config/darwin.h, config/darwin9.h, config/elfos.h,
18877 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18878 config/microblaze/microblaze.h, config/mips/mips.h,
18879 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18880 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18881 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18882 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18883 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18884 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18885 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18886 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18887 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18888 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18889 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18890 between string literal and macro name.
18892 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18894 * jump.c: Change argument types to rtx_insn *.
18897 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18899 * lra-constraints.c: Change argument type to rtx_insn *.
18901 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18903 * df-problems.c: Change argument type to rtx_insn *.
18905 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18907 * combine.c: Change argument type to rtx_insn *.
18909 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18912 * rtlanal.c: Change argument type to rtx_insn *.
18914 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18916 * sched-deps.c: Change argument types to rtx_insn *.
18917 * sched-int.h: Adjust.
18919 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18921 * dwarf2cfi.c: Change argument type to rtx_insn *.
18923 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18925 * ira.c (decrease_live_ranges_number): Changetype of local
18926 variable to rtx_insn *.
18927 * recog.c: Change argument types to rtx_insn *.
18930 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18932 * reorg.c: Change argument types to rtx_insn *.
18934 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18936 * ira-color.c: Change argument types to rtx_insn *.
18937 * lra-eliminations.c: Likewise.
18940 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18942 * gcse.c: Change argument types to rtx_insn *.
18944 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18946 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
18948 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18950 * emit-rtl.c (emit_debug_insn_before): Change argument type to
18954 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18956 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
18959 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18961 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
18964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18966 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
18969 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18971 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18974 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18976 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18980 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18982 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18986 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18988 * except.c (can_nonlocal_goto): Change type of argument to
18992 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18994 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18997 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18999 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19000 * cfgrtl.c (can_delete_label_p): Adjust.
19003 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19005 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19007 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19009 * except.c (make_reg_eh_region_note): Change argument to
19011 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19012 * except.h: Adjust.
19014 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19016 * mode-switching.c (commit_mode_sets): Change type of local
19017 variable from rtx to rtx_insn *.
19019 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19021 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19022 Add ^ to grep command.
19023 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19024 arg to last gimple_simplify declaration. Add missing gimple_build
19025 declaration for built-in function case with four tree args.
19027 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19028 Szabolcs Nagy <szabolcs.nagy@arm.com>
19030 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19031 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19032 (GNU_USER_DYNAMIC_LINKERN32): Update.
19034 2015-05-08 Richard Biener <rguenther@suse.de>
19036 PR tree-optimization/66036
19037 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19038 Handle strided group loads.
19039 (vect_verify_datarefs_alignment): Likewise.
19040 (vect_enhance_data_refs_alignment): Likewise.
19041 (vect_analyze_group_access): Likewise.
19042 (vect_analyze_data_ref_access): Likewise.
19043 (vect_analyze_data_ref_accesses): Likewise.
19044 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19045 (vectorizable_load): Likewise.
19047 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19049 * config/rs6000/rs6000.md: Require operand inequality in one
19052 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19053 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19055 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19057 * config/rx/rx.md (movdi, movdf): Likewise.
19058 Likewise for define_peephole2s.
19060 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19062 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19063 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19064 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19065 vtst_u64): Rewrite using gcc vector extensions.
19067 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19069 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19070 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19072 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19074 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19076 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19078 * config/glibc-stdint.h (OPTION_MUSL): Define.
19079 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19080 Change the definition based on OPTION_MUSL for 64 bit targets.
19081 * config/linux.h (OPTION_MUSL): Redefine.
19082 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19083 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19084 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19086 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19087 Szabolcs Nagy <szabolcs.nagy@arm.com>
19089 * config.gcc (LIBC_MUSL): New tm_defines macro.
19090 * config/linux.h (OPTION_MUSL): Define.
19091 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19092 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19093 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19094 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19095 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19096 * config/linux.opt (mmusl): New option.
19097 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19098 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19099 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19100 * configure: Regenerate.
19102 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19103 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19106 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19107 * config/i386/knetbsd-gnu64.h: New file.
19109 2015-05-08 Marek Polacek <polacek@redhat.com>
19112 * doc/invoke.texi: Document -Woverride-init-side-effects.
19114 2015-05-07 Marek Polacek <polacek@redhat.com>
19117 * doc/invoke.texi: Document -Wshift-negative-value.
19119 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19121 * gcov-tool.c (do_merge): Refactore to remove int ret.
19122 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19123 !type == FUNC to type != FUNC.
19124 * reload.h (struct target_reload): Changee to type of
19125 x_spill_indirect_levels from bool to unsigned char.
19127 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19129 * rtl.h (always_void_p): New function.
19130 * gengenrtl.c (always_void_p): Likewise.
19131 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19132 with code foo are always VOIDmode.
19133 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19134 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19135 compare-elim.c, config/aarch64/aarch64.c,
19136 config/aarch64/aarch64.md, config/alpha/alpha.c,
19137 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19138 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19139 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19140 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19141 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19142 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19143 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19144 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19145 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19146 config/ia64/vect.md, config/iq2000/iq2000.c,
19147 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19148 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19149 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19150 config/mep/mep.c, config/microblaze/microblaze.c,
19151 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19152 config/mn10300/mn10300.c, config/msp430/msp430.c,
19153 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19154 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19155 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19156 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19157 config/rs6000/rs6000.md, config/rs6000/vector.md,
19158 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19159 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19160 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19161 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19162 config/spu/spu.md, config/stormy16/stormy16.c,
19163 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19164 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19165 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19166 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19167 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19168 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19169 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19170 var-tracking.c: Update calls accordingly.
19172 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19175 PR middle-end/54303
19176 * varasm.c (function_mergeable_rodata_prefix): New function.
19177 (mergeable_string_section): Use it.
19178 (mergeable_constant_section): Use it.
19180 2015-05-07 Jeff Law <law@redhat.com>
19183 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19184 simplifier to narrow arithmetic.
19185 * generic-match-head.c: (types_match, single_use): New functions.
19186 * gimple-match-head.c: (types_match, single_use): New functions.
19188 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19190 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19193 2015-05-07 Richard Biener <rguenther@suse.de>
19195 PR tree-optimization/66002
19196 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19199 2015-05-07 Marek Polacek <polacek@redhat.com>
19200 Martin Uecker <uecker@eecs.berkeley.edu>
19202 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19203 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19204 into SANITIZE_NONDEFAULT.
19205 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19207 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19210 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19211 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19212 (alpha_override_options): Move align_loops, align_jumps and
19213 align_functions handling into alpha_override_options_after_change.
19215 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19216 Chris Jones <chrisj@nvidia.com>
19217 Joshua Conner <jconner@nvidia.com>
19219 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19220 linking of crtfastmath.o.
19221 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19223 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19225 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19226 (cstore<mode>4_unsigned_imm): New expander.
19227 (cstore<mode>4): Remove empty constraint strings. Use the new
19230 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19233 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19236 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19238 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19240 2015-05-06 Alan Modra <amodra@gmail.com>
19243 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19244 (UNSPEC_NOP): Define.
19245 (reload_vsx_from_gpr<mode>): Add missing DONE.
19246 (reload_gpr_from_vsx<mode>): Likewise.
19247 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19248 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19250 2015-05-06 Christian Bruel <christian.bruel@st.com>
19253 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19254 align_jumps, align_functions into aarch64_override_options_after_change.
19256 2015-05-06 Richard Biener <rguenther@suse.de>
19258 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19259 vect_transform_slp_perm_load to check if we support a permutation
19260 for basic-block vectorization.
19262 2015-05-06 Nick Clifton <nickc@redhat.com>
19264 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19265 used, even if it is not being used as a frame pointer.
19267 2015-05-05 Jason Merrill <jason@redhat.com>
19269 * dwarf2out.c (gen_member_die): Don't emit anything for an
19270 anonymous class constructor.
19272 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19274 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19275 that it reflects the block structure.
19276 (afdo_propagate_edge): Likewise.
19277 (afdo_calculate_branch_prob): Likewise.
19278 (afdo_annotate_cfg): Likewise.
19279 * cfgcleanup.c (equal_different_set_p): Likewise.
19280 (try_crossjump_to_edge): Likewise.
19281 * cgraph.c (cgraph_node::verify_node): Likewise.
19282 * cgraphunit.c (expand_all_functions): Likewise.
19283 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19284 (exact_dependency_1): Likewise.
19285 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19286 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19287 * gensupport.c (process_define_subst): Likewise.
19288 * lto-wrapper.c (merge_and_complain): Likewise.
19289 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19290 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19291 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19292 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19293 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19294 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19295 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19296 * tree-vrp.c (vrp_finalize): Likewise.
19297 * tree.c (variably_modified_type_p): Likewise.
19299 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19301 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19302 on darwin12 and later.
19303 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19304 file to pass -rdynamic on darwin12 and later.
19305 * config/darwin.opt (rdynamic): Add.
19307 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19309 * doc/extend.texi (C Extensions): Update menu for moved Variable
19310 Attributes and Type Attributes sections.
19312 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19315 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19316 if rep_8byte stringop strategy was specified for 32-bit target.
19318 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19321 * config/i386/i386.md (vector convert to float spltiter): Check for
19322 xmm16+, when splitting scalar float conversion.
19323 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19325 2015-05-05 Nick Clifton <nickc@redhat.com>
19327 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19328 * config/msp430/msp430.c (msp430_override_options): Complain if
19329 -mcode-region or -mdata-region is used on a non MSP430X.
19330 (msp430_section_attr): New function. Checks lower, upper and
19332 (msp430_attribute_table): Add lower, upper and either.
19333 (gen_prefix): New function. Generates a prefix for a section
19335 (msp430_select_section): New function - handles the choice of
19336 section for an object. Takes into account memory region
19337 attributes and options.
19338 (msp430_function_section): Use gen_prefix.
19339 (TARGET_SECTION_TYPE_FLAGS): Define.
19340 (msp430_section_type_flags): New function.
19341 (TARGET_ASM_UNIQUE_SECTION): Define.
19342 (msp430_unique_section): New function.
19343 (msp430_output_aligned_decl_common): New function.
19344 (msp430_do_not_relax_short_jumps): New function.
19345 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19347 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19348 * config/msp430/msp430-protos.h
19349 (msp430_do_not_relax_short_jumps): New prototype.
19350 (msp430_output_aligned_decl_common): New prototype.
19351 * config/msp430/msp430.md (length): New attribute.
19352 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19353 then use a long code sequence for short jumps.
19354 * config/msp430/msp430.opt (mcode-region): New.
19355 (mdata-region): New.
19356 * doc/invoke.texi: Document new options.
19357 * doc/extend.texi: Document new attributes.
19359 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19361 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19362 (tune_params): Add field branch_costs.
19363 (aarch64_branch_cost): Declare.
19364 * gcc/config/aarch64.c (generic_branch_cost): New.
19365 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19366 (cortexa53_tunings): Likewise.
19367 (cortexa57_tunings): Likewise.
19368 (thunderx_tunings): Likewise.
19369 (xgene1_tunings): Likewise.
19370 (aarch64_branch_cost): Define.
19371 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19373 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19375 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19376 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19377 * config/i386/i386.md: Ditto.
19378 * config/i386/winnt.c: Ditto.
19380 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19382 * doc/extend.texi (__atomic Builtins): Move implementation details
19383 to the end of the description, rewrite opening paragraphs, state
19384 difference with __sync builtins, state C11/C++11 assumptions,
19385 weaken itemized descriptions, add explanation of memory model
19386 behaviour, expand description of compare-exchange, simplify text.
19388 2015-05-05 Renlin Li <renlin.li@arm.com>
19390 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19392 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19394 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19395 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19396 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19397 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19398 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19399 * configure: Regenerate.
19400 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19401 * doc/install.texi (aarch64*-*-*): Document new
19402 --enable-fix-cortex-a53-843419 option.
19403 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19404 and -mno-fix-cortex-a53-843419 options.
19406 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19409 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19411 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19413 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19414 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19415 compatibility problems.
19417 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19419 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19421 (cbranchsi4_reg): New.
19422 * config/microblaze/microblaze.c
19423 (microblaze_expand_conditional_branch_reg): New.
19424 * config/microblaze/microblaze-protos.h
19425 (microblaze_expand_conditional_branch_reg): New prototype.
19427 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19429 * config/microblaze/microblaze.md (peephole2): New.
19431 2015-05-04 Jeff Law <law@redhat.com>
19434 2015-05-04 Jeff Law <law@redhat.com>
19436 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19437 simplifier to narrow arithmetic.
19438 * generic-match-head.c: (types_match, single_use): New functions.
19439 * gimple-match-head.c: (types_match, single_use): New functions.
19441 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19444 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19445 (split_branches): Likewise.
19447 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19449 * common.opt (fdelete-null-pointer-checks): Init to -1.
19450 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19451 override flag_delete_null_pointer_checks default.
19452 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19453 behavior re address zero. Better document target-specific behavior.
19454 (-fisolate-errneous-paths-dereference): Mention relationship to
19455 -fdelete-null-pointer-checks.
19457 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19459 PR tree-optimization/65984
19460 * ubsan.c: Include tree-cfg.h.
19461 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19462 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19464 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19466 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19467 to CONST_DOUBLE_P predicate.
19468 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19469 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19470 allow only operands that satisfy standard_sse_constant_p predicate.
19471 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19472 to CONST_DOUBLE_P predicate.
19474 2015-05-04 Jeff Law <law@redhat.com>
19476 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19477 simplifier to narrow arithmetic.
19478 * generic-match-head.c: (types_match, single_use): New functions.
19479 * gimple-match-head.c: (types_match, single_use): New functions.
19481 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19483 * config/arm/arm.c: Restore bootstrap.
19485 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19487 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19488 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19489 as CONST_WIDE_INT, not CONST_DOUBLE.
19490 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19491 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19492 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19493 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19494 (ix86_build_signbit_mask): Rewrite using wide ints.
19495 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19496 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19497 (find_constant): Ditto.
19498 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19499 using gen_int_mode.
19500 * config/i386/predicates.md (x86_64_immediate_operand)
19501 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19502 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19503 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19504 (const0_operand): Also match const_wide_int.
19505 (constm1_operand): Ditto.
19506 (const1_operand): Ditto.
19508 2015-05-04 Richard Biener <rguenther@suse.de>
19510 PR tree-optimization/65965
19511 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19512 store groups at gaps.
19514 2015-05-04 Richard Biener <rguenther@suse.de>
19516 PR tree-optimization/65935
19517 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19518 then make sure to apply that swapping to the IL.
19520 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19522 * Makefile.in (PATCHLEVEL_c): New variable.
19523 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19524 expand the same way as if DEVPHASE_c was non-empty.
19526 2015-05-04 Kai Tietz <ktietz@redhat.com>
19529 * lto-wrapper.c (run_gcc): Open filename
19532 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19534 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19535 sections up in file, to immediately after the Function Attributes
19538 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19540 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19542 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19544 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19545 (insert_partition_copy_on_edge): Adjust.
19546 (insert_rtx_to_part_on_edge): Likewise.
19547 (insert_part_to_rtx_on_edge): Likewise.
19549 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19551 * function.c (set_return_jump_label): Change type of argument to
19553 * function.h (set_return_jump_label): Adjust.
19555 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19557 * reload.h (struct reg_equivs_t): Change type of init to
19559 * ira.c (fix_reg_equiv_init): Adjust.
19560 * reload1.c (eliminate_regs_1): Likewise.
19561 (init_eliminable_invariants): Likewise.
19563 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19565 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19566 * cselib.h (fp_setter_insn): Adjust.
19568 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19570 * recog.c (struct validate_replace_src_data): Change type of
19571 insn field to rtx_insn *.
19572 (validate_replace_src_group): Change type of argument to rtx_insn *.
19573 * recog.h (validate_replace_src_group): Adjust.
19575 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19577 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19578 * sched-deps.c: Likewise.
19579 * sched-int.h: Likewise.
19580 * sched-rgn.c: Likewise.
19581 * sel-sched.c: Likewise.
19583 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19586 * config/i386/i386.c: Change the type of some arguments to
19588 * config/arm/arm.c: Likewise.
19590 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19592 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19594 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19596 * regcprop.c (kill_autoinc_value): Change type of argument to
19599 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19601 * genrecog.c (print_subroutine): Adjust.
19602 * recog.c (get_bool_attr_mask_uncached): Likewise.
19603 * recog.h (struct recog_data_d): Change the type of insn to
19606 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19608 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19610 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19612 * df-problems.c (df_set_note): Change type of argument to
19615 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19617 * builtins.c (expand_builtin_trap): Change type of local
19618 variable to rtx_insn *.
19619 (add_sched_insns_for_speculation): Likewise.
19620 (ix86_emit_save_regs): Likewise.
19621 (get_scratch_register_on_entry): Likewise.
19622 (ix86_emit_restore_reg_using_pop): Likewise.
19623 (ix86_emit_leave): Likewise.
19624 (ix86_emit_restore_regs_using_mov): Likewise.
19625 (ix86_expand_epilogue): Likewise.
19627 (rl78_alloc_physical_registers_umul): Likewise.
19628 * cselib.c (discard_useless_locs): Likewise.
19629 (cselib_invalidate_regno): Likewise.
19630 (cselib_invalidate_mem): Likewise.
19631 * function.c (expand_function_start): Likewise.
19632 (emit_use_return_register_into_block): Likewise.
19633 * gcse.c: Likewise.
19634 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19635 * ifcvt.c (noce_get_alt_condition): Likewise.
19636 * loop-doloop.c (doloop_condition_get): Likewise.
19637 * lra-constraints.c (inherit_in_ebb): Likewise.
19638 * modulo-sched.c (sms_schedule_by_order): Likewise.
19639 * recog.c (next_insn_tests_no_inequality): Likewise.
19640 * reorg.c (emit_delay_sequence): Likewise.
19641 (update_reg_dead_notes): Likewise.
19642 (fix_reg_dead_note): Likewise.
19643 (fill_slots_from_thread): Likewise.
19644 (delete_computation): Likewise.
19646 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19648 * doc/extend.texi (Variable Attributes): Add menu and proper
19649 @nodes to subsections. Move Microsoft Windows attributes to
19650 their own subsection.
19651 (Type Attributes): Reorganize introduction to remove duplicate
19652 list of attributes. Add menu and proper @nodes to subsections.
19653 Alphabetize the main table of common attributes.
19655 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19657 * match.pd: New simplification patterns.
19658 (x + (x & 1)) -> ((x + 1) & ~1)
19659 (x & ~(x & y)) -> ((x & ~y))
19660 (x | ~(x | y)) -> ((x | ~y))
19662 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19664 * target.def (attribute_table): Mention that struct attribute_spec
19665 is defined in tree-core.h rather than tree.h
19666 * doc/tm.texi: Regenerate.
19668 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19670 * genrecog.c (test): Rename to rtx_test. Update rest of file
19673 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19675 PR translation/65959
19676 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19678 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19680 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19681 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19682 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19683 Return value depending on target.
19684 (generic_tunings): Initialize new target settings.
19685 (cortexa53_tunings): Likewise.
19686 (cortexa57_tunings): Likewise.
19687 (thunderx_tunings): Likewise.
19688 (xgene1_tunings): Likewise.
19690 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19692 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19693 Make Cortex-A53 shift costs more accurate.
19695 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19697 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19700 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19702 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19703 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19705 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19707 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19708 Add cost of op0 in the compare-with-fpzero case.
19710 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19712 * builtins.c (fold_builtin_1): Remove spurious second
19714 * cgraph.h (symtab_node::get_availability): Likewise.
19715 * opts.c (common_handle_option): Remove spurious second semicolon.
19716 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19717 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19719 2015-04-30 Caroline Tice <cmtice@google.com>
19721 PR gcov-profile/65929
19722 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19723 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19724 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19725 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19726 * doc/tm.texi: Regenerate.
19727 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19728 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19729 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19730 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19732 2015-04-30 Marek Polacek <polacek@redhat.com>
19734 * varasm.c (handle_cache_entry): Fix logic.
19736 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19738 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19739 (*extrsi5_insn_uxtw_alt): Likewise.
19740 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19741 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19744 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19746 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19749 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19751 * config/aarch64/aarch64.md
19752 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19753 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19754 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19755 appropriately. Handle alternative EON form.
19757 2015-04-30 Renlin Li <renlin.li@arm.com>
19759 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19760 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19762 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19765 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19766 -fstrict-aliasing boundaries.
19768 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19770 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19771 and [SU]MNEGL patterns.
19773 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19775 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19776 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19777 combined arithmetic-shift ops. Properly handle all shift and extend
19778 operations that can occur in combination with PLUS/MINUS.
19779 Rename maybe_fma to compound_p.
19780 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19781 arithmetic and shift operations.
19783 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19785 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19786 rather than arith_shift cost when costing ADD/MINUS of an
19789 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19792 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19795 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19797 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19798 are for the same position.
19800 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19802 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19804 (vectorize_loops): Use it.
19806 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19808 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19809 for aggregate types.
19810 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19811 type to be non_ODR.
19812 * tree.c (need_assembler_name_p): Compute mangled name for
19813 non-fundamental types and integer types.
19815 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19817 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19819 * expr.c (expand_expr_real_2): Likewise.
19821 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19823 * tree.c (build_common_builtin_nodes): Do not build
19824 __builtin_alloca_with_align as equivalent of library alloca.
19826 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19828 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19829 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19831 * tree.c: Include print-tree.h and ipa-utils.h
19832 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19833 (free_lang_data_in_cgraph): Call verify_type.
19834 (verify_type_variant): New function.
19835 (verify_type): New function.
19836 * tree.h (verify_type): Declare.
19838 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19840 * config/mips/mips-cpus.def: (mips4): Change default processor
19841 from PROCESSOR_R8000 to PROCESSOR_R10000.
19843 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19845 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19846 la/jalr instead of jal.
19848 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19851 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19852 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19853 (setcc+movzbl peephole2): Check also clobbered reg.
19854 (setcc+andl peephole2): Ditto.
19856 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19859 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19860 (main): Set it depending on "-foffload-abi=[...]".
19861 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19864 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19867 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19868 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19869 Flip lane index back at assembly time for bigendian.
19871 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19873 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19874 * gimplify.c (gimplify_omp_workshare): Use it.
19876 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19878 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19879 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19881 * genrecog.c: Rewrite most of the code except for the third page.
19883 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19885 * inchash.h, inchash.c: Include bconfig.h for build objects.
19886 * Makefile.in (build/inchash.o): New rule.
19888 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19891 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19892 number in type attribute expression.
19894 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19896 * loop-iv.c (canon_condition): Generalize to all types of integer
19899 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19901 * gimple-walk.c: Prune duplicate or unneeded includes.
19902 (walk_gimple_asm): Only call parse_input_constraint or
19903 parse_output_constraint if their findings are used.
19904 Honour parse_input_constraint and parse_output_constraint
19907 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19909 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19911 2015-04-29 Tom de Vries <tom@codesourcery.com>
19913 PR tree-optimization/65893
19914 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19917 2015-04-29 Richard Biener <rguenther@suse.de>
19919 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19920 compute GROUP_SIZE for basic-block SLP.
19921 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19922 take into account gaps.
19923 (vect_get_mask_element): Properly reject references to previous
19925 (vect_transform_slp_perm_load): Likewise.
19927 2015-04-29 Christian Bruel <christian.bruel@st.com>
19930 * config/i386/i386.c (ix86_default_align): New function.
19931 (ix86_override_options_after_change): Call ix86_default_align.
19932 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
19933 (ix86_override_options_after_change): New function.
19935 2015-04-28 Jeff Law <law@redhat.com>
19937 * tree-ssa-dom.c (record_equality); Fix comment typos.
19939 2015-04-28 Tom de Vries <tom@codesourcery.com>
19941 PR tree-optimization/65887
19942 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
19944 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
19946 * doc/extend.texi (Declaring Attributes of Functions): Split into
19947 subsections by target. Alphabetize the table of common attributes.
19948 Rewrite some of the introductory text to reflect the new structure.
19949 Update some cross-references to point to the new subsections.
19950 (Attribute Syntax): Put paragraph about "__" naming here. Remove
19951 duplicate copies in the discussion of function, label, and type
19954 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
19957 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
19959 2015-04-28 Jason Merrill <jason@redhat.com>
19962 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
19963 (finalize_type_size): Respect TYPE_USER_ALIGN.
19964 (layout_type) [ARRAY_TYPE]: Likewise.
19966 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
19968 * config/arm/arm.md (*arm_movt): Fix type attribute.
19969 (*cmpsi_shiftsi): Likewise.
19970 (*cmpsi_shiftsi_swp): Likewise.
19971 (*movsicc_insn): Likewise.
19972 (*cond_move): Likewise.
19973 (*if_plus_move): Likewise.
19974 (*if_move_plus): Likewise.
19975 (*if_arith_move): Likewise.
19976 (*if_move_arith): Likewise.
19977 (*if_shift_move): Likewise.
19978 (*if_move_shift): Likewise.
19979 (*arm_movtas_ze): Likewise.
19980 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19981 redundancy and type attribute.
19982 (*thumb2_movsi_insn): Fix type attribute.
19983 (*thumb2_addsi_short): Likewise.
19984 (thumb2_addsi3_compare0): Likewise.
19985 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19986 attributes accordingly.
19988 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19991 * function.c (pad_to_arg_alignment): Add parentheses.
19993 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
19995 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19996 libgcc/config/frv/elf-lib.h.
19998 2015-04-28 Tom de Vries <tom@codesourcery.com>
20000 * tree-call-cdce.c: Fix example in header comment.
20002 2015-04-28 Richard Biener <rguenther@suse.de>
20004 PR tree-optimization/62283
20005 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20006 fails fatally and we are vectorizing a basic-block simply
20007 cause the child to be constructed piecewise.
20008 (vect_analyze_slp_cost_1): Adjust.
20009 (vect_detect_hybrid_slp_stmts): Likewise.
20010 (vect_bb_slp_scalar_cost): Likewise.
20011 (vect_get_constant_vectors): For piecewise constructed
20012 constants place them after the last def.
20013 (vect_get_slp_defs): Adjust.
20014 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20015 externals for basic-block vectorization.
20017 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20020 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20022 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20023 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20024 (AARCH64_TUNE_FMA_STEERING): Likewise.
20025 * config/aarch64/aarch64-cores.def: Set
20026 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20027 FMUL/FMADD instructions.
20028 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20029 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20030 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20031 * config/aarch64/cortex-a57-fma-steering.h: New file.
20032 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20034 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20036 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20038 2015-04-28 Richard Biener <rguenther@suse.de>
20040 PR tree-optimization/65851
20041 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20042 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20043 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20044 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20045 (ccp_visit_phi_node): Adjust.
20046 (evaluate_stmt): For simplifications to SSA names return its
20047 lattice value if that isn't VARYING. Return immediately when
20048 simplified to a constant.
20049 (visit_assignment): Adjust.
20050 (ccp_visit_stmt): Likewise.
20052 2015-04-28 Tom de Vries <tom@codesourcery.com>
20054 PR tree-optimization/65818
20055 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20058 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20060 * calls.c (save_fixed_argument_area): Don't check
20061 ARGS_GROW_DOWNWARD with the preprocessor.
20062 (restore_fixed_argument_area): Likewise.
20063 (mem_overlaps_already_clobbered_arg_p): Likewise.
20064 (check_sibcall_argument_overlap): Likewise.
20065 (expand_call): Likewise.
20066 (emit_library_call_value_1): Likewise.
20067 (store_one_arg): Likewise.
20068 * function.c (assign_parms): Likewise.
20069 (locate_and_pad_parm): Likewise.
20070 (pad_to_arg_alignment): Likewise.
20071 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20073 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20075 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20076 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20077 * calls.c (save_fixed_argument_area): Don't chekc if
20078 ARGS_GROW_DOWNWARD is defined.
20079 (restore_fixed_argument_area): Likewise.
20080 (mem_overlaps_already_clobbered_arg_p): Likewise.
20081 (check_sibcall_argument_overlap): Likewise.
20082 (expand_call): Likewise.
20083 (emit_library_call_value_1): Likewise.
20084 (store_one_arg): Likewise.
20085 * function.c (assign_parms): Likewise.
20086 (locate_and_pad_parm): Likewise.
20087 (pad_to_arg_alignment): Likewise.
20088 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20090 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20092 * defaults.h (gen_epilogue): New function.
20093 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20095 * cfgrtl.c (cfg_layout_finalize): Likewise.
20096 * df-scan.c: Likewise.
20097 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20098 (reposition_prologue_and_epilogue_notes): Likewise.
20099 * reorg.c (find_end_label): Likewise.
20100 * toplev.c: Likewise.
20102 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20104 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20105 * defaults.h (gen_simple_return): New function.
20106 (gen_simple_return): Likewise.
20107 (HAVE_return): Add default definition to false.
20108 (HAVE_simple_return): Likewise.
20109 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20110 HAVE_return and HAVE_simple_return are defined.
20111 * function.c (gen_return_pattern): Likewise.
20112 (convert_jumps_to_returns): Likewise.
20113 (thread_prologue_and_epilogue_insns): Likewise.
20114 * reorg.c (find_end_label): Likewise.
20115 (dbr_schedule): Likewise.
20116 * shrink-wrap.c: Likewise.
20117 * shrink-wrap.h: Likewise.
20119 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20121 * defaults.h (EPILOGUE_USES): Add default definition of false.
20122 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20123 * resource.c (init_resource_info): Likewise.
20125 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20127 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20129 * dwarf2out.c (field_byte_offset): REmove check if
20130 PCC_BITFIELD_TYPE_MATTERS is defined.
20131 * stor-layout.c (layout_decl): Likewise.
20132 (update_alignment_for_field): Likewise.
20133 (place_field): Likewise.
20135 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20137 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20139 * regrename.c (check_new_reg_p): Remove check if
20140 HARD_REGNO_RENAME_OK is defined.
20141 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20143 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20145 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20146 * cse.c (fold_rtx): Likewise.
20147 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20148 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20149 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20150 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20151 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20152 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20153 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20154 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20155 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20156 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20158 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20159 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20160 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20161 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20162 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20163 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20164 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20165 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20166 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20167 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20168 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20169 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20170 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20171 * doc/tm.texi: Regenerate.
20172 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20173 either true or false.
20175 2015-04-27 Jeff Law <law@redhat.com>
20177 PR tree-optimization/65217
20178 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20179 of them has a single use, make sure it is the LHS of the implied
20182 2015-04-28 Alan Modra <amodra@gmail.com>
20185 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20186 (offsettable_ok_by_alignment): Use minimum of decl and toc
20187 pointer alignment. Replace dead code with assertion.
20188 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20189 case if size exceeds toc pointer alignment.
20190 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20191 (rs6000_emit_move): Likewise.
20192 * configure.ac: Add linker toc pointer alignment check.
20193 * configure: Regenerate.
20194 * config.in: Regenerate.
20196 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20198 * config.gcc: Add h8300-*-linux.
20199 * config/h8300/linux.h: New.
20200 * config/h8300/t-linux: New.
20201 * config/h8300/h8300.c (h8300_option_override): Normal mode
20202 is not supported for h8300-*-linux.
20203 (h8300_file_start): Target priority change.
20204 (get_shift_alg): Likewise.
20205 (h8300_shift_need_scratch_p): Likewise.
20206 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20207 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20209 2015-04-27 Caroline Tice <cmtice@google.com>
20211 * final.c (final_scan_insn): Output cold_function_name as function
20213 * varasm.c (cold_function_name): Make global.
20214 (assemble_start_function): Re-set cold_function_name.
20215 (assemble_end_function): Output cold partition size.
20216 * varasm.h (cold_function_name): Declare global.
20218 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20220 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20221 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20223 (*movxi_internal_avx512f): Ditto.
20224 (define_split): Check for xmm16+, when splitting scalar float_extend.
20225 (*extendsfdf2_mixed): Use "v" constraint.
20226 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20227 (*truncdfsf_fast_sse): Use "v" constraint.
20228 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20229 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20230 (define_peephole2): Check for xmm16+, when converting scalar
20232 (define_peephole2): Check for xmm16+, when converting scalar
20234 (*fop_<mode>_comm_mixed): Use "v" constraint.
20235 (*fop_<mode>_comm_sse): Ditto.
20236 (*fop_<mode>_1_mixed): Ditto.
20237 (*sqrt<mode>2_sse): Ditto.
20238 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20240 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20242 * combine.c (simplify_if_then_else): Use std::swap instead
20243 of manually swapping.
20244 (known_cond): Likewise.
20245 (simplify_comparison): Likewise.
20247 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20250 * config/rs6000/htm.md: Remove all define_expands.
20251 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20252 UNSPECV_HTM_TABORTWCI): Remove.
20253 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20254 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20255 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20256 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20257 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20258 tabortwci_internal): Remove define_insns.
20259 (tabort<wd>c, tabort<wd>ci): New define_insns.
20260 (tabort): Use gpc_reg_operand.
20261 (tcheck): Remove operand.
20262 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20263 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20265 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20266 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20267 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20268 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20269 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20270 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20271 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20272 (tcheck): Remove builtin argument.
20273 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20275 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20276 tabortdc and tabortdci builtins when not in 64-bit mode.
20277 Modify code to handle the loss of the HTM define_expands.
20278 Emit code to copy the CR register to TARGET.
20279 (htm_init_builtins): Modify code to handle the loss of the HTM
20281 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20282 (RS6000_BTC_64BIT): Likewise.
20283 (RS6000_BTC_CR): New macro.
20284 * doc/extend.texi: Update documentation for htm builtins.
20286 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20288 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20289 of manually swapping.
20290 (simplify_associative_operation): Likewise.
20291 (simplify_binary_operation): Likewise.
20292 (simplify_plus_minus): Likewise.
20293 (simplify_relational_operation): Likewise.
20294 (simplify_ternary_operation): Likewise.
20296 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20298 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20299 (xs_hi_nonmemory_operand): Remove error.
20300 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20301 general_operand rather than xs_hi_general_operand.
20303 2015-04-27 Richard Biener <rguenther@suse.de>
20305 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20306 (record_equivalences_from_stmt): Valueize rhs.
20307 (record_equality): Canonicalize x and y order via
20308 tree_swap_operands_p. Do not swap operands for same loop depth.
20310 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20314 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20315 Add hint how to use own spec file.
20317 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20319 PR tree-optimization/65875
20320 * tree-vrp.c (update_value_range): If in is_new case setting
20321 old_vr to VR_VARYING, also set new_vr to it. Remove
20322 old_vr->type == VR_VARYING test.
20323 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20324 SSA_PROP_INTERESTING if update_value_range returned true,
20325 but new range is VR_VARYING.
20327 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20329 * combine.c (sign_extend_short_imm): New.
20330 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20331 extension of src short immediate.
20332 (reg_nonzero_bits_for_combine): Likewise for tem.
20334 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20336 * stor-layout.c (self_referential_component_ref_p): New predicate.
20337 (copy_self_referential_tree_r): Use it.
20338 (self_referential_size): Punt for simple operations directly involving
20339 self-referential component references.
20340 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20342 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20344 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20346 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20348 * vec.h (vec): Make splice arguments const. Update definitions
20351 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20353 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20356 2015-04-26 Tom de Vries <tom@codesourcery.com>
20358 PR tree-optimization/65826
20359 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20361 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20363 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20364 (*madd3<mode>): Ditto.
20365 (*msub4<mode>): Ditto.
20366 (*msub3<mode>): Ditto.
20367 (*nmadd4<mode>): Ditto.
20368 (*nmadd3<mode>): Ditto.
20369 (*nmadd4<mode>_fastmath): Ditto.
20370 (*nmadd3<mode>_fastmath): Ditto.
20371 (*nmsub4<mode>): Ditto.
20372 (*nmsub3<mode>): Ditto.
20373 (*nmsub4<mode>_fastmath): Ditto.
20374 (*nmsub3<mode>_fastmath): Ditto.
20376 2015-04-24 Jason Merrill <jason@redhat.com>
20379 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20380 down when building TYPE_CANONICAL.
20381 (build_pointer_type_for_mode): Likewise.
20383 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20385 * genrecog.c (validate_pattern): Check matching constraint refers
20386 to a lower numbered operand.
20388 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20391 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20392 save to independent variables use the Save attribute. This will
20393 allow these options to be modified with the #pragma/attribute
20395 (-mallow-movmisalign): Likewise.
20396 (-mallow-df-permute): Likewise.
20397 (-msched-groups): Likewise.
20398 (-malways-hint): Likewise.
20399 (-malign-branch-targets): Likewise.
20400 (-mvectorize-builtins): Likewise.
20401 (-msave-toc-indirect): Likewise.
20403 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20404 can be set via the #pragma/attribute target support.
20405 (rs6000_opt_vars): Likewise.
20406 (rs6000_inner_target_options): If VSX was set, also set
20407 -mno-avoid-indexed-addresses.
20409 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20411 * config/arm/iterators.md (shiftable_ops): Rename to...
20412 (SHIFTABLE_OPS): ... This. Update use in comments.
20413 (ior_xor): Rename to...
20414 (IOR_XOR): ... This.
20415 (vqh_ops): Rename to...
20416 (VQH_OPS): ... This.
20417 (vqhs_ops): Rename to...
20418 (VQHS_OPS): ... This.
20419 (rshifts): Rename to...
20420 (RSHIFTS): ... This.
20421 (returns): Rename to...
20422 (RETURNS): ... This.
20423 * config/arm/arm.md: Update uses of the above.
20424 * config/arm/neon.md: Likewise.
20426 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20428 * config.host (case ${host}): Add aarch64*-*-linux case.
20429 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20430 fields to all the cores.
20431 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20432 Add MCPU_MTUNE_NATIVE_SPECS.
20433 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20434 field to all extensions.
20435 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20436 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20437 Adjust definition of AARCH64_OPT_EXTENSION.
20438 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20439 (MCPU_MTUNE_NATIVE_SPECS): Define.
20440 * config/aarch64/driver-aarch64.c: New file.
20441 * config/aarch64/x-arch64: New file.
20442 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20445 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20446 Wei Mi <wmi@google.com>
20448 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20449 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20450 (ix86_operands_ok_for_move_multiple): Ditto.
20451 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20452 (movlpd/movhpd to movupd peephole2): Ditto.
20454 2015-04-24 Marek Polacek <polacek@redhat.com>
20457 * input.h (from_macro_expansion_at): Define.
20460 * doc/invoke.texi: Update description of -Wlogical-op.
20462 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20464 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20465 ternary operator in fprintf and harmonize spacing.
20467 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20469 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20470 Mark operand1 commutative.
20472 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20474 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20475 input operands in memory.
20476 (*vec_concatv2si_sse4_1): Ditto.
20477 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20478 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20480 (vec_extract_hi_v32hi): Ditto.
20481 (vec_extract_hi_v64hi): Ditto.
20482 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20484 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20485 Steven Bosscher <steven@gcc.gnu.org>
20487 PR rtl-optimization/34503
20488 * cprop.c (cprop_reg_p): New.
20489 (hash_scan_set): Use above function to check if register can be
20491 (find_avail_set): Return up to two sets, one whose source is a
20492 register and one whose source is a constant. Sets are returned in an
20493 array passed as parameter rather than as a return value.
20494 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20495 sets returned by find_avail_set, starting with the one whose source is
20496 a constant. Use cprop_reg_p to check if register can be propagated.
20497 (do_local_cprop): Use cprop_reg_p to check if register can be
20499 (implicit_set_cond_p): Likewise.
20501 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20503 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20504 (sem_function::equals): IGNORED_NODES parameter is now unused;
20505 update call of equals_private.
20506 (sem_function::equals_private): Do not call equals_wpa; skip
20507 gimple body matching if there is no body.
20508 (sem_function::init): Add logic to hash tthunk info.
20509 (sem_function::parse): Also parse thunks.
20510 * ipa-icf.h (equals_private): Update declaration.
20512 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20514 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20515 asterisk from name so this can be generated directly.
20516 (*altivec_stvx_<mode>_internal): Likewise.
20517 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20518 that this is never called during or after reload/lra.
20519 (rs6000_frame_related): Remove split_reg
20520 argument and logic that references it.
20521 (emit_frame_save): Remove last parameter from call to
20522 rs6000_frame_related.
20523 (rs6000_emit_prologue): Remove last parameter from eight calls to
20524 rs6000_frame_related. Force generation of stvx instruction for
20525 Altivec register saves. Remove split_reg handling, which is no
20527 (rs6000_emit_epilogue): Force generation of lvx instruction for
20528 Altivec register restores.
20530 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20532 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20533 match category changes in ISA 2.07B.
20535 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20537 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20539 (cmp_op, cmp_type): New code attributes.
20540 (NEON_VCMP, NEON_VACMP): New int iterators.
20541 (cmp_op_unsp): New int attribute.
20542 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20543 (neon_vceq<mode>): Delete.
20544 (neon_vc<cmp_op><mode>_insn): New pattern.
20545 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20546 (neon_vcgeu<mode>): Delete.
20547 (neon_vcle<mode>): Likewise.
20548 (neon_vclt<mode>: Likewise.
20549 (neon_vcage<mode>): Likewise.
20550 (neon_vcagt<mode>): Likewise.
20551 (neon_vca<cmp_op><mode>): New define_expand.
20552 (neon_vca<cmp_op><mode>_insn): New pattern.
20553 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20555 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20557 * tree.h (attribute_value_equal): Declare.
20558 * tree.c (attribute_value_equal): Export.
20560 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20562 * ipa-icf.c (sem_item::compare_attributes): New function.
20563 (sem_item::compare_referenced_symbol_properties): Compare variable
20565 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20566 (sem_function::param_used_p): New function.
20567 (sem_function::equals_wpa): Fix attribute comparsion; match
20568 parameter type codes; do not compare paremter flags when
20569 they are not used; compare edge flags; compare indirect calls.
20570 (sem_item::update_hash_by_addr_refs): Hash reference type.
20571 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20572 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20573 reference use type.
20574 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20575 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20577 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20579 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20581 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20582 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20583 (sem_item::compare_referenced_symbol_properties): New.
20584 (sem_item::hash_referenced_symbol_properties): New.
20585 (sem_item::compare_cgraph_references): Rename to ...
20586 (sem_item::compare_symbol_references): ... this one; use
20587 compare_referenced_symbol_properties.
20588 (sem_function::equals_wpa): Do not compare
20589 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20590 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20591 (sem_item::update_hash_by_addr_refs): Call
20592 hash_referenced_symbol_properties.
20593 (sem_item::update_hash_by_local_refs): Cleanup.
20594 (sem_function::merge): Do not mix up symbol properties.
20595 (sem_variable::equals_wpa): Use compare_symbol_references.
20596 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20597 (sem_item::hash_referenced_symbol_properties): New.
20598 (sem_item::compare_symbol_references): New.
20599 (sem_item::compare_cgraph_references): Remove.
20601 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20604 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20605 Emit size of local.
20607 2015-04-23 Nick Clifton <nickc@redhat.com>
20609 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20610 ATTRIBUTE_UNUSED to x parameter.
20611 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20613 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20615 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20616 TARGET_CRYPTO to TARGET_P8_VECTOR>
20617 (crypto_vpermxor_<mode>): Likewise.
20618 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20619 (BU_CRYPTO_3A): Likewise.
20620 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20621 (BU_CRYPTO_OVERLOAD_3A): New #define.
20622 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20623 (VPMSUMH): Likewise.
20624 (VPMSUMW): Likewise.
20625 (VPMSUMD): Likewise.
20626 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20627 (VPERMXOR_V4SI): Likewise.
20628 (VPERMXOR_V8HI): Likewise.
20629 (VPERMXOR_V16QI): Likewise.
20630 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20631 BU_CRYPTO_OVERLOAD_2A.
20632 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20633 BU_CRYPTO_OVERLOAD_3A.
20634 * config/rs6000/rs6000.opt (mcrypto): Change description of
20637 2015-04-23 Richard Biener <rguenther@suse.de>
20639 * passes.def: Remove copy propagation passes run directly after CCP.
20640 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20642 (ccp_visit_phi_node): Rework to handle first executable edge
20645 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20647 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20648 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20649 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20650 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20651 (thumb_legimitimize_reload_address): Remove.
20652 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20654 (thumb_legimitimize_reload_address): Remove.
20656 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20658 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20660 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20662 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20664 (store_multiple): Likewise.
20666 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20668 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20669 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20670 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20671 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20672 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20673 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20674 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20675 Specify issue_rate value.
20676 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20677 large switch statement.
20678 (arm_marvell_pj4_tune): New struct.
20679 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20682 2015-04-23 Richard Biener <rguenther@suse.de>
20684 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20685 (vect_find_last_store_in_slp_instance): Rename to ...
20686 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20687 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20688 and vec_construct for external defs when estimating prologue cost.
20689 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20690 Compute costs here only when vectorizing loops.
20691 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20692 have been determined.
20693 (vect_schedule_slp_instance): Simplify vectorized code placement
20694 and prepare for in-BB external defs.
20695 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20696 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20697 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20699 (vect_model_load_cost): Likewise.
20700 (vectorizable_store): Instead add it here.
20701 (vectorizable_load): Likewise.
20702 (vect_is_simple_use): Dump def type textually.
20704 2015-04-23 Richard Biener <rguenther@suse.de>
20706 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20707 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20708 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20709 instead of get_eh_region_from_lp_number.
20710 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20713 2015-04-23 Anton Blanchard <anton@samba.org>
20715 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20716 need for -mprofile-kernel to save LR to stack.
20718 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20720 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20722 (insn_is_swappable_p): Return 1 for a convert from double to
20723 single precision when all of its uses are splats of BE element
20726 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20728 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20730 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20733 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20734 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20735 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20737 (rs6000_builtin_mask_for_load): Return 0 for targets with
20738 efficient unaligned VSX accesses so that the vectorizer will use
20739 direct unaligned loads.
20740 (rs6000_builtin_support_vector_misalignment): Always return true
20741 for targets with efficient unaligned VSX accesses.
20742 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20743 stores on targets with efficient unaligned VSX accesses is almost
20744 always the same as the cost of an aligned load or store, so model
20746 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20747 unaligned vectors if we have efficient unaligned VSX accesses.
20748 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20749 undocumented option.
20751 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20754 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20756 * config.gcc (LIBC_MUSL): New tm_defines macro.
20757 * config/linux.h (OPTION_MUSL): Define.
20758 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20759 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20760 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20762 * config/linux.opt (mmusl): New option.
20763 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20764 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20766 * configure: Regenerate.
20768 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20770 * config.gcc (LIBC_MUSL): New tm_defines macro.
20771 * config/linux.h (OPTION_MUSL): Define.
20772 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20773 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20774 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20776 * config/linux.opt (mmusl): New option.
20777 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20778 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20780 * configure: Regenerate.
20782 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20784 * doc/invoke.texi (-fsanitize-sections): Update description.
20785 * asan.c (set_sanitized_sections): Parse incoming arg.
20786 (section_sanitized_p): Support wildcards.
20788 2015-04-22 Tom de Vries <tom@codesourcery.com>
20790 PR tree-optimization/65823
20791 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20792 equality between ap_copy and ap.
20794 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20797 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20799 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20802 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20804 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20807 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20808 remove already contained t-files.
20810 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20812 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20813 Remove unneeded forward declarations.
20814 (suitable_for_tail_call_opt_p): Commentary typo fix.
20816 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20818 * varasm.c (emit_bss): Remove redundant guard.
20820 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20822 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20824 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20826 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20828 2015-04-22 Hale Wang <hale.wang@arm.com>
20829 Terry Guo <terry.guo@arm.com>
20831 PR rtl-optimization/64818
20832 * combine.c (can_combine_p): Don't combine user-specified
20833 register if it is in an asm input.
20835 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20838 * passes.def (early_optimizations): Add pass_dse.
20840 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20842 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20843 * reorg.c (redundant_insn): Remove ifdef
20844 INSN_REFERENCES_ARE_DELAYED.
20845 * resource.c (mark_referenced_resources): Likewise.
20847 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20849 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20850 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20851 * resource.c (mark_set_resources): Likewise.
20853 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20855 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20856 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20857 (flow_find_head_matching_sequence): Likewise.
20858 (try_head_merge_bb): Likewise.
20859 * combine.c (can_combine_p): Likewise.
20860 (try_combine): Likewise.
20861 (distribute_notes): Likewise.
20862 * df-problems.c (can_move_insns_across): Likewise.
20863 * final.c (final): Likewise.
20864 * gcse.c (insert_insn_end_basic_block): Likewise.
20865 * ira.c (find_moveable_pseudos): Likewise.
20866 * reorg.c (try_merge_delay_insns): Likewise.
20867 (fill_simple_delay_slots): Likewise.
20868 (fill_slots_from_thread): Likewise.
20869 * sched-deps.c (sched_analyze_2): Likewise.
20871 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20873 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20874 PIC_OFFSET_TABLE_REGNUM.
20876 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20878 * alias.c (init_alias_target): Remove ifdef
20879 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20880 * df-scan.c (df_insn_refs_collect): Likewise.
20881 (df_get_regular_block_artificial_uses): Likewise.
20882 (df_get_eh_block_artificial_uses): Likewise.
20883 (df_get_entry_block_def_set): Likewise.
20884 (df_get_exit_block_use_set): Likewise.
20885 * emit-rtl.c (gen_rtx_REG): Likewise.
20886 * ira.c (ira_setup_eliminable_regset): Likewise.
20887 * reginfo.c (init_reg_sets_1): Likewise.
20888 * regrename.c (rename_chains): Likewise.
20889 * reload1.c (reload): Likewise.
20890 (eliminate_regs_in_insn): Likewise.
20891 * resource.c (mark_referenced_resources): Likewise.
20892 (init_resource_info): Likewise.
20894 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20896 * defaults.h (MASK_RETURN_ADDR): New definition.
20897 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20900 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20902 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20903 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20904 RETURN_ADDR_OFFSET.
20905 (expand_builtin_frob_return_addr): Likewise.
20907 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20909 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20910 (try_redirect_by_replacing_jump): Likewise.
20911 (rtl_tidy_fallthru_edge): Likewise.
20912 * combine.c (insn_a_feeds_b): Likewise.
20913 (find_split_point): Likewise.
20914 (simplify_set): Likewise.
20915 * cprop.c (cprop_jump): Likewise.
20916 * cse.c (cse_extended_basic_block): Likewise.
20917 * df-problems.c (can_move_insns_across): Likewise.
20918 * function.c (emit_use_return_register_into_block): Likewise.
20919 * haifa-sched.c (sched_init): Likewise.
20920 * ira.c (find_moveable_pseudos): Likewise.
20921 * loop-invariant.c (find_invariant_insn): Likewise.
20922 * lra-constraints.c (curr_insn_transform): Likewise.
20923 * postreload.c (reload_combine_recognize_const_pattern):
20925 * reload.c (find_reloads): Likewise.
20926 * reorg.c (delete_scheduled_jump): Likewise.
20927 (steal_delay_list_from_target): Likewise.
20928 (steal_delay_list_from_fallthrough): Likewise.
20929 (redundant_insn): Likewise.
20930 (fill_simple_delay_slots): Likewise.
20931 (fill_slots_from_thread): Likewise.
20932 (delete_computation): Likewise.
20933 * sched-rgn.c (add_branch_dependences): Likewise.
20935 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20937 * genconfig.c (main): Always define HAVE_cc0.
20938 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
20940 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20941 (flow_find_head_matching_sequence): Likewise.
20942 (try_head_merge_bb): Likewise.
20943 * cfgrtl.c (rtl_merge_blocks): Likewise.
20944 (try_redirect_by_replacing_jump): Likewise.
20945 (rtl_tidy_fallthru_edge): Likewise.
20946 * combine.c (do_SUBST_MODE): Likewise.
20947 (insn_a_feeds_b): Likewise.
20948 (combine_instructions): Likewise.
20949 (can_combine_p): Likewise.
20950 (try_combine): Likewise.
20951 (find_split_point): Likewise.
20953 (simplify_set): Likewise.
20954 (distribute_notes): Likewise.
20955 * cprop.c (cprop_jump): Likewise.
20956 * cse.c (cse_extended_basic_block): Likewise.
20957 * df-problems.c (can_move_insns_across): Likewise.
20958 * final.c (final): Likewise.
20959 (final_scan_insn): Likewise.
20960 * function.c (emit_use_return_register_into_block): Likewise.
20961 * gcse.c (insert_insn_end_basic_block): Likewise.
20962 * haifa-sched.c (sched_init): Likewise.
20963 * ira.c (find_moveable_pseudos): Likewise.
20964 * loop-invariant.c (find_invariant_insn): Likewise.
20965 * lra-constraints.c (curr_insn_transform): Likewise.
20966 * optabs.c (prepare_cmp_insn): Likewise.
20967 * postreload.c (reload_combine_recognize_const_pattern):
20969 * reload.c (find_reloads): Likewise.
20970 (find_reloads_address_1): Likewise.
20971 * reorg.c (delete_scheduled_jump): Likewise.
20972 (steal_delay_list_from_target): Likewise.
20973 (steal_delay_list_from_fallthrough): Likewise.
20974 (try_merge_delay_insns): Likewise.
20975 (redundant_insn): Likewise.
20976 (fill_simple_delay_slots): Likewise.
20977 (fill_slots_from_thread): Likewise.
20978 (delete_computation): Likewise.
20979 (relax_delay_slots): Likewise.
20980 * sched-deps.c (sched_analyze_2): Likewise.
20981 * sched-rgn.c (add_branch_dependences): Likewise.
20983 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20985 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20986 that is trivially ded on non cc0 targets.
20987 (simplify_set): Likewise.
20988 (mark_used_regs_combine): Likewise.
20989 * cse.c (new_basic_block): Likewise.
20990 (fold_rtx): Likewise.
20991 (cse_insn): Likewise.
20992 (cse_extended_basic_block): Likewise.
20993 (set_live_p): Likewise.
20994 * rtlanal.c (canonicalize_condition): Likewise.
20995 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20997 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20999 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21000 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21001 * final.c: Likewise.
21002 * jump.c: Likewise.
21003 * recog.c: Likewise.
21004 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21005 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21007 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21009 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21010 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21011 * builtins.c (expand_builtin): Remove check if
21012 EH_RETURN_DATA_REGNO is defined.
21013 * df-scan.c (df_bb_refs_collect): Likewise.
21014 (df_get_exit_block_use_set): Likewise.
21015 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21016 * ira-lives.c (process_bb_node_lives): Likewise.
21017 * lra-lives.c (process_bb_lives): Likewise.
21019 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21021 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21022 FIRST_PSEUDO_REG): New.
21023 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21024 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21025 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21026 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21027 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21028 (FIRST_INT_REG): New.
21029 (LAST_INT_REG): New.
21030 (FIRST_*_REG): Define using *_REG.
21031 (LAST_*_REG): Ditto.
21032 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21033 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21034 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21036 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21038 * expmed.c: (synth_mult): Only assume overlapping
21039 shift with previous steps in alg_sub_t_m2 case.
21041 2015-04-21 Richard Biener <rguenther@suse.de>
21043 PR tree-optimization/65650
21044 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21045 transitions involving copies.
21046 (set_lattice_value): Adjust for copy lattice state.
21047 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21048 if that doesn't dominate the merge point.
21049 (bit_value_unop): Adjust what we treat as varying mask.
21050 (bit_value_binop): Likewise.
21051 (bit_value_assume_aligned): Likewise.
21052 (evaluate_stmt): When we simplified to a SSA name record a copy
21053 instead of dropping to varying.
21054 (visit_assignment): Simplify.
21056 * gimple-match.h (gimple_simplify): Add another callback.
21057 * gimple-fold.c (fold_stmt_1): Adjust caller.
21058 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21059 for the 2nd callback.
21060 * gimple-match-head.c (gimple_simplify): Add a callback that is
21061 used to valueize the stmt operands and use it that way.
21063 2015-04-21 Richard Biener <rguenther@suse.de>
21065 PR tree-optimization/65788
21066 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21068 2015-04-21 Richard Biener <rguenther@suse.de>
21070 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21071 vec_construct cost by vec_stmt_cost.
21073 2015-04-21 Richard Biener <rguenther@suse.de>
21075 * cfghooks.h (create_basic_block): Replace with two overloads
21076 for RTL and GIMPLE.
21077 (split_block): Likewise.
21078 * cfghooks.c (split_block): Rename to ...
21079 (split_block_1): ... this.
21080 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21081 (split_block_after_labels): Call split_block_1.
21082 (create_basic_block): Rename to ...
21083 (create_basic_block_1): ... this.
21084 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21085 (create_empty_bb): Call create_basic_block_1.
21086 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21087 split_block_after_labels.
21088 * omp-low.c (expand_parallel_call): Likewise.
21089 (expand_omp_target): Likewise.
21090 (simd_clone_adjust): Likewise.
21091 * tree-chkp.c (chkp_get_entry_block): Likewise.
21092 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21093 create_basic_block overload.
21094 (cgraph_node::expand_thunk): Likewise.
21095 * tree-cfg.c (make_blocks): Likewise.
21096 (handle_abnormal_edges): Likewise.
21097 * tree-inline.c (copy_bb): Likewise.
21099 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21101 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21103 (*xor_one_cmplsidi3_ze): Likewise.
21105 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21107 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21108 use df_remove_problem rather than manually removing problems, leaving
21109 holes in df->problems_in_order[].
21111 2015-04-21 Tom de Vries <tom@codesourcery.com>
21113 PR tree-optimization/65802
21114 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21116 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21118 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21120 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21121 at '.'. Assert that there's enough space for everything.
21123 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21125 PR tree-optimization/64950
21127 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21130 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21133 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21135 PR rtl-optimization/64916
21136 * cfgcleanup.c (values_equal_p): New function.
21137 (can_replace_by): Use it.
21139 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21142 * doc/invoke.texi ([-Wnarrowing]): Update.
21144 2015-04-20 Jeff Law <law@redhat.com>
21146 PR tree-optimization/65658
21147 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21148 redundant test for GIMPLE_ASSIGN in last change.
21150 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21152 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21153 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21154 (legitimize_tls_address): Ditto.
21155 (ix86_expand_move): Ditto.
21156 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21157 (ix86_expand_unary_operator): Ditto.
21158 * config/i386/predicates.md (index_register_operand): Ditto.
21160 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21162 * reorg.c (try_merge_delay_insns): Improve correctness checking
21163 for targets with multiple delay slots.
21165 2015-04-20 Jeff Law <law@redhat.com>
21167 PR tree-optimization/65658
21168 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21171 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21173 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21174 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21177 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21180 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21182 2015-04-20 Richard Biener <rguenther@suse.de>
21184 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21185 * gimple-fold.c (gimple_build_valueize): New function.
21186 (gimple_build): Always use gimple_build_valueize as valueize hook.
21188 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21191 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21192 and overwrite variable parts if <= 1/2 the elements are variable.
21194 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21196 PR rtl-optimization/65805
21197 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21198 Don't use difference of offset and previous offset if
21199 update_sp_offset is non-zero.
21200 (eliminate_regs_in_insn): Ditto.
21201 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21202 lra_eliminate_regs_1 call.
21203 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21205 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21207 * hash-table.h: Remove version of hash_table that stored value_type *.
21208 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21209 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21210 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21211 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21212 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21213 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21214 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21215 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21216 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21217 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21218 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21219 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21220 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21221 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21222 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21223 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21225 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21226 Jakub Jelinek <jakub@redhat.com>
21229 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21230 subsequent SH_NONE operand does not overwrite an existing *special
21232 (adjust_extract): Handle case where a vec_extract operation is
21233 wrapped in a PARALLEL.
21235 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21238 * config/i386/i386.c (ix86_binds_local_p): Define only if
21239 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21241 2015-04-17 Jeff Law <law@redhat.com>
21243 PR tree-optimization/47679
21244 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21245 * tree-ssa-scopedtables.c: New file.
21246 * tree-ssa-scopedtables.h: New file.
21247 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21248 (const_and_copies): Change name/type.
21249 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21250 (record_const_or_copy_1): Similarly.
21251 (restore_vars_to_original_value): Similarly.
21252 (pass_dominator::execute): Create and destroy const_and_copies table.
21253 (thread_across_edge): Update passing of const_and_copies.
21254 (record_temporary_equivalence): Use method calls rather than
21255 manipulating const_and_copies directly.
21256 (record_equality, cprop_into_successor_phis): Similarly.
21257 (dom_opt_dom_walker::before_dom_children): Similarly.
21258 (dom_opt_dom_walker::after_dom_children): Similarly.
21259 (eliminate_redundant_computations): Similarly.
21260 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21261 (record_temporary_equivalence): Likewise.
21262 (invalidate_equivalences): Likewise.
21263 (record_temporary_equivalences_from_phis): Update due to type
21264 change of const_and_copies. Use method calls rather than
21265 manipulating the stack directly.
21266 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21267 (thread_through_normal_block, thread_across_edge): Likewise.
21268 (thread_across_edge): Likewise.
21269 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21270 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21272 (identify_jump_threads): Update due to type change of equiv_stack.
21273 (finalize_jump_threads): Delete the equiv_stack when complete.
21275 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21277 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21278 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21279 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21281 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21284 * config.gcc: Exit with a comment when we do not have a major version
21285 number for the FreeBSD target.
21287 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21290 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21291 maybe_allows_mem bitfields.
21292 (maybe_allows_none_start, maybe_allows_none_end,
21293 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21294 maybe_allows_mem_end): New variables.
21295 (compute_maybe_allows): New function.
21296 (add_constraint): Use it to initialize maybe_allows_reg and
21297 maybe_allows_mem fields.
21298 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21299 is_address constraints such that those that allow neither mem nor
21300 reg come first, then those that only allow reg but not mem, then
21301 those that only allow mem but not reg, then the rest.
21302 (write_allows_reg_mem_function): New function.
21303 (write_tm_preds_h): Call it.
21304 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21305 the generated insn_extra_constraint_allows_reg_mem function
21306 instead of always setting *allows_reg = true; *allows_mem = true;
21307 for unknown extra constraints.
21309 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21312 * output.h (default_binds_local_p_3): New.
21313 * varasm.c (default_binds_local_p_3): Make it public. Take an
21314 argument to indicate if common symbol may be local. If common
21315 symbol may be local, treat non-external variable as defined
21317 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21318 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21319 * config/i386/i386.c (ix86_binds_local_p): New.
21320 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21321 ix86_binds_local_p.
21323 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21326 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21327 trying mem_loc_descriptor on XEXP (rtl, 0).
21329 2015-04-17 Martin Liska <mliska@suse.cz>
21331 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21332 Release symbol_compare_collection.
21333 * ipa-reference.c: Add TODO that a vector should be released.
21335 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21338 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21339 to new AVR-LibC file layout (bug #44574).
21340 (*avrlibc_devicelib): Same.
21341 * config/avr/avr-mcus.def: Adjust comments.
21342 * config/avr/avr.opt (nodevicelib): Adjust help.
21344 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21346 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21348 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21351 * gimplify.c (gimplify_init_constructor): Always emit a
21352 side-effecting constructor.
21354 2015-04-17 Tom de Vries <tom@codesourcery.com>
21356 PR tree-optimization/64950
21357 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21358 in cfun->curr_properties.
21359 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21360 if we generate an IFN_VA_ARG.
21361 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21362 function if PROP_gimple_lva is not set in src function.
21364 2015-04-17 Tom de Vries <tom@codesourcery.com>
21365 Michael Matz <matz@suse.de>
21367 PR tree-optimization/64950
21368 * gimple-iterator.c (update_modified_stmts): Remove static.
21369 * gimple-iterator.h (update_modified_stmts): Declare.
21370 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21371 (gimplify_va_arg_internal): New function.
21372 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21373 * gimplify.h (gimplify_va_arg_internal): Declare.
21374 * internal-fn.c (expand_VA_ARG): New unreachable function.
21375 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21376 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21377 (expand_ifn_va_arg): New function.
21378 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21379 (pass_stdarg::execute): Call expand_ifn_va_arg.
21380 (pass_data_lower_vaarg): New pass_data.
21381 (pass_lower_vaarg): New gimple_opt_pass.
21382 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21383 (make_pass_lower_vaarg): New function.
21384 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21385 properties_required field.
21386 * passes.def (all_passes): Add pass_lower_vaarg.
21387 * tree-pass.h (PROP_gimple_lva): Add define.
21388 (make_pass_lower_vaarg): Declare.
21390 2015-04-17 Tom de Vries <tom@codesourcery.com>
21392 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21393 * calls.c (call_expr_flags): Same.
21395 2015-04-17 Tom de Vries <tom@codesourcery.com>
21397 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21398 (pass_stdarg::execute): ... here.
21400 2015-04-17 Tom de Vries <tom@codesourcery.com>
21401 Michael Matz <matz@suse.de>
21403 * tree-cfg.c (make_blocks_1): Factor out of ...
21404 (make_blocks): ... here.
21405 (make_edges_bb): Factor out of ...
21406 (make_edges): ... here.
21407 (gimple_find_sub_bbs): New function.
21408 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21410 2015-04-17 Tom de Vries <tom@codesourcery.com>
21412 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21414 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21416 * asan.c (set_sanitized_sections): New function.
21417 (section_sanitized_p): Ditto.
21418 (asan_protect_global): Optionally sanitize user-defined
21420 * asan.h (set_sanitized_sections): Declare new function.
21421 * common.opt (fsanitize-sections): New option.
21422 * doc/invoke.texi (-fsanitize-sections): Document new option.
21423 * opts-global.c (handle_common_deferred_options): Handle new
21426 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21429 * dwarf2out.c (loc_list_from_tree): Return NULL
21430 for DEBUG_EXPR_DECL.
21432 2015-04-17 Christian Bruel <christian.bruel@st.com>
21434 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21437 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21439 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21440 node itself when computing left conflict subnode size.
21442 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21444 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21445 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21446 *fop_<mode>_1_sse using enabled attribute. Use
21447 register_mixssei387nonimm_operand operand 1 predicate. Change
21448 alternative 3 constraints from "x" to "v".
21450 2015-04-16 Richard Biener <rguenther@suse.de>
21452 PR tree-optimization/65774
21453 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21454 bit-value tracking on.
21456 2015-04-16 Richard Biener <rguenther@suse.de>
21458 PR tree-optimization/64277
21459 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21460 simplify upper bound handling.
21461 (search_for_addr_array): Simplify.
21462 (check_array_bounds): Handle ADDR_EXPRs here.
21463 (check_all_array_refs): Simplify.
21465 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21467 * config/i386/i386.c (print_reg): Rewrite function.
21469 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21471 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21472 Invert the condition.
21474 2015-04-16 Renlin Li <renlin.li@arm.com>
21476 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21477 simplifications for UNSIGNED_FLOAT.
21479 2015-04-16 Nick Clifton <nickc@redhat.com>
21481 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21483 (enum rl78_cpu_type): New.
21484 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21485 (umulhi3_shift_virt): Remove m constraint from operand 1.
21486 (umulqihi3_virt): Likewise.
21487 * config/rl78/rl78.c (rl78_option_override): Add code to process
21488 -mcpu and -mmul options.
21489 (rl78_alloc_physical_registers): Add code to handle divhi and
21490 divsi valloc attributes.
21491 (set_origin): Likewise.
21492 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21493 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21494 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21496 (ASM_SPEC): Pass -mcpu on to assembler.
21497 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21498 (mulqi3_rl78): Likewise.
21499 (mulhi3_g13): Likewise.
21500 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21501 (mulsi3): Likewise.
21502 (mulhi3_g14): Add clobbers of AX and BC.
21503 (mulsi3_g14): Likewise.
21504 (mulsi3_g13): Likewise.
21505 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21506 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21507 * config/rl78/rl78.opt (mmul): Initialise value to
21509 (mcpu): New option.
21510 (m13, m14, mrl78): New option aliases.
21511 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21512 (MULTILIB_DIRNAMES): Add g13 and g14.
21513 * doc/invoke.texi: Document -mcpu and -mmul options.
21515 2015-04-16 Richard Biener <rguenther@suse.de>
21517 * tree-ssa-ccp.c (likely_value): See if we have operands that
21518 are marked as never simulate again and return CONSTANT in this
21520 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21521 not have any operands that will be simulated again as
21522 not being simulated again.
21524 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21526 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21527 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21528 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21530 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21532 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21533 *float<SWI48:mode><MODEF:mode>2_sse.
21534 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21536 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21539 2015-04-15 Tom de Vries <tom@codesourcery.com>
21542 * function.c (push_dummy_function): New function.
21543 (init_dummy_function_start): Use push_dummy_function.
21544 (pop_dummy_function): New function. Factored out of ...
21545 (expand_dummy_function_end): ... here.
21546 * function.h (push_dummy_function, pop_dummy_function): Declare.
21547 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21548 pop_dummy_function.
21549 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21551 2015-04-15 Jeff Law <law@redhat.com>
21553 PR tree-optimization/47679
21554 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21555 need for forward declaration in upcoming changes.
21556 (record_conditions, record_edge_info): Likewise.
21558 PR rtl-optimization/42522
21559 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21560 SIGN_EXTRACT as a whole object rather than simplifying
21563 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21566 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21567 and GIMPLE_PREDICT use break instead of return true. For
21568 GIMPLE_EH_DISPATCH, compare dispatch region.
21570 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21572 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21573 details about the implementation. Make clear preference for
21574 __atomic builtins. Reduce possibility of future change.
21576 2015-04-15 Nick Clifton <nickc@redhat.com>
21578 * config/rx/rx.opt (mallow-string-insns): New option.
21579 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21580 builtin if string instructions are denied.
21581 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21582 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21584 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21585 * config/rx/rx.md (movstr): Enable pattern only if string
21586 instructions are allowed.
21587 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21588 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21589 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21590 (MULTILIB_DIRNAMES): Add no-strings.
21591 * doc/invoke.texi: Document -mno-allow-string-insns.
21593 2015-04-15 Alan Modra <amodra@gmail.com>
21597 PR middle-end/36043
21598 * calls.c (load_register_parameters): Don't load past end of
21599 mem unless suitably aligned.
21601 2015-04-15 Nick Clifton <nickc@redhat.com>
21603 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21604 decrement instruction as being frame related.
21605 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21607 If zero extending a function address enclose the operation in
21609 (rl78_preferred_reload_class): New function.
21610 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21611 * config/rl78/rl78.md: Remove useless constraints in expanders.
21612 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21613 (mulhi3_rl78): Likewise.
21614 (mulhi3_g13): Likewise.
21615 (mulsi3_rl78): Likewise.
21616 (es_addr): Move to before the multiply patterns.
21618 2015-04-15 Alan Modra <amodra@gmail.com>
21620 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21621 and sequence_stack. Add seq.
21622 (seq_stack): Delete.
21623 * function.c (prepare_function_start): Don't access x_last_insn.
21624 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21625 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21626 * emit_rtl.c (start_sequence, push_topmost_sequence,
21627 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21628 sequence accessors.
21629 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21630 remove_insn): Likewise. Simplify.
21631 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21632 and pop_topmost_sequence.
21633 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21635 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21637 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21640 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21643 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21645 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21646 (LEGACY_INT_REGNO_P): Ditto.
21647 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21648 (ANY_MASK_REG_P): Remove.
21649 (BND_REG_P): Rename from ANY_BND_REG_P.
21650 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21651 legacy integer registers. Do not handle MMX_REG_P in a special way.
21652 Merge 64byte and 32byte SSE handling.
21654 2015-04-14 Nick Clifton <nickc@redhat.com>
21656 * expr.c (expand_assignment): Force an address offset computation
21657 into a register before changing its mode.
21658 (expand_expr_real_1): Likewise.
21660 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21662 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21663 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21664 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21665 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21666 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21667 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21668 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21669 and __aarch64_vget_lane_any.
21671 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21673 PR rtl-optimization/65761
21674 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21675 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21677 2015-04-14 Richard Biener <rguenther@suse.de>
21679 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21680 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21682 2015-04-14 Richard Biener <rguenther@suse.de>
21684 PR tree-optimization/65758
21685 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21687 (ccp_lattice_meet): Likewise.
21688 (bit_value_unop): Likewise.
21689 (bit_value_binop): Likewise.
21690 (bit_value_assume_aligned): Likewise.
21692 2015-04-14 Christian Bruel <christian.bruel@st.com>
21694 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21697 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21699 PR tree-optimization/63387
21700 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21701 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21703 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21705 * config/i386/predicates.md (any_QIreg_operand): Rename from
21706 q_regs_operand. Do not process subregs.
21707 (QIreg_operand): Use QI_REGNO_P predicate.
21708 (ext_QIreg_operand): Ditto.
21709 (ext_register_operand): Ditto.
21710 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21711 (AND splitters): Ditto.
21712 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21713 (AND with -256 splitter): Use any_QIreg_operand predicate and
21714 SWI248 mode for operand 0.
21715 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21716 mode for operand 0.
21717 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21719 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21721 * doc/plugins.texi: Rewrite first introductory paragraph.
21723 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21725 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21726 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21728 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21730 * ipa-profie.c (ipa_profile): Check number of parameters
21731 and possible polymorphic call targets before
21734 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21736 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21737 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21739 2015-04-13 Richard Biener <rguenther@suse.de>
21741 PR tree-optimization/65204
21742 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21743 takens for bit-CCP.
21745 2015-04-13 Richard Biener <rguenther@suse.de>
21748 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21749 and cond_not_taken_branch_cost to 4 and 2.
21750 (bdver2_cost): Likewise.
21751 (bdver3_cost): Likewise.
21752 (bdver4_cost): Likewise.
21754 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21756 * hash-table.h (hash_table constructor): Add mem stats.
21757 (alloc_entries): Likewise.
21759 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21761 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21762 * passes.c (execute_one_pass): Only add transform if pass has one.
21764 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21766 * config/i386/i386.c (ix86_option_override_internal): Don't set
21767 -fprefetch-loop-arrays if optimizing for size.
21769 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21770 Gerald Pfeifer <gerald@pfeifer.com>
21772 * doc/contrib.texi (Contributors): Add Martin Jambor and
21775 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21777 * BASE-VER: Set to 6.0.0.
21779 PR tree-optimization/65747
21780 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21781 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21783 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21785 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21786 sentence. Improve grammar.
21788 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21790 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21792 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21795 * ipa-inline-transform.c (speculation_removed): Remove static var.
21796 (check_speculations): New function.
21797 (clone_inlined_nodes): Do not check spculations.
21798 (inline_call): Call check_speculations.
21799 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21800 consider non-invariants.
21802 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21803 Martin Liska <mliska@suse.cz>
21806 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21807 variable can not match.
21808 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21809 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21811 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21813 PR tree-optimization/65735
21814 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21815 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21816 same bb rather than just into the same phi node.
21817 (thread_through_normal_block): Adjust caller.
21819 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21821 * doc/contrib.texi (Contributors): Add Ira Rosen.
21823 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21825 * gcov.c (find_source): Fix miswording in error message.
21826 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21827 (ix86_expand_sse_comi_round): Fix typo in error message.
21829 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21831 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21833 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21835 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21837 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21840 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21841 Print bad_spills_num and insn_pseudos_num.
21843 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21846 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21847 when creating +1 values for SImode.
21849 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21852 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21855 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21856 Iain Sandoe <iain@codesourcery.com>
21859 * configure: Regenerate.
21861 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21864 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21866 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21868 * doc/contrib.texi (Contributors): Add John Marino.
21870 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21872 PR tree-optimization/65709
21873 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21874 TREE_TYPE (TREE_TYPE (t)).
21876 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21879 * lra-int.h (lra_bad_spill_regno_start): New.
21880 * lra.c (lra_bad_spill_regno_start): New.
21881 (lra): Set up lra_bad_spill_regno_start. Set up
21882 lra_constraint_new_regno_start unconditionally.
21883 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21886 2015-04-09 Marek Polacek <polacek@redhat.com>
21887 Jakub Jelinek <jakub@redhat.com>
21889 PR middle-end/65554
21890 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21891 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21894 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21896 PR rtl-optimization/65693
21897 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21900 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21903 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21904 device specs file if "device-specs%s" didn't resolve to a path.
21906 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21909 * config/i386/i386.c (fixup_modeless_constant): New.
21910 (ix86_expand_args_builtin): Fixup modeless constant operand.
21911 (ix86_expand_round_builtin): Ditto.
21912 (ix86_expand_special_args_builtin): Ditto.
21913 (ix86_expand_builtin): Ditto.
21915 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21918 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21919 any pow2 integer in between 2 and 0x80000000U inclusive.
21921 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
21923 PR rtl-optimization/65693
21924 * combine.c (is_parallel_of_n_reg_sets): Change first argument
21925 from an rtx_insn * to an rtx.
21926 (try_combine): Adjust both callers. Use it once more.
21928 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21930 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
21931 (chkp_make_static_const_bounds): Search existing
21932 symbol by assembler name. Use make_decl_one_only.
21933 (chkp_get_zero_bounds_var): Remove node search which
21934 is now performed in chkp_make_static_const_bounds.
21935 (chkp_get_none_bounds_var): Likewise.
21937 2015-04-08 Michael Witten <mfwitten@gmail.com>
21939 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
21942 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21944 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
21946 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21948 * doc/extend.texi (__sync Builtins): Fix grammar.
21950 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21952 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
21954 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21956 * varasm.c (emit_local): Move definition of align.
21958 2015-04-08 Julian Brown <julian@codesourcery.com>
21960 * config/nvptx/mkoffload.c (process): Support variable mapping.
21962 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
21964 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
21966 (alpha_write_one_linkage): Correct typo.
21968 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21970 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21972 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21974 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21976 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21978 * tree-chkp.h (chkp_insert_retbnd_call): New.
21979 * tree-chkp.c (chkp_insert_retbnd_call): New.
21980 * ipa-split.c (insert_bndret_call_after): Remove.
21981 (split_function): Use chkp_insert_retbnd_call.
21982 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21983 bounds for instrumented functions.
21985 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
21988 * calls.c (initialize_argument_information): When producing tail
21989 call also turn SSA_NAMES passed by references to original PARM_DECLs
21991 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
21994 * lra-remat.c (do_remat): Process input and non-input insn
21995 registers separately.
21997 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22000 * valtrack.c (debug_lowpart_subreg): New function.
22001 (dead_debug_insert_temp): Use it.
22003 PR middle-end/65680
22004 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22005 into signed HOST_WIDE_INT the same as negative bit_offset.
22007 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22009 * ipa-comdats.c (ipa_comdats): Visit all thunks
22010 to set proper comdat group.
22012 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22015 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22016 on constants for NEON VSTRUCT modes.
22018 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22019 Iain Sandoe <iain@codesourcery.com>
22022 * configure: Regenerate.
22024 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22027 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22028 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22029 that LFD is used to load double constants instead of LFS. Add
22030 defaults for all costs structures. Add comments for missing
22031 initialization fields.
22032 (size32_cost): Likewise.
22033 (size64_cost): Likewise.
22034 (rs64a_cost): Likewise.
22035 (mpccore_cost): Likewise.
22036 (ppc403_cost): Likewise.
22037 (ppc405_cost): Likewise.
22038 (ppc440_cost): Likewise.
22039 (ppc476_cost): Likewise.
22040 (ppc601_cost): Likewise.
22041 (ppc603_cost): Likewise.
22042 (ppc604_cost): Likewise.
22043 (ppc604e_cost): Likewise.
22044 (ppc620_cost): Likewise.
22045 (ppc630_cost): Likewise.
22046 (ppccell_cost): Likewise.
22047 (ppc750_cost): Likewise.
22048 (ppc7450_cost): Likewise.
22049 (ppc8540_cost): Likewise.
22050 (ppce300c2c3_cost): Likewise.
22051 (ppce500mc_cost): Likewise.
22052 (ppce500mc64_cost): Likewise.
22053 (ppce5500_cost): Likewise.
22054 (ppce6500_cost): Likewise.
22055 (titan_cost): Likewise.
22056 (power4_cost): Likewise.
22057 (power6_cost): Likewise.
22058 (power7_cost): Likewise.
22059 (power8_cost): Likewise.
22060 (ppca2_cost): Likewise.
22061 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22063 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22064 instead of XXLOR to copy SFmode to clear out dirty bits created
22065 when SFmode denormals are generated.
22066 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22067 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22069 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22071 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22072 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22073 * config/aarch64/aarch64-tune.md: Regenerate.
22075 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22077 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22078 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22079 * config/arm/arm-cores.def (exynos-m1): New core.
22080 * config/arm/arm-tune.md: Regenerate.
22081 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22082 * config/arm/bpabi.h: Likewise.
22084 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22086 * ipa-cp (set_single_call_flag): Remove too
22087 restrictive assert.
22089 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22091 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22092 GOMP_offload_unregister from the destructor.
22094 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22096 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22097 flags for instrumentation thunk.
22098 (chkp_produce_thunks): Likewise.
22100 2015-04-05 Martin Liska <mliska@suse.cz>
22103 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22104 has computed data structure.
22105 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22107 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22109 * invoke.texi (inline-unit-growth): Increase growth to 20%
22110 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22112 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22115 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22117 (lra_rematerialization_iter): New.
22118 * lra.c (lra): Initialize lra_rematerialization_iter.
22119 Stop updating lra_constraint_new_regno_start after switching of
22120 inheritance and rematerialization.
22121 * lra-remat.c (lra_rematerialization_iter): New.
22122 (lra_remat): Add printing pass iteration. Do rematerialization
22123 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22125 2015-04-04 Richard Biener <rguenther@suse.de>
22127 PR tree-optimization/64909
22128 PR tree-optimization/65660
22129 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22130 to take a cost vector for scalar iteration cost.
22131 (vect_get_single_scalar_iteration_cost): Likewise.
22132 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22133 Compute the scalar iteration cost into a cost vector.
22134 (vect_get_known_peeling_cost): Use the scalar cost vector to
22135 account for the cost of the peeled iterations.
22136 (vect_estimate_min_profitable_iters): Likewise.
22137 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22140 2015-04-04 Alan Modra <amodra@gmail.com>
22144 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22145 0.0 constant unless TARGET_VSX.
22146 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22149 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22152 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22155 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22158 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22159 speculative indirect edges to avoid ordering issue.
22161 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22164 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22166 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22168 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22169 TYPE_ARTIFICIAL on the .omp_data* types.
22171 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22173 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22174 instrumentation thunks.
22176 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22178 * config/i386/i386.c (ix86_expand_call): Avoid nested
22179 PARALLEL in returned call value.
22181 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22183 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22184 assembler name with original one.
22186 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22188 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22190 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22192 Revert parts of r216820.
22193 * config/i386/i386.md (movqi_internal): Correct type calculation
22194 for alternatives 3 and 5.
22196 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22198 PR preprocessor/61977
22199 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22200 predefine __vector/__bool/__pixel macros nor context sensitive
22201 macros for CLK_ASM.
22202 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22204 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22206 * config/pa/pa.c (pa_output_move_double): Directly handle register
22207 indexed memory operand. Simplify handling of scaled register indexed
22210 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22213 * config/i386/linux-common.h (MPX_SPEC): New.
22214 (CHKP_SPEC): Add MPX_SPEC.
22215 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22216 possible issues with '-z bndplt' support in linker.
22218 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22220 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22221 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22222 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22223 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22224 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22226 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22228 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22229 (atomic_load<mode>): Change operand 0 predicate to
22230 nonimmediate_operand and fix up the destination when needed.
22232 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22233 (atomic_store<mode>): Change operand 1 predicate to
22234 nonimmendate_operand and move the source to register when needed.
22236 (atomic_store<mode>_1): Use UNSPEC_STA.
22237 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22238 Fix moves from memory operand. Use UNSPEC_STA.
22240 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22242 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22243 not cross a MODESIZE boundary.
22244 (store_bit_field, extract_bit_field): Added assertions in the
22245 strict volatile bitfields code path.
22247 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22250 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22251 Increase args array size by one to avoid buffer overflow.
22253 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22255 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22257 * ipa-inline.c (edge_badness): Add wrapper penalty.
22258 (sum_callers): Move up.
22259 (inline_small_functions): Set single_caller.
22260 * ipa-inline.h (inline_summary): Add single_caller.
22261 * ipa-split.c (split_function): Set split_part.
22262 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22263 * cgraph.h (cgraph_node): Add split_part.
22265 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22268 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22269 Do not split operands 0 and operands 2 to halfmode.
22270 (atomic_compare_and_swap<mode>): Update for
22271 atomic_compare_and_swap<dwi>_doubleword changes.
22273 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22275 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22276 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22277 no caching is done.
22279 2015-03-31 Martin Liska <mliska@suse.cz>
22282 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22283 has already filled up function summary.
22284 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22286 2015-03-31 Richard Biener <rguenther@suse.de>
22288 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22291 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22293 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22295 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22296 (s390_asm_output_function_label): Adapt to new signature of
22297 s390_function_num_hotpatch_hw
22298 Optimise the code generating assembler output.
22299 Add comments to assembler file.
22301 2015-03-31 Richard Biener <rguenther@suse.de>
22303 PR middle-end/65626
22304 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22305 of the noreturn call so it is last and cleanup_control_flow_bb
22306 can do the CFG part.
22308 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22311 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22312 same_comdat_group for external symbols.
22313 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22314 infinite same_comdat_group traversal loop.
22316 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22319 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22320 automatically to $headers.
22322 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22325 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22326 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22328 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22330 * ipa-prop.c (param_type_may_change_p): Likewise.
22331 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22332 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22333 argument. Before inlining, preserve
22334 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22335 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22337 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22339 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22342 * ipa-inline.c (edge_badness): Base denominator on callee's
22345 2015-03-27 Martin Jambor <mjambor@suse.cz>
22348 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22349 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22350 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22351 node_calling_single_call.
22352 * ipa-cp.c (count_callers): New function.
22353 (set_single_call_flag): Likewise.
22354 (initialize_node_lattices): Count callers and set single_flag_call if
22356 (incorporate_penalties): New function.
22357 (good_cloning_opportunity_p): Use it, dump new flags.
22358 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22359 * doc/invoke.texi (ipa-cp-recursion-penalty,
22360 ipa-cp-single-call-pentalty): Document.
22362 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22365 * symtab.c (symtab_node::get_partitioning_class): Register vars
22367 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22368 decls for non-symbols.
22370 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22373 * output.h (default_binds_local_p_2): New.
22374 * varasm.c (default_binds_local_p_2): Renamed to ...
22375 (default_binds_local_p_3): This. Don't return true on protected
22376 data symbol if protected data may be external.
22377 (default_binds_local_p): Use default_binds_local_p_3.
22378 (default_binds_local_p_1): Likewise.
22379 (default_binds_local_p_2): New.
22380 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22381 default_binds_local_p_2 if TARGET_MACHO is undefined.
22383 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22386 * config/i386/i386.c (legitimize_pic_address): If base
22387 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22388 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22390 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22393 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22396 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22399 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22400 of optimized out indirect call.
22401 (redirect_to_unreachable): Always build symbol table node for
22402 BUILT_IN_UNREACHABLE
22404 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22407 * ira-costs.c (record_reg_classes): Process all constraint string
22410 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22412 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22416 * config/c6x/constraints.md (S3): New constraint.
22417 * config/c6x/c6x.md (real_jump): Use it.
22419 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22421 PR middle-end/65595
22422 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22423 do redirection if the call is not optimized out.
22425 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22428 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22429 (fchkp-check-incomplete-type): Add LTO.
22430 (fchkp-zero-input-bounds-for-main): Likewise.
22431 (fchkp-first-field-has-own-bounds): Likewise.
22432 (fchkp-narrow-bounds): Likewise.
22433 (fchkp-narrow-to-innermost-array): Likewise.
22434 (fchkp-use-static-bounds): Likewise.
22435 (fchkp-use-static-const-bounds): Likewise.
22436 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22438 2015-03-27 Marek Polacek <polacek@redhat.com>
22440 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22442 2015-03-27 Marek Polacek <polacek@redhat.com>
22445 * ubsan.c (ubsan_create_edge): New function.
22446 (instrument_bool_enum_load): Call it.
22447 (instrument_nonnull_arg): Likewise.
22448 (instrument_nonnull_return): Likewise.
22449 (instrument_object_size): Likewise.
22451 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22453 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22456 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22459 * lto-streamer.h (class lto_location_cache): New.
22460 (struct data_in): Add location_cache.
22461 (lto_input_location): Update prototype.
22462 (stream_input_location_now): New.
22463 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22464 pointer to location.
22465 (stream_input_location): Update.
22466 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22467 (warn_odr): Apply location cache before warning.
22468 (lto_input_location): Update prototype.
22469 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22470 Use stream_input_location_now.
22471 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22473 (lto_location_cache::cmp_loc): New function.
22474 (lto_location_cache::apply_location_cache): New function.
22475 (lto_location_cache::accept_location_cache): New function.
22476 (lto_location_cache::revert_location_cache): New function.
22477 (lto_location_cache::input_location): New function.
22478 (lto_input_location): Do location caching.
22479 (stream_input_location_now): New function.
22480 (input_eh_region, input_struct_function_base): Use
22481 stream_input_location_now.
22482 (lto_data_in_create): use new.
22483 (lto_data_in_delete): Use delete.
22484 * tree-streamer-in.c (unpack_ts_block_value_fields,
22485 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22486 lto_input_ts_exp_tree_pointers): Update for cached location api.
22488 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22491 * passes.def: Add pass_nothrow.
22492 * ipa-pure-const.c: (pass_data_nothrow): New.
22493 (pass_nothrow): New.
22494 (pass_nothrow::execute): New.
22495 (make_pass_nothrow): New.
22496 * tree-pass.h (make_pass_nothrow): Declare.
22498 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22500 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22501 edge to change by speculation resolution or redirection.
22502 (edge_set_predicate): Likewise.
22503 (inline_summary_t::duplicate): Likewise.
22504 (remap_edge_summaries): Likewise.
22506 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22508 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22510 (can_inline_edge_p): Relax option matching for always inline functions.
22512 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22515 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22516 Check operand 4 and operand 0 for equality.
22517 (avx512f_vextract<shuffletype>32x4_1_maskm):
22518 Check operand 6 and operand 0 for equality.
22519 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22521 (vec_extract_hi_<mode>_maskm): Ditto.
22523 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22525 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22526 dead calls back to live.
22527 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22529 (cgraph_node::verify_node): ... here; verify only callee edges,
22531 * cif-code.def (CILK_SPAWN): New code.
22533 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22535 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22536 (edge_set_predicate): Use it to mark unreachable edges.
22537 (inline_summary_t::duplicate): Remove unnecesary code.
22538 (remap_edge_summaries): Likewise.
22539 (dump_inline_summary): Report contains_cilk_spawn.
22540 (compute_inline_parameters): Compute contains_cilk_spawn.
22541 (inline_read_section, inline_write_summary): Stream
22542 contains_cilk_spawn.
22543 * ipa-inline.c (can_inline_edge_p): Do not touch
22544 DECL_STRUCT_FUNCTION that may not be available;
22545 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22546 remove check for callee_fun->can_throw_non_call_exceptions and
22547 replace it by optimization attribute check; check for flag_exceptions.
22548 * ipa-inline-transform.c (inline_call): Maintain
22549 DECL_FUNCTION_PERSONALITY
22550 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22552 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22554 PR tree-optimization/65551
22555 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22556 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22558 2015-03-26 Richard Biener <rguenther@suse.de>
22560 PR middle-end/65555
22561 * tree-cfg.c (verify_gimple_call): Do not require a call to
22562 have no LHS if it wasn't recognized as control altering yet.
22564 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22566 PR tree-optimization/64715
22567 * passes.def: Add another instance of pass_object_sizes before ccp1.
22568 * tree-object-size.c (pass_object_sizes::execute): In
22569 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22570 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22571 __bos result and the computed constant. Remove redundant
22572 checks, obsoleted by gimple_call_builtin_p test.
22574 * var-tracking.c (variable_tracking_main_1): Don't track
22575 variables for targetm.no_register_allocation targets.
22577 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22579 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22580 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22582 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22585 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22586 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22587 0.0 is correctly setup.
22588 (extenddftf2_internal): Likewise.
22590 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22592 PR tree-optimization/65177
22593 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22595 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22596 edges not adjacent on the path to the original code.
22598 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22601 * doc/install.texi (Building a native compiler): Document new
22602 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22603 configuration assumes that the host supports the linker plugin.
22605 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22608 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22609 chain for generated call.
22611 2015-03-25 Richard Biener <rguenther@suse.de>
22613 * passes.c (pass_manager::execute_early_local_passes): Guard
22614 execution of pass_chkp_instrumentation_passes with
22615 flag_check_pointer_bounds.
22616 (pass_chkp_instrumentation_passes::gate): Likewise.
22618 2015-03-25 Martin Liska <mliska@suse.cz>
22620 PR tree-optimization/65538
22621 * symbol-summary.h (function_summary::~function_summary):
22622 Relese memory for allocated summaries.
22623 (function_summary::release): New function.
22625 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22628 * lto-streamer-out.c (DFS::worklist): New struct.
22629 (DFS::worklist_vec): New data member.
22630 (DFS::next_dfs_num): Remove.
22631 (DFS::DFS): Rewritten using worklist instead of recursion,
22632 using most of code from DFS::DFS_write_tree.
22633 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22634 pass it to DFS_write_tree calls.
22635 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22636 quick initial checks push it into worklist_vec and return.
22638 2015-03-25 Richard Biener <rguenther@suse.de>
22640 PR middle-end/65519
22641 * genmatch.c (expr::gen_transform): Re-write to avoid
22642 using gimple_build.
22644 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22646 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22648 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22650 * config/arm/arm.opt (print_tune_info): New option.
22651 * config/arm/arm.c (arm_print_tune_info): New function.
22652 (arm_file_start): Call arm_print_tune_info.
22653 * config/arm/arm-protos.h (struct tune_params): Add comment.
22654 * doc/invoke.texi (@item -mprint-tune-info): New item.
22655 (-mtune): mention it in ARM Option Summary.
22657 2015-03-25 DJ Delorie <dj@redhat.com>
22659 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22662 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22663 Martin Liska <mliska@suse.cz>
22665 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22666 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22667 (sem_item::add_type): New function.
22668 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22669 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22670 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22671 (sem_function::equals_wpa): Fix typo.
22672 * ipa-icf.h (sem_item::add_type): New function.
22673 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22676 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22678 PR tree-optimization/65533
22679 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22680 with swapped operands, call vect_free_slp_tree on
22681 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22684 2015-03-24 Richard Biener <rguenther@suse.de>
22686 PR middle-end/65517
22687 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22688 for fixup if necessary.
22690 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22692 * doc/extend.texi (Function Attributes): Add @cindex entries
22693 for all attributes and regularize their format. Delete text
22694 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22695 information about "eightbit_data", "tiny_data", and "model"
22696 variable attributes to the Variable Attributes section. Fix
22697 some obvious typos and copy-editing issues.
22698 (Variable Attributes, Type Attributes): Likewise add/fix
22699 @cindex entries for all attributes.
22701 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22704 * tree-chkp.c (chkp_build_returned_bound): Ignore
22705 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22707 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22710 * config/sh/predicates.md (simple_mem_operand,
22711 displacement_mem_operand): Add test for reg.
22712 (short_displacement_mem_operand): Test for displacement_mem_operand
22713 before invoking sh_disp_addr_displacement.
22714 * config/sh/constraints.md (Sdd, Sra): Simplify.
22715 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22716 Remove redundant displacement_mem_operand tests.
22718 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22721 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22722 the same -mmcu=MCU more than once.
22724 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22727 * ipa-devirt.c: Remove duplicate demangle.h include.
22730 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22732 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22733 REG_POINTER on *destptr after adjusting it for prologue size.
22736 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22737 ultimate_alias_target ()->order ints instead of
22738 ultimate_alias_target () pointers.
22740 2015-03-23 Richard Biener <rguenther@suse.de>
22742 PR tree-optimization/65518
22743 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22744 interleaving cases we generate absymal code for.
22746 2015-03-23 Richard Biener <rguenther@suse.de>
22748 PR tree-optimization/65494
22749 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22751 (vect_analyze_slp_instance): But do that here, always and once.
22753 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22755 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22756 adding T or multiplying by T+1 and subracting T.
22758 2015-03-22 Jeff Law <law@redhat.com>
22760 PR rtl-optimization/64317
22761 * Makefile.in (OBJS): Add gcse-common.c
22762 * gcse.c: Include gcse-common.h
22763 (struct modify_pair_s): Move structure definition to gcse-common.h
22764 (compute_transp): Move function to gcse-common.c.
22765 (canon_list_insert): Similarly.
22766 (record_last_mem_set_info): Break out some code and put it into
22767 gcse-common.c. Call into the new common code.
22768 (compute_local_properties): Pass additional arguments to compute_transp.
22769 * postreload-gcse.c: Include gcse-common.h and df.h
22770 (modify_mem_list_set, blocks_with_calls): New variables.
22771 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22772 (get_bb_avail_insn): Pass in the expression index too.
22773 (alloc_mem): Allocate memory for the new bitmaps and lists.
22774 (free_mem): Free memory for the new bitmaps and lists.
22775 (insert_expr_in_table): Record a bitmap index for each entry we
22777 (record_last_mem_set_info): Call into common code in gcse-common.c.
22778 (get_bb_avail_insn): If no available insn was found in the requested
22779 BB. If BB has a single predecessor, see if the expression is
22780 transparent in BB and available in that single predecessor.
22781 (compute_expr_transp): New wrapper for compute_transp.
22782 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22783 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22784 (gcse_after_reload_main): If there are elements in the hash table,
22785 then compute transparency for all the elements in the hash table.
22786 * gcse-common.h: New file.
22787 * gcse-common.c: New file.
22789 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22791 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22793 (System Headers): Likewise.
22795 (Traditional macros): Likewise.
22796 (Invocation): Likewise.
22797 (Option Index): Likewise.
22798 * doc/cppopts.texi (-M): Likewise.
22799 (-finput-charset): Likewise.
22800 (--help): Likewise.
22801 * doc.invoke.texi (AVR Options): Likewise.
22802 (V850 Options): Likewise.
22804 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22807 * ipa-devirt.c: Include demangle.h
22808 (odr_type_d): Add field rtti_broken.
22809 (odr_subtypes_equivalent_p): Do not require name to match.
22810 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22811 bypass the tests; be ready for function referneces in vtables that are
22812 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22813 (warn_odr): Give up for nameless types.
22814 (warn_types_mismatch): Report mismatch in mangled names;
22815 report mismatch in anonymous namespaces; look into component types to
22816 give useful error; report when mismatch is dragged in from other ODR
22818 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22819 duplicated diagnostics.
22820 (add_type_duplicate): Reorder checks so more informative ones come
22821 first; fix typo; do not output "the extra base is defined here" when
22823 (BINFO_N_BASE_BINFOS): Relax sanity check.
22825 2015-03-22 Martin Liska <mliska@suse.cz>
22826 Jakub Jelinek <jakub@redhat.com>
22828 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22829 masks that can potentially include a builtin.
22830 (ix86_add_new_builtins): Introduce fast filter for isa values
22831 that cannot trigger builtin inclusion.
22833 2015-03-22 Martin Liska <mliska@suse.cz>
22835 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22836 (sem_item::update_hash_by_local_refs): Likewise.
22837 (sem_variable::get_hash): Empty line is fixed.
22838 (sem_item_optimizer::execute): Include adding of hash references.
22839 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22840 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22841 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22842 (sem_item::update_hash_by_local_refs): Likewise.
22844 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22847 * ipa-comdats.c (enqueue_references): Walk through thunks.
22848 (ipa_comdats): Likewise.
22849 (set_comdat_group_1): New function.
22851 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22854 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22857 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22858 Gerald Pfeifer <gerald@pfeifer.com>
22860 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22862 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22863 Sandra Loosemore <sandra@codesourcery.com>
22865 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22866 function parameter declaration.
22867 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22868 Update arguments to nios2_adjust_call_address().
22869 (sibcall_internal): Rename from *sibcall.
22870 (sibcall_value_internal): Rename from *sibcall_value.
22871 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22872 (nios2_large_got_address): Add target temp reg parameter.
22873 (nios2_got_address): Adjust call to nios2_large_got_address, add
22874 force_reg around it.
22875 (nios2_load_pic_address): Add target temp reg parameter, replace call
22876 to nios2_got_address with corresponding code.
22877 (nios2_legitimize_constant_address): Update call to
22878 nios2_load_pic_address.
22879 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22880 to use temp reg for PIC loading purposes.
22881 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22882 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22883 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22885 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22887 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22888 usage of "the @option{...}".
22889 (-Wopenmp-simd): Likewise.
22890 (-fsanitize-recover): Likewise.
22891 (-fsanitize-undefined-trap-on-error): Likewise.
22893 (tracer-dynamic-coverage-feedback): Likewise.
22894 (reorder-block-duplicate-feedback): Likewise.
22895 (loop-unroll-jam-size): Likewise.
22898 (-mabs=legacy): Likewise.
22899 (-mupper-regs-df): Likewise.
22900 (-mupper-regs-sf): Likewise.
22901 (-mpointers-to-nested-functions): Likewise.
22903 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22905 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22907 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22909 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22910 additional index entries and cross-references.
22911 (-fchkp-check-incomplete-type): Likewise.
22912 (-fchkp-first-field-has-own-bounds): Likewise.
22913 (-fchkp-narrow-to-innermost-array): Likewise.
22914 (-fchkp-use-fast-string-functions): Likewise.
22915 (-fchkp-use-nochk-string-functions): Likewise.
22916 (-fchkp-use-static-const-bounds): Likewise.
22917 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22918 (-fchkp-instrument-marked-only): Likewise.
22919 (-fchkp-use-wrappers): Likewise.
22920 (-static-libmpx): Likewise.
22921 (-static-libmpxwrappers): Likewise.
22922 * doc/extend.texi (bnd_legacy): Likewise.
22923 (bnd_instrument): Likewise.
22924 (bnd_variable_size): Likewise.
22925 (Pointer Bounds Checker builtins): Likewise.
22927 2015-03-21 Tom de Vries <tom@codesourcery.com>
22929 PR tree-optimization/65458
22930 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
22931 * cgraph.h (cgraph_node): Add parallelized_function field.
22932 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
22933 (input_overwrite_node): Read parallelized_function field.
22934 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
22935 parallelized_function on cgraph_node for child_fn.
22936 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
22937 Remove include of gt-tree-parloops.h.
22938 (parallelized_functions): Remove static variable.
22939 (parallelized_function_p): Rewrite using parallelized_function field of
22941 (create_loop_fn): Remove adding to parallelized_functions.
22942 * Makefile.in (GTFILES): Remove tree-parloops.c
22944 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
22946 PR rtl-optimization/64366
22947 * lra.c (lra_update_insn_regno_info): Consider regs in
22948 CALL_INSN_FUNCTION_USAGE memory.
22950 2015-03-20 Richard Biener <rguenther@suse.de>
22952 PR middle-end/64715
22953 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
22954 for type comparison and gcc_checking_assert.
22955 (chrec_fold_plus_poly_poly): Likewise.
22956 (chrec_fold_multiply_poly_poly): Likewise.
22957 (chrec_convert_1): Likewise.
22958 * gimplify.c (gimplify_expr): Remove premature folding of
22959 &X + CST to &MEM[&X, CST].
22961 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22963 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
22965 (ipa_inline): Recompute inline_failed codes.
22966 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22967 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22970 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
22972 PR rtl-optimization/60851
22973 * recog.c (constrain_operands): Accept a pseudo register before reload
22974 for LRA enabled targets.
22976 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
22979 * config/rs6000/predicates.md (easy_fp_constant): Remove special
22980 -ffast-math handling that kept non-0 constants live in the RTL
22981 until reload. Remove logic testing the number of instructions it
22982 took to create a constant in a GPR that was never used, due to a
22983 test for soft-float earlier.
22984 (memory_fp_constant): Delete, no longer used.
22986 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22987 alternatives for loading non-0 constants into GPRs for hard
22988 floating point that is no longer needed due to changes in
22989 easy_fp_constant. Add support for loading 0.0 into GPRs.
22990 (mov<mode>_hardfloat32): Likewise.
22991 (mov<mode>_hardfloat64): Likewise.
22992 (mov<mode>_64bit_dm): Likewise.
22993 (movtd_64bit_nodm): Likewise.
22994 (pre-reload move FP constant define_split): Delete define_split,
22995 since it is no longer used.
22996 (extenddftf2_internal): Remove GHF constraints that are not valid
22999 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23001 PR rtl-optimization/63491
23002 * lra-constraints.c (check_and_process_move): Use src instead of
23003 sreg. Remove some dead code.
23005 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23008 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23009 (sem_variable::merge): Likewise.
23011 2015-03-19 Martin Liska <mliska@suse.cz>
23014 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23015 all fields of cgraph_thunk_info.
23017 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23019 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23020 clone instrumented thunks.
23022 2015-03-19 Richard Biener <rguenther@suse.de>
23025 2015-03-10 Richard Biener <rguenther@suse.de>
23027 PR middle-end/63155
23028 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23029 * tree-ssa-coalesce.c: Include timevar.h.
23030 (attempt_coalesce): Handle graph being NULL.
23031 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23032 Split out abnormal coalescing to ...
23033 (perform_abnormal_coalescing): ... this function.
23034 (coalesce_ssa_name): Perform abnormal coalescing without computing
23036 (verify_ssa_coalescing_worker): New function.
23037 (verify_ssa_coalescing): Likewise.
23039 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23040 Jakub Jelinek <jakub@redhat.com>
23043 * tsan.c (instrument_gimple): Clear tail call flag on
23046 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23049 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23050 call in the return bb.
23051 (find_split_points): Add RETURN_BB argument, don't call
23053 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23054 if true append TSAN_FUNC_EXIT internal call after the call to
23055 the split off function.
23056 (execute_split_functions): Call find_return_bb here.
23057 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23058 Adjust find_split_points and split_function calls.
23060 2015-03-18 DJ Delorie <dj@redhat.com>
23062 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23063 (iorqi3_virt): Likewise.
23065 2015-03-18 Tom de Vries <tom@codesourcery.com>
23067 * tree-parloops.c (parallelize_loops): Make static.
23068 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23070 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23072 PR middle-end/64491
23074 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23076 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23077 condition would be removed due to undefined behaviour.
23079 2015-03-18 Martin Liska <mliska@suse.cz>
23082 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23083 xstrdup_for_dump wrapper.
23084 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23086 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23087 with xstrdup_for_dump.
23088 (sem_variable::equals): Likewise.
23089 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23091 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23092 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23093 symtab_node::asm_name with xstrdup_for_dump.
23094 (congruence_class::dump): Use symtab_node::name instead of
23096 * ipa-icf.h (symtab_node::name): Remove.
23097 (symtab_node::asm_name): Likewise.
23099 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23101 PR tree-optimization/65450
23102 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23104 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23105 it instead of duplicate_ssa_name_ptr_info.
23108 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23110 2015-03-18 Richard Biener <rguenther@suse.de>
23112 * tree-data-ref.h (struct access_matrix): Remove.
23113 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23114 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23115 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23116 (am_vector_index_for_loop): Likewise.
23117 (struct data_reference): Remove access_matrix member.
23118 (DR_ACCESS_MATRIX): Remove.
23119 (lambda_vector_new): Add comment.
23120 (lambda_matrix_new): Use XOBNEWVEC.
23122 2015-03-18 Richard Biener <rguenther@suse.de>
23124 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23125 (pass_ch::execute): Cleanup the CFG only if we did sth.
23126 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23128 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23130 * expmed.c (synth_mult): Use std::swap instead of manually
23131 swapping algorithms.
23133 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23136 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23138 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23141 * config/avr/avr.opt (-nodevicelib): New option.
23142 * doc/invoke.texi (AVR Options): Document it.
23143 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23144 libgcc.a, libc.a, libm.a.
23145 * config/avr/specs.h: Same.
23146 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23147 which don't (directly) depend on the device. Print more help.
23148 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23149 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23150 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23152 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23153 for specs file name.
23154 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23155 * config/avr/avr-mcus.def: Adjust initializers and comments.
23157 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23159 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23160 DECL_ONE_ONLY to check if decl is one only.
23161 * ipa-split.c (consider_split): Limit splitt of one only functions.
23163 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23165 PR tree-optimization/65427
23166 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23168 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23170 2015-03-16 Marek Polacek <polacek@redhat.com>
23172 * cgraph.h (add_new_static_var): Remove declaration.
23173 * varpool.c (add_new_static_var): Remove function.
23175 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23177 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23178 instead of vec<tree> * with vec_alloc and release for args.
23181 PR middle-end/65431
23182 * omp-low.c (delete_omp_context): Only splay_tree_delete
23183 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23184 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23186 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23189 * cfgexpand.c (align_base): New function.
23190 (alloc_stack_frame_space): Call it.
23191 (expand_stack_vars): Align prev_frame to be sure
23192 data->asan_vec elements aligned properly.
23194 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23196 PR middle-end/65409
23197 * expr.c (store_field): Do not do a direct block copy if the source is
23198 a PARALLEL with BLKmode.
23200 2015-03-16 Tom de Vries <tom@codesourcery.com>
23202 PR middle-end/65414
23204 2015-03-12 Tom de Vries <tom@codesourcery.com>
23206 PR rtl-optimization/64895
23207 * lra-lives.c (check_pseudos_live_through_calls): Use
23208 actual_call_used_reg_set instead of call_used_reg_set, if available.
23210 2015-03-16 Alan Modra <amodra@gmail.com>
23213 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23214 Modify Z->r bswapdi splitter to use dest in place of scratch.
23215 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23216 to word1, word2 and rearrange logic to suit.
23217 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23218 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23219 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23220 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23223 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23225 PR tree-optimization/65369
23226 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23227 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23228 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23230 PR tree-optimization/65418
23231 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23232 are casts in the first PLUS_EXPR operand, ensure tbias and
23233 *totallowp are in the inner type.
23235 PR rtl-optimization/65401
23236 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23237 argument. If true, adjust_address_nv of x with big-endian
23238 correction for the mode widening to GET_MODE (y).
23239 (make_field_assignment): Don't do MEM mode widening here.
23240 Use MEM_P instead of GET_CODE == MEM.
23242 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23244 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23245 the external decls.
23247 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23250 * config/arm/arm.c (arm_gen_constant, AND case): Use
23251 ARM_SIGN_EXTEND when constructing AND mask.
23253 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23255 * graph.c (print_graph_cfg): Make function names visible and append
23256 parenthesis to it. Also make groups of basic blocks belonging to the
23257 same function visible.
23259 2015-03-12 Richard Biener <rguenther@suse.de>
23261 PR middle-end/44563
23262 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23263 to avoid quadratic behavior with inline expansion splitting blocks.
23264 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23265 with the successor if the predecessor will be merged with it.
23266 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23267 entry block with its successor.
23269 2015-03-13 Richard Biener <rguenther@suse.de>
23271 PR middle-end/44563
23272 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23273 (cleanup_tree_cfg_1): Do not call it.
23274 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23275 (fixup_noreturn_call): Mark the stmt as control altering.
23276 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23278 (pass_data_fixup_cfg): Produce a dump file.
23279 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23280 (need_noreturn_fixup): New global.
23281 (pass_dominator::execute): Fixup queued noreturn calls.
23282 (optimize_stmt): Queue calls that became noreturn for fixup.
23283 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23284 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23285 (el_to_fixup): New global.
23286 (eliminate_dom_walker::before_dom_childre): Queue calls that
23287 became noreturn for fixup.
23288 (eliminate): Fixup queued noreturn calls.
23289 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23290 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23291 (substitute_and_fold_dom_walker::before_dom_children): Queue
23292 alls that became noreturn for fixup.
23293 (substitute_and_fold): Fixup queued noreturn calls.
23295 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23297 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23298 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23299 are building; for methods check ODR type of class they belong to if
23300 they may lead to a polymorphic call.
23301 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23302 when function may lead to a polymorphic call.
23303 (sem_function::compare_type_list): Remove.
23304 (sem_variable::equals): Update use of compatible_types_p.
23305 (sem_variable::parse_tree_refs): Remove.
23306 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23308 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23310 (func_checker::compatible_polymorphic_types_p): Break out from ...
23311 (unc_checker::compatible_types_p): ... here.
23312 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23314 (unc_checker::compatible_types_p): Update.
23315 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23318 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23320 PR rtl-optimization/65235
23321 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23322 When first element of vec_concat is const_int, calculate its size
23323 using second element.
23325 2015-03-12 Richard Biener <rguenther@suse.de>
23327 PR middle-end/65270
23328 * fold-const.c (operand_equal_p): Fix ordering of resetting
23329 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23331 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23333 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23335 (s390_asm_output_function_label): Likewise.
23336 * config/s390/s390.c (s390_asm_output_function_label):
23337 Fix function label alignment with -mhtopatch.
23338 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23339 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23340 ("nop_2_byte"): New define_insn.
23341 ("nop_4_byte"): Likewise.
23342 ("nop_6_byte"): Likewise.
23343 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23344 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23346 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23349 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23352 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23355 * toplev.c (process_options): Restrict Pointer Bounds Checker
23356 usage with Address Sanitizer.
23358 2015-03-12 Richard Biener <rguenther@suse.de>
23360 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23362 * omp-low.c (expand_omp_taskreg): Split block before removing
23364 (expand_omp_target): Likewise.
23365 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23366 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23367 stmt to split_block.
23369 2015-03-12 Tom de Vries <tom@codesourcery.com>
23371 PR rtl-optimization/64895
23372 * lra-lives.c (check_pseudos_live_through_calls): Use
23373 actual_call_used_reg_set instead of call_used_reg_set, if available.
23375 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23377 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23378 (cgraph_node::remove): Likewise.
23379 (cgraph_node::get_untransformed_body): Likewise.
23380 * varpool.c (varpool_node::remove): Likewise.
23381 (varpool_node::get_constructor): Add sanity check.
23383 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23385 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23387 (-fabi-compat-version): Likewise.
23388 (-ffriend-injection): Likewise.
23389 (-Wdeclaration-after-statement): Likewise.
23390 (-fomit-frame-pointer): Likewise.
23391 (-ftree-coalesce-inlined-vars): Likewise.
23392 (-fvisibility=): Likewise.
23393 * doc/extend.texi (Typeof): Likewise.
23394 (Zero Length): Likewise.
23395 (Escaped Newlines): Likewise.
23396 (Compound Literals): Likewise.
23397 (Function Attributes): Likewise.
23398 (Label Attributes): Likewise.
23399 (Type Attributes): Likewise.
23400 (Function Names): Likewise.
23401 (Other Builtins): Likewise.
23402 (Function Specific Option Pragmas): Likewise.
23403 (C++ Interface): Likewise.
23405 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23407 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23409 2015-03-11 Marek Polacek <polacek@redhat.com>
23411 PR tree-optimization/65388
23412 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23414 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23417 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23418 * configure: Regenerate.
23419 * config.in: Regenerate.
23420 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23421 [-mn-flash]: Document it.
23422 [__AVR_ARCH__]: Document avrtiny.
23424 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23425 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23426 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23428 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23430 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23432 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23435 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23436 allow reloads of PLUS in floating point/VSX registers.
23438 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23440 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23441 crypto_sha256_fast.
23442 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23444 2015-03-11 Richard Biener <rguenther@suse.de>
23446 PR tree-optimization/65310
23447 * tree-sra.c (build_ref_for_offset): Also preserve larger
23450 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23452 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23454 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23457 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23459 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23461 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23463 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23464 (sem_function::equals_wpa): ... here.
23466 2015-03-10 Marek Polacek <polacek@redhat.com>
23467 Jakub Jelinek <jakub@redhat.com>
23470 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23471 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23474 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23477 * config/rs6000/t-linux: For powerpc64* target set
23478 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23480 2015-03-10 Richard Biener <rguenther@suse.de>
23482 PR middle-end/44563
23483 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23484 for redirect_all_calls.
23486 2015-03-10 Marek Polacek <polacek@redhat.com>
23488 * gdbinit.in (pcfun): Define and document.
23490 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23492 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23493 of libgomp-plugin.h.
23494 (find_target_compiler): Support a case when the path to gcc is
23495 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23496 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23497 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23499 (main): Use GCC_INSTALL_NAME as target_driver_name.
23500 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23502 (mkoffload.o): Remove obsolete include path and defines.
23503 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23505 2015-03-10 Richard Biener <rguenther@suse.de>
23507 PR middle-end/63155
23508 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23509 * tree-ssa-coalesce.c: Include timevar.h.
23510 (attempt_coalesce): Handle graph being NULL.
23511 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23512 Split out abnormal coalescing to ...
23513 (perform_abnormal_coalescing): ... this function.
23514 (coalesce_ssa_name): Perform abnormal coalescing without computing
23516 (verify_ssa_coalescing_worker): New function.
23517 (verify_ssa_coalescing): Likewise.
23519 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23522 * config.gcc (extra_options) [avr]: Remove.
23523 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23524 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23525 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23527 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23528 (-mmcu=): Add Var and MissingArgError properties.
23530 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23531 * config/avr/t-multilib: Regenerate.
23532 * config/avr/specs.h: New file.
23533 * config/avr/driver-avr.c: New file.
23534 * config/avr/genopt.sh: Remove file.
23535 * config/avr/avr-tables.opt: Remove file.
23536 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23537 * config/avr/avr-c.c: Same.
23538 * avr-arch.h: Same.
23539 (avr_current_device): Remove proto.
23540 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23541 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23542 (EXTRA_SPEC_FUNCTIONS): Define.
23543 (avr_devicespecs_file): New specs function proto.
23544 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23545 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23546 (avr_current_device): Remove definition and usage.
23547 (avr_set_core_architecture): New static function.
23548 (avr_option_override): Use it.
23549 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23550 (mcu_name): New static array.
23551 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23552 (avr_inform_devices, avr_inform_core_architectures): New functions.
23553 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23554 (avrlibc.h) [WITH_AVRLIBC]: Include.
23555 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23556 (print_mcu): Rewrite from scratch.
23557 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23558 Forward to avr-specific specs defined in device-specs file.
23559 * config/avr/t-avr (driver-avr.o): New rule.
23560 (avr-devices.o): Depend on avr-arch.h.
23561 (avr-mcus): No more depend on avr-tables.opt.
23562 (avr-tables.opt): Remove rule.
23563 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23565 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23567 * c-family/c.opt (fchkp-use-wrappers): New.
23568 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23569 (chkp_wrap_function): New.
23570 (chkp_build_instrumented_fndecl): Support wrapped
23572 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23573 (-fchkp-check-incomplete-type): New.
23574 (-fchkp-first-field-has-own-bounds): New.
23575 (-fchkp-narrow-bounds): New.
23576 (-fchkp-narrow-to-innermost-array): New.
23577 (-fchkp-optimize): New.
23578 (-fchkp-use-fast-string-functions): New.
23579 (-fchkp-use-nochk-string-functions): New.
23580 (-fchkp-use-static-bounds): New.
23581 (-fchkp-use-static-const-bounds): New.
23582 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23583 (-fchkp-check-read): New.
23584 (-fchkp-check-write): New.
23585 (-fchkp-store-bounds): New.
23586 (-fchkp-instrument-calls): New.
23587 (-fchkp-instrument-marked-only): New.
23588 (-fchkp-use-wrappers): New.
23589 (-static-libmpx): New.
23590 (-static-libmpxwrappers): New.
23592 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23594 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23595 (CHKP_SPEC): Add wrappers library.
23596 * c-family/c.opt (static-libmpxwrappers): New.
23598 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23600 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23601 (LIBMPX_SPEC): New.
23603 * gcc.c (CHKP_SPEC): New.
23604 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23605 * c-family/c.opt (static-libmpx): New.
23607 2015-03-10 Richard Biener <rguenther@suse.de>
23609 PR middle-end/44563
23610 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23612 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23613 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23614 (cgraph_add_edge_to_call_site_hash): Likewise.
23615 (cgraph_node::get_edge): Likewise.
23616 (cgraph_edge::set_call_stmt): Likewise.
23617 (cgraph_edge::remove_caller): Likewise.
23619 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23621 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23622 (callee_saved_gpr_regs_size): ... this.
23623 (callee_saved_regs_first_regno): Rename to ...
23624 (callee_saved_first_gpr_regno): ... this.
23625 (callee_saved_regs_last_regno) Rename to ...
23626 (callee_saved_last_gpr_regno): ... this.
23627 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23629 (nds32_initial_elimination_offset): Likewise.
23630 (nds32_expand_prologue): Likewise.
23631 (nds32_expand_epilogue): Likewise.
23632 (nds32_expand_prologue_v3push): Likewise.
23633 (nds32_expand_epilogue_v3pop): Likewise.
23634 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23635 Adjust renamed variables.
23636 (nds32_output_stack_pop): Likewise.
23638 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23640 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23643 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23645 PR rtl-optimization/65321
23646 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23648 * var-tracking.c (use_narrower_mode): Likewise.
23650 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23652 PR tree-optimization/65355
23653 * varasm.c (notice_global_symbol): Do not produce RTL.
23654 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23656 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23657 check for section anchors.
23659 2015-03-10 Alan Modra <amodra@gmail.com>
23662 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23663 to be single-arch by default. Set cpu_is_64bit for powerpc64
23664 given --with-cpu=native.
23665 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23666 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23668 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23669 rs6000_isa_flags rather than TARGET_64BIT.
23671 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23672 Kaz Kojima <kkojima@gcc.gnu.org>
23674 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23676 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23679 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23680 on a TREE_BINFO, instead use BINFO_TYPE.
23682 2015-03-09 Richard Biener <rguenther@suse.de>
23684 PR middle-end/65270
23685 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23686 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23687 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23688 of that. When comparing dereferences compare alignment.
23689 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23691 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23693 * ipa-inline-analysis.c (check_callers): Check
23694 node->can_remove_if_no_direct_calls_and_refs_p.
23695 (growth_likely_positive): Reorganize to call
23696 can_remove_if_no_direct_calls_p later.
23697 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23698 will_be_removed_from_program_if_no_direct_calls_p): Add
23699 will_inline parameter.
23700 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23701 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23702 Handle inliner case correctly.
23704 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23706 PR tree-optimization/63743
23707 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23708 had its definition forwarded by TER.
23710 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23713 * ipa-utils.h (types_odr_comparable): Add strict argument.
23714 * ipa-devirt.c: Fix whitespace;
23715 (odr_hasher): Remove.
23716 (odr_name_hasher, odr_vtable_hasher): New hashers.
23717 (can_be_name_hashed_p): New predicate.
23718 (hash_type_name): remove.
23719 (hash_odr_name): New.
23720 (odr_name_hasher::hash): new.
23721 (can_be_vtable_hashed_p): New.
23722 (hash_odr_vtable): New.
23723 (odr_vtable_hasher::hash): New.
23724 (types_same_for_odr): Add strict parameter.
23725 (types_odr_comparable): Likewise.
23726 (odr_name_hasher::equal): New.
23727 (odr_vtable_hasher::equal): New.
23728 (odr_name_hasher::remove): New.
23729 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23730 (odr_vtable_hash_type): New.
23731 (odr_vtable_hash): New.
23732 (odr_subtypes_equivalent_p): Do strict comparsion.
23733 (add_type_duplicate): Merge type names; cleanup; avoid type
23735 (register_odr_type): Initialize vtable hash.
23736 (build_type_inheritance_graph): Likewise
23737 (get_odr_type): Reorg to use two hashes.
23738 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23740 (ipa_devirt): Dump type_inheritance_graph.
23741 (types_same_for_odr): Add strict mode.
23743 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23746 * cgraph.h (symtab_node): Add definition_alignment,
23747 can_increase_alignment_p and increase_alignment.
23748 * symtab.c (symtab_node::can_increase_alignment_p,
23749 increase_alignment_1, symtab_node::increase_alignment,
23750 symtab_node::definition_alignment): New.
23751 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23752 can_increase_alignment_p.
23753 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23754 * tree-vect-stmts.c (ensure_base_align): Likewise.
23755 * varasm.c (function_section_1): Use definition_alignment.
23756 (assemble_start_function): Likewise.
23757 (emit_local): likewise.
23758 (build_constant_desc): Likewsie.
23759 (output_constant_def_contents): Likewise.
23760 (place_block_symbol): Likewise.
23761 (output_object_block): Likewise.
23763 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23766 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23767 when outputting debug.
23769 2015-03-07 Marek Polacek <polacek@redhat.com>
23770 Martin Uecker <uecker@eecs.berkeley.edu>
23773 * doc/invoke.texi: Update description of -fsanitize=bounds.
23775 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23777 * tree-ssa-phiopt.c (neg_replacement): Remove.
23778 (tree_ssa_phiopt_worker): Remove negate optimization.
23780 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23783 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23785 2015-03-06 Richard Biener <rguenther@suse.de>
23787 PR middle-end/64928
23788 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23789 and liveout_obstack members.
23790 (calculate_live_on_exit): Remove.
23791 (calculate_live_ranges): Change declaration.
23792 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23793 (new_tree_live_info): Adjust.
23794 (calculate_live_ranges): Delete livein when not wanted.
23795 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23796 Deal with partly deleted live info.
23797 (loe_visit_block): Remove temporary bitmap by using
23798 bitmap_ior_and_compl_into.
23799 (live_worklist): Adjust accordingly.
23800 (calculate_live_on_exit): Make static.
23801 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23802 we do not need livein.
23804 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23806 * real.c (real_from_string): Fix typo in assertion.
23808 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23810 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23813 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23815 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23817 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23820 * lra-assigns.c (find_hard_regno_for): Rename to
23821 find_hard_regno_for_1. Add a new parameter.
23822 (find_hard_regno_for): New function using find_hard_regno_for_1.
23824 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23826 PR rtl-optimization/65067
23827 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23828 strict volatile bitfield handling.
23830 2015-03-05 Martin Liska <mliska@suse.cz>
23833 * ipa-icf.c (sem_variable::equals): Compare variables types.
23835 2015-03-05 Richard Henderson <rth@redhat.com>
23838 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23839 correctly check weak symbol binding.
23841 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23843 PR middle-end/65315
23844 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23847 2015-03-05 Martin Liska <mliska@suse.cz>
23849 * ipa-inline.c (inline_small_functions): Set default value to
23850 prevent warning during bootstrap.
23851 * tree.h: Add pragma guard that ignores false positives during
23854 2015-03-05 Richard Biener <rguenther@suse.de>
23856 PR tree-optimization/65310
23857 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23858 Properly preserve alignment of the base of the access.
23860 2015-03-05 Richard Biener <rguenther@suse.de>
23863 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23864 Compare dependence info.
23866 2015-03-05 Richard Biener <rguenther@suse.de>
23868 PR middle-end/65233
23869 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23871 (walk_ssa_copies): Revert last chage. Instead do not walk
23872 SSA names registered for SSA update.
23874 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23877 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23878 vtable references for their containing type.
23879 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23880 and type attributes.
23882 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23884 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23885 before negating it.
23886 * stor-layout.c (finalize_record_size): Revert latest change.
23888 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23890 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23892 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23894 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23895 for correct comdat handling.
23896 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23898 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23899 (used_from_object_file_p_worker): Remove.
23900 (cgraph_node::only_called_directly_or_alised): Add
23901 used_from_object_file_p.
23902 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23903 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23904 can_remove_if_no_direct_calls_and_refs_p.
23906 2015-03-04 Nick Clifton <nickc@redhat.com>
23908 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23909 General register class.
23910 * config/rl78/rl78-real.md: Replace general register constraints
23911 with real+virtual register constraints.
23913 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23915 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23916 from checking for -mhtm option.
23918 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23920 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23921 (struct ipa_sra_check_caller_data): Add has_thunk field.
23922 (ipa_sra_check_caller): Check for thunk.
23923 (ipa_sra_preliminary_function_checks): Give up on function with
23925 (ipa_early_sra): Use call_for_symbol_and_aliases.
23927 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
23930 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
23931 called for __stack_chk_guard symbol.
23933 2015-03-03 DJ Delorie <dj@redhat.com>
23935 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
23937 (*addhi3_real): Likewise.
23938 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
23939 pattern to match incrementing memory.
23940 * config/rl78/predicates.md (rl78_1_2_operand): New.
23941 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
23942 it's the same and only mem.
23943 (rl78_alloc_physical_registers_op2): If there's effectively only
23944 one MEM, transcode it into HL.
23945 (rl78_far_p): Reject addresses that aren't legitimate.
23947 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23949 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
23952 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
23954 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23956 Implement call0 ABI for xtensa
23957 * config/xtensa/constraints.md ("a" constraint): Include stack
23958 pointer in case of call0 ABI.
23959 ("q" constraint): Make empty in case of call0 ABI.
23960 ("D" constraint): Include stack pointer in case of call0 ABI.
23961 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
23962 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
23964 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
23966 (xtensa_regno_to_class): Make it a local variable in the
23967 function xtensa_regno_to_class.
23968 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
23969 macro, function prototype and implementation.
23970 (reg_nonleaf_alloc_order): Make it a local variable in the
23971 function order_regs_for_local_alloc.
23972 (xtensa_conditional_register_usage): New function.
23973 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23974 (xtensa_valid_move): Allow direct moves to stack pointer
23975 register in call0 ABI.
23976 (xtensa_setup_frame_addresses): Only spill register windows in
23978 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23979 call0 ABI respectively.
23980 (xtensa_function_arg_1): Only mark a7 register for copying in
23982 (xtensa_call_save_reg): New function.
23983 (compute_frame_size): Add space for callee saved register
23984 storage to the frame size in call0 ABI.
23985 (xtensa_expand_prologue): Generate code to set up stack frame
23986 and save callee-saved registers in call0 ABI.
23987 (xtensa_expand_epilogue): New function.
23988 (xtensa_set_return_address): New function.
23989 (xtensa_return_addr): Calculate return address in call0 ABI.
23990 (xtensa_builtin_saveregs): Only mark a7 register for copying and
23991 emit copying code in windowed ABI.
23992 (order_regs_for_local_alloc): Add preferred register allocation
23993 order for non-leaf function in call0 ABI.
23994 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23995 (xtensa_asm_trampoline_template): Add trampoline generation for
23997 (xtensa_trampoline_init): Add trampoline initialization for
23999 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24001 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24002 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24003 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24004 ABI call-used registers.
24005 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24006 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24008 (REG_CLASS_CONTENTS): Include all registers into the preferred
24009 reload registers set, adjust the set in the
24010 xtensa_conditional_register_usage.
24011 (xtensa_regno_to_class): Drop variable declaration.
24012 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24014 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24016 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24017 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24018 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24019 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24020 location in call0 ABI.
24021 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24022 stack adjustment size when handling exception.
24023 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24024 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24026 ("return" pattern): Generate ret.n/ret in call0 ABI.
24027 ("epilogue" pattern): Expand epilogue.
24028 ("nonlocal_goto" pattern): Use default in call0 ABI.
24029 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24030 emit eh_set_a0_* depending on ABI.
24031 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24032 ("eh_set_a0_call0", "blockage"): New patterns.
24034 2015-03-03 Martin Liska <mliska@suse.cz>
24037 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24039 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24042 * config/rs6000/rs6000-tables.opt: Regenerate table.
24044 2015-03-03 Renlin Li <renlin.li@arm.com>
24046 * doc/md.texi (@item ^): Change ? into ^.
24048 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24050 * doc/tm.texi: Regenerated.
24052 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24054 * builtins.c (expand_builtin_return_addr): Add
24055 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24056 surrounding #ifdef.
24057 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24059 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24061 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24063 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24066 2015-03-03 Martin Jambor <mjambor@suse.cz>
24067 Eric Botcazou <ebotcazou@adacore.com>
24069 * tree-sra.c (ipa_sra_check_caller_data): New type.
24070 (has_caller_p): Removed.
24071 (ipa_sra_check_caller): New function.
24072 (ipa_sra_preliminary_function_checks): Use it.
24074 2015-03-03 Martin Liska <mliska@suse.cz>
24076 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24077 instead of if branch.
24079 2015-03-03 Martin Liska <mliska@suse.cz>
24082 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24084 2015-03-23 Jeff Law <law@redhat.com>
24086 PR tree-optimization/65241
24087 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24088 hash table if INSERT is true.
24090 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24093 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24095 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24098 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24099 (avr_pass_data_recompute_notes): New static variable.
24100 (avr_pass_recompute_notes): New class.
24101 (avr_register_passes): New static function.
24102 (avr_option_override): Call it.
24104 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24106 Fix various problems with specs file generation.
24109 * config.gcc (extra_gcc_objs) [avr]: Remove.
24110 * config/avr/driver-avr.c: Remove file.
24111 * config/avr/t-avr (driver-avr.o): Remove rule.
24112 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24113 INCLUDES to build. Depend on TM_H.
24114 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24115 build warnings. Fix non-matching types and non-existing %-codes.
24117 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24118 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24119 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24120 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24121 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24122 (LIBGCC_SPEC): Remove definitions.
24124 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24126 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24127 to create a register in testing mode.
24129 2015-03-03 Martin Liska <mliska@suse.cz>
24130 Jan Hubicka <hubicka@ucw.cz>
24133 * cgraph.c (cgraph_node::has_thunk_p): New function.
24134 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24135 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24136 (sem_function::merge): Assert is changed.
24138 2015-03-03 Martin Liska <mliska@suse.cz>
24139 Martin Jambor <mjambor@suse.cz>
24142 * ipa-icf.c (sem_item_optimizer::execute): Change function
24143 return value to boolean.
24144 (sem_item_optimizer::merge_classes): Likewise.
24145 (ipa_icf_driver): Return TODO_remove_functions in case there's
24146 a merge operation processed.
24147 * ipa-icf.h: Change function return value to boolean.
24149 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24152 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24153 processor type for 64-bit little endian PowerPC.
24155 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24156 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24157 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24158 printing built-in mask so it does not pass NULL pointers.
24160 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24163 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24166 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24167 !ISA_HAS_FP_CONDMOVE.
24169 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24171 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24174 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24176 * doc/invoke.texi (Options for Code Generation Conventions):
24177 Fix URL of DSO paper.
24179 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24182 * ipa-inline.c (check_callers): Looks for recursion.
24183 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24184 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24185 summary of inline clones.
24186 (do_estimate_growth_1): Fix recursion check.
24188 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24191 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24194 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24195 Aldy Hernandez <aldyh@redhat.com>
24198 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24199 when checking TYPE_BINFO.
24201 2015-03-02 Richard Biener <rguenther@suse.de>
24204 * ipa-icf-gimple.c: Include builtins.h.
24205 (func_checker::compare_memory_operand): Compare base alignment.
24207 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24210 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24211 are never passed by reference.
24213 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24216 * tree-chkp.c (chkp_check_lower): Don't check against
24217 zero bounds for already instrumented functions.
24218 (chkp_check_upper): Likewise.
24219 (chkp_fini): Clean pass local data to avoid wrong reusage.
24221 2015-02-28 Martin Liska <mliska@suse.cz>
24222 Jan Hubicka <hubicka@ucw.cz>
24224 * ipa-icf.c (sem_variable::equals): Improve debug output;
24225 get variable constructor.
24226 (sem_variable::parse): Do not filter out too early; give up on
24227 volatile and register vars.
24228 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24230 * ipa-icf.h (sem_variable::init): Do not set ctor.
24231 (sem_variable::ctor): Remove.
24233 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24235 PR middle-end/65233
24236 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24238 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24240 * ipa-icf.c: Include stor-layout.h
24241 (sem_function::compare_cgraph_references): Rename to ...
24242 (sem_item::compare_cgraph_references): ... this one.
24243 (sem_variable::equals_wpa): New function
24244 (sem_variable::equals): Do not check stuff already verified by
24246 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24247 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24248 (sem_function): Remove compare_cgraph_references.
24249 (sem_variable): Turns equals_wpa into non-inline.
24251 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24253 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24254 (sem_item::add_expr): New function.
24255 (sem_function::hash_stmt): Handle operands of most statements.
24256 (sem_variable::get_hash): Hash the actual constructor.
24257 * ipa-icf.h (sem_item): Add add_expr.
24258 (sem_function): Update prototype of hash_stmt
24260 2015-02-28 Martin Liska <mliska@suse.cz>
24261 Jan Hubicka <hubicka@ucw.cz>
24264 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24266 (func_checker::compare_variable_decl): Skip symtab vars.
24267 (func_checker::compare_cst_or_decl): Update.
24268 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24269 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24270 use correct symtab predicates.
24271 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24272 (sem_variable::parse): Update comment.
24273 (sem_item_optimizer::build_graph): Consider ultimate aliases
24276 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24278 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24281 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24283 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24284 (sem_variable::merge) Likewise.
24286 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24288 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24289 target; also match flag_ipa_devirt.
24291 2015-03-01 Martin Liska <mliska@suse.cz>
24292 Jan Hubicka <hubicka@ucw.cz>
24294 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24295 Validate variable alignment.
24296 * ipa-icf.c (sem_function::equals_private): Be more precise
24297 about non-common function attributes.
24298 (sem_variable::equals): Likewise.
24300 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24303 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24304 across COMDAT group boundary.
24306 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24309 * ipa-icf.c (clear_decl_rtl): New function.
24310 (sem_function::merge): Clear RTL before forming alias.
24311 (sem_variable::merge): Clear RTL before forming alias.
24313 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24316 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24318 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24320 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24323 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24325 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24326 a typo in the description.
24328 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24331 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24332 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24333 * lra-constraints.c: Include "params.h".
24334 (EBB_PROBABILITY_CUTOFF): Use
24335 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24336 (lra_inheritance): Use '<' instead of '<=' for
24337 EBB_PROBABILITY_CUTOFF.
24338 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24341 2015-02-27 Martin Liska <mliska@suse.cz>
24343 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24344 vector length condition.
24346 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24348 * doc/extend.texi (x86 transactional memory intrinsics):
24349 Reorganize discussion of _xbegin. Clarify that the return
24350 value is a bit mask. Expand example and move to end of section.
24352 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24353 Aldy Hernandez <aldyh@redhat.com>
24355 PR rtl-optimization/65220
24356 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24358 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24361 * lra-remat.c (update_scratch_ops): New.
24362 (do_remat): Call it.
24363 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24364 (remove_scratches): ... here.
24365 * lra-int.h (lra_register_new_scratch_op): New prototype.
24367 2015-02-27 Marek Polacek <polacek@redhat.com>
24370 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24371 -Wformat-signedness anymore.
24373 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24375 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24377 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24379 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24381 * config/s390/s390.c (enum s390_builtin):
24382 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24383 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24384 (s390_init_builtins): Generate new builtin functions.
24385 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24386 (s390_sfpc, s390_efpc): New pattern definitions.
24388 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24390 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24391 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24392 (s390_builtin_decls): New array.
24393 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24394 (s390_builtin_decl): New function.
24395 (TARGET_BUILTIN_DECL): Define macro.
24397 2015-02-27 Richard Biener <rguenther@suse.de>
24399 PR middle-end/63175
24400 * builtins.c (get_object_alignment_2): Make sure to re-apply
24401 the ANDed mask after recursing to its operand gets us a new
24402 misalignment bit position.
24404 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24405 Martin Liska <mliska@suse.cz>
24408 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24409 Use address_matters_p.
24410 (redirect_all_callers, set_addressable): New functions.
24411 (sem_function::merge): Reorganize and fix merging issues.
24412 (sem_variable::merge): Likewise.
24413 (sem_variable::compare_sections): Remove.
24414 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24416 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24418 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24420 (address_matters_1): New function.
24421 (symtab_node::address_matters_p): New function.
24422 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24423 check for merged flag.
24424 * cgraph.h (address_matters_p): Declare.
24425 (symtab_node::address_taken_from_non_vtable_p): Remove.
24426 (symtab_node::address_can_be_compared_p): New method.
24427 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24428 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24430 (comdat_can_be_unshared_p_1) Use address_matters_p.
24431 (update_vtable_references): Fix formating.
24432 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24433 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24434 * cgraphclones.c: Preserve merged and icf_merged flags.
24436 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24438 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24439 (Label Attributes): Likewise.
24440 (Cilk Plus Builtins): Likewise.
24441 (ARC SIMD Built-in Functions): Likewise.
24442 (ARM C Language Extensions (ACLE)): Likewise.
24443 (PowerPC Built-in Functions): Likewise.
24444 (PowerPC Hardware Transactional Memory Built-in Functions):
24447 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24449 PR tree-optimization/65216
24450 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24451 new stmt and new SSA_NAME for lhs whenever the arguments have
24452 changed and weren't just swapped. Fix comment typo.
24454 PR tree-optimization/65215
24455 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24456 for PDP endian targets.
24457 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24458 Fix up formatting issues.
24459 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24460 size is smaller than the original, adjust MEM_REF offset by the
24461 difference of sizes. Use is_gimple_mem_ref_addr instead of
24462 is_gimple_min_invariant test to avoid adding address temporaries.
24464 2015-02-26 Martin Liska <mliska@suse.cz>
24465 Jan Hubicka <hubicka@ucw.cz>
24468 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24469 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24470 (sem_item_optimizer::process_cong_reduction): Include division by
24471 sensitive references.
24472 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24473 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24474 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24476 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24479 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24481 * config/avr/avr.c: Same.
24482 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24483 Refuse any constant address not in 0..0xbf.
24484 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24485 tiny_valid_direct_memory_access_range from insn conditions.
24486 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24488 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24491 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24492 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24493 * config/sh/predicates.md (const_logical_operand): New predicate.
24494 * config/sh/sh.md: Add new peephole2 patterns.
24496 2015-02-26 Marek Polacek <polacek@redhat.com>
24499 * ipa-inline.c (early_inliner): Recompute inline parameters.
24501 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24504 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24505 instructions with TImode operands are included in the analysis.
24507 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24509 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24510 of an EDGE_FSM_THREAD.
24512 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24514 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24516 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24519 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24521 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24523 PR tree-optimization/65048
24524 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24525 (thread_through_all_blocks): Call valid_jump_thread_path.
24526 Remove invalid FSM jump-thread paths.
24528 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24530 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24531 (ipa_write_optimization_summaries): Likewise.
24532 * tree-streamer.h: Include data-streamer.h.
24533 (streamer_mode_table): Declare extern variable.
24534 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24535 * lto-streamer-out.c (lto_output_init_mode_table,
24536 lto_write_mode_table): New functions.
24537 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24539 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24540 (lto_create_simple_input_block): Add mode_table argument to the
24541 lto_input_block constructors.
24542 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24544 * data-streamer-in.c (string_for_index): Likewise.
24545 * ipa-inline-analysis.c (inline_read_section): Likewise.
24546 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24547 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24548 * lto-streamer-in.c (lto_read_body_or_constructor,
24549 lto_input_toplevel_asms): Likewise.
24550 (lto_input_mode_table): New function.
24551 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24552 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24553 Use bp_pack_machine_mode.
24554 * real.h (struct real_format): Add name field.
24555 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24556 (class lto_input_block): Add mode_table member.
24557 (lto_input_block::lto_input_block): Add mode_table_ argument,
24558 initialize mode_table.
24559 (struct lto_file_decl_data): Add mode_table field.
24560 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24561 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24562 unpack_ts_decl_common_value_fields,
24563 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24564 * tree-streamer.c (streamer_mode_table): New variable.
24565 * real.c (ieee_single_format, mips_single_format,
24566 motorola_single_format, spu_single_format, ieee_double_format,
24567 mips_double_format, motorola_double_format,
24568 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24569 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24570 ibm_extended_format, mips_extended_format, ieee_quad_format,
24571 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24572 decimal_single_format, decimal_double_format, decimal_quad_format,
24573 ieee_half_format, arm_half_format, real_internal_format): Add name
24575 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24577 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24580 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24581 reordering for selective scheduling.
24583 2015-02-26 Terry Guo <terry.guo@arm.com>
24585 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24586 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24587 (arm_arch_no_volatile_ce): Declare new global variable.
24588 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24589 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24590 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24591 (TARGET_NO_VOLATILE_CE): New macro.
24592 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24593 volatile memory access in IT block
24595 2015-02-25 Kai Tietz <ktietz@redhat.com>
24597 PR tree-optimization/61917
24598 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24599 that reduc_def_stmt is null.
24601 2015-02-25 Martin Liska <mliska@suse.cz>
24603 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24604 hard register variables.
24606 2015-02-25 Kai Tietz <ktietz@redhat.com>
24609 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24610 (symtab::noninterposable_alias): Likewise.
24612 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24615 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24617 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24619 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24622 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24623 as split condition; force split via '#' in output pattern.
24625 2015-02-25 Richard Biener <rguenther@suse.de>
24626 Kai Tietz <ktietz@redhat.com>
24628 PR tree-optimization/61917
24629 * tree-vect-loop.c (vectorizable_reduction): Allow
24630 vect_internal_def without reduction to exit graceful.
24632 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24635 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24636 only with NONDEBUG_INSN_P.
24638 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24640 Use variadic macros with avr-log.c.
24642 * config/avr/avr-protos.h (avr_vdump): New prototype.
24643 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24644 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24645 * config/avr/avr-log.c: Adjust comments.
24646 (avr_vdump): New function.
24647 (avr_vadump): Pass caller as 2nd argument instead of format string.
24648 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24649 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24651 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24654 * target.def (target_option_stream_in): New target hook.
24655 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24656 targetm.target_option.post_stream_in if non-NULL.
24657 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24658 * doc/tm.texi: Updated.
24659 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24661 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24663 2015-02-24 Jeff Law <law@redhat.com>
24666 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24667 of operand 0 and operand 2.
24668 (zero_cost_loop_end, loop_end): Similarly.
24670 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24672 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24675 2015-02-24 DJ Delorie <dj@redhat.com>
24677 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24678 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24679 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24680 instead of hardcoding SImode.
24682 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24684 * omp-low.c (create_omp_child_function): Tag entrypoint
24685 functions with a special attribute.
24687 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24690 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24692 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24694 PR rtl-optimization/65123
24695 * lra-remat.c (operand_to_remat): Check hard regs in insn
24698 2015-02-24 Nick Clifton <nickc@redhat.com>
24700 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24703 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24706 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24707 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24708 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24709 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24710 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24711 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24712 (BUILT_IN_GOACC_PARALLEL): Specify as
24713 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24714 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24715 * builtin-types.def
24716 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24717 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24718 Remove function types.
24719 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24720 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24721 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24722 New function types.
24724 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24726 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24728 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24730 PR tree-optimization/65170
24731 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24732 if val[1] < 0, clear also val[2] and return 3.
24734 2015-02-24 Alan Modra <amodra@gmail.com>
24737 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24738 when *base is a reg. Handle nested plus addresses. Simplify
24741 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24743 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24744 use natural alignment when optimizing for size.
24746 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24749 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24750 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24751 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24753 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24756 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24757 too big for a wide_int. Implement missing wrapping operation.
24759 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24762 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24763 instead of const_int 4294901760.
24765 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24767 * config/avr/t-avr: Fix typo in comment.
24769 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24771 * doc/rtl.texi (fma): Clarify documentation.
24773 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24776 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24777 over input_location.
24779 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24781 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24782 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24783 restrict alignments to absolute_biggest_alignment.
24784 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24786 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24787 * doc/tm.texi: Regenerate.
24788 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24790 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24793 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24795 2015-02-20 Richard Biener <rguenther@suse.de>
24797 PR tree-optimization/65136
24798 * tree-ssa-propagate.c: Include cfgloop.h.
24799 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24800 arguments with constants.
24802 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24803 Martin Liska <mliska@suse.cz>
24806 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24807 don't try to create_thunk if stdarg_p. If
24808 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24809 redirect_callers if possible.
24810 (sem_item_optimizer::execute): Call unregister_hooks here...
24811 (ipa_icf_driver): ... instead of here.
24813 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24815 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24816 Mark operand 0 as earlyclobber in 2nd alternative.
24817 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24818 Write negated shift amount into QI lowpart operand 0 and use it
24820 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24822 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24824 * cgraph.h (clone_function_name_1): Declare.
24825 * cgraphclones.c (clone_function_name_1): New function.
24826 (clone_function_name): Use it.
24827 * lto-partition.c: Include "stringpool.h".
24828 (must_not_rename, maybe_rewrite_identifier)
24829 (validize_symbol_for_target): New static functions.
24830 (privatize_symbol_name): Use must_not_rename.
24831 (promote_symbol): Call validize_symbol_for_target.
24832 (lto_promote_cross_file_statics): Likewise.
24833 (lto_promote_statics_nonwpa): Likewise.
24835 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24838 * config/avr/avr.md (pushhi_insn): New insn.
24839 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24841 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24842 Jakub Jelinek <jakub@redhat.com>
24844 * tree-streamer.c (preload_common_nodes): Don't preload
24845 TI_VA_LIST* for offloading.
24846 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24849 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24851 * config/pa/pa.c (pa_emit_move_sequence): Always force
24852 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24855 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24856 (TARGET_ASM_RELOC_RW_MASK): Define.
24857 (pa_cannot_force_const_mem): Revert previous change.
24859 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24860 Jan Hubicka <hubicka@ucw.cz>
24863 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24864 across jump functions.
24866 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24868 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24870 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24872 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24874 2015-02-19 Richard Henderson <rth@redhat.com>
24876 PR middle-end/65074
24877 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24878 test DECL_EXTERNAL independent of symtab_node.
24880 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24883 * varpool.c (varpool_node::get_constructor): Return early
24884 if this->lto_file_data is NULL.
24886 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24888 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24889 (rank_for_schedule_debug): Update.
24890 (ready_sort): Make static. Move sorting logic to ...
24891 (ready_sort_debug, ready_sort_real): New static functions.
24892 (schedule_block): Sort both debug insns and real insns in preparation
24893 for ready list trimming. Improve debug output.
24894 * sched-int.h (ready_sort): Remove global declaration.
24896 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24898 * ipa-icf.c (sem_function::equals_private): Adjust.
24899 (sem_function::bb_dict_test): Take a vec<int> * instead of
24901 * ipa-icf.h (bb_dict_test): Likewise.
24903 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24905 PR gcov-profile/64634
24906 * tree-eh.c (frob_into_branch_around): Fix up typos
24907 in function comment.
24908 (lower_catch): Put eh_seq resulting from EH lowering of
24909 the cleanup sequence after the cleanup rather than before it.
24911 2015-02-18 Tom de Vries <tom@codesourcery.com>
24913 * common.opt (fstdarg-opt): New option.
24914 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24915 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24916 (@item -fstdarg-opt): New item.
24918 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
24921 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24922 for common symbols.
24924 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24926 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
24928 (ALL_HOST_OBJS): Add mkoffload.o.
24929 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
24931 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
24933 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
24934 (compare_virtual_tables): Be smarter about skipping typeinfos;
24935 do sane output on virtual table table mismatch.
24936 (warn_odr): Be ready for forward declarations of enums;
24937 output sane info on base mismatch and virtual table mismatch.
24938 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
24939 when only one type is polymorphic.
24940 (get_odr_type): Fix hashtable corruption.
24941 (dump_odr_type): Dump mangled names.
24943 2015-02-18 Richard Biener <rguenther@suse.de>
24945 PR tree-optimization/65063
24946 * tree-predcom.c (determine_unroll_factor): Return 1 if we
24947 have replaced looparound PHIs.
24949 2015-02-18 Martin Liska <mliska@suse.cz>
24951 * lto-streamer.c (lto_streamer_init): Encapsulate
24952 streamer_check_handled_ts_structures with checking macro.
24954 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24957 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
24958 section if !implicit_section.
24959 (cgraph_node::create_version_clone_with_body): Likewise.
24960 * trans-mem.c (ipa_tm_create_version): Likewise.
24962 2015-02-18 Richard Biener <rguenther@suse.de>
24964 PR tree-optimization/62217
24965 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
24968 2015-02-18 Marek Polacek <polacek@redhat.com>
24971 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24972 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24973 is in range [-16K, -1]. Don't issue run-time error if
24974 (ptr > ptr + offset).
24976 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
24978 * doc/install.texi (nvptx-*-none): New section.
24979 * doc/invoke.texi (Nvidia PTX Options): Likewise.
24980 * config/nvptx/nvptx.opt: Update.
24982 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24983 (access_check): New functions, copied from
24984 config/i386/intelmic-mkoffload.c.
24985 (main): For non-installed testing, look in all COMPILER_PATHs for
24988 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24990 2015-02-18 Andrew Pinski <apinski@cavium.com>
24991 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24993 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24994 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24996 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24998 * ipa-visibility.c (function_and_variable_visibility): Only
24999 check locality if node is not already local.
25000 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25001 call_for_symbol_and_aliases instead of
25002 call_for_symbol_thunks_and_aliases.
25003 (ipa_inline): Likewise.
25004 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25005 first walk aliases.
25006 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25007 call_for_symbol_and_aliases.
25008 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25009 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25010 (ipa_propagate_frequency): Update.
25011 (ipa_profile): Add opt_for_fn gueards.
25013 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25015 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25016 * doc/invoke.texi (SH options): Document it.
25017 * config/sh/sh.c (sh_insn_length_adjustment): Check
25018 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25020 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25022 * common.opt (fipa-cp-alignment): New.
25023 * ipa-cp.c (ipcp_store_alignment_results): Check
25024 flag_ipa_cp_alignment.
25025 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25027 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25028 * doc/invoke.texi: Document -fipa-cp-alignment.
25030 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25033 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25034 to nil. Adjust comments.
25036 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25038 * ipa-visibility.c (function_and_variable_visibility): Only
25039 check locality if node is not already local.
25040 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25041 call_for_symbol_and_aliases instead of
25042 call_for_symbol_thunks_and_aliases.
25043 (ipa_inline): Likewise.
25044 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25045 first walk aliases.
25046 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25047 call_for_symbol_and_aliases.
25048 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25049 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25050 (ipa_propagate_frequency): Update.
25051 (ipa_profile): Add opt_for_fn guards.
25053 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25055 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25056 skipping of "strange" tokens.
25058 2015-02-17 Jeff Law <law@redhat.com>
25060 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25063 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25065 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25066 as forcing a HARD_DEP between instructions, thereby
25067 disallowing rewriting to break dependencies.
25069 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25071 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25072 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25073 variables in boundary that have no inlitalizer encoded and are
25075 * varasm.c (default_binds_local_p_2): External definitions do not
25076 count as definitions here.
25078 2015-02-16 Jeff Law <law@redhat.com>
25080 PR tree-optimization/64823
25081 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25083 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25084 threading through blocks with PHIs, but no statements.
25085 (thread_through_normal_block): Distinguish between blocks where
25086 we did not process all the statements and blocks with no statements.
25088 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25089 James Greenhalgh <james.greenhalgh@arm.com>
25092 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25093 section if not linkonce. Fix up formatting.
25094 (cgraph_node::create_version_clone_with_body): Copy section.
25095 * trans-mem.c (ipa_tm_create_version): Likewise.
25097 2015-02-16 Richard Biener <rguenther@suse.de>
25099 PR tree-optimization/65077
25100 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25101 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25102 (find_func_aliases): Allow float values to carry pointers again.
25104 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25106 * doc/install.texi (Specific): Reorder targets list to put
25107 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25110 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25111 David Edelsohn <dje.gcc@gmail.com>
25114 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25115 mapping class to external variable or function reference.
25116 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25119 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25122 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25123 ASM_WEAKEN_DECL if defined.
25125 2015-02-16 Richard Biener <rguenther@suse.de>
25128 * varasm.c (default_file_start): For LTO produced units
25129 emit <artificial> as file directive.
25131 2015-02-16 Richard Biener <rguenther@suse.de>
25133 PR tree-optimization/63593
25134 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25135 stmts and releasing SSA names until...
25136 (execute_pred_commoning): ... after processing all chains.
25138 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25141 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25142 external functions.
25144 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25146 * doc/bugreport.texi: Adjust section titles throughout the file
25147 to use "Title Case".
25148 * doc/extend.texi: Likewise.
25149 * doc/gcov.texi: Likewise.
25150 * doc/implement-c.texi: Likewise.
25151 * doc/implement-cxx.texi: Likewise.
25152 * doc/invoke.texi: Likewise.
25153 * doc/objc.texi: Likewise.
25154 * doc/standards.texi: Likewise.
25155 * doc/trouble.texi: Likewise.
25157 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25159 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25160 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25161 * tree.c (lookup_binfo_at_offset): Make static.
25162 (get_binfo_at_offset): Do not shadow offset; add explanatory
25165 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25167 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25168 for all floading point loads and stores except those using a register
25170 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25173 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25175 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25176 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25177 (estimate_growth): Handle uninlinable edges correctly.
25178 (check_callers): New.
25179 (growth_likely_positive): Handle aliases correctly.
25181 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25183 * ipa-chkp.c: Use iterate_direct_aliases.
25184 * symtab.c (resolution_used_from_other_file_p): Move inline.
25185 (symtab_node::create_reference): Fix formating.
25186 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25187 (symtab_node::iterate_reference): Move inline.
25188 (symtab_node::iterate_referring): Move inline.
25189 (symtab_node::iterate_direct_aliases): Move inline.
25190 (symtab_node::used_from_object_file_p_worker): Inline into ...
25191 (symtab_node::used_from_object_file_p): ... this one; move inline.
25192 (symtab_node::call_for_symbol_and_aliases): Move inline;
25193 use iterate_direct_aliases.
25194 (symtab_node::call_for_symbol_and_aliases_1): New method.
25195 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25196 use iterate_direct_aliases.
25197 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25198 (varpool_node::call_for_node_and_aliases): Rename to ...
25199 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25200 use iterate_direct_aliases.
25201 (varpool_node::call_for_symbol_and_aliases_1): New method.
25202 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25203 (ipa_discover_readonly_nonaddressable_var): Update.
25204 * ipa-devirt.c: Fix formating.
25205 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25207 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25208 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25209 * cgraph.h (used_from_object_file_p_worker): Remove.
25210 (resolution_used_from_other_file_p): Move inline.
25211 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25212 (symtab_node::iterate_reference): Move inline.
25213 (symtab_node::iterate_referring): Move inline.
25214 (symtab_node::iterate_direct_aliases): Move inline.
25215 (symtab_node::used_from_object_file_p_worker): Inline into ...
25216 (symtab_node::used_from_object_file_p): Move inline.
25217 * tree-emutls.c (ipa_lower_emutls): Update.
25218 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25219 (varpool_node::call_for_node_and_aliases): Remove.
25221 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25223 PR tree-optimization/62209
25224 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25225 op == range->exp, insert seq and gimplified code after labels
25226 instead of after the phi.
25228 2015-02-13 Jeff Law <law@redhat.com>
25231 Revert my change for tree-optimization/64823.
25233 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25235 PR tree-optimization/65053
25236 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25237 cond, either reset VR on lhs or set it to phi result VR.
25239 2015-02-13 Jeff Law <law@redhat.com>
25241 PR tree-optimization/64823
25242 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25243 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25244 threading through blocks with PHIs, but no statements.
25245 (thread_through_normal_block): Distinguish between blocks where
25246 we did not process all the statements and blocks with no statements.
25248 PR rtl-optimization/47477
25249 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25250 simplifier to narrow arithmetic.
25252 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25255 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25256 polymorphic call info when type is not known to be preserved.
25258 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25261 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25262 (inline_call): Use it.
25264 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25266 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25267 GOMP_DEVICE_NVIDIA_PTX.
25269 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25272 * stmt.c (emit_case_nodes): Use void_type_node instead of
25273 NULL_TREE as LABEL_DECL type.
25275 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25277 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25279 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25280 symbolic references to data to be forced to constant memory on the
25283 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25285 PR tree-optimization/65002
25286 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25288 * tree-sra.c (some_callers_have_no_vuse_p): New.
25289 (ipa_early_sra): Reject functions whose callers
25290 assume function is read only.
25292 2015-02-13 Richard Biener <rguenther@suse.de>
25295 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25296 for LTO produced CUs.
25298 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25300 PR tree-optimization/64705
25301 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25302 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25303 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25304 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25305 expand_simple_operations.
25307 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25308 Richard Henderson <rth@redhat.com>
25311 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25312 before notice_global_symbol.
25313 (varpool_node::finalize_decl): Likewise.
25314 * varasm.c (default_binds_local_p_2): Rename from
25315 default_binds_local_p_1, add weak_dominate argument. Use direct
25316 returns instead of assigning to local variable. Unify varpool and
25317 cgraph paths via symtab_node. Reject undef weak variables before
25318 testing visibility. Reorder tests for simplicity.
25319 (default_binds_local_p): Use default_binds_local_p_2.
25320 (default_binds_local_p_1): Likewise.
25321 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25323 (default_elf_asm_output_external): Emit visibility when specified.
25325 2015-02-13 Alan Modra <amodra@gmail.com>
25327 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25328 code setting up r11 for out-of-line fp restore.
25330 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25332 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25333 (muser-mode): Likewise.
25335 2015-02-13 Alan Modra <amodra@gmail.com>
25337 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25338 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25340 2015-02-12 David Howells <dhowells@redhat.com>
25342 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25344 * tree-ssa-uninit.c (dump_predicates): Likewise.
25345 * opts.c (print_filtered_help): Likewise.
25347 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25349 * dwarf2out.c (output_die): Use "%s", name instead of name to
25350 avoid -Wformat-security warning.
25352 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25353 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25354 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25355 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25357 2015-02-12 Jason Merrill <jason@redhat.com>
25359 * common.opt (-flifetime-dse): New.
25361 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25364 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25366 PR tree-optimization/65014
25367 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25368 use original second operand of arg0 or arg1 instead of
25369 that adjusted by STRIP_NOPS.
25371 2015-02-11 Jeff Law <law@redhat.com>
25374 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25375 that needs to be queued, just queue it for a single cycle.
25377 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25379 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25380 bodies of thunks; comment on why.
25381 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25382 symbols are extern.
25384 2015-02-11 Richard Henderson <rth@redhat.com>
25387 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25388 regions of __builtin_eh_copy_values.
25390 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25392 PR middle-end/65003
25393 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25394 ultimate alias is MEM with SYMBOL_REF satisfying
25395 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25396 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25398 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25400 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25401 "diagnostic-core.h".
25402 (main): Initialize progname, and call diagnostic_initialize.
25404 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25405 instead of __OPENMP_TARGET__.
25407 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25408 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25409 hard-coding PTX_ID.
25411 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25413 * doc/sourcebuild.texi (pie_enabled): Document.
25415 2015-02-11 Martin Liska <mliska@suse.cz>
25418 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25419 a return value for call to a function that is noreturn.
25421 2015-02-11 Richard Biener <rguenther@suse.de>
25424 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25427 2015-02-11 Andrew Pinski <apinski@cavium.com>
25430 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25431 Change the first argument type to size_type_node and add another
25433 (aarch64_simd_expand_builtin): Handle the new argument to
25434 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25435 print an out when the first two arguments are not
25436 nonzero integer constants.
25437 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25438 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25440 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25443 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25444 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25445 (ix86_set_current_function): Rewritten.
25446 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25447 when creating builtin fndecls.
25449 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25452 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25454 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25455 have no comdat group.
25456 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25457 (lto_output_varpool_node): Always output alias info.
25458 (output_refs): Output refs of boundary aliases, too.
25459 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25460 (output_symtab): Output call eges in thunks in boundary.
25461 (get_alias_symbol): Remove.
25462 (input_node, input_varpool_node): Do not special case weakrefs.
25463 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25464 alias and thunks targets in the boundary; do not take removed symbols
25465 from their comdat groups.
25466 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25467 (cgraph_node::global_info): Remove.
25468 (cgraph_node::rtl_info): Look through aliases and thunks.
25469 * cgrpah.h (global_info): Remove.
25470 (non_local_p): Remove.
25472 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25473 Sandra Loosemore <sandra@codesourcery.com>
25475 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25476 to inline asm. List dialects in proper order.
25478 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25479 Sandra Loosemore <sandra@codesourcery.com>
25481 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25483 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25485 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25486 modified) reference to Solaris.
25488 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25490 * doc/extend.texi (Extended Asm): Fix typos.
25492 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25495 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25497 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25500 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25501 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25502 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25503 * config/sh/constraints.md (Ara, Add): New constraints.
25504 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25506 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25507 atomic_mem_operand_0. Don't use force_reg on the memory address.
25508 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25509 Sra constraint. Convert to insn_and_split. Add workaround for
25511 (atomic_compare_and_swap<mode>_hard): Copy to
25512 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25513 Use atomic_mem_operand_0 predicate.
25514 (atomic_compare_and_swap<mode>_soft_gusa,
25515 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25516 AraAdd constraints.
25517 (atomic_compare_and_swap<mode>_soft_tcb,
25518 atomic_compare_and_swap<mode>_soft_imask,
25519 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25520 atomic_mem_operand_0 predicate and SraSdd constraints.
25521 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25523 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25524 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25525 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25526 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25527 force_reg on the memory address.
25528 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25529 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25530 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25531 atomic_mem_operand_1 predicate and Sra constraint.
25532 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25533 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25534 Use atomic_mem_operand_1 predicate.
25535 (atomic_<fetchop_name><mode>_hard): Copy to
25536 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25537 Use atomic_mem_operand_1 predicate.
25538 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25539 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25540 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25541 insn_and_split. Use atomic_mem_operand_1 predicate.
25542 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25543 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25544 Use atomic_mem_operand_1 predicate.
25545 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25546 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25547 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25548 in generated insn with original mem operand before emitting the insn.
25549 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25550 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25551 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25552 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25553 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25554 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25555 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25556 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25557 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25558 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25559 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25560 atomic_not_fetch<mode>_soft_tcb,
25561 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25562 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25563 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25564 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25566 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25568 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25569 and 3 earlyclobber operands.
25571 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25573 * common.opt (fstack-reuse): Mark as optimization.
25575 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25578 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25580 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25582 PR tree-optimization/64326
25583 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25585 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25587 PR gcov-profile/61889
25588 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25590 2015-02-10 Richard Biener <rguenther@suse.de>
25592 PR tree-optimization/64995
25593 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25594 value we use is final.
25595 (visit_reference_op_store): Always valueize op.
25596 (visit_use): Properly valueize vuses.
25598 2015-02-10 Richard Biener <rguenther@suse.de>
25600 PR tree-optimization/64909
25601 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25602 pass a scalar-stmt count estimate to the cost model.
25603 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25605 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25607 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25608 enabled by default together with var-tracking.
25610 2015-02-10 Nick Clifton <nickc@redhat.com>
25612 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25613 included in previous rl78 commit.
25615 2015-02-10 Richard Biener <rguenther@suse.de>
25617 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25618 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25619 return the bitpack.
25621 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25623 PR gcov-profile/61889
25624 * config.in: regenerate.
25625 * configure.in: Likewise.
25626 * configure.ac: Check for ftw.h.
25627 * gcov-tool.c: Check for ftw.h before using nftw.
25629 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25632 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25633 assert when not in lto mode.
25635 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25637 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25638 initialization/assignment of conflict_size.
25640 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25643 * ipa-cp.c (gather_caller_stats): Skip thunks.
25644 (propagate_constants_topo): Skip aliases.
25646 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25649 * config/sh/sh.c (sh_option_override): Don't change
25650 -freorder-blocks-and-partition to -freorder-blocks even when
25651 unwinding is enabled.
25652 (sh_can_follow_jump): Return false if the followee jump is
25653 a crossing jump when -freorder-blocks-and-partition is specified.
25654 * config/sh/sh.md (*jump_compact_crossing): New insn.
25656 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25657 Kaz Kojima <kkojima@gcc.gnu.org>
25660 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25661 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25662 (sh_can_redirect_branch): Rename to ...
25663 (sh_can_follow_jump): ... this. Constify argument types.
25664 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25665 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25666 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25667 * doc/tm.texi: Regenerate.
25669 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25672 * builtins.c (expand_builtin): Call targetm.expand_builtin
25673 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25675 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25678 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25680 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25683 * ipa-icf.c (set_local): New function.
25684 (sem_function::merge): Use it.
25686 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25688 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25689 (add_type_duplicate): Fix comparison of BINFOs.
25691 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25693 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25694 on getting VOID pointer.
25696 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25699 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25702 2015-02-09 Richard Biener <rguenther@suse.de>
25704 * genmatch.c (replace_id): Copy expr_type.
25706 2015-02-09 Richard Biener <rguenther@suse.de>
25708 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25709 (streamer_write_tree_bitfields): Declare.
25710 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25711 properly unpack padding.
25712 (unpack_value_fields): Inline ...
25713 (streamer_read_tree_bitfields): ... here.
25714 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25715 and properly add padding bits.
25716 (streamer_pack_tree_bitfields): Fold into ...
25717 (streamer_write_tree_bitfields): ... this new function,
25718 exposing the bitpack object.
25719 * lto-streamer-out.c (lto_write_tree_1): Call
25720 streamer_write_tree_bitfields.
25722 2015-02-09 Richard Biener <rguenther@suse.de>
25724 PR tree-optimization/54000
25725 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25726 (struct ivopts_data): Add loop_loc member.
25727 (tree_ssa_iv_optimize_loop): Dump loop location.
25728 (create_new_ivs): Likewise, also dump number of IVs generated.
25730 2015-02-09 Martin Liska <mliska@suse.cz>
25732 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25733 just if not yet registered.
25734 (ipa_icf_generate_summary): Register callgraph hooks.
25736 2015-02-08 Andrew Pinski <apinski@cavium.com>
25738 * config/aarch64/aarch64.c (gty_dummy): Delete.
25740 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25743 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25744 (cgraph_node::local_p): Remove thunk related FIXME.
25746 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25749 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25750 is local and optimized.
25751 (ix86_function_sseregparm): Likewise; also use target's SSE math
25752 settings; error out instead of silently generating wrong code
25754 (init_cumulative_args): Look through aliases.
25756 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25759 * ipa-split.c (execute_split_functions): Split if function has aliases.
25761 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25764 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25765 aliases before trying to expand it.
25766 (cgraph_node::expand_thunk): Fix formating.
25768 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25770 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25771 (Using Assembly Language with C): Expand introduction.
25772 (Basic Asm): Copy-edit. Add more information about uses of
25774 (Extended Asm): Copy-edit. Document new escape syntax and
25776 (Global Reg Vars): Copy-edit.
25777 (Local Reg Vars): Likewise.
25779 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25783 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25784 (DBX_CONTIN_CHAR): Define.
25786 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25787 Brian Rzycki <b.rzycki@samsung.com>
25789 PR tree-optimization/64878
25790 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25791 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25792 Stop recursion at loop phi nodes after having visited a loop phi node.
25794 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25796 * toplev.c (process_options): Change flag_ipa_ra before creating
25797 optimization_{default,current}_node.
25800 * cgraphunit.c (cgraph_node::expand_thunk): If
25801 restype is not is_gimple_reg_type nor the thunk_fndecl
25802 returns aggregate_value_p, set restmp to a temporary variable
25803 instead of resdecl.
25805 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25807 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25809 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25812 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25813 add a general secondary reload handler for SDmode, unless we have
25814 both read/write support for SDmode.
25816 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25818 PR middle-end/64937
25819 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25820 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25821 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25822 1 before, push it to abstract_vec.
25823 (dwarf2out_abstract_function): Adjust caller. Don't call
25824 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25825 DECL_ABSTRACT_P flags for all abstract_vec elts.
25827 2015-02-06 Renlin Li <renlin.li@arm.com>
25829 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25831 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25833 2015-02-06 Jeff Law <law@redhat.com>
25836 * config/h8300/h8300.c (push): New argument "in_prologue".
25837 Pass "in_prologue" along to "F".
25838 (h8300_push_pop): Corresponding changes.
25839 (h8300_expand_prologue): Likewise.
25840 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25842 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25844 PR rtl-optimization/64957
25846 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25847 IOR rather than for AND.
25849 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25852 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25853 of shift-add and (add + shift) operations. Rename local variable.
25855 2015-02-05 Jeff Law <law@redhat.com>
25858 * config/h8300/constraints.md (U): Correctly dectect
25859 "eightbit_data" memory addresses.
25860 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25861 handle (const (plus (symbol_ref (x)))) where x is declared
25862 as an 8-bit data memory address.
25863 * config/h8300/h8300.md (call, call_value): Correctly detect
25864 "funcvec" functions.
25867 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25868 24 to 28 bits for the H8/300.
25870 2015-02-06 Alan Modra <amodra@gmail.com>
25873 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25874 (rs6000_call_aix): Use it.
25876 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25878 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25881 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25883 * config/h8300/constraints.md ("U" constraint): Use strict
25884 variant of REG_OK_FOR_BASE_P after reload has started.
25886 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25888 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25889 define to zero if !TARGET_NEON.
25890 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25892 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25893 Trevor Saunders <tsaunders@mozilla.com>
25896 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25898 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25901 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25902 when removing varpool nodes.
25904 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25907 * varpool.c (varpool_node::remove): Fix order of variables.
25909 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25912 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25913 speculation resolution and key updates.
25915 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25917 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25918 about not letting any speculative edges unupdated.
25920 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25923 * gcov-io.c (gcov_var): Export.
25925 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25927 PR middle-end/64922
25928 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
25929 edges that become speculative.
25931 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25933 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
25934 or DW_LANG_Fortran08.
25935 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
25937 (gen_compile_unit_die): Handle "GNU Fortran2003" and
25938 "GNU Fortran2008" language strings.
25939 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
25940 * langhooks.h (lang_GNU_Fortran): New prototype.
25941 * langhooks.c (lang_GNU_Fortran): New function.
25942 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
25945 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25947 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
25948 (RTX_OK_FOR_OLO10_P): Likewise.
25950 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25952 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
25954 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25956 PR middle-end/64922
25957 * gimple.c: Include gimple-ssa.h.
25958 (maybe_remove_unused_call_args): New function.
25959 * gimple.h (maybe_remove_unused_call_args): Declare.
25960 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
25961 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25962 * gimple-fold.c (gimple_fold_call): Likewise.
25964 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
25966 PR rtl-optimization/64905
25967 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
25968 pointer alignment if it isn't needed.
25970 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25972 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25973 cortex-a72.cortex-a53.
25974 * config/aarch64/aarch64-tune.md: Regenerate.
25975 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25977 2015-02-04 Nick Clifton <nickc@redhat.com>
25979 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25982 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25984 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25985 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25986 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25988 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25989 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25990 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25991 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25992 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25993 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25994 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25995 * tree-core.h (enum built_in_function): In between
25996 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25997 for builtins that use DEF_BUILTIN_CHKP macro.
25999 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26002 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26003 operands for tcc_comparison exprs. Fix typos.
26006 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26007 of two XORs that have an intervening AND or IOR.
26010 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26011 simplification of XOR of AND to not allocate new rtx before
26012 committing to a simplification.
26014 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26016 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26017 manual swaps in all peepholes.
26019 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26021 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26022 of manual swapping implementation.
26023 (aarch64_expand_vec_perm_const_1): Likewise.
26025 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26027 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26028 (generic_addrcost_table): Remove NAMED_PARAM.
26029 (cortexa57_addrcost_table): Likewise.
26030 (xgene1_addrcost_table): Likewise.
26031 (generic_regmove_table): Likewise.
26032 (cortexa53_regmove_table): Likewise.
26033 (xgene1_regmove_table): Likewise.
26034 (generic_vector_table): Likewise.
26035 (cortexa57_vector_table): Likewise.
26036 (xgene1_vector_table): Likewise.
26037 (generic_tunings): Likewise.
26038 (cortexa53_tunings): Likewise.
26039 (cortexa57_tunings): Likewise.
26040 (xgene1_tunings): Likewise.
26042 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26044 * config/arm/arm-cores.def: Add cortex-a72 and
26045 cortex-a72.cortex-a53.
26046 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26047 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26048 * config/arm/arm-tune.md: Regenerate.
26049 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26050 "cortex-a72.cortex-a53".
26051 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26053 2015-02-04 Nick Clifton <nickc@redhat.com>
26056 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26058 (nonimmediate_di_operand): Likewise.
26060 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26061 prefixes of known F5 using MSP430 MCUs.
26063 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26065 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26066 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26067 instead of __builtin_sqrt.
26069 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26071 * varasm.c (do_assemble_alias): Follow transparent alias
26073 (default_assemble_visibility): Follow transparent alias
26074 chain for decl name.
26076 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26078 PR middle-end/62103
26079 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26080 to compute size of referenced value in the constant case.
26082 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26084 PR rtl-optimization/64756
26085 * cse.c (invalidate_dest): New function.
26086 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26087 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26088 invalidate and do not record it.
26090 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26093 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26094 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26095 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26096 atomic_nand<mode>_soft_tcb): New insns.
26097 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26098 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26099 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26100 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26101 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26102 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26103 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26104 atomic_not<mode>_hard if operands[0] is unused.
26105 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26106 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26107 if operands[0] is unused.
26108 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26109 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26110 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26111 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26113 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26114 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26115 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26116 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26117 if operands[0] is unused.
26118 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26119 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26120 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26121 atomic_nand_fetchsi_hard if operands[0] is unused.
26122 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26123 atomic_nand<mode>_hard if operands[0] is unused.
26124 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26125 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26126 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26127 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26128 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26129 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26130 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26131 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26132 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26133 atomic_not<mode>_hard if operands[0] is unused.
26134 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26135 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26137 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26138 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26139 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26140 atomic_nand<mode>_hard if operands[0] is unused.
26141 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26142 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26144 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26147 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26148 * gcc-main.c: New file, containing "main" taken from gcc.c.
26149 * gcc.c (do_self_spec): Free decoded_options.
26150 (class driver): Move declaration to gcc.h.
26151 (main): Move declaration and implementation to new file
26153 (driver_get_configure_time_options): New function.
26154 * gcc.h (class driver): Move this declaration here, from
26156 (driver_get_configure_time_options): New declaration.
26158 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26160 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26161 cross-module inlining.
26162 * cgraph.h (cgraph_node): Add flag merged.
26163 * ipa-icf.c (sem_function::merge): Maintain it.
26165 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26167 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26168 instead of OBJECT_P.
26170 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26173 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26174 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26175 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26176 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26178 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26181 * combine.c (reg_n_sets_max): New variable.
26182 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26183 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26184 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26185 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26186 (rest_of_handle_combine): Initialize reg_n_sets_max.
26188 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26190 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26191 if some always_inline was inlined, apply changes before inlining
26194 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26197 * config/arm/arm.c (arm_option_override): Set
26198 arm_selected_arch/cpu/tune to NULL on entry.
26200 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26201 Andrew Pinski <pinskia@gcc.gnu.org>
26202 Jakub Jelinek <jakub@gcc.gnu.org>
26205 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26206 integer typing for small model. Use IN_RANGE.
26208 2015-02-02 Richard Biener <rguenther@suse.de>
26210 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26211 * tree-vrp.c (vrp_valueize_1): Likewise.
26213 2015-02-02 Alan Modra <amodra@gmail.com>
26215 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26216 than mem for toc_restore.
26217 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26218 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26219 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26221 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26224 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26225 explicit default options.
26227 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26230 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26231 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26232 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26234 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26237 * cfgexpand.c (deep_ter_debug_map): New variable.
26238 (avoid_deep_ter_for_debug): New function.
26239 (expand_debug_expr): If TERed SSA_NAME is in
26240 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26241 instead of trying to expand SSA_NAME's def stmt.
26242 (expand_debug_locations): When expanding debug bind
26243 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26244 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26246 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26247 all debug bind stmts. Delete deep_ter_debug_map after
26248 expand_debug_location if non-NULL and clear it.
26250 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26253 * config/sh/sync.md (atomic_fetch_notsi_hard,
26254 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26255 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26256 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26257 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26258 atomic_not_fetch<mode>_soft_imask): New insns.
26260 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26262 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26263 (rank_for_schedule_debug): Split from ...
26264 (rank_for_schedule): ... this.
26265 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26266 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26268 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26270 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26271 * doc/extend.texi (x86 Variable Attributes): Move section to
26272 correct alphabetization after renaming.
26273 (x86 Type Attributes): Likewise.
26274 (Target Builtins): Re-alphabetize menu.
26275 (x86 Built-in Functions): Move section to correct alphabetization
26277 (x86 transactional memory intrinsics): Likewise.
26278 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26279 and x86 Windows Options in table and menu.
26280 (x86 Options): Move section to correct alphabetization after
26282 (x86 Windows Options): Likewise.
26284 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26286 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26287 preferred names of the architecture and its 32- and 64-bit
26289 * doc/invoke.texi: Likewise.
26290 * doc/md.texi: Likewise.
26292 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26295 * config/i386/predicates.md (address_no_seg_operand): Reject
26296 non-CONST_INT_P operands in invalid mode.
26298 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26300 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26301 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26302 * config/i386/predicates.md (address_no_seg_operand): Call
26303 address_operand with VOIDmode.
26304 (vsib_address_operand): Ditto.
26305 (address_mpx_no_base_operand): Ditto.
26306 (address_mpx_no_index_operand): Ditto.
26308 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26311 * lra-constraints.c (original_subreg_reg_mode): New.
26312 (simplify_operand_subreg): Try to simplify subreg of const. Use
26313 original_subreg_reg_mode for it.
26314 (swap_operands): Update original_subreg_reg_mode.
26315 (curr_insn_transform): Set up original_subreg_reg_mode.
26317 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26320 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26322 (process_alt_operands): Use it.
26323 (curr_insn_transform): Check the optional reload pseudo class is
26326 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26328 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26329 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26331 * toplev.h (init_asm_output): Update comment on use of
26332 UNKNOWN_LOCATION with fatal_error.
26333 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26334 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26335 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26336 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26337 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26338 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26339 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26340 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26341 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26342 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26343 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26344 fatal_error changed to pass input_location as first argument.
26346 2015-01-30 Martin Liska <mliska@suse.cz>
26348 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26349 in #pragma GCC diagnostic guards.
26351 2015-01-30 Richard Biener <rguenther@suse.de>
26353 PR tree-optimization/64829
26354 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26355 not add a widening conversion pattern but hand off extra
26356 widenings to callers.
26357 (vect_recog_widen_mult_pattern): Handle extra widening produced
26358 by vect_handle_widen_op_by_const.
26359 (vect_recog_widen_shift_pattern): Likewise.
26360 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26361 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26362 (vect_init_vector_1): Likewise.
26363 (vect_get_vec_def_for_operand): Likewise.
26364 (vect_finish_stmt_generation): Likewise.
26365 (vectorizable_load): Likewise.
26366 (vect_analyze_stmt): Likewise.
26367 (vect_is_simple_use): Likewise.
26369 2015-01-29 Jeff Law <law@redhat.com>
26371 * combine.c (try_combine): Fix typo in comment.
26373 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26376 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26377 (rs6000_stack_info): Add assert.
26378 (rs6000_output_savres_externs): New function, split off from...
26379 (rs6000_output_function_prologue): ... here. Do not call it for
26382 2015-01-29 Jeff Law <law@redhat.com>
26385 * combine.c (try_combine): If I0 is a memory load and I3 a store
26386 to a related address, increase the "goodness" of doing a 4-insn
26387 combination with I0-I3.
26388 (make_field_assignment): Handle SUBREGs in the ior+and case.
26390 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26392 PR tree-optimization/64746
26393 * tree-if-conv.c (mask_exists): New function.
26394 (predicate_mem_writes): Save created mask with given size for further
26396 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26397 (ifcvt_repair_bool_pattern): Collect all statements that are root
26398 of bool pattern and use iterative algorithm to remove multiple uses
26399 of predicates, display number of required iterations.
26401 2015-01-29 Richard Biener <rguenther@suse.de>
26403 PR tree-optimization/64853
26404 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26405 stmt will get simulated again.
26406 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26408 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26410 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26411 return_in_pc. Remove redundant assignments.
26412 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26413 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26415 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26417 * config/i386/i386.c (ix86_mode_after): Make static.
26419 2015-01-29 Richard Biener <rguenther@suse.de>
26421 PR tree-optimization/64844
26422 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26423 dump cost model analysis.
26424 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26425 Do not register adjusted load/store costs here.
26427 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26428 Uros Bizjak <ubizjak@gmail.com>
26430 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26431 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26432 using x86_use_pseudo_pic_reg.
26433 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26434 support for fixed PIC register.
26435 (ix86_use_pseudo_pic_reg): Not static any more.
26437 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26439 PR middle-end/64805
26440 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26441 to avoid error in cgraph node verification.
26443 2015-01-29 Marek Polacek <polacek@redhat.com>
26445 * doc/standards.texi: Reflect that the default for C is gnu11.
26447 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26450 * reorg.c (switch_text_sections_between_p): New function.
26451 (relax_delay_slots): Call it when testing if the jump insn
26452 is removable. Use targetm.can_follow_jump when testing if
26453 the conditional branch can follow an unconditional jump.
26455 2015-01-27 Caroline Tice <cmtice@google.com>
26457 Committing VTV Cywin/Ming patch for Patrick Wollgast
26458 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26459 if -fvtable-verify=preinit/std is used.
26460 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26461 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26462 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26463 if -fvtable-verify=preinit/std is used.
26464 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26465 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26466 if -fvtable-verify=preinit/std is used.
26467 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26468 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26469 * varasm.c (assemble_variable): Add code to properly set the comdat
26470 section and name for the .vtable_map_vars section in case the
26471 target is PE or COFF.
26473 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26476 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26477 make sane BB profile.
26478 (cgraph_node::expand_thunk): Make sane BB profile.
26479 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26480 * cgraph.h (init_lowered_empty_function): Update prototype.
26481 * config/i386/i386.c (make_resolver_func): Update call.
26482 * predict.c (gate): Disable branch prediction pass if
26483 profile is already there.
26485 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26487 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26488 * opth-gen.awk: Likewise.
26489 * common.opt: Mark flag_fp_contract_mode as Optimization.
26491 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26493 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26494 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26496 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26499 * config/sh/predicates.md (atomic_arith_operand,
26500 atomic_logical_operand): Remove.
26501 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26502 (atomic_arith_operand_0): New predicate.
26503 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26504 Use atomic_arith_operand_0 for input values.
26505 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26506 atomic_compare_and_swap<mode>_soft_gusa,
26507 atomic_compare_and_swap<mode>_soft_tcb,
26508 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26509 arith_reg_operand instead of register_operand.
26510 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26511 atomic_arith_operand_0 for newval input.
26512 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26513 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26514 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26515 arith_reg_operand instead of register_operand.
26516 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26517 fetchop_predicate_1, fetchop_constraint_1_llcs,
26518 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26519 fetchop_constraint_1_imask): New code iterator attributes.
26520 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26521 register_operand. Use fetchop_predicate_1.
26522 (atomic_fetch_<fetchop_name>si_hard,
26523 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26524 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26525 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26526 and arith_reg_operand instead of register_operand. Use
26527 fetchop_predicate_1, fetchop_constraint_1_gusa.
26528 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26529 and arith_reg_operand instead of register_operand. Use
26530 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26532 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26533 and arith_reg_operand instead of register_operand. Use
26534 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26536 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26537 register_operand. Use atomic_logical_operand_1.
26538 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26539 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26540 arith_reg_operand instead of register_operand.
26541 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26542 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26543 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26544 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26545 register_operand. Use fetchop_predicate_1.
26546 (atomic_<fetchop_name>_fetchsi_hard,
26547 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26548 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26549 fetchop_constraint_1_llcs.
26550 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26551 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26552 fetchop_constraint_1_gusa.
26553 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26554 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26555 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26556 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26557 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26558 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26559 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26560 register_operand. Use atomic_logical_operand_1.
26561 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26562 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26563 arith_reg_operand instead of register_operand.
26564 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26565 arith_reg_operand instead of register_operand. Use logical_operand
26566 and K08. Adjust asm sequence to allow R0 usage.
26567 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26568 arith_reg_operand instead of register_operand. Use logical_operand
26571 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26574 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26575 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26576 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26577 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26578 all bits in *val_wide.
26580 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26582 * varpool.c (tls_model_names): Fix names.
26583 (varpool_node::dump): Dump tls- prefix for tls models.
26585 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26586 Bernd Schmidt <bernds@codesourcery.com>
26587 Nathan Sidwell <nathan@codesourcery.com>
26589 * config/nvptx/mkoffload.c: New file.
26590 * config/nvptx/t-nvptx: Add build rules for it.
26591 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26592 (extra_programs): Add mkoffload.
26593 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26595 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26597 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26599 PR middle-end/64809
26600 * cfgexpand.c (reorder_operands): Skip debug gimples.
26602 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26604 PR tree-optimization/64277
26605 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26606 range info when possible to refine estimation.
26608 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26610 PR tree-optimization/64718
26611 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26612 be a 16bit unsigned integer when n->range is 16.
26613 (bswap_replace): Convert src to that type if necessary for all bswap
26614 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26615 set in pass_optimize_bswap::execute ().
26617 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26619 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26620 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26621 integer and floating point variants.
26622 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26624 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26626 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26627 for all vector modes.
26629 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26632 * doc/sourcebuild.texi (comdat_group): Document.
26634 2015-01-28 Terry Guo <terry.guo@arm.com>
26636 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26638 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26640 * toplev.c (print_version): Add param "show_global_state", and
26641 only print GGC and plugin information if it is true.
26642 (init_asm_output): Pass in "true" for the new param when calling
26644 (process_options): Likewise.
26645 (toplev::main): Likewise.
26646 * toplev.h (print_version): Add new param to decl.
26648 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26652 * tree.c (lookup_binfo_at_offset): New function.
26653 (get_binfo_at_offset): Use it.
26655 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26658 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26659 on vtable being vtable.
26661 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26663 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26664 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26665 -mhotpatch= option.
26666 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26667 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26668 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26670 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26671 (s390_hotpatch_hw_max): New name.
26672 (s390_hotpatch_trampoline_halfwords): Renamed.
26673 (s390_hotpatch_hw_before_label): New name.
26674 (get_hotpatch_attribute): Removed.
26675 (s390_hotpatch_hw_after_label): New name.
26676 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26678 (s390_attribute_table): Ditto.
26679 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26680 (s390_function_num_hotpatch_hw): New name.
26681 Remove special handling of inline functions and hotpatching.
26682 Return number of nops before and after the function label.
26683 (s390_can_inline_p): Removed.
26684 (s390_asm_output_function_label): Emit a configurable number of nops
26685 after the function label.
26686 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26687 (TARGET_CAN_INLINE_P) Removed.
26688 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26690 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26691 Jiong Wang <jiong.wang@arm.com>
26693 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26695 (cb<optab><mode>1): Likewise.
26696 * config/aarch64/iterators.md (bcond): New define_code_attr.
26698 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26700 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26703 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26705 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26708 2015-01-27 Richard Biener <rguenther@suse.de>
26710 * tree-vrp.c (update_value_range): Intersect the range with
26711 old recorded SSA name range information.
26713 2015-01-27 Nick Clifton <nickc@redhat.com>
26715 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26716 BC, DE and HL registers directly, not via AX.
26717 When decrementing the stack pointer by a large amount, transfer SP
26718 into AX and perform the subtraction there.
26719 (rl78_expand_epilogue): Perform the inverse of the above
26722 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26724 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26726 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26727 Yury Gribov <y.gribov@samsung.com>
26730 * ubsan.c (ubsan_source_location): Refactor code.
26731 (ubsan_type_descriptor): Update type size. Refactor code.
26733 2015-01-27 Richard Biener <rguenther@suse.de>
26735 PR tree-optimization/56273
26736 PR tree-optimization/59124
26737 PR tree-optimization/64277
26738 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26739 from the first VRP pass.
26741 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26744 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26745 handle the first argument in the same loop as all the other arguments.
26747 PR rtl-optimization/61058
26748 * jump.c (cleanup_barriers): Update basic block boundaries
26749 if BLOCK_FOR_INSN is non-NULL on PREV.
26751 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26753 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26754 bounds narrowing, already instrumented calls and calls to
26755 not instrumentable functions.
26757 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26759 PR tree-optimization/64807
26760 * wide-int.cc (wi::divmod_internal): Clear
26761 b_dividend[dividend_blocks_needed].
26763 2015-01-26 DJ Delorie <dj@redhat.com>
26765 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26766 volatile memory references.
26768 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26771 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26773 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26774 shifts if it already fits into K08.
26776 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26779 * ipa-inline.c (inline_small_functions): Print "unknown" even
26780 if edge->call_stmt is non-NULL, but has builtins or unknown
26783 PR middle-end/64421
26784 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26785 with asterisk, skip the first character.
26787 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26790 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26793 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26796 * config/i386/i386.md (*movdi_internal): Also check operand 0
26797 to determine TYPE_LEA operand.
26798 (*movsi_internal): Ditto.
26800 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26802 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26803 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26805 2015-01-26 Renlin Li <renlin.li@arm.com>
26807 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26809 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26812 2015-01-26 Richard Biener <rguenther@suse.de>
26814 PR middle-end/64764
26815 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26816 combining two BIT_AND_EXPR predicates.
26818 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26821 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26823 2015-01-26 Terry Guo <terry.guo@arm.com>
26825 * config/arm/arm.c (arm_file_start): Update the assignment of
26826 Tag_ABI_HardFP_use.
26828 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26830 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26832 config/arm/arm.md: Include the new Cortex-A57 model.
26833 (generic_sched): Don't use generic_sched when tuning for
26836 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26837 Uros Bizjak <ubizjak@gmail.com>
26839 * config/i386/i386.c (get_builtin_code_for_version): Add
26840 support for BMI and BMI2 multiversion functions.
26842 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26844 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26845 (extract_bit_field): Likewise.
26846 (extract_low_bits): Likewise.
26847 (expand_mult): Likewise.
26848 (expand_mult_highpart_adjust): Likewise.
26850 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26852 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26853 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26854 * config/i386/i386.c (processor_model): Add
26855 M_INTEL_COREI7_BROADWELL.
26856 (arch_names_table): Add "broadwell".
26858 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26867 * config/sh/sh-protos.h
26868 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26869 sh_extending_set_of_reg::use_as_unextended_reg,
26870 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26871 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26872 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26873 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26874 (sh_treg_insns): New class.
26875 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26876 (scope_counter): New class.
26877 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26878 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26879 sh_extending_set_of_reg::can_use_as_unextended_reg,
26880 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26881 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26882 sh_split_treg_set_expr): New functions.
26883 (addsubcosts): Handle treg_set_expr.
26884 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26885 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26886 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26887 (sh_insn_operands_modified_between_p): Make non-static.
26888 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26889 simple_mem_operand in addition to displacement_mem_operand.
26890 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26891 (treg_set_expr, treg_set_expr_not_const01,
26892 arith_reg_or_treg_set_expr): New predicates.
26893 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26894 arith_or_int_operand instead of logical_operand. Convert to
26895 insn_and_split. Try to optimize constant operand in splitter.
26896 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26897 (*tstqi_t_zero): Delete.
26898 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26899 (tstsi_t_and_not): Delete.
26900 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26901 Convert to insn_and_split.
26902 (unnamed split, tstsi_t_zero_extract_xor,
26903 tstsi_t_zero_extract_subreg_xor_little,
26904 tstsi_t_zero_extract_subreg_xor_big): Delete.
26905 (*tstsi_t_shift_mask): New insn_and_split.
26906 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26907 to recombine with surrounding insns when splitting.
26908 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26909 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26910 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26911 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26912 (*cbranch_div0s: Delete.
26913 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26914 Try to recombine with surrounding insns when splitting. Add operand
26916 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26917 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26918 *addc_r_r_msb, *addc_2r_msb): Delete.
26919 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
26921 (*addc_negreg_t): New insn_and_split.
26922 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26923 Try to recombine with surrounding insns when splitting.
26924 Add operand order variants.
26925 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
26926 insn_and_split patterns.
26927 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
26928 surrounding insns when splitting.
26929 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
26930 (*rotcl): Likewise. Add zero_extract variant.
26931 (*ashrsi2_31): New insn_and_split.
26932 (*negc): Convert to insn_and_split. Use treg_set_expr.
26933 (*zero_extend<mode>si2_disp_mem): Update comment.
26934 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
26936 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
26937 with surrounding insns when splitting.
26938 (any_treg_expr_to_reg): New insn_and_split.
26939 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
26940 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
26941 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
26942 *zero_extract_2): New single bit zero extract patterns.
26943 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
26944 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
26945 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
26946 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
26948 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
26949 register_operand for set source.
26951 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
26953 * i386.opt (prefetch_sse): New targetsave.
26954 * i386.c (ix86_function_specific_save): Save prefetch_sse.
26955 (ix86_function_specific_restore): Restore prefetch_sse and initialize
26956 ix86_cost/ix86_tune_cost.
26958 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26960 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
26961 Support the JIT by using 0 as the language type.
26963 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
26966 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
26967 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
26968 (mark_regno_live, process_bb_lives): Pass new parameter value to
26969 make_hard_regno_born.
26971 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26973 PR rtl-optimization/63637
26974 PR rtl-optimization/60663
26975 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26976 if elt->cost is MAX_COST for ASM_OPERANDS.
26977 (find_sets_in_insn): Fix up comment typo.
26978 (cse_insn): Don't set src_volatile for all non-volatile
26979 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26980 or with "memory" clobber. Set elt->cost to MAX_COST
26981 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
26982 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26984 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26986 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26989 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26991 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26992 libgcc/config/i386/elf-lib.h.
26994 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26997 * gcc.c (print_configuration): Don't print a blank line at the end
26999 (run_attempt): ... but here unstead.
27001 PR middle-end/64734
27002 * omp-low.c (scan_sharing_clauses): Don't ignore
27003 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27004 on target data/update constructs.
27006 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27009 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27010 (DEBUG_RELOAD): Removed define.
27011 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27012 (m32c_function_arg): Added a type cast.
27013 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27014 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27015 * config/m32c/bitops.md (andqi3_16): Likewise.
27016 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27017 (push_a01_l): Likewise.
27019 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27022 * main.c (main): Construct toplev instances with init_signals=true.
27023 * toplev.c (general_init): Add param "init_signals", and use it to
27024 conditionalize the calls to signal and host_hooks.extra_signals.
27025 (toplev::toplev): Add param "init_signals".
27026 (toplev::main): When invoking general_init, pass m_init_signals
27027 to control whether signal-handlers are installed.
27028 * toplev.h (toplev::toplev): Add param "init_signals".
27029 (toplev::m_init_signals): New field.
27031 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27034 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27035 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27036 latter may be affected by the former (e.g. on i686).
27038 2015-01-23 Martin Liska <mliska@suse.cz>
27040 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27041 false positive during profiledbootstrap.
27043 2015-01-23 Tom de Vries <tom@codesourcery.com>
27046 * lto-opts.c (lto_write_options): Output non-explicit conservative
27048 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27049 (append_compiler_options): Pass -fopenacc through.
27051 2015-01-23 Tom de Vries <tom@codesourcery.com>
27054 * lto-opts.c (lto_write_options): Output non-explicit conservative
27056 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27057 (append_compiler_options): Pass -fopenmp through.
27059 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27062 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27065 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27066 * diagnostic.def (DK_ICE_NOBT): New kind.
27067 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27068 like DK_ICE, but never print backtrace.
27069 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27070 (internal_error_no_backtrace): New function.
27071 * gcc.c (execute): Use internal_error_no_backtrace instead of
27074 2015-01-22 Jeff Law <law@redhat.com>
27077 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27078 improve code density for small immediate to memory case.
27079 (insv): Better handle bitfield assignments when the field is
27080 being set to all ones.
27081 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27084 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27085 Jakub Jelinek <jakub@redhat.com>
27087 PR middle-end/64729
27088 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27089 for !TARGET_LIBC_PROVIDES_SSP version and
27090 -fstack-protector-{all,strong,explicit} otherwise.
27091 * config/freebsd.h (LINK_SSP_SPEC): Handle
27092 -fstack-protector-{strong,explicit}.
27094 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27095 H.J. Lu <hongjiu.lu@intel.com>
27098 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27101 2015-01-22 Wei Mi <wmi@google.com>
27103 PR rtl-optimization/64557
27104 * dse.c (record_store): Call get_addr for mem_addr.
27105 (check_mem_read_rtx): Likewise.
27107 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27109 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27111 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27113 * toplev.c (init_local_tick): Process the failure when read
27114 fails for random_seed.
27116 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27117 'pretty_name' to avoid memory overflow.
27119 2015-01-22 Richard Biener <rguenther@suse.de>
27121 PR middle-end/64728
27122 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27123 abnormal coalescing on undefined SSA names.
27125 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27129 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27131 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27133 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27135 PR middle-end/63325
27136 * fold-const.c (fold_checksum_tree): Don't include value of
27137 expr->decl_with_vis.symtab_node in the checksum.
27139 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27141 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27143 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27146 * gcc.c (insert_comments): New function.
27147 (try_generate_repro): Call it.
27148 (append_text): Removed.
27150 2015-01-22 Richard Biener <rguenther@suse.de>
27152 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27153 with IL incompatible options. Properly honor user optimize
27156 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27158 PR rtl-optimization/64682
27159 * combine.c (distribute_notes): When moving a death note for
27160 a register that is set in the new I2, make sure to put it
27161 before that new I2.
27163 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27165 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27166 not TARGET_DEFAULT.
27168 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27171 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27172 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27173 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27176 * doc/invoke.texi (-fsanitize=vptr): Document.
27178 PR rtl-optimization/62078
27179 * dse.c: Include cfgcleanup.h.
27180 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27181 anything call purge_all_dead_edges and cleanup_cfg at the end
27184 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27186 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27189 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27191 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27194 2015-01-21 David Sherwood <david.sherwood@arm.com>
27195 Tejas Belagod <Tejas.Belagod@arm.com>
27197 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27198 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27199 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27202 2015-01-21 David Sherwood <david.sherwood@arm.com>
27203 Tejas Belagod <Tejas.Belagod@arm.com>
27205 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27206 (aarch64_reverse_mask): New decls.
27207 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27208 (insn_count): New mode_attr.
27209 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27210 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27211 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27212 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27213 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27214 (aarch64_simd_st4): New patterns.
27215 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27216 (aarch64_reverse_mask): New functions.
27218 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27220 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27222 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27223 addressing modes for BE.
27224 (aarch64_print_operand): Add 'R' specifier.
27225 (aarch64_simd_disambiguate_copy): Delete.
27226 (aarch64_simd_emit_reg_reg_move): New function.
27227 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27228 in define_splits for structural moves.
27229 (mov<mode>): Use less restrictive predicates.
27230 (*aarch64_mov<mode>): Simplify and only allow for LE.
27231 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27233 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27235 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27237 2015-01-21 Richard Henderson <rth@redhat.com>
27240 * ccmp.c (used_in_cond_stmt_p): Remove.
27241 (expand_ccmp_expr): Don't use it.
27243 2015-01-21 Nick Clifton <nickc@redhat.com>
27245 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27248 2015-01-21 Richard Biener <rguenther@suse.de>
27250 PR middle-end/64313
27251 * tree-core.h (builtin_info, builtin_info_type): Turn from
27252 an object with two arrays into an array of an object with
27253 decl and two flags, implicit_p and declared_p.
27254 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27255 set_builtin_decl, set_builtin_decl_implicit_p,
27256 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27257 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27258 * builtins.c (builtin_info): Adjust.
27259 * gimplify.c (gimplify_addr_expr): References to builtins
27260 that have been declared by the user makes them eligible for
27261 use by the compiler. Call set_builtin_decl_implicit_p on them.
27263 2015-01-20 Jeff Law <law@redhat.com>
27266 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27267 allow pc-relative addresses in operand predicates or constraints.
27269 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27271 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27272 neon on aarch32 processors for stringops.
27274 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27277 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27279 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27282 * ipa-inline.c: Include lto-streamer.h
27283 (report_inline_failed_reason): Output source file differences and
27284 flags on optimization/target node mismatch.
27285 (can_inline_edge_p): Consider caller to be the outer inline function;
27286 be less restrictive about matching opimize and optimize_size attributes.
27287 (inline_account_function_p): Break out from ...
27288 (inline_small_functions): ... here.
27289 * ipa-inline-transform.c (clone_inlined_nodes): Use
27290 inline_account_function_p.
27291 (inline_call): Use optimize attribution; use inline_account_function_p.
27292 (inline_transform): Use opt_for_fn.
27293 * ipa-inline.h (inline_account_function_p): Declare.
27295 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27298 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27299 mode if bitsize <= 0.
27300 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27301 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27302 sizes and positions.
27304 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27306 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27307 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27309 (TARGET_ASM_FILE_END): Define.
27311 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27313 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27314 (struct tune_params): Use the enum.
27315 * arm.c (arm_*_tune): Update.
27316 (arm_option_override): Update.
27318 2015-01-20 Richard Biener <rguenther@suse.de>
27321 * ipa-reference.c (add_static_var): Inline ...
27322 (analyze_function): ... here after splitting out from ...
27323 (is_proper_for_analysis): ... this.
27325 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27328 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27329 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27330 replace the conditional with it's true branch.
27331 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27332 (arm_lra_p): Remove.
27334 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27336 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27338 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27340 * config/tilegx/mul-tables.c: Move symtab.h include after
27341 coretypes.h include.
27342 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27343 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27344 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27345 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27346 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27348 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27352 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27354 PR rtl-optimization/64081
27355 * loop-iv.c (def_pred_latch_p): New function.
27356 (latch_dominating_def): Allow specific cases with non-single
27358 (iv_get_reaching_def): Likewise.
27359 (check_complex_exit_p): New function.
27360 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27361 with exits not executing on any iteration.
27363 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27366 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27367 to set branch cost.
27369 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27372 * i386.c (gate): Check flag_expensive_optimizations and
27374 (ix86_option_override_internal): Drop optimize_size condition
27375 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27376 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27377 MASK_PREFER_AVX128.
27378 (ix86_avx256_split_vector_move_misalign,
27379 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27380 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27381 optimize_insn_for_speed_p check.
27383 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27385 * config/mips/mips.h (FP_ASM_SPEC): New define.
27386 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27389 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27392 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27393 nullptr for insn when reaching the first insn.
27394 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27395 (sh_insn_operands_modified_between_p): Add nullptr check.
27396 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27397 sign extending mem load if the insn contains any UNSPEC or
27400 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27402 * params.def (inline-unit-growth): Drop to 15%.
27403 * invoke.texi (inline-unit-growth): Document change.
27405 2015-01-19 Martin Liska <mliska@suse.cz>
27408 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27409 function for second argument of OBJ_TYPE_REF.
27411 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27414 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27415 whether function is an alias.
27417 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27419 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27422 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27424 PR rtl-optimization/64671
27425 * lra-remat.c (operand_to_remat): Don't consider jump and call
27428 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27431 * config/rs6000/default64.h: Include rs6000-cpus.def.
27432 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27433 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27434 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27436 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27438 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27439 pseudo-op to specify assembler dialect.
27441 2015-01-19 Martin Liska <mliska@suse.cz>
27444 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27445 Handle safe potentially removed nodes during filtering.
27447 2015-01-19 Martin Liska <mliska@suse.cz>
27449 * doc/extend.texi (no_icf): Add new attribute description.
27450 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27451 where the pass attempts to merge a function with no_icf attribute.
27453 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27456 * doc/md.texi (ARM Options): Document register constraints.
27458 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27459 Andrew Pinski <apinski@cavium.com>
27462 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27463 (ashl<mode>3): Don't expand if operands[2] is not constant.
27465 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27468 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27469 Match xor-and-xor RTL pattern.
27471 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27473 PR rtl-optimization/64081
27474 * loop-iv.c (def_pred_latch_p): New function.
27475 (latch_dominating_def): Allow specific cases with non-single
27477 (iv_get_reaching_def): Likewise.
27478 (check_complex_exit_p): New function.
27479 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27480 with exits not executing on any iteration.
27482 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27484 * common.opt (fgraphite): Fix a typo.
27486 2015-01-19 Felix Yang <felix.yang@huawei.com>
27488 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27490 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27491 uminp, smax_nanp, smin_nanp): New builtins.
27492 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27493 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27494 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27495 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27496 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27497 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27498 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27499 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27500 vpminnms_f32): Rewrite using builtin functions.
27502 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27505 * omp-low.c (offload_symbol_decl): Remove variable.
27506 (get_offload_symbol_decl): Remove function.
27507 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27508 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27509 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27510 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27511 BUILT_IN_GOACC_UPDATE don't pass it at all.
27513 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27515 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27518 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27520 * ipa-chkp.c (chkp_produce_thunks): Add early param
27521 to split thunks production into two passes. Keep
27522 'always_inline' function bodies after the first pass.
27523 (pass_data_ipa_chkp_early_produce_thunks): New.
27524 (pass_ipa_chkp_early_produce_thunks): New.
27525 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27526 chkp_produce_thunks signature.
27527 (make_pass_ipa_chkp_early_produce_thunks): New.
27528 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27529 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27530 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27532 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27534 * cgraph.c (cgraph_node::dump): Dump profile flags.
27536 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27539 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27540 reg appear first in the parallel.
27542 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27544 * ipa-reference.c (set_reference_optimization_summary,
27545 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27547 (ignore_module_statics): New static var.
27548 (propagate_bits): If ipa-reference is disabled, do not look into local
27550 (analyze_function): Disable analysis when ipa_reference is disabled.
27551 (generate_summary): Do not dump when reference is disabled;
27552 collect vars accessed from functions with ipa-reference disabled.
27553 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27555 (gate): Enable for LTO.
27556 (ignore_edge_p): New function.
27557 (propagate): Skip functions w/o ipa-reference analysis.
27558 * optc-save-gen.awk: Handle optimize_debug correctly.
27559 * opth-gen.awk: Likewise.
27560 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27561 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27562 fira-share-save-slots, fira-share-spill-slots,
27563 fmodulo-sched-allow-regmoves, fpartial-inlining,
27564 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27565 ftracer, ftree-parallelize-loops, fassociative-math,
27566 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27568 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27569 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27571 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27574 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27577 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27579 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27581 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27583 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27584 Remove duplicate option listings.
27586 2015-01-18 Felix Yang <felix.yang@huawei.com>
27588 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27589 (autofdo_source_profile::get_callsite_total_count,
27590 function_instance::get_function_instance_by_decl,
27591 string_table::get_index, string_table::get_index_by_decl,
27592 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27593 Fix comment typos. Reformatting and minor code rearrangement.
27595 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27597 * config/rs6000/rs6000.md (probe_stack): Delete.
27598 (probe_stack_address): New.
27600 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27602 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27603 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27605 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27607 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27608 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27609 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27611 (rs6000_libcall_value): Use the new function.
27613 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27615 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27617 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27619 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27620 implement a more precise life analysis for it during backward scan.
27622 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27624 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27626 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27628 PR rtl-optimization/52773
27629 * calls.c (emit_library_call_value): When pushing arguments use
27630 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27631 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27632 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27634 2015-01-17 Jeff Law <law@redhat.com>
27636 PR rtl-optimization/32790
27637 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27638 not ZERO_EXTEND in SET_DESTs.
27640 2015-01-17 Alan Modra <amodra@gmail.com>
27642 * cprop.c (do_local_cprop): Revert last change.
27644 2015-01-16 DJ Delorie <dj@redhat.com>
27645 Nick Clifton <nickc@redhat.com>
27647 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27648 (addhi3_real): Likewise. Fix [HL+0] syntax.
27649 (subqi3_real): Likewise.
27650 (subhi3_real): Likewise.
27651 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27652 (cbranchhi4_real): Likewise.
27653 (cbranchhi4_real_inverted): Likewise.
27654 (cbranchsi4_real_lt): Likewise.
27655 (cbranchsi4_real_ge): Likewise.
27656 (cbranchsi4_real_ge): Likewise.
27657 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27658 (sub<mode>3_virt): Likewise.
27659 (cbranchqi4_virt): Likewise.
27660 (cbranchhi4_virt): Likewise.
27661 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27662 always use '[reg+imm]' even when imm is zero.
27663 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27664 (rl78_general_operand): New.
27665 (rl78_nonimmediate_operand): New.
27666 (rl78_nonfar_operand): Use them.
27667 (rl78_nonfar_nonimm_operand): Likewise.
27668 (rl78_stack_based_mem): Fix.
27669 * config/rl78/constraints.md (Ibqi): New.
27674 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27675 (iorqi3): Likewise.
27676 (xorqi3): Likewise.
27677 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27679 * config/rl78/constrains (Qs8): New constraint.
27680 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27681 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27682 * config/rl78/rl78-real.md (update_Z): New attribute.
27683 Update patterns to set it.
27684 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27685 shorter compare and branch sequence can be used.
27686 (cbranchhi4_real): Likewise.
27687 (cbranchhi4_real_inverted): Likewise.
27689 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27690 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27692 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27693 (rl78_option_override): Allow -mes0 only if C.
27694 (characterize_address): Support subregs of symbol_refs.
27695 (rl78_addr_space_address_mode): Move. Add __near.
27696 (rl78_far_p): Likewise.
27697 (rl78_addr_space_pointer_mode): Likewise.
27698 (rl78_as_legitimate_address): Likewise.
27699 (rl78_addr_space_subset_p): Likewise.
27700 (rl78_addr_space_convert): Likewise.
27701 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27702 symbols with -mes0.
27703 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27705 (rl78_alloc_physical_registers_op1): Change logic to prefer
27706 symbol[BC] addressing.
27707 (frodata_section): New.
27708 (rl78_asm_init_sections): Initialize it.
27709 (rl78_select_section): Put __far readonly symbols in .frodata.
27710 (rl78_make_type_far): New.
27711 (rl78_insert_attributes): Force all readonly symbols to be
27713 (rl78_asm_out_integer): New.
27714 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27715 * config/rl78/rl78.opt (-mes0): New.
27717 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27718 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27719 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27720 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27721 (rl78_saddr_p): New.
27722 (rl78_output_aligned_common): New.
27723 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27724 (rl78_handle_saddr_attribute): New.
27725 (rl78_handle_naked_attribute): New.
27726 (rl78_attribute_table): Add saddr.
27727 (rl78_print_operand_1): Don't print '!' on saddr operands.
27728 (rl78_print_operand_1): Strip encodings.
27730 (rl78_strip_name_encoding): New.
27731 (rl78_attrlist_to_encoding): New.
27732 (rl78_encode_section_info): New.
27733 (rl78_asm_init_sections): New.
27734 (rl78_select_section): New.
27735 (rl78_output_labelref): New.
27736 (rl78_output_aligned_common): New.
27737 (rl78_asm_out_integer): New.
27738 (rl78_asm_ctor_dtor): New.
27739 (rl78_asm_constructor): New.
27740 (rl78_asm_destructor): New.
27742 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27743 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27744 (transcode_memory_rtx): Update.
27745 (rl78_expand_epilogue): Use A_REG instead of 0.
27747 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27749 * config/arm/arm-protos.h (struct tune_params): New field
27750 sched_autopref_queue_depth.
27751 * config/arm/arm.c (sched-int.h): Include header.
27752 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27753 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27754 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27755 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27756 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27757 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27758 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27759 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27760 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27761 * config/arm/t-arm (arm.o): Update.
27762 * haifa-sched.c (update_insn_after_change): Update.
27763 (rank_for_schedule): Use auto-prefetcher model, if requested.
27764 (autopref_multipass_init): New static function.
27765 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27766 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27767 variable for debug dumps.
27768 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27769 (autopref_multipass_dfa_lookahead_guard): New global function that
27770 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27771 (init_h_i_d): Update.
27772 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27773 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27774 (autopref_multipass_data_): Structure for auto-prefetcher data.
27775 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27776 (struct _haifa_insn_data:autopref_multipass_data): New field.
27777 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27778 (autopref_multipass_dfa_lookahead_guard): Declare.
27780 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27782 * rtlanal.c (get_base_term): Handle SCRATCH.
27784 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27786 * config/aarch64/aarch64.c
27787 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27788 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27790 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27791 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27793 2015-01-17 Alan Modra <amodra@gmail.com>
27795 * cprop.c (do_local_cprop): Disallow replacement of fixed
27798 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27801 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27804 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27806 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27807 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27809 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27811 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27812 * config/arm/thumb1.md: ... Here.
27814 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27816 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27817 TImode for TARGET_32BIT.
27819 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27821 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27822 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27824 (rs6000_abi_word_mode): New function.
27826 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27828 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27829 instead of UNITS_PER_WORD to describe the size of stack slots.
27831 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27833 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27834 as rs6000_promote_function_mode. Move comment to there.
27835 (rs6000_promote_function_mode): New function.
27837 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27839 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27840 -mpowerpc64 is active.
27842 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27844 PR middle-end/64353
27845 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27848 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27850 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27851 introduced in revision 219724.
27853 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27854 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27857 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27858 destination is not a GP reg.
27859 (*movdi_aarch64): Likewise.
27861 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27864 * config/rs6000/default64.h: Revert ISA change.
27866 2015-01-16 Richard Biener <rguenther@suse.de>
27868 PR middle-end/64614
27869 * tree-ssa-uninit.c: Include tree-cfg.h.
27870 (MAX_SWITCH_CASES): New define.
27871 (convert_control_dep_chain_into_preds): Handle switch statements.
27872 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27873 (normalize_one_pred_1): Do not split bit-manipulations.
27876 2015-01-16 Richard Biener <rguenther@suse.de>
27878 PR tree-optimization/64568
27879 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27880 complex load rewriting for TARGET_MEM_REFs.
27882 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27884 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27886 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27889 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27891 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27892 (aarch64_lra_p): Remove.
27894 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27897 * ipa-chkp.h (chkp_instrumentable_p): New.
27898 * ipa-chkp.c: Include tree-inline.h.
27899 (chkp_instrumentable_p): New.
27900 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27901 Fix processing of not instrumentable functions.
27902 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27903 not instrumentable functions.
27904 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27905 chkp_instrumentable_p.
27906 * tree-inline.h (copy_forbidden): New.
27907 * tree-inline.c (copy_forbidden): Not static anymore.
27909 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27911 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27914 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27916 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27917 type OP_OUT to OP_INOUT.
27919 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27921 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27922 (high x) y) to y if x and y have the same base.
27924 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27926 * config/arm/cortex-a57.md: New.
27927 * config/aarch64/aarch64.md: Include it.
27928 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
27929 * config/aarch64/aarch64-tune.md: Regenerate.
27931 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
27934 * ccmp.c (expand_ccmp_next): New function.
27935 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
27936 and compare insn sequence.
27937 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
27938 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
27939 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
27940 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
27941 (*ccmp_ior): Changed to ccmp_ior<mode>.
27942 (cmp<mode>): New pattern.
27943 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
27945 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
27947 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
27949 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
27950 _mm256_bsrli_epi128): New.
27951 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
27953 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27955 * expmed.c (store_bit_field_using_insv): Improve warning message.
27956 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
27958 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27960 PR rtl-optimization/64011
27961 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
27962 there is partial overflow.
27964 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27966 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
27968 (nds32_expand_epilogue_v3pop): Likewise.
27969 * config/nds32/nds32.md (sibcall): Define this for sibling call
27971 (sibcall_register): Likewise.
27972 (sibcall_immediate): Likewise.
27973 (sibcall_value): Likewise.
27974 (sibcall_value_register): Likewise.
27975 (sibcall_value_immediate): Likewise.
27976 (sibcall_epilogue): Likewise.
27977 (epilogue): Pass false to indicate this is not a sibcall epilogue.
27978 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27979 (nds32_expand_epilogue_v3pop): Likewise.
27981 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27983 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27984 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27985 (return_internal): New.
27986 (return): Define this named pattern.
27987 (simple_return): Define this named pattern.
27988 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27989 pattern instead of unspec_volatile_func_return.
27990 (nds32_expand_epilogue_v3pop): Likewise.
27991 (nds32_can_use_return_insn): New function.
27993 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27995 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27996 * config/nds32/nds32.md (pop25return): New.
27997 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27998 pop25return pattern.
28000 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28002 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28003 -mforbid-fp-as-gp, and -mex9 options.
28005 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28007 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28008 remove -mgp-direct option.
28010 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28012 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28013 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28015 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28017 * ipa-inline.c (inline_small_functions): Work around hints
28020 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28023 * doc/invoke.texi (Option Summary): Document new Nios II
28025 (Nios II Options): Likewise.
28026 * config/nios2/nios2.opt: Add -mgpopt= option support.
28027 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28028 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28029 * config/nios2/nios2.c (nios2_option_override): Adjust
28030 -mgpopt defaulting.
28031 (nios2_in_small_data_p): Return true for explicit small data
28032 sections even with -G0.
28033 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28036 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28039 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28041 (inline_call): Fix removal of aliases.
28043 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28045 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28046 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28047 * opts.c (common_handle_option): Add -fsanitize=vptr.
28048 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28049 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28050 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28051 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28052 (ubsan_expand_vptr_ifn): New prototype.
28053 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28054 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28055 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28056 expand_LOOP_VECTORIZED): Make argument nameless, remove
28058 (expand_UBSAN_VPTR): New function.
28059 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28061 (UBSAN_VPTR): New internal function.
28062 * sanopt.c (tree_map_traits): Renamed to ...
28063 (sanopt_tree_map_traits): ... this.
28064 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28065 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28066 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28067 (maybe_optimize_ubsan_vptr_ifn): New function.
28068 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28069 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28071 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28072 internal calls like pure functions for aliasing, even when they
28073 have other side-effects that prevent making them ECF_PURE.
28074 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28075 (ubsan_expand_vptr_ifn): New function.
28077 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28079 PR rtl-optimization/64110
28080 * stmt.c (parse_output_constraint): Process '^' and '$'.
28081 (parse_input_constraint): Ditto.
28082 * lra-constraints.c (process_alt_operands): Process the new
28084 * ira-costs.c (record_reg_classes): Process the new constraint
28086 * genoutput.c (indep_constraints): Add '^' and '$'.
28087 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28088 * doc/md.texi: Add description of the new constraints.
28090 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28091 Bernd Schmidt <bernds@codesourcery.com>
28092 Cesar Philippidis <cesar@codesourcery.com>
28093 James Norris <jnorris@codesourcery.com>
28094 Tom de Vries <tom@codesourcery.com>
28095 Ilmir Usmanov <i.usmanov@samsung.com>
28096 Dmitry Bocharnikov <dmitry.b@samsung.com>
28097 Evgeny Gavrin <e.gavrin@samsung.com>
28098 Jakub Jelinek <jakub@redhat.com>
28100 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28101 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28102 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28103 New function types.
28104 * builtins.c: Include "gomp-constants.h".
28105 (expand_builtin_acc_on_device): New function.
28106 (expand_builtin, is_inexpensive_builtin): Handle
28107 BUILT_IN_ACC_ON_DEVICE.
28108 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28110 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28112 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28113 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28114 i386/intelmic-offload.h.
28115 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28116 to libgomp and its dependencies.
28117 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28118 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28119 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28120 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28121 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28122 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28123 * doc/generic.texi: Update for OpenACC changes.
28124 * doc/gimple.texi: Likewise.
28125 * doc/invoke.texi: Likewise.
28126 * doc/sourcebuild.texi: Likewise.
28127 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28128 GF_OMP_FOR_KIND_OACC_LOOP.
28129 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28130 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28131 GF_OMP_TARGET_KIND_OACC_UPDATE,
28132 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28134 * gimple.c: Update comments for OpenACC changes.
28135 * gimple.def: Likewise.
28136 * gimple.h: Likewise.
28137 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28138 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28139 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28140 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28141 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28143 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28144 * gimplify.c: Include "gomp-constants.h".
28145 Update comments for OpenACC changes.
28146 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28147 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28148 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28149 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28150 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28151 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28152 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28153 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28154 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28156 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28157 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28158 OMP_CLAUSE_SET_MAP_KIND.
28159 (gimplify_oacc_cache): New function.
28160 (gimplify_omp_for): Handle OACC_LOOP.
28161 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28163 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28164 OACC_EXIT_DATA, OACC_UPDATE.
28165 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28166 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28167 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28168 (gimplify_body): Consider flag_openacc next to flag_openmp.
28169 * lto-streamer-out.c: Include "gomp-constants.h".
28170 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28171 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28172 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28173 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28174 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28175 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28176 * omp-low.c: Include "gomp-constants.h".
28177 Update comments for OpenACC changes.
28178 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28180 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28181 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28182 (create_omp_child_function, scan_omp_for, scan_omp_target)
28183 (check_omp_nesting_restrictions, lower_reduction_clauses)
28184 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28185 Update for OpenACC changes.
28186 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28187 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28188 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28189 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28190 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28191 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28193 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28194 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28195 (expand_omp_target, lower_omp_target): Handle
28196 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28197 GF_OMP_TARGET_KIND_OACC_UPDATE,
28198 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28199 GF_OMP_TARGET_KIND_OACC_DATA.
28200 (pass_expand_omp::execute, execute_lower_omp)
28201 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28203 (offload_symbol_decl): New variable.
28204 (oacc_get_reduction_array_id, oacc_max_threads)
28205 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28206 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28207 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28208 (oacc_gimple_assign, oacc_initialize_reduction_data)
28209 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28211 (is_targetreg_ctx): Remove function.
28212 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28213 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28214 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28215 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28216 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28217 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28218 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28219 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28220 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28221 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28222 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28223 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28224 * tree-core.h: Update comments for OpenACC changes.
28225 (enum omp_clause_map_kind): Remove.
28226 (struct tree_omp_clause): Change type of map_kind member from enum
28227 omp_clause_map_kind to unsigned char.
28228 * tree-inline.c: Update comments for OpenACC changes.
28229 * tree-nested.c: Likewise. Include "gomp-constants.h".
28230 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28231 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28232 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28233 OMP_CLAUSE_SET_MAP_KIND.
28234 * tree-pretty-print.c: Include "gomp-constants.h".
28235 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28236 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28237 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28238 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28239 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28240 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28241 instead of OMP_CLAUSE_MAP_*.
28242 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28243 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28244 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28245 * tree-streamer-in.c: Include "gomp-constants.h".
28246 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28247 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28248 * tree-streamer-out.c: Include "gomp-constants.h".
28249 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28251 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28252 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28253 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28254 * tree.c (omp_clause_num_ops): Update accordingly.
28255 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28257 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28258 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28259 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28260 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28261 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28262 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28263 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28264 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28265 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28267 * config/i386/intelmic-offload.h: New file.
28268 * config/nvptx/offload.h: Likewise.
28270 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28272 * explow.h: Remove duplicate contents.
28273 * dojump.h: Likewise.
28275 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28277 * arm.c (arm_xgene_tune): Add default initializer for instruction
28280 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28284 * ipa.c (symbol_table::remove_unreachable_nodes):
28285 Do not put abstract origins into boundary.
28287 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28289 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28290 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28292 2015-01-15 Steve Ellcey <sellcey@mips.com>
28294 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28295 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28296 builtins.def, and chkp-builtins.def.
28298 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28300 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28303 2015-01-15 Richard Biener <rguenther@suse.de>
28305 PR tree-optimization/61743
28306 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28307 information on PHIs for some simple cases.
28309 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28311 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28313 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28314 * config/arm/arm-cores.def (xgene1): New entry.
28315 * config/arm/arm-tables.opt: Regenerate.
28316 * config/arm/arm-tune.md: Regenerate.
28317 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28319 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28321 * tree-if-conv.c: Include hash-map.h.
28322 (aggressive_if_conv): New variable.
28323 (fold_build_cond_expr): Add simplification of non-zero condition.
28324 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28325 destination block is not always executed.
28326 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28327 than two predecessors if AGGRESSIVE_IF_CONV is true.
28328 (if_convertible_stmt_p): Fix commentary.
28329 (all_preds_critical_p): New function.
28330 (has_pred_critical_p): New function.
28331 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28332 BB can have more than two predecessors and all incoming edges can be
28334 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28335 to compute predicate for true edge.
28336 (find_phi_replacement_condition): Delete this function.
28337 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28338 Allow interchange PHI arguments if EXTENDED is false.
28339 Change check that block containing reduction statement candidate
28340 is predecessor of phi-block since phi may have more than two arguments.
28341 (phi_args_hash_traits): New helper structure.
28342 (struct phi_args_hash_traits): New type.
28343 (phi_args_hash_traits::hash): New function.
28344 (phi_args_hash_traits::equal_keys): New function.
28345 (gen_phi_arg_condition): New function.
28346 (predicate_scalar_phi): Add handling of phi nodes with more than two
28347 arguments, delete COND and TRUE_BB arguments, insert body of
28348 find_phi_replacement_condition to predicate ordinary phi nodes.
28349 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28350 delete call of find_phi_replacement_condition and invoke
28351 predicate_scalar_phi with two arguments.
28352 (insert_gimplified_predicates): Add assert that non-predicated block
28353 don't have statements to insert.
28354 (ifcvt_split_critical_edges): New function.
28355 (ifcvt_split_def_stmt): Likewise.
28356 (ifcvt_walk_pattern_tree): Likewise.
28357 (stmt_is_root_of_bool_pattern): Likewise.
28358 (ifcvt_repair_bool_pattern): Likewise.
28359 (ifcvt_local_dce): Likewise.
28360 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28361 is copy of inner or outer loop force_vectorize field, invoke
28362 ifcvt_split_critical_edges, ifcvt_local_dce and
28363 ifcvt_repair_bool_pattern for aggressive if-conversion.
28365 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28367 * config/aarch64/aarch64.md: Include xgene1.md.
28368 * config/aarch64/xgene1.md: New file.
28370 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28372 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28373 xgene1 (APM XGene-1) core definition.
28374 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28375 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28376 * doc/invoke.texi: Document -mcpu=xgene1.
28378 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28380 * dojump.h: New header file.
28381 * explow.h: Likewise.
28382 * expr.h: Remove includes.
28383 Move expmed.c prototypes to expmed.h.
28384 Move dojump.c prototypes to dojump.h.
28385 Move alias.c prototypes to alias.h.
28386 Move explow.c prototypes to explow.h.
28387 Move calls.c prototypes to calls.h.
28388 Move emit-rtl.c prototypes to emit-rtl.h.
28389 Move varasm.c prototypes to varasm.h.
28390 Move stmt.c prototypes to stmt.h.
28391 (saved_pending_stack_adjust): Move to dojump.h.
28392 (adjust_address): Move to explow.h.
28393 (adjust_address_nv): Move to emit-rtl.h.
28394 (adjust_bitfield_address): Likewise.
28395 (adjust_bitfield_address_size): Likewise.
28396 (adjust_bitfield_address_nv): Likewise.
28397 (adjust_automodify_address_nv): Likewise.
28398 * explow.c (expr_size): Move to expr.c.
28399 (int_expr_size): Likewise.
28400 (tree_expr_size): Likewise.
28401 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28402 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28403 * genemit.c (main): Generate includes statistics.h, real.h,
28404 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28406 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28407 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28408 explow.h, emit-rtl.h, stmt.h.
28409 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28410 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28411 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28412 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28413 emit-rtl.h, varasm.h, stmt.h.
28414 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28415 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28416 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28417 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28418 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28419 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28420 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28421 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28422 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28423 tm.h tree.h varasm.h vec.h wide-int.h.
28424 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28425 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28426 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28427 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28428 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28429 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28430 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28431 * loop-iv.c: Likewise.
28432 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28433 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28434 statistics.h stmt.h tree.h varasm.h wide-int.h.
28435 * lra-constraints.c: Likewise.
28436 * lra-eliminations.c: Likewise.
28437 * lra-lives.c: Likewise.
28438 * lra-remat.c: Likewise.
28439 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28440 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28441 statistics.h stmt.h tree.h varasm.h wide-int.h.
28442 * hw-doloop.c: Likewise.
28443 * ira-color.c: Likewise.
28444 * ira-emit.c: Likewise.
28445 * loop-doloop.c: Likewise.
28446 * loop-invariant.c: Likewise.
28447 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28448 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28449 statistics.h stmt.h tree.h varasm.h wide-int.h.
28450 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28451 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28452 statistics.h stmt.h tree.h varasm.h wide-int.h.
28453 * combine-stack-adj.c: Likewise.
28456 * ifcvt.c: Likewise.
28457 * ira-costs.c: Likewise.
28458 * jump.c: Likewise.
28459 * lra-coalesce.c: Likewise.
28460 * lra-spills.c: Likewise.
28461 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28462 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28463 stmt.h varasm.h wide-int.h.
28464 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28465 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28467 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28468 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28469 statistics.h stmt.h varasm.h wide-int.h.
28470 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28471 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28472 varasm.h wide-int.h.
28473 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28474 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28475 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28476 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28477 statistics.h stmt.h.
28478 * config/tilepro/tilepro.c: Likewise.
28479 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28480 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28481 * config/pdp11/pdp11.c: Likewise.
28482 * config/xtensa/xtensa.c: Likewise.
28483 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28484 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28486 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28487 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28488 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28489 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28490 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28491 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28492 * rtl-chkp.c: Likewise.
28493 * tree-chkp-opt.c: Likewise.
28494 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28495 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28496 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28497 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28498 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28499 statistics.h stmt.h.
28500 * tree-vect-data-refs.c: Likewise.
28501 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28502 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28503 rtl.h statistics.h stmt.h varasm.h.
28504 * internal-fn.c: Likewise.
28505 * ipa-icf-gimple.c: Likewise.
28506 * lto-section-out.c: Likewise.
28507 * tree-data-ref.c: Likewise.
28508 * tree-nested.c: Likewise.
28509 * tree-outof-ssa.c: Likewise.
28510 * tree-predcom.c: Likewise.
28511 * tree-pretty-print.c: Likewise.
28512 * tree-scalar-evolution.c: Likewise.
28513 * tree-ssa-strlen.c: Likewise.
28514 * tree-vect-loop.c: Likewise.
28515 * tree-vect-patterns.c: Likewise.
28516 * tree-vect-slp.c: Likewise.
28517 * tree-vect-stmts.c: Likewise.
28518 * tsan.c: Likewise.
28519 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28520 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28522 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28523 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28524 statistics.h stmt.h varasm.h.
28525 * loop-unroll.c: Likewise.
28526 * ubsan.c: Likewise.
28527 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28528 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28530 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28531 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28532 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28533 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28534 statistics.h stmt.h.
28535 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28536 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28537 statistics.h stmt.h varasm.h.
28538 * gimple-match-head.c: Likewise.
28539 * lto-cgraph.c: Likewise.
28540 * lto-section-in.c: Likewise.
28541 * lto-streamer-in.c: Likewise.
28542 * lto-streamer-out.c: Likewise.
28543 * tree-affine.c: Likewise.
28544 * tree-cfg.c: Likewise.
28545 * tree-cfgcleanup.c: Likewise.
28546 * tree-if-conv.c: Likewise.
28547 * tree-into-ssa.c: Likewise.
28548 * tree-ssa-alias.c: Likewise.
28549 * tree-ssa-copyrename.c: Likewise.
28550 * tree-ssa-dse.c: Likewise.
28551 * tree-ssa-forwprop.c: Likewise.
28552 * tree-ssa-live.c: Likewise.
28553 * tree-ssa-math-opts.c: Likewise.
28554 * tree-ssa-pre.c: Likewise.
28555 * tree-ssa-sccvn.c: Likewise.
28556 * tree-tailcall.c: Likewise.
28557 * tree-vect-generic.c: Likewise.
28558 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28559 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28560 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28561 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28562 * varasm.c: Likewise.
28563 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28564 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28566 * init-regs.c: Likewise.
28568 * omp-low.c: Likewise.
28569 * stack-ptr-mod.c: Likewise.
28570 * tree-ssa-reassoc.c: Likewise.
28571 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28572 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28574 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28575 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28576 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28577 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28578 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28579 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28580 * tree-ssa-phiopt.c: Likewise.
28581 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28582 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28583 * config/fr30/fr30.c: Likewise.
28584 * config/frv/frv.c: Likewise.
28585 * expr.c: Likewise.
28586 * final.c: Likewise.
28587 * optabs.c: Likewise.
28588 * passes.c: Likewise.
28589 * simplify-rtx.c: Likewise.
28590 * stmt.c: Likewise.
28591 * toplev.c: Likewise.
28592 * var-tracking.c: Likewise.
28593 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28594 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28595 * lower-subreg.c: Likewise.
28596 * postreload-gcse.c: Likewise.
28598 * reginfo.c: Likewise.
28599 * store-motion.c: Likewise.
28600 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28601 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28602 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28603 fixed-value.h hashtab.h statistics.h stmt.h.
28604 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28605 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28606 * except.c: Likewise.
28607 * explow.c: Likewise.
28608 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28609 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28611 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28612 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28613 * tree-ssa-structalias.c: Likewise.
28614 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28615 fixed-value.h insn-config.h real.h statistics.h.
28616 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28617 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28618 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28619 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28620 * cfgbuild.c: Likewise.
28621 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28622 fixed-value.h real.h rtl.h statistics.h stmt.h.
28623 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28624 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28625 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28626 fixed-value.h real.h statistics.h stmt.h.
28627 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28628 fixed-value.h real.h statistics.h stmt.h varasm.h.
28629 * cprop.c: Likewise.
28630 * modulo-sched.c: Likewise.
28631 * postreload.c: Likewise.
28632 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28633 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28634 statistics.h stmt.h varasm.h.
28635 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28636 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28637 rtl.h statistics.h stmt.h varasm.h.
28638 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28639 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28641 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28642 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28644 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28645 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28647 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28648 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28649 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28650 function.h real.h statistics.h stmt.h varasm.h.
28651 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28652 insn-config.h real.h statistics.h stmt.h.
28653 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28654 statistics.h stmt.h.
28655 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28656 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28657 statistics.h stmt.h varasm.h.
28658 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28659 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28660 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28661 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28662 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28663 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28664 statistics.h stmt.h varasm.h.
28665 * ipa-polymorphic-call.c: Likewise.
28666 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28667 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28668 statistics.h stmt.h.
28669 * config/c6x/c6x.c: Likewise.
28670 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28671 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28672 statistics.h stmt.h varasm.h.
28673 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28674 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28676 * ipa-split.c: Likewise.
28677 * tree-eh.c: Likewise.
28678 * tree-ssa-dce.c: Likewise.
28679 * tree-ssa-loop-niter.c: Likewise.
28680 * tree-vrp.c: Likewise.
28681 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28682 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28684 * config/nds32/nds32-fp-as-gp.c: Likewise.
28685 * config/nds32/nds32-intrinsic.c: Likewise.
28686 * config/nds32/nds32-isr.c: Likewise.
28687 * config/nds32/nds32-md-auxiliary.c: Likewise.
28688 * config/nds32/nds32-memory-manipulation.c: Likewise.
28689 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28690 * config/nds32/nds32-predicates.c: Likewise.
28691 * config/nds32/nds32.c: Likewise.
28692 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28693 fixed-value.h hashtab.h real.h statistics.h.
28694 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28695 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28696 * config/arm/arm.c: Likewise.
28697 * config/avr/avr.c: Likewise.
28698 * config/bfin/bfin.c: Likewise.
28699 * config/h8300/h8300.c: Likewise.
28700 * config/i386/i386.c: Likewise.
28701 * config/ia64/ia64.c: Likewise.
28702 * config/iq2000/iq2000.c: Likewise.
28703 * config/m32c/m32c.c: Likewise.
28704 * config/m32r/m32r.c: Likewise.
28705 * config/m68k/m68k.c: Likewise.
28706 * config/mcore/mcore.c: Likewise.
28707 * config/mep/mep.c: Likewise.
28708 * config/mips/mips.c: Likewise.
28709 * config/mn10300/mn10300.c: Likewise.
28710 * config/moxie/moxie.c: Likewise.
28711 * config/pa/pa.c: Likewise.
28712 * config/rl78/rl78.c: Likewise.
28713 * config/rx/rx.c: Likewise.
28714 * config/s390/s390.c: Likewise.
28715 * config/sh/sh.c: Likewise.
28716 * config/sparc/sparc.c: Likewise.
28717 * config/spu/spu.c: Likewise.
28718 * config/stormy16/stormy16.c: Likewise.
28719 * config/v850/v850.c: Likewise.
28720 * config/vax/vax.c: Likewise.
28721 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28722 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28723 * config/msp430/msp430.c: Likewise.
28724 * predict.c: Likewise.
28725 * value-prof.c: Likewise.
28726 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28727 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28728 * config/microblaze/microblaze.c: Likewise.
28729 * config/nios2/nios2.c: Likewise.
28730 * config/rs6000/rs6000.c: Likewise.
28731 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28732 insn-config.h real.h rtl.h statistics.h stmt.h.
28733 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28734 insn-config.h real.h statistics.h stmt.h.
28735 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28736 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28737 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28738 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28739 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28740 fixed-value.h real.h statistics.h stmt.h.
28741 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28742 fixed-value.h statistics.h stmt.h.
28743 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28746 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28748 * gengtype.c (create_user_defined_type): Workaround
28749 -Wmaybe-uninitialized false positives.
28750 * cse.c (fold_rtx): Likewise.
28751 * loop-invariant.c (gain_for_invariant): Likewise.
28753 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28755 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28756 set the memory attributes in all cases but clear MEM_EXPR if need be.
28758 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28760 PR tree-optimization/64434
28761 * cfgexpand.c (reorder_operands): New function.
28762 (expand_gimple_basic_block): Insert call of reorder_operands if
28765 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28767 * config/mips/micromips.md (*swp): Remove explicit parallel.
28768 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28769 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28770 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28771 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28772 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28773 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28774 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28775 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28776 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28777 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28778 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28779 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28780 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28781 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28782 (mips_wrdsp): Likewise.
28783 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28785 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28786 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28787 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28788 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28789 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28790 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28791 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28792 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28793 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28795 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28797 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28798 (mips_print_operand): Support 'y' to print exact log2 in decimal
28800 * config/mips/mips.h (ISA_HAS_LSA): New define.
28801 (ISA_HAS_DLSA): Likewise.
28802 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28803 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28805 2015-01-15 Martin Liska <mliska@suse.cz>
28808 * optc-save-gen.awk: Add support for array types.
28810 2015-01-15 Richard Biener <rguenther@suse.de>
28812 PR middle-end/64365
28813 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28814 for MEM_REF access functions with the same base can never partially
28817 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28819 * common.opt: New option -fstack-protector-explicit.
28820 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28821 (stack_protect_decl_phase): Handle stack_protect attribute for
28822 explicit stack protection requests.
28823 (expand_used_vars): Similarly.
28824 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28825 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28826 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28828 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28831 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28833 (sh_extending_set_of_reg): New struct.
28834 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28835 sh_remove_reg_dead_or_unused_notes): New Declarations.
28836 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28837 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28838 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28839 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28840 convert to insn_and_split and use new function sh_split_tst_subregs.
28842 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28844 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28846 (Optimization Options): Move -fuse-ld documentation to...
28847 (Link Options): ...here.
28849 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28851 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28853 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28854 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28855 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28856 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28857 instead of ZR for the memory operand of LL/SC.
28858 (compare_and_swap_12, sync_add<mode>): Likewise.
28859 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28860 (sync_new_<optab>_12, sync_nand_12): Likewise.
28861 (sync_old_nand_12, sync_new_nand_12): Likewise.
28862 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28863 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28864 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28865 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28866 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28867 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28868 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28869 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28870 * doc/md.texi (ZC): Update description.
28872 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28874 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28875 memory model is CONSUME.
28876 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28877 expand_builtin_atomic_store): Change invalid memory model errors to
28879 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28880 and issue warning for CONSUME.
28882 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28884 * lto-cgraph: Update function comments for
28885 lto_symtab_encoder_encode_*.
28887 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28889 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28891 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28893 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28894 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28895 lto_stream_offload_p instead.
28896 * lto-streamer.h (select_what_to_stream): Remove argument.
28897 * passes.c (ipa_write_summaries): Likewise.
28898 * tree-pass.h (ipa_write_summaries): Likewise.
28900 2015-01-14 Richard Biener <rguenther@suse.de>
28902 PR tree-optimization/59354
28903 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28904 groups larger than the slp group size as having gaps.
28906 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28908 PR middle-end/59448
28909 * builtins.c (get_memmodel): Promote consume to acquire always.
28911 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28914 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28917 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28920 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28922 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28923 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
28924 AVX512VBMI, as it implies AVX512BW.
28926 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28929 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
28930 (vec_unpacks_hi_v16sf): Ditto.
28932 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28934 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
28937 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28939 * doc/invoke.texi (mapcs): Mention deprecation.
28940 (mapcs-frame): Likewise.
28942 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
28945 * config/arm/arm.c (callee_saved_reg_p): Define.
28946 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
28947 register is callee saved instead of !call_used_regs[reg].
28948 (thumb1_compute_save_reg_mask): Likewise.
28950 2015-01-14 Hale Wang <hale.wang@arm.com>
28952 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
28955 2015-01-14 Richard Biener <rguenther@suse.de>
28958 * tree-inline.c (insert_debug_decl_map): Check destination
28959 function MAY_HAVE_DEBUG_STMTS.
28960 (insert_init_debug_bind): Likewise.
28961 (insert_init_stmt): Remove redundant check.
28962 (remap_gimple_stmt): Drop debug stmts if the destination
28963 function has var-tracking assignments disabled.
28965 2015-01-14 Martin Liska <mliska@suse.cz>
28967 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
28968 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28970 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28973 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28974 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28976 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28978 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28979 level from an ARCH; do not inject the default.
28980 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28981 MIPS_ISA_LEVEL_SPEC.
28982 (MIPS_ISA_NAN2008_SPEC): Update comment.
28983 (BASE_DRIVER_SELF_SPECS): Likewise.
28984 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28985 MIPS_DEFAULT_ISA_LEVEL_SPEC.
28986 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28987 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28988 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28990 2015-01-14 Richard Biener <rguenther@suse.de>
28992 PR tree-optimization/64493
28993 PR tree-optimization/64495
28994 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28995 assign the proper vectorized PHI to the inner loop exit PHIs.
28997 2015-01-14 Joey Ye <joey.ye@arm.com>
28999 * config/arm/arm.c (arm_compute_save_reg_mask):
29000 Do not save lr in case of tail call.
29001 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29003 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29005 * tree-vrp.c (check_array_ref): Emit more warnings
29006 for warn_array_bounds >= 2.
29007 * common.opt: New option -Warray-bounds=.
29008 * doc/invoke.texi: Document -Warray-bounds=.
29010 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29012 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29013 (mforbid-fp-as-gp): Remove.
29015 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29016 (nds32_symbol_load_store_p): Remove.
29017 (nds32_fp_as_gp_check_available): Clean up implementation.
29018 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29020 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29021 fp-as-gp and ex9 cases.
29023 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29025 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29026 for bintuils bug 14342.
29027 (init_ic_make_global_vars): Likewise.
29028 (gimple_init_edge_profiler): Likewise.
29029 (gimple_gen_ic_func_profiler): Likewise.
29031 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29033 * ipa-inline.c (inline_small_functions): Swap the operands in
29036 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29039 * ipa-inline-analysis.c (node_growth_cache): Remove.
29040 (initialize_growth_caches): Do not initialize it.
29041 (free_growth_caches): Do not free it.
29042 (do_estimate_growth): Rename to ...
29043 (estimate_growth): ... this one; drop growth cache code.
29044 (growth_likely_positive): Always go the heuristics way.
29045 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29046 (reset_edge_caches): Do not reset node growth.
29047 (heap_edge_removal_hook): Do not maintain cache.
29048 (inline_small_functions): Likewise; strenghten sanity check.
29049 (ipa_inline): Do not maintain caches.
29050 * ipa-inline.h (node_growth_cache): Remove.
29051 (do_estimate_growth): Remove to ...
29052 (estimate_growth): this one; remove inline version.
29053 (reset_node_growth_cache): Remove.
29055 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29058 * ipa-inline.c (inline_small_functions): Update callee keys after
29059 resolving speculation
29060 (inline_small_functions): Always check monotonicity of the queue.
29062 2015-01-13 Marek Polacek <polacek@redhat.com>
29064 PR middle-end/64391
29065 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29067 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29069 PR rtl-optimization/64286
29070 * ree.c (combine_reaching_defs): Move part of comment earlier,
29071 remove !SCALAR_INT_MODE_P check.
29072 (add_removable_extension): Don't add vector mode
29073 extensions if all uses of the source register aren't the same
29076 2015-01-13 Renlin Li <renlin.li@arm.com>
29078 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29079 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29081 2015-01-13 Martin Liska <mliska@suse.cz>
29083 * ipa-icf.c (sem_function::equals_private): Call new functions
29084 cl_target_option_print_diff and cl_optimization_print_diff.
29085 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29086 (cl_optimization_print_diff): Likewise.
29087 * opth-gen.awk: Likewise.
29089 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29091 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29092 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29093 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29094 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29095 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29096 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29098 2015-01-13 Andrew Pinski <apinski@cavium.com>
29100 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29101 instead of src mode.
29103 2015-01-13 Richard Biener <rguenther@suse.de>
29106 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29109 2015-01-13 Andrew Pinski <apinski@cavium.com>
29111 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29113 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29115 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29117 PR middle-end/63974
29118 * cfgexpand.c (expand_computed_goto): Don't call
29119 convert_memory_address here.
29121 2015-01-13 Richard Biener <rguenther@suse.de>
29123 PR tree-optimization/64406
29124 * tree-loop-distibution.c (pass_loop_distribution::execute):
29125 Reset the SCEV hashtable if we distributed anything.
29127 2015-01-13 Richard Biener <rguenther@suse.de>
29129 PR tree-optimization/64404
29130 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29131 SLP types for CSEd loads.
29133 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29135 PR tree-optimization/64436
29136 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29137 merge of two symbolic numbers for a bitwise OR to ...
29138 (perform_symbolic_merge): This. Also fix computation of the range and
29139 end of the symbolic number corresponding to the result of a bitwise OR.
29141 2015-01-13 Richard Biener <rguenther@suse.de>
29143 PR tree-optimization/64568
29144 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29145 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29147 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29149 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29150 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29152 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29154 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29155 target-specific symbol_ref flag.
29156 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29157 resides in rodata section.
29158 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29159 (nds32_encode_section_info): New function.
29161 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29163 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29164 clobbers TA_REGNUM if large code model is specified.
29165 (call_register): Likewise.
29166 (call_immediate): Likewise.
29167 (call_value): Likewise.
29168 (call_value_register): Likewise.
29169 (call_value_immediate): Likewise.
29171 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29173 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29174 (TARGET_CMODEL_MEDIUM): New macro.
29175 (TARGET_CMODEL_LARGE): New macro.
29176 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29177 code model setting in assembly code.
29179 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29181 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29182 Remove MASK_GP_DIRECT flag.
29183 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29184 one of the multilib default options.
29185 * config/nds32/nds32.opt (mgp-direct): Remove.
29186 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29187 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29189 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29191 * config/nds32/nds32.opt (mcmodel): Add new option.
29192 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29193 to describe code model.
29195 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29198 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29200 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29202 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29203 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29204 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29205 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29206 __builtin_sh_set_fpscr.
29208 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29210 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29211 after a funtion name just to indicate it is a function.
29212 ([-fsanitize-undefined-trap-on-error]): Likewise.
29213 ([-fdbg-cnt=]): Likewise.
29214 ([-mmemcpy]): Likewise.
29215 ([-mflush-func]): Likewise.
29216 ([-msynci]): Likewise.
29218 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29220 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29223 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29225 PR tree-optimization/64563
29226 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29227 instead of != VR_VARYING.
29230 * config/i386/i386.c (ix86_expand_prologue): Add
29231 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29233 PR tree-optimization/64454
29234 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29235 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29236 for signed or [0, op1 - 1] for unsigned modulo.
29237 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29238 even if op1 does not satisfy integer_pow2p.
29241 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29243 2015-01-12 Jeff Law <law@redhat.com>
29246 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29247 (trunchiqi2, truncsihi2): Similarly.
29249 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29250 rather than calling F.
29252 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29254 * tsan.c (instrument_expr): Use force_gimple_operand.
29255 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29257 2015-01-12 Richard Biener <rguenther@suse.de>
29259 PR tree-optimization/64530
29260 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29263 2015-01-12 Richard Biener <rguenther@suse.de>
29265 PR middle-end/64357
29266 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29269 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29271 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29272 Cortex-A17 tuning parameters.
29273 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29275 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29277 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29278 * config/arm/arm.c (arm_macro_fusion_p): New function.
29279 (arm_macro_fusion_pair_p): Likewise.
29280 (TARGET_SCHED_MACRO_FUSION_P): Define.
29281 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29282 (ARM_FUSE_NOTHING): Likewise.
29283 (ARM_FUSE_MOVW_MOVT): Likewise.
29284 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29285 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29286 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29287 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29288 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29289 arm_cortex_a5_tune): Specify fuseable_ops value.
29291 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29294 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29295 test for PIE with copy reloc.
29296 * configure: Regenerated.
29298 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29300 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29302 (arm_tls_descseq_addr): Likewise.
29303 (arm_gen_movmemqi): Likewise.
29304 (arm_expand_epilogue_apcs_frame): Likewise.
29305 (arm_expand_epilogue): Likewise.
29306 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29309 2015-01-12 Martin Liska <mliska@suse.cz>
29312 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29313 volatility for correct operands.
29315 2015-01-12 Martin Liska <mliska@suse.cz>
29317 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29318 indication that a function is not leaf.
29319 (sem_function::compare_polymorphic_p): Likewise.
29321 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29323 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29324 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29325 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29326 fold-const.h, tree-check.h.
29328 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29332 * ipa-inline.c (compute_uninlined_call_time,
29333 compute_inlined_call_time): Use counts for extra precision when
29335 (big_speedup_p): Fix formating.
29336 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29337 (relative_time_benefit): Remove.
29338 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29339 merge guessed and read profile paths.
29340 (inline_small_functions): Count only !optimize_size functions into
29341 initial size; be more lax about sanity check when profile is used;
29342 be sure to update inlined function profile when profile is read.
29344 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29347 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29348 cost when edge becomes direct.
29349 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29350 is resolved or when introducing new speculation.
29352 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29356 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29357 '||' to fix typo issue.
29359 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29360 accept and return NULL.
29362 2015-01-12 Martin Liska <mliska@suse.cz>
29364 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29365 file for being inlined.
29366 (cgraph_set_edge_callee): Delete.
29367 (cgraph_edge::redirect_callee): Move function to header file
29369 (cgraph_edge::make_direct): Use new function.
29370 (cgraph_edge::dump_edge_flags): New function created from
29371 static dump_edge_flags function.
29372 (cgraph_node::dump): Use new function.
29373 (cgraph_edge::verify_count_and_frequency): New function created
29374 from verify_edge_count_and_frequency.
29375 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29376 from verify_edge_corresponds_to_fndecl.
29377 (verify_edge_corresponds_to_fndecl): Delete.
29378 (cgraph_node::verify_node): Use new function.
29379 * cgraph.h (cgraph_edge::set_callee): New function.
29380 (cgraph_edge::dump_edge_flags): Likewise.
29381 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29383 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29385 * ipa-utils.c (estimate_function_body_sizes): Do not
29386 free node params when called late with early=true.
29388 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29390 * doc/md.texi (Instruction Patterns): Rewrite text for
29392 (Example): Likewise.
29394 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29396 * doc/invoke.texi (Option Summary): Break long lines.
29397 [(-fdiagnostics-color)]: Put long literal in @smallexample
29399 [(-fsanitize-recover)]: Likewise.
29400 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29401 [(-ffast-math)]: Likewise.
29402 [(--param max-inline-insns-recursive)]: Likewise.
29403 [(--param max-inline-recursive-depth)]: Likewise.
29404 [(-mno-text-section-literals)]: Likewise.
29406 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29408 * doc/install.texi: Update for libgomp being renamed from "GNU
29409 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29411 * doc/sourcebuild.texi: Likewise.
29413 2015-01-10 Anthony Green <green@moxielogic.com>
29415 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29416 mul.x availability for moxiebox configuration.
29418 2015-01-09 Anthony Green <green@moxielogic.com>
29420 * config/moxie/moxie.md: Tabify assembly output.
29422 2015-01-09 Anthony Green <green@moxielogic.com>
29424 * config/moxie/moxie.md (CC_REG): Correct register definition.
29426 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29428 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29429 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29432 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29434 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29436 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29437 Jakub Jelinek <jakub@redhat.com>
29439 PR middle-end/64412
29440 * lto-streamer.h (lto_stream_offload_p): New declaration.
29441 * lto-streamer.c (lto_stream_offload_p): New variable.
29442 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29443 at the same time as section_name_prefix.
29444 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29445 if lto_stream_offload_p.
29446 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29447 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29448 (write_ts_function_decl_tree_pointers): Don't
29449 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29450 * tree-streamer-in.c (unpack_value_fields): Don't stream
29451 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29452 (lto_input_ts_function_decl_tree_pointers): Don't stream
29453 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29454 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29455 instead of section_name_prefix string comparisons.
29457 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29459 PR rtl-optimization/64536
29460 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29463 2015-01-09 Michael Collison <michael.collison@linaro.org>
29465 PR tree-optimization/64322
29466 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29467 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29469 2015-01-09 Tom de Vries <tom@codesourcery.com>
29471 PR rtl-optimization/64539
29472 * regcprop.c (kill_clobbered_values): Factor out of ...
29473 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29474 instead of note_stores with kill_clobbered_value.
29476 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29478 * ginclude/unwind-arm-common.h: Revert previous commit.
29480 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29482 * config.gcc (arm*-*-freebsd*): New configuration.
29483 * config/arm/freebsd.h: New file.
29484 * config.host: Add extra components for arm*-*-freebsd*.
29485 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29486 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29488 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29490 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29492 * config/rs6000/t-rtems: Add e6500 multilibs.
29494 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29496 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29499 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29501 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29502 MULTILIB_EXCEPTIONS.
29504 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29506 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29507 MULTILIB_EXCEPTIONS.
29509 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29511 * config/arm/t-rtems-eabi: Rename to...
29512 * config/arm/t-rtems: ...this.
29513 * config/arm/rtems-eabi.h: Rename to...
29514 * config/arm/rtems.h: ...this.
29515 * config.gcc (arm*-*-rtems*): Reflect changes above.
29517 2015-01-09 Richard Biener <rguenther@suse.de>
29519 PR tree-optimization/64410
29520 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29522 (execute_update_addresses_taken): Deal with that.
29523 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29524 loads/stores for complex variables.
29526 2015-01-09 Martin Liska <mliska@suse.cz>
29528 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29530 (func_checker::compare_memory_operand): New function.
29531 (func_checker::compare_operand): Split case to newly
29533 (func_checker::compare_cst_or_decl): New function.
29534 (func_checker::compare_gimple_call): Identify
29536 (func_checker::compare_gimple_assign): Likewise.
29537 * ipa-icf-gimple.h: New function.
29539 2015-01-09 Martin Liska <mliska@suse.cz>
29542 * sreal.c (sreal::dump): Change unsigned format to signed for
29544 (sreal::to_double): Replace exp2 with scalbln.
29546 2015-01-09 Martin Liska <mliska@suse.cz>
29548 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29549 * ipa-icf.c (sem_function::equals_private): Add support for target and
29550 (sem_item_optimizer::merge_classes): Remove redundant function
29551 optimization flags comparison.
29552 * tree.h (target_opts_for_fn): New function.
29554 2015-01-09 Tom de Vries <tom@codesourcery.com>
29556 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29558 2015-01-09 Kito Cheng <kito@0xlab.org>
29560 PR rtl-optimization/64348
29561 * lra-constraints.c (split_reg): Fix caller-save store/restore
29562 instruction generation.
29564 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29566 PR gcov-profile/61790
29567 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29568 long long. Fallback to int64_t if host doesn't have long long and
29569 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29571 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29573 PR tree-optimization/63989
29574 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29575 from 1000 to 10000.
29576 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29577 (get_stridx): If we don't have a record for certain SSA_NAME,
29578 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29579 constant offset, call get_stridx_plus_constant.
29580 (get_stridx_plus_constant): New function.
29581 (zero_length_string): Don't use get_stridx here.
29584 PR middle-end/64388
29585 * dse.c (struct insn_info): Mention frame_read set also
29586 before reload for tail calls on some targets.
29587 (scan_insn): Revert 2014-12-22 change. Set frame_read
29588 also before reload for tail calls if
29589 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29590 instead of add_non_frame_wild_read for non-const/memset
29591 tail calls after reload.
29593 2015-01-08 Jason Merrill <jason@redhat.com>
29595 * ubsan.c (do_ubsan_in_current_function): New.
29596 (pass_ubsan::gate): Use it.
29597 * ubsan.h: Declare it.
29598 * convert.c (convert_to_integer): Use it.
29600 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29603 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29604 compare_code when it is unconditionally overwritten afterwards.
29605 Use ix86_reverse_condition instead of reverse_condition. Don't
29606 change code if *reverse_condition* returned UNKNOWN and don't
29607 swap ct/cf and negate diff in that case.
29609 2015-01-08 Mike Stump <mikestump@comcast.net>
29611 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29612 (pass_tsan_O0::gate): Likewise.
29613 * extend.texi (Function Attributes): Add no_sanitize_thread
29616 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29618 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29619 for registering builtins.
29620 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29621 add -fopenmp to the argv_obstack used when invoking
29622 compile_for_target.
29624 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29625 add "-m32" or "-m64" to argv_obstack.
29626 (generate_host_descr_file): Likewise, when invoking host_compiler.
29627 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29630 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29632 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29635 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29638 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29639 constant load if constant operand fits into I08.
29641 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29644 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29645 and TREE_THIS_VOLATILE for MEM_REFs.
29646 (build5_stat): Fix up initialization of TREE_READONLY and
29647 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29649 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29652 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29653 of r for the second alternative of the destination operand.
29655 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29658 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29660 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29662 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29664 ([-fivar-visibility], [-fvisibility]): Likewise.
29666 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29668 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29669 the file where @code, @command, etc is more appropriate.
29671 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29673 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29674 of -mrecip= documentation.
29676 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29679 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29680 correct reload handler if -m32 -mpowerpc64 is used.
29682 2015-01-06 Tom de Vries <tom@codesourcery.com>
29684 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29686 2015-01-08 Christian Bruel <christian.bruel@st.com>
29689 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29691 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29693 PR tree-optimization/63259
29694 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29695 if optab exists for 16bit byteswap.
29697 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29699 * opts.c (common_handle_option): Add support for
29700 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29701 * doc/invoke.texi: Document -fno-sanitize=all,
29702 -f{,no-}sanitize-recover=all. Document that
29703 -fsanitize=float-cast-overflow is not enabled
29704 by -fsanitize=undefined. Fix up documentation
29705 of -f{,no-}sanitize-recover.
29707 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29709 * config.gcc: Add Visium support.
29710 * configure.ac: Likewise.
29711 * configure: Regenerate.
29712 * doc/extend.texi (interrupt attribute): Add Visium.
29713 * doc/invoke.texi: Document Visium options.
29714 * doc/install.texi: Document Visium target.
29715 * doc/md.texi: Document Visium constraints.
29716 * common/config/visium: New directory.
29717 * config/visium: Likewise.
29719 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29721 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29722 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29724 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29726 * combine.c (combine_validate_cost): Do not count the cost of a
29727 split I2 twice. Do not display it twice in the dump, either.
29729 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29731 Revert parts of r219199.
29732 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29734 ([-Wtraditional]): Restore markup on <limits.h>.
29736 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29739 * doc/invoke.texi: Document -Wsuggest-override.
29741 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29743 PR rtl-optimization/64287
29744 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29745 (process_options): Disable flag_ipa_ra if profiling.
29747 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29749 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29751 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29753 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29754 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29755 put under #if TARGET_LOOPS guard.
29757 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29759 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29761 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29763 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29764 * rtl.h (refers_to_regno_p): Add overload.
29766 * bt-load.c: Likewise.
29767 * combine.c: Likewise.
29768 * df-scan.c: Likewise.
29769 * sched-deps.c: Likewise.
29770 * config/s390/s390.c: Likewise.
29771 * config/m32r/m32r.c: Likewise.
29772 * config/rs6000/spe.md: Likewise.
29773 * config/rs6000/rs6000.c: Likewise.
29774 * config/pa/pa.c: Likewise.
29775 * config/stormy16/stormy16.c: Likewise.
29776 * config/cris/cris.c: Likewise.
29777 * config/arc/arc.md: Likewise.
29778 * config/arc/arc.c: Likewise.
29779 * config/sh/sh.md: Likewise.
29780 * config/sh/sh.c: Likewise.
29781 * config/frv/frv.c: Likewise.
29783 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29786 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29787 call as cleanup of the whole body.
29788 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29789 * tsan.c (replace_func_exit): New function.
29790 (instrument_func_exit): Moved earlier.
29791 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29792 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29794 (tsan_pass): Don't call instrument_func_exit.
29795 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29796 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29800 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29801 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29802 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29803 if the result is integer_zerop, return NULL_TREE.
29804 * convert.c (convert_to_integer): Pass expr as ARG.
29806 PR tree-optimization/64465
29807 * tree-inline.c (redirect_all_calls): During inlining
29808 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29809 changed the stmt to a non-throwing call.
29811 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29813 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29814 etc markup throughout the file.
29816 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29818 Enable experimental TSAN support for Ada.
29819 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29821 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29823 PR tree-optimization/64494
29824 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29825 clear SSA_NAME_ANTI_RANGE_P flag.
29827 2015-01-05 Marek Polacek <polacek@redhat.com>
29829 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29831 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29833 Update copyright years.
29835 * gcc.c (process_command): Update copyright notice dates.
29836 * gcov-dump.c: Ditto.
29838 * doc/cpp.texi: Bump @copying's copyright year.
29839 * doc/cppinternals.texi: Ditto.
29840 * doc/gcc.texi: Ditto.
29841 * doc/gccint.texi: Ditto.
29842 * doc/gcov.texi: Ditto.
29843 * doc/install.texi: Ditto.
29844 * doc/invoke.texi: Ditto.
29846 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29848 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29850 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29852 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29853 ([-Wabi]): Likewise.
29854 ([-fmessage-length]): Likewise.
29855 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29856 ([-Wno-discarded-qualifiers]): Likewise.
29857 ([-Wnodiscarded-array-qualifiers]): Likewise.
29858 ([-Wno-virtual-move-assign]): Likewise.
29859 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29860 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29861 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29862 ([-fsanitize-undefined-trap-on-error]): Likewise.
29863 ([-floop-interchange]): Likewise.
29864 ([-ftree-coalesce-inlined-vars]): Likewise.
29865 ([-fvect-cost-model]): Likewise.
29866 ([-flto]): Likewise.
29867 ([--param]): Likewise.
29868 (Spec Files): Likewise.
29869 ([-mstrict-align]): Likewise.
29870 ([-mfix-cortex-a53-835769]): Likewise.
29871 ([-march], [-mtune]): Likewise.
29872 ([-mpic-register]): Likewise.
29873 ([-munaligned-access]): Likewise.
29874 ([-msp8]): Likewise.
29875 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29876 (AVR Built-in Macros): Likewise.
29877 ([-mpreferred-stack-boundary]): Likewise.
29878 ([-mtune-crtl]): Likewise.
29879 ([-mashf]): Likewise.
29880 ([-mmcu=]): Likewise.
29881 ([-minrt]): Likewise.
29882 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29883 ([-mupper-regs]): Likewise.
29884 ([-matomic-model]): Likewise.
29885 ([-mdiv]): Likewise.
29886 ([-mzdcbranch]): Likewise.
29887 ([-mdisable-callt]): Likewise.
29888 ([-msoft-float]): Likewise.
29889 ([-m8byte-align]): Likewise.
29890 ([-fstack-reuse]): Likewise.
29892 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29894 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29895 Fix markup, light copy-editing.
29896 ([-fauto-profile]): Rewrite to fix formatting and content
29899 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29901 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29902 Copy-edit description.
29903 ([-fisolate-erroneous-paths-attribute]): Likewise.
29904 * common.opt (fisolate-erroneous-paths-dereference):
29905 Copy-edit description.
29906 (fisolate-erroneous-paths-attribute): Likewise.
29908 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29910 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29913 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29915 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29916 ([-fvtv-debug]): Likewise.
29917 ([-Wc++-compat]): Likewise.
29918 ([-Wc++11-compat]): Likewise.
29919 ([-Wc++14-compat]): Likewise.
29920 ([-Wno-sized-deallocation]): Likewise.
29921 ([-femit-class-debug-always]): Likewise.
29922 ([-femit-struct-debug-detailed]): Likewise.
29923 ([-fno-keep-inline-dllexport]): Likewise.
29924 ([-fira-algorithm]): Likewise.
29925 ([-fira-region]): Likewise.
29926 ([-flra-remat]): Likewise.
29927 ([-fipa-ra]): Likewise.
29928 ([-fhoist-adjacent-loads]): Likewise.
29929 ([-fisolate-erroneous-paths-dereference]): Likewise.
29930 ([-fisolate-erroneous-paths-attribute]): Likewise.
29931 ([-ftree-switch-conversion]): Likewise.
29932 ([-ftree-tail-merge]): Likewise.
29933 ([-ftree-loop-if-convert]): Likewise.
29934 ([-ftree-loop-if-convert-stores]): Likewise.
29935 ([-ftree-loop-distribution]): Likewise.
29936 ([-ftree-loop-distribute-patterns]): Likewise.
29937 ([-flto-compression-level]): Likewise.
29938 ([-flto-report]): Likewise.
29939 ([-flto-report-wpa]): Likewise.
29940 ([-fuse-linker-plugin]): Likewise.
29941 ([-mfix-cortex-a53-835769]): Likewise.
29942 ([-mno-fix-cortex-a53-835769]): Likewise.
29943 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
29944 explicit listing; add a note to the discussion indicating they
29945 exist. Reorder table to group similar options. Add missing
29946 @opindex entries. Add @need commands throughout the table to
29947 allow it to be split across multiple pages.
29948 ([-m8bit-idiv]): Fix @opindex.
29949 ([-mavx256-split-unaligned-load]): Likewise.
29950 ([-mavx256-split-unaligned-store]): Likewise.
29951 ([-mstack-protector-guard]): Likewise.
29952 ([-mcpu=]): Likewise.
29953 ([-mcpu]): Likewise.
29954 ([-mpointer-size=]): Likewise.
29956 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
29958 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
29959 instead of `m' constraint. Likewise for unnamed movb comparison
29960 patterns using reg_before_reload_operand predicate.
29961 * config/pa/predicates.md (reg_before_reload_operand): Tighten
29962 predicate to reject register index and LO_SUM DLT memory forms
29965 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29967 * doc/invoke.texi (Option Summary): Fix spelling of
29968 -fdevirtualize-at-ltrans.
29969 ([-fdevirtualize]): Fix markup.
29970 ([-fdevirtualize-speculatively]): Fix typo.
29971 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
29972 implementor-speaky.
29973 * common.opt (fdevirtualize-at-ltrans): Likewise.
29974 * ipa-devirt.c: Fix typos in comments throughout the file.
29975 (ipa_devirt): Fix typos in format strings for dump output.
29977 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29979 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29980 discussion of defaults, light copy-editing.
29982 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29984 * tsan.c (instrument_expr): corrected previous checkin.
29986 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29988 Instrument bit field and unaligned accesses for TSAN.
29989 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29990 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29991 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29992 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29993 unaligned memory regions.
29995 2015-01-01 Anthony Green <green@moxielogic.com>
29997 * config/moxie/predicates.md (moxie_general_movsrc_operand):
29998 Restrict move source register offsets to 16 bits.
30000 Copyright (C) 2015 Free Software Foundation, Inc.
30002 Copying and distribution of this file, with or without modification,
30003 are permitted in any medium without royalty provided the copyright
30004 notice and this notice are preserved.