1 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
3 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
5 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
7 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8 SECTION_EXCLUDE in XO mapping class.
10 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
13 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14 and handle ne and eq codes.
15 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
16 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
17 CONST_INT_P. Use reverse_condition.
18 (sh_split_treg_set_expr): Likewise.
20 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
22 * config/arm/types.md (type): Add rotate_imm.
23 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
25 (*rorsi3_insn_uxtw): Likewise.
26 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
27 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
28 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
30 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32 PR rtl-optimization/67481
33 * ifcvt.c (contains_ccmode_rtx_p): New function.
34 (insn_valid_noce_process_p): Use it.
36 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38 PR rtl-optimization/67456
39 PR rtl-optimization/67464
40 PR rtl-optimization/67465
41 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
42 move in the mode of x. Handle combination of complex and simple
43 block pairs as well as the case when one is empty.
45 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
47 * doc/gimple.texi: Update references to gimple_statement_base.
48 * gdbhooks.py: Likewise.
51 2015-09-28 Daniel Cederman <cederman@gaisler.com>
53 * config/sparc/driver-sparc.c: map LEON to leon3
55 2015-09-28 Daniel Cederman <cederman@gaisler.com>
57 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
58 and make it inverse to change default
59 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
61 * doc/invoke.texi: Document change of default
63 2015-09-28 Daniel Cederman <cederman@gaisler.com>
65 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
66 true on %f0 for a target without FPU.
67 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
69 (untyped_return): Do not load %f0 for a target without FPU.
71 2015-09-28 Andrew Pinski <apinski@cavium.com>
73 * config/aarch64/aarch64.md (prefetch):
74 Change the predicate of operand 0 to register_operand.
76 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
78 * config/i386/predicates.md (register_sse4nonimm_operand): New
80 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
81 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
82 Use register_sse4nonimm_operand as operand 0 predicate.
83 (*vec_extractv8hi_sse2): Remove insn pattern.
84 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
85 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
87 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
88 Kaz Kojima <kkojima@gcc.gnu.org>
91 * config/sh/sh-protos.h (sh_lra_p): Declare.
92 * config/sh/sh.c (sh_lra_p): Make non-static.
93 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
94 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
95 Expand into addsi3_scr if operands[2] if needed.
96 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
97 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
98 (addsi3_scr, *addsi3): New insn_and_split patterns.
100 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
102 PR rtl-optimization/64164
103 PR tree-optimization/67312
107 * cfgexpand.c (parm_in_stack_slot_p): Remove.
108 (ssa_default_def_partition): Remove.
109 (get_rtl_for_parm_ssa_default_def): Remove.
110 (set_rtl): Check that RTL assignments match expectations.
111 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
112 default def location for params and results. Record SSA names
113 or types in REG and MEM attrs, respectively.
115 (expand_one_ssa_partition): Drop logic that assigned MEMs with
116 unassigned addresses.
117 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
118 deferred stack alloc vars.
119 (expand_used_vars): Skip partitions holding parm default defs.
120 Move adjust_one_expanded_partition_var loop...
121 (pass_expand::execute): ... here. Drop redundant assert.
122 Adjust comments before the final loop over all ssa names.
123 Require assigned rtl of parms and results to match exactly.
124 Reset its attributes to match them, not any other variables in
126 (expand_debug_expr): Use entry value for PARM's default defs
127 only iff they have zero nondebug uses.
128 * cfgexpand.h (parm_in_stack_slot_p): Remove.
129 (get_rtl_for_parm_ssa_default_def): Remove.
130 (set_parm_rtl): Declare.
131 * doc/invoke.texi: Improve wording.
132 * explow.c (promote_decl_mode): Fix promote_function_mode for
133 result decls not by reference.
134 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
135 bypass TYPE_MODE to get the actual vector mode.
136 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
137 2015-08-19's changes as follows. Drop include of
138 basic-block.h and df.h.
139 (rtl_for_parm): Remove.
140 (maybe_reset_rtl_for_parm): Remove.
141 (parm_in_unassigned_mem_p): Remove.
142 (use_register_for_decl): Add logic for RESULT_DECLs matching
143 assign_parms' behavior.
144 (split_complex_args): Revert.
145 (assign_parms_augmented_arg_list): Revert. Add comment
146 referencing the logic above.
147 (assign_parm_adjust_stack_rtl): Revert.
148 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
149 of SET_DECL_RTL. Set up a REG if the parm demands so.
150 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
151 calls into a single set_parm_rtl. Set up a temporary RTL
152 temporarily for expand_assignment.
153 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
154 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
155 (assign_bounds): Revert.
156 (assign_parms): Revert. Use set_parm_rtl.
157 (allocate_struct_function): Relayout result and parms of
158 non-abstruct functions.
159 (expand_function_start): Revert. Use set_parm_rtl. If the
160 result is not a hard reg, create a pseudo from the promoted
161 mode of the default def. Promote static chain mode.
162 * tree-outof-ssa.c (remove_ssa_form): Drop unused
163 partition_has_default_def. Set up
164 partitions_for_parm_default_defs.
165 (finish_out_of_ssa): Remove partition_has_default_def.
166 Release partitions_for_parm_default_defs.
167 * tree-outof-ssa.h (struct ssaexpand): Remove
168 partition_has_default_def. Add
169 partitions_for_parm_default_defs.
170 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
172 (build_ssa_conflict_graph): Fix conflict-detection of default
173 defs of even unused default defs of params and results.
174 (for_all_parms): New.
175 (create_default_def): New.
176 (register_default_def): New.
177 (coalesce_with_default): New.
178 (create_outofssa_var_map): Create default defs for all parms
179 and results, and register their partitions. Add GIMPLE_RETURN
180 operands as coalesce candidates with results. Add default
181 defs of each parm or result as coalesce candidates with its
182 other defs. Mark each result def, and each default def of
183 parms, as used_in_copy.
184 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
185 with the ssa names, even anonymous ones. Drop
186 parm_in_stack_slot_p calls. Require same signedness and
188 (coalesce_ssa_name): Add coalesce candidates for all defs of
189 each parm and result, even unused ones.
190 (parm_default_def_partition_arg): New type.
191 (set_parm_default_def_partition): New.
192 (get_parm_default_def_partitions): New.
193 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
194 * tree-ssa-live.c (partition_view_init): Regard unused defs of
195 parms and results as used.
196 (verify_live_on_entry): Don't error out just because they're
199 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
201 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
202 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
203 (output_fde): Don't output length for debug_frame on AIX.
204 (output_call_frame_info): Don't output length for debug_frame on AIX.
205 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
206 HAVE_XCOFF_DWARF_EXTRAS.
207 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
208 HAVE_XCOFF_DWARF_EXTRAS.
209 (output_compilation_unit_header): Don't output length on AIX.
210 (output_pubnames): Don't output length on AIX.
211 (output_aranges): Delete argument. Compute length locally. Don't
212 output length on AIX.
213 (output_line_info): Don't output length on AIX.
214 (dwarf2out_finish): Don't compute aranges_length.
215 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
216 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
217 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
218 symbol decoration for AIX.
219 (rs6000_xcoff_debug_unwind_info): New.
220 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
222 (rs6000_xcoff_declare_function_name): Emit different
223 .function pseudo-op when DWARF2_DEBUG. Don't call
224 xcoffout_declare_function for DWARF2_DEBUG.
225 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
227 * config/rs6000/aix71.h: New.
228 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
230 * configure: Regenerate.
231 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
234 2015-09-26 Jeff Law <law@redhat.com>
236 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
238 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
241 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
244 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
247 * config/cris/cris.md (asrandb): Fix left shift undefined
251 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
254 * lra-constarints.c (match_reload): Check presence of the input pseudo
255 in the output operand.
257 2015-09-25 Tobias Burnus <burnus@net-b.de>
259 * doc/invoke.texi (-fsanitize): Minor wording tweak.
261 2015-09-25 Tobias Burnus <burnus@net-b.de>
263 * doc/invoke.texi (-fsanitize): Update URLs.
265 2015-09-25 Teresa Johnson <tejohnson@google.com>
267 * opts.c (finish_options): Unset -freorder-blocks-and-partition
268 if not using profile.
270 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
272 PR pretty-print/67567
273 * pretty-print.c (pp_string): Add gcc_checking_assert.
274 * pretty-print.h (output_buffer_append_r): Likewise.
276 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
279 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
280 addr2 individually. Don't emit logical or insn if one is known to
281 be aligned approriately.
282 (sh_expand_cmpnstr): Likewise.
284 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
286 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
287 __builtin_aarch64_fp[sc]r arguments into a register.
289 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
291 * config.gcc (x86_archs): Replace lakemount with lakemont.
292 (with_cpu): Likewise.
293 (with_arch): Likewise.
294 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
295 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
296 __tune_lakemount__ with __tune_lakemont__.
297 * config/i386/i386.c (lakemount_cost): Renamed to ...
298 (lakemont_cost): This.
299 (m_LAKEMOUNT): Renamed to ...
301 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
302 (processor_target_table): Replace "lakemount" with "lakemont".
303 (processor_alias_table): Likewise.
304 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
306 (ix86_adjust_cost): Likewise.
307 (ia32_multipass_dfa_lookahead): Likewise.
308 * config/i386/i386.h (processor_type): Likewise.
309 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
310 * doc/invoke.texi: Replace lakemount with lakemont. Replace
311 Lakemount with Lakemont.
313 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
315 * config.gcc (x86_archs): Replace iamcu with lakemount.
316 (with_cpu): Likewise.
317 (with_arch): Likewise.
318 * doc/invoke.texi: Likewise.
319 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
320 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
321 __tune_iamcu__ with __tune_lakemount__.
322 * config/i386/i386.c (iamcu_cost): Renamed to ...
323 (lakemount_cost): This.
324 (m_IAMCU): Renamed to ...
326 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
327 (processor_target_table): Replace "iamcu" with "lakemount".
328 (processor_alias_table): Likewise.
329 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
331 (ix86_adjust_cost): Likewise.
332 (ia32_multipass_dfa_lookahead): Likewise.
333 * config/i386/i386.h (processor_type): Likewise.
334 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
336 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
338 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
339 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
341 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
342 (pa_expand_compare_and_swap_loop): New.
343 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
344 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
345 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
346 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
347 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
350 2015-09-24 Michael Collison <michael.collison@linaro.org>
353 * read-md.c (read_name): Allow mode iterators inside angle
354 brackets in rtl expressions.
356 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
359 * ira-color.c (update_allocno_cost): Add parameter.
360 (update_costs_from_allocno): Decrease conflict cost. Pass the new
363 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
366 * opts-common.c (prune_options): Discard all -fdiagnostics-color
367 but the last one, which is moved to the front to be processed
369 * opts.c (enable_warning_as_error): Reject options that do not
372 2015-09-24 Jiong Wang <jiong.wang@arm.com>
374 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
376 2015-09-24 Jiong Wang <jiong.wang@arm.com>
378 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
379 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
380 (aarch64_cannot_force_const_mem): Likewise.
381 (aarch64_classify_address): Likewise.
382 (aarch64_classify_symbolic_expression): Likewise.
383 (aarch64_print_operand): Likewise.
384 (aarch64_classify_symbol): Likewise.
385 (aarch64_mov_operand_p): Likewise.
386 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
387 (aarch64_mov_operand): Likewise.
389 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
391 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
392 for info->spe_gp_size.
394 2015-09-24 Richard Biener <rguenther@suse.de>
397 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
400 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
402 * tree-object-size.c (plus_stmt_object_size)
403 (cond_expr_object_size): Change the formal parameters from gimple
405 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
406 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
407 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
409 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
411 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
412 Check for ld -type pie on Solaris 11.x and 12.
413 * configure: Regenerate.
414 * config.in: Regenerate.
416 * gcc.c (LD_PIE_SPEC): Allow redefinition.
418 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
419 (STARTFILE_SPEC): Use it.
420 (ENDFILE_CRTEND_SPEC): Define.
421 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
422 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
423 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
424 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
425 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
426 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
427 (ENDFILE_ARCH_SPEC): Define.
428 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
430 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
432 * configure.ac (gcc_cv_solaris_crts): New test.
433 * configure. Regenerate.
434 * config.in: Regenerate.
435 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
436 HAVE_SOLARIS_CRTS variant.
438 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
440 * tree-inline.h (count_insns_seq): Delete prototype.
441 (estimate_num_insns_seq): Define prototype.
442 * tree-inline.c (count_insns_seq): Delete.
443 (estimate_num_insns_seq): Remove static qualifier.
444 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
445 with estimate_num_insns_seq.
447 2015-09-24 Richard Biener <rguenther@suse.de>
449 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
451 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
452 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
454 (ao_ref_init_from_vn_reference): Record clique and base in the
456 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
458 2015-09-24 Richard Biener <rguenther@suse.de>
460 PR tree-optimization/48885
461 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
462 as not including any restrict tags from other pointers.
464 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
466 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
467 character when appending to offload_targets.
469 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
470 offload targets by commas, not colons.
471 * config.in: Regenerate.
472 * configure: Likewise.
473 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
474 instead of setting up the default offload targets here...
475 (process_command): ..., do it here.
477 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
478 targets are separated by commas.
479 * config.h.in: Regenerate.
481 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
482 Nathan Sidwell <nathan@codesourcery.com>
484 * omp-low.h (omp_reduction_init_op): Declare.
485 * omp-low.c (omp_reduction_init_op): New, broken out of ...
486 (omp_reduction_init): ... here. Call it.
487 * tree-parloops.c (initialize_reductions): Use
488 omp_reduction_init_op.
490 2015-09-23 Richard Biener <rguenther@suse.de>
493 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
494 undefined overflow unless they will cancel out.
496 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
498 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
501 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
504 * opts.h (write_langs): Declare.
505 * opts-global.c (write_langs): Make it extern.
507 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
510 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
511 overlapping regs when matching the pattern.
513 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
515 * config/aarch64/aarch64-simd.md
516 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
517 (aarch64_float_truncate_hi_v4sf_le): New.
518 (aarch64_float_truncate_hi_v4sf_be): Likewise.
520 2015-09-23 Richard Biener <rguenther@suse.de>
522 * tree-ssa-structalias.c (intra_create_variable_infos): Build
523 representatives for all restrict qualified pointer destinations.
525 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
527 * config/i386/i386.md (define_code_attr mshift): New.
528 (define_mode_iterator SWI1248_AVX512BW): Rename ...
529 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
531 (define_insn "*k<logic><mode>"): Use new iterator name.
532 (define_insn "*<mshift><mode>3"): New.
534 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
537 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
538 mark the block as accessible.
540 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
542 * function.c (thread_prologue_and_epilogue_insns): Delete
543 orig_entry_edge argument to try_shrink_wrapping.
544 * shrink-wrap.c (can_get_prologue): New function.
545 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
546 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
547 can_get_prologue where needed. Remove code that finds a single
548 edge for the prologue. Remove code that tests if any reg clobbered
549 by the prologue is live on the prologue edge. Remove code that finds
550 the new prologue edge after duplicating blocks. Make a new prologue
552 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
554 2015-09-22 Jeff Law <law@redhat.com>
556 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
559 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
561 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
562 -Wtemplates, -Wnamespaces): Document.
564 2015-09-22 Tom de Vries <tom@codesourcery.com>
566 PR tree-optimization/67671
567 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
568 pointer references as restrict.
570 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
572 * config/nios2/nios2.c (nios2_legitimize_address): When handling
573 'reg + reloc' cases, allow first operand to be non-REG, and use
574 force_reg() to enforce address pattern.
576 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
579 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
580 (define_mode_iterator VI12_AVX_AVX512F): New.
581 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
582 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
583 (define_insn "*<code><mode>3"): ... Into new pattern using
584 VI12_AVX_AVX512F iterators without masking.
586 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
588 * config.gcc: Support "skylake-avx512".
589 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
590 PROCESSOR_SKYLAKE_AVX512.
591 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
592 (processor_target_table): Add "skylake-avx512".
593 (PTA_SKYLAKE_AVX512): Define.
594 (ix86_option_override_internal): Add "skylake_avx512".
595 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
596 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
597 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
598 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
599 * doc/invoke.texi (skylake-avx512): New.
601 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
603 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
605 (define_insn "kunpcksi"): Ditto.
606 (define_insn "kunpckdi"): Ditto.
608 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
610 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
611 iterator instead of fixed modes.
613 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
615 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
617 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
618 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
619 out_result. Update to support update-fetch operations.
620 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
621 Adjust for change to aarch64_gen_atomic_ldop.
622 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
623 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
624 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
625 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
626 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
628 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
630 * config/aarch64/aarch64-protos.h
631 (aarch64_atomic_ldop_supported_p): Declare.
632 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
633 (enum aarch64_atomic_load_op_code): New.
634 (aarch64_emit_atomic_load_op): New.
635 (aarch64_gen_atomic_ldop): Update to support load-operate
637 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
639 (aarch64_atomic_<atomic_optab><mode>): New.
640 (aarch64_atomic_<atomic_optab><mode>_lse): New.
641 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
642 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
643 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
645 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
647 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
648 (UNSPECV_ATOMIC_LDOP_OR): New.
649 (UNSPECV_ATOMIC_LDOP_BIC): New.
650 (UNSPECV_ATOMIC_LDOP_XOR): New.
651 (UNSPECV_ATOMIC_LDOP_PLUS): New.
654 (aarch64_atomic_load<atomic_ldop><mode>): New.
656 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
658 * config/aarch64/aarch64.md
659 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
662 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
664 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
666 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
667 (aarch64_gen_atomic_ldop): New.
668 (aarch64_split_atomic_op): Fix whitespace and add a comment.
669 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
670 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
671 (atomic_exchange<mode>): Replace with an expander.
672 (aarch64_atomic_exchange<mode>): New.
673 (aarch64_atomic_exchange<mode>_lse): New.
674 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
675 (aarch64_atomic_swp<mode>): New.
677 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
679 * tree-inline.c (expand_call_inline): Use inform for extra note.
680 Do not give a note with UNKNOWN_LOCATION.
681 Replace input_location with gimple_location (stmt).
682 Use true/false instead of TRUE/FALSE.
684 2015-09-22 Tom de Vries <tom@codesourcery.com>
686 PR tree-optimization/67666
687 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
688 with single field non-conservative.
690 2015-09-21 David S. Miller <davem@davemloft.net>
694 2015-09-11 David S. Miller <davem@davemloft.net>
696 * config/sparc/constraints.md: Make "U" constraint a real register
698 * config/sparc/sparc.c (TARGET_LRA_P): Define.
699 (D_MODES, DF_MODES): Add missing cast.
700 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
701 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
702 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
704 * config/sparc/sparc.h (PROMOTE_MODE): Define.
705 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
706 provide these insn when flag_pic.
708 2015-09-17 David S. Miller <davem@davemloft.net>
710 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
712 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
714 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
715 (HARD_REGNO_CALLER_SAVE_MODE): Define.
716 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
717 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
718 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
719 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
720 provide when flag_pic.
722 2015-09-21 Jeff Law <law@redhat.com>
724 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
727 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
729 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
731 2015-09-21 Richard Biener <rguenther@suse.de>
733 * passes.c (rest_of_decl_compilation): Do not call
734 dwarf2out_early_global_decl for aliases.
736 2015-09-21 Richard Biener <rguenther@suse.de>
739 * dwarf2out.c (add_location_or_const_value_attribute): Remove
740 attribute parameter. Early exit if either DW_AT_const_value
741 or DW_AT_location are present already.
742 (gen_variable_die): Adjust caller.
743 (dwarf2out_late_global_decl): Likewise.
745 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
748 * config/sh/sh.c (sh_remove_overlapping_post_inc,
749 sh_peephole_emit_move_insn): Add new functions.
750 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
751 sh_peephole_emit_move_insn): Declere them.
752 * config/sh/sh.md: Use them in various peephole2 patterns.
754 2015-09-21 Richard Biener <rguenther@suse.de>
757 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
758 address with -fno-delete-null-pointer-checks.
760 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
762 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
763 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
764 (reduc_uplus_v16qi): Remove.
766 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
767 (reduc_<VEC_reduc_name>_v2df): Remove.
768 (reduc_<VEC_reduc_name>_v4sf): Remove.
769 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
771 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
772 gen_ function by removing * prefix.
773 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
775 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
778 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
779 Print i_bound without converting it to a tree.
781 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
783 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
784 operands[4] operands[5] swap with std::swap, removed tmp variable.
785 (arm_evpc_neon_vzip): Replaced in0/in1 and
786 out0/out1 swaps with std::swap, removed x variable.
787 (arm_evpc_neon_vtrn): Replaced in0/int1 and
788 out0/out1 swaos with std::swap, removed x variable.
789 (arm_expand_vec_perm_const_1): Replaced
790 d->op0/d->op1 swap with std::swap, removed x variable.
791 (arm_evpc_neon_vuzp): Replaced in0/in1 and
792 out0/out1 swaps with std::swap, removed x variable.
794 2015-09-21 Jonathan Yong <10walls@gmail.com>
796 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
797 sysroot/usr/lib/32api for additional win32 libraries,
798 fixes failing Cygwin bootstrapping.
800 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
802 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
804 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
807 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
808 (*mov_t_msb_neg): Rewrite negc pattern.
810 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
812 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
813 immediate generation code.
815 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
817 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
818 redundant immediate generation code.
820 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
822 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
823 (AARCH64_NUM_BITMASKS): Remove.
824 (aarch64_bitmasks_cmp): Remove.
825 (aarch64_build_bitmask_table): Remove.
827 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
829 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
830 slow immediate matching loops with a faster algorithm.
832 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
834 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
837 2015-09-20 Jeff Law <law@redhat.com>
839 PR tree-optimization/47679
840 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
841 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
842 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
843 (thread_through_normal_block): Use record_temporary_equivalences.
845 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
847 * coretypes.h (gimple): Change typedef to be a forward declaration.
848 * gimple.h (gimple_statement_base): rename to gimple.
849 * (all functions and types using gimple): Adjust.
852 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
853 David Edelsohn <dje.gcc@gmail.com>
855 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
856 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
857 (EH_FRAME_THROUGH_COLLECT2): Define.
858 (EH_TABLES_CAN_BE_READ_ONLY): Define.
859 (ASM_OUTPUT_DWARF_PCREL): Define.
860 (ASM_OUTPUT_DWARF_DATAREL): Define.
862 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
864 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
867 2015-09-18 Jeff Law <law@redhat.com>
869 PR tree-optimization/47679
870 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
872 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
873 object. Update constructor.
874 (pass_dominator::execute): Corresponding chagnes to declaration
875 and initialization of avail_exprs_stack. Update constructor call
876 for dom_opt_dom_walker object.
877 (lookup_avail_expr, record_cond): Accept additional argument. Pass
878 it down to children as needed.
879 (record_equivalences_from_incoming_edge): Likewise.
880 (eliminate_redundant_computations): Likewise.
881 (record_equivalences_from_stmt): Likewise.
882 (simplify_stmt_for_jump_threading): Likewise.
883 (record_temporary_equivalences): Likewise.
884 (optimize_stmt): Likewise.
885 (dom_opt_dom_walker::thread_across_edge): Update access to
886 avail_exprs_stack object and pass it to children as needed.
887 (dom_opt_dom_walker::before_dom_children): Similarly.
888 (dom_opt_dom_walker::after_dom_children): Similarly.
889 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
890 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
891 Add avail_expr_stack argument. Pass it to children as needed.
892 (dummy_simplify): Likewise.
893 (simplify_control_stmt_condition): Likewise.
894 (thread_around_empty_blocks): Likewise.
895 (thread_through_normal_block): Likewise.
896 (thread_across_edge): Likewise.
897 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
898 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
900 PR tree-optimization/47679
901 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
903 (dom_opt_dom_walker): New private member holding the const_and_copies
904 object. Update constructor.
905 (pass_dominator::execute): Corresponding changes to declaration
906 and initialization of const_and_copies. Update constructor call
907 for the dom_opt_dom_walker object.
908 (record_temporary_equivalences): Accept const_and_copies argument
909 pass it down to children as needed.
910 (record_equality): Likewise.
911 (record_equivalences_from_incoming_edge): Likewise.
912 (cprop_into_successor_phis, optimize_stmt): Likewise.
913 (eliminate_redundant_computations): Likewise.
914 (dom_opt_dom_walker::thread_across_edge): Update access to
915 const_and_copies object and pass it to children as needed.
916 (dom_opt_dom_walker::before_dom_children): Similarly.
917 (dom_opt_dom_walker::after_dom_children): Similarly.
919 PR tree-optimization/47679
920 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
921 it into the avail_exprs_stack class.
922 (pass_dominator::execute): Corresponding changes to declaration
923 and initialization of avail_exprs. Pass avail_exprs to
924 dump_dominator_optimization_stats.
925 (record_cond): Extract avail_exprs from avail_exprs_stack.
926 (lookup_avail_expr): Similarly.
927 (htab_staticstics): Remove unnecessary prototype. Move to earlier
929 (dump_dominator_optimization_stats): Make static and prototype.
930 Add argument for the hash table to dump.
931 (debug_dominator_optimization_stats): Remove.
932 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
934 (debug_dominator_optimization_stats): Similarly.
935 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
936 "void" in prototype for pop_to_marker method. Add accessor method
937 for the underlying avail_exprs table.
939 * tree-ssa-threadedge.c: Remove trailing whitespace.
941 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
943 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
945 (pa_ldil_cint_p): Likewise.
946 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
947 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
949 * config/pa/pa.md: Likewise.
951 2015-09-18 David Malcolm <dmalcolm@redhat.com>
953 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
954 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
955 (diagnostic_show_locus): Likewise.
956 (diagnostic_print_caret_line): Likewise.
957 * diagnostic-show-locus.c: New file.
959 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
961 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
962 "back" parameter. Declare label in #if block.
964 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
967 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
968 the address to a register.
970 2015-09-18 Jeff Law <law@redhat.com>
972 PR tree-optimization/47679
973 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
974 * tree-ssa-dom.c: Remove unnecessary header includes.
975 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
976 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
977 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
978 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
979 (pass_phi_only_cprop::execute): Likewise.
980 (make_pass_phi_only_cprop): Likewise.
981 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
982 uses of file scoped statics by passing the required objects
983 as parameters wherever needed.
985 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
986 David Edelsohn <dje.gcc@gmail.com>
988 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
989 EH_FRAME_THROUGH_COLLECT2.
990 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
992 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
993 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
994 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
995 * except.c (switch_to_exception_section): Use a read-only section
996 even if EH_FRAME_SECTION_NAME is undefined.
997 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
998 * collect2.c (write_c_file_stat): Provide dbase on AIX.
999 (scan_prog_file): Don't export __dso_handle nor
1001 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1002 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1003 (ASM_OUTPUT_DWARF_PCREL): Define.
1004 (ASM_OUTPUT_DWARF_DATAREL): Define.
1005 (EH_FRAME_THROUGH_COLLECT2): Define.
1006 (EH_FRAME_IN_DATA_SECTION): Delete.
1007 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1008 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1010 (rs6000_asm_output_dwarf_datarel): Declare.
1011 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1012 (rs6000_aix_asm_output_dwarf_datarel): New.
1013 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1014 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1015 (EH_FRAME_THROUGH_COLLECT2): Define.
1016 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1017 (EH_FRAME_THROUGH_COLLECT2): Define.
1018 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1019 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1020 (EH_FRAME_THROUGH_COLLECT2): New.
1021 (ASM_OUTPUT_DWARF_DATAREL): New.
1022 * doc/tm.texi: Regenerate.
1024 2015-09-18 Richard Biener <rguenther@suse.de>
1026 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1027 we're in early phase.
1028 (schedule_generic_params_dies_gen): Likewise.
1029 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1030 work as possible, retaining unhandled cases.
1031 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1032 clear out generic_type_instances at the end.
1033 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1034 (dwarf2out_early_finish): ... here. Do most of
1035 gen_remaining_tmpl_value_param_die_attribute here.
1037 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1039 PR tree-optimization/67283
1040 * tree-sra.c (type_consists_of_records_p): Rename to...
1041 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1042 (completely_scalarize_record): Rename to...
1043 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1044 (scalarize_elem): New.
1045 (analyze_all_variable_accesses): Follow renamings.
1047 2015-09-18 Richard Biener <rguenther@suse.de>
1049 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1052 2015-09-18 Richard Biener <rguenther@suse.de>
1054 PR tree-optimization/66142
1055 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1056 treat MEM[&x] and x the same.
1057 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1058 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1059 when we simplified sth.
1060 (vn_reference_maybe_forwprop_address): Likewise.
1061 (valueize_refs_1): When we simplified through
1062 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1063 set valueized_anything to true.
1064 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1065 one ref kills the other instead of just a offset-based test.
1066 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1067 for the operand_equal_p test to compare bases and also compare
1070 2015-09-17 Christian Bruel <christian.bruel@st.com>
1072 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1074 2015-09-17 Richard Henderson <rth@redhat.com>
1077 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1078 pointers that encode the alignment of the object.
1080 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1082 PR rtl-optimization/66790
1083 * df-problems.c (LIVE): Amend documentation.
1085 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1087 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1089 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1090 * genopinit.c (main): Add an include guard to insn-opinit.h.
1091 Protect the rtx_code parts with NUM_RTX_CODE.
1092 * optabs.h: Split parts out to...
1093 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1094 * optabs.c: Split parts out to...
1095 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1096 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1097 * fold-const.c: Likewise.
1098 * target-globals.c: Likewise.
1099 * tree-if-conv.c: Likewise.
1100 * tree-ssa-forwprop.c: Likewise.
1101 * tree-ssa-loop-prefetch.c: Likewise.
1102 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1103 Remove unncessary include files.
1104 * tree-ssa-phiopt.c: Likewise.
1105 * tree-ssa-reassoc.c: Likewise.
1106 * tree-switch-conversion.c: Likewise.
1107 * tree-vect-data-refs.c: Likewise.
1108 * tree-vect-generic.c: Likewise.
1109 * tree-vect-loop.c: Likewise.
1110 * tree-vect-patterns.c: Likewise.
1111 * tree-vect-slp.c: Likewise.
1112 * tree-vect-stmts.c: Likewise.
1113 * tree-vrp.c: Likewise.
1114 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1115 rather than optabs.h.
1116 * expr.c: Include optabs-tree.h.
1117 * function.c: Likewise.
1119 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1122 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1123 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1124 * config/arm/arm.c: Include common/common-target.h.
1125 (use_return_insn): Return 0 if the static chain register was saved
1126 above a non-APCS frame.
1127 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1128 (struct scratch_reg): New.
1129 (get_scratch_register_on_entry): New function.
1130 (release_scratch_register_on_entry): Likewise.
1131 (arm_emit_probe_stack_range): Likewise.
1132 (output_probe_stack_range): Likewise.
1133 (arm_expand_prologue): Factor out code dealing with the IP register
1134 for nested function and adjust it for stack checking.
1135 Invoke arm_emit_probe_stack_range if static builtin stack checking
1137 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1139 (arm_expand_epilogue): Add the saved static chain register, if any, to
1140 the amount of pre-pushed registers to pop.
1141 (arm_frame_pointer_required): Return true if static stack checking is
1142 enabled and we want to catch the exception with the EABI unwinder.
1143 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1144 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1145 * config/arm/arm.md (probe_stack): New insn.
1146 (probe_stack_range): Likewise.
1148 2015-09-17 Richard Biener <rguenther@suse.de>
1150 * genmatch.c (parser::parse_expr): Improve error message
1151 for mis-placed flags.
1153 2015-09-17 Richard Biener <rguenther@suse.de>
1155 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1156 debug hook when we created a varpool node.
1157 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1158 dwarf2out_early_global_decl, when not just add location or
1159 value attributes to existing DIEs.
1161 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1163 * config/aarch64/aarch64.md (copysigndf3): New.
1164 (copysignsf3): Likewise.
1166 2015-09-17 David S. Miller <davem@davemloft.net>
1168 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1169 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1170 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1171 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1172 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1173 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1174 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1175 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1176 provide when flag_pic.
1178 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1180 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1181 object_allocator change.
1183 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1185 PR tree-optimization/66388
1186 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1187 (dump_iv): Dump no_overflow information.
1188 (alloc_iv): Initialize new field for struct iv.
1189 (mark_bivs): Count number of no_overflow bivs.
1190 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1192 (idx_find_step): Call new functions above.
1193 (add_candidate_1, add_candidate): New paramter.
1194 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1195 (get_computation_aff): Simplify convertion of cand for BIV.
1196 (get_computation_cost_at): Step cand's base if necessary.
1198 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1200 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1202 (tree_simplify_using_condition): Ditto.
1203 (simplify_using_initial_conditions): Ditto.
1204 (loop_exits_before_overflow): Pass new argument to function
1205 simplify_using_initial_conditions. Remove case for type conversions
1207 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1209 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1210 in iv base using loop initial conditions.
1212 2015-09-16 Jeff Law <law@redhat.com>
1214 PR tree-optimization/47679
1215 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1216 (free_all_edge_infos): Use it.
1217 (allocate_edge_info): Free preexisting edge info data.
1218 (pass_dominator::execute): Set up initial edge info structures.
1219 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1221 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1222 If non-null, then push/pop markers appropriately.
1223 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1224 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1227 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1229 * config/ft32/ft32.c: Fix the memory address space predicate.
1231 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1234 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1235 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1237 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1239 * toplev.h (check_global_declaration): Remove declaration.
1240 * toplev.c (check_global_declaration): Move to ...
1241 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1242 (analyze_functions): Update call.
1244 2015-09-16 David S. Miller <davem@davemloft.net>
1246 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1247 lowpart of a SUBREG has offset zero.
1249 2015-09-16 Jeff Law <law@redhat.com>
1251 PR tree-optimization/47679
1252 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1253 tree-ssa-scopedtables.h.
1254 (struct hashable_expr, class expr_hash_elt): Likewise.
1255 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1256 Move associated methods into tree-ssa-scopedtables.c.
1257 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1258 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1259 (add_hashable_expr): Likewise.
1260 (record_cond): Delete element directly.
1261 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1262 private copy ctor and assignment operator methods.
1263 (expr_elt_hasher): Inline trivial methods.
1264 (initialize_expr_from_cond): Prototype.
1265 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1266 methods that were previously in tree-ssa-dom.c. Improve various
1269 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1271 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1273 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1276 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1279 2015-09-16 Richard Biener <rguenther@suse.de>
1282 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1283 location of possibly shared trees.
1285 2015-09-16 Richard Biener <rguenther@suse.de>
1288 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1290 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1292 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1293 offset and size computations instead of HOST_WIDE_INT.
1295 2015-09-16 Richard Biener <rguenther@suse.de>
1298 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1299 result before builting a tree via wide_int_to_tree.
1301 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1303 * Makefile.in: Add memory-block.cc
1304 (pool_allocator::initialize): Use fixed block size.
1305 (pool_allocator::release): Use memory_block_pool.
1306 (pool_allocator::allocate): Likewise.
1307 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1309 * cfg.c (initialize_original_copy_tables): Likewise.
1310 * cselib.c (elt_list_pool, elt_loc_list_pool,
1311 cselib_val_pool): Likewise.
1312 * df-problems.c (df_chain_alloc): Likewise.
1313 * df-scan.c (df_scan_alloc): Likewise.
1314 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1315 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1316 group_info_pool, deferred_change_pool): Likewise.
1317 * et-forest.c (et_nodes, et_occurrences): Likewise.
1318 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1319 ipcp_agg_lattice_pool): Likewise.
1320 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1321 * ipa-profile.c (histogram_pool): Likewise.
1322 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1323 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1324 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1325 * ira-color.c (update_cost_record_pool): Likewise.
1326 * lra-lives.c (lra_live_range_pool): Likewise.
1327 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1328 * memory-block.cc: New file.
1329 * memory-block.h: New file.
1330 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1331 * sched-deps.c (sched_deps_init): Likewise.
1332 * sel-sched-ir.c (sched_lists_pool): Likewise.
1333 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1334 * tree-sra.c (access_pool): Likewise.
1335 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1336 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1337 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1338 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1339 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1340 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1341 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1342 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1344 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1346 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1348 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1351 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1353 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1354 to pass TLS call argument, according to current ABI.
1355 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1356 callx0 for TLS call, according to current ABI.
1358 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1360 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1361 on stack restore statements.
1362 (decide_copy_try_finally): Do not consider a stack restore statement as
1363 coming from sources.
1365 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1367 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1368 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1370 2015-09-15 Jeff Law <law@redhat.com>
1372 PR tree-optimization/47679
1373 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1374 methods and private members.
1375 (avail_exprs_stack): Similarly. Change type of global
1376 from a pair of expr_hash_elt_t to the new class.
1377 (expr_elt_hasher::hash): Corresponding changes.
1378 (expr_elt_hasher::equal): Similarly.
1379 (avail_expr_hash): Similarly.
1380 (pass_dominator::execute): Similarly.
1381 (dom_opt_dom_walker::thread_across_edge): Similarly.
1382 (record_cond): Similarly.
1383 (dom_opt_dom_walker::before_dom_children): Similarly.
1384 (dom_opt_dom_walker::after_dom_children): Similarly.
1385 (lookup_avail_expr): Likewise.
1386 (initialize_hash_element): Now a expr_hash_elt constructor.
1387 (initialize_hash_element_from_expr): Similarly.
1388 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1389 (free_expr_hash_elt): Call dtor for the element.
1390 (remove_local_expressions_from_table): Now the "pop_to_marker"
1391 method in the available_exprs_stack class.
1392 (avail_expr_stack::record_expr): Method factored out.
1393 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1395 (hashable_expr_equal_p): Fix formatting.
1397 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1399 * input.h (location_get_source_line): Drop "expanded_location"
1400 param in favor of a file and line number.
1401 * input.c (location_get_source_line): Likewise.
1402 (dump_location_info): Update for change in signature of
1403 location_get_source_line.
1404 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1406 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1408 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1409 Bump to 4KB for SJLJ exceptions.
1410 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1411 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1412 * doc/tm.texi: Regenerate.
1414 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1416 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1417 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1420 2015-09-15 Richard Biener <rguenther@suse.de>
1422 PR tree-optimization/67470
1423 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1424 structure for PHI hoisting by inserting a forwarder block
1427 2015-09-15 Christian Bruel <christian.bruel@st.com>
1429 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1430 (arm_option_print): New function.
1432 2015-09-15 Christian Bruel <christian.bruel@st.com>
1435 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1436 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1437 Remove flags parameter.
1438 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1439 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1440 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1441 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1442 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1443 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1444 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1445 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1447 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1449 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1451 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1452 AARCH64_VALID_SIMD_DREG_MODE.
1454 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1456 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1457 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1458 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1459 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1460 aarch64_ld4_lane<mode>): Combine together, making...
1461 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1462 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1463 aarch64_st4_lane<mode>): Combine together, making...
1464 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1465 * config/aarch64/iterators.md (nregs): Add comment.
1467 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1469 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1470 Change operand mode from <V_TWO_ELEM> to BLK.
1471 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1472 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1473 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1474 (aarch64_ld2_lane<mode>): Likewise.
1475 (aarch64_st2_lane<VQ:mode>): Likewise.
1476 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1478 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1480 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1481 Change operand mode from <V_FOUR_ELEM> to BLK.
1482 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1483 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1484 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1485 (aarch64_ld4_lane<mode>): Likewise.
1486 (aarch64_st4_lane<mode>): Likewise.
1487 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1489 2015-09-15 Richard Biener <rguenther@suse.de>
1492 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1493 transfer EH info from old to new stmt.
1494 (replace_call_with_value): Likewise.
1495 (replace_call_with_call_and_fold): Likewise.
1496 (gimple_fold_builtin_memory_op): Likewise.
1497 (gimple_fold_builtin_memset): Likewise.
1498 (gimple_fold_builtin_stpcpy): Likewise.
1499 (gimple_fold_call): Likewise.
1501 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1503 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1505 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1506 (aarch64_simd_intEI_type_node): Likewise.
1507 (aarch64_simd_builtin_std_type): Remove EImode case.
1508 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1509 * config/aarch64/aarch64-modes.def: Remove EImode.
1511 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1513 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1514 Change operand mode from <V_THREE_ELEM> to BLK.
1515 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1516 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1517 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1518 (aarch64_ld3_lane<mode>): Likewise.
1519 (aarch64_st3_lane<mode>): Likewise.
1520 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1522 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1524 * config/aarch64/aarch64-simd.md
1525 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1526 Change all TImode operands to BLKmode.
1527 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1528 Change all EImode operands to BLKmode.
1529 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1530 Change all OImode operands to BLKmode.
1532 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1533 and call set_mem_size.
1534 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1536 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1538 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1540 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1542 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1544 (vec_store_lanesci_lane<mode>): Rename to...
1545 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1547 (vec_store_lanesxi_lane<mode>): Rename to...
1548 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1550 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1551 aarch64_st4_lane<mode>): Follow renaming.
1553 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1555 * config/s390/s390.c (s390_const_operand_ok): Add missing
1558 2015-09-15 Richard Biener <rguenther@suse.de>
1561 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1563 * lto-streamer-out.c (clear_line_info): Likewise.
1565 2015-09-15 Richard Biener <rguenther@suse.de>
1567 * doc/match-and-simplify.texi: Fix wording.
1569 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1571 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1572 unnecessary type conversion in op1.
1574 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1576 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1577 (dup_block_and_redirect): Delete function.
1578 (can_dup_for_shrink_wrapping): New function.
1579 (fix_fake_fallthrough_edge): New function.
1580 (try_shrink_wrapping): Rewrite function.
1581 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1583 2015-09-14 Rich Felker <dalias@libc.org>
1585 * configure.ac: Change target pattern for sh TLS support
1586 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1587 * configure: Regenerate.
1589 2015-09-14 Jeff Law <law@redhat.com>
1591 PR tree-optimization/47679
1592 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1593 type rather than void *.
1595 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1598 * diagnostic.c (diagnostic_initialize): Do not set
1599 some_warnings_are_errors.
1600 (diagnostic_finish): Use DK_WERROR count instead.
1601 (diagnostic_report_diagnostic): Do not set
1602 some_warnings_are_errors.
1603 * diagnostic.h (struct diagnostic_context): Remove
1604 some_warnings_are_errors.
1606 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1608 * config/sparc/predicates.md (const_all_ones_operand): Use
1609 CONSTM1_RTX to simplify definition.
1611 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1614 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1617 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1619 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1620 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1621 OPT_fshow_column to handled saved option cases.
1622 (append_compiler_options): Do not skip the above added options.
1624 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1627 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1628 nopcrelative_literal_loads.
1629 (aarch64_classify_address): Likewise.
1630 (aarch64_constant_pool_reload_icode): Define.
1631 (aarch64_secondary_reload): Handle secondary reloads for
1633 (aarch64_override_options): Handle nopcrelative_literal_loads.
1634 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1635 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1637 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1638 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1639 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1641 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1643 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1646 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1647 sync_compare_and_swap_optab libcall to target_oval.
1649 2015-09-14 Marek Polacek <polacek@redhat.com>
1651 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1653 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1655 2015-09-11 Mark Wielaard <mjw@redhat.com>
1658 * toplev.c (check_global_declaration): Check and use
1659 warn_unused_const_variable.
1660 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1661 (-Wunused-variable): Remove non-constant. For C implies
1662 -Wunused-const-variable.
1663 (-Wunused-const-variable): New.
1665 2015-09-14 Richard Biener <rguenther@suse.de>
1667 * doc/match-and-simplify.texi: Update for changed syntax
1668 of inner ifs and the new switch expression.
1670 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1672 * config/i386/haswell.md: New file describing Haswell pipeline.
1673 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1674 haswell-like processors.
1675 (ix86_reassociation_width): Increase reassociation width for 64-bit
1676 Haswell processor family.
1677 * config/i386/i386.md: Introduce haswell cpu and include new md file.
1679 2015-09-14 Richard Biener <rguenther@suse.de>
1681 * doc/match-and-simplify.texi: Fixup some formatting issues
1682 and document the 's' flag.
1684 2015-09-13 Olivier Hainque <hainque@adacore.com>
1685 Eric Botcazou <ebotcazou@adacore.com>
1687 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
1688 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
1689 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
1690 (TARGET_CPU_gr5): Likewise.
1691 (TARGET_CPU_gr6): Likewise.
1692 (MULTILIB_DEFAULTS): Likewise.
1693 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
1694 for mcpu=gr5 and mcpu=gr6.
1695 (MULTILIB_DIRNAMES): Adjust accordingly.
1697 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1699 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
1700 (mem_ref_p): Likewise.
1701 (outermost_indep_loop): Adjust.
1702 (mem_ref_in_stmt): Likewise.
1703 (determine_max_movement): Likewise.
1704 (mem_ref_alloc): Likewise.
1705 (record_mem_ref_loc): Likewise.
1706 (set_ref_stored_in_loop): Likewise.
1707 (mark_ref_stored): Likewise.
1708 (gather_mem_refs_stmt): Likewise.
1709 (mem_refs_may_alias_p): Likewise.
1710 (for_all_locs_in_loop): Likewise.
1711 (struct rewrite_mem_ref_loc): Likewise.
1712 (rewrite_mem_refs): Likewise.
1713 (struct first_mem_ref_loc_1): Likewise.
1714 (first_mem_ref_loc): Likewise.
1715 (struct sm_set_flag_if_changed): Likewise.
1716 (execute_sm_if_changed_flag_set): Likewise.
1717 (execute_sm): Likewise.
1718 (hoist_memory_references):
1719 (struct ref_always_accessed): Likewise.
1720 (ref_always_accessed_p): Likewise.
1721 (refs_independent_p): Likewise.
1722 (record_dep_loop): Likewise.
1723 (ref_indep_loop_p_1): Likewise.
1724 (ref_indep_loop_p_2): Likewise.
1725 (ref_indep_loop_p): Likewise.
1726 (can_sm_ref_p): Likewise.
1727 (find_refs_for_sm): Likewise.
1728 (tree_ssa_lim_finalize): Likewise.
1730 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1732 * dwarf2out.c (dw_attr_ref): Remove typedef.
1733 (dw_line_info_ref): Likewise.
1734 (pubname_ref): Likewise.
1735 (dw_ranges_ref): Likewise.
1736 (dw_ranges_by_label_ref): Likewise.
1737 (comdat_type_node_ref): Likewise.
1739 (get_AT_low_pc): Likewise.
1740 (get_AT_hi_pc): Likewise.
1741 (get_AT_string): Likewise.
1742 (get_AT_flag): Likewise.
1743 (get_AT_unsigned): Likewise.
1744 (get_AT_ref): Likewise.
1745 (get_AT_file): Likewise.
1746 (remove_AT): Likewise.
1747 (print_die): Likewise.
1748 (check_die): Likewise.
1749 (die_checksum): Likewise.
1750 (attr_checksum_ordered): Likewise.
1751 (struct checksum_attributes): Likewise.
1752 (collect_checksum_attributes): Likewise.
1753 (die_checksum_ordered): Likewise.
1754 (same_die_p): Likewise.
1755 (is_declaration_die): Likewise.
1756 (clone_die): Likewise.
1757 (clone_as_declaration): Likewise.
1758 (copy_declaration_context): Likewise.
1759 (break_out_comdat_types): Likewise.
1760 (copy_decls_walk): Likewise.
1761 (output_location_lists): Likewise.
1762 (external_ref_hasher::hash): Likewise.
1763 (optimize_external_refs_1): Likewise.
1764 (build_abbrev_table): Likewise.
1765 (size_of_die): Likewise.
1766 (unmark_all_dies): Likewise.
1767 (size_of_pubnames): Likewise.
1768 (output_die_abbrevs): Likewise.
1769 (output_die): Likewise.
1770 (output_pubnames): Likewise.
1771 (add_ranges_num): Likewise.
1772 (add_ranges_by_labels): Likewise.
1773 (add_high_low_attributes): Likewise.
1774 (gen_producer_string): Likewise.
1775 (dwarf2out_set_name): Likewise.
1776 (new_line_info_table): Likewise.
1777 (prune_unused_types_walk_attribs): Likewise.
1778 (prune_unused_types_update_strings): Likewise.
1779 (prune_unused_types): Likewise.
1780 (resolve_addr): Likewise.
1781 (optimize_location_lists_1): Likewise.
1782 (index_location_lists): Likewise.
1783 (dwarf2out_finish): Likewise.
1785 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1787 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1789 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1791 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1792 (dump_asserts_for): Adjust.
1793 (register_new_assert_for): Likewise.
1794 (process_assert_insertions): Likewise.
1795 (insert_range_assertions): Likewise.
1797 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1799 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1801 (new_temp_expr_table): Adjust.
1802 (free_temp_expr_table): Likewise.
1803 (version_to_be_replaced_p): Likewise.
1804 (make_dependent_on_partition): Likewise.
1805 (add_to_partition_kill_list): Likewise.
1806 (remove_from_partition_kill_list): Likewise.
1807 (add_dependence): Likewise.
1808 (finished_with_expr): Likewise.
1809 (process_replaceable): Likewise.
1810 (kill_expr): Likewise.
1811 (kill_virtual_exprs): Likewise.
1812 (mark_replaceable): Likewise.
1813 (find_replaceable_in_bb): Likewise.
1814 (find_replaceable_exprs): Likewise.
1815 (debug_ter): Likewise.
1817 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1819 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1820 (struct btr_user): Rename from btr_user_s.
1821 (struct btr_def): Rename from btr_def_s.
1822 (find_btr_def_group): Adjust.
1823 (add_btr_def): Likewise.
1824 (new_btr_user): Likewise.
1825 (note_other_use_this_block): Likewise.
1826 (compute_defs_uses_and_gen): Likewise.
1827 (link_btr_uses): Likewise.
1828 (build_btr_def_use_webs): Likewise.
1829 (block_at_edge_of_live_range_p): Likewise.
1830 (btr_def_live_range): Likewise.
1831 (combine_btr_defs): Likewise.
1832 (move_btr_def): Likewise.
1833 (migrate_btr_def): Likewise.
1834 (migrate_btr_defs): Likewise.
1836 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1838 * var-tracking.c (shared_hash_def): Rename to shared_hash.
1839 (shared_hash): Remove typedef.
1840 (struct dataflow_set): Adjust.
1841 (shared_hash_unshare): Likewise.
1842 (dataflow_set_merge): Likewise.
1843 (vt_initialize): Likewise.
1844 (vt_finalize): Likewise.
1846 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1848 * var-tracking.c (struct location_chain): Rename from
1850 (struct variable_part): Adjust.
1851 (variable_htab_free): Likewise.
1852 (unshare_variable): Likewise.
1853 (get_init_value): Likewise.
1854 (get_addr_from_local_cache): Likewise.
1855 (drop_overlapping_mem_locs): Likewise.
1856 (val_reset): Likewise.
1857 (struct variable_union_info): Likewise.
1858 (variable_union): Likewise.
1859 (find_loc_in_1pdv): Likewise.
1860 (insert_into_intersection): Likewise.
1861 (intersect_loc_chains): Likewise.
1862 (canonicalize_loc_order_check): Likewise.
1863 (canonicalize_values_mark): Likewise.
1864 (canonicalize_values_star): Likewise.
1865 (canonicalize_vars_star): Likewise.
1866 (variable_merge_over_cur): Likewise.
1867 (remove_duplicate_values): Likewise.
1868 (variable_post_merge_new_vals): Likewise.
1869 (variable_post_merge_perm_vals): Likewise.
1870 (find_mem_expr_in_1pdv): Likewise.
1871 (dataflow_set_preserve_mem_locs): Likewise.
1872 (dataflow_set_remove_mem_locs): Likewise.
1873 (variable_part_different_p): Likewise.
1874 (onepart_variable_different_p): Likewise.
1875 (find_src_set_src): Likewise.
1876 (dump_var): Likewise.
1877 (set_slot_part): Likewise.
1878 (clobber_slot_part): Likewise.
1879 (delete_slot_part): Likewise.
1880 (vt_expand_var_loc_chain): Likewise.
1881 (emit_note_insn_var_location): Likewise.
1882 (vt_finalize): Likewise.
1884 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1886 * dse.c (store_info_t): Remove typedef.
1887 (group_info_t): Likewise.
1888 (const_group_info_t): Likewise.
1889 (deferred_change_t): Likewise.
1890 (get_group_info): Adjust.
1891 (free_store_info): Likewise.
1892 (canon_address): Likewise.
1893 (clear_rhs_from_active_local_stores): Likewise.
1894 (record_store): Likewise.
1895 (replace_read): Likewise.
1896 (check_mem_read_rtx): Likewise.
1897 (scan_insn): Likewise.
1898 (remove_useless_values): Likewise.
1899 (dse_step1): Likewise.
1900 (dse_step2_init): Likewise.
1901 (dse_step2_nospill): Likewise.
1902 (scan_stores_nospill): Likewise.
1903 (scan_reads_nospill): Likewise.
1904 (dse_step3_exit_block_scan): Likewise.
1905 (dse_step3): Likewise.
1906 (dse_step5_nospill): Likewise.
1907 (dse_step6): Likewise.
1909 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1911 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1912 (alias_set_entry): Remove typedef.
1913 (alias_set_subset_of): Adjust.
1914 (alias_sets_conflict_p): Likewise.
1915 (init_alias_set_entry): Likewise.
1916 (get_alias_set): Likewise.
1917 (new_alias_set): Likewise.
1918 (record_alias_subset): Likewise.
1920 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
1922 * doc/install.texi (Downloading the source): Mark up
1923 contrib/download_prerequisites properly and drop leading "./".
1925 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1927 * config/arc/arc.h: Remove define of STRUCT_VALUE.
1928 * config/lm32/lm32.h: Likewise.
1929 * config/mep/mep.h: Likewise.
1930 * config/visium/visium.h: Likewise.
1931 * system.h: Poison STRUCT_VALUE macro.
1933 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1935 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1936 CONSTANT_P operands.
1938 2015-09-11 David S. Miller <davem@davemloft.net>
1940 * config/sparc/constraints.md: Make "U" constraint a real register
1942 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1943 (D_MODES, DF_MODES): Add missing cast.
1944 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1945 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1946 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1948 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1949 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1950 provide these insn when flag_pic.
1952 2015-09-11 Jeff Law <law@redhat.com>
1954 PR tree-optimization/47679
1955 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1956 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1957 member with m_. Update inline member functions as necessary. Add
1959 * tree-ssa-scopedtables.c: Update const_and_copies's member
1960 functions to use m_ prefix to access the stack.
1962 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1964 * graphite-optimize-isl.c (disable_tiling): Remove.
1965 (get_schedule_for_band): Do not use disable_tiling.
1966 (get_prevector_map): Delete function.
1967 (enable_polly_vector): Remove.
1968 (get_schedule_for_band_list): Remove dead code.
1970 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1972 * graphite-optimize-isl.c (get_tile_map): Refactor.
1973 (get_schedule_for_band): Same.
1974 (getScheduleForBand): Same.
1975 (get_prevector_map): Same.
1976 (get_schedule_for_band_list): Same.
1977 (get_schedule_map): Same.
1978 (get_single_map): Same.
1979 (apply_schedule_map_to_scop): Same.
1980 (optimize_isl): Same.
1982 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1985 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1987 * config/aarch64/iterators.md (GPF_TF_F16): New.
1990 2015-09-10 Nathan Sidwell <nathan@acm.org>
1992 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1993 (nvptx_reorg): Adjust comments.
1995 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
1998 * configure.ac: Check if setenv and unsetenv are declared.
1999 * configure: Rebuild.
2000 * config.in: Rebuild.
2001 * system.h: Declare setenv and unsetenv if not declared.
2003 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2005 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2006 commentary to simplify permute mask adjustment equation.
2007 (special_handling_values): Add SH_VPERM.
2008 (const_load_sequence_p): New function.
2009 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2010 the mask loaded from the constant pool.
2011 (adjust_vperm): New function.
2012 (handle_special_swappables): Call adjust_vperm.
2013 (dump_swap_insn_table): Handle SH_VPERM.
2015 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2017 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2018 * shrink-wrap.h (requires_stack_frame_p): Put back.
2020 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2022 * reload1.c (elimination_costs_in_insn): Locally turn
2023 -Wmaybe-uninitialized into a warning.
2025 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2027 * shrink-wrap.c (requires_stack_frame_p): Make static.
2028 (prepare_shrink_wrap): Likewise.
2029 (dup_block_and_redirect): Likewise.
2030 * shrink-wrap.h: Remove declarations of those functions.
2032 2015-09-10 Mark Wielaard <mjw@redhat.com>
2034 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2036 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2039 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2040 missing simplify_gen_subreg.
2042 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2044 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2045 the vector element is bigger than 64 bit.
2047 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2049 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2050 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2052 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2054 * config/s390/s390.c: Add V1TImode to constant pool modes.
2056 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2059 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2060 predicate. Set predicable_short_it attr to "no".
2062 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2064 PR rtl-optimization/67421
2065 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2066 left wide shift tranformation.
2068 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2070 * common/config/arc/arc-common.c: Remove references to A5.
2071 * config/arc/arc-opts.h: Likewise.
2072 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2073 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2074 * config/arc/t-arc-newlib: Likewise.
2076 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2078 * config/arc/arc.md (length): Fix attribute length for conditional
2079 executed instructions with long immediate.
2081 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2083 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2084 type for second alternative.
2086 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2088 * doc/invoke.texi (Downloading GCC): Mention
2089 contrib/download_prerequisites script.
2091 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2094 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2095 for combined loop, assert seen_error () and return GS_ERROR.
2098 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2099 if decl is already in outer->variables.
2102 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2103 asserting that decl is not specified in octx->variables,
2104 break out of the loop if it is.
2107 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2108 iterator is not explicitly determined, but is defined inside
2109 of the combined workshare region, handle it like if it has
2110 DECL_EXPR in OMP_FOR_PRE_BODY.
2112 2015-09-09 Nathan Sidwell <nathan@acm.org>
2114 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2115 (*cmp<mode>): Add assembler spacing.
2116 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2117 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2119 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2120 (nvptx_expand_call): Likewise.
2121 (nvptx_output_call_insn): Likewise.
2122 (nvptx_reorg_subreg): Add spacing.
2124 2015-09-09 Marek Polacek <polacek@redhat.com>
2127 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2130 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2133 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2135 2015-09-09 Tom de Vries <tom@codesourcery.com>
2137 * params-list.h: Add missing copyright notice.
2139 2015-09-09 Nathan Sidwell <nathan@acm.org>
2141 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2142 sel_truesi, not andsi.
2144 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2146 * config/arm/arm.md (*subsi3_compare0): Rename to...
2147 (subsi3_compare0): ... This.
2148 (modsi3): New define_expand.
2149 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2150 when operand is power of 2.
2152 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2154 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2155 (*neg<mode>2_compare0): Rename to...
2156 (neg<mode>2_compare0): ... This.
2157 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2158 Move check for speed inside the if-then-elses. Reflect
2159 CSNEG sequence in MOD by power of 2 case.
2161 2015-09-09 Alan Modra <amodra@gmail.com>
2164 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2165 reload replacement for PRE_MODIFY address reg.
2167 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2169 PR tree-optimization/53852
2170 * config.in: Regenerate.
2171 * configure: Regenerate.
2172 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2173 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2174 PARAM_MAX_ISL_OPERATIONS is reached.
2175 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2176 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2177 result equal to isl_stat_ok as the status now can be isl_error_quota.
2178 (subtract_commutative_associative_deps): Same.
2179 (compute_deps): Same.
2181 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2182 Sebastian Pop <s.pop@samsung.com>
2184 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2185 Return the parameter if it was saved in corresponding
2186 parameter_rename_map of the region.
2187 (copy_def): Copy def from sese region to the newly created region.
2188 (copy_internal_parameters): Copy all the internal parameters defined
2189 within a region to the newly created region.
2190 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2191 translating isl to gimple.
2192 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2193 the loop-nest does not have any data-references.
2194 (build_graphite_scops): Create a scop only when there is at least one
2196 (contains_only_close_phi_nodes): Deleted.
2197 (print_graphite_scop_statistics): Deleted
2198 (print_graphite_statistics): Deleted
2199 (limit_scops): Deleted.
2200 (build_scops): Removed call to limit_scops.
2201 * sese.c (new_sese): Construct.
2202 (free_sese): Destruct.
2203 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2205 (set_rename): Pass sese region so that parameters inside the region can
2206 be added to its parameter_rename_map.
2207 (rename_uses): Pass sese region.
2208 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2209 generated in the header of the scop. For each SSA_NAME in the
2210 parameter_rename_map rename its usage.
2211 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2213 (scalar_evolution_in_region): If the tree t is invariant just return t.
2214 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2215 struct sese to keep track of all the parameters which need renaming.
2216 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2218 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2220 2015-09-08 Tom de Vries <tom@codesourcery.com>
2222 * Makefile.in (generated_files): Add params.list.
2223 (params.list, s-params.list): Add rule.
2224 * params.h (enum compiler_param): Include params-list.h. Move define
2225 DEFPARAM, include params.def and undef DEFPARAM ...
2226 * params-list.h: ... here. New file.
2228 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2230 * pretty-print.h (printer_fn): Fix typo in comment.
2232 2015-09-07 Jeff Law <law@redhat.com>
2234 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2236 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2238 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2239 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2240 (arm_neon_fp16_hw): New.
2242 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2244 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2245 UNITS_PER_WORD >= 4.
2247 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2249 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2250 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2251 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2252 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2253 (aarch64_float_extend_lo_v2df): Rename to...
2254 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2256 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2257 (float_extend_lo): Add v4sf.
2259 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2260 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2261 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2262 (Vwide): New mode_attr.
2264 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2266 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2267 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2268 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2269 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2270 V4HF and V8HF variants to iterator.
2272 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2274 * config/aarch64/iterators.md (VDQF_F16): New.
2275 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2277 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2279 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2280 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2281 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2282 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2283 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2284 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2285 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2286 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2287 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2288 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2289 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2290 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2291 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2292 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2293 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2294 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2295 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2296 vld1q_dup_f16): New.
2298 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2300 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2301 Reparameterize to...
2302 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2303 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2304 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2306 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2308 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2310 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2312 * config/aarch64/iterators.md (VDF, Vdtype): New.
2313 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2315 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2317 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2318 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2319 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2320 Add __builtin_aarch64_simd_hf.
2321 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2322 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2323 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2324 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2325 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2326 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2327 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2328 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2329 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2331 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2332 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2333 (VDC, Vdbl): Add V4HF.
2335 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2337 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2338 V4HFmode and V8HFmode.
2339 (aarch64_split_simd_move): Add case for V8HFmode.
2340 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2341 (aarch64_simd_builtin_std_type): Handle HFmode.
2342 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2344 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2345 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2346 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2348 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2351 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2352 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2354 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2355 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2356 vst1q_lane_f16): New.
2357 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2358 (VALLDI_F16, VALL_F16): New.
2359 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2360 Add cases for V4HF and V8HF.
2361 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2363 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2365 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2366 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2367 vld4_dup): Add v4hf variant.
2368 (vget_high, vget_low): Add v8hf variant.
2369 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2370 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2371 v4hf and v8hf variants.
2373 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2375 (V_DOUBLE): Add case for V4HF.
2377 (V_HALF): Add case for V8HF.
2378 (VDQX): Add V4HF, V8HF.
2379 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2380 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2382 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2383 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2384 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2385 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2386 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2387 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2388 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2389 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2390 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2392 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2393 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2394 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2395 Change VDX to VD_RE.
2397 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2398 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2399 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2401 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2402 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2403 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2404 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2405 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2406 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2407 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2408 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2409 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2411 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2413 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2414 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2415 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2416 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2417 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2418 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2419 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2420 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2421 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2422 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2425 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2427 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2429 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2431 * config/arm/arm-builtins.c (v8hf_UP): New.
2432 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2434 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2436 * config/arm/arm_neon.h (float16x8_t): New typedef.
2438 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2440 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2441 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2442 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2443 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2444 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2445 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2446 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2447 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2448 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2449 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2451 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2453 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2454 non-alphanumeric characters in the symbol name.
2456 2015-09-07 Marek Polacek <polacek@redhat.com>
2459 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2462 2015-09-07 Marek Polacek <polacek@redhat.com>
2464 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2466 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2468 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2471 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2474 * tree-ssa-live.c: Include cfgloop.h.
2475 (remove_unused_locals): Clear loop->simduid if simduid is about
2476 to be removed from cfun->local_decls.
2478 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2481 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2484 2015-09-04 Tom de Vries <tom@codesourcery.com>
2486 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2488 2015-09-04 Jeff Law <law@redhat.com>
2490 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2491 unnecessary constructor. It's now trivial and implemented inside...
2492 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2493 constructor. Add comments to various methods. Remove unused
2495 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2496 * tree-vrp.c (identify_jump_threads): Likewise.
2497 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2499 (thread_across_edge): Similarly.
2500 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2501 arguments in constructor call.
2503 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2505 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2506 temp path contains a '-'.
2508 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2509 Petr Murzin <petr.murzin@intel.com>
2510 Kirill Yukhin <kirill.yukhin@intel.com>
2512 * config/i386/i386-builtin-types.def
2513 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2514 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2515 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2516 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2517 * config/i386/i386.c
2518 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2519 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2520 IX86_BUILTIN_SCATTERALTDIV16SI.
2521 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2522 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2523 __builtin_ia32_scatteraltdiv8si.
2524 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2525 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2526 IX86_BUILTIN_SCATTERALTDIV16SI.
2527 (ix86_vectorize_builtin_scatter): New.
2528 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2529 ix86_vectorize_builtin_scatter.
2531 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2532 Petr Murzin <petr.murzin@intel.com>
2533 Kirill Yukhin <kirill.yukhin@intel.com>
2535 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2536 * doc/tm.texi: Regenerate.
2537 * target.def: Add scatter builtin.
2538 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2539 for loads/stores in case of gather/scatter accordingly.
2540 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2541 STMT_VINFO_GATHER_P(S).
2542 (vect_check_gather): Rename to ...
2543 (vect_check_gather_scatter): this.
2544 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2545 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2546 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2547 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2548 variable and new checkings for it accordingly.
2550 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2551 STMT_VINFO_GATHER_P(S).
2552 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2553 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2555 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2557 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2559 (mulv16qi3): New define_expand.
2561 2015-09-03 Martin Sebor <msebor@redhat.com>
2564 * doc/extend.texi (Other Builtins): Document when the address
2565 of a built-in function can be taken.
2567 2015-09-03 Richard Biener <rguenther@suse.de>
2569 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2570 (dwarf2out_early_finish): ... here.
2571 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2572 flush_limbo_die_list. Assert we have no deferred asm names.
2574 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2576 * optabs.c (expand_binop): Don't create a broadcast vector with a
2577 source element wider than the inner mode.
2579 2015-09-03 Richard Biener <rguenther@suse.de>
2581 * varasm.c (output_constant): Use fold_convert instead of
2584 2015-09-03 Tom de Vries <tom@codesourcery.com>
2586 PR tree-optimization/65637
2587 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2588 fin_bb has 2 predecessors.
2590 2015-09-03 Tom de Vries <tom@codesourcery.com>
2592 PR tree-optimization/65637
2593 * omp-low.c (find_phi_with_arg_on_edge): New function.
2594 (expand_omp_for_static_chunk): Fix inner loop phi.
2596 2015-09-03 Tom de Vries <tom@codesourcery.com>
2598 PR tree-optimization/65637
2599 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2602 2015-09-03 Tom de Vries <tom@codesourcery.com>
2604 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2606 2015-09-03 Tom de Vries <tom@codesourcery.com>
2608 * doc/invoke.texi (parloops-chunk-size): Add item.
2609 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2610 * tree-parloops.c: Include params.h.
2611 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2612 param parloops-chunk-size is used.
2614 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2617 * fold-const.c (fold_binary_loc) : Move
2618 Transform (x >> c) << c into x & (-1<<c) or
2619 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2620 types using simplify and match.
2621 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2622 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2624 2015-09-03 Richard Biener <rguenther@suse.de>
2627 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2628 (create_variable_info_for_1): Use ctor_for_analysis instead
2630 (create_variable_info_for): Likewise.
2632 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2635 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2636 in new callgraph edge.
2638 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2643 * config/aarch64/aarch64-simd.md
2644 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2645 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2646 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2647 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2649 2015-09-02 Alan Modra <amodra@gmail.com>
2651 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2652 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2653 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2655 2015-09-02 Alan Modra <amodra@gmail.com>
2658 * config/rs6000/predicates.md (current_file_function_operand): Don't
2659 return true for weak symbols.
2660 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2662 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2663 Andrew Bennett <andrew.bennett@imgtec.com>
2665 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2666 * config/mips/mips-protos.h: Add definitions for
2667 mips_output_jump and mips_output_equal_conditional_branch
2668 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2670 (mips_emit_compare): Add support for the MIPS R6 conditional
2672 (mips_process_sync_loop): Likewise.
2673 (mips_output_order_conditional_branch): Likewise.
2674 (mips16_build_call_stub): Change MIPS_CALL to
2676 (mips_print_operand_punctuation): Update 's' case to only
2677 apply to micromips r2.
2678 (mips_adjust_insn_length): Add support for forbidden slot
2680 (mips_avoid_hazard): Likewise.
2681 (mips_reorg_process_insns): Likewise.
2682 (mips_output_jump): New function.
2683 (mips_output_equal_conditional_branch): Likewise.
2684 (mips_output_conditional_branch): Use jrc/bc if compact
2685 branch support is enabled. Ensure the forbidden slots
2686 between the two branch instructions is filled with a nop.
2687 (mips_option_override): Add support to process the compact
2688 branch option and set the correct defaults. Prevent
2689 non-explict relocs being using for MIPS R6.
2690 (mips_trampoline_init): Add compact branch support.
2691 (mips_mult_zero_zero_cost): Allow zero initialisation of
2692 accumulators with TARGET_DSP.
2693 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
2694 (TARGET_CB_MAYBE): New define.
2695 (TARGET_CB_ALWAYS): New define.
2696 (ISA_HAS_DELAY_SLOTS): New define.
2697 (ISA_HAS_COMPACT_BRANCHES): New define.
2698 (ISA_HAS_JRC): New define.
2699 (MIPS_BRANCH_C): New define.
2700 (MIPS_CALL): Removed.
2701 (MICROMIPS_J): Removed.
2702 * config/mips/mips.md (compact_form): New attr.
2703 (hazard): Add support for forbidden slots.
2704 (define_delay): Add support for compact branches.
2705 (*branch_order<mode>): Likewise.
2706 (*branch_order<mode>_inverted): Likewise.
2707 (*branch_equality<mode>): Likewise.
2708 (*branch_equality<mode>_inverted): Likewise.
2709 (*jump_absolute): Likewise.
2710 (*jump_pic): Likewise.
2711 (indirect_jump): Use mips_output_jump to produce assembly output.
2712 (tablejump_<mode>"): Likewise.
2713 (*<optab>"): Likewise.
2714 (<optab>_internal): Likewise.
2715 (sibcall_internal): Likewise.
2716 (sibcall_value_internal): Likewise.
2717 (sibcall_value_multiple_internal): Likewise.
2718 (call_internal): Likewise.
2719 (call_split): Likewise.
2720 (call_internal_direct): Likewise.
2721 (call_direct_split): Likewise.
2722 (call_value_internal): Likewise.
2723 (call_value_split): Likewise.
2724 (call_value_internal_direct): Likewise.
2725 (call_value_direct_split): Likewise.
2726 (call_value_multiple_internal): Likewise.
2727 (call_value_multiple_split): Likewise.
2728 (mips_get_fcsr_mips16_<mode>): Likewise.
2729 (mips_set_fcsr_mips16_<mode>): Likewise.
2730 (tls_get_tp_mips16_<mode>): Likewise.
2731 * config/mips/mips.opt: Add -mcompact-branches option.
2732 * config/mips/predicates.md (order_operator): Ensure the
2733 conditional compact branches are only used if the ISA them.
2734 * doc/invoke.texi: Document -mcompact-branches option.
2736 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
2739 * lra-lives.c (process_bb_lives): Process move pseudos with the
2740 same value for copies and preferences
2741 * lra-constraints.c (match_reload): Create match reload pseudo
2742 with the same value from single dying input pseudo.
2744 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2747 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2749 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
2751 * trans-mem.c: Add contributed-by.
2752 * trans-mem.h: Same.
2754 2015-09-01 Richard Biener <rguenther@suse.de>
2756 * expr.c (expand_expr_real_1): For expanding TERed defs
2757 set the current location to that of the def if not UNKNOWN.
2759 2015-09-01 David Sherwood <david.sherwood@arm.com>
2761 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
2763 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2765 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
2766 then_cost, else_cost fields. Change branch_cost field to unsigned int.
2767 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
2769 (noce_simple_bbs): New function.
2770 (noce_try_move): Bail if basic blocks are not simple.
2771 (noce_try_store_flag): Likewise.
2772 (noce_try_store_flag_constants): Likewise.
2773 (noce_try_addcc): Likewise.
2774 (noce_try_store_flag_mask): Likewise.
2775 (noce_try_cmove): Likewise.
2776 (noce_try_minmax): Likewise.
2777 (noce_try_abs): Likewise.
2778 (noce_try_sign_mask): Likewise.
2779 (noce_try_bitop): Likewise.
2780 (bbs_ok_for_cmove_arith): New function.
2781 (noce_emit_all_but_last): Likewise.
2782 (noce_emit_insn): Likewise.
2783 (noce_emit_bb): Likewise.
2784 (noce_try_cmove_arith): Handle non-simple basic blocks.
2785 (insn_valid_noce_process_p): New function.
2786 (contains_mem_rtx_p): Likewise.
2787 (bb_valid_for_noce_process_p): Likewise.
2788 (noce_process_if_block): Allow non-simple basic blocks
2791 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
2793 * tree-ssa-dom.c (record_equivalences_from_phis,
2794 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2795 (lookup_avail_expr): Likewise, and remove comment and unused temp.
2797 2015-09-01 Nick Clifton <nickc@redhat.com>
2799 * config/msp430/msp430.opt (mcpu): Fix typo.
2801 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2803 * config/aarch64/aarch64.c (aarch64_set_current_function):
2804 Re-layout any vector parameters have non-simd layout.
2805 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2807 (aarch64_simd_expand_args): Delete call to the above.
2809 2015-08-31 Mike Frysinger <vapier@gentoo.org>
2811 * doc/invoke.texi (asan-stack): Add space before option.
2813 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2815 * tree.h (zerop): New function.
2816 * tree.c (zerop): Likewise.
2817 (element_precision): Handle expressions.
2818 * match.pd (define_predicates): Add zerop.
2819 (x <= +Inf): Fix comment.
2820 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2821 * fold-const.c (fold_binary_loc): ... here. Remove.
2823 2015-08-31 Richard Biener <rguenther@suse.de>
2826 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2828 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2830 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2831 (CEXPI): New operator list.
2832 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2833 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2835 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2837 2015-08-31 Tom de Vries <tom@codesourcery.com>
2839 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2840 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2842 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2843 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2844 (rewrite_into_loop_closed_ssa): ... here.
2845 (replace_uses_in_dominated_bbs): Remove function.
2846 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2847 rewrite_into_loop_closed_ssa_1.
2849 2015-08-31 Michael Matz <matz@suse.de>
2851 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2852 enter entry and exit blocks for reverse post order.
2854 2015-08-31 Richard Biener <rguenther@suse.de>
2856 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2857 (lto_location_cache::current_sysp): Likewise.
2858 (output_block::current_sysp): Likewise.
2859 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2860 (lto_location_cache::apply_location_cache): Properly record
2861 system header locations.
2862 (lto_location_cache::input_location): Input whether a file
2864 * lto-streamer-out.c (lto_output_location): Stream whether a file
2867 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2870 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2872 2015-08-31 Tom de Vries <tom@codesourcery.com>
2874 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2875 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2876 Improve function header comments.
2878 2015-08-30 Michael Collison <michael.collison@linaro.org>
2881 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2884 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2886 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2887 special_handling bitfield.
2888 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2889 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2890 that represents a general xxpermdi.
2891 (insn_is_swappable_p): Add handling for vec_concat of two
2892 doublewords, which maps to a specific xxpermdi.
2893 (adjust_xxpermdi): New function.
2894 (adjust_concat): Likewise.
2895 (handle_special_swappables): Call adjust_xxpermdi and
2897 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2899 2015-08-30 Rich Felker <dalias@libc.org>
2901 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2902 case instead of sh[123456ble]-*-*.
2904 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2906 * ira.c (print_unform_and_important_classes,
2907 print_translated_classes): Remove reg_class_names static array.
2908 (print_unform_and_important_classes): Rename to ...
2909 (print_uniform_and_important_classes): ... this.
2910 (ira_debug_allocno_classes): Update accordingly.
2912 2015-08-29 Tom de Vries <tom@codesourcery.com>
2914 PR tree-optimization/46193
2915 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2918 2015-08-28 Jeff Law <law@redhat.com>
2921 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2922 unable to find X NE 0 in the tables, return X as the simplified
2924 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2925 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2927 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2928 after removing the control flow statement and unnecessary edges.
2930 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
2933 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2935 PR tree-optimization/67283
2936 * tree-sra.c (type_consists_of_records_p): Rename to...
2937 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2939 (completely_scalarize_record): Rename to...
2940 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2942 (scalarize_elem): New.
2944 2015-08-28 Jiong Wang <jiong.wang@arm.com>
2946 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2947 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2948 (aarch64_symbol_type): Likewise.
2949 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2951 (aarch64_expand_mov_immediate): Likewise.
2952 (aarch64_print_operand): Likewise.
2953 (aarch64_classify_tls_symbol): Likewise.
2955 2015-08-28 Richard Biener <rguenther@suse.de>
2957 * cgraphunit.c (symbol_table::compile): Move early debug generation
2959 (symbol_table::finalize_compilation_unit): ... back here and
2960 add a !seen_error () guard.
2962 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2964 * toplev.c (process_options): Do not use flag_loop_block,
2965 flag_loop_interchange, and flag_loop_strip_mine. Add check for
2966 flag_loop_optimize_isl.
2968 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2970 * Makefile.in (OBJS): Remove graphite-blocking.o and
2971 graphite-interchange.o.
2972 * common.opt (floop-strip-mine, floop-interchange, floop-block):
2973 Alias of floop-nest-optimize.
2974 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2975 Document as alias of -floop-nest-optimize.
2976 * graphite-blocking.c: Remove.
2977 * graphite-interchange.c: Remove.
2978 * graphite-optimize-isl.c: Include dumpfile.h.
2979 (getScheduleForBand): Add dump for tiled loops. Use
2980 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2981 * graphite-poly.c (scop_max_loop_depth): Remove.
2982 (print_scattering_function_1): Remove.
2983 (print_scattering_function): Remove.
2984 (print_scattering_functions): Remove.
2985 (debug_scattering_function): Remove.
2986 (debug_scattering_functions): Remove.
2987 (apply_poly_transforms): Remove use of flag_loop_block,
2988 flag_loop_strip_mine, and flag_loop_interchange.
2989 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2991 (print_pdr_access_layout): Remove.
2992 (print_pdr): Print ISL representation.
2993 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2994 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2996 (openscop_print_pbb_domain): Remove.
2997 (print_pbb): Remove call to print_scattering_function.
2998 (openscop_print_scop_context): Remove.
2999 (print_scop_context): Do not print matrices anymore.
3000 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3001 SCOP_TRANSFORMED_SCHEDULE.
3002 (print_isl_set): Add printing of a new line.
3003 (print_isl_map): Same.
3004 (print_isl_aff): Same.
3005 (print_isl_constraint): Same.
3006 (loop_to_lst): Remove.
3007 (scop_to_lst): Remove.
3008 (lst_indent_to): Remove.
3009 (print_lst): Remove.
3010 (debug_lst): Remove.
3011 (dot_lst_1): Remove.
3013 (reverse_loop_at_level): Remove.
3014 (reverse_loop_for_pbbs): Remove.
3015 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3016 (pdr_nb_params): Remove.
3017 (pdr_alias_set_dim): Remove.
3018 (pdr_subscript_dim): Remove.
3019 (pdr_iterator_dim): Remove.
3020 (pdr_parameter_dim): Remove.
3021 (same_pdr_p): Remove.
3022 (struct poly_scattering): Remove.
3023 (struct poly_bb): Remove _original, _transformed, _saved.
3024 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3025 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3026 (PBB_NB_LOCAL_VARIABLES): Remove.
3027 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3028 (schedule_to_scattering): Remove.
3029 (number_of_write_pdrs): Remove.
3030 (pbb_dim_iter_domain): Remove.
3031 (pbb_nb_params): Remove.
3032 (pbb_nb_scattering_orig): Remove.
3033 (pbb_nb_scattering_transform): Remove.
3034 (pbb_nb_dynamic_scattering_transform): Remove.
3035 (pbb_nb_local_vars): Remove.
3036 (pbb_iterator_dim): Remove.
3037 (pbb_parameter_dim): Remove.
3038 (psco_scattering_dim): Remove.
3039 (psct_scattering_dim): Remove.
3040 (psct_local_var_dim): Remove.
3041 (psco_iterator_dim): Remove.
3042 (psct_iterator_dim): Remove.
3043 (psco_parameter_dim): Remove.
3044 (psct_parameter_dim): Remove.
3045 (psct_dynamic_dim): Remove.
3046 (psct_static_dim): Remove.
3047 (psct_add_local_variable): Remove.
3048 (new_lst_loop): Remove.
3049 (new_lst_stmt): Remove.
3052 (lst_add_loop_under_loop): Remove.
3053 (lst_depth): Remove.
3054 (lst_dewey_number): Remove.
3055 (lst_dewey_number_at_depth): Remove.
3058 (lst_find_pbb): Remove.
3059 (find_lst_loop): Remove.
3060 (lst_find_first_pbb): Remove.
3061 (lst_empty_p): Remove.
3062 (lst_find_last_pbb): Remove.
3063 (lst_contains_p): Remove.
3064 (lst_contains_pbb): Remove.
3065 (lst_create_nest): Remove.
3066 (lst_remove_from_sequence): Remove.
3067 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3068 (lst_niter_for_loop): Remove.
3069 (pbb_update_scattering): Remove.
3070 (lst_update_scattering_under): Remove.
3071 (lst_update_scattering): Remove.
3072 (lst_insert_in_sequence): Remove.
3073 (lst_replace): Remove.
3074 (lst_substitute_3): Remove.
3075 (lst_distribute_lst): Remove.
3076 (lst_remove_all_before_including_pbb): Remove.
3077 (lst_remove_all_before_excluding_pbb): Remove.
3078 (struct scop): Remove original_schedule, transformed_schedule, and
3080 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3081 (SCOP_SAVED_SCHEDULE): Remove.
3082 (poly_scattering_new): Remove.
3083 (poly_scattering_free): Remove.
3084 (poly_scattering_copy): Remove.
3085 (store_scattering_pbb): Remove.
3086 (store_lst_schedule): Remove.
3087 (restore_lst_schedule): Remove.
3088 (store_scattering): Remove.
3089 (restore_scattering_pbb): Remove.
3090 (restore_scattering): Remove.
3091 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3092 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3093 compute the scattering polyhedron dimension from the dimension of
3095 (build_scop_scattering): Update call to
3096 build_pbb_scattering_polyhedrons.
3097 (build_poly_scop): Remove call to scop_to_lst.
3098 * graphite.c (graphite_transform_loops): Add call to print_scop.
3099 (gate_graphite_transforms): Remove use of flag_loop_block,
3100 flag_loop_interchange, and flag_loop_strip_mine.
3102 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3104 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3105 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3106 -floop-nest-optimize.
3107 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3108 (generate_luj_sepclass): Remove.
3109 (generate_luj_options): Remove.
3110 (set_options): Remove opt_luj.
3111 (scop_to_isl_ast): Remove opt_luj.
3112 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3113 flag_loop_unroll_jam.
3114 (getPrevectorMap_full): Remove.
3115 (getScheduleForBandList): Remove map_sepcl.
3116 (getScheduleMap): Same.
3117 (apply_schedule_map_to_scop): Remove sepcl.
3118 (optimize_isl): Same.
3119 * graphite-poly.c (apply_poly_transforms): Remove check for
3120 flag_loop_unroll_jam.
3121 (new_poly_bb): Remove map_sepclass.
3122 * graphite-poly.h (struct poly_bb): Same.
3123 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3124 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3125 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3126 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3128 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3131 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3133 (UNSPEC_ADD_CARRY): Remove.
3134 (addqi3_cconly_overflow): New expander.
3135 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3136 Adjust for changed add<mode>3_carry.
3137 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3138 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3139 (<plusminus_insn><mode>3_carry): Remove expander.
3140 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3141 add<mode>3_carry and sub<mode>3_carry.
3142 (plusminus_carry_mnemonic): Remove code attribute.
3143 (add<mode>3_carry): Canonicalize insn pattern.
3144 (*addsi3_carry_zext): Ditto.
3145 (sub<mode>3_carry): Ditto.
3146 (*subsi3_carry_zext): Ditto.
3147 (adcx<mode>3): Remove insn pattern.
3148 (addcarry<mode>): New insn pattern.
3149 (subborrow<mode>): Ditto.
3150 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3151 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3152 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3153 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3154 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3155 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3156 Rewrite expander to not clobber carry flag chains.
3158 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3160 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3161 instead of a rotate.
3163 2015-08-27 Marek Polacek <polacek@redhat.com>
3166 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3167 an entry into an irreducible region.
3169 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3171 * configure: Regenerate.
3173 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3175 PR tree-optimization/67283
3176 * tree-sra.c (type_consists_of_records_p): Rename to...
3177 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3179 (completely_scalarize_record): Rename to...
3180 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3181 (scalarize_elem): New.
3183 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3185 * tree-sra.c (completely_scalarize_var): Rename to...
3186 (create_total_scalarization_access): ... Here. Drop call to
3187 completely_scalarize_record.
3189 (analyze_all_variable_accesses): Replace completely_scalarize_var
3190 with create_total_scalarization_access and completely_scalarize_record.
3192 2015-08-27 Alan Modra <amodra@gmail.com>
3195 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3198 2015-08-27 Richard Biener <rguenther@suse.de>
3200 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3201 call with !seen_error ().
3202 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3203 early debug generation and finish...
3204 (symbol_table::compile): ... here to put it after a !seen_error ()
3207 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3209 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3212 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3213 Andre Vieira <andre.simoesdiasvieira@arm.com>
3215 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3216 (*cb<optab><mode>1): Likewise.
3217 (*tb<optab><mode>1): Likewise.
3218 (*cb<optab><mode>1): Likewise.
3219 * config/aarch64/iterators.md (inv_cb): New code attribute.
3221 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3222 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3224 2015-08-27 Richard Biener <rguenther@suse.de>
3226 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3228 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3230 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3233 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3235 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3238 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3240 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3241 floating point in VSX registers.
3242 (rs6000_output_move_128bit): Always print out the set insn if we
3243 can't generate an appropriate 128-bit move.
3244 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3245 point in VSX registers comparisons.
3246 (rs6000_expand_float128_convert): Likewise.
3248 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3249 predicate for only GPR hard registers.
3251 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3252 modes to iterators. Add new iterators for moving 128-bit values in
3253 scalar FPR registers and VSX registers.
3254 (FMOVE128): Likewise.
3255 (FMOVE128_FPR): Likewise.
3256 (FMOVE128_GPR): Likewise.
3257 (FMOVE128_VSX): Likewise.
3258 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3263 (RELOAD): Add IEEE 128-bit floating point modes.
3264 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3265 floating point in VSX registers modes.
3266 (signbit<mode>2, IBM128 iterator): Likewise.
3267 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3268 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3270 (neg<mode>2, TFIFKF iterator): Likewise.
3271 (negtf2_internal): Likewise.
3273 (abs<mode>2, TFIFKF iterator): Likewise.
3274 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3275 VSX insn support for negate, absolute value, and negative absolute
3277 (ieee_128bit_vsx_neg<mode>2): Likewise.
3278 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3279 (ieee_128bit_vsx_abs<mode>2): Likewise.
3280 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3281 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3282 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3283 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3284 floating point in VSX registers.
3285 (unpack<mode>_dm): Likewise.
3286 (unpack<mode>_nodm): Likewise.
3287 (pack<mode>): Likewise.
3288 (unpackv1ti): Likewise.
3289 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3290 (packv1ti): Likewise.
3291 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3292 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3294 (extenddftf2_internal): Likewise.
3295 (trunctfdf2): Likewise.
3296 (trunctfdf2_internal2): Likewise.
3297 (fix_trunc_helper): Likewise.
3298 (fix_trunctfdi2"): Likewise.
3299 (floatditf2): Likewise.
3300 (floatuns<mode>tf2): Likewise.
3301 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3302 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3303 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3304 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3305 (float<SDI:mode><IFKF:mode>2): Likewise.
3306 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3308 2015-08-26 Renlin Li <renlin.li@arm.com>
3310 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3312 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3313 Jiong Wang <jiong.wang@arm.com>
3315 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3316 (tlsie_tiny_<mode>): New define_insn.
3317 (tlsie_tiny_sidi): Likewise.
3318 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3320 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3321 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3323 (aarch64_expand_mov_immediate): Likewise.
3324 (aarch64_print_operand): Likewise.
3325 (arch64_classify_tls_symbol): Likewise.
3327 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3329 * config/arm/arm-arches.def: Replace single value flags with
3330 an initializer built from ARM_FSET_MAKE_CPU1.
3331 * config/arm/arm-cores.def: Likewise.
3332 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3333 derivation from the ARM_CORE macro definition, use the given value
3335 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3336 ARM_ARCH macro definition, use the given value instead.
3338 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3340 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3342 (struct builtin_description): Replace field mask with field
3344 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3345 (IWMMXT2_BUILTIN): Likewise.
3346 (IWMMXT2_BUILTIN2): Likewise.
3347 (FP_BUILTIN): Likewise.
3348 (CRC32_BUILTIN): Likewise.
3349 (CRYPTO_BUILTIN): Likewise.
3350 (iwmmx_mbuiltin): Likewise.
3351 (iwmmx2_mbuiltin): Likewise.
3352 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3353 struct builtin_description.
3355 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3357 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3358 (struct builtin_description): Change type of mask to unsigned
3360 * config/arm/arm-protos.h (insn_flags): Declare as type
3362 (tune_flags): Likewise.
3363 * config/arm/arm.c (feature_count): New.
3364 (insn_flags): Define as type arm_feature_set.
3365 (tune_flags): Likewise.
3366 (struct processors): Define field flags as type arm_feature_set.
3367 (all_cores): Update for change to struct processors.
3368 (all_architectures): Likewise.
3369 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3371 (arm_option_override_internal): Likewise.
3372 (arm_option_override): Likewise.
3374 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3375 Jiong Wang <jiong.wang@arm.com>
3377 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3378 tls size for tiny, small, large memory model.
3379 (aarch64_load_symref_appropriately): Support new symbol types.
3380 (aarch64_expand_mov_immediate): Likewise.
3381 (aarch64_print_operand): Likewise.
3382 (aarch64_classify_tls_symbol): Likewise.
3383 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3384 (aarch64_symbol_type): Likewise.
3385 * config/aarch64/aarch64.md (tlsle): Deleted.
3386 (tlsle12_<mode>): New define_insn.
3387 (tlsle24_<mode>): Likewise.
3388 (tlsle32_<mode>): Likewise.
3389 (tlsle48_<mode>): Likewise.
3390 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3393 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3395 * config/arm/arm-protos.h (FL_NONE): New.
3397 (arm_feature_set): New.
3398 (ARM_FSET_MAKE): New.
3399 (ARM_FSET_MAKE_CPU1): New.
3400 (ARM_FSET_MAKE_CPU2): New.
3401 (ARM_FSET_CPU1): New.
3402 (ARM_FSET_CPU2): New.
3403 (ARM_FSET_EMPTY): New.
3404 (ARM_FSET_ANY): New.
3405 (ARM_FSET_HAS_CPU1): New.
3406 (ARM_FSET_HAS_CPU2): New.
3407 (ARM_FSET_HAS_CPU): New.
3408 (ARM_FSET_ADD_CPU1): New.
3409 (ARM_FSET_ADD_CPU2): New.
3410 (ARM_FSET_DEL_CPU1): New.
3411 (ARM_FSET_DEL_CPU2): New.
3412 (ARM_FSET_UNION): New.
3413 (ARM_FSET_INTER): New.
3414 (ARM_FSET_XOR): New.
3415 (ARM_FSET_EXCLUDE): New.
3416 (AFM_FSET_IS_EMPTY): New.
3417 (ARM_FSET_CPU_SUBSET): New.
3419 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3421 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3422 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3423 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3425 (aarch64_expand_mov_immediate): Likewise.
3426 (aarch64_print_operand): Likewise.
3427 (aarch64_classify_symbol): Likewise.
3429 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3431 * config/aarch64/aarch64.opt (mtls-size): New entry.
3432 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3433 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3434 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3436 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3438 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3439 ARM_CORE entry. Fix some white-space.
3440 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3441 ARM_CORE definition.
3443 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3445 * fold-const.c (fold_binary_loc) : Move Optimize
3446 root(x)*root(y) as root(x*y) to match.pd.
3447 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3448 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3449 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3450 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3451 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3452 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3453 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3454 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3455 (rdiv @0 (exps:s @1)) : New simplifier.
3457 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3459 * gcc.c (driver::finalize): Only assign to extra_specs if
3462 2015-08-25 Marek Polacek <polacek@redhat.com>
3465 * varasm.c (declare_weak): Return after giving an error.
3467 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3469 * gcc-main.c (main): Add params to driver ctor.
3470 * gcc.c (class env_manager): New.
3472 (env_manager::init): New.
3473 (env_manager::get): New.
3474 (env_manager::xput): New.
3475 (env_manager::restore): New.
3476 Poison getenv and putenv.
3477 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3478 (target_system_root): Update initialization to use
3479 DEFAULT_TARGET_SYSTEM_ROOT.
3480 (struct spec_list): Add field "default_ptr".
3481 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3482 (init_spec): Likewise.
3483 (set_spec): Clear field "default_ptr".
3484 (read_specs): Free "spec" and "buffer".
3485 (xputenv): Reimplement in terms of env_manager.
3486 (process_command): Replace ::getenv calls with calls to the
3487 env_manager singleton.
3488 (process_brace_body): Free string in three places.
3489 (driver::driver): New.
3490 (driver::~driver): New.
3491 (used_arg): Convert from a function to...
3492 (class used_arg_t): ...this class, and...
3493 (used_arg): ...this new global instance.
3494 (used_arg_t::finalize): New function.
3495 (getenv_spec_function): Add "const" to local "value". Replace
3496 ::getenv call with call to the env_manager singleton.
3497 (path_prefix_reset): New function.
3498 (driver::finalize): New function.
3499 * gcc.h (driver::driver): New.
3500 (driver::~driver): New.
3501 (driver::finalize): New.
3503 2015-08-25 Nathan Sidwell <nathan@acm.org>
3505 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3506 target doesn't have one.
3508 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3511 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3513 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3516 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3517 a define_insn, remove second alternative.
3519 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3520 Joseph Myers <joseph@codesourcery.com>
3522 * gcc.c (struct switchstr): Expand comment.
3524 2015-08-25 Nathan Sidwell <nathan@acm.org>
3526 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3527 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3529 2015-08-25 Richard Biener <rguenther@suse.de>
3532 * genmatch.c (expr::gen_transform): Verify the result of
3533 builtin_decl_implicit.
3534 (dt_simplify::gen_1): Likewise.
3536 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3538 * config/arm/constraints.md: Also list Cs and US ARM-specific
3539 constraints as used.
3541 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3544 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3546 (nonpic_symbol_mentioned_p): Likewise.
3547 (sh_delegitimize_address): Likewise.
3548 (sh_function_ok_for_sibcall): Take into account weak symbols.
3549 (sh_expand_sym_label2reg): New.
3550 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3551 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3552 (call_pcrel): Use sh_expand_sym_label2reg.
3553 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3554 (symPCREL_label2reg) New expand.
3556 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3558 * graphite-poly.c: Change type of region from void* to sese.
3559 * graphite-poly.h (struct scop): Changing the type of scop::region
3560 from void* to sese. Change accessor macro accordingly.
3561 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3563 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3565 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3566 Constrain only on INTEGER_TYPE.
3568 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3571 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3572 -mefficient-unaligned-vsx on ISA 2.7.
3574 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3575 option to a masked option.
3577 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3578 logic for -mefficient-unaligned-vsx so that it is set via an arch
3579 ISA option, instead of being set if -mtune=power8 is set. Move
3580 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3581 near other default option handling.
3583 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3585 * genflags.c (gen_macro): Delete.
3586 (gen_proto): Don't create GEN.*CALL.* macros.
3587 * gensupport.h (get_file_location): Declare.
3588 * gensupport.c (rtx_locs): New variable.
3589 (read_md_rtx): Record rtx locations.
3590 (get_file_location): New function.
3591 * target-insns.def (call, call_pop, call_value, call_value_pop)
3592 (sibcall, sibcall_value): New patterns.
3593 * gentarget-def.c (parse_argument): New function.
3594 (def_target_insn): Use it. Handle optional operands. Raise an
3595 error if an .md pattern has the wrong number of operands for the
3596 pattern name. Remove the names of unused operands from the prototype.
3597 * builtins.c (expand_builtin_apply): Use targetm functions
3598 instead of HAVE_call_value and GEN_CALL_VALUE.
3599 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3600 and sibcall_value_pop.
3601 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3603 * config/alpha/alpha.md (untyped_call): Likewise.
3604 * config/iq2000/iq2000.md (untyped_call): Likewise.
3605 * config/m68k/m68k.md (untyped_call): Likewise.
3606 * config/mips/mips.md (untyped_call): Likewise.
3607 * config/pa/pa.md (untyped_call): Likewise.
3608 * config/rs6000/rs6000.md (untyped_call): Likewise.
3609 * config/sparc/sparc.md (untyped_call): Likewise.
3610 * config/tilegx/tilegx.md (untyped_call): Likewise.
3611 * config/tilepro/tilepro.md (untyped_call): Likewise.
3612 * config/visium/visium.md (untyped_call): Likewise.
3613 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3614 gen_call_value instead of GEN_CALL_VALUE.
3615 * config/arm/arm.md (untyped_call): Likewise.
3616 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3619 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3621 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3622 (have_cbranchcc4): New variable.
3623 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3624 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3625 (if_convert): Initialize have_cbranchcc4.
3627 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3629 * builtins.c (expand_cmpstrn): Rename to...
3630 (expand_cmpstrn_or_cmpmem): ...this.
3631 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3632 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3633 Remove mode argument.
3634 (expand_builtin): Update accordingly.
3636 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3638 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3639 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3640 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3641 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3642 Add predicates for operands 0 and 3.
3643 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3645 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3646 immediate_operand to nonmemory_operand.
3648 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3650 * df-scan.c (df_insn_info_init_fields): New function, split out
3652 (df_insn_create_insn_record): ...here.
3653 (df_insn_info_free_fields): New function, split out from...
3654 (df_insn_info_delete): ...here.
3655 (df_insn_rescan): Use the new functions instead of freeing and
3656 reallocating the df_insn_info.
3658 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3660 * doc/install.texi (Binaries): Remove links no longer valid.
3662 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3664 * config/nvptx/mkoffload.c (process): Replace
3665 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3667 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3670 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3672 2015-08-24 Renlin Li <renlin.li@arm.com>
3674 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3675 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3676 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3677 * config/arm/constraints.md ("j"): Add check for high code.
3679 2015-08-24 Tom de Vries <tom@codesourcery.com>
3681 PR tree-optimization/65468
3682 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
3685 2015-08-24 Nathan Sidwell <nathan@acm.org>
3687 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
3688 change to nvptx_type_from_mode call. Use arg_promotion for both
3689 split and non-split args.
3691 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3693 * target-insns.def (movstr): New pattern.
3694 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
3695 (expand_movstr): Use targetm rather than HAVE_movstr/
3698 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3700 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
3703 2015-08-24 Andrew Pinski <apinski@cavium.com>
3705 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
3706 AARCH64_EXTRA_TUNING_OPTION.
3707 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
3709 (aarch64_extra_tuning_flags): Base the shifted value on the index
3710 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
3711 * config/aarch64/aarch64.c: Remove the last argument to
3712 AARCH64_EXTRA_TUNING_OPTION.
3714 2015-08-23 Nathan Sidwell <nathan@acm.org>
3716 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
3718 (nvptx_declare_function_name): Insert formatting tabs for
3721 2015-08-23 Tom de Vries <tom@codesourcery.com>
3723 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
3724 parm_decl, rather than generating a dummy default def in cfun.
3725 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
3726 ssa_name from cfun and child_fn do not share a stmt as def stmt.
3727 (move_stmt_op): Handle PARM_DECl.
3728 (gather_ssa_name_hash_map_from): New function.
3729 (move_sese_region_to_fn): Add default defs for function params, and add
3730 them to vars_map. Release copied ssa names.
3731 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3733 2015-08-23 Tom de Vries <tom@codesourcery.com>
3735 * doc/sourcebuild.texi: Rename vect_no_int_max with
3736 vect_no_int_min_max. Update description.
3738 2015-08-22 Andrew Pinski <apinski@cavium.com>
3740 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3741 * config/aarch64/aarch64-protos.h
3742 (aarch64_fusion_pairs_index): New enum.
3743 (aarch64_fusion_pairs): Base the shifted value on the index instead
3744 Rewrite AARCH64_FUSE_ALL to be based on the end index.
3745 of the argument to AARCH64_FUSION_PAIR.
3746 * config/aarch64/aarch64.c: Remove the last argument to
3747 AARCH64_FUSION_PAIR.
3749 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
3751 * dominance.c (new_zero_array): Define.
3752 (dom_info): Redefine as class with proper encapsulation.
3753 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
3755 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
3756 allocations/deallocations. Pass function as parameter (instead of
3758 (dom_info::get_idom): Define accessor method.
3759 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
3760 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
3761 (calculate_dominance_info): Adjust to use dom_info class.
3762 (verify_dominators): Likewise.
3764 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
3766 * print-rtl.c (print_rtx): Check the correct range for
3767 flag_dump_unnumbered_links to behave as documented.
3769 PR rtl-optimization/67227
3770 PR rtl-optimization/64164
3771 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
3772 (nonoverlapping_memrefs_p): Test offsets and sizes when given
3773 identical gimple_reg exprs.
3775 2015-08-21 Nathan Sidwell <nathan@acm.org>
3777 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3779 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3780 crtl->stack_alignment_needed to determine alignment.
3781 (nvptx_get_drap_rtx): New.
3782 (TARGET_GET_DRAP_RTX): Override.
3783 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3785 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3787 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3789 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3791 * configure.ac: Remove uwin* cases.
3792 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3793 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3794 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3795 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3796 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3797 i[34567]86-*-uwin*, powerpc-*-beos*.
3799 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
3801 * gencodes.c (gencodes): Print the comma for the preceding
3802 enum value rather than the current one. Use aliased enum values
3803 rather than #defines for compiled-out patterns.
3804 (main): Update accordingly. Replace LAST_INSN_CODE with
3806 * lra.c (insn_code_data): Update accordingly.
3807 (finish_insn_code_data_once, get_static_insn_data): Likewise.
3808 * recog.h (target_recog): Likewise.
3809 (preprocess_insn_constraints): Change parameter to unsigned int.
3810 * recog.c (preprocess_insn_constraints): Likewise.
3811 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3812 * tree-vect-stmts.c (vectorizable_operation): Simplify.
3814 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3816 PR rtl-optimization/61657
3817 * loop-iv.c (iv_number_of_iterations): Declare up and down as
3818 unsigned. Remove superflous uint64_t cast.
3820 2014-08-21 Felix Yang <felix.yang@huawei.com>
3821 Jiji Jiang <jiangjiji@huawei.com>
3823 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
3824 argument and get builtin function code directly from CALL.
3825 (gimple_stringop_fixed_value): Modified accordingly.
3826 (gimple_stringops_transform, gimple_stringops_values_to_profile):
3827 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
3829 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
3831 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3833 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3835 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3837 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3838 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3839 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3840 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3841 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3842 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3843 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3844 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3845 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3846 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3848 * match.pd (SIN ) : New Operator.
3849 (TAN) : New Operator.
3850 (mult (SQRT@1 @0) @1) : New simplifier.
3851 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3852 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3853 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3854 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3855 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3856 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3857 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3858 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3859 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3860 (rdiv @0 (POW:s @1 @2)) : New simplifier.
3862 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3864 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3865 loop if EXPR is simplified to const value.
3867 2015-08-21 Yury Gribov <y.gribov@samsung.com>
3869 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3870 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3872 2015-08-21 Richard Biener <rguenther@suse.de>
3875 * gimple-fold.c (replace_stmt_with_simplification): Assert
3876 seq is empty when replacing a call with itself but different
3878 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3879 a call require that it is const.
3881 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3883 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3884 * builtins.c (get_object_alignment_2): Adjust.
3885 * varasm.c (align_variable): Likewise.
3886 (get_variable_align): Likewise.
3887 (build_constant_desc): Likewise.
3888 (force_const_mem): Likewise.
3889 * doc/tm.texi.in: Likewise.
3890 * doc/tm.texi: Regenerate.
3892 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3894 * genconfig.c (main): Always define HAVE_cc0.
3895 * recog.c (rest_of_handle_peephole2): Adjust.
3897 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3899 * reorg.c (relax_delay_slots): Don't use #if to check value of
3902 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3904 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3905 * targhooks.c (default_have_conditional_execution): Adjust.
3907 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3909 * rtl.h (rtvec_all_equal_p): Declare.
3910 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3911 * rtl.c (rtvec_all_equal_p): New function.
3912 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3913 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3914 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3915 * config/arm/arm.c (neon_vdup_constant): Likewise.
3916 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3917 * config/tilegx/constraints.md (W, Y): Likewise.
3918 * config/tilepro/constraints.md (W, Y): Likewise.
3919 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3920 (classify_immediate): Use unwrap_const_vec_duplicate.
3921 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3922 (reg_or_v2s8bit_operand): Likewise.
3923 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3924 (reg_or_v4s8bit_operand): Likewise.
3926 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3928 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3929 (vec_shasigma_be): New #define.
3930 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3931 (VPMSUMH): Likewise.
3932 (VPMSUMW): Likewise.
3933 (VPMSUMD): Likewise.
3934 (VPMSUM): New BU_P8V_OVERLOAD_2.
3935 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3936 entries for VEC_MADD and VEC_VPMSUM.
3938 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
3940 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3941 Multiply argument avr_n_flash by 64 to match unit of "KiB".
3942 (avr_pgm_check_var_decl): Same.
3944 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
3946 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3947 initialization of HFmode scalar type (float16_t) to...
3948 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3951 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3953 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3954 having an -mfp16-format.
3956 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3958 * config/i386/predicates.md (vector_all_ones_operand): Use
3959 CONSTM1_RTX to simplify definition.
3961 2015-08-20 Richard Biener <rguenther@suse.de>
3963 * toplev.c (compile_file): Remove loop calling late_global_decl
3965 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3966 on decls we assembled.
3968 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
3970 * common/config/aarch64/aarch64-common.c
3971 (AARCH64_CPU_NAME_LENGTH): Delete.
3972 (aarch64_option_extension): New.
3973 (all_extensions): Likewise.
3974 (processor_name_to_arch): Likewise.
3975 (arch_to_arch_name): Likewise.
3977 (all_architectures): Likewise.
3978 (aarch64_get_extension_string_for_isa_flags): Likewise.
3979 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3981 * config/aarch64/aarch64-protos.h
3982 (aarch64_get_extension_string_for_isa_flags): New.
3983 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3984 (aarch64_option_print): Get the string to print from
3985 aarch64_get_extension_string_for_isa_flags.
3986 (aarch64_declare_function_name): Likewise.
3987 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3988 (MCPU_TO_MARCH_SPEC): This.
3989 (ASM_CPU_SPEC): Use it.
3990 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3991 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3992 (EXTRA_SPEC_FUNCTIONS): Use it.
3994 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
3996 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3997 expansion when !ISA_HAS_LWL_LWR.
3998 (mips_block_move_straight): Update the size of elements copied to
3999 account for alignment when !ISA_HAS_LWL_LWR.
4000 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4002 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4004 * expr.c (expand_expr_real_2): Check gimple statement during
4007 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4009 * common.opt (fstack-protector): Initialize to -1.
4010 (fstack-protector-all): Likewise.
4011 (fstack-protector-strong): Likewise.
4012 (fstack-protector-explicit): Likewise.
4013 * configure.ac: Add --enable-default-ssp.
4014 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4015 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4017 * doc/install.texi: Document --enable-default-ssp.
4018 * config.in: Regenerated.
4019 * configure: Likewise.
4021 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4023 PR rtl-optimization/64164
4024 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4025 (parm_in_stack_slot_p): ... this. Disregard mode, what
4026 matters is whether the parm will live in a pseudo or a stack
4028 (expand_one_ssa_partition): Deal with params without a default
4029 def. Disregard mode.
4030 * cfgexpand.h: Renamed function declaration.
4031 * tree-ssa-coalesce.c: Adjust.
4032 * function.c (split_complex_args): Allocate stack slot for
4033 unassigned parms before splitting.
4034 (parm_in_unassigned_mem_p): New. Use it instead of
4035 parm_maybe_byref_p throughout this file.
4036 (assign_parm_setup_block): Use it. Accept pseudos in the
4037 expand-assigned rtl.
4038 (assign_parm_setup_reg): Drop BLKmode requirement.
4039 (assign_parm_setup_stack): Allocate and fill in the address of
4040 unassigned MEM parms.
4042 2015-08-19 David Sherwood <david.sherwood@arm.com>
4044 * genmodes.c (emit_mode_unit_size_inline): New function.
4045 (emit_mode_unit_precision_inline): New function.
4046 (emit_insn_modes_h): Emit new #define. Emit new functions.
4047 (emit_mode_unit_size): New function.
4048 (emit_mode_unit_precision): New function.
4049 (emit_mode_adjustments): Add mode_unit_size adjustments.
4050 (emit_insn_modes_c): Emit new arrays.
4051 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4052 use new inline methods.
4054 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4056 * config/aarch64/aarch64.c (bit_count): Delete prototype
4058 (aarch64_print_operand): Use popcount_hwi instead of the above.
4060 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4062 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4065 2015-08-19 Marek Polacek <polacek@redhat.com>
4068 * gimple-ssa-isolate-paths.c
4069 (insert_trap_and_remove_trailing_statements): Rename to ...
4070 (insert_trap): ... this. Don't remove trailing statements; split
4072 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4074 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4077 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4078 conditionalize the whole on __GNUC__. Add fallback code
4079 depending neither on undefined nor implementation-defined behaviour.
4081 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4083 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4084 whitespaces with tab.
4086 2015-08-19 Florian Weimer <fweimer@redhat.com>
4088 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4089 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4090 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4091 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4094 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4096 * config/arm/arm.c (bounds_check): Use %wd print format
4097 for HOST_WIDE_INT arguments.
4099 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4101 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4102 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4103 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4104 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4105 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4106 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4107 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4108 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4109 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4112 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4114 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4115 function.c, graphite-scop-detection.c, haifa-sched.c,
4116 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4117 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4118 varasm.c: Remove typedefs of structs.
4120 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4122 * config/rs6000/altivec.h (vec_adde): New define.
4123 (vec_addec): Likewise.
4124 (vec_double): Likewise.
4125 (vec_bperm): Likewise.
4127 * config/rs6000/rs6000-builtin.def (ADDE): New
4128 BU_ALTIVEC_OVERLOAD_3.
4130 (DOUBLE): New BU_VSX_OVERLOAD_1.
4131 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4132 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4133 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4134 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4135 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4136 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4137 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4138 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4139 and P8V_BUILTIN_VEC_VBPERMQ.
4141 2015-08-18 Jason Merrill <jason@redhat.com>
4143 * print-tree.c (print_node): Handle TREE_BINFO.
4145 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4148 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4149 we can expand BUILT_IN_SIGNBIT inline.
4150 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4151 * doc/extend.texi: Document the type-generic __builtin_signbit.
4153 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4155 PR rtl-optimization/67218
4156 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4157 (simplify_unary_operation_1): Use it.
4159 2015-08-18 Marek Polacek <polacek@redhat.com>
4162 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4163 if the call isn't valid.
4164 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4165 gimple_call_builtin_p.
4166 (call_may_clobber_ref_p_1): Likewise.
4167 (stmt_kills_ref_p): Likewise.
4169 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4171 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4172 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4173 (mips_hard_regno_scratch_ok): Likewise.
4174 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4175 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4177 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4179 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4180 (determine_value_range): Call refine_value_range_using_guard for
4181 each loop initial condition to improve value range.
4183 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4185 * config/i386/i386.c: Remove include of fibheap.h.
4187 2015-08-17 Richard Biener <rguenther@suse.de>
4189 PR tree-optimization/67221
4190 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4191 (sccvn_dom_walker::before_dom_children): Mark backedges of
4192 non-executable blocks as not executable.
4194 2015-08-17 David Sherwood <david.sherwood@arm.com>
4196 * config/arm/arm.c (neon_element_bits): Replace call to
4197 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4198 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4199 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4200 (neon_vdup_lane<mode>): Likewise.
4201 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4202 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4203 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4204 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4205 * config/spu/spu.c (arith_immediate_p): Likewise.
4206 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4207 * expr.c (expand_expr_real_2): Likewise.
4208 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4209 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4210 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4211 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4213 * fold-const.c (fold_binary_loc): Replace call to
4214 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4215 GET_MODE_UNIT_PRECISION (m).
4217 2015-08-17 Mike Stump <mikestump@comcast.net>
4219 * config/arm/arm.c (arm_block_move_unaligned_straight):
4220 Emit normal move instead of unaligned load when source or destination
4221 are appropriately aligned.
4223 2015-08-17 Richard Biener <rguenther@suse.de>
4224 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4227 * match.pd (div (coss (op @0) : New simplifier.
4229 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4231 PR rtl-optimization/64164
4234 PR rtl-optimization/67000
4237 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4238 * tree-ssa-copyrename.c: Removed.
4239 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4240 -ftree-coalesce-vars.
4241 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4242 * common.opt (ftree-copyrename): Ignore.
4243 (ftree-coalesce-inlined-vars): Likewise.
4244 * doc/invoke.texi: Remove the ignored options above.
4245 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4246 * tree-ssa-coalesce.h: ... here.
4247 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4248 headers required by it.
4249 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4250 across variables when flag_tree_coalesce_vars. Check register
4251 use and promoted modes to allow coalescing. Do not coalesce
4252 maybe-byref parms with SSA_NAMEs of other variables, or
4253 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4254 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4255 with its member functions to tree-ssa-coalesce.c.
4256 (var_map_base_init): Likewise. Renamed to
4257 compute_samebase_partition_bases.
4258 (partition_view_normal): Drop want_bases parameter.
4259 (partition_view_bitmap): Likewise.
4260 * tree-ssa-live.h: Adjust declarations.
4261 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4262 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4263 default defs at the entry point.
4264 (dump_part_var_map): New.
4265 (compute_optimized_partition_bases): New, called by...
4266 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4267 of compute_samebase_partition_bases. Adjust.
4268 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4269 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4270 (ssa_default_def_partition): New.
4271 (get_rtl_for_parm_ssa_default_def): New.
4272 (align_local_variable, add_stack_var): Support anonymous SSA
4274 (defer_stack_allocation): Likewise. Declare earlier.
4275 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4276 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4277 Do no record deferred-allocation marker in
4278 SA.partition_to_pseudo.
4279 (expand_stack_vars): Adjust check for the marker in it.
4280 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4281 redundant MEM attr setting.
4282 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4284 (expand_one_stack_var): ... this. New wrapper to check and
4285 skip already expanded SSA partitions.
4286 (record_alignment_for_reg_var): New, factored out of...
4287 (expand_one_var): ... this.
4288 (expand_one_ssa_partition): New.
4289 (adjust_one_expanded_partition_var): New.
4290 (expand_one_register_var): Check and skip already expanded SSA
4292 (expand_used_vars): Don't create DECLs for anonymous SSA
4293 names. Expand all SSA partitions, then adjust all SSA names.
4294 (pass::execute): Replace the loops that set
4295 SA.partition_to_pseudo from partition leaders and cleared
4296 DECL_RTL for multi-location variables, and that which used to
4297 rename vars and set attrs, with one that clears DECL_RTL and
4298 checks that PARMs and RESULTs default_defs match DECL_RTL.
4299 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4300 * emit-rtl.c: Include stor-layout.h.
4301 (set_reg_attrs_for_parm): Handle NULL decl.
4302 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4304 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4305 rather than its possibly-NULL DECL.
4306 * explow.c (promote_ssa_mode): New.
4307 * explow.h (promote_ssa_mode): Declare.
4308 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4309 (read_complex_part): Export.
4310 * expr.h (read_complex_part): Declare.
4311 * cfgexpand.h (parm_maybe_byref_p): Declare.
4312 * function.c: Include cfgexpand.h.
4313 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4314 (use_register_for_parm_decl): Wrapper for the above to
4315 special-case the result_ptr.
4316 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4317 (split_complex_args): Take assign_parm_data_all argument.
4318 Pass it to rtl_for_parm. Set up rtl and context for split
4319 args. Reset complex parm before fetching its default decl
4321 (assign_parms_unsplit_complex): Use the default-def complex
4322 parm rtl if it matches the components.
4323 (assign_parms_augmented_arg_list): Adjust.
4324 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4325 multiple locations. Recognize split complex args.
4326 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4327 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4328 (assign_parm_setup_block): Prefer SSA-assigned location, and
4329 fill in its address if the memory location of a maybe-byref
4330 parm was not assigned by cfgexpand.
4331 (assign_parm_setup_reg): Likewise. Adjust its mode as
4332 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4333 sure passed_pointer parms don't need conversion. Copy address
4335 (assign_parm_setup_stack): Prefer SSA-assigned location.
4336 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4337 rtl before testing for pointer bounds. Special-case result_ptr.
4338 (expand_function_start): Maybe reset DECL_RTL of result.
4339 Prefer SSA-assigned location for result and static chain.
4340 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4341 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4342 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4343 anonymous SSA names. Use promote_ssa_mode.
4344 (get_temp_reg): Likewise.
4345 (remove_ssa_form): Adjust.
4346 * stor-layout.c (layout_decl): Don't set mem attributes of
4348 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4349 and get its reg_usage for reg invalidation.
4350 (compute_bb_dataflow): Pass it insn.
4351 (emit_notes_in_bb): Likewise.
4353 2015-08-14 Marek Polacek <polacek@redhat.com>
4355 * tree-core.h (tree_base): Fix typo.
4357 2015-08-14 Marek Polacek <polacek@redhat.com>
4360 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4361 nonnull argument position is not outside function arguments.
4363 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4366 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4367 'lconst_atomic' with 'const_atomic'.
4368 (atomic_fetch_<optab><mode>): Likewise.
4369 (atomic_<optab>_fetch<mode>): Likewise.
4370 * config/aarch64/iterators.md (lconst-atomic): Move below
4372 (const_atomic): New.
4374 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4375 Bernd Schmidt <bernds@codesourcery.com>
4377 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4379 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4380 (DWARF2_DEBUGGING_INFO): Don't define.
4381 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4382 * toplev.c (process_options): Add a case for it.
4383 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4384 (dwarf2out_init): Skip most initializations if
4385 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4387 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4388 DWARF2_LINENO_DEBUGGING_INFO.
4389 * opts.c (set_debug_level): Likewise.
4391 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4393 * config/arm/types.md (is_neon_type): Add missing types.
4395 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4397 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4399 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4400 (processor_alias_table): Add skylake description.
4401 (enum processor_model): Add skylake processor.
4402 (arch_names_table): Add skylake record.
4403 * doc/invoke.texi: Add skylake item.
4405 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4407 * ira-int.h: Include recog.h.
4408 * ira-build.c: Don't include recog.h.
4409 * ira-color.c: Likewise.
4410 * ira-conflicts.c: Likewise.
4411 * ira-costs.c: Likewise.
4412 * ira-emit.c: Likewise.
4413 * ira-lives.c: Likewise.
4415 * sched-deps.c: Likewise.
4416 * sel-sched.c: Likewise.
4417 * target-globals.c: Likewise.
4419 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4422 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4423 compiler that the n_dups and n_operands loop bounds are invariant.
4425 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4427 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4428 expressions in A and B.
4430 2015-08-13 Richard Biener <rguenther@suse.de>
4432 * tree.c (nonnull_arg_p): Move from ...
4433 * tree-vrp.c (nonnull_arg_p): ... here.
4434 * tree.h (nonnull_arg_p): Declare.
4435 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4436 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4437 Properly initialize static chain and by-reference result pointer.
4438 (run_scc_vn): Adjust.
4440 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4442 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4445 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4447 * config/aarch64/aarch64-protos.h
4448 (aarch64_gen_atomic_cas): Declare.
4449 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4450 Choose appropriate instruction pattern for the target.
4451 (aarch64_gen_atomic_cas): New.
4452 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4453 (atomic_compare_and_swap<mode>_1): Rename to
4454 aarch64_compare_and_swap<mode>. Fix some indentation.
4455 (aarch64_compare_and_swap<mode>_lse): New.
4456 (aarch64_atomic_cas<mode>): New.
4458 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4460 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4463 2015-08-13 Richard Biener <rguenther@suse.de>
4465 PR tree-optimization/67191
4466 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4467 assert we value-numbered last stmts operand because it can validly
4468 trigger for unreachable code.
4470 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4472 PR rtl-optimization/67103
4473 * ifcvt.c (noce_try_store_flag_constants): Move
4474 x = (-(test != 0) & (b - a)) + a transformation to...
4475 (noce_try_cmove): ... Here. Try it if normal conditional
4478 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4480 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4482 * config/mips/mips.md (processor): Remove w32 and w64.
4484 2015-08-13 Richard Biener <rguenther@suse.de>
4486 PR tree-optimization/66502
4487 PR tree-optimization/67167
4488 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4490 (vn_phi_lookup): Adjust.
4491 (vn_phi_insert): Likewise.
4492 (visit_phi): Prefer to value-number to another PHI node
4493 over value-numbering to a PHI argument.
4494 (init_scc_vn): Mark DFS back edges.
4496 2015-08-13 Richard Biener <rguenther@suse.de>
4498 * gimple.h (gcall::code_): New constant static member.
4499 (gcond::code_): Likewise.
4500 * gimple.c (gcall::code_): Define.
4501 (gcond::code_): Likewise.
4502 (is_a_helper <const gcond *>): Add.
4503 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4504 and forward to a new gcall overload with less checking and a
4505 cheaper way to access the operand.
4506 (gimple_call_lhs_ptr): Likewise.
4507 (gimple_call_set_lhs): Likewise.
4508 (gimple_call_internal_p): Likewise.
4509 (gimple_call_with_bounds_p): Likewise.
4510 (gimple_call_set_with_bounds): Likewise.
4511 (gimple_call_internal_fn): Likewise.
4512 (gimple_call_set_ctrl_altering): Likewise.
4513 (gimple_call_ctrl_altering_p): Likewise.
4514 (gimple_call_fntype): Likewise.
4515 (gimple_call_fn): Likewise.
4516 (gimple_call_fn_ptr): Likewise.
4517 (gimple_call_set_fndecl): Likewise.
4518 (gimple_call_fndecl): Likewise.
4519 (gimple_call_chain): Likewise.
4520 (gimple_call_num_args): Likewise.
4521 (gimple_call_arg): Likewise.
4522 (gimple_call_arg_ptr): Likewise.
4523 (gimple_call_set_arg): Likewise.
4524 (gimple_call_noreturn_p): Likewise.
4525 (gimple_cond_code): Likewise.
4526 (gimple_cond_lhs): Likewise.
4527 (gimple_cond_rhs): Likewise.
4528 (gimple_has_lhs): Reduce checking.
4530 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4533 * match.pd (div (mult @0 @1) @1) : New simplifier.
4535 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4538 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4539 predicate to allow construction of vector constants using the
4540 VSLDOI vector shift instruction.
4542 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4545 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4546 the number of bytes to be shifted left and filled in with either
4547 all zero or all one bits.
4548 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4550 (output_vec_const_move): On power8, generate XXLORC to generate
4551 a vector constant with all 1's. Do a split if we need to use a
4554 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4555 properly test for the MSB.
4557 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4558 vector constants that can be created with VSLDOI.
4560 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4563 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4564 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4565 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4566 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4567 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4568 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4569 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4570 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4571 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4573 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4575 * config/xtensa/constraints.md (define_constraint "Y"): New
4577 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4578 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4579 * config/xtensa/predicates.md (move_operand): Match constants
4580 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4581 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4582 immediate references to TLS data.
4583 (xtensa_emit_move_sequence): Don't force constants to memory in
4584 the presence of TARGET_AUTO_LITPOOLS.
4585 (print_operand): Add 'y' format, same as default, but capable of
4586 printing SF mode constants as well.
4587 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4588 (movsf_internal): Add movi pattern that loads literal.
4589 (movsf, movdf): Don't force constants to memory in the presence
4590 of TARGET_AUTO_LITPOOLS.
4591 (movdf_internal): Add 'Y' constraint.
4592 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4593 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4595 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4597 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4599 * config/arm/arm.c (ARM_FPU): Update macro.
4600 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4601 (TARGET_FP16): Likewise.
4602 (TARGET_CRYPTO): Likewise.
4603 (TARGET_NEON): Likewise.
4604 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4607 2015-08-12 Tom de Vries <tom@codesourcery.com>
4611 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4612 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4613 accordingly. Mention default for --with-stage1-ldflags.
4615 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4617 * config/arm/arm.h (arm_fpu_feature_set): New.
4618 (ARM_FPU_FSET_HAS): New.
4622 (FPU_FL_CRYPTO): New.
4624 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4626 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4627 after -mcmodel=large -fPIC sorry.
4629 2015-08-12 Richard Biener <rguenther@suse.de>
4631 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4632 comparison operand order and commutative ternary op operand order.
4633 (sccvn_dom_walker::cond_stack): New state to track temporary
4635 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4637 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4639 (sccvn_dom_walker::record_conds): Add a temporary conditional
4640 expressions and all related expressions also true/false.
4641 (sccvn_dom_walker::before_dom_children): Record temporary
4642 expressions based on the controlling condition of a single
4643 predecessor. When trying to simplify a conditional statement
4644 lookup expressions we might have inserted earlier.
4646 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4649 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4650 to ARM core registers.
4652 2015-08-12 Nathan Sidwell <nathan@acm.org>
4654 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4655 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4657 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4659 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4661 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4663 2015-08-12 Richard Biener <rguenther@suse.de>
4665 * gimple.h (remove_pointer): New trait.
4666 (GIMPLE_CHECK2): New inline template function.
4667 (gassign::code_): New constant static member.
4668 (is_a_helper<const gassign *>): Add.
4669 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4670 and forward to a new gassign overload with less checking and a
4671 cheaper way to access the operand.
4672 (gimple_assign_lhs_ptr): Likewise.
4673 (gimple_assign_set_lhs): Likewise.
4674 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4676 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
4678 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
4680 (gimple_assign_rhs_code): Likewise.
4681 * gimple.c (gassign::code_): Define.
4683 2015-08-12 Richard Biener <rguenther@suse.de>
4685 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4686 Eliminate edges marked as not executable by SCCVN.
4687 * tree-ssa-sccvn.c: Include gimple-iterator.h.
4688 (cond_dom_walker): Rename to sccvn_dom_walker.
4689 (sccvn_dom_walker::before_dom_children): Value-number defs
4691 (run_scc_vn): Remove loop value-numbering all SSA names.
4692 Drop not visited SSA names to varying.
4694 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4696 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4697 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4698 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4699 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4700 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4701 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4702 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4703 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4704 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4706 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
4709 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
4710 to enum feature_priority and feature_list.
4711 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
4712 and isa_names_table.
4714 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4716 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
4719 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4723 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
4724 account when deciding what was the command-line status.
4726 2015-08-11 Nathan Sidwell <nathan@acm.org>
4728 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4730 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4731 we're not the only contributor to target phi.
4733 2015-08-11 Jiong Wang <jiong.wang@arm.com>
4735 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4738 2015-08-11 Tom de Vries <tom@codesourcery.com>
4740 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4742 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
4744 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4746 * config/i386/i386.md (cpu): Remove knl.
4748 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4752 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4753 open-coded sequence.
4754 * omp-low.c (oacc_process_reduction_data): Remove handline of
4755 GOMP_DEVICE_HOST_NONSHM.
4757 * lto-streamer-in.c (lto_input_mode_table): Adjust to
4758 GET_MODE_INNER changes.
4760 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4761 Ilya Verbin <ilya.verbin@intel.com>
4763 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
4765 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4767 * doc/options.texi (EnabledBy): Document that the argument must be
4769 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
4770 Not enabled by -Wall.
4771 * optc-gen.awk: Give nicer error messages. Detect if the argument
4772 of EnabledBy is not a Common option.
4773 * common.opt (Wnull-dereference): Not enabled by -Wall.
4774 * opt-functions.awk (lang_enabled_by): Nicer error messages.
4776 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
4778 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4779 model == 0x4f as Broadwell.
4781 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4783 PR rtl-optimization/67028
4784 * combine.c (simplify_comparison): Fix comment. Rearrange code.
4785 Add test to see if a const_int fits in the new mode.
4787 2015-08-07 DJ Delorie <dj@redhat.com>
4789 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4791 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
4793 PR rtl-optimization/67029
4794 * ira-color.c: Include "recog.h" before including "ira-int.h".
4795 * target-globals.c: Likewise.
4796 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4797 adds an alternative_mask argument and use it instead of
4798 preferred_alternatives.
4799 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4800 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4801 * sched-deps.c: Include "ira-int.h" after including "ira.h".
4802 (sched_analyze_insn): Update call to
4803 ira_implicitly_set_insn_hard_regs.
4804 * sel-sched.c: Include "ira-int.h" after including "ira.h".
4805 (implicit_clobber_conflict_p): Update call to
4806 ira_implicitly_set_insn_hard_regs.
4808 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4810 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4812 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
4815 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4816 currently_expanding_to_rtl is set.
4818 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4820 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4821 * configure: Regenerate.
4823 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4824 Jiong Wang <jiong.wang@arm.com>
4826 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4827 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4828 (REG_CLASS_NAMES): Likewise.
4829 (REG_CLASS_CONTENTS): Likewise.
4830 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4831 (aarch64_register_move_cost): Likewise.
4832 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4834 * config/aarch64/constraints.md (Uc0): New constraint.
4836 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4838 * config/aarch64/constraints.md (Usf): Add the test of
4839 aarch64_is_noplt_call_p.
4841 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4843 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4845 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4846 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4847 (call_symbol): Likewise.
4849 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4851 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4852 for vectorizing multiplication patterns.
4853 * tree-vectorizer.h: Adjust the number of patterns.
4855 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4857 * config/i386/sse.md (*vec_concatv2df): Declare added
4858 alternatives as sselog type.
4860 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4862 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4865 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4867 * config/s390/s390.c (s390_expand_tbegin): Expand either
4868 tbegin_1_z13 or tbegin_1 depending on VX flag.
4869 * config/s390/s390.md ("tbegin_1_z13"): New expander.
4871 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4873 * config/s390/s390.opt: Clarify description for -mzvector
4874 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4877 2015-08-06 Richard Biener <rguenther@suse.de>
4879 * gimple.h (gimple_call_set_fn): Access op member directly.
4880 (gimple_call_chain_ptr): Likewise.
4881 (gimple_call_set_chain): Likewise.
4882 (gimple_cond_lhs_ptr): Likewise.
4883 (gimple_cond_set_lhs): Likewise.
4884 (gimple_cond_rhs_ptr): Likewise.
4885 (gimple_cond_set_rhs): Likewise.
4886 (gimple_cond_true_label): Likewise.
4887 (gimple_cond_set_true_label): Likewise.
4888 (gimple_cond_set_false_label): Likewise.
4889 (gimple_cond_false_label): Likewise.
4890 (gimple_label_label): Likewise.
4891 (gimple_label_set_label): Likewise.
4892 (gimple_goto_set_dest): Likewise.
4893 (gimple_asm_input_op): Likewise.
4894 (gimple_asm_input_op_ptr): Likewise.
4895 (gimple_asm_set_input_op): Likewise.
4896 (gimple_asm_output_op): Likewise.
4897 (gimple_asm_output_op_ptr): Likewise.
4898 (gimple_asm_set_output_op): Likewise.
4899 (gimple_asm_clobber_op): Likewise.
4900 (gimple_asm_set_clobber_op): Likewise.
4901 (gimple_asm_label_op): Likewise.
4902 (gimple_asm_set_label_op): Likewise.
4903 (gimple_switch_index): Likewise.
4904 (gimple_switch_index_ptr): Likewise.
4905 (gimple_return_retval_ptr): Likewise.
4906 (gimple_return_retval): Likewise.
4907 (gimple_return_set_retval): Likewise.
4908 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
4909 (gimple_switch_label): Likewise.
4910 (gimple_switch_set_label): Likewise.
4912 2015-08-06 Richard Biener <rguenther@suse.de>
4914 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4915 bool comparison canonicalization and restrict to integers.
4917 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
4919 * coretypes.h (enum symbol_visibility): Relocate here.
4920 * flag-types.h (enum symbol_visibility): Remove.
4921 * tree-core.h (enum symbol_visibility): Remove.
4923 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
4926 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4927 for no_split_stack function attribute along with
4929 (rs6000_expand_split_stack_prologue): Likewise.
4931 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4932 Jeff Law <law@redhat.com>
4935 * doc/invoke.texi (Wnull-dereference): New.
4936 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4937 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4938 Warn for potential NULL dereferences.
4939 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4940 * ubsan.c (instrument_nonnull_arg): Call
4941 infer_nonnull_range_by_attribute.
4942 (instrument_nonnull_return): Likewise.
4943 * common.opt (Wnull-dereference); New.
4944 * gimple.c (infer_nonnull_range): Remove bool arguments.
4945 (infer_nonnull_range_by_dereference): New.
4946 (infer_nonnull_range_by_attribute): New.
4947 * gimple.h: Update declarations.
4949 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4951 * gensupport.c (sequence_num): Replace with...
4952 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4953 ...these new variables.
4954 (init_rtx_reader_args_cb): Update accordingly.
4955 (get_num_code_insns): Likewise.
4956 (read_md_rtx): Rework to use a while loop and get_c_test.
4957 Use the new counters. Remove redundant DEFINE_SUBST case.
4958 * genoutput.c (gen_split): Delete.
4959 (main): Don't call it.
4961 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4963 * gensupport.h (get_c_test): Declare.
4964 * gensupport.c (get_c_test): New function.
4965 * genconditions.c (main): Use it.
4966 * genrecog.c (validate_pattern): Likewise.
4967 (match_pattern_1): Likewise. Remove c_test argument.
4968 (match_pattern): Update accordingly and remove c_test argument.
4969 (main): Update accordingly.
4971 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4973 * gensupport.h (get_num_insn_codes): Declare.
4974 * gensupport.c (get_num_insn_codes): New function.
4975 * genattrtab.c (optimize_attrs): Rename max_insn_code to
4977 (main): Likewise. Use get_num_insn_codes.
4978 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4980 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4983 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4984 is zero- rather than sign-extended.
4986 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4988 * target-insns.def (can_extend): Delete.
4990 2015-08-05 Richard Biener <rguenther@suse.de>
4992 PR tree-optimization/67121
4993 * tree-if-conv.c (combine_blocks): Clear range-info produced
4994 by stmts no longer executed conditionally.
4996 2015-08-05 Nick Clifton <nickc@redhat.com>
4998 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4999 to allow identical far pointers to remain.
5001 2015-08-05 Richard Biener <rguenther@suse.de>
5004 * match.pd: Compare address bases with == if they are decls
5005 or SSA names, not operand_equal_p. Otherwise fail.
5007 2015-08-05 Richard Biener <rguenther@suse.de>
5009 PR tree-optimization/67055
5010 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5013 * g++.dg/torture/pr67055.C: New testcase.
5015 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5017 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5019 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5020 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5021 AVX-512 alternative out of SSE.
5022 (define_insn "*vec_concatv2df"): Ditto.
5024 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5026 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5027 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5028 CODE_FOR_avx_ptestv4di.
5029 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5030 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5031 (define_insn "avx_ptest256"): Merge this ...
5032 (define_insn "sse4_1_ptest"): And this ...
5033 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5035 2015-08-05 Richard Biener <rguenther@suse.de>
5037 PR tree-optimization/67109
5038 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5039 against too big groups. Print whether this is a load or store
5040 group. Rename from ...
5041 (vect_analyze_group_access): ... this which is now a wrapper
5042 dissolving an invalid group.
5043 (vect_analyze_data_ref_accesses): Print whether this is a load
5046 2015-08-05 Richard Biener <rguenther@suse.de>
5049 * match.pd: Guard const_binop result checking against NULL_TREE
5052 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5054 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5055 when dest and value in the REG_EQUAL are same and dest
5058 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5060 * config/moxie/moxie.h (PRINT_OPERAND,
5061 PRINT_OPERAND_ADDRESS): Remove macros.
5062 * config/moxie/moxie-protos.h (moxie_print_operand,
5063 moxie_print_operand_address): Remove declaration.
5064 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5065 TARGET_PRINT_OPERAND_ADDRESS): Define.
5066 (moxie_print_operand, moxie_print_operand_address): Make static.
5068 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5071 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5072 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5074 2015-08-04 Richard Biener <rguenther@suse.de>
5076 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5078 (dt_operand::gen_gimple_expr): Adjust.
5080 2015-08-04 Richard Biener <rguenther@suse.de>
5082 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5083 bool compares on RHS.
5084 * match.pd: Add X ==/!= !X is false/true pattern.
5086 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5088 * config/aarch64/aarch64.c: Change inner loop statement cost
5089 to be consistent with other targets.
5091 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5093 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5096 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5098 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5099 (machine_function): Remove pseudos field.
5101 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5103 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5104 Exit early and use target_option_current_node if processing current
5107 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5109 * doc/extend.texi (AArch64 Function Attributes): New node.
5110 (AArch64 Pragmas): Likewise.
5112 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5114 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5115 Initialize simd builtins if TARGET_SIMD.
5116 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5117 Make sure that the builtins are initialized only once no matter how
5118 many times the function is called.
5119 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5120 (aarch64_relayout_simd_param): New function.
5121 (aarch64_simd_expand_args): Use above during argument expansion.
5122 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5123 simd builtins if TARGET_SIMD.
5124 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5126 (aarch64_relayout_simd_types): Likewise.
5128 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5130 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5131 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5132 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5133 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5135 (aarch64_reset_previous_fndecl): New function.
5136 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5138 * config/aarch64/aarch64-c.c: New file.
5139 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5140 Push and pop options at beginning and end. Remove ifdef
5141 __ARM_FEATURE_CRC32.
5142 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5143 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5144 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5145 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5147 (aarch64_register_pragmas): Likewise.
5148 (aarch64_reset_previous_fndecl): Likewise.
5149 (aarch64_process_target_attr): Likewise.
5150 (aarch64_override_options_internal): Likewise.
5152 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5154 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5156 (aarch64_can_inline_p): Likewise.
5157 (TARGET_CAN_INLINE_P): Define.
5159 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5161 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5162 Remove static. Handle OPT_mgeneral_regs_only,
5163 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5164 OPT_momit_leaf_frame_pointer.
5165 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5166 (aarch64_attr_opt_type): New enum.
5167 (aarch64_attribute_info): New struct.
5168 (aarch64_handle_attr_arch): New function.
5169 (aarch64_handle_attr_cpu): Likewise.
5170 (aarch64_handle_attr_tune): Likewise.
5171 (aarch64_handle_attr_isa_flags): Likewise.
5172 (aarch64_attributes): New table.
5173 (aarch64_process_one_target_attr): New function.
5174 (num_occurences_in_str): Likewise.
5175 (aarch64_process_target_attr): Likewise.
5176 (aarch64_option_valid_attribute_p): Likewise.
5177 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5178 * config/aarch64/aarch64-protos.h: Include input.h
5179 (aarch64_handle_option): Declare prototype.
5181 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5183 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5184 * config/aarch64/aarch64.c: Include target-globals.h
5185 (aarch64_previous_fndecl): New variable.
5186 (aarch64_set_current_function): New function.
5187 (TARGET_SET_CURRENT_FUNCTION): Define.
5189 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5191 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5192 (explicit_arch): Likewise.
5193 (x_aarch64_isa_flags): Likewise.
5194 (mgeneral-regs-only): Mark as Save.
5195 (mfix-cortex-a53-835769): Likewise.
5196 (mcmodel=): Likewise.
5197 (mstrict-align): Likewise.
5198 (momit-leaf-frame-pointer): Likewise.
5199 (mtls-dialect): Likewise.
5200 (master=): Likewise.
5201 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5202 (aarch64_isa_flags): Remove extern declaration.
5203 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5204 to indicate success or failure.
5205 (aarch64_validate_march): Likewise.
5206 (aarch64_validate_mtune): Likewise.
5207 (aarch64_isa_flags): Delete.
5208 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5209 instead of aarch64_isa_flags.
5210 (aarch64_get_tune_cpu): New function.
5211 (aarch64_get_arch): Likewise.
5212 (aarch64_override_options): Use above and set up explicit_tune_core
5214 (aarch64_print_extension): Move earlier in file. Add isa_flags
5215 argument and use that instead of the global aarch64_isa_flags.
5216 (aarch64_option_save): New function.
5217 (aarch64_option_restore): Likewise.
5218 (aarch64_option_print): Likewise.
5219 (aarch64_declare_function_name): Likewise.
5220 (aarch64_start_file): Delete.
5221 (TARGET_ASM_FILE_START): Do not define.
5222 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5223 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5226 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5228 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5229 flag_omit_leaf_frame_pointer to 2.
5231 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5233 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5235 (TARGET_FIX_ERR_A53_835769): New macro.
5236 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5237 handling of opts->x_aarch64_fix_a53_err835769.
5238 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5239 than aarch64_fix_a53_err835769.
5240 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5241 * config/aarch64/aarch64-linux.h: Likewise.
5243 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5245 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5246 ix86_expand_int_movcc as boolean.
5248 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5250 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5251 (aarch64_cpu_string): Likewise.
5252 (aarch64_tune_string): Likewise.
5253 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5254 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5255 Add extra argument to put result into.
5256 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5257 (aarch64_parse_cpu): Add arguments to put results into. Return
5258 aarch64_parse_opt_result.
5259 (aarch64_parse_tune): Likewise.
5260 (aarch64_override_options_after_change_1): New function.
5261 (aarch64_override_options_internal): New function.
5262 (aarch64_validate_mcpu): Likewise.
5263 (aarch64_validate_march): Likewise.
5264 (aarch64_validate_mtune): Likewise.
5265 (aarch64_override_options): Update to reflect above changes.
5266 Move some logic into aarch64_override_options_internal.
5267 Initialize target_option_default_node and target_option_current_node.
5268 (aarch64_override_options_after_change): Move logic into
5269 aarch64_override_options_after_change_1 and call it with global_options.
5270 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5271 flag values from that.
5273 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5275 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5276 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5277 * config/aarch64/aarch64.c (struct processor): Add arch field.
5278 (all_architectures): Handle above, move above all_cores.
5279 (all_cores): Handle above.
5280 (aarch64_parse_arch): Handle above changes.
5281 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5282 above. Update comments.
5283 (armv8.1-a): Likewise.
5284 * config/aarch64/aarch64-cores.def: Update according to above.
5285 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5286 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5287 aarch64_arch_driver_info.
5289 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5291 * config/aarch64/aarch64.c (struct processor): Add ident field.
5292 Rename core sched_core.
5293 (all_cores): Handle above changes.
5294 (all_architectures): Likewise.
5295 (aarch64_parse_arch): Likewise.
5296 (aarch64_override_options): Likewise.
5298 2015-08-04 Richard Biener <rguenther@suse.de>
5300 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5301 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5302 comparisons embedded in [VEC_]COND_EXPRs.
5304 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5306 * tree-if-conv.c: Fix various typos in comments.
5307 * tree-vect-stmts.c: Likewise.
5309 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5311 PR tree-optimization/67043
5312 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5313 preheader after hoisting invariant in it.
5314 (find_defs): Force recomputation of all luids.
5316 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5318 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5319 using a base register.
5321 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5323 * main.c (main): Pass in NULL for toplev's external_timer.
5324 * timevar.c: Include coretypes.h.
5325 (class timer::named_items): New.
5326 (timer::named_items::named_items): New.
5327 (timer::named_items::~named_items): New.
5328 (timer::named_items::push): New.
5329 (timer::named_items::pop): New.
5330 (timer::named_items::print): New.
5331 (timer::timer): Initialize field "m_jit_client_items".
5332 (timer::~timer): New.
5333 (timer::push): Move bulk of implementation to...
5334 (timer::push_internal): ...here. New function.
5335 (timer::pop): Move bulk of implementation to...
5336 (timer::pop_internal): ...here. New function.
5337 (timer::push_client_item): New.
5338 (timer::pop_client_item): New.
5339 (timer::print_row): New function, taken from timer::print.
5340 (timer::print): Print "GCC items" header if we also have client
5341 items. Move row-printing to timer::print_row. Print any client
5343 (timer::get_topmost_item_name): New method.
5344 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5345 (TV_JIT_CLIENT_CODE): New.
5346 * timevar.h (timer::push_client_item): New declaration.
5347 (timer::pop_client_item): New declaration.
5348 (timer::get_topmost_item_name): New method.
5349 (timer::push_internal): New declaration.
5350 (timer::pop_internal): New declaration.
5351 (timer::print_row): New declaration.
5352 (timer::named_items): New declaration.
5353 (timer::m_jit_client_items): New field.
5354 (timer): Add friend class named_items.
5355 (auto_timevar::auto_timevar): Add timer param.
5356 (auto_timevar::~auto_timevar): Use field "m_timer".
5357 (auto_timevar::m_timer): New field.
5358 * toplev.c (initialize_rtl): Add g_timer as param when
5359 constructing auto_timevar instance.
5360 (toplev::toplev): Add "external_timer" param, and use it to
5361 initialize the "g_timer" global if non-NULL.
5362 (toplev::~toplev): If this created "g_timer", delete it.
5363 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5364 with "external_timer" timer *.
5366 2015-08-03 Alexander Basov <coohpt@gmail.com>
5371 * cfgexpand.c (expand_one_var): Add check if stack is going to
5372 be used in naked function.
5373 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5374 whether expression should not reside in MEM.
5375 * function.c (use_register_for_decl): Do not use registers for
5376 non-register things (volatile, float, BLKMode) in naked functions.
5378 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5381 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5382 Adjust splits to match new pattern.
5384 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5386 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5389 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5390 point in VSX registers.
5392 * config/rs6000/constraints.md (wb constraint): Document unused
5394 (we constraint): Likewise.
5395 (wo constraint): Likewise.
5396 (wp constraint): New constraint for IEEE 128-bit floating point in
5398 (wq constraint): Likewise.
5400 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5401 IEEE 128-bit floating point in VSX registers.
5402 (easy_scalar_constant): Likewise.
5404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5405 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5407 (rs6000_init_hard_regno_mode_ok): Likewise.
5409 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5410 floating point in VSX registers.
5419 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5420 IEEE 128-bit floating point in VSX registers on little endian.
5421 (vsx_le_undo_permute_<mode>): Likewise.
5422 (vsx_le_perm_load_<mode>): Likewise.
5423 (vsx_le_perm_store_<mode>): Likewise.
5424 (splitters for IEEE 128-bit fp moves): Likewise.
5426 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5429 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5430 floating point in VSX registers.
5433 * doc/md.text (Machine Constraints): Document wp and wq
5434 constraints on PowerPC.
5436 2015-08-03 Jeff Law <law@redhat.com>
5439 PR gcov-profile/66899
5440 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5441 iterate over the jump threading paths when an element in the
5442 jump threading paths array is eliminated.
5444 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5446 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5448 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5450 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5451 is_use_properly_guarded the variable def_preds. Free its
5452 contents before returning.
5453 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5454 (is_use_properly_guarded): Replace local variable def_preds with
5455 a parameter. Adjust accordingly. Only update *def_preds if it's
5458 2015-08-03 Richard Biener <rguenther@suse.de>
5460 * genmatch.c (simplify::for_subst_vec): New member.
5461 (binary_ok): New helper for for lowering.
5462 (lower_for): Delay substituting operators into result expressions
5463 if we can merge the results eventually again.
5464 (capture_info::walk_result): Adjust for user_id appearing as
5465 result expression operator.
5466 (expr::gen_transform): Likewise.
5467 (dt_simplify::gen_1): Likewise.
5468 (dt_simplify::gen): Pass not substituted operators to tail
5469 functions or initialize local variable with it.
5470 (decision_tree::gen): Adjust function signature.
5471 * match.pd: Fix tests against global code and add default
5472 cases to switch stmts.
5474 2015-08-03 Richard Biener <rguenther@suse.de>
5476 * genmatch.c (dt_simplify::gen): Create captures array
5477 with an initializer.
5479 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5481 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5482 the host compiler is affected by placement new aliasing bug.
5483 * configure: Regenerate.
5484 * Makefile.in (ALIASING_FLAGS): New variable.
5485 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5487 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5490 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5491 (negmulsf3_vfp): Likewise.
5492 (muldf3negdf_vfp): Disable for -frounding-math.
5493 (mulsf3negsf_vfp): Likewise.
5494 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5495 fix MULT cost with -frounding-math.
5497 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5499 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5500 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5501 explicit. Prefer to add the flag whenever possible.
5502 (noce_process_if_block): Try noce_try_store_flag_constants before
5505 2015-08-03 Richard Biener <rguenther@suse.de>
5507 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5508 New hash-map to record equivalent transforms.
5509 (dt_node::analyze): Populate the equivalent transforms hash-map.
5510 (dt_simplify::info): Add reference to hash-map entry.
5511 (dt_simplify::gen): If we have split out a function for the
5512 transform, generate a call to it.
5513 (sinfo_hashmap_traits::hash): New function.
5514 (compare_op): New helper function for ...
5515 (sinfo_hashmap_traits::equal_keys): ... this new function.
5516 (decision_tree::gen): Split out common equivalent transforms
5519 2015-08-03 Richard Biener <rguenther@suse.de>
5521 * gimple-fold.c (fold_gimple_assign): Remove folding of
5522 the comparison in COND_EXPRs.
5524 2015-08-03 Richard Biener <rguenther@suse.de>
5526 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5527 on the rhs of assignments first simplify the embedded
5530 2015-08-03 Richard Biener <rguenther@suse.de>
5532 PR tree-optimization/66917
5533 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5535 (DR_VECT_AUX): New macro.
5536 (set_dr_misalignment): Adjust.
5537 (dr_misalignment): Likewise.
5538 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5539 Compute whether the base is at least element aligned.
5540 * tree-vect-stmts.c (ensure_base_align): Adjust.
5541 (vectorizable_store): If the base is not element aligned
5542 preserve alignment of the original access if misalignment is unknown.
5543 (vectorizable_load): Likewise.
5545 2015-08-02 Martin Sebor <msebor@redhat.com>
5547 * c-family/c.opt (-Wframe-address): New warning option.
5548 * doc/invoke.texi (Wframe-address): Document it.
5549 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5550 Clarify possible effects of calling the functions with non-zero
5551 arguments and mention -Wframe-address.
5552 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5554 2015-08-01 Michael Collison <michael.collison@linaro.org
5555 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5557 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5558 (*arm_umin_cmp): Likewise.
5560 2015-08-01 Caroline Tice <cmtice@google.com>
5563 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5565 (vtbl_find_mangled_name): New function.
5566 (vtbl_register_mangled_name): New function.
5567 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5568 mangled name in mangled name vectors.
5569 (find_or_create_vtbl_map_node): Ditto.
5570 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5571 update recursion_depth on function entry; pass it to every recursive
5572 call; automatically exit if depth > 25 (give up looking at that point).
5573 (verify_bb_vtables): Initialize recursion_depth and pass it to
5574 var_is_used_for_virtual_call_p.
5575 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5576 global variable decls.
5577 (vtbl_register_mangled_name): New extern function decl.
5579 2015-08-01 Tom de Vries <tom@codesourcery.com>
5581 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5583 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5585 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5586 operation_no_trapping_overflow. Allow non-overflow operations.
5587 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5590 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5593 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5595 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5597 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5598 Enable for TARGET_32BIT.
5599 (*if_move_neg): Likewise.
5601 2015-07-31 Nick Clifton <nickc@redhat.com>
5603 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5604 Returns true for __model__.
5605 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5607 2015-07-31 Alan Modra <amodra@gmail.com>
5610 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5611 (rs6000_emit_prologue): Set it.
5612 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5614 2015-07-31 Richard Biener <rguenther@suse.de>
5616 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5617 -> X == (C1 ^ C2) which is already implemented in match.pd.
5618 Remove redundant dispatching to fold_relational_const.
5619 Move unordered self and NaN compares ...
5620 * match.pd: ... as patterns here. Remove some stray captures
5623 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5625 * config/i386/i386.c
5626 (bdesc_special_args): Convert mask type from signed to unsigned for
5628 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5629 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5630 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5631 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5632 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5633 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5634 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5635 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5636 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5637 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5638 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5639 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5640 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5641 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5642 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5643 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5644 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5645 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5646 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5647 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5648 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5649 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5650 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5651 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5652 * config/i386/i386-builtin-types.def
5653 (V16QI_FTYPE_V16SI): Remove.
5654 (V8DF_FTYPE_V8SI): Ditto.
5655 (V8HI_FTYPE_V8DI): Ditto.
5656 (V8SI_FTYPE_V8DI): Ditto.
5657 (V8SF_FTYPE_V8DF): Ditto.
5658 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5659 (V16HI_FTYPE_V16SI): Ditto.
5660 (V16SF_FTYPE_V16HI): Ditto.
5661 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5662 (V16SF_FTYPE_V16SI): Ditto.
5663 (V4DI_FTYPE_V4DI): Ditto.
5664 (V16SI_FTYPE_V16SF): Ditto.
5665 (V16SF_FTYPE_FLOAT): Ditto.
5666 (V8DF_FTYPE_DOUBLE): Ditto.
5667 (V8DI_FTYPE_INT64): Ditto.
5668 (V8DI_FTYPE_V4DI): Ditto.
5669 (V16QI_FTYPE_V8DI): Ditto.
5670 (UINT_FTYPE_V4SF): Ditto.
5671 (UINT64_FTYPE_V4SF): Ditto.
5672 (UINT_FTYPE_V2DF): Ditto.
5673 (UINT64_FTYPE_V2DF): Ditto.
5674 (V16SI_FTYPE_V16SI): Ditto.
5675 (V8DI_FTYPE_V8DI): Ditto.
5676 (V16SI_FTYPE_PV4SI): Ditto.
5677 (V16SF_FTYPE_PV4SF): Ditto.
5678 (V8DI_FTYPE_PV2DI): Ditto.
5679 (V8DF_FTYPE_PV2DF): Ditto.
5680 (V4DI_FTYPE_PV2DI): Ditto.
5681 (V4DF_FTYPE_PV2DF): Ditto.
5682 (V16SI_FTYPE_PV2SI): Ditto.
5683 (V16SF_FTYPE_PV2SF): Ditto.
5684 (V8DI_FTYPE_PV4DI): Ditto.
5685 (V8DF_FTYPE_PV4DF): Ditto.
5686 (V8SF_FTYPE_FLOAT): Ditto.
5687 (V4SF_FTYPE_FLOAT): Ditto.
5688 (V4DF_FTYPE_DOUBLE): Ditto.
5689 (V8SF_FTYPE_PV4SF): Ditto.
5690 (V8SI_FTYPE_PV4SI): Ditto.
5691 (V4SI_FTYPE_PV2SI): Ditto.
5692 (V8SF_FTYPE_PV2SF): Ditto.
5693 (V8SI_FTYPE_PV2SI): Ditto.
5694 (V16SF_FTYPE_PV8SF): Ditto.
5695 (V16SI_FTYPE_PV8SI): Ditto.
5696 (V8DI_FTYPE_V8SF): Ditto.
5697 (V4DI_FTYPE_V4SF): Ditto.
5698 (V2DI_FTYPE_V4SF): Ditto.
5699 (V64QI_FTYPE_QI): Ditto.
5700 (V32HI_FTYPE_HI): Ditto.
5701 (V8UHI_FTYPE_V8UHI): Ditto.
5702 (V16UHI_FTYPE_V16UHI): Ditto.
5703 (V32UHI_FTYPE_V32UHI): Ditto.
5704 (V2UDI_FTYPE_V2UDI): Ditto.
5705 (V4UDI_FTYPE_V4UDI): Ditto.
5706 (V8UDI_FTYPE_V8UDI): Ditto.
5707 (V4USI_FTYPE_V4USI): Ditto.
5708 (V8USI_FTYPE_V8USI): Ditto.
5709 (V16USI_FTYPE_V16USI): Ditto.
5710 (V2DF_FTYPE_V2DF_UINT64): Ditto.
5711 (V2DI_FTYPE_V2DF_V2DF): Ditto.
5712 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
5713 (V8DF_FTYPE_V8DF_V8DI): Ditto.
5714 (V4SF_FTYPE_V4SF_UINT64): Ditto.
5715 (V4SI_FTYPE_V4SF_V4SF): Ditto.
5716 (V16SF_FTYPE_V16SF_V16SI): Ditto.
5717 (V64QI_FTYPE_V32HI_V32HI): Ditto.
5718 (V32HI_FTYPE_V16SI_V16SI): Ditto.
5719 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5720 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
5721 (V32HI_FTYPE_V64QI_V64QI): Ditto.
5722 (V32HI_FTYPE_V32HI_V32HI): Ditto.
5723 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5724 (V16SI_FTYPE_V16SI_V4SI): Ditto.
5725 (V16SI_FTYPE_V16SI_V16SI): Ditto.
5726 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5727 (V16SI_FTYPE_V16SI_SI): Ditto.
5728 (V8DI_FTYPE_V8DI_V8DI): Ditto.
5729 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5730 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5731 (V8DI_FTYPE_V8DI_V2DI): Ditto.
5732 (QI_FTYPE_QI): Ditto.
5733 (SI_FTYPE_SI): Ditto.
5734 (DI_FTYPE_DI): Ditto.
5735 (QI_FTYPE_QI_QI): Ditto.
5736 (QI_FTYPE_QI_INT): Ditto.
5737 (HI_FTYPE_HI_INT): Ditto.
5738 (SI_FTYPE_SI_INT): Ditto.
5739 (DI_FTYPE_DI_INT): Ditto.
5740 (HI_FTYPE_V16QI_V16QI): Ditto.
5741 (SI_FTYPE_V32QI_V32QI): Ditto.
5742 (DI_FTYPE_V64QI_V64QI): Ditto.
5743 (QI_FTYPE_V8HI_V8HI): Ditto.
5744 (HI_FTYPE_V16HI_V16HI): Ditto.
5745 (SI_FTYPE_V32HI_V32HI): Ditto.
5746 (QI_FTYPE_V4SI_V4SI): Ditto.
5747 (QI_FTYPE_V8SI_V8SI): Ditto.
5748 (QI_FTYPE_V2DI_V2DI): Ditto.
5749 (QI_FTYPE_V4DI_V4DI): Ditto.
5750 (QI_FTYPE_V8DI_V8DI): Ditto.
5751 (HI_FTYPE_V16SI_V16SI): Ditto.
5752 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5753 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
5754 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
5755 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5756 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5757 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
5758 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
5759 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
5760 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5761 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
5762 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
5763 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
5764 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
5765 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
5766 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5767 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5768 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5769 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5770 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5771 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5772 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5773 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5774 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5775 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5776 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5777 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5778 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5779 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5780 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5781 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5782 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5783 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5784 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5785 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5786 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5787 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5788 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5789 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5790 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5791 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5792 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5793 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5794 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5795 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5796 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5797 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5798 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5799 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5800 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5801 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5802 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5803 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5804 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5805 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5806 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5807 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5808 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5809 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5810 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5811 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5812 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5813 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5814 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5815 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5816 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5817 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5818 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5819 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5820 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5821 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5822 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5823 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5824 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5825 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5826 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5827 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5828 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5829 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5830 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5831 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5832 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5833 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5834 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5835 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5836 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5837 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5838 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5839 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5840 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5841 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5842 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5843 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5844 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5845 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5846 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5847 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5848 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5849 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5850 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5851 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5852 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5853 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5854 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5855 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5856 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5857 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5858 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5859 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5860 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5861 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5862 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5863 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5864 (HI_FTYPE_HI): Ditto.
5865 (HI_FTYPE_V16QI): Ditto.
5866 (SI_FTYPE_V32QI): Ditto.
5867 (DI_FTYPE_V64QI): Ditto.
5868 (QI_FTYPE_V8HI): Ditto.
5869 (HI_FTYPE_V16HI): Ditto.
5870 (SI_FTYPE_V32HI): Ditto.
5871 (QI_FTYPE_V4SI): Ditto.
5872 (QI_FTYPE_V8SI): Ditto.
5873 (HI_FTYPE_V16SI): Ditto.
5874 (QI_FTYPE_V2DI): Ditto.
5875 (QI_FTYPE_V4DI): Ditto.
5876 (QI_FTYPE_V8DI): Ditto.
5877 (V16QI_FTYPE_HI): Ditto.
5878 (V32QI_FTYPE_SI): Ditto.
5879 (V64QI_FTYPE_DI): Ditto.
5880 (V8HI_FTYPE_QI): Ditto.
5881 (V16HI_FTYPE_HI): Ditto.
5882 (V32HI_FTYPE_SI): Ditto.
5883 (V4SI_FTYPE_QI): Ditto.
5884 (V4SI_FTYPE_HI): Ditto.
5885 (V8SI_FTYPE_QI): Ditto.
5886 (V8SI_FTYPE_HI): Ditto.
5887 (V2DI_FTYPE_QI): Ditto.
5888 (V4DI_FTYPE_QI): Ditto.
5889 (HI_FTYPE_HI_HI): Ditto.
5890 (SI_FTYPE_SI_SI): Ditto.
5891 (DI_FTYPE_DI_DI): Ditto.
5892 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5893 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5894 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5895 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5896 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5897 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5898 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5899 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5900 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5901 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5902 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5903 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5904 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5905 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5906 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5907 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5908 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5909 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5910 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5911 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5912 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5913 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5914 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5915 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5916 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5917 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5918 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5919 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5920 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5921 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5922 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5923 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5924 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5925 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5926 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5927 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5928 (V16SI_FTYPE_HI): Ditto.
5929 (V8DI_FTYPE_QI): Ditto.
5930 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5931 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5932 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5933 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5934 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5935 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5936 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5937 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5938 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5939 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5940 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5941 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5942 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5943 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5944 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5945 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5946 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5947 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5948 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5949 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5950 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5951 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5952 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5953 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5954 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5955 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5956 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5957 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5958 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5959 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5960 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5961 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5962 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5963 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5964 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5965 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5966 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5967 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5968 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5969 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5970 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5971 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5972 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5973 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5974 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5975 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5976 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5977 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5978 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5979 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5980 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5981 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5982 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5983 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5984 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5985 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5986 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5987 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5988 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5989 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5990 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5991 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5992 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5993 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5994 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5995 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5996 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5997 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5998 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5999 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6000 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6001 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6002 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6003 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6004 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6005 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6006 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6007 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6008 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6009 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6010 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6011 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6012 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6013 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6014 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6015 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6016 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6017 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6018 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6019 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6020 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6021 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6022 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6023 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6024 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6025 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6026 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6027 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6028 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6029 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6030 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6031 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6032 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6033 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6034 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6035 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6036 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6037 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6038 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6039 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6040 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6041 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6042 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6043 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6044 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6045 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6046 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6047 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6048 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6049 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6050 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6051 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6052 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6053 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6054 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6055 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6056 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6057 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6058 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6059 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6060 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6061 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6062 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6063 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6064 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6065 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6066 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6067 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6068 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6069 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6070 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6071 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6072 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6073 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6074 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6075 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6076 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6077 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6078 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6079 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6080 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6081 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6082 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6083 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6084 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6085 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6086 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6087 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6088 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6089 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6090 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6091 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6092 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6093 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6094 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6095 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6096 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6097 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6098 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6099 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6100 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6101 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6102 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6103 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6104 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6105 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6106 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6107 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6108 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6109 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6110 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6111 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6112 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6113 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6114 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6115 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6116 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6117 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6118 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6119 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6120 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6121 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6122 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6123 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6124 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6125 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6126 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6127 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6128 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6129 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6130 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6131 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6132 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6133 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6134 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6135 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6136 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6137 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6138 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6139 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6140 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6141 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6142 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6143 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6144 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6145 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6146 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6147 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6148 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6149 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6150 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6151 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6152 (QI_FTYPE_V8DF_INT_QI): Ditto.
6153 (QI_FTYPE_V4DF_INT_QI): Ditto.
6154 (QI_FTYPE_V2DF_INT_QI): Ditto.
6155 (HI_FTYPE_V16SF_INT_HI): Ditto.
6156 (QI_FTYPE_V8SF_INT_QI): Ditto.
6157 (QI_FTYPE_V4SF_INT_QI): Ditto.
6158 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6160 2015-07-31 Richard Biener <rguenther@suse.de>
6162 * gimple-fold.c (fold_gimple_assign): Remove folding of
6165 2015-07-31 Tom de Vries <tom@codesourcery.com>
6167 PR tree-optimization/66846
6168 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6169 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6170 (expand_omp_target) [ENABLE_CHECKING]: Same.
6171 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6172 cfun if !LOOPS_NEED_FIXUP.
6173 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6174 that omp_for already has its own loop struct.
6175 * tree-parloops.c (create_phi_for_local_result)
6176 (create_call_for_reduction): Handle simple latch bb.
6177 (create_parallel_loop): Add simple latch bb to preserve
6178 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6179 (gen_parallel_loop): Remove call to cancel_loop_tree.
6180 (parallelize_loops): Skip loops that are inner loops of parallelized
6182 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6183 verify_loop_structure.
6185 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6187 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6188 * config/v850/v850.md (RV_REGNUM): New constants.
6189 * config/v850/v850.c (v850_libcall_value): New functions.
6190 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6191 (TARGET_LIBCALL_VALUE): Define.
6193 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6195 * rtl.h (lowpart_subreg): Move in file.
6196 * loop-iv.c (lowpart_subreg): Move to...
6197 * simplify-rtx.c (lowpart_subreg): ...here.
6198 (simplify_binary_operation_1): Use lowpart_subreg instead of
6199 simplify_gen_subreg.
6200 * expr.c (expand_expr_real_2): Ditto.
6201 * emit-rtl.c (gen_lowpart_common): Ditto.
6202 * combine.c (gen_lowpart_for_combine): Ditto.
6203 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6204 expand_debug_source_expr): Ditto.
6206 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6208 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6209 (expand_builtin_atomic_clear): Remove support for atomic_clear
6212 2015-07-30 Richard Biener <rguenther@suse.de>
6214 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6215 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6216 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6217 redundant operand canonicalization.
6219 2015-07-30 David Sherwood <david.sherwood@arm.com>
6221 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6222 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6223 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6224 * config/arm/arm.c (neon_valid_immediate): Likewise.
6225 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6226 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6227 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6228 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6229 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6230 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6231 * config/i386/sse.md
6232 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6233 (*ssse3_palignr<mode>_perm): Likewise.
6234 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6235 * config/spu/spu.c (arith_immediate_p): Likewise.
6236 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6237 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6239 2015-07-30 Richard Biener <rguenther@suse.de>
6241 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6242 (decision_tree::gen_generic): ... this into ...
6243 (decision_tree::gen): ... this.
6244 (main): Adjust callers.
6246 2015-07-30 Richard Biener <rguenther@suse.de>
6248 * genmatch.c (verbose): New global.
6249 (warning_at): Add overload with source_location.
6250 (capture_info::capture_info): Add bool whether generating gimple
6251 or generic. Add gimple member.
6252 (capture_info::cinfo): Add capture member.
6253 (capture_info::walk_match): Record capture. Warn on
6255 (capture_info::walk_c_expr): Add more fragments captures cannot
6256 escape through. Warn on escaped captures.
6257 (dt_simplify::gen_1): Warn on operands we force to have no
6259 (main): Initialize verbose.
6260 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6262 2015-07-30 Richard Biener <rguenther@suse.de>
6265 * match.pd: Allow both operands to independently have conversion
6266 when simplifying compares of addresses.
6268 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6272 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6273 around those cases that need one.
6275 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6277 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6279 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6281 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6282 New. Copied from config/i386/gnu-user.h.
6283 (ASM_COMMENT_START): Likewise.
6284 (DBX_REGISTER_NUMBER): Likewise.
6286 2015-07-29 Richard Biener <rguenther@suse.de>
6288 * gimple-fold.c (fold_gimple_cond): Remove.
6289 (fold_stmt_1): Do not call it.
6291 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6293 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6294 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6296 * config/aarch64/aarch64-modes.def: Add HFmode.
6298 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6299 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6301 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6302 aarch64_promoted_type): New.
6304 (aarch64_float_const_representable_p): Disable HFmode.
6305 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6306 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6307 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6309 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6310 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6312 * config/aarch64/iterators.md (GPF_F16): New.
6314 2015-07-29 Richard Biener <rguenther@suse.de>
6316 * match.pd: Merge address comparison patterns and make them
6317 handle some more cases.
6319 2015-07-29 Richard Biener <rguenther@suse.de>
6321 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6322 (parser::parse_capture): Add bool argument on whether to reject
6324 (parser::parse_expr): Adjust.
6325 (parser::parse_op): Likewise.
6326 (parser::parse_pattern): Likewise.
6328 2015-07-29 Richard Biener <rguenther@suse.de>
6330 * gimple-fold.c (has_use_on_stmt): New function.
6331 (replace_stmt_with_simplification): Use it to allow
6332 abnormals originally referenced in the stmt.
6333 (fold_stmt_1): Canonicalize operand order.
6335 2015-07-28 David Sherwood <david.sherwood@arm.com>
6337 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6338 GET_MODE_INNER unconditionally.
6339 * config/spu/spu.c (arith_immediate_p): Likewise.
6340 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6341 * expmed.c (synth_mult): Remove check for VOIDmode result from
6343 (expand_mult_const): Likewise.
6344 * fold-const.c (fold_binary_loc): Replace call to element_precision
6345 with call to GET_MODE_PRECISION.
6346 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6348 (emit_mode_inner): Likewise.
6349 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6351 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6352 (GET_MODE_UNIT_PRECISION): Likewise.
6353 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6354 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6355 * stor-layout.c (bitwise_type_for_mode): Update assert.
6356 (element_precision): Remove.
6358 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6360 * target-insns.def (reload_load_address): New targetm instruction
6362 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6364 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6366 * target-insns.def (atomic_test_and_set): New targetm instruction
6368 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6369 HAVE_*/gen_* interface.
6371 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6373 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6375 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6376 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6377 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6378 * rtlanal.c (nonzero_bits1): Likewise.
6379 (num_sign_bit_copies1): Likewise.
6381 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6383 * target-insns.def (eh_return): New targetm instruction pattern.
6384 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6386 * function.c (thread_prologue_and_epilogue_insns): Remove
6387 preprocessor condition.
6389 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6391 * target-insns.def (indirect_jump): New targetm instruction pattern.
6392 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6395 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6397 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6398 instead of nonimmediate_operand. Remove C condiition.
6400 2015-07-28 Richard Biener <rguenther@suse.de>
6402 * match.pd: Add more simplification of address comparisons.
6404 2015-07-28 Richard Biener <rguenther@suse.de>
6406 * match.pd: Re-order two cases in comparison with max/min
6407 value simplification to make it apply for bools.
6409 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6411 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6412 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6413 (aarch64_rtx_costs): Properly strip extend or extract before
6414 passing down to rtx costs again.
6416 2015-07-28 Nick Clifton <nickc@redhat.com>
6418 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6419 Optimizes the case where -mes0 is active and a constant symbolic
6421 * config/rl78/rl78-protos.h: Prototype the new function.
6422 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6424 2015-07-28 Tom de Vries <tom@codesourcery.com>
6426 * tree-parloops.c (reduc_stmt_res): New function.
6427 (initialize_reductions, add_field_for_reduction)
6428 (create_phi_for_local_result, create_loads_for_reductions)
6429 (create_stores_for_reduction, build_new_reduction): Handle case that
6430 reduc_stmt is a phi.
6431 (gather_scalar_reductions): Allow double_reduc reductions.
6433 2015-07-28 Richard Biener <rguenther@suse.de>
6435 * fold-const.c (fold_comparison): Remove equality folding
6436 of decl addresses ...
6437 * match.pd: ... here and merge with existing pattern.
6439 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6441 PR tree-optimization/66828
6442 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6443 from int64_t to uint64_t.
6445 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6447 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6448 as valid only in the error message of the driver, not in the
6449 messages of the language compilers.
6451 2015-07-27 Tom de Vries <tom@codesourcery.com>
6453 * tree-parloops.c (gather_scalar_reductions): Simplify function
6456 2015-07-27 Marek Polacek <polacek@redhat.com>
6458 * ipa-devirt.c (types_same_for_odr): Fix typo.
6460 2015-07-27 Jason Merrill <jason@redhat.com>
6463 * dwarf2out.c (gen_inlined_subroutine_die): Check
6464 cgraph_function_possibly_inlined_p.
6466 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6468 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6469 Place integer variant first.
6470 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6472 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6475 * config/arm/arm-builtins.c (enum arm_builtins):
6476 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6477 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6478 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6479 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6480 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6482 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6485 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6486 Add qualifier_lane_index.
6487 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6488 (arm_getlane_qualifiers): Use qualifier_lane_index.
6489 (arm_lanemac_qualifiers): Rename to...
6490 (arm_mac_n_qualifiers): ...this.
6491 (LANEMAC_QUALIFIERS): Rename to...
6492 (MAC_N_QUALIFIERS): ...this.
6493 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6494 (arm_setlane_qualifiers): Use qualifier_lane_index.
6495 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6496 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6497 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6498 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6500 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6501 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6502 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6503 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6504 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6505 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6506 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6507 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6508 qualifiers to TERNOP_IMM.
6509 (vdup_lane): Change qualifiers to GETLANE.
6510 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6511 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6512 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6513 vqdmlsl_n): Change qualifiers to MAC_N.
6515 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6516 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6517 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6518 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6519 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6520 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6521 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6522 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6523 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6524 Remove call to neon_lane_bounds.
6526 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6528 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6529 Place integer variant first.
6531 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6533 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6534 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6535 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6536 for armv6kz targets.
6537 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6538 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6539 (FL_FOR_ARCH6ZK): Remove.
6540 (FL_FOR_ARCH6KZ): New.
6541 (arm_arch6zk): New declaration.
6542 * config/arm/arm-tables.opt: Regenerate.
6543 * config/arm/arm.c (arm_arch6kz): New.
6544 (arm_option_override): Set arm_arch6kz.
6545 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6546 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6547 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6549 2015-07-27 Marek Polacek <polacek@redhat.com>
6553 * doc/invoke.texi: Document -Wtautological-compare.
6555 2015-07-27 Richard Biener <rguenther@suse.de>
6557 * genmatch.c (decision_tree::gen_gimple): Split out large
6558 subtrees into separate functions.
6559 (decision_tree::gen_generic): Likewise.
6561 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6563 * config/alpha/alpha.c: Use SUBREG_P predicate.
6564 * config/alpha/predicates.md: Ditto.
6566 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6568 * config.host (s390*-*-*): Include driver-native.c only when
6569 building with s390* as host *and* target.
6571 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6574 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6575 T bit register modified_between_p check.
6577 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6579 * config/i386/i386.c: Use SUBREG_P predicate.
6580 * config/i386/i386.md: Ditto.
6581 * config/i386/sse.md: Ditto.
6582 * config/i386/predicates.md: Ditto.
6584 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6587 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6588 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6590 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6592 * Makefile.in: Remove use of TREEBROWSER.
6593 * config.in: Regenerated.
6594 * configure: Regenerated.
6595 * configure.ac: Remove definition of TREEBROWSER.
6596 * tree-browser.c: Removed.
6597 * tree-browser.def: Removed.
6599 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6601 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6602 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6604 (scopdet_basic_block_info): Print when a loop or bb cannot be
6605 represented in Graphite.
6607 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6610 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6611 execution guard when min_size is less than size_needed.
6613 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6615 * doc/install.texi: Document supported versions of ISL.
6617 2015-07-25 Jeff Law <law@redhat.com>
6621 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6622 unable to find X NE 0 in the tables, return X as the simplified
6624 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6625 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6627 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6628 after removing the control flow statement and unnecessary edges.
6630 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6633 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6635 PR rtl-optimization/64164
6636 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6637 * tree-ssa-copyrename.c: Removed.
6638 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6639 -ftree-coalesce-vars.
6640 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6641 * common.opt (ftree-copyrename): Ignore.
6642 (ftree-coalesce-inlined-vars): Likewise.
6643 * doc/invoke.texi: Remove the ignored options above.
6644 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6645 * tree-ssa-coalesce.h: ... here.
6646 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6647 headers required by it.
6648 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6649 across variables when flag_tree_coalesce_vars. Check register
6650 use and promoted modes to allow coalescing. Moved to
6651 tree-ssa-coalesce.c.
6652 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6653 with its member functions to tree-ssa-coalesce.c.
6654 (var_map_base_init): Likewise. Renamed to
6655 compute_samebase_partition_bases.
6656 (partition_view_normal): Drop want_bases parameter.
6657 (partition_view_bitmap): Likewise.
6658 * tree-ssa-live.h: Adjust declarations.
6659 * tree-ssa-coalesce.c: Include explow.h.
6660 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6661 default defs at the entry point.
6662 (dump_part_var_map): New.
6663 (compute_optimized_partition_bases): New, called by...
6664 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6665 of compute_samebase_partition_bases. Adjust.
6666 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6667 * cfgexpand.c (leader_merge): New.
6668 (get_rtl_for_parm_ssa_default_def): New.
6669 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6670 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6671 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6672 redundant MEM attr setting.
6673 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6675 (expand_one_stack_var): ... this. New wrapper to check and
6676 skip already expanded SSA partitions.
6677 (record_alignment_for_reg_var): New, factored out of...
6678 (expand_one_var): ... this.
6679 (expand_one_ssa_partition): New.
6680 (adjust_one_expanded_partition_var): New.
6681 (expand_one_register_var): Check and skip already expanded SSA
6683 (expand_used_vars): Don't create DECLs for anonymous SSA
6684 names. Expand all SSA partitions, then adjust all SSA names.
6685 (pass::execute): Replace the loops that set
6686 SA.partition_to_pseudo from partition leaders and cleared
6687 DECL_RTL for multi-location variables, and that which used to
6688 rename vars and set attrs, with one that clears DECL_RTL and
6689 checks that PARMs and RESULTs default_defs match DECL_RTL.
6690 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6691 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6692 * explow.c (promote_ssa_mode): New.
6693 * explow.h (promote_ssa_mode): Declare.
6694 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6695 * function.c: Include cfgexpand.h.
6696 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6697 (use_register_for_parm_decl): Wrapper for the above to
6698 special-case the result_ptr.
6699 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6700 (split_complex_args): Take assign_parm_data_all argument.
6701 Pass it to rtl_for_parm. Set up rtl and context for split
6703 (assign_parms_augmented_arg_list): Adjust.
6704 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6705 multiple locations. Recognize split complex args.
6706 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6707 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6708 (assign_parm_setup_block): Prefer SSA-assigned location.
6709 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6710 if stack_parm is NULL.
6711 (assign_parm_setup_stack): Prefer SSA-assigned location.
6712 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6713 rtl before testing for pointer bounds. Special-case result_ptr.
6714 (expand_function_start): Maybe reset DECL_RTL of result.
6715 Prefer SSA-assigned location for result and static chain.
6716 Factor out DECL_RESULT and SET_DECL_RTL.
6717 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6718 anonymous SSA names. Use promote_ssa_mode.
6719 (get_temp_reg): Likewise.
6720 (remove_ssa_form): Adjust.
6721 * stor-layout.c (layout_decl): Don't set mem attributes of
6723 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6724 and get its reg_usage for reg invalidation.
6725 (compute_bb_dataflow): Pass it insn.
6726 (emit_notes_in_bb): Likewise.
6728 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6730 * config/i386/i386.c (ix86_va_start): Remove
6731 unneeded !TARGET_64BIT check.
6732 (ix86_gimplify_va_arg): Ditto.
6734 2015-07-24 Tom de Vries <tom@codesourcery.com>
6736 * graphite-sese-to-poly.c (build_poly_scop): Always call
6737 rewrite_commutative_reductions_out_of_ssa.
6739 2015-07-24 Tom de Vries <tom@codesourcery.com>
6741 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6742 flag_associative_math to FLOAT_TYPE_P. Honour
6743 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6745 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6748 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6749 and "%qD" in warning_at instead of "%q+D" in warning.
6751 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6753 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
6754 (ix86_function_abi): Cleanup.
6756 2015-07-24 Michael Darling <darlingm@gmail.com>
6759 * acinclude.m4: Reflects renaming of configure.in to configure.ac
6760 * configure: Likewise
6761 * configure.ac: Likewise
6762 * doc/install.texi: Likewise
6763 * doc/tm.texi: Likewise
6764 * doc/tm.texi.in: Likewise
6766 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6768 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
6769 manually swapping values.
6770 * cse.c (fold_rtx): Likewise.
6771 * lra-eliminations.c (form_sum): Likewise.
6773 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6776 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6777 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6778 (*jcc_1, *jcc_2, jump, simple_return_internal)
6779 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6780 Set length_nobnd attribute instead of length attribute.
6781 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6782 (length_nobnd): Remove attribute.
6783 (length): Remove length_nobnd processing.
6785 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
6787 * gimplify.c (omp_default_clause): New function. Reorganize flow
6788 for clarity. Broken out of ...
6789 (omp_notice_variable): ... here.
6791 2015-07-24 Gary Funck <gary@intrepid.com>
6794 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6795 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6797 2015-07-24 Tom de Vries <tom@codesourcery.com>
6799 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6800 exit-first loop transform.
6802 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6805 * tree-cfg.c (struct replace_decls_d): New struct.
6806 (replace_block_vars_by_duplicates_1): New function.
6807 (replace_block_vars_by_duplicates): Use it to replace the decls
6808 in the value exprs by duplicates.
6810 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6812 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6813 -shared, -symbolic, -rdynamic.
6815 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6818 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6819 -dynamic-linker within %{!static %{!shared, and -rdynamic within
6822 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
6825 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6826 edge summary is available.
6828 2015-07-24 Richard Biener <rguenther@suse.de>
6830 * genmatch.c (struct dt_node): Add statistic fields.
6831 (dt_node::analyze): New method.
6832 (decision_tree::gen_gimple): Call analyze on the root node
6833 and print statistics to stderr.
6834 (decision_tree::gen_generic): Likewise.
6836 2015-07-24 Richard Biener <rguenther@suse.de>
6838 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6839 against the highest or lowest possible integer ...
6840 * match.pd: ... as patterns here.
6842 2015-07-24 Richard Biener <rguenther@suse.de>
6844 * genmatch.c (struct capture_info): Add same_as field.
6845 (capture_info::capture_info): Initialize same_as.
6846 (capture_info::walk_match): Compute same_as.
6847 (capture_info::walk_result): Compute stuff for the leader.
6848 (capture_info::walk_c_expr): Likewise.
6849 (dt_simplify::gen_1): Only look at leaders when deciding
6850 to force no side-effects or emit side-effects of omitted operands.
6852 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6854 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6855 reg note to the GPR -> FPR save instructions.
6857 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6859 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6861 (s390_expand_insv): Don't generate risbg pattern for constant zero
6863 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6864 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
6867 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6869 * config/s390/s390.c (s390_reorg): Clean up handling of processors
6872 (s390_issue_rate): Likewise.
6873 (s390_sched_reorder): Likewise.
6874 (s390_sched_variable_issue): Likewise.
6875 (s390_loop_unroll_adjust): Likewise.
6876 (s390_option_override): Likewise.
6878 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6880 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6881 processor capabilities with -march=native.
6882 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6883 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
6884 (S390_TARGET_BITS_STRING): Macro to simplify specs.
6886 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6888 * config/s390/s390.c (s390_issue_rate): Handle
6889 PROCESSOR_2094_Z9_EC.
6890 (s390_option_override): Likewise.
6891 (s390_adjust_priority): Likewise.
6893 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6895 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6896 when cross compiling.
6898 2015-07-24 Richard Biener <rguenther@suse.de>
6900 * fold-const.c (maybe_canonicalize_comparison_1): Move
6901 A code CST canonicalization ...
6902 * match.pd: ... to a pattern here.
6904 2015-07-24 Jiong Wang <jiong.wang@arm.com>
6907 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6909 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6910 (HONOR_REG_ALLOC_ORDER): Define.
6912 2015-07-24 Richard Biener <rguenther@suse.de>
6914 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6915 * fold-const.c (fold_comparison): Move parameter does not
6916 alias &local simplification ...
6917 * match.pd: ... as a pattern here.
6919 2015-07-24 Richard Biener <rguenther@suse.de>
6921 * gimple-fold.c (replace_stmt_with_simplification): Special-case
6922 valueizing call operands.
6923 * gimple-match-head.c (maybe_push_res_to_seq): Take
6924 number of call arguments from ops array.
6925 (do_valueize): New function.
6926 (gimple_simplify): Return true if valueization changed
6927 any operand even if the result didn't simplify further.
6929 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6932 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6934 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6937 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6939 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6941 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6944 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6946 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6949 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
6951 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6952 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
6954 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6955 ms_va_list_type_node initialization.
6957 2015-07-23 Jeff Law <law@redhat.com>
6960 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6961 unable to find X NE 0 in the tables, return X as the simplified
6963 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6964 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6966 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6967 after removing the control flow statement and unnecessary edges.
6969 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
6971 * tree-pass.h (get_current_pass_name): Removed.
6973 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6975 PR rtl-optimization/64164
6976 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6977 * tree-ssa-copyrename.c: Removed.
6978 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6979 -ftree-coalesce-vars.
6980 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6981 * common.opt (ftree-copyrename): Ignore.
6982 (ftree-coalesce-inlined-vars): Likewise.
6983 * doc/invoke.texi: Remove the ignored options above.
6984 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6985 * tree-ssa-coalesce.h: ... here.
6986 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6987 headers required by it.
6988 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6989 across variables when flag_tree_coalesce_vars. Check register
6990 use and promoted modes to allow coalescing. Moved to
6991 tree-ssa-coalesce.c.
6992 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6993 with its member functions to tree-ssa-coalesce.c.
6994 (var_map_base_init): Likewise. Renamed to
6995 compute_samebase_partition_bases.
6996 (partition_view_normal): Drop want_bases parameter.
6997 (partition_view_bitmap): Likewise.
6998 * tree-ssa-live.h: Adjust declarations.
6999 * tree-ssa-coalesce.c: Include explow.h.
7000 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7001 default defs at the entry point.
7002 (dump_part_var_map): New.
7003 (compute_optimized_partition_bases): New, called by...
7004 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7005 of compute_samebase_partition_bases. Adjust.
7006 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7007 * cfgexpand.c (leader_merge): New.
7008 (get_rtl_for_parm_ssa_default_def): New.
7009 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7010 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7011 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7012 redundant MEM attr setting.
7013 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7015 (expand_one_stack_var): ... this. New wrapper to check and
7016 skip already expanded SSA partitions.
7017 (record_alignment_for_reg_var): New, factored out of...
7018 (expand_one_var): ... this.
7019 (expand_one_ssa_partition): New.
7020 (adjust_one_expanded_partition_var): New.
7021 (expand_one_register_var): Check and skip already expanded SSA
7023 (expand_used_vars): Don't create DECLs for anonymous SSA
7024 names. Expand all SSA partitions, then adjust all SSA names.
7025 (pass::execute): Replace the loops that set
7026 SA.partition_to_pseudo from partition leaders and cleared
7027 DECL_RTL for multi-location variables, and that which used to
7028 rename vars and set attrs, with one that clears DECL_RTL and
7029 checks that PARMs and RESULTs default_defs match DECL_RTL.
7030 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7031 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7032 * explow.c (promote_ssa_mode): New.
7033 * explow.h (promote_ssa_mode): Declare.
7034 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7035 * function.c: Include cfgexpand.h.
7036 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7037 (use_register_for_parm_decl): Wrapper for the above to
7038 special-case the result_ptr.
7039 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7040 (split_complex_args): Take assign_parm_data_all argument.
7041 Pass it to rtl_for_parm. Set up rtl and context for split
7043 (assign_parms_augmented_arg_list): Adjust.
7044 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7045 multiple locations. Recognize split complex args.
7046 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7047 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7048 (assign_parm_setup_block): Prefer SSA-assigned location.
7049 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7050 if stack_parm is NULL.
7051 (assign_parm_setup_stack): Prefer SSA-assigned location.
7052 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7053 rtl before testing for pointer bounds. Special-case result_ptr.
7054 (expand_function_start): Maybe reset DECL_RTL of result.
7055 Prefer SSA-assigned location for result and static chain.
7056 Factor out DECL_RESULT and SET_DECL_RTL.
7057 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7058 anonymous SSA names. Use promote_ssa_mode.
7059 (get_temp_reg): Likewise.
7060 (remove_ssa_form): Adjust.
7061 * stor-layout.c (layout_decl): Don't set mem attributes of
7063 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7064 and get its reg_usage for reg invalidation.
7065 (compute_bb_dataflow): Pass it insn.
7066 (emit_notes_in_bb): Likewise.
7068 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7071 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7073 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7074 (rs6000_emit_2insn_and): Handle dot forms.
7075 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7076 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7077 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7079 2015-07-23 Richard Biener <rguenther@suse.de>
7081 * generic-match-head.c: Include cgraph.h.
7082 * gimple-match-head.c: Likewise.
7083 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7085 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7086 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7089 2015-07-23 Richard Biener <rguenther@suse.de>
7091 * gimple-fold.c (fold_gimple_cond): Do not require folding
7092 results to pass valid_gimple_rhs_p.
7093 * tree-cfg.h (fold_cond_expr_cond): Remove.
7094 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7095 (make_edges): Do not call it.
7096 * tree-inline.c (tree_function_versioning): Likewise.
7098 2015-07-23 Tom de Vries <tom@codesourcery.com>
7100 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7101 vect_force_simple_reduction.
7102 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7103 (vect_is_simple_reduction_1): Add and handle
7104 need_wrapping_integral_overflow parameter.
7105 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7106 need_wrapping_integral_overflow parameter.
7107 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7108 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7111 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7113 PR tree-optimization/66926,66951
7114 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7115 INNER_LOOP and fix up condition for renaming virtual operands.
7117 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7119 * combine.c (try_combine): Use std::swap instead of manually
7122 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7124 * config/mips/i6400.md: New file.
7125 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7126 (mips64r6): Likewise.
7128 * config/mips/mips-tables.opt: Regenerate.
7129 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7130 (mips_issue_rate): Add support for i6400.
7131 (mips_multipass_dfa_lookahead): Likewise.
7132 * config/mips/mips.h (TUNE_I6400): Define.
7133 * config/mips/mips.md: Include i6400.md.
7134 (processor): Add i6400.
7135 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7137 2015-07-23 Richard Biener <rguenther@suse.de>
7140 * match.pd: Guard widen and sign-change comparison simplification
7143 2015-07-23 Richard Biener <rguenther@suse.de>
7145 PR tree-optimization/66945
7146 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7147 ::before_dom_children): Force the propagators idea of
7148 non-executable edges to materialize, not what the folder
7151 2015-07-23 Richard Biener <rguenther@suse.de>
7153 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7154 (gimple_cond_make_true): Use 1 != 0.
7156 2015-07-22 DJ Delorie <dj@redhat.com>
7158 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7161 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7162 (ashrhi3): Likewise.
7163 (lshrhi3): Likewise.
7164 (movhi): Take advantage of zero-extend to load small constants.
7166 (and<mode>3): Likewise.
7167 (zero_extendqihi2): Likewise.
7168 (zero_extendqisi2): New.
7169 * config/msp430/constraints.md (N,O): New.
7170 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7172 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7175 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7176 to enum feature_priority and feature_list.
7177 (fold_builtin_cpu): Add F_AES to enum processor_features
7178 and isa_names_table.
7180 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7183 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7184 for 64bit target only.
7186 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7188 * config/nvptx/nvptx.c: Expand some comments.
7190 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7192 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7193 (cortex_a53_advsimd): ...This.
7195 2015-07-22 Richard Biener <rguenther@suse.de>
7197 * genmatch.c (expr::gen_transform): Clarify error message
7198 and display location.
7200 2015-07-22 Richard Biener <rguenther@suse.de>
7202 * genmatch.c (struct operand): Add location member.
7203 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7205 (struct simplify): Remove match_location and result_location
7207 (elsehwere): Adjust.
7209 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7211 * config/mips/m5100.md: New file.
7212 * config/mips/mips-cpus.def (m5100, m5101): Define.
7213 * config/mips/mips-tables.opt: Regenerate.
7214 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7215 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7216 -march=m5101 to -mips32r5.
7217 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7218 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7220 * config/mips/mips.md: Include m5100.md.
7221 (processor): Add m5100.
7222 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7224 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7226 * config/mips/mips-cpus.def (interaptiv): Define.
7227 * config/mips/mips-tables.opt: Regenerate.
7228 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7230 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7231 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7233 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7236 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7237 (HONOR_REG_ALLOC_ORDER): Define.
7239 2015-07-22 Richard Biener <rguenther@suse.de>
7241 PR tree-optimization/66952
7242 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7243 blocks we end up executing unconditionally reset all SSA
7244 info such as range and alignment.
7245 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7246 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7248 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7250 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7253 2015-07-22 Richard Biener <rguenther@suse.de>
7255 * genmatch.c (parser::parse_result): Properly handle
7256 match with result operands and conditions.
7258 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7261 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7262 Add qualifier_struct_load_store_lane_index.
7263 (aarch64_types_loadstruct_lane_qualifiers): Use
7264 qualifier_struct_load_store_lane_index for lane index argument for
7266 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7267 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7268 (aarch64_simd_expand_args): Add new argument describing mode of
7269 builtin. Check lane bounds for arguments with
7270 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7271 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7272 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7273 (aarch64_simd_expand_builtin): Handle arguments with
7274 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7275 aarch64_simd_expand_args.
7276 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7277 vst[234]_lane with BUILTIN_VALLDIF.
7278 * config/aarch64/aarch64-simd.md:
7279 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7280 endianness reversal on lane index.
7281 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7282 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7283 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7284 (vec_store_lanesci_lane<mode>): Ditto.
7285 (vec_store_lanesxi_lane<mode>): Ditto.
7286 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7287 reversal of lane index.
7288 (aarch64_ld3_lane<mode>): Ditto.
7289 (aarch64_ld4_lane<mode>): Ditto.
7290 (aarch64_st2_lane<mode>): Ditto.
7291 (aarch64_st3_lane<mode>): Ditto.
7292 (aarch64_st4_lane<mode>): Ditto.
7293 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7294 to qmode. Add new mode parameter. Update uses.
7295 (__LD3_LANE_FUNC): Ditto.
7296 (__LD4_LANE_FUNC): Ditto.
7297 (__ST2_LANE_FUNC): Ditto.
7298 (__ST3_LANE_FUNC): Ditto.
7299 (__ST4_LANE_FUNC): Ditto.
7301 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7303 * doc/invoke.texi (Language Independent Options): Rename node to
7304 Diagnostic Message Formatting Options.
7306 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7309 * lra-remat.c (operand_to_remat): Prevent using insns with input
7310 subregs processed separately by IRA.
7312 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7314 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7316 (single_imm_use): Check for iterator node.
7317 (num_imm_uses): Likewise.
7318 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7319 (single_imm_use_1): Check for iterator node.
7321 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7322 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7324 * configure.ac: Add check for new options in isl-0.15.
7325 * config.in, configure: Rebuilt.
7326 * graphite-blocking.c: Include <isl/constraint.h>
7327 * graphite-interchange.c, graphite-poly.c: Likewise.
7328 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7329 * graphite.c: Likewise.
7330 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7332 * graphite-dependences.c: Include <isl/constraint.h>.
7333 (max_number_of_out_dimensions): Returns isl_stat.
7334 (extend_schedule_1): Likewise
7335 (extend_schedule): Corresponding changes.
7336 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7338 (getSingleMap): Change return type of isl_stat.
7339 (optimize_isl): Conditionally use
7340 isl_options_set_schedule_serialize_sccs.
7341 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7342 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7344 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7347 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7348 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7350 2015-07-21 Richard Biener <rguenther@suse.de>
7352 PR tree-optimization/66948
7353 * genmatch.c (capture_info::walk_match): Also recurse to
7354 captures. Properly compute expr state from captures of
7356 * match.pd: Add single-use guards to
7357 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7359 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7361 * config/nvptx/mkoffload.c (process): Add static destructor call.
7363 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7366 * match.pd (A - B -> A + (-B)): Don't allow folding
7367 when type if a fixed-point type.
7369 2015-07-20 DJ Delorie <dj@redhat.com>
7371 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7372 (iorqi3_real): Likewise for set1.
7374 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7376 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7379 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7381 * graphite-isl-ast-to-gimple.c:
7382 Refactor so that each function can access 'region'. This will help
7383 maintain a parameter rename_map within a region.
7385 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7387 * config/rs6000/rs6000.md (*lt0_disi): New.
7389 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7392 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7393 "available letters" comment.
7394 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7395 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7396 and_2rld_operand): Delete.
7397 (and_operand): Adjust.
7398 (rotate_mask_operator): New.
7399 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7400 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7401 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7402 extract_ME): Delete.
7403 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7404 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7405 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7406 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7407 rs6000_emit_2insn_and): New.
7408 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7409 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7410 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7411 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7412 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7413 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7414 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7415 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7416 rs6000_emit_2insn_and): New.
7417 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7418 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7420 <NOT>: Don't fall through to next case.
7421 <AND>: Handle the various rotate-and-mask cases directly.
7422 <IOR>: Always cost as one insn.
7423 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7424 (and<mode>3): Adjust expander for the new patterns.
7425 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7426 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7427 (*and<mode>3_imm_dot_shifted): New.
7428 (*and<mode>3_mask): Delete, rewrite as ...
7429 (and<mode>3_mask): ... New.
7430 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7431 (andsi3_internal0_nomc): Delete.
7432 (*andsi3_internal6): Delete.
7433 (*and<mode>3_2insn): New.
7434 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7435 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7436 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7437 *insvdi_internal3): Delete.
7438 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7439 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7440 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7441 *ior<mode>_mask): New.
7442 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7443 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7444 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7445 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7447 (ashr<mode>3): Delete expander.
7448 (*ashr<mode>3): Rename to ...
7449 (ashr<mode>3): ... This.
7450 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7451 (*rotldi3_internal4, *rotldi3_internal5 and split,
7452 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7453 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7454 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7455 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7456 (splitter for loading a mask): Adjust.
7457 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7459 2015-07-20 Marek Polacek <polacek@redhat.com>
7461 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7462 output_add_clobbers, output_added_clobbers_hard_reg_p,
7463 gen_rtx_scratch): Remove declarations.
7465 2015-07-20 Marek Polacek <polacek@redhat.com>
7468 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7470 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7472 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7473 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7475 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7477 * combine.c (combine_simplify_rtx): Move simplification step
7478 before various transformations/substitutions.
7480 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7482 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7483 (struct int_traits): Likewise.
7485 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7487 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7488 function to vmsdbgout_function_decl.
7490 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7493 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7494 from misaligned positions.
7495 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7497 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7501 * Makefile.in: Removed omega.o.
7502 * common.opt: Document flag fcheck-data-deps as deprecated.
7503 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7504 its associated params: omega-max-vars, omega-max-geqs,
7505 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7506 omega-max-keys, omega-eliminate-redundant-constraints.
7507 * doc/loop.texi: Remove all the section on Omega.
7508 * graphite-blocking.c: Include missing params.h: it used to be
7509 included through tree-data-ref.h and omega.h.
7510 * graphite-isl-ast-to-gimple.c: Same.
7511 * graphite-optimize-isl.c: Same.
7512 * graphite-sese-to-poly.c: Same.
7516 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7517 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7518 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7519 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7520 * passes.def: Remove pass_check_data_deps.
7521 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7522 (dump_conflict_function): Same.
7523 (dump_subscript): Same.
7524 (print_direction_vector): Same.
7525 (print_dir_vectors): Same.
7526 (print_lambda_vector): Same.
7527 (print_dist_vectors): Same.
7528 (dump_data_dependence_relation): Same.
7529 (dump_data_dependence_relations): Same.
7530 (dump_dist_dir_vectors): Same.
7532 (init_omega_eq_with_af): Removed.
7533 (omega_extract_distance_vectors): Removed.
7534 (omega_setup_subscript): Removed.
7535 (init_omega_for_ddr_1): Removed.
7536 (init_omega_for_ddr): Removed.
7537 (ddr_consistent_p): Removed.
7538 (compute_affine_dependence): Do not use omega to check data
7540 (compute_data_dependences_for_bb): Removed.
7541 (analyze_all_data_dependences): Removed.
7542 (tree_check_data_deps): Removed.
7543 * tree-data-ref.h: Do not include omega.h.
7544 (compute_data_dependences_for_bb): Removed.
7545 (tree_check_data_deps): Removed.
7546 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7547 (make_pass_check_data_deps): Removed.
7548 * tree-ssa-phiopt.c: Include params.h.
7549 * tree-vect-data-refs.c: Same.
7550 * tree-vect-slp.c: Same.
7552 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7554 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7555 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7556 (mem->fpreg splitters): Ditto.
7557 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7558 Disable DFmode for TARGET_64BIT.
7560 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7563 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7566 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7568 * config/nvptx/mkoffload.c (process): Constify host data.
7569 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7571 (generate_host_descr_file): Likewise.
7573 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7574 Sebastian Pop <s.pop@samsung.com>
7577 * graphite-dependences.c (add_pdr_constraints): Renamed
7578 pdr->extent to pdr->subscript_sizes.
7579 * graphite-interchange.c (build_linearized_memory_access): Add
7580 back all gcc_assert's that the "isl_int to isl_val conversion"
7581 patch has removed. Refactored.
7582 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7583 * graphite-poly.c (new_poly_dr): Same.
7584 (free_poly_dr): Same.
7585 * graphite-poly.h (struct poly_dr): Same.
7586 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7587 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7588 * graphite-scop-detection.h: Fix space.
7589 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7590 back all gcc_assert's removed by a previous patch.
7591 (wrap): Remove the_isl_ctx global variable that the same patch has
7593 (build_loop_iteration_domains): Same.
7594 (add_param_constraints): Same.
7595 (pdr_add_data_dimensions): Same. Refactored.
7596 (build_poly_dr): Renamed extent to subscript_sizes.
7598 2015-07-17 Marek Polacek <polacek@redhat.com>
7600 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7601 * match.pd: ... here.
7603 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7605 * config/nvptx/mkoffload.c (process): Constify target data.
7606 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7607 Constify target data.
7608 (generate_target_offloadend_file): Likewise.
7610 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7612 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7613 to allow renaming of PHI arguments on edges incoming from outer
7614 loop header, add corresponding check before start PHI iterator.
7615 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7616 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7617 with true force_vectorize. Set-up dominator for outer loop too.
7618 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7619 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7620 was marked with force_vectorize and has restricted cfg.
7621 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7623 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7624 do peeling for outer loops.
7626 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7627 Matthias Klose <doko@ubuntu.com>
7629 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7630 build-sysroot, sysroot from the `Miscenalleous configure options' to
7631 the `Directories' section and strip trailing `/' from with_sysroot.
7632 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7633 * configure: Regenerated.
7635 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7638 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7639 (TARGET_HARD_DF_REGS): Ditto.
7640 (TARGET_HARD_XF_REGS): Ditto.
7641 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7642 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7643 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7644 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7645 (*movsf_internal): Add alternatives 16 and 17. Enable
7646 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7648 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7650 PR rtl-optimization/66891
7651 * calls.c (expand_call): Wrap precompute_register_parameters with
7652 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7654 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7656 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7657 Define target data struct and initialize it.
7659 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7661 PR rtl-optimization/66626
7662 * ira.h (emit-rtl.h): Include.
7663 (non_spilled_static_chain_regno_p): New.
7664 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7665 unless it is non spilled static chain pseudo.
7666 (assign_hard_rego): Spill memory profitable allocno unless it is
7667 non spilled static chain pseudo.
7668 (allocno_spill_priority_compare): Put non spilled static chain
7669 pseudo at the end of sorted array.
7670 (improve_allocation): Do nothing if we have static chain and
7672 (allocno__priority_compare_func): Put non spilled static chain
7673 pseudo at the beginning of sorted array.
7674 (move_spill_restore): Ignore non spilled static chain pseudo.
7675 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7676 to non spilled static chain pseudo.
7677 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
7678 pseudo at the beginning of sorted array.
7679 (spill_for): Spill non spilled static chain pseudo last.
7680 * lra-constraints.c (lra_constraints): Remove static chain pseudo
7681 check for equivalence.
7683 2015-07-16 Martin Liska <mliska@suse.cz>
7686 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
7687 dst_ctx if it does not exist.
7689 2015-07-16 Martin Liska <mliska@suse.cz>
7691 * hash-set.h (remove): New function.
7692 (iterator): New iteration class for hash_set.
7694 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7696 * genattrtab.c (make_canonical): Add a file_location parameter.
7697 Use fatal_at rather than fatal.
7698 (get_attr_value): Likewise. Update call to make_canonical.
7699 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
7700 (make_internal_attr): Update calls accordingly.
7702 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7704 * read-md.h (message_with_line, error_with_line): Delete.
7705 * read-md.c (message_with_line, error_with_line): Delete.
7706 * gensupport.h: Include read-md.h.
7707 (md_rtx_info): New structure.
7708 (read_md_rtx): Use it. Return a bool success value.
7709 * gensupport.c (read_md_rtx): Likewise.
7710 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
7711 (main): Update after interface changes.
7712 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
7713 (main): Update after interface changes.
7714 * genattrtab.c (insn_code_number): Delete.
7715 (optimize_attrs): Add a max_insn_code parameter and use it instead
7716 of insn_code_number.
7717 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
7718 Use *_at rather than *_with_line functions.
7719 (gen_insn): Likewise.
7720 (gen_delay): Likewise.
7721 (gen_insn_reserv): Likewise.
7722 (gen_bypass): Take an md_rtx_info rather than an rtx.
7723 (main): Update after interface changes. Use a local max_insn_code
7724 variable instead of insn_code_number.
7725 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7726 an rtx. Use fatal_at rather than fatal.
7727 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7728 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7729 (gen_absence_set, gen_final_absence_set, gen_automaton)
7730 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7731 (main): Update after interface changes.
7732 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7734 (main): Update after interface changes.
7735 * genconditions.c (main): Use new read_md_rtx interface.
7736 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7737 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7738 (main): Update after interface changes.
7739 * genemit.c (insn_code_number, insn_index_number): Delete.
7740 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7741 Use fatal_at rather than fatal.
7742 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
7744 (gen_split): Likewise.
7745 (main): Update after interface changes.
7746 * genextract.c (line_no): Delete.
7747 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7748 Update call to walk_rtx.
7749 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
7750 rather than message_with_line.
7751 (walk_rtx): Add an md_rtx_info argument. Update call to
7752 VEC_safe_set_locstr.
7753 (main): Update after interface changes.
7754 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
7755 and lineno. Use error_at rather than separate message_with_line
7756 calls and have_error assignments.
7757 (main): Update after interface changes.
7758 * genmddump.c (main): Use new read_md_rtx interface.
7759 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
7760 (main): Update after interface changes.
7761 * genoutput.c (next_code_number): Delete.
7762 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7763 (gen_peephole, gen_expand, gen_split): Likewise.
7764 (note_constraint): Likewise. Use *_at rather than *_with_line
7766 (main): Update after interface changes.
7767 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
7769 (main): Update after interface changes.
7770 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
7771 than an rtx and lineno.
7772 (process_define_constraint): Likewise.
7773 (process_define_register_constraint): Likewise.
7774 (main): Update after interface changes.
7775 * genrecog.c (next_insn_code, pattern_lineno): Delete.
7776 (validate_pattern): Replace top-level rtx with an md_rtx_info.
7777 Use *_at rather than *_with_line functions.
7778 (match_pattern_2): Likewise.
7779 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7780 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7781 Use *_at rather than *_with_line functions.
7782 * gentarget-def.c (add_insn): New function.
7783 (main): Use it. Use new read_md_rtx interface.
7785 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7787 * gensupport.h (compute_test_codes): Take a file_location rather
7789 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
7790 rather than *_with_line functions.
7791 (process_define_predicate): Update call to compute_test_codes.
7792 * genpreds.c (validate_exp): Take a file_location rather than a
7793 line number. Use *_at functions rather than *_with_line functions.
7794 (process_define_predicate): Update call to validate_exp.
7795 (constraint_data): Replace lineno field with a file_location.
7796 (add_constraint): Take a file_location rather than a line number.
7797 Use *_at functions rather than *_with_line functions. Fix error
7798 message for address constraints. Update after changes to
7799 validate_exp, constraint_data and compute_test_codes.
7800 (process_define_constraint): Update accordingly.
7801 (process_define_register_constraint): Likewise.
7803 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7805 * genoutput.c (data): Use a file_location to record the source
7808 (idata, idata_end): Remove initialization.
7809 (constraint_data): Replace lineno with a file_location.
7810 (output_insn_data): Update after changes to data.
7811 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7812 (scan_operands): Likewise, using *_at rather than *_with_line
7814 (process_template): Likewise.
7815 (validate_insn_alternatives): Likewise.
7816 (validate_insn_operands): Likewise.
7817 (validate_optab_operands): Likewise.
7818 (init_insn_for_nothing): Initialize idata and idata_end.
7819 (note_constraint): Update after changes to constraint_data,
7820 using at rather than with_line functions.
7821 (mdep_constraint_len): Take a file_location rather than a
7822 line number. Use at rather than with_line functions.
7824 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7826 * read-md.h (fatal_at): Declare.
7827 * read-md.c (fatal_at): New function.
7828 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7829 to record the source position.
7830 (check_attr_test): Take a file_location instead of a line number.
7831 Use fatal_at instead of fatal.
7832 (check_attr_value): Update after above changes, using "at"
7833 rather than "with_line" reporting functions.
7834 (convert_set_attr_alternative): Likewise.
7835 (gen_attr): Likewise.
7836 (check_defs): Likewise. Don't assign to read_md_filename.
7837 (gen_insn): Update initialization after above changes.
7838 (gen_delay): Likewise.
7839 (write_insn_cases): Print the filename for a define_peephole.
7840 (gen_insn_reserv): Take a line number as argument and update
7841 the call to check_attr_test.
7842 (main): Pass a line number to gen_insn_reserv.
7844 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7846 * read-md.h (file_location): New structure.
7847 (directive_handler_t): Take a file_location rather than a line number.
7848 (message_at, error_at): Declare.
7849 (read_skip_construct): Delete.
7850 * read-md.c (message_with_line_1): Replace with...
7851 (message_at_1): ...this new function.
7852 (message_at, error_at): New functions.
7853 (message_with_line, error_with_line): Update to use message_at_1.
7854 (handle_enum): Take a file_location rather than a line number
7855 and use error_at for error reporting.
7856 (handle_include): Likewise.
7857 (read_skip_construct): Likewise. Make static.
7858 (handle_file): Update after above changes. Pass a file_location
7859 rather than a line number to handle_directive.
7860 * gensupport.c (queue_elem): Replace separate filename and lineno
7861 with a file_location.
7862 (queue_pattern): Replace filename and lineno arguments with a
7863 file_location. Update after change to queue_elem.
7864 (process_define_predicate): Replace lineno argument with a
7865 file_location and use error_at for error reporting. Update
7866 after above changes.
7867 (process_rtx): Likewise.
7868 (subst_pattern_match): Likewise.
7869 (get_alternatives_number): Likewise.
7870 (alter_predicate_for_insn): Likewise.
7871 (rtx_handle_directive): Likewise.
7872 (is_predicable): Update after above changes, using error_at rather
7873 than error_with_line.
7874 (has_subst_attribute): Likewise.
7875 (identify_predicable_attribute): Likewise.
7876 (alter_attrs_for_subst_insn): Likewise.
7877 (process_one_cond_exec): Likewise.
7878 (process_substs_on_one_elem): Likewise.
7879 (process_define_subst): Likewise.
7880 (check_define_attr_duplicates): Likewise.
7881 (read_md_rtx): Update after change to queue_elem.
7883 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7885 * genoutput.c (next_index_number): Delete.
7886 (data): Remove index_number.
7887 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7888 (main): Remove manipulation of next_index_number.
7890 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7892 * genattrtab.c (check_attr_value): Remove handling of null attrs.
7893 (make_canonical): Likewise.
7895 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
7897 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7898 instead of adjust_address_nv.
7899 (restore_stack_nonlocal): Likewise.
7900 (nonlocal_goto): Likewise.
7902 2015-07-16 Tom de Vries <tom@codesourcery.com>
7904 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7905 not have a corresponding loop header phi.
7907 2015-07-16 Tom de Vries <tom@codesourcery.com>
7909 * tree-parloops.c (create_loads_for_reductions): Handle case that
7910 reduction is unused.
7912 2015-07-16 Richard Biener <rguenther@suse.de>
7914 PR tree-optimization/66894
7915 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7916 about deriving NE_EXPR from truncated values.
7918 2015-07-16 Martin Liska <mliska@suse.cz>
7921 (object_allocator): Add new class.
7922 (pool_allocator::initialize): Use the underlying class.
7923 (pool_allocator::allocate): Likewise.
7924 (pool_allocator::remove): Likewise.
7925 (operator new): A new generic allocator.
7926 * asan.c (struct asan_mem_ref): Remove unused members.
7927 (asan_mem_ref_new): Replace new operator with
7928 object_allocator::allocate.
7929 (free_mem_ref_resources): Change deallocation.
7930 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7931 with object_allocator.
7932 * config/sh/sh.c (add_constant): Replace new operator with
7933 object_allocator::allocate.
7934 (sh_reorg): Change call to a release method.
7935 * cselib.c (struct elt_list): Remove unused members.
7936 (new_elt_list): Replace new operator with
7937 object_allocator::allocate.
7938 (new_elt_loc_list): Likewise.
7939 (new_cselib_val): Likewise.
7940 (unchain_one_elt_list): Change delete operator with remove method.
7941 (unchain_one_elt_loc_list): Likewise.
7942 (unchain_one_value): Likewise.
7943 (cselib_finish): Release newly added static allocators.
7944 * cselib.h (struct cselib_val): Remove unused members.
7945 (struct elt_loc_list): Likewise.
7946 * df-problems.c (df_chain_alloc): Replace pool_allocator with
7948 * df-scan.c (struct df_scan_problem_data): Likewise.
7949 (df_scan_alloc): Likewise.
7950 * df.h (struct dataflow): Likewise.
7951 * dse.c (struct read_info_type): Likewise.
7952 (struct insn_info_type): Likewise.
7953 (struct dse_bb_info_type): Likewise.
7954 (struct group_info): Likewise.
7955 (struct deferred_change): Likewise.
7956 (get_group_info): Likewise.
7957 (delete_dead_store_insn): Likewise.
7958 (free_read_records): Likewise.
7959 (replace_read): Likewise.
7960 (check_mem_read_rtx): Likewise.
7961 (scan_insn): Likewise.
7962 (dse_step1): Likewise.
7963 (dse_step7): Likewise.
7964 * et-forest.c (struct et_occ): Remove unused members.
7965 (et_new_occ): Use allocate instead of new operator.
7966 (et_new_tree): Likewise.
7967 (et_free_tree): Call release method explicitly.
7968 (et_free_tree_force): Likewise.
7969 (et_free_pools): Likewise.
7970 (et_split): Use remove instead of delete operator.
7971 * et-forest.h (struct et_node): Remove unused members.
7972 * ipa-cp.c: Change pool_allocator to object_allocator.
7973 * ipa-inline-analysis.c: Likewise.
7974 * ipa-profile.c: Likewise.
7975 * ipa-prop.c: Likewise.
7976 * ipa-prop.h: Likewise.
7977 * ira-build.c (initiate_cost_vectors): Cast return value.
7978 (ira_allocate_cost_vector): Likewise.
7979 * ira-color.c (struct update_cost_record): Remove unused members.
7980 * lra-int.h (struct lra_live_range): Likewise.
7981 (struct lra_copy): Likewise.
7982 (struct lra_insn_reg): Likewise.
7983 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7984 * lra.c (new_insn_reg): Replace new operator with allocate method.
7985 (free_insn_regs): Same for operator delete.
7986 (finish_insn_regs): Release new static allocator.
7987 (finish_insn_recog_data): Likewise.
7988 (lra_free_copies): Replace delete operator with remove method.
7989 (lra_create_copy): Replace operator new with allocate method.
7990 (invalidate_insn_data_regno_info): Same for remove method.
7991 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7992 (free_debug_insn_changes): Replace delete operator with remove method.
7993 (replace_oldest_value_reg): Replace operator new with allocate method.
7994 (pass_cprop_hardreg::execute): Release new static variable.
7995 * sched-deps.c (sched_deps_init): Change pool_allocator to
7997 * sel-sched-ir.c: Likewise.
7998 * sel-sched-ir.h: Likewise.
7999 * stmt.c (expand_case): Likewise.
8000 (expand_sjlj_dispatch_table): Likewise.
8001 * tree-sra.c (struct access): Remove unused members.
8002 (struct assign_link): Likewise.
8003 (sra_deinitialize): Release newly added static pools.
8004 (create_access_1):Replace operator new with allocate method.
8005 (build_accesses_from_assign): Likewise.
8006 (create_artificial_child_access): Likewise.
8007 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8008 pool_allocator to object_allocator.
8009 * tree-ssa-pre.c: Likewise.
8010 * tree-ssa-reassoc.c: Likewise.
8011 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8012 * tree-ssa-strlen.c: Likewise.
8013 * tree-ssa-structalias.c: Likewise.
8014 * var-tracking.c (onepart_pool_allocate): New function.
8015 (unshare_variable): Use the newly added function.
8016 (variable_merge_over_cur): Likewise.
8017 (variable_from_dropped): Likewise.
8018 (variable_was_changed): Likewise.
8019 (set_slot_part): Likewise.
8020 (emit_notes_for_differences_1): Likewise.
8021 (vt_finalize): Release newly added static pools.
8023 2015-07-16 Martin Jambor <mjambor@suse.cz>
8025 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8026 all uses. Fix two typos in its general comment.
8027 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8029 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8031 * config/i386/linux-common.h (LINK_MPX): New.
8032 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8033 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8034 indicating '-z bndplt' support by linker.
8035 * configure: Regenerate.
8036 * config.in: Regenerate.
8038 2015-07-16 Richard Biener <rguenther@suse.de>
8040 * fold-const.c (fold_widened_comparison): Remove.
8041 (fold_sign_changed_comparison): Likewise.
8042 (fold_comparison): Move widened and sign-changed comparison
8044 * match.pd: ... to patterns here.
8045 * generic-match-head.c: Include target.h.
8046 * gimple-match-head.c: Likewise.
8048 2015-07-16 Richard Biener <rguenther@suse.de>
8050 * tree-ssa-dom.c (dom_valueize): New function.
8051 (record_temporary_equivalences): Also record equivalences
8052 for dominating stmts that have uses of equivalences we are
8055 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8057 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8058 add_autoinc_candidates.
8059 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8060 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8061 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8062 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8064 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8065 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8066 Remove parameter struct iv*. Call add_autoinc_candidates here.
8067 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8068 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8070 (find_iv_candidates): Call new functions.
8072 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8074 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8075 uninitialized-variable warning.
8077 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8080 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8081 when the destination is R0.
8083 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8086 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8087 * config/i386/i386.c (ix86_expand_pextr): New function.
8088 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8089 for non-lowpart subregs.
8090 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8091 (insv<mode>): Use SWI248 mode iterator.
8092 (insv<mode>_1): Ditto.
8094 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8095 Sebastian Pop <s.pop@samsung.com>
8097 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8098 iterator to use_stmt.
8100 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8101 Sebastian Pop <s.pop@samsung.com>
8103 * graphite-scop-detection.c (build_scops_1): Discard scops for
8106 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8107 Sebastian Pop <s.pop@samsung.com>
8109 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8110 case of a return statement in scop.
8112 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8113 Sebastian Pop <s.pop@samsung.com>
8115 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8116 INTEGER_TYPE parameters.
8117 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8118 VECTOR_CST in scan_tree_for_params.
8119 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8121 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8123 * gimple-pretty-print.h: Don't include pretty-print.h.
8124 * tree-streamer.h: Don't include lto-streamer.h.
8125 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8126 * gimple-streamer-in.c: Remove redundant includes.
8127 * gimple-streamer-out.c: Likewise.
8128 * ipa-devirt.c: Likewise.
8129 * ipa-icf.c: Likewise.
8130 * ipa-inline-analysis.c: Likewise.
8131 * ipa-polymorphic-call.c: Likewise.
8132 * ipa-profile.c: Likewise.
8133 * ipa-prop.c: Likewise.
8134 * ipa-pure-const.c: Likewise.
8135 * lto-cgraph.c: Likewise.
8136 * lto-streamer-in.c: Likewise.
8137 * lto-streamer-out.c: Likewise.
8138 * lto-streamer.c: Likewise.
8139 * tree-streamer-in.c: Likewise.
8140 * tree-streamer-out.c: Likewise.
8141 * tree-streamer.c: Likewise.
8143 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8145 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8147 * opts.c: Remove multiline #include comment.
8149 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8151 * config/nvptx/mkoffload.c (process): Add C++ protection to
8154 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8157 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8158 null before IEEE 128-bit floating point support patch.
8160 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8162 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8163 for (!c) != {0,...,0} ? a : b for vector modes.
8165 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8166 Martin Jambor <mjambor@suse.cz>
8168 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8169 struct func_body_info* instead of struct ipa_node_params*, expecting
8170 fbi->info to be filled in. Replace throughout. Adjust call to
8171 ipa_load_from_parm_agg.
8172 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8173 instead of struct ipa_node_params*. Adjust calls to other functions
8174 so that they pass either fbi or fbi->info.
8175 (set_switch_stmt_execution_predicate): Likewise.
8176 (will_be_nonconstant_predicate): Likewise.
8177 (compute_bb_predicates): Likewise.
8178 (estimate_function_body_sizes): Move asserts earlier. Fill in
8179 struct func_body_info, replace parms_info with fbi.info. Adjust
8180 calls to functions that now accept struct func_body_info.
8181 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8182 (struct func_body_info): Likewise.
8183 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8184 remove static. Adjust callers.
8185 (ipa_load_from_parm_agg): Remove.
8186 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8187 (func_body_info): Likewise.
8188 (ipa_load_from_parm_agg): Adjust prototype.
8190 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8192 * gensupport.c (rtx_handle_directive): Adjust.
8193 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8194 instead of expr list rtx.
8195 (add_define_attr_for_define_subst): Likewise.
8196 (add_define_subst_attr): Likewise.
8197 (read_subst_mapping): Likewise.
8198 (read_rtx): Likewise.
8199 * rtl.h (read_rtx): Adjust.
8201 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8203 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8205 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8208 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8209 (*tls_local_dynamic_base_64_<mode>): Ditto.
8210 (*tls_local_dynamic_base_64_largepic): Ditto.
8211 (tls_global_dynamic_64_<mode>): Update expander pattern.
8212 (tls_local_dynamic_base_64_<mode>): Ditto.
8214 2015-07-15 Richard Biener <rguenther@suse.de>
8216 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8217 and bool_var == 1 -> bool_var simplifications ...
8218 * match.pd: ... to patterns here. Factor out negate_expr_p
8219 cases from the A - B -> A + (-B) patterns as negate_expr_p
8220 predicate and add a -(A + B) -> (-B) - A pattern.
8222 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8224 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8226 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8227 Robert Suchanek <robert.suchanek@imgtec.com>
8229 * config/mips/mips.c (mips_int_mask): New enum.
8230 (mips_shadow_set): Likewise.
8231 (int_mask): New variable.
8232 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8233 (machine_function): Add int_mask and use_shadow_register_set.
8234 (mips_attribute_table): Add attribute handlers for interrupt and
8235 use_shadow_register_set.
8236 (mips_interrupt_mask): New static function.
8237 (mips_handle_interrupt_attr): Likewise.
8238 (mips_handle_use_shadow_register_set_attr): Likewise.
8239 (mips_use_shadow_register_set): Change return type to enum
8240 mips_shadow_set. Add argument handling for use_shadow_register_set
8242 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8243 compare with mips_shadow_set enum.
8244 (mips_compute_frame_info): Add interrupt mask and
8245 use_shadow_register_set to per-function information structure.
8246 Add a stack slot for EPC unconditionally.
8247 (mips_expand_prologue): Compare use_shadow_register_set value
8248 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8249 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8250 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8251 copying the stack pointer from the shadow register set.
8252 * config/mips/mips.h (SR_IM0): New define.
8253 * config/mips/mips.md (mips_rdpgpr): Rename to...
8254 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8255 * doc/extend.texi (Declaring Attributes of Functions): Document
8256 optional arguments for interrupt and use_shadow_register_set
8259 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8261 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8262 interrupt attribute.
8263 (mips_expand_prologue): Disable the floating point unit in an ISR.
8264 * config/mips/mips.h (SR_COP1): New define.
8266 2015-07-15 Richard Biener <rguenther@suse.de>
8268 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8269 to tell how many tokens to peek ahead (default 1).
8270 (parser::eat_token, parser::eat_ident): Return token consumed.
8271 (parser::parse_result): Parse new switch statement.
8272 * match.pd: Use case statements where appropriate.
8274 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8276 PR rtl-optimization/58066
8277 * calls.c (expand_call): Precompute register parameters before stack
8278 alignment is performed.
8280 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8282 PR rtl-optimization/66838
8283 * postreload.c (reload_cse_move2add): Also process
8284 CALL_INSN_FUNCTION_USAGE when resetting information of
8285 call-clobbered registers.
8287 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8288 Cesar Philippidis <cesar@codesourcery.com>
8289 Chung-Lin Tang <cltang@codesourcery.com>
8291 * config/nios2/constraints.md (U, v): New constraints.
8292 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8293 (ldstex_memory_operand): New.
8294 * config/nios2/sync.md: New file.
8295 * config/nios2/nios2.md (unspecv): Add new builtin function
8297 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8298 (top-level): Include sync.md.
8299 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8301 (N2_BUILTINS): Add arch field setting, add new builtins.
8302 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8304 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8305 Also handle ldex/stex/ldsex/stsex builtins.
8306 (nios2_expand_rdprs_builtin): New function.
8307 (nios2_expand_cache_builtin): New function.
8308 (nios2_expand_wrpie_builtin): New function.
8309 (nios2_expand_eni_builtin): New function.
8310 (nios2_expand_builtin): Add arch field handling and new builtin
8312 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8314 * doc/md.texi (Machine Constraints): Document U and v constraints.
8316 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8317 Cesar Philippidis <cesar@codesourcery.com>
8318 Chung-Lin Tang <cltang@codesourcery.com>
8320 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8321 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8322 callee_save_reg_size and uses_anonymous_args fields.
8323 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8324 (nios2_create_cfa_notes): New function.
8325 (nios2_adjust_stack): New function for adjusting stack.
8326 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8327 Use nios2_adjust_stack.
8328 (nios2_expand_epilogue): Likewise.
8329 (nios2_expand_return): New function.
8330 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8331 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8332 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8333 * config/nios2/nios2.md (return): Use nios2_expand_return.
8335 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8336 Cesar Philippidis <cesar@codesourcery.com>
8337 Chung-Lin Tang <cltang@codesourcery.com>
8339 * config/nios2/predicates.md (pop_operation): New.
8340 (ldwm_operation, stwm_operation): New.
8341 (nios2_hard_register_operand): New.
8342 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8343 (ldstwm_operation_p): Declare.
8344 (gen_ldstwm_peep): Declare.
8345 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8346 (base_reg_adjustment_p): New.
8347 (pop_operation_p): New.
8348 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8349 (nios2_ldstwm_regset_p): New.
8350 (ldstwm_operation_p): New.
8352 (nios2_ldst_parallel): New.
8353 (struct ldswm_operand): Declare.
8354 (compare_ldstwm_operands): New.
8355 (can_use_cdx_ldstw): New.
8356 (gen_ldstwm_peep): New.
8357 * config/nios2/nios2-ldstwm.sml: New.
8358 * config/nios2/nios2.md: Include ldstwm.md.
8359 * config/nios2/ldstwm.md: Generated.
8361 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8362 Cesar Philippidis <cesar@codesourcery.com>
8363 Chung-Lin Tang <cltang@codesourcery.com>
8365 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8366 (REG_ALLOC_ORDER): Define.
8367 (ADJUST_REG_ALLOC_ORDER): Define.
8368 (HONOR_REG_ALLOC_ORDER): Define.
8369 (CDX_REG_P): Define.
8370 (ANDCLEAR_INT): Define.
8371 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8372 (nios2_label_align): Declare.
8373 (nios2_cdx_narrow_form_p): Declare.
8374 (nios2_adjust_reg_alloc_order): Declare.
8375 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8377 (nios2_large_unspec_reloc_p): New function, split from...
8378 (nios2_legitimate_pic_operand_p): ...here.
8379 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8380 (nios2_print_operand_punct_valid_p): New.
8381 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8382 (split_mem_address): New.
8383 (split_alu_insn): New.
8385 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8386 (enum nios2_add_insn_kind): New.
8387 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8388 (nios2_add_insn_classify): New.
8389 (nios2_add_insn_asm): New.
8390 (nios2_cdx_narrow_form_p): New.
8391 (label_align, min_labelno, max_labelno): New.
8393 (nios2_label_align): New.
8394 (nios2_adjust_reg_alloc_order): New.
8395 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8396 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8397 * config/nios2/constraints.md (P): New constraint.
8398 * config/nios2/predicates.md (const_and_operand): New.
8400 (stack_memory_operand): New.
8401 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8402 (length): Update to use nios2_cdx_narrow_form_p().
8403 (type): Add new insn type values.
8404 (control, alu, st, ld, shift): Update insn reservations with
8405 new insn type values.
8406 (*high, *lo_sum): Define new insn patterns for constant generation.
8407 (movqi_internal, movhi_internal, movsi_internal): Reduce
8408 alternatives, update asm template to handle CDX variants, update
8410 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8411 template, update type attributes.
8412 (extendhisi2, extendqi<mode>2): Likewise.
8413 (addsi3): Change to use function for asm string.
8414 (subsi3): Add CDX notation to asm template, update type attributes.
8415 (negsi3, one_cmplsi3): Likewise.
8416 (andsi3): New pattern, specialized from logical patterns.
8417 (<code>si3): Remove and case, combine alternatives, update asm
8419 (<shift_op>si3): Add CDX notation, update type attributes.
8420 (rotrsi3): Update type attribute.
8421 (*merge, extzv, insv): New insn patterns.
8422 (return): Change to define_expand.
8423 (simple_return): Add CDX notation, update type attributes.
8424 (indirect_jump): Add CDX notation.
8425 (jump): Update asm cases, update length attribute expression.
8426 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8427 (nios2_cbranch): Update asm cases and length attribute expression
8428 to handle CDX variants.
8429 (nios2_cmp<code>): Update asm template.
8430 (nop): Add CDX notation, update type attributes.
8431 (trap): Add CDX notation.
8432 (ctrapsi4): Update asm cases and length attribute expression to
8434 * doc/md.texi (Machine Constraints): Document P constraint.
8436 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8437 Cesar Philippidis <cesar@codesourcery.com>
8438 Chung-Lin Tang <cltang@codesourcery.com>
8440 * config/nios2/nios2.h (SMALL_INT12): New macro.
8441 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8442 (nios2_valid_addr_expr_p): Use it.
8443 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8444 with implicit "io" instructions on R2.
8445 * config/nios2/constraints.md (w): New constraint.
8446 * config/nios2/predicates.md (ldstio_memory_operand): New.
8447 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8448 operand predicate and constraint.
8449 (ld<bh>io_signed, st<bhw>io>): Likewise.
8450 * doc/md.texi (Machine Constraints): Document w constraint.
8452 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8453 Cesar Philippidis <cesar@codesourcery.com>
8454 Chung-Lin Tang <cltang@codesourcery.com>
8456 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8457 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8458 Nios II architecture level.
8459 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8460 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8461 (OPTION_DEFAULT_SPECS): Define.
8462 (ASM_SPEC): Add -march= spec strings.
8463 * config/nios2/nios2.c (nios2_option_override): Check for
8464 conflicts involving new options.
8465 * config.gcc (nios2*-*-*): Support --with-arch=.
8466 * doc/invoke.texi (Option Summary, Nios II Options): Document
8467 -march=, -mbmx, and -mcdx.
8469 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8471 PR rtl-optimization/66626
8472 * lra-constraints.c (lra_constraints): Prevent equivalence
8473 substitution for static chain pseudo in functions with nonlocal
8476 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8478 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8479 (nios2_emit_stack_limit_check): Add size parameter. Handle
8480 -fstack-limit-symbol as well as -fstack-limit-register.
8481 (nios2_expand_prologue): Emit only a single stack limit check,
8482 even if multiple stack adjustments are required.
8483 (nios2_option_override): Diagnose unsupported combination of -fpic
8484 and -stack-limit-symbol.
8486 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8488 * Makefile.in (top_srcdir): New.
8489 * configure.ac: Use AM_ZLIB.
8490 * configure: Regeneated.
8492 2015-07-14 Matthias Klose <doko@ubuntu.com>
8495 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8497 2015-07-14 Richard Biener <rguenther@suse.de>
8499 PR tree-optimization/66863
8500 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8501 what we record for conversion use stmt lhs inequalities.
8503 2015-07-14 Richard Biener <rguenther@suse.de>
8505 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8506 (decision_tree::gen_gimple): Likewise.
8508 2015-07-14 Tom de Vries <tom@codesourcery.com>
8510 * gcc.c (greater_than_spec_func): Declare forward.
8511 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8512 -ftree-parallelize-loops={0,1}.
8513 (static_spec_functions): Add greater_than_spec_func function with name
8515 (greater_than_spec_func): New function.
8517 2015-07-14 Richard Biener <rguenther@suse.de>
8519 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8520 wideing type conversion case from record_equivalences_from_incoming_edge
8521 and use record_equality to record equivalences.
8522 (record_equivalences_from_incoming_edge): Call
8523 record_temporary_equivalences.
8525 2015-07-14 Richard Biener <rguenther@suse.de>
8527 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8528 (struct if_expr): New.
8529 (struct with_expr): Likewise.
8530 (is_a_helper): Add helpers for if_expr and with_expr.
8531 (struct simplify): Add simplify_kind enum and member. Remove
8533 (simplify::simplify): Adjust.
8534 (lower_commutative): Adjust.
8535 (lower_opt_convert): Likewise.
8536 (lower_cond): Likewise.
8537 (replace_id): Handle with_expr and if_expr.
8538 (lower_for): Adjust.
8539 (dt_simplify::gen_1): New recursive worker, split out from ...
8540 (dt_simplify::gen): ... here. Deal with if and with expansion
8542 (capture_info::capture_info): Take context argument
8543 (capture_info::walk_result): Only analyze specific result.
8544 (parser::parse_result): New function.
8545 (parser::parse_simplify): Adjust to parse ifs with then end
8547 (parser::parse_if): Simplify.
8548 (parser::parse_pattern): Pass down simplify kind.
8549 * match.pd: Convert if structure to new syntax.
8551 2015-07-13 Marek Polacek <polacek@redhat.com>
8553 * rtl.c (rtx_equal_p_cb): Fix typo.
8555 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8557 * omega.h: Don't include config.h, don't include params.h again if
8558 omega.h has already been included.
8559 * graphite-poly.h: Include sese.h.
8560 * graphite.c: Don't include sese.h, remove needless includes and
8561 minimize includes outside #ifdef HAVE_isl block.
8562 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8563 and wrap entire file in #ifdef HAVE_isl
8564 * graphite-dependences.c: Likewise.
8565 * graphite-interchange.c: Likewise.
8566 * graphite-isl-ast-to-gimple.c: Likewise.
8567 * graphite-optimize-isl.c: Likewise.
8568 * graphite-poly.c: Likewise.
8569 * graphite-scop-detection.c: Likewise.
8570 * graphite-sese-to-poly.c: Likewise.
8572 2015-07-13 Tom de Vries <tom@codesourcery.com>
8574 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8576 2015-07-13 Renlin Li <renlin.li@arm.com>
8579 * simplify-rtx.c (simplify_const_relational_operation): Add
8580 side_effects_p checks.
8582 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8584 * bitmap.h: Fix double word typos.
8587 * cfgloopmanip.c: Same.
8590 * cgraphclones.c: Same.
8592 * config/aarch64/aarch64-protos.h: Same.
8593 * config/aarch64/aarch64.c: Same.
8594 * config/aarch64/aarch64.md: Same.
8595 * config/arm/arm.md: Same.
8596 * config/arm/arm1020e.md: Same.
8597 * config/arm/arm1026ejs.md: Same.
8598 * config/arm/arm926ejs.md: Same.
8599 * config/arm/fa526.md: Same.
8600 * config/arm/fa606te.md: Same.
8601 * config/arm/fa626te.md: Same.
8602 * config/arm/fa726te.md: Same.
8603 * config/arm/fmp626.md: Same.
8604 * config/darwin.c: Same.
8605 * config/epiphany/epiphany.c: Same.
8606 * config/frv/frv.c: Same.
8607 * config/ft32/ft32.c: Same.
8608 * config/gnu-user.h: Same.
8609 * config/h8300/constraints.md: Same.
8610 * config/i386/i386.c: Same.
8611 * config/i386/i386.md: Same.
8612 * config/iq2000/iq2000.md: Same.
8613 * config/mips/mips.c: Same.
8614 * config/mmix/mmix.md: Same.
8615 * config/moxie/moxie.c: Same.
8616 * config/nds32/nds32.md: Same.
8617 * config/pa/pa.h: Same.
8618 * config/rs6000/aix.h: Same.
8619 * config/rs6000/rs6000.h: Same.
8620 * config/sh/sh.c: Same.
8621 * config/tilegx/tilegx.md: Same.
8622 * config/tilepro/gen-mul-tables.cc: Same.
8625 * doc/invoke.texi: Same.
8627 * dwarf2out.c: Same.
8632 * hash-table.h: Same.
8633 * internal-fn.c: Same.
8635 * ipa-devirt.c: Same.
8638 * ipa-profile.c: Same.
8643 * reg-stack.c: Same.
8649 * tree-inline.c: Same.
8651 * tree-ssa-dom.c: Same.
8652 * tree-ssa-loop-ivopts.c: Same.
8653 * tree-ssa-structalias.c: Same.
8654 * tree-ssa-tail-merge.c: Same.
8655 * tree-ssa-ter.c: Same.
8656 * tree-ssa-threadupdate.c: Same.
8657 * tree-ssa-uninit.c: Same.
8658 * tree-ssanames.c: Same.
8659 * tree-vect-loop-manip.c: Same.
8665 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8668 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8669 tree_ssa_phiopt_worker): Call it.
8671 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8673 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8674 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8677 2015-07-11 Marek Polacek <polacek@redhat.com>
8680 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
8681 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
8682 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
8683 rather than bb_has_abnormal_call_pred.
8684 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
8685 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
8686 rather than bb_has_abnormal_call_pred.
8688 2015-07-10 Anatoly Sokolov <aesok@post.ru>
8690 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8691 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
8692 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8693 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
8694 v850_legitimate_address_p): New functions.
8695 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8697 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
8700 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
8701 indirect sibcall with register arguments if register available
8702 for argument passing.
8703 (init_cumulative_args): Set cfun->machine->arg_reg_available
8704 to (cum->nregs > 0) or to true if function has a variable
8706 (function_arg_advance_32): Set cfun->machine->arg_reg_available
8707 to false if cum->nregs <= 0.
8708 * config/i386/i386.h (machine_function): Add arg_reg_available.
8710 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8712 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
8713 and gen_higpart instead of gen_rtx_SUBREG.
8714 * config/i386/i386.md
8715 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
8716 (read-modify peephole2): Use gen_lowpart instead of
8717 gen_rtx_SUBREG for operand 5.
8719 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8721 * config/tilepro/gen-mul-tables.cc (main): Change include list for
8723 * config/tilepro/mul-tables.c: Regenerate.
8724 * config/tilegx/mul-tables.c: Regenerate.
8726 2015-07-10 Richard Biener <rguenther@suse.de>
8728 * fold-const.c (distribute_bit_expr): Remove.
8729 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8730 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8731 to A & (B | C) and simplifying A << C1 << C2 to ...
8732 * match.pd: ... patterns here.
8734 2015-07-10 Jiong Wang <jiong.wang@arm.com>
8736 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8737 Mark mem as READONLY and NOTRAP for PIC symbol.
8739 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8741 * gimple-predict.h: New file.
8742 (gimple_predict_predictor, gimple_predict_set_predictor,
8743 gimple_predict_outcome, gimple_predict_set_outcome,
8744 gimple_build_predict): Relocate here.
8745 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8746 gimple_predict_outcome, gimple_predict_set_outcome): Move to
8748 * gimple.c (gimple_build_predict): Move to gimple-predict.h
8749 * basic-block.h: Don't include cfghooks.h.
8750 * backend.h: Don't include predict.h.
8751 * cfghooks.h: Include predict.h.
8752 * gimple-pretty-print.c: Include gimple-predict.h.
8753 * gimplify.c: Likwise.
8754 * predict.c: Adjust includes.
8755 * tree-inline.c: Likewise.
8757 * auto-inc-dec.c: Likewise.
8758 * auto-profile.c: Likewise.
8759 * bb-reorder.c: Likewise.
8760 * builtins.c: Likewise.
8761 * caller-save.c: Likewise.
8762 * calls.c: Likewise.
8763 * cfganal.c: Likewise.
8764 * cfgbuild.c: Likewise.
8766 * cfgcleanup.c: Likewise.
8767 * cfgexpand.c: Likewise.
8768 * cfghooks.c: Likewise.
8769 * cfgloopanal.c: Likewise.
8770 * cfgloop.c: Likewise.
8771 * cfgloopmanip.c: Likewise.
8772 * cfgrtl.c: Likewise.
8773 * cgraph.c: Likewise.
8774 * cgraphunit.c: Likewise.
8775 * combine.c: Likewise.
8776 * cprop.c: Likewise.
8779 * dojump.c: Likewise.
8781 * except.c: Likewise.
8782 * expmed.c: Likewise.
8784 * final.c: Likewise.
8785 * fold-const.c: Likewise.
8786 * function.c: Likewise.
8787 * fwprop.c: Likewise.
8788 * gcc-plugin.h: Likewise.
8790 * genattrtab.c: Likewise.
8791 * genemit.c: Likewise.
8792 * gengtype.c: Likewise.
8793 * genopinit.c: Likewise.
8794 * genoutput.c: Likewise.
8795 * genpreds.c: Likewise.
8796 * genrecog.c: Likewise.
8797 * gimple-fold.c: Likewise.
8798 * gimple-iterator.c: Likewise.
8799 * gimple-ssa-isolate-paths.c: Likewise.
8800 * gimple-ssa-strength-reduction.c: Likewise.
8801 * graph.c: Likewise.
8802 * graphite-blocking.c: Likewise.
8803 * graphite.c: Likewise.
8804 * graphite-dependences.c: Likewise.
8805 * graphite-interchange.c: Likewise.
8806 * graphite-isl-ast-to-gimple.c: Likewise.
8807 * graphite-optimize-isl.c: Likewise.
8808 * graphite-poly.c: Likewise.
8809 * graphite-scop-detection.c: Likewise.
8810 * graphite-sese-to-poly.c: Likewise.
8811 * haifa-sched.c: Likewise.
8812 * ifcvt.c: Likewise.
8813 * internal-fn.c: Likewise.
8814 * ipa-cp.c: Likewise.
8815 * ipa-profile.c: Likewise.
8816 * ipa-split.c: Likewise.
8817 * ipa-utils.c: Likewise.
8818 * ira-build.c: Likewise.
8819 * ira-color.c: Likewise.
8820 * ira-conflicts.c: Likewise.
8821 * ira-costs.c: Likewise.
8822 * ira-emit.c: Likewise.
8823 * ira-lives.c: Likewise.
8825 * loop-doloop.c: Likewise.
8826 * loop-init.c: Likewise.
8827 * loop-invariant.c: Likewise.
8828 * loop-unroll.c: Likewise.
8829 * lower-subreg.c: Likewise.
8830 * lra-assigns.c: Likewise.
8832 * lra-coalesce.c: Likewise.
8833 * lra-constraints.c: Likewise.
8834 * lra-lives.c: Likewise.
8835 * lto-cgraph.c: Likewise.
8836 * lto-streamer-in.c: Likewise.
8837 * mode-switching.c: Likewise.
8838 * modulo-sched.c: Likewise.
8839 * omp-low.c: Likewise.
8840 * optabs.c: Likewise.
8841 * passes.c: Likewise.
8842 * postreload.c: Likewise.
8843 * postreload-gcse.c: Likewise.
8844 * profile.c: Likewise.
8845 * recog.c: Likewise.
8846 * regstat.c: Likewise.
8847 * reload1.c: Likewise.
8848 * reorg.c: Likewise.
8849 * rtlanal.c: Likewise.
8850 * sched-ebb.c: Likewise.
8851 * sel-sched-ir.c: Likewise.
8853 * shrink-wrap.c: Likewise.
8854 * simplify-rtx.c: Likewise.
8856 * store-motion.c: Likewise.
8857 * tracer.c: Likewise.
8858 * trans-mem.c: Likewise.
8859 * tree-call-cdce.c: Likewise.
8860 * tree-cfg.c: Likewise.
8861 * tree-cfgcleanup.c: Likewise.
8862 * tree-chkp.c: Likewise.
8863 * tree-complex.c: Likewise.
8864 * tree-eh.c: Likewise.
8865 * tree-if-conv.c: Likewise.
8866 * tree-loop-distribution.c: Likewise.
8867 * tree-outof-ssa.c: Likewise.
8868 * tree-parloops.c: Likewise.
8869 * tree-predcom.c: Likewise.
8870 * tree-pretty-print.c: Likewise.
8871 * tree-profile.c: Likewise.
8872 * tree-sra.c: Likewise.
8873 * tree-ssa.c: Likewise.
8874 * tree-ssa-coalesce.c: Likewise.
8875 * tree-ssa-dce.c: Likewise.
8876 * tree-ssa-dom.c: Likewise.
8877 * tree-ssa-forwprop.c: Likewise.
8878 * tree-ssa-ifcombine.c: Likewise.
8879 * tree-ssa-loop-ch.c: Likewise.
8880 * tree-ssa-loop-im.c: Likewise.
8881 * tree-ssa-loop-ivcanon.c: Likewise.
8882 * tree-ssa-loop-ivopts.c: Likewise.
8883 * tree-ssa-loop-manip.c: Likewise.
8884 * tree-ssa-loop-prefetch.c: Likewise.
8885 * tree-ssa-loop-unswitch.c: Likewise.
8886 * tree-ssa-math-opts.c: Likewise.
8887 * tree-ssa-phiopt.c: Likewise.
8888 * tree-ssa-pre.c: Likewise.
8889 * tree-ssa-reassoc.c: Likewise.
8890 * tree-ssa-sink.c: Likewise.
8891 * tree-ssa-tail-merge.c: Likewise.
8892 * tree-ssa-threadedge.c: Likewise.
8893 * tree-ssa-threadupdate.c: Likewise.
8894 * tree-switch-conversion.c: Likewise.
8895 * tree-tailcall.c: Likewise.
8896 * tree-vect-data-refs.c: Likewise.
8897 * tree-vect-loop.c: Likewise.
8898 * tree-vect-loop-manip.c: Likewise.
8899 * tree-vectorizer.c: Likewise.
8900 * tree-vrp.c: Likewise.
8901 * ubsan.c: Likewise.
8902 * value-prof.c: Likewise.
8903 * varasm.c: Likewise.
8904 * var-tracking.c: Likewise.
8905 * config/aarch64/aarch64-builtins.c: Likewise.
8906 * config/aarch64/aarch64.c: Likewise.
8907 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8908 * config/alpha/alpha.c: Likewise.
8909 * config/arc/arc.c: Likewise.
8910 * config/arm/arm.c: Likewise.
8911 * config/avr/avr.c: Likewise.
8912 * config/bfin/bfin.c: Likewise.
8913 * config/c6x/c6x.c: Likewise.
8914 * config/cr16/cr16.c: Likewise.
8915 * config/cris/cris.c: Likewise.
8916 * config/darwin.c: Likewise.
8917 * config/darwin-c.c: Likewise.
8918 * config/epiphany/epiphany.c: Likewise.
8919 * config/epiphany/mode-switch-use.c: Likewise.
8920 * config/epiphany/resolve-sw-modes.c: Likewise.
8921 * config/fr30/fr30.c: Likewise.
8922 * config/frv/frv.c: Likewise.
8923 * config/ft32/ft32.c: Likewise.
8924 * config/h8300/h8300.c: Likewise.
8925 * config/i386/i386.c: Likewise.
8926 * config/i386/winnt.c: Likewise.
8927 * config/ia64/ia64.c: Likewise.
8928 * config/iq2000/iq2000.c: Likewise.
8929 * config/lm32/lm32.c: Likewise.
8930 * config/m32c/m32c.c: Likewise.
8931 * config/m32r/m32r.c: Likewise.
8932 * config/m68k/m68k.c: Likewise.
8933 * config/mcore/mcore.c: Likewise.
8934 * config/mep/mep.c: Likewise.
8935 * config/microblaze/microblaze.c: Likewise.
8936 * config/mips/mips.c: Likewise.
8937 * config/mmix/mmix.c: Likewise.
8938 * config/mn10300/mn10300.c: Likewise.
8939 * config/moxie/moxie.c: Likewise.
8940 * config/msp430/msp430.c: Likewise.
8941 * config/nds32/nds32.c: Likewise.
8942 * config/nds32/nds32-cost.c: Likewise.
8943 * config/nds32/nds32-fp-as-gp.c: Likewise.
8944 * config/nds32/nds32-intrinsic.c: Likewise.
8945 * config/nds32/nds32-isr.c: Likewise.
8946 * config/nds32/nds32-md-auxiliary.c: Likewise.
8947 * config/nds32/nds32-memory-manipulation.c: Likewise.
8948 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8949 * config/nds32/nds32-predicates.c: Likewise.
8950 * config/nios2/nios2.c: Likewise.
8951 * config/nvptx/nvptx.c: Likewise.
8952 * config/pa/pa.c: Likewise.
8953 * config/pdp11/pdp11.c: Likewise.
8954 * config/rl78/rl78.c: Likewise.
8955 * config/rs6000/rs6000.c: Likewise.
8956 * config/rx/rx.c: Likewise.
8957 * config/s390/s390.c: Likewise.
8958 * config/sh/sh.c: Likewise.
8959 * config/sh/sh-mem.cc: Likewise.
8960 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8961 * config/sh/sh_treg_combine.cc: Likewise.
8962 * config/sparc/sparc.c: Likewise.
8963 * config/spu/spu.c: Likewise.
8964 * config/stormy16/stormy16.c: Likewise.
8965 * config/tilegx/tilegx.c: Likewise.
8966 * config/tilepro/tilepro.c: Likewise.
8967 * config/v850/v850.c: Likewise.
8968 * config/vax/vax.c: Likewise.
8969 * config/visium/visium.c: Likewise.
8970 * config/xtensa/xtensa.c: Likewise.
8972 2015-07-10 Richard Biener <rguenther@suse.de>
8974 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8975 (decision_tree::gen_gimple): Likewise.
8976 (decision_tree::gen_generic): Likewise.
8978 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8981 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8982 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8984 2015-07-10 Jakub Jelinek <jakub@redhat.com>
8987 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8988 or ORT_TASK contexts.
8989 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8992 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8994 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8997 2015-07-10 Tom de Vries <tom@codesourcery.com>
8999 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9000 insert nit + 1 bound.
9002 2015-07-10 Richard Biener <rguenther@suse.de>
9004 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9005 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9006 (if_convertible_loop_p_1): For this always compute bb predicates.
9007 (if_convertible_loop_p): And free them.
9009 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9011 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9014 2015-07-10 Richard Biener <rguenther@suse.de>
9016 PR tree-optimization/66823
9017 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9020 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9022 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9023 to handle mips[32|64]r3 and mips[32|64]r5.
9025 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9028 * tree-nested.c (get_static_chain): Or in a flag into
9029 info->static_chain_added.
9030 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9031 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9033 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9034 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9037 PR tree-optimization/66718
9038 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9040 (vect_simd_lane_linear): New function.
9041 (vectorizable_simd_clone_call): Support using linear arguments for
9042 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9044 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9047 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9049 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9051 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9052 Use machine mode, not enum machine_mode in the prototype.
9054 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9055 classify 128-bit floating point support.
9056 (FLOAT128_IBM_P): Likewise.
9057 (FLOAT128_VECTOR_P): Likewise.
9058 (FLOAT128_2REG_P): Likewise.
9059 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9060 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9061 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9062 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9064 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9065 tests against TFmode/TDmode, since those modes do not use VSX
9067 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9069 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9070 tests against TFmode, etc.
9071 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9072 (reg_offset_addressing_ok_p): Likewise.
9073 (rs6000_legitimate_offset_address_p): Likewise.
9074 (rs6000_legitimize_address): Likewise.
9075 (rs6000_legitimize_reload_address): Likewise.
9076 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9077 TDmode to use the new helper macros, which will include IFmode and
9079 (rs6000_emit_move): Likewise.
9080 (rs6000_darwin64_record_arg_recurse): Likewise.
9081 (print_operand): Likewise.
9082 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9083 that uses a single vector register as a vector and not as a
9084 floating point register in terms of the calling sequence.
9085 (rs6000_discover_homogeneous_aggregate): Likewise.
9086 (rs6000_return_in_memory): Likewise.
9087 (init_cumulative_args): Likewise.
9088 (rs6000_function_arg_boundary): Likewise.
9089 (rs6000_function_arg_advance_1): Likewise.
9090 (rs6000_function_arg): Likewise.
9091 (rs6000_pass_by_reference): Likewise.
9092 (rs6000_gimplify_va_arg): Likewise.
9093 (rs6000_secondary_reload_memory): Use machine_mode not enum
9095 (rs6000_split_multireg_move): Use new helper macros.
9096 (spe_func_has_64bit_regs_p): Likewise.
9097 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9098 (output_toc): Use new helper macros.
9099 (rs6000_register_move_cost): Likewise.
9100 (rs6000_function_value): Add IEEE 128-bit floating point calling
9102 (rs6000_libcall_value): Likewise.
9103 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9104 floating point support.
9105 (rs6000_vector_mode_supported_p): Likewise.
9107 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9109 PR rtl-optimization/66782
9110 * lra-int.h (struct lra_insn_recog_data): Add comment about
9111 clobbered hard regs for arg_hard_regs.
9112 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9113 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9114 Add condition for processing used hard regs.
9115 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9116 Process clobbered hard regs.
9118 2015-07-09 Michael Matz <matz@suse.de>
9120 * genmatch.c (fprintf_indent): New function.
9121 (operand::gen_transform): Add indent parameter.
9122 (expr::gen_transform, c_expr::gen_transform,
9123 capture::gen_transform): Ditto and use fprintf_indent.
9124 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9125 (dt_operand::gen, dt_operand::gen_predicate,
9126 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9127 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9128 (decision_tree::gen_gimple): Adjust calls and indent generated
9130 (decision_tree::gen_generic): Ditto.
9131 (write_predicate): Ditto.
9133 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9136 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9137 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9138 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9139 {GENERAL,SSE,MMX}_REG_P where appropriate.
9141 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9143 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9144 * builtins.c: Adjust includes.
9145 * gimple.c: Likewise.
9146 * ipa-icf.c: Likewise.
9147 * lto-opts.c: Likewise.
9148 * ipa-reference.c: Likewise.
9149 * lto-section-out.c: Likewise.
9150 * lto-streamer-in.c: Likewise.
9151 * lto-streamer-out.c: Likewise.
9152 * opts-global.c: Likewise.
9153 * symtab.c: Likewise.
9154 * tree-chkp.c: Likewise.
9155 * tree-ssa-live.c: Likewise.
9156 * tree-streamer-in.c: Likewise.
9157 * tree-streamer-out.c: Likewise.
9158 * config/darwin.c: Likewise.
9159 * config/i386/winnt.c: Likewise.
9161 2015-07-09 Richard Biener <rguenther@suse.de>
9163 * genmatch.c (struct expr): Add force_single_use flag.
9164 (expr::expr): Add copy constructor.
9165 (capture_info::walk_match): Gather force_single_use captures.
9166 (expr::gen_transform): Use possibly NULLified sequence.
9167 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9168 seq if any constrained expr is not single-use.
9169 (parser::parse_expr): Refactor to allow multiple flags. Handle
9170 's' flag to force an expression have a single-use if the pattern
9171 simplifies to more than one statement.
9172 * match.pd: Convert most single_use conditionals to :s flags.
9174 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9176 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9177 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9178 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9180 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9182 * flags.h: Don't include flag-types.h or options.h.
9183 * opts-common.c: Adjust includes.
9184 * opts-global.c: Likewise.
9185 * common/config/epiphany/epiphany-common.c: Likewise.
9187 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9190 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9193 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9196 * config/i386/i386.c (ix86_return_in_memory): Return true
9197 if int_size_in_bytes returns negative for IA MCU.
9199 2015-07-09 Marek Polacek <polacek@redhat.com>
9201 PR tree-optimization/66718
9202 * Makefile.in (OBJS): Add gimple-laddress.o.
9203 * passes.def: Schedule pass_laddress.
9204 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9205 * tree-pass.h (make_pass_laddress): Declare.
9206 * gimple-laddress.c: New file.
9208 2015-07-09 Richard Biener <rguenther@suse.de>
9210 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9212 2015-07-09 Richard Biener <rguenther@suse.de>
9214 PR tree-optimization/66807
9215 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9217 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9219 * function.c (stack_protect_epilogue): Use if rather than switch for
9220 check targetm.have_stack_protect_test.
9222 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9224 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9225 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9226 * config/arc/arc.h: Likewise.
9227 * config/arm/arm.h: Likewise.
9228 * config/bfin/bfin.h: Likewise.
9229 * config/epiphany/epiphany.h: Likewise.
9230 * config/frv/frv.h: Likewise.
9231 * config/ia64/ia64.h: Likewise.
9232 * config/iq2000/iq2000.h: Likewise.
9233 * config/lm32/lm32.h: Likewise.
9234 * config/m32r/m32r.h: Likewise.
9235 * config/mcore/mcore.h: Likewise.
9236 * config/mep/mep.h: Likewise.
9237 * config/microblaze/microblaze.h: Likewise.
9238 * config/mips/mips.h: Likewise.
9239 * config/mmix/mmix.h: Likewise.
9240 * config/mn10300/mn10300.h: Likewise.
9241 * config/nds32/nds32.h: Likewise.
9242 * config/nios2/nios2.h: Likewise.
9243 * config/pa/pa.h: Likewise.
9244 * config/rl78/rl78.h: Likewise.
9245 * config/sh/sh.h: Likewise.
9246 * config/sparc/sparc.h: Likewise.
9247 * config/stormy16/stormy16.h: Likewise.
9248 * config/tilegx/tilegx.h: Likewise.
9249 * config/tilepro/tilepro.h: Likewise.
9250 * config/v850/v850.h: Likewise.
9251 * config/xtensa/xtensa.h: Likewise.
9252 * doc/tm.texi: Regenerate.
9253 * doc/tm.texi.in: Adjust.
9254 * combine.c (simplify_set): Likewise.
9255 (simplify_comparison): Likewise.
9256 * expr.c (store_constructor): Likewise.
9257 * internal-fn.c (expand_arith_overflow): Likewise.
9258 * reload.c (push_reload): Likewise.
9259 (find_reloads): Likewise.
9260 (find_reloads_subreg_address): Likewise.
9261 * reload1.c (eliminate_regs_1): Likewise.
9262 * rtlanal.c (nonzero_bits1): Likewise.
9263 (num_sign_bit_copies1): Likewise.
9264 * simplify-rtx.c (simplify_truncation): Likewise.
9266 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9268 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9269 of AUTO_INC_DEC with the preprocessor.
9270 * combine.c (combine_instructions): Likewise.
9271 (can_combine_p): Likewise.
9272 (try_combine): Likewise.
9273 * emit-rtl.c (try_split): Likewise.
9274 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9275 * lower-subreg.c (resolve_simple_move): Likewise.
9276 * lra.c (update_inc_notes): Likewise.
9277 * recog.c (asm_operand_ok): Likewise.
9278 (constrain_operands): Likewise.
9279 * regrename.c (scan_rtx_address): Likewise.
9280 * reload.c (update_auto_inc_notes): Likewise.
9281 (reg_inc_found_and_valid_p): Likewise.
9282 * reload1.c (reload): Likewise.
9283 (emit_input_reload_insns): Likewise.
9284 (delete_output_reload): Likewise.
9285 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9286 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9288 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9290 * rtl.h: Always define AUTO_INC_DEC.
9291 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9292 * combine.c (combine_instructions): Likewise.
9293 (can_combine_p): Likewise.
9294 (try_combine): Likewise.
9295 * emit-rtl.c (try_split): Likewise.
9296 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9297 * lower-subreg.c (resolve_simple_move): Likewise.
9298 * lra.c (update_inc_notes): Likewise.
9299 * recog.c (asm_operand_ok): Likewise.
9300 (constrain_operands): Likewise.
9301 * regrename.c (scan_rtx_address): Likewise.
9302 * reload.c (update_auto_inc_notes): Likewise.
9303 (find_equiv_reg): Likewise.
9304 * reload1.c (reload): Likewise.
9305 (reload_as_needed): Likewise.
9306 (choose_reload_regs): Likewise.
9307 (emit_input_reload_insns): Likewise.
9308 (delete_output_reload): Likewise.
9309 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9310 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9312 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9314 * combine.c (can_combine_def_p): Don't check the value of
9315 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9316 (combinable_i3pat): Likewise.
9317 (mark_used_regs_combine): Likewise.
9318 * regrename.c (rename_chains): Likewise.
9319 * reload.c (find_reloads_address): Likewise.
9320 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9322 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9324 * combine.c (update_rsp_from_reg_equal): Don't check if
9325 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9326 (reg_nonzero_bits_for_combine): Likewise.
9327 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9329 * config/frv/frv.h: Likewise.
9330 * config/lm32/lm32.h: Likewise.
9331 * config/mep/mep.h: Likewise.
9332 * config/mips/mips.h: Likewise.
9333 * config/rs6000/rs6000.h: Likewise.
9334 * config/sh/sh.h: Likewise.
9335 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9336 * config/tilepro/tilepro.h: Likewise.
9337 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9338 * doc/tm.texi: Regenerate.
9339 * doc/tm.texi.in: Adjust.
9340 * rtlanal.c (nonzero_bits1): Likewise.
9342 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9344 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9345 with the preprocessor.
9346 (combine_instructions): Likewise.
9347 (try_combine): Likewise.
9349 (distribute_notes): Likewise.
9351 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9353 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9355 (simplify_set): Likewise.
9356 * cse.c (cse_insn): Likewise.
9357 * fold-const.c (fold_single_bit_test): Likewise.
9358 (fold_unary_loc): Likewise.
9359 * postreload.c (reload_cse_simplify_set): Likewise.
9360 (reload_cse_simplify_operands): Likewise.
9362 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9364 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9365 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9367 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9370 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9371 __iamcu__ is defined.
9373 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9375 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9377 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9380 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9381 names from preservation.
9383 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9386 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9388 (function_arg_advance_32): Don't pass vectors in registers for
9390 (function_arg_32): Likewise.
9391 (ix86_return_in_memory): Don't return vectors in registers for
9394 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9397 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9398 hard regno live at the start of BB with incoming abnormal edges.
9399 * lra-lives.c (process_bb_lives): Ditto.
9401 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9404 * config/nvptx/mkoffload.c (main): Create an offload image only in
9405 64-bit configurations.
9407 2015-07-08 Martin Liska <mliska@suse.cz>
9410 * tree-sra.c (create_access_1): Call ctor without brackets.
9411 (create_artificial_child_access): Likewise.
9413 2015-07-08 Richard Biener <rguenther@suse.de>
9415 PR tree-optimization/66793
9416 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9417 Properly split the block after stmts ending it.
9419 2015-07-08 Richard Biener <rguenther@suse.de>
9421 PR tree-optimization/66794
9422 * passes.c (execute_function_todo): Assert that post-dominators
9424 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9425 Free post-dominators.
9427 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9429 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9432 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9434 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9435 more than or equal 8 and less than 32 when optimizing for size.
9437 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9439 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9440 COSTS_N_INSNS (1) and increment it appropriately throughout the
9443 2015-07-08 Richard Biener <rguenther@suse.de>
9445 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9447 2015-07-08 Alan Modra <amodra@gmail.com>
9449 * target.def (rtx_costs): Remove "code" param, add "mode".
9450 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9451 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9452 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9453 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9454 call. Track mode when given in rtx.
9455 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9456 (default_address_cost): Pass Pmode to rtx_cost.
9457 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9458 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9460 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9461 (notreg_cost): Add mode param. Use it.
9462 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9463 mode param and pass to set_src_cost. Update all calls.
9464 (hash_scan_set): Formatting.
9465 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9466 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9468 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9469 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9470 emit_store_flag): Update set_src_cost and rtx_cost calls.
9471 * auto-inc-dec.c (attempt_change): Likewise.
9472 * calls.c (precompute_register_parameters): Likewise.
9473 * combine.c (expand_compound_operation, make_extraction,
9474 force_to_mode, distribute_and_simplify_rtx): Likewise.
9475 * dojump.c (prefer_and_bit_test): Likewise.
9476 * dse.c (find_shift_sequence): Likewise.
9477 * expr.c (compress_float_constant): Likewise.
9478 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9479 * ifcvt.c (noce_try_sign_mask): Likewise.
9480 * loop-doloop.c (doloop_optimize): Likewise.
9481 * loop-invariant.c (create_new_invariant): Likewise.
9482 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9483 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9484 lshift_cheap_p): Likewise.
9485 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9486 try_replace_in_use, reload_cse_move2add): Likewise.
9487 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9489 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9490 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9491 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9492 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9493 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9494 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9496 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9497 * config/arc/arc.c (arc_rtx_costs): Likewise.
9498 * config/arm/arm.c (arm_rtx_costs): Likewise.
9499 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9500 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9501 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9502 * config/cris/cris.c (cris_rtx_costs): Likewise.
9503 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9504 * config/frv/frv.c (frv_rtx_costs): Likewise.
9505 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9506 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9507 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9508 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9509 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9510 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9511 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9512 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9513 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9514 * config/mep/mep.c (mep_rtx_cost): Likewise.
9515 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9516 * config/mips/mips.c (mips_rtx_costs): Likewise.
9517 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9518 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9519 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9520 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9521 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9522 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9523 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9524 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9525 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9526 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9527 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9528 * config/s390/s390.c (s390_rtx_costs): Likewise.
9529 * config/sh/sh.c (sh_rtx_costs): Likewise.
9530 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9531 * config/spu/spu.c (spu_rtx_costs): Likewise.
9532 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9533 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9534 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9535 * config/v850/v850.c (v850_rtx_costs): Likewise.
9536 * config/vax/vax.c (vax_rtx_costs): Likewise.
9537 * config/visium/visium.c (visium_rtx_costs): Likewise.
9538 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9539 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9540 "code" param, and pass as outer_code to first rtx_cost call. Pass
9541 mode to rtx_cost calls.
9542 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9544 (aarch64_rtx_costs_wrapper): Update.
9545 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9546 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9548 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9550 (avr_operand_rtx_cost): Similarly.
9551 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9552 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9553 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9554 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9555 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9556 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9558 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9559 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9560 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9561 * doc/tm.texi: Regenerate.
9563 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9565 * tree-core.h: Include symtab.h.
9566 * rtl.h: Include hard-reg-set.h but not flags.h.
9567 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9568 hard-reg-set.h is always included.
9569 * regs.h: Don't include hard-reg-set.h or rtl.h.
9570 * cfg.h: Include dominance.h.
9571 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9572 * backend.h: New. Aggregate commonly used backend header files.
9573 * gimple-ssa.h: Don't include tree-hasher.h.
9574 * ssa.h: New. Aggregate commonly used SSA header files.
9575 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9576 * sel-sched-ir.h: Flatten includes.
9577 * lra-int.h: Flatten completely.
9578 * sel-sched-dump.h: Flatten includes.
9579 * ira-int.h: Flatten includes.
9580 * gimple-streamer.h: Remove all includes.
9581 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9582 * resource.h: Flatten hard-reg-set.h and df.h.
9583 * sched-int.h: Flatten insn-arrt.h and df.h.
9584 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9585 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9586 * genattrtab.c (write_header): Adjust generated includes.
9587 * genautomata.c (main): Likewise.
9588 * genconditions.c (write-header): Likewise.
9589 * genemit.c (main): Likewise.
9590 * gengtype.c (open_base_files): Likewise.
9591 * genopinit.c (main): Likewise.
9592 * genoutput.c (output_prologue): Likewise.
9593 * genpeep.c (main): Likewise.
9594 * genpreds.c (write_insn_preds_c): Likewise.
9595 * genrecog.c (write_header): Likewise.
9596 * alias.c: Adjust includes.
9598 * attribs.c: Likewise.
9599 * auto-inc-dec.c: Likewise.
9600 * auto-profile.c: Likewise.
9601 * bb-reorder.c: Likewise.
9602 * bt-load.c: Likewise.
9603 * builtins.c: Likewise.
9604 * caller-save.c: Likewise.
9605 * calls.c: Likewise.
9608 * cfganal.c: Likewise.
9609 * cfgbuild.c: Likewise.
9610 * cfgcleanup.c: Likewise.
9611 * cfgexpand.c: Likewise.
9612 * cfghooks.c: Likewise.
9613 * cfgloop.c: Likewise.
9614 * cfgloopanal.c: Likewise.
9615 * cfgloopmanip.c: Likewise.
9616 * cfgrtl.c: Likewise.
9617 * cgraph.c: Likewise.
9618 * cgraphbuild.c: Likewise.
9619 * cgraphclones.c: Likewise.
9620 * cgraphunit.c: Likewise.
9621 * cilk-common.c: Likewise.
9622 * combine-stack-adj.c: Likewise.
9623 * combine.c: Likewise.
9624 * compare-elim.c: Likewise.
9625 * convert.c: Likewise.
9626 * coverage.c: Likewise.
9627 * cppbuiltin.c: Likewise.
9628 * cprop.c: Likewise.
9630 * cselib.c: Likewise.
9631 * data-streamer-in.c: Likewise.
9632 * data-streamer-out.c: Likewise.
9633 * data-streamer.c: Likewise.
9634 * dbxout.c: Likewise.
9637 * debug.c: Likewise.
9638 * df-core.c: Likewise.
9639 * df-problems.c: Likewise.
9640 * df-scan.c: Likewise.
9642 * dojump.c: Likewise.
9643 * dominance.c: Likewise.
9644 * domwalk.c: Likewise.
9645 * double-int.c: Likewise.
9647 * dumpfile.c: Likewise.
9648 * dwarf2asm.c: Likewise.
9649 * dwarf2cfi.c: Likewise.
9650 * dwarf2out.c: Likewise.
9651 * emit-rtl.c: Likewise.
9652 * et-forest.c: Likewise.
9653 * except.c: Likewise.
9654 * explow.c: Likewise.
9655 * expmed.c: Likewise.
9657 * final.c: Likewise.
9658 * fixed-value.c: Likewise.
9659 * fold-const.c: Likewise.
9660 * function.c: Likewise.
9661 * fwprop.c: Likewise.
9662 * gcc-plugin.h: Likewise.
9663 * gcse-common.c: Likewise.
9665 * generic-match-head.c: Likewise.
9666 * ggc-page.c: Likewise.
9667 * gimple-builder.c: Likewise.
9668 * gimple-expr.c: Likewise.
9669 * gimple-fold.c: Likewise.
9670 * gimple-iterator.c: Likewise.
9671 * gimple-low.c: Likewise.
9672 * gimple-match-head.c: Likewise.
9673 * gimple-pretty-print.c: Likewise.
9674 * gimple-ssa-isolate-paths.c: Likewise.
9675 * gimple-ssa-strength-reduction.c: Likewise.
9676 * gimple-streamer-in.c: Likewise.
9677 * gimple-streamer-out.c: Likewise.
9678 * gimple-walk.c: Likewise.
9679 * gimple.c: Likewise.
9680 * gimplify-me.c: Likewise.
9681 * gimplify.c: Likewise.
9682 * godump.c: Likewise.
9683 * graph.c: Likewise.
9684 * graphite-blocking.c: Likewise.
9685 * graphite-dependences.c: Likewise.
9686 * graphite-interchange.c: Likewise.
9687 * graphite-isl-ast-to-gimple.c: Likewise.
9688 * graphite-optimize-isl.c: Likewise.
9689 * graphite-poly.c: Likewise.
9690 * graphite-scop-detection.c: Likewise.
9691 * graphite-sese-to-poly.c: Likewise.
9692 * graphite.c: Likewise.
9693 * haifa-sched.c: Likewise.
9694 * hw-doloop.c: Likewise.
9695 * ifcvt.c: Likewise.
9696 * init-regs.c: Likewise.
9697 * internal-fn.c: Likewise.
9698 * ipa-chkp.c: Likewise.
9699 * ipa-comdats.c: Likewise.
9700 * ipa-cp.c: Likewise.
9701 * ipa-devirt.c: Likewise.
9702 * ipa-icf-gimple.c: Likewise.
9703 * ipa-icf.c: Likewise.
9704 * ipa-inline-analysis.c: Likewise.
9705 * ipa-inline-transform.c: Likewise.
9706 * ipa-inline.c: Likewise.
9707 * ipa-polymorphic-call.c: Likewise.
9708 * ipa-profile.c: Likewise.
9709 * ipa-prop.c: Likewise.
9710 * ipa-pure-const.c: Likewise.
9711 * ipa-ref.c: Likewise.
9712 * ipa-reference.c: Likewise.
9713 * ipa-split.c: Likewise.
9714 * ipa-utils.c: Likewise.
9715 * ipa-visibility.c: Likewise.
9717 * ira-build.c: Likewise.
9718 * ira-color.c: Likewise.
9719 * ira-conflicts.c: Likewise.
9720 * ira-costs.c: Likewise.
9721 * ira-emit.c: Likewise.
9722 * ira-lives.c: Likewise.
9725 * langhooks.c: Likewise.
9727 * loop-doloop.c: Likewise.
9728 * loop-init.c: Likewise.
9729 * loop-invariant.c: Likewise.
9730 * loop-iv.c: Likewise.
9731 * loop-unroll.c: Likewise.
9732 * lower-subreg.c: Likewise.
9733 * lra-assigns.c: Likewise.
9734 * lra-coalesce.c: Likewise.
9735 * lra-constraints.c: Likewise.
9736 * lra-eliminations.c: Likewise.
9737 * lra-lives.c: Likewise.
9738 * lra-remat.c: Likewise.
9739 * lra-spills.c: Likewise.
9741 * lto-cgraph.c: Likewise.
9742 * lto-compress.c: Likewise.
9743 * lto-opts.c: Likewise.
9744 * lto-section-in.c: Likewise.
9745 * lto-section-out.c: Likewise.
9746 * lto-streamer-in.c: Likewise.
9747 * lto-streamer-out.c: Likewise.
9748 * lto-streamer.c: Likewise.
9750 * mode-switching.c: Likewise.
9751 * modulo-sched.c: Likewise.
9752 * omega.c: Likewise.
9753 * omp-low.c: Likewise.
9754 * optabs.c: Likewise.
9755 * opts-global.c: Likewise.
9756 * passes.c: Likewise.
9757 * plugin.c: Likewise.
9758 * postreload-gcse.c: Likewise.
9759 * postreload.c: Likewise.
9760 * predict.c: Likewise.
9761 * print-rtl.c: Likewise.
9762 * print-tree.c: Likewise.
9763 * profile.c: Likewise.
9765 * realmpfr.c: Likewise.
9766 * recog.c: Likewise.
9768 * reg-stack.c: Likewise.
9769 * regcprop.c: Likewise.
9770 * reginfo.c: Likewise.
9771 * regrename.c: Likewise.
9772 * regstat.c: Likewise.
9773 * reload.c: Likewise.
9774 * reload1.c: Likewise.
9775 * reorg.c: Likewise.
9776 * resource.c: Likewise.
9777 * rtl-chkp.c: Likewise.
9778 * rtlanal.c: Likewise.
9779 * rtlhooks.c: Likewise.
9780 * sanopt.c: Likewise.
9781 * sched-deps.c: Likewise.
9782 * sched-ebb.c: Likewise.
9783 * sched-rgn.c: Likewise.
9784 * sched-vis.c: Likewise.
9785 * sdbout.c: Likewise.
9786 * sel-sched-dump.c: Likewise.
9787 * sel-sched-ir.c: Likewise.
9788 * sel-sched.c: Likewise.
9790 * shrink-wrap.c: Likewise.
9791 * simplify-rtx.c: Likewise.
9792 * stack-ptr-mod.c: Likewise.
9794 * stor-layout.c: Likewise.
9795 * store-motion.c: Likewise.
9796 * stringpool.c: Likewise.
9797 * symtab.c: Likewise.
9798 * target-globals.c: Likewise.
9799 * targhooks.c: Likewise.
9800 * toplev.c: Likewise.
9801 * tracer.c: Likewise.
9802 * trans-mem.c: Likewise.
9803 * tree-affine.c: Likewise.
9804 * tree-browser.c: Likewise.
9805 * tree-call-cdce.c: Likewise.
9806 * tree-cfg.c: Likewise.
9807 * tree-cfgcleanup.c: Likewise.
9808 * tree-chkp-opt.c: Likewise.
9809 * tree-chkp.c: Likewise.
9810 * tree-chrec.c: Likewise.
9811 * tree-complex.c: Likewise.
9812 * tree-data-ref.c: Likewise.
9813 * tree-dfa.c: Likewise.
9814 * tree-diagnostic.c: Likewise.
9815 * tree-dump.c: Likewise.
9816 * tree-eh.c: Likewise.
9817 * tree-emutls.c: Likewise.
9818 * tree-if-conv.c: Likewise.
9819 * tree-inline.c: Likewise.
9820 * tree-into-ssa.c: Likewise.
9821 * tree-iterator.c: Likewise.
9822 * tree-loop-distribution.c: Likewise.
9823 * tree-nested.c: Likewise.
9824 * tree-nrv.c: Likewise.
9825 * tree-object-size.c: Likewise.
9826 * tree-outof-ssa.c: Likewise.
9827 * tree-parloops.c: Likewise.
9828 * tree-phinodes.c: Likewise.
9829 * tree-predcom.c: Likewise.
9830 * tree-pretty-print.c: Likewise.
9831 * tree-profile.c: Likewise.
9832 * tree-scalar-evolution.c: Likewise.
9833 * tree-sra.c: Likewise.
9834 * tree-ssa-address.c: Likewise.
9835 * tree-ssa-alias.c: Likewise.
9836 * tree-ssa-ccp.c: Likewise.
9837 * tree-ssa-coalesce.c: Likewise.
9838 * tree-ssa-copy.c: Likewise.
9839 * tree-ssa-copyrename.c: Likewise.
9840 * tree-ssa-dce.c: Likewise.
9841 * tree-ssa-dom.c: Likewise.
9842 * tree-ssa-dse.c: Likewise.
9843 * tree-ssa-forwprop.c: Likewise.
9844 * tree-ssa-ifcombine.c: Likewise.
9845 * tree-ssa-live.c: Likewise.
9846 * tree-ssa-loop-ch.c: Likewise.
9847 * tree-ssa-loop-im.c: Likewise.
9848 * tree-ssa-loop-ivcanon.c: Likewise.
9849 * tree-ssa-loop-ivopts.c: Likewise.
9850 * tree-ssa-loop-manip.c: Likewise.
9851 * tree-ssa-loop-niter.c: Likewise.
9852 * tree-ssa-loop-prefetch.c: Likewise.
9853 * tree-ssa-loop-unswitch.c: Likewise.
9854 * tree-ssa-loop.c: Likewise.
9855 * tree-ssa-math-opts.c: Likewise.
9856 * tree-ssa-operands.c: Likewise.
9857 * tree-ssa-phiopt.c: Likewise.
9858 * tree-ssa-phiprop.c: Likewise.
9859 * tree-ssa-pre.c: Likewise.
9860 * tree-ssa-propagate.c: Likewise.
9861 * tree-ssa-reassoc.c: Likewise.
9862 * tree-ssa-sccvn.c: Likewise.
9863 * tree-ssa-scopedtables.c: Likewise.
9864 * tree-ssa-sink.c: Likewise.
9865 * tree-ssa-strlen.c: Likewise.
9866 * tree-ssa-structalias.c: Likewise.
9867 * tree-ssa-tail-merge.c: Likewise.
9868 * tree-ssa-ter.c: Likewise.
9869 * tree-ssa-threadedge.c: Likewise.
9870 * tree-ssa-threadupdate.c: Likewise.
9871 * tree-ssa-uncprop.c: Likewise.
9872 * tree-ssa-uninit.c: Likewise.
9873 * tree-ssa.c: Likewise.
9874 * tree-ssanames.c: Likewise.
9875 * tree-stdarg.c: Likewise.
9876 * tree-streamer-in.c: Likewise.
9877 * tree-streamer-out.c: Likewise.
9878 * tree-streamer.c: Likewise.
9879 * tree-switch-conversion.c: Likewise.
9880 * tree-tailcall.c: Likewise.
9881 * tree-vect-data-refs.c: Likewise.
9882 * tree-vect-generic.c: Likewise.
9883 * tree-vect-loop-manip.c: Likewise.
9884 * tree-vect-loop.c: Likewise.
9885 * tree-vect-patterns.c: Likewise.
9886 * tree-vect-slp.c: Likewise.
9887 * tree-vect-stmts.c: Likewise.
9888 * tree-vectorizer.c: Likewise.
9889 * tree-vrp.c: Likewise.
9892 * ubsan.c: Likewise.
9893 * valtrack.c: Likewise.
9894 * value-prof.c: Likewise.
9895 * var-tracking.c: Likewise.
9896 * varasm.c: Likewise.
9897 * varpool.c: Likewise.
9898 * vmsdbgout.c: Likewise.
9899 * vtable-verify.c: Likewise.
9901 * wide-int.cc: Likewise.
9902 * xcoffout.c: Likewise.
9903 * config/aarch64/aarch64-builtins.c: Likewise.
9904 * config/aarch64/aarch64.c: Likewise.
9905 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9906 * config/alpha/alpha.c: Likewise.
9907 * config/arc/arc.c: Likewise.
9908 * config/arm/aarch-common.c: Likewise.
9909 * config/arm/arm-builtins.c: Likewise.
9910 * config/arm/arm-c.c: Likewise.
9911 * config/arm/arm.c: Likewise.
9912 * config/avr/avr-c.c: Likewise.
9913 * config/avr/avr-log.c: Likewise.
9914 * config/avr/avr.c: Likewise.
9915 * config/bfin/bfin.c: Likewise.
9916 * config/c6x/c6x.c: Likewise.
9917 * config/cr16/cr16.c: Likewise.
9918 * config/cris/cris.c: Likewise.
9919 * config/darwin-c.c: Likewise.
9920 * config/darwin.c: Likewise.
9921 * config/epiphany/epiphany.c: Likewise.
9922 * config/epiphany/mode-switch-use.c: Likewise.
9923 * config/epiphany/resolve-sw-modes.c: Likewise.
9924 * config/fr30/fr30.c: Likewise.
9925 * config/frv/frv.c: Likewise.
9926 * config/ft32/ft32.c: Likewise.
9927 * config/h8300/h8300.c: Likewise.
9928 * config/i386/i386-c.c: Likewise.
9929 * config/i386/i386.c: Likewise.
9930 * config/i386/msformat-c.c: Likewise.
9931 * config/i386/winnt-cxx.c: Likewise.
9932 * config/i386/winnt-stubs.c: Likewise.
9933 * config/i386/winnt.c: Likewise.
9934 * config/ia64/ia64-c.c: Likewise.
9935 * config/ia64/ia64.c: Likewise.
9936 * config/iq2000/iq2000.c: Likewise.
9937 * config/lm32/lm32.c: Likewise.
9938 * config/m32c/m32c-pragma.c: Likewise.
9939 * config/m32c/m32c.c: Likewise.
9940 * config/m32r/m32r.c: Likewise.
9941 * config/m68k/m68k.c: Likewise.
9942 * config/mcore/mcore.c: Likewise.
9943 * config/mep/mep-pragma.c: Likewise.
9944 * config/mep/mep.c: Likewise.
9945 * config/microblaze/microblaze-c.c: Likewise.
9946 * config/microblaze/microblaze.c: Likewise.
9947 * config/mips/mips.c: Likewise.
9948 * config/mmix/mmix.c: Likewise.
9949 * config/mn10300/mn10300.c: Likewise.
9950 * config/moxie/moxie.c: Likewise.
9951 * config/msp430/msp430-c.c: Likewise.
9952 * config/msp430/msp430.c: Likewise.
9953 * config/nds32/nds32-cost.c: Likewise.
9954 * config/nds32/nds32-fp-as-gp.c: Likewise.
9955 * config/nds32/nds32-intrinsic.c: Likewise.
9956 * config/nds32/nds32-isr.c: Likewise.
9957 * config/nds32/nds32-md-auxiliary.c: Likewise.
9958 * config/nds32/nds32-memory-manipulation.c: Likewise.
9959 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9960 * config/nds32/nds32-predicates.c: Likewise.
9961 * config/nds32/nds32.c: Likewise.
9962 * config/nios2/nios2.c: Likewise.
9963 * config/nvptx/nvptx.c: Likewise.
9964 * config/pa/pa.c: Likewise.
9965 * config/pdp11/pdp11.c: Likewise.
9966 * config/rl78/rl78-c.c: Likewise.
9967 * config/rl78/rl78.c: Likewise.
9968 * config/rs6000/rs6000-c.c: Likewise.
9969 * config/rs6000/rs6000.c: Likewise.
9970 * config/rx/rx.c: Likewise.
9971 * config/s390/s390-c.c: Likewise.
9972 * config/s390/s390.c: Likewise.
9973 * config/sh/sh-c.c: Likewise.
9974 * config/sh/sh-mem.cc: Likewise.
9975 * config/sh/sh.c: Likewise.
9976 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9977 * config/sh/sh_treg_combine.cc: Likewise.
9978 * config/sol2-c.c: Likewise.
9979 * config/sol2-cxx.c: Likewise.
9980 * config/sol2-stubs.c: Likewise.
9981 * config/sol2.c: Likewise.
9982 * config/sparc/sparc-c.c: Likewise.
9983 * config/sparc/sparc.c: Likewise.
9984 * config/spu/spu-c.c: Likewise.
9985 * config/spu/spu.c: Likewise.
9986 * config/stormy16/stormy16.c: Likewise.
9987 * config/tilegx/mul-tables.c: Likewise.
9988 * config/tilegx/tilegx-c.c: Likewise.
9989 * config/tilegx/tilegx.c: Likewise.
9990 * config/tilepro/mul-tables.c: Likewise.
9991 * config/tilepro/tilepro-c.c: Likewise.
9992 * config/tilepro/tilepro.c: Likewise.
9993 * config/v850/v850-c.c: Likewise.
9994 * config/v850/v850.c: Likewise.
9995 * config/vax/vax.c: Likewise.
9996 * config/visium/visium.c: Likewise.
9997 * config/vms/vms-c.c: Likewise.
9998 * config/vms/vms.c: Likewise.
9999 * config/vxworks.c: Likewise.
10000 * config/xtensa/xtensa.c: Likewise.
10002 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10004 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10005 Remove operand constraints. Change operand 2 predicate to
10006 nonmemory operand. Limit const_int values to mode bitsize. Only
10007 allow const_int values less than 32 when optimizing for size.
10008 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10009 Remove operand constraints.
10010 (*bt<mode>): Use SImode for const_int values less than 32.
10011 (regmode): Remove mode attribute.
10013 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10015 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10016 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10017 moxie_legitimate_address_p): New functions.
10018 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10020 2015-07-07 Tom de Vries <tom@codesourcery.com>
10022 PR tree-optimization/66642
10023 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10024 header comment. Rename split_edge variable to edge_at_split. Split
10025 exit edge to create new loop exit bb. Insert loop exit phis in new
10028 2015-07-07 Tom de Vries <tom@codesourcery.com>
10030 * tree-cfg.c (get_virtual_phi): New function.
10031 * tree-cfg.h (get_virtual_phi): Declare.
10032 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10033 (rewrite_virtuals_into_loop_closed_ssa): New function.
10034 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10036 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10037 (transform_to_exit_first_loop_alt): Use
10038 rewrite_virtuals_into_loop_closed_ssa.
10040 2015-07-07 Richard Biener <rguenther@suse.de>
10042 * fold-const.c (fold_binary_loc): Move
10043 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10044 * match.pd: ... here.
10045 Add (X * C1) % C2 -> 0 simplification pattern derived from
10048 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10051 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10052 change for target/65249.
10054 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10056 * symtab.c (address_matters_1): Fix typo in comment above.
10057 (can_increase_alignment_p): Likewise.
10059 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10061 * function.c (free_after_compilation): Clear PROP_cfg in
10062 f->curr_properties.
10064 2015-07-07 Richard Biener <rguenther@suse.de>
10066 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10068 (add_control_edge): Remove excessive vertical space in dumping.
10069 (process_ssa_edge_worklist): Simulate at most one statement and
10070 return whether we did. Do not simulate PHIs if they are in a
10071 BB not yet simulated.
10072 (ssa_propagate): Adjust to always drain the BB worklist whenever
10073 a BB is available there, likewise the VARYING edges list before
10074 the interesting edge list.
10076 2015-07-07 Christian Bruel <christian.bruel@st.com>
10079 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10081 2015-07-07 Richard Biener <rguenther@suse.de>
10083 PR middle-end/66739
10084 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10087 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10089 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10090 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10091 Copy operand 0 to a temporary if !ext_register_operand. Remove
10092 ancient extract_bit_field workaround.
10093 (insv<mode>_1): Rename from mov<mode>_insv_1.
10094 (*insvqi): Rename from *movqi_insv_2.
10095 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10096 for renamed insvsi_1.
10097 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10099 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10101 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10102 call to nvptx_reorg_subreg.
10104 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10106 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10107 * graphite-dependencies.c, graphite-interchange.c,
10108 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10109 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10112 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10114 * match.pd: Remove element_mode inside HONOR_*.
10115 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10116 (~X | X -> -1, ~X ^ X -> -1): Merge.
10117 * tree.c (build_each_one_cst): New function.
10118 * tree.h (build_each_one_cst): Likewise.
10120 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10122 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10125 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10127 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10128 * config/mips/mips.opt (mfused-madd): Remove.
10129 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10130 * config/mips/mips.h (TARGET_MIPS8000): New.
10131 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10132 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10133 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10134 (ISA_HAS_NMADD4_NMSUB4): Remove.
10135 (ISA_HAS_NMADD3_NMSUB3): Remove.
10136 (ISA_HAS_FUSED_MADD4): New.
10137 (ISA_HAS_UNFUSED_MADD4): New.
10138 (ISA_HAS_FUSED_MADDF): New.
10139 (ISA_HAS_FUSED_MADD3): New.
10140 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10141 (*fma<mode>4_madd3) New.
10142 (*fma<mode>4_madd4) New.
10143 (*fma<mode>4_maddf) New.
10145 (*fms<mode>4_msub3) New.
10146 (*fms<mode>4_msub4) New.
10148 (*fnma<mode>4_nmadd3) New.
10149 (*fnma<mode>4_nmadd4) New.
10151 (*fnms<mode>4_nmsub3) New.
10152 (*fnms<mode>4_nmsub4) New.
10153 (*madd4<mode>) Modify to be unfused only.
10154 (*msub4<mode>) Modify to be unfused only.
10155 (*nmadd4<mode>) Modify to be unfused only.
10156 (*nmsub4<mode>) Modify to be unfused only.
10157 (*madd3<mode>) Remove.
10158 (*msub3<mode>) Remove.
10159 (*nmadd3<mode>) Remove.
10160 (*nmsub3<mode>) Remove.
10161 (*nmadd3<mode>_fastmath) Remove.
10162 (*nmsub3<mode>_fastmath) Remove.
10163 (*nmadd4<mode>_fastmath) Update condition.
10164 (*nmsub4<mode>_fastmath) Update condition.
10166 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10169 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10170 alignment attribute, exploring one level down for records and arrays.
10172 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10174 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10175 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10176 Copy operand 1 to a temporary if !ext_register_operand. Remove
10177 ancient extract_bit_field workaround.
10178 (*extv<mode>): Rename from *mov<mode>_extv_1.
10179 (*extvqi): Rename from *movqi_extv_1.
10180 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10181 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10182 to a temporary if !ext_register_operand. Remove ancient
10183 extract_bit_field workaround.
10184 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10185 (*extzvqi): Rename from *movqi_extzv_2.
10186 (*testqi_ext_3): Remove modes from const_int_operand predicated
10187 operands. Add "n" constraint.
10188 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10189 operand. Add "J" constraint.
10190 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10191 const_0_to_63 predicated operand.
10192 (regmode): New insn attribute.
10193 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10194 to nonmemory_operand. Use regmode insn attribute.
10195 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10196 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10197 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10198 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10199 operands. Use "N" constraint instead of "n".
10201 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10203 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10205 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10208 * config/i386/i386.c (iamcu_cost): New.
10209 (m_IAMCU): Likewise.
10210 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10211 (processor_target_table): Add an entry for "iamcu".
10212 (processor_alias_table): Likewise.
10213 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10214 (ix86_adjust_cost): Likewise.
10215 (ia32_multipass_dfa_lookahead): Likewise.
10216 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10217 * config/i386/x86-tune.def: Updated for m_IAMCU.
10219 2015-07-06 Richard Biener <rguenther@suse.de>
10221 PR tree-optimization/66772
10222 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10223 values are available in the PHI node BB when there are
10224 still unexecutable edges.
10226 2015-07-06 Richard Biener <rguenther@suse.de>
10228 PR tree-optimization/66767
10229 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10230 Make sure to build the alignment test on a SSA name without
10231 final alignment info valid only if the alignment test
10234 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10237 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10238 loop start when inserting LSETUP.
10240 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10243 * config/i386/i386.c (ix86_option_override_internal): Allow
10244 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10246 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10248 * read-md.c (decimal_string): Rename to ...
10249 (md_decimal_string): ... this.
10250 (handle_enum): Reflect this.
10252 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10255 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10257 2015-07-06 Richard Biener <rguenther@suse.de>
10259 PR middle-end/66759
10260 * match.pd: Add missing constraint of y to REAL_CST in
10261 REAL_CST - x CMP y to y - CST CMP x simplification.
10263 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10265 PR tree-optimization/66757
10266 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10268 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10269 Sandra Loosemore <sandra@codesourcery.com>
10271 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10272 Delete extern declaration.
10273 (gprel_constant_p): Add extern declaration.
10274 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10275 instead of nios2_symbol_ref_in_small_data_p.
10276 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10277 (nios2_symbol_ref_in_small_data_p): Make static.
10278 (gprel_constant_p): Make non-static.
10280 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10282 * doc/fragments.texi (Target Fragment): Convert debian.org
10284 * doc/install.texi (Configuration): Ditto.
10286 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10288 PR tree-optimization/66718
10289 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10290 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10292 PR tree-optimization/66718
10293 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10294 vectorizable_load, vectorizable_condition): Move vectype,
10295 nunits, ncopies computation after checking what kind of statement
10298 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10300 * target-insns.def (extv, extzv, insv): New targetm instruction
10302 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10304 * recog.c (simplify_while_replacing): Likewise.
10306 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10308 * target-insns.def (doloop_begin, doloop_end): New targetm
10309 instruction patterns.
10310 * loop-init.c: Include target.h.
10311 (pass_loop2::gate): Use the new targetm patterns instead of
10312 HAVE_*/gen_* interface.
10313 (pass_rtl_doloop::gate): Likewise.
10314 (pass_rtl_doloop::execute): Remove preprocessor condition.
10315 * hw-doloop.c: Build unconditionally.
10316 * loop-doloop.c: Likewise.
10317 (doloop_optimize): Use the new targetm patterns instead of
10318 HAVE_*/gen_* interface.
10319 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10320 * modulo-sched.c (doloop_register_get): Likewise.
10322 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10324 * target-insns.def (clear_cache): New targetm instruction pattern.
10325 * builtins.c (expand_builtin___clear_cache): Use it instead of
10326 HAVE_*/gen_* interface.
10328 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10330 * target-insns.def (allocate_stack, check_stack, probe_stack)
10331 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10332 New targetm instruction patterns.
10333 * explow.c (allocate_dynamic_stack_space): Use them instead of
10334 HAVE_*/gen_* interface.
10335 (emit_stack_probe): Likewise.
10336 (probe_stack_range): Likewise.
10337 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10339 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10341 * target-insns.def (stack_protect_set, stack_protect_test): New
10342 targetm instruction patterns.
10343 * cfgexpand.c (stack_protect_prologue): Use them instead of
10344 HAVE_*/gen_* interface.
10345 * function.c (stack_protect_epilogue): Likewise.
10347 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10349 * expr.h (gen_move_insn_uncast): Delete.
10350 * expr.c (gen_move_insn_uncast): Delete.
10352 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10354 * target-insns.def (restore_stack_block, restore_stack_function)
10355 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10356 (save_stack_nonlocal): New targetm instruction patterns.
10357 * builtins.c (expand_builtin_apply): Use them instead of
10358 HAVE_*/gen_* interface.
10359 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10361 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10363 * target-insns.def (trap): New targetm instruction pattern.
10364 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10366 * explow.c (allocate_dynamic_stack_space): Likewise.
10367 * ifcvt.c (find_if_header): Likewise.
10369 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10371 * target-insns.def (prefetch): New targetm instruction pattern.
10372 * tree-ssa-loop-prefetch.c: Include targeth.
10373 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10374 of HAVE_*/gen_* interface.
10375 * builtins.c (expand_builtin_prefetch): Likewise.
10376 * toplev.c (process_options): Likewise.
10378 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10380 * target-insns.def (untyped_call, untyped_return): New targetm
10381 instruction patterns.
10382 * builtins.c (expand_builtin_apply): Use them instead of
10383 HAVE_*/gen_* interface.
10384 (result_vector): Define unconditionally.
10386 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10388 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10389 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10390 (nonlocal_goto_receiver): New targetm instruction patterns.
10391 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10392 of HAVE_*/gen_* interface.
10393 (expand_builtin_setjmp_receiver): Likewise.
10394 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10395 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10397 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10399 * target.def: Add code_for_* hooks.
10400 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10401 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10402 * target-insns.def (casesi, tablejump): New targetm instruction
10404 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10405 (do_tablejump): Likewise.
10406 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10407 (expand_sjlj_dispatch_table): Likewise.
10408 * targhooks.c (default_case_values_threshold): Likewise.
10410 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10412 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10413 Use rtx_insn * instead of rtx.
10414 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10415 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10416 (nios2_call_tls_get_addr): Likewise.
10417 (nios2_emit_expensive_div): Likewise.
10418 (nios2_emit_move_sequence): Change return type to bool.
10419 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10420 Change return type to bool.
10422 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10425 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10427 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10430 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10431 of register_operand. Remove constraint.
10433 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10435 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10436 the first argument.
10438 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10440 * attribs.c (decl_attributes): Guard inform with the return value
10441 of the preceding warning.
10443 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10445 * doc/invoke.texi (moverride): Move to correct section.
10447 2015-07-03 Richard Biener <rguenther@suse.de>
10449 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10451 (dt_operand::gen_gimple_expr): After valueizing operands
10452 re-canonicalize operand order for commutative tree codes.
10454 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10457 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10459 (__crc32w): Likewise.
10460 (__crc32d): Likewise.
10461 (__rdpmc): Likewise.
10462 (__rdtscp): Likewise.
10463 (_rdpmc): Likewise.
10464 (_rdtscp): Likewise.
10465 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10468 2015-07-03 Richard Biener <rguenther@suse.de>
10470 * fold-const.c (fold_mathfn_compare): Remove.
10471 (fold_inf_compare): Likewise.
10472 (fold_comparison): Move floating point comparison simplifications...
10473 * match.pd: ... to patterns here. Introduce simple_comparisons
10474 operator list and use it for patterns formerly in fold_comparison.
10476 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10478 PR tree-optimization/66119
10479 * toplev.c (process_options): Don't set up default values for
10480 the sra_max_scalarization_size_{speed,size} parameters.
10481 * tree-sra (analyze_all_variable_accesses): If no values
10482 have been set for the sra_max_scalarization_size_{speed,size}
10483 parameters, call get_move_ratio to get target defaults.
10485 2015-07-03 Richard Biener <rguenther@suse.de>
10487 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10488 * match.pd: ... here.
10490 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10493 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10494 is not actually the default on FreeBSD.
10496 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10498 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10500 (CMPGE_8HI): Likewise.
10501 (CMPGE_4SI): Likewise.
10502 (CMPGE_2DI): Likewise.
10503 (CMPGE_U16QI): Likewise.
10504 (CMPGE_U8HI): Likewise.
10505 (CMPGE_U4SI): Likewise.
10506 (CMPGE_U2DI): Likewise.
10507 (CMPLE_16QI): Likewise.
10508 (CMPLE_8HI): Likewise.
10509 (CMPLE_4SI): Likewise.
10510 (CMPLE_2DI): Likewise.
10511 (CMPLE_U16QI): Likewise.
10512 (CMPLE_U8HI): Likewise.
10513 (CMPLE_U4SI): Likewise.
10514 (CMPLE_U2DI): Likewise.
10515 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10516 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10517 ALTIVEC_BUILTIN_VEC_CMPLE.
10518 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10519 floating-point vector modes.
10520 (vector_nlt<mode>): New define_expand.
10521 (vector_nltu<mode>): Likewise.
10522 (vector_ngt<mode>): Likewise.
10523 (vector_ngtu<mode>): Likewise.
10525 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10527 PR rtl-optimization/66706
10528 * combine.c (make_compound_operation): If an AND of SUBREG of
10529 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10531 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10533 * tree-pass.h (make_pass_ch_vect): New.
10534 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10536 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10537 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10538 make_pass_ch_vect): New.
10539 (pass_ch): Extend ch_base.
10541 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10542 (ch_base::copy_headers): ...here.
10544 2015-07-02 Richard Biener <rguenther@suse.de>
10546 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10547 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10548 (fold_binary_loc): Implement (T)ptr & CST in terms of
10549 get_pointer_alignment_1.
10550 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10551 Make sure to build the alignment test on a SSA name without
10552 final alignment info valid only after the prologue.
10554 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10556 * config/cris/cris.md ("epilogue"): Remove condition.
10557 ("prologue"): Ditto.
10559 2015-07-02 Richard Biener <rguenther@suse.de>
10561 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10562 parameter to record a condition that is false.
10563 (record_conditions): When recording an extra NE_EXPR that is
10564 true also record a EQ_EXPR that is false.
10566 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10568 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10569 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10570 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10571 (set_iv, find_interesting_uses_address, add_candidate_1): New
10572 argument to alloc_iv.
10573 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10574 duplicate struct iv.
10575 (free_loop_data): Don't free struct iv explicitly.
10576 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10578 2015-07-01 DJ Delorie <dj@redhat.com>
10580 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10582 (SUPPORTS_DISCRIMINATOR): Define.
10584 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10587 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10588 there are no CALLs in the same pattern.
10590 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10592 PR rtl-optimization/61047
10593 * rtlanal.c (get_initial_register_offset): New function.
10594 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10596 2015-07-01 Richard Biener <rguenther@suse.de>
10598 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10599 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10600 ~X CMP C -> X CMP' ~C to ...
10601 * match.pd: ... patterns here.
10603 2015-07-01 Nick Clifton <nickc@redhat.com>
10605 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10606 a 16-bit value into a 20-bit memory slot.
10608 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10610 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10611 "aarch64_tiny", "aarch64_small", "aarch64_large",
10612 "aarch64_little_endian", "aarch64_big_endian".
10614 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10616 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10617 Document "aarch64_small_fpic".
10619 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10621 * configure.ac: Add check for aarch64 assembler -fpic relocation
10623 * configure: Regenerate.
10624 * config.in: Regenerate.
10625 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10626 to -fPIC if not support of -fpic relocation modifier in assembler.
10628 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10631 * rtl.c (classify_insn): Handle returns in PARALLELs.
10633 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10635 PR middle-end/66633
10636 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10637 to true if the function is nested and if not optimizing.
10638 (convert_local_omp_clauses): Initialize need_frame to true if the
10639 function contains nested functions and if not optimizing.
10641 2015-07-01 Richard Biener <rguenther@suse.de>
10643 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10644 (X & Y) ^ Y -> ~X & Y transforms to ...
10645 * match.pd: ... here.
10647 2015-07-01 Richard Biener <rguenther@suse.de>
10649 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10650 of converts to avoid uninteresting noise from the conversion
10651 simplifying patterns.
10653 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10655 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10656 gcc_assert evaluating its argument for side-effect.
10658 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10661 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10664 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10666 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10667 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10668 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10669 to the inner DFS walk.
10671 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10673 * target-insns.def (jump): New targetm instruction pattern.
10674 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10675 instead of gen_jump.
10676 (fix_up_crossing_landing_pad): Likewise.
10677 (add_labels_and_missing_jumps): Likewise.
10678 (fix_crossing_conditional_branches): Likewise.
10679 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10680 (force_nonfallthru_and_redirect): Likewise.
10681 * cse.c (cse_insn): Likewise.
10682 * expmed.c (expand_divmod): Likewise.
10683 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
10684 * haifa-sched.c (init_before_recovery): Likewise.
10685 (sched_create_recovery_edges): Likewise.
10686 * ifcvt.c (find_cond_trap): Likewise.
10687 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
10688 (expand_float, expand_fix): Likewise.
10689 * stmt.c (emit_jump): Likewise.
10691 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10693 * defaults.h (HAVE_load_multiple, gen_load_multiple)
10694 (HAVE_store_multiple, gen_store_multiple): Delete.
10695 * target-insns.def (load_multiple, store_multiple): New targetm
10696 instruction patterns.
10697 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
10698 of HAVE_*/gen_* interface.
10700 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10702 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
10703 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
10704 (gen_mem_signal_fence): Delete.
10705 * target-insns.def (mem_signal_fence, mem_thread_fence)
10706 (memory_barrier): New targetm instruction patterns.
10707 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10709 (expand_mem_signal_fence): Likewise.
10711 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10713 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
10714 * target-insns.def (epilogue, prologue, sibcall_prologue): New
10715 targetm instruction patterns.
10716 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
10718 * calls.c (expand_call): Likewise.
10719 * cfgrtl.c (cfg_layout_finalize): Likewise.
10720 * df-scan.c (df_get_entry_block_def_set): Likewise.
10721 (df_get_exit_block_use_set): Likewise.
10722 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
10723 * final.c (final_start_function): Likewise.
10724 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10725 (reposition_prologue_and_epilogue_notes): Likewise.
10726 * reorg.c (find_end_label): Likewise.
10727 * toplev.c (process_options): Likewise.
10729 2015-06-30 David Malcolm <dmalcolm@redhat.com>
10731 * typed-splay-tree.h: New file.
10733 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
10736 * lra-int.h (lra_substitute_pseudo): Add a parameter.
10737 (lra_substitute_pseudo_within_insn): Ditto.
10738 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
10740 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
10741 to lra_substitute_pseudo.
10742 * lra-lives.c (process_bb_lives): Add an argument to
10743 lra_substitute_pseudo_within_insn call.
10744 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10745 argument to lra_substitute_pseudo and
10746 lra_substitute_pseudo_within_insn calls.
10747 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10749 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10751 * configure: Regenerated.
10753 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10755 * config.gcc: Support i[34567]86-*-elfiamcu target.
10756 * config/i386/iamcu.h: New.
10757 * config/i386/i386.opt: Add -miamcu.
10758 * doc/invoke.texi: Document -miamcu.
10759 * common/config/i386/i386-common.c (ix86_handle_option): Turn
10760 off x87/MMX/SSE/AVX codegen for -miamcu.
10761 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10762 __iamcu/__iamcu__ for -miamcu.
10763 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
10764 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
10765 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
10766 * config/i386/i386.c (ix86_option_override_internal): Ignore and
10767 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
10768 MCU by default. Default long double to 64-bit for Intel MCU.
10769 Turn on -freg-struct-return for Intel MCU. Issue an error when
10770 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
10772 (function_arg_advance_32): Pass value whose size is no larger
10773 than 8 bytes in registers for Intel MCU.
10774 (function_arg_32): Likewise.
10775 (ix86_return_in_memory): Return value whose size is no larger
10776 than 8 bytes in registers for Intel MCU.
10777 (iamcu_alignment): New function.
10778 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10780 (ix86_local_alignment): Don't increase alignment for Intel MCU.
10781 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10784 2015-06-30 Marek Polacek <polacek@redhat.com>
10786 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
10787 both operands of the resulting expression.
10789 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
10790 the final expression with the operand's type and then convert
10791 it to the type of the expression.
10793 2015-06-30 Richard Biener <rguenther@suse.de>
10795 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10796 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10797 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10798 * match.pd: ... to patterns here.
10800 2015-06-30 Richard Biener <rguenther@suse.de>
10802 PR tree-optimization/66704
10803 * tree-vect-data-refs.c (vect_setup_realignment): Use
10804 make_ssa_name for non-SSA name source.
10806 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10808 PR middle-end/66702
10809 * omp-low.c (simd_clone_adjust): Handle addressable linear
10810 or uniform parameters or non-gimple type uniform parameters.
10812 2015-06-30 Richard Biener <rguenther@suse.de>
10814 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10815 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10816 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10817 * match.pd: ... here.
10818 Add a few cases of A - B -> A + (-B) when B "easily" negates.
10819 Move (x & y) | x -> x and friends before
10820 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10822 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10824 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10825 -mfix-ut699 is not specified.
10826 (leon3_load): Rename into...
10827 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
10830 2015-06-30 Marek Polacek <polacek@redhat.com>
10832 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10833 * match.pd: ... here.
10835 2015-06-30 Richard Biener <rguenther@suse.de>
10837 * target-insns.def (canonicalize_funcptr_for_compare): Add.
10838 * fold-const.c (build_range_check): Replace uses of
10839 HAVE_canonicalize_funcptr_for_compare.
10840 (fold_widened_comparison): Likewise.
10841 (fold_sign_changed_comparison): Likewise.
10842 * dojump.c: Include "target.h".
10843 (do_compare_and_jump): Replace uses of
10844 HAVE_canonicalize_funcptr_for_compare and
10845 gen_canonicalize_funcptr_for_compare.
10846 * expr.c (do_store_flag): Likewise.
10848 2015-06-30 Tom de Vries <tom@codesourcery.com>
10850 PR tree-optimization/66652
10851 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10852 max_loop_iterations to determine if nit + 1 overflows.
10854 2015-06-30 Richard Biener <rguenther@suse.de>
10856 * tree-vrp.c (register_edge_assert_for_2): Also register
10857 asserts for dominating conversion results.
10859 2015-06-30 Bin Cheng <bin.cheng@arm.com>
10861 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10862 field in struct iv.
10864 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
10867 * configure.ac: Fix filds and fildq test for 64-bit.
10868 * configure: Regenerated.
10870 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
10872 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10873 (nvptx_reorg): Here. Keep the non-subreg pieces.
10875 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
10877 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10878 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10880 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
10882 * config/i386/i386.md (*jcc_1): Use %! in asm template.
10883 Set attribute "length_nobnd" instead of "length".
10886 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10888 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
10890 * config/nios2/nios2.c (nios2_delegitimize_address): Make
10891 assert less restrictive.
10893 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10896 * cgraphunit.c (cgraph_node::finalize_function): Do not call
10897 do_warn_unused_parameter.
10898 * function.c (do_warn_unused_parameter): Move from here.
10899 * function.h (do_warn_unused_parameter): Do not declare.
10901 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10904 * gcc.target/arm/armv-sync-comp-swap.c: New.
10905 * gcc.target/arm/armv-sync-op-acquire.c: New.
10906 * gcc.target/arm/armv-sync-op-full.c: New.
10907 * gcc.target/arm/armv-sync-op-release.c: New.
10909 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10912 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10913 initial acquire barrier with final barrier.
10915 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10918 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10919 initial acquire barrier with final barrier.
10921 2015-06-29 Richard Henderson <rth@redhat.com>
10923 * config/i386/constraints.md (Bf): New constraint.
10924 * config/i386/i386-c.c (ix86_target_macros): Define
10925 __GCC_ASM_FLAG_OUTPUTS__.
10926 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10928 * doc/extend.texi (FlagOutputOperands): Document them.
10930 2015-06-29 Jiong Wang <jiong.wang@arm.com>
10932 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10933 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10935 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10936 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10937 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10938 (aarch64_symbol_context): Ditto.
10939 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10940 and use new pattern name.
10941 (aarch64_expand_mov_immediate): Ditto.
10942 (aarch64_print_operand): Ditto.
10943 (aarch64_classify_tls_symbol): Ditto.
10945 2015-06-29 Marek Polacek <polacek@redhat.com>
10946 Marc Glisse <marc.glisse@inria.fr>
10948 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10949 * match.pd: ... pattern here.
10951 2015-06-29 Tom de Vries <tom@codesourcery.com>
10953 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10954 function structure.
10956 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10958 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10959 feature description, split out the native option, add a link to
10960 the feature documentation, rearrange and slightly rewrite text.
10961 (Aarch64 options, -mcpu): Likewise.
10962 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
10963 +rdma implies Adv. SIMD.
10965 2015-06-29 Marek Polacek <polacek@redhat.com>
10968 * function.c (stack_protect_epilogue): Remove a cast to int.
10969 * doc/invoke.texi: Update -Wswitch-bool description.
10971 2015-06-29 Richard Biener <rguenther@suse.de>
10973 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10974 * fold-const.c (fold_binary_loc): Move &A - &B simplification
10975 via ptr_difference_const ...
10976 * match.pd: ... here.
10977 When matching (X ^ Y) == Y also match with swapped operands.
10979 2015-06-29 Richard Biener <rguenther@suse.de>
10981 * lto-streamer.h (LTO_major_version): Bump to 5.
10983 2015-06-29 Richard Biener <rguenther@suse.de>
10985 PR tree-optimization/66677
10986 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10987 STMT_VINFO_VEC_STMT clobbering less strict.
10989 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10991 PR middle-end/64130
10992 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10993 division, compute max and min when value ranges for dividend and
10994 divisor are available.
10996 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
10997 Sandra Loosemore <sandra@codesourcery.com>
10999 * regrename.h (regrename_do_replace): Change to return bool.
11000 * regrename.c (rename_chains): Check return value of
11001 regname_do_replace.
11002 (regrename_do_replace): Re-validate the modified insns and
11003 return bool status.
11004 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11005 Update to match rename_chains changes.
11006 * config/c6x/c6x.c (try_rename_operands): Assert that
11007 regrename_do_replace returns true.
11009 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11011 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11012 operand 2 here. Use copy_addr_to_reg to copy non-index
11013 register operand 2 to a temporary.
11014 (<mode>_stx): Ditto for operand 1.
11015 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11016 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11017 (ix86_store_bounds): Ditto.
11019 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11021 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11023 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11025 * gimple.c (gimple_call_set_fndecl): Remove.
11026 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11027 build1_loc directly instead of build_fold_addr_expr_loc.
11029 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11031 * hash-map.h (hash_map::traverse): Use the definition of the
11032 Key typedef rather than the typedef itself.
11034 2015-06-26 Martin Jambor <mjambor@suse.cz>
11037 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11038 NULL instead of calling dump_enabled_p.
11040 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11042 * config/aarch64/aarch64.opt: (override): New.
11043 * doc/invoke.texi (override): Document.
11044 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11045 (aarch64_fusible_pairs): Likewise.
11046 (aarch64_tuning_flags): Likewise.
11047 (aarch64_tuning_override_function): Likewise.
11048 (aarch64_tuning_override_functions): Likewise.
11049 (aarch64_parse_one_option_token): Likewise.
11050 (aarch64_parse_boolean_options): Likewise.
11051 (aarch64_parse_fuse_string): Likewise.
11052 (aarch64_parse_tune_string): Likewise.
11053 (aarch64_parse_one_override_token): Likewise.
11054 (aarch64_parse_override_string): Likewise.
11055 (aarch64_override_options): Parse the -override string if it
11058 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11060 * config/aarch64/aarch64-protos.h (tune_params): Remove
11061 const from members.
11062 (aarch64_tune_params): Remove const, change to no longer be
11064 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11065 change to no longer be a pointer, initialize to generic_tunings.
11066 (aarch64_min_divisions_for_recip_mul): Change dereference of
11067 aarch64_tune_params to member access.
11068 (aarch64_reassociation_width): Likewise.
11069 (aarch64_rtx_mult_cost): Likewise.
11070 (aarch64_address_cost): Likewise.
11071 (aarch64_branch_cost): Likewise.
11072 (aarch64_rtx_costs): Likewise.
11073 (aarch64_register_move_cost): Likewise.
11074 (aarch64_memory_move_cost): Likewise.
11075 (aarch64_sched_issue_rate): Likewise.
11076 (aarch64_builtin_vectorization_cost): Likewise.
11077 (aarch64_override_options): Take a copy of the selected tuning
11078 struct in to aarch64_tune_params, rather than just setting
11079 a pointer, change dereferences of aarch64_tune_params to member
11081 (aarch64_override_options_after_change): Change dereferences of
11082 aarch64_tune_params to member access.
11083 (aarch64_macro_fusion_p): Likewise.
11084 (aarch_macro_fusion_pair_p): Likewise.
11085 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11087 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11089 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11090 (aarch64_tune_flags): Likewise.
11091 (AARCH64_TUNE_FMA_STEERING): Likewise.
11092 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11093 to AARCH64_FL_USE_FMA_STEERING_PASS.
11094 (cortex-a57.cortex-a53): Likewise.
11095 (cortex-a72): Use cortexa72_tunings.
11096 (cortex-a72.cortex-a53): Likewise.
11097 (exynos-m1): Likewise.
11098 * config/aarch64/aarch64-protos.h (tune_params): Add
11099 a field: extra_tuning_flags.
11100 * config/aarch64/aarch64-tuning-flags.def: New.
11101 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11102 (aarch64_extra_tuning_flags): Likewise.
11103 (aarch64_tune_params): Declare here.
11104 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11105 (cortexa53_tunings): Likewise.
11106 (cortexa57_tunings): Likewise.
11107 (thunderx_tunings): Likewise.
11108 (xgene1_tunings): Likewise.
11109 (cortexa72_tunings): New.
11110 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11111 (gate): Check against aarch64_tune_params.
11112 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11115 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11117 * config/aarch64/aarch64-fusion-pairs.def: New.
11118 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11119 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11120 aarch64_fusion_pairs.
11121 (AARCH64_FUSE_MOV_MOVK): Likewise.
11122 (AARCH64_FUSE_ADRP_ADD): Likewise.
11123 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11124 (AARCH64_FUSE_ADRP_LDR): Likewise.
11125 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11127 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11129 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11130 SYMBOL_SMALL_GOT_28K.
11131 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11132 relocation modifiers.
11133 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11134 (ldr_got_small_28k_<mode>): New.
11135 (ldr_got_small_28k_sidi): New.
11136 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11137 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11138 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11139 SYMBOL_SMALL_GOT_28K.
11140 (aarch64_rtx_costs): Add costs for new instruction sequences.
11141 (initialize_aarch64_code_model): Initialize new model.
11142 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11143 (aarch64_asm_preferred_eh_data_format): Support new model.
11144 (aarch64_load_symref_appropriately): Generate new instruction
11145 sequences for -fpic.
11146 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11147 (aarch64_use_pseudo_pic_reg): New function.
11149 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11151 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11152 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11153 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11154 (aarch64_expand_mov_immediate): Ditto.
11155 (aarch64_print_operand): Ditto.
11156 (aarch64_classify_symbol): Ditto.
11158 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11160 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11162 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11165 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11166 assertion failed. Remove assertion itself.
11168 2015-06-26 Richard Biener <rguenther@suse.de>
11170 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11171 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11173 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11174 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11175 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11176 * match.pd: ... patterns here.
11178 2015-06-26 Marek Polacek <polacek@redhat.com>
11180 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11181 (x | y) & (~x ^ y) -> x & y): New patterns.
11183 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11185 * rtl.h (emit): Add an optional boolean parameter to control
11186 whether barriers are emitted.
11187 * emit-rtl.c (emit): Likewise.
11188 * gensupport.c (get_emit_function): Return null rather than "emit".
11189 * genemit.c (gen_emit_seq): Handle the null return value.
11190 Don't emit barriers after the final instruction in the sequence.
11191 * gentarget-def.c (main): Don't emit barriers after the instruction.
11193 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11195 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11196 TARGET_UNIFIED_ASM.
11198 2015-06-26 Richard Biener <rguenther@suse.de>
11200 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11202 2015-06-26 Richard Biener <rguenther@suse.de>
11204 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11205 irrespective on whether the inner operation has a single use
11206 of both off are constant.
11208 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11209 Segher Boessenkool <segher@kernel.crashing.org>
11212 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11213 before doing PUT_MODE or PUT_CODE on operands to avoid
11214 in-place RTX modification.
11216 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11218 * gentarget-def.c (def_target_insn): Cast return of strtol to
11221 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11223 * gimple.h (gimple_call_set_fn): Move inline function.
11224 * gimple.c (gimple_call_set_fn): Relocate here.
11226 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11230 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11231 the replacement insn will work.
11233 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11235 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11238 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11240 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11241 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11242 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11243 (symtab_node::address_can_be_compared_p): Move function.
11244 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11246 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11247 * auto-profile.c: Likewise.
11248 * bb-reorder.c: Likewise.
11249 * builtins.c: Likewise.
11250 * calls.c: Likewise.
11251 * cfgexpand.c: Likewise.
11252 * cgraphbuild.c: Likewise.
11253 * cgraphclones.c: Likewise.
11254 * cgraphunit.c: Likewise.
11255 * combine.c: Likewise.
11256 * coverage.c: Likewise.
11257 * data-streamer-in.c: Likewise.
11258 * data-streamer-out.c: Likewise.
11259 * data-streamer.c: Likewise.
11260 * dbxout.c: Likewise.
11261 * dwarf2out.c: Likewise.
11262 * except.c: Likewise.
11263 * expr.c: Likewise.
11264 * final.c: Likewise.
11265 * fold-const.c: Likewise.
11266 * ggc-page.c: Likewise.
11267 * gimple-fold.c: Likewise.
11268 * gimple-iterator.c: Likewise.
11269 * gimple-pretty-print.c: Likewise.
11270 * gimple-streamer-in.c: Likewise.
11271 * gimple-streamer-out.c: Likewise.
11272 * gimple.c: Likewise.
11273 * gimplify.c: Likewise.
11274 * ipa-chkp.c: Likewise.
11275 * ipa-comdats.c: Likewise.
11276 * ipa-cp.c: Likewise.
11277 * ipa-devirt.c: Likewise.
11278 * ipa-icf-gimple.c: Likewise.
11279 * ipa-icf.c: Likewise.
11280 * ipa-inline-analysis.c: Likewise.
11281 * ipa-inline-transform.c: Likewise.
11282 * ipa-inline.c: Likewise.
11283 * ipa-polymorphic-call.c: Likewise.
11284 * ipa-profile.c: Likewise.
11285 * ipa-prop.c: Likewise.
11286 * ipa-pure-const.c: Likewise.
11287 * ipa-ref.c: Likewise.
11288 * ipa-reference.c: Likewise.
11289 * ipa-split.c: Likewise.
11290 * ipa-utils.c: Likewise.
11291 * ipa-visibility.c: Likewise.
11293 * langhooks.c: Likewise.
11294 * lto-cgraph.c: Likewise.
11295 * lto-compress.c: Likewise.
11296 * lto-opts.c: Likewise.
11297 * lto-section-in.c: Likewise.
11298 * lto-section-out.c: Likewise.
11299 * lto-streamer-in.c: Likewise.
11300 * lto-streamer-out.c: Likewise.
11301 * lto-streamer.c: Likewise.
11302 * omp-low.c: Likewise.
11303 * opts-global.c: Likewise.
11304 * passes.c: Likewise.
11305 * predict.c: Likewise.
11306 * print-tree.c: Likewise.
11307 * profile.c: Likewise.
11309 * sanopt.c: Likewise.
11310 * stor-layout.c: Likewise.
11311 * symtab.c: Likewise.
11312 * toplev.c: Likewise.
11313 * trans-mem.c: Likewise.
11314 * tree-cfg.c: Likewise.
11315 * tree-chkp.c: Likewise.
11316 * tree-eh.c: Likewise.
11317 * tree-emutls.c: Likewise.
11318 * tree-inline.c: Likewise.
11319 * tree-nested.c: Likewise.
11320 * tree-parloops.c: Likewise.
11321 * tree-pretty-print.c: Likewise.
11322 * tree-profile.c: Likewise.
11323 * tree-sra.c: Likewise.
11324 * tree-ssa-alias.c: Likewise.
11325 * tree-ssa-live.c: Likewise.
11326 * tree-ssa-loop-ivcanon.c: Likewise.
11327 * tree-ssa-loop-ivopts.c: Likewise.
11328 * tree-ssa-pre.c: Likewise.
11329 * tree-ssa-sccvn.c: Likewise.
11330 * tree-ssa-strlen.c: Likewise.
11331 * tree-ssa-structalias.c: Likewise.
11332 * tree-streamer-in.c: Likewise.
11333 * tree-streamer-out.c: Likewise.
11334 * tree-streamer.c: Likewise.
11335 * tree-switch-conversion.c: Likewise.
11336 * tree-tailcall.c: Likewise.
11337 * tree-vect-data-refs.c: Likewise.
11338 * tree-vect-stmts.c: Likewise.
11339 * tree-vectorizer.c: Likewise.
11340 * tree.c: Likewise.
11341 * tsan.c: Likewise.
11342 * ubsan.c: Likewise.
11343 * value-prof.c: Likewise.
11344 * varasm.c: Likewise.
11345 * varpool.c: Likewise.
11346 * config/arm/arm.c: Likewise.
11347 * config/bfin/bfin.c: Likewise.
11348 * config/c6x/c6x.c: Likewise.
11349 * config/cris/cris.c: Likewise.
11350 * config/darwin-c.c: Likewise.
11351 * config/darwin.c: Likewise.
11352 * config/i386/i386.c: Likewise.
11353 * config/i386/winnt.c: Likewise.
11354 * config/microblaze/microblaze.c: Likewise.
11355 * config/mips/mips.c: Likewise.
11356 * config/rs6000/rs6000.c: Likewise.
11357 * config/rx/rx.c: Likewise.
11358 * config/s390/s390.c: Likewise.
11359 * config/tilegx/mul-tables.c: Likewise.
11361 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11363 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11364 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11365 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11366 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11367 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11368 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11369 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11370 config/microblaze/microblaze.c, config/mips/mips.c,
11371 config/mmix/mmix.c, config/mn10300/mn10300.c,
11372 config/moxie/moxie.c, config/msp430/msp430.c,
11373 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11374 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11375 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11376 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11377 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11378 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11379 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11380 target-def.h include.
11381 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11383 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11385 * Makefile.in (TARGET_DEF): Add target-insns.def.
11386 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11387 (build/gentarget-def.o): New rule.
11388 (genprogrtl): Add target-def.
11389 * target-insns.def, gentarget-def.c: New files.
11390 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11391 based on the contents of target-insns.def.
11392 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11393 (HAVE_return, gen_return): Delete.
11394 * target-def.h: Include insn-target-def.h.
11395 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11396 instead of direct calls. Rely on them to do the appropriate assertions.
11397 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11398 (convert_jumps_to_returns): Use targetm interface instead of
11400 (thread_prologue_and_epilogue_insns): Likewise.
11401 * reorg.c (find_end_label, dbr_schedule): Likewise.
11402 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11403 * shrink-wrap.c (convert_to_simple_return): Likewise.
11404 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11406 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11408 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11409 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11410 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11411 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11412 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11413 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11414 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11415 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11416 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11417 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11418 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11419 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11420 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11421 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11422 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11423 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11426 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11428 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11429 (unbounded_int_hashmap_traits::key_type): Likewise.
11430 * hash-map.h (hash_map): Get the key type from the traits.
11431 * hash-traits.h (default_hash_traits): By default, inherit from the
11432 template parameter.
11433 * alias.c (alias_set_traits): Delete.
11434 (alias_set_entry_d::children): Use alias_set_hash as the first
11435 template parameter.
11436 (record_alias_subset): Update accordingly.
11437 * except.c (tree_hash_traits): Delete.
11438 (type_to_runtime_map): Use tree_hash as the first template parameter.
11439 (init_eh): Update accordingly.
11440 * genmatch.c (capture_id_map_hasher): Delete.
11441 (cid_map_t): Use nofree_string_hash as first template parameter.
11442 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11443 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11444 Use symbol_compare_hash as the first template parameter in
11445 subdivide_hash_map.
11446 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11447 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11448 template parameter.
11449 * passes.c (pass_registry_hasher): Delete.
11450 (name_to_pass_map): Use nofree_string_hash as the first template
11452 (register_pass_name): Update accordingly.
11453 * sanopt.c (sanopt_tree_map_traits): Delete.
11454 (sanopt_tree_triplet_map_traits): Delete.
11455 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11456 template parameter.
11457 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11458 the first template parameter.
11459 * sese.c (rename_map_hasher): Delete.
11460 (rename_map_type): Use tree_ssa_name_hash as the first template
11462 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11463 (function_summary::m_map): Use map_hash as the first template
11465 (function_summary::release): Update accordingly.
11466 * tree-if-conv.c (phi_args_hash_traits): Delete.
11467 (predicate_scalar_phi): Use tree_operand_hash as the first template
11468 parameter to phi_arg_map.
11469 * tree-inline.h (dependence_hasher): Delete.
11470 (copy_body_data::dependence_map): Use dependence_hash as the first
11471 template parameter.
11472 * tree-inline.c (remap_dependence_clique): Update accordingly.
11473 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11474 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11476 (addr_stridxptr): Update accordingly.
11477 * value-prof.c (profile_id_traits): Delete.
11478 (cgraph_node_map): Use profile_id_hash as the first template
11480 (init_node_map): Update accordingly.
11481 * config/alpha/alpha.c (string_traits): Delete.
11482 (machine_function::links): Use nofree_string_hash as the first
11483 template parameter.
11484 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11485 * config/m32c/m32c.c (pragma_traits): Delete.
11486 (pragma_htab): Use nofree_string_hash as the first template parameter.
11487 (m32c_note_pragma_address): Update accordingly.
11488 * config/mep/mep.c (pragma_traits): Delete.
11489 (pragma_htab): Use nofree_string_hash as the first template parameter.
11490 (mep_note_pragma_flag): Update accordingly.
11491 * config/mips/mips.c (mips16_flip_traits): Delete.
11492 (mflip_mips16_htab): Use nofree_string_hash as the first template
11494 (mflip_mips16_use_mips16_p): Update accordingly.
11495 (local_alias_traits): Delete.
11496 (mips16_local_aliases): Use nofree_string_hash as the first template
11498 (mips16_local_alias): Update accordingly.
11500 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11502 * hash-map-traits.h (default_hashmap_traits): Delete.
11504 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11506 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11507 (unbounded_int_hashmap_traits): Likewise.
11508 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11510 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11512 * ipa-icf.h (symbol_compare_hash): New class.
11513 (symbol_compare_hashmap_traits): Use it.
11514 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11515 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11516 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11517 default_hashmap_traits.
11518 * sanopt.c (sanopt_tree_triplet_hash): New class.
11519 (sanopt_tree_triplet_map_traits): Use it.
11521 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11523 * gengtype-parse.c (require_template_declaration): Allow '+' in
11524 template parameters. Consolidate cases.
11525 * hash-traits.h (int_hash): New class.
11526 * alias.c (alias_set_hash): New structure.
11527 (alias_set_traits): Use it.
11528 * symbol-summary.h (function_summary::map_hash): New class.
11529 (function_summary::summary_hashmap_traits): Use it.
11530 * tree-inline.h (dependence_hash): New class.
11531 (dependence_hasher): Use it.
11532 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11533 * value-prof.c (profile_id_hash): New class.
11534 (profile_id_traits): Use it.
11536 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11538 * config/mips/mips.c (mips16_flip_traits): Use it.
11539 (local_alias_traits, mips16_local_aliases): Convert from a map of
11540 rtxes to a map of symbol names.
11541 (mips16_local_alias): Update accordingly.
11543 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11545 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11546 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11547 * passes.c (pass_registry_hasher): Likewise.
11548 * config/alpha/alpha.c (string_traits): Likewise.
11549 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11550 * config/m32c/m32c.c (pragma_traits): Likewise.
11551 * config/mep/mep.c (pragma_traits): Likewise.
11553 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11555 * tree-hash-traits.h (tree_hash): New class.
11556 * except.c: Include tree-hash-traits.h.
11557 (tree_hash_traits): Use tree_hash.
11559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11561 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11562 * sese.c: Include tree-hash-traits.h.
11563 (rename_map_hasher): Use tree_ssa_name_hasher.
11565 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11567 * tree-hash-traits.h (tree_decl_hash): New class.
11568 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11569 (stridxlist_hash_traits): Use tree_decl_hash.
11571 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11573 * tree-hash-traits.h: New file.
11574 (tree_operand_hash): New class.
11575 * sanopt.c: Include tree-hash-traits.h.
11576 (sanopt_tree_map_traits): Use tree_operand_hash.
11577 * tree-if-conv.c: Include tree-hash-traits.h.
11578 (phi_args_hash_traits): Use tree_operand_hash.
11579 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11580 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11582 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11584 * hash-map-traits.h: Include hash-traits.h.
11585 (simple_hashmap_traits): New class.
11586 * mem-stats.h (hash_map): Change the default traits to
11587 simple_hashmap_traits<default_hash_traits<Key> >.
11589 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11591 * hash-table.h: Update comments.
11593 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11595 * hash-traits.h (default_hash_traits): New structure.
11596 * hash-set.h (default_hashset_traits): Delete.
11597 (hash_set): Use default_hash_traits<Key> instead of
11598 default_hashset_traits. Delete hash_entry type and use Key directly.
11599 * ipa-devirt.c (pair_traits): Delete.
11600 (default_hash_traits <type_pair>): Override.
11601 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11602 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11604 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11606 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11608 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11610 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11611 (has_is_empty, is_empty_helper): Delete.
11612 (has_mark_deleted, mark_deleted_helper): Delete.
11613 (has_mark_empty, mark_empty_helper): Delete.
11614 (hash_table::is_deleted): Call the Descriptor unconditionally.
11615 (hash_table::is_empty): Likewise.
11616 (hash_table::mark_deleted): Likewise.
11617 (hash_table::mark_empty): Likewise.
11619 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11621 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11622 redundant typedefs and members.
11623 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11624 redundant typedefs.
11625 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11626 * ipa-devirt.c (odr_name_hasher): Likewise.
11627 (polymorphic_call_target_hasher): Likewise.
11628 * ira-costs.c (cost_classes_hasher): Likewise.
11629 * statistics.c (stats_counter_hasher): Likewise.
11630 * trans-mem.c (log_entry_hasher): Likewise.
11631 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11632 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11633 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11634 * var-tracking.c (variable_hasher): Likewise.
11635 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11636 Remove redundant typedefs and members.
11638 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11640 * hash-traits.h (ggc_cache_hasher): Rename to...
11641 (ggc_cache_remove): ...this and remove typedefs.
11642 (ggc_cache_ptr_hash): New class.
11643 * hash-table.h: Update commentary.
11644 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11645 rather than ggc_cache_hasher.
11646 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11647 (const_double_hasher, const_fixed_hasher): Likewise.
11648 * function.c (insn_cache_hasher): Likewise.
11649 * trans-mem.c (tm_wrapper_hasher): Likewise.
11650 * tree.h (tree_decl_map_cache_hasher): Likewise.
11651 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11652 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11653 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11654 * varasm.c (tm_clone_hasher): Likewise.
11655 * config/i386/i386.c (dllimport_hasher): Likewise.
11656 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11657 (tree_hasher): Likewise.
11659 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11661 * hash-traits.h (ggc_hasher): Rename to...
11662 (ggc_remover): ...this and remove typedefs.
11663 (ggc_cache_hasher): Update accordingly. Add typedefs.
11664 (ggc_ptr_hash): New class.
11665 * hash-table.h: Update comment.
11666 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11668 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11669 (tree_descriptor_hasher): Likewise.
11670 * cgraph.c (function_version_hasher): Likewise.
11671 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11672 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11673 (dw_loc_list_hasher, addr_hasher): Likewise.
11674 * function.h (used_type_hasher): Likewise.
11675 * function.c (temp_address_hasher): Likewise.
11676 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11677 * libfuncs.h (libfunc_hasher): Likewise.
11678 * lto-streamer.h (decl_state_hasher): Likewise.
11679 * optabs.c (libfunc_decl_hasher): Likewise.
11680 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
11681 * varasm.c (section_hasher, object_block_hasher): Likewise.
11682 (const_rtx_desc_hasher): Likewise.
11683 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
11684 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
11686 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11688 * hash-traits.h (free_ptr_hash): New class.
11689 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
11690 rather than typed_free_remove. Remove redudant typedefs.
11691 (external_ref_hasher): Likewise.
11692 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
11693 (ehspec_hasher): Likewise.
11694 * ggc-common.c (saving_hasher): Likewise.
11695 * gimplify.c (gimplify_hasher): Likewise.
11696 * haifa-sched.c (delay_i2_hasher): Likewise.
11697 * loop-invariant.c (invariant_expr_hasher): Likewise.
11698 * loop-iv.c (biv_entry_hasher): Likewise.
11699 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
11700 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
11701 * tree-cfg.c (locus_discrim_hasher): Likewise.
11702 * tree-eh.c (finally_tree_hasher): Likewise.
11703 * tree-into-ssa.c (var_info_hasher): Likewise.
11704 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
11705 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
11706 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
11707 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
11708 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
11709 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
11710 (shared_bitmap_hasher): Likewise.
11711 * tree-ssa-threadupdate.c (redirection_data): Likewise.
11712 * tree-vectorizer.h (peel_info_hasher): Likewise.
11713 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
11714 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
11716 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11718 * hash-table.h: Update comments.
11719 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
11720 (nofree_ptr_hash): New class.
11721 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
11722 than typed_noop_remove. Remove redudant typedefs.
11723 * attribs.c (attribute_hasher): Likewise.
11724 * cfg.c (bb_copy_hasher): Likewise.
11725 * cselib.c (cselib_hasher): Likewise.
11726 * dse.c (invariant_group_base_hasher): Likewise.
11727 * dwarf2cfi.c (trace_info_hasher): Likewise.
11728 * dwarf2out.c (macinfo_entry_hasher): Likewise.
11729 (comdat_type_hasher, loc_list_hasher): Likewise.
11730 * gcse.c (pre_ldst_expr_hasher): Likewise.
11731 * genmatch.c (id_base): Likewise.
11732 * genrecog.c (test_pattern_hasher): Likewise.
11733 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11734 * haifa-sched.c (delay_i1_hasher): Likewise.
11735 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11736 * ipa-icf.h (congruence_class_group_hash): Likewise.
11737 * ipa-profile.c (histogram_hash): Likewise.
11738 * ira-color.c (allocno_hard_regs_hasher): Likewise.
11739 * lto-streamer.h (string_slot_hasher): Likewise.
11740 * lto-streamer.c (tree_entry_hasher): Likewise.
11741 * plugin.c (event_hasher): Likewise.
11742 * postreload-gcse.c (expr_hasher): Likewise.
11743 * store-motion.c (st_expr_hasher): Likewise.
11744 * tree-sra.c (uid_decl_hasher): Likewise.
11745 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11746 (ssa_name_var_hash): Likewise.
11747 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11748 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11749 * tree-ssa-pre.c (pre_expr_d): Likewise.
11750 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11751 * vtable-verify.h (registration_hasher): Likewise.
11752 * vtable-verify.c (vtbl_map_hasher): Likewise.
11753 * config/arm/arm.c (libcall_hasher): Likewise.
11754 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
11755 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
11756 * config/sol2.c (comdat_entry_hasher): Likewise.
11757 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
11758 (print_fold_checksum, fold_checksum_tree): Likewise.
11759 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
11760 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
11761 (fold_build_call_array_loc): Likewise.
11762 * tree-ssa-ccp.c (gimple_htab): Likewise.
11763 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
11764 rather than pointer_type.
11766 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11768 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
11769 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
11771 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11773 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11774 (ggc_hasher::ggc_mx): Likewise.
11775 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
11776 that duplicate ggc_hasher ones.
11778 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11780 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11781 (gt_cleare_cache): Check here for deleted and empty entries.
11782 Replace handle_cache_entry with a call to keep_cache_entry.
11783 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11784 (ggc_cache_hasher::keep_cache_entry): New function.
11785 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11786 (tm_wrapper_hasher::keep_cache_entry): New function.
11787 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11788 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11789 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11790 (type_cache_hasher::keep_cache_entry): New function.
11791 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11792 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11793 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11794 (tree_type_map_cache_hasher::keep_cache_entry): New function.
11795 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11796 (tm_clone_hasher::keep_cache_entry): New function.
11797 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11798 (dllimport_hasher::keep_cache_entry): New function.
11800 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11802 * hash-table.h: Include hash-traits.h.
11803 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11804 (ggc_cache_hasher): Move to...
11805 * hash-traits.h: ...this new file.
11807 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11809 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11810 struct cl_optimization.
11811 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11812 * tree.c (make_node_stat): Allocate cl_optimization struct.
11813 (copy_node_stat): Allocate and copy cl_optimization struct.
11815 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11817 * function.h (struct incoming_args): Move struct.
11818 (pass_by_reference, reference_callee_copied): Remove prototypes.
11819 * emit-rtl.h (struct incoming_args): Relocate struct here.
11820 * calls.h (pass_by_reference, reference_callee_copied): Relocate
11822 * function.c (pass_by_reference, reference_callee_copied): Move.
11823 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11824 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11825 * ipa-chkp.c: Include calls.h.
11827 2015-06-25 Andrew Macleod <amacleod@redhat.com>
11829 * alias.h (alias_set_type): Move typedef.
11830 * coretypes.h (alias_set_type): Relocate typedef here.
11831 * rtl.h: Don't include alias.h.
11833 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11835 * cgraph.h (cgraph_rtl_info): Move to rtl.h
11836 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11838 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11839 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11841 * calls.c: Include hard-reg-set.h before rtl.h.
11844 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11845 Vladimir Makarov <vmakarov@redhat.com>
11847 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11850 2015-06-25 Richard Biener <rguenther@suse.de>
11852 * fold-const.c (fold_binary_loc): Move simplification of
11853 (X <<>> C1) & C2 ...
11854 * match.pd: ... here.
11856 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
11858 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11860 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11862 * match.pd: Add patterns for vec_conds between 1 and 0.
11864 2015-06-25 Richard Biener <rguenther@suse.de>
11866 * tree-vect-stmts.c (vectorizable_conversion): Do not set
11867 STMT_VINFO_VEC_STMT for SLP.
11868 (vectorizable_store): Likewise.
11869 (vectorizable_load): Likewise.
11870 (vect_transform_stmt): Catch SLP vectorization clobbering
11871 STMT_VINFO_VEC_STMT.
11873 2015-06-25 Richard Biener <rguenther@suse.de>
11875 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11877 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11878 cleanup resulting dead code and parameters.
11879 (vect_transform_slp_perm_load): Adjust.
11881 2015-06-25 Nick Clifton <nickc@redhat.com>
11883 * config/bfin/bfin.c (bfin_expand_prologue): Set
11884 current_function_static_stack_size if flag_stack_usage_info is set.
11885 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11886 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11887 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11888 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11890 2015-06-25 Tom de Vries <tom@codesourcery.com>
11892 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11893 comment that the generated IV is unsigned.
11895 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11898 * config/arm/arm.c (arm_dbx_register_number): Return
11899 DWARF_FRAME_REGISTERS by default.
11901 2015-06-25 Tom de Vries <tom@codesourcery.com>
11903 * dominance.c (calculate_dominance_info): Fix verify_dominators call
11904 argument. Call verify_dominator when reusing dominator info.
11906 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
11909 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11910 an additional element of the unspec vector. Modify indices
11912 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11913 * config/sh/sh.c (prepare_move_operands): Pass incremented
11914 const_int to gen_GOTaddr2picreg.
11915 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11917 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11919 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11920 Condition on TARGET_FLOAT.
11922 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11924 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11927 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11929 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11931 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11932 aarch64_err_no_fpadvsimd.
11934 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11935 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11936 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11937 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11938 Turn error into assert, test TARGET_FLOAT.
11939 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11942 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
11945 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11947 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11949 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11951 2015-06-24 Renlin Li <renlin.li@arm.com>
11953 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11954 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11956 2015-06-24 Richard Biener <rguenther@suse.de>
11958 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11960 (lower_opt_convert): Support lowering of conditional view_convert.
11961 (parser::parse_operation): Likewise.
11962 (parser::parse_for): Likewise.
11964 2015-06-24 Renlin Li <renlin.li@arm.com>
11966 * varasm.c (emit_local): Use unsigned int for align variable.
11968 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11971 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11972 for negative numbers.
11974 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11976 PR rtl-optimization/66306
11977 * reload.c (find_reloads): Swap the match_dup info for
11978 commutative operands.
11980 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11982 * config/s390/vx-builtins.md
11983 ("vec_scatter_element<mode>_<non_vec_int>")
11984 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11985 attribute with bhfgq.
11987 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11989 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11991 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11993 * config/s390/s390-builtin-types.def: Add flag to indicate the
11994 options under which the function type is needed.
11995 * config/s390/s390-builtins.def: Add flag to indicate the options
11996 under which the builtin is enabled.
11997 * config/s390/s390-builtins.h: Add flags parameter to macro
11999 (bflags_for_builtin): New function.
12000 (flags_for_builtin): Renamed to ...
12001 (opflags_for_builtin): ... this.
12002 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12003 flags_for_builtin to bflags_for_builtin and
12004 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12005 * config/s390/s390.c: Add initialization of bflags_builtin and
12006 opflags_builtin arrays.
12007 Remove code for flags_builtin.
12008 (s390_init_builtins): Only create builtin function types if one of
12009 their flags is active.
12010 Only create builtins if all of their flags are active.
12011 (s390_expand_builtin): Rename flags_for_builtin to
12012 opflags_for_builtin.
12014 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12016 * config/s390/vecintrin.h: Remove internal builtins.
12018 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12020 * config/s390/s390.c (s390_secondary_reload): Fix check for
12021 GENERAL_REGS register class.
12023 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12025 * config/s390/s390.c (s390_support_vector_misalignment): Call
12026 default implementation for !TARGET_VX.
12028 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12030 * config/s390/s390.c (s390_legitimate_constant_p): Add
12033 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12035 * config/s390/s390.c (s390_vector_abi): New variable definition.
12036 (s390_check_type_for_vector_abi): New function.
12037 (TARGET_ASM_FILE_END): New macro definition.
12038 (s390_asm_file_end): New function.
12039 (s390_function_arg): Call s390_check_type_for_vector_abi.
12040 (s390_gimplify_va_arg): Likewise.
12041 * configure: Regenerate.
12042 * configure.ac: Check for .gnu_attribute Binutils feature.
12044 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12047 * config/bfin/bfin.c (hwloop_optimize): Initialize
12048 JUMP_LABEL for newly created jump.
12050 2015-06-23 Tristan Gingold <gingold@adacore.com>
12052 * collect-utils.c (collect_wait): Unlink the response file here
12054 (do_wait): ...here.
12055 (utils_cleanup): ...and here.
12057 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12059 * df-scan.c: Don't include target-def.h.
12060 * targhooks.c: Likewise.
12061 * config/arm/arm-c.c: Likewise.
12062 * config/i386/i386-c.c: Likewise.
12063 * config/nds32/nds32-cost.c: Likewise.
12064 * config/nds32/nds32-fp-as-gp.c: Likewise.
12065 * config/nds32/nds32-intrinsic.c: Likewise.
12066 * config/nds32/nds32-isr.c: Likewise.
12067 * config/nds32/nds32-md-auxiliary.c: Likewise.
12068 * config/nds32/nds32-memory-manipulation.c: Likewise.
12069 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12070 * config/nds32/nds32-predicates.c: Likewise.
12072 2015-06-23 Richard Biener <rguenther@suse.de>
12074 PR tree-optimization/66636
12075 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12076 def type for further defs for strided stores.
12078 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12080 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12081 conditional selects.
12082 (setcc_int<mode>, setcc_float<mode>): Reformat.
12084 2015-06-23 Marek Polacek <polacek@redhat.com>
12086 * match.pd ((x + y) - (x | y) -> x & y,
12087 (x + y) - (x & y) -> x | y): New patterns.
12089 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12092 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12093 '-dynamic-linker' within %{!shared: ...}.
12095 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12098 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12099 (addsub_vs_operator): Ditto.
12100 (addsub_vs_parallel): Ditto.
12101 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12102 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12103 Put minus RTX before plus and adjust vec_merge selector.
12104 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12105 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12106 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12107 (addsub vec_merge splitters): New combiner splitters.
12108 (addsub vec_select/vec_concat splitters): Ditto.
12110 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12112 PR tree-optimization/66449
12113 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12114 POINTER_PLUS_EXPR for pointers.
12116 2015-06-23 Alan Modra <amodra@gmail.com>
12118 * rtlanal.c (commutative_operand_precedence): Correct comments.
12119 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12120 declaration. Return an int. Distinguish REG,REG return from
12122 (struct simplify_plus_minus_op_data): Make local to function.
12123 (simplify_plus_minus): Don't set canonicalized if merely sorting
12124 registers. Avoid packing ops if nothing changes. White space fixes.
12126 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12128 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12129 -fdump-ada-spec is passed but not if -fsyntax-only is.
12131 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12134 * lra-lives.c (process_bb_lives): Check insn copying the same
12135 reload pseudo and don't create a copy for it.
12137 2015-06-22 Tom de Vries <tom@codesourcery.com>
12139 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12142 2015-06-22 Tom de Vries <tom@codesourcery.com>
12144 * builtins.def (DEF_GOMP_BUILTIN): Test
12145 'flag_tree_parallelize_loops > 1' instead of
12146 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12148 2015-06-22 Tom de Vries <tom@codesourcery.com>
12150 * dominance.c (calculate_dominance_info): Verify dominators if
12153 2015-06-22 Marek Polacek <polacek@redhat.com>
12155 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12156 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12157 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12158 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12160 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12163 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12164 cost of embedded comparison.
12166 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12169 * config/rs6000/predicates.md (altivec_register_operand): Permit
12170 virtual stack registers.
12171 (vsx_register_operand): Likewise.
12172 (vfloat_operand): Likewise.
12173 (vint_operand): Likewise.
12174 (vlogical_operand): Likewise.
12176 2015-06-22 Richard Biener <rguenther@suse.de>
12178 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12179 and single_scalar_iteration_cost members.
12180 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12181 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12182 (vect_get_single_scalar_iteration_cost): Remove.
12183 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12184 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12185 * tree-vect-loop.c (destroy_loop_vec_info): Free
12187 (vect_get_single_scalar_iteration_cost): Compute result into
12188 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12189 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12190 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12191 (vect_estimate_min_profitable_iters): Use them.
12193 2015-06-22 Christian Bruel <christian.bruel@st.com>
12196 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12197 (TARGET_INSERT_ATTRIBUTES): Define.
12198 (thumb_flipper): New var.
12199 * config/arm/arm.opt (-mflip-thumb): New switch.
12201 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12202 Martin Liska <mliska@suse.cz>
12205 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12206 construction of arg_types.
12207 (sem_function::sem_function): Likewise.
12208 (sem_function::~sem_function): Remove destruction of arg_types.
12209 (sem_function::compatible_parm_types_p): New function.
12210 (sem_function::equals_wpa): Reorg matching of return values
12211 and parameter types.
12212 (sem_function::equals_private): Reorg mathcing of argument types.
12213 (sem_function::parse_tree_args): Remove.
12214 * ipa-icf.h (init_wpa): Do not call it.
12215 (parse_tree_args): Remove.
12216 (compatible_parm_types_p): Declare.
12217 (result_type): Remove.
12218 (arg_types): Remove.
12220 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12223 * ipa-polymorphic-call.c
12224 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12225 initializing alias oracle; fix formating; set base_alias_set if it
12228 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12230 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12231 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12232 (find_inc): Likewise.
12233 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12235 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12236 * df-scan.c (df_swap_refs): Remove.
12237 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12238 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12239 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12240 * fold-const.c (fold_relational_const): Likewise.
12241 * genattrtab.c (simplify_test_exp): Likewise.
12242 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12243 gimple_simplify): Likewise.
12244 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12245 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12246 * ipa-devirt.c (add_type_duplicate): Likewise.
12247 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12248 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12249 * lra.c (lra_create_copy): Likewise.
12250 * lto-streamer-out.c (DFS::DFS): Likewise.
12251 * modulo-sched.c (get_sched_window): Likewise.
12252 * omega.c (omega_pretty_print_problem): Likewise.
12253 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12254 * reload1.c (reloads_unique_chain_p): Likewise.
12255 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12256 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12258 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12260 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12261 predicate_mem_writes): Likewise.
12262 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12263 * tree-predcom.c (combine_chains): Likewise.
12264 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12265 refs_may_alias_p_1): Likewise.
12266 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12267 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12268 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12269 number_of_iterations_cond): Likewise.
12270 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12271 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12272 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12273 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12274 * tree-vrp.c (extract_range_from_binary_expr_1,
12275 extract_range_from_unary_expr_1): Likewise.
12277 2015-06-20 Marek Polacek <polacek@redhat.com>
12279 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12281 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12284 * config/sh/sh.c (prepare_move_operands): Replace subreg
12285 index term with R0 for base and index addressing.
12287 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12289 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12291 (movsf_aarch64): Change condition from register_operand to
12292 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12293 load1. Change type for alternative 7 to store1.
12294 (movdf_aarch64): Likewise.
12296 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12298 * config/vax/vax.md: Adjust sign/zero extend patterns to
12299 handle SUBREGs in operands[1].
12301 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12303 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12304 of manually swapping.
12305 (expand_vec_perm_interleave2): Likewise.
12307 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12309 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12310 reuse bounds created for abnormal ssa names.
12312 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12314 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12315 (allocate_stack_<mode>): ... this, and add :P on both
12316 match_operand and unspec.
12317 (allocate_stack): New expander.
12319 2015-06-19 Christian Bruel <christian.bruel@st.com>
12323 * config/arm/arm.c (arm_set_current_function): Handle
12324 explicit default options.
12326 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12328 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12329 (zero-extended cmove with mem peephole2): New pattern.
12330 (cmove with mem peephole2): Merge patterns.
12332 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12334 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12336 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12338 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12339 * config/mips/mips.md (*madd4<mode>): Ditto.
12340 (*nmadd3<mode>) Ditto.
12341 (*nmadd4<mode>_fastmath): Ditto.
12342 (*nmadd3<mode>_fastmath): Ditto.
12343 (*nmsub4<mode>): Ditto.
12344 (*nmsub3<mode>): Ditto.
12345 (*nmsub4<mode>_fastmath): Ditto.
12346 (*nmsub3<mode>_fastmath): Ditto.
12348 2015-06-18 Michael Matz <matz@suse.de>
12350 PR middle-end/66253
12351 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12352 grouped strided stores.
12353 (vectorizable_load): Don't use the DR from first_stmt in
12354 the non-SLP grouped strided case.
12356 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12359 * function.c (assign_bounds): Add arguments assign_regs,
12360 assign_special, assign_bt.
12361 (assign_parms): For vararg functions handle bounds in BT
12362 and special slots after incoming vararg bounds.
12364 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12366 PR middle-end/66568
12367 * cfgexpand.c (expand_return): Handle missing bounds.
12368 (expand_gimple_stmt_1): Likewise.
12369 * tree-chkp.c (chkp_expand_zero_bounds): New.
12370 * tree-chkp.h (chkp_expand_zero_bounds): New.
12372 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12374 PR middle-end/66567
12375 * ipa-chkp.c (chkp_maybe_create_clone): Require
12376 functions to be instrumentable.
12377 * tree-chkp.c (chkp_replace_function_pointer): Use
12378 chkp_instrumentable_p instead of attribute check.
12380 2015-06-18 Richard Biener <rguenther@suse.de>
12382 PR tree-optimization/66510
12383 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12384 number of vector loads for SLP permuted loads.
12385 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12386 check the stride for loop vectorization.
12387 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12388 vectorization factor.
12389 (vect_analyze_group_access): If the group size is not a power
12390 of two require a epilogue loop.
12391 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12392 compute and optimizing and alias test pruning after final
12393 vectorization factor computation.
12394 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12396 (vect_transform_slp_perm_load): Properly compute the original
12397 number of vector load stmts.
12399 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12401 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12402 "unlikely character , in @var" warning.
12404 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12406 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12407 (ix86_function_arg_advance): Ditto.
12408 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12410 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12412 * function.h (struct rtl_data): Remove struct and accessor macros.
12413 * emit-rtl.h (struct rtl_data): Relocate to here.
12414 * Makefile.in (GTFILES): Add emit-rtl.h.
12415 * df-core.c: Include emit-rtl.h.
12416 * genattrtab.c: Likewise.
12417 * genconditions.c: Likewise.
12418 * genpreds.c: Likewise.
12419 * genrecog.c: Likewise.
12420 * regcprop.c: Likewise.
12421 * resource.c: Likewise.
12422 * sched-rgn.c: Likewise.
12423 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12424 * config/i386/winnt.c: Likewise.
12426 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12428 PR middle-end/66429
12429 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12430 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12431 and has_force_vectorize_loops flags from cfun into
12433 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12434 if simduid is non-NULL.
12435 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12436 * passes.def (pass_simduid_cleanup): Add new pass after loop
12438 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12439 indirection from htab argument's type.
12440 (shrink_simd_arrays): New function.
12441 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12442 Don't call adjust_simduid_builtins if there are no loops.
12443 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12444 (pass_simduid_cleanup::execute): New method.
12445 (make_pass_simduid_cleanup): New function.
12447 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12449 * tree-core.h (tree_target_option): Make opts field a pointer to a
12450 cl_target_option instead of an instance of the struct.
12451 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12453 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12454 TARGET_OPTION_NODE.
12455 (copy_node_stat): Allocate and copy struct cl_target_option.
12457 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12459 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12460 Remove conditional exposure of prototypes.
12461 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12462 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12463 definitions in tree.h with functions.
12464 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12466 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12468 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12470 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12471 (*cmp<mode>_signed): ... this.
12472 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12473 (*cmp<mode>_unsigned): ... this. Remove %b.
12475 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12477 * coretypes.h: Include input.h and as-a.h.
12478 * rtl.h: Include input.h and as-a.h for generator files.
12479 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12480 * vec.c: Don't include diagnostic-core.h.
12481 * alias.c: Do not include input.h, line-map.h or is-a.h.
12482 * asan.c: Likewise.
12483 * attribs.c: Likewise.
12484 * auto-inc-dec.c: Likewise.
12485 * auto-profile.c: Likewise.
12486 * bb-reorder.c: Likewise.
12487 * bt-load.c: Likewise.
12488 * builtins.c: Likewise.
12489 * caller-save.c: Likewise.
12490 * calls.c: Likewise.
12491 * ccmp.c: Likewise.
12493 * cfganal.c: Likewise.
12494 * cfgbuild.c: Likewise.
12495 * cfgcleanup.c: Likewise.
12496 * cfgexpand.c: Likewise.
12497 * cfghooks.c: Likewise.
12498 * cfgloop.c: Likewise.
12499 * cfgloop.h: Likewise.
12500 * cfgloopanal.c: Likewise.
12501 * cfgloopmanip.c: Likewise.
12502 * cfgrtl.c: Likewise.
12503 * cgraph.c: Likewise.
12504 * cgraphbuild.c: Likewise.
12505 * cgraphclones.c: Likewise.
12506 * cgraphunit.c: Likewise.
12507 * cilk-common.c: Likewise.
12508 * combine-stack-adj.c: Likewise.
12509 * combine.c: Likewise.
12510 * compare-elim.c: Likewise.
12511 * convert.c: Likewise.
12512 * coverage.c: Likewise.
12513 * cppbuiltin.c: Likewise.
12514 * cprop.c: Likewise.
12516 * cselib.c: Likewise.
12517 * data-streamer-in.c: Likewise.
12518 * data-streamer-out.c: Likewise.
12519 * data-streamer.c: Likewise.
12520 * dbxout.c: Likewise.
12523 * debug.c: Likewise.
12524 * df-core.c: Likewise.
12525 * df-problems.c: Likewise.
12526 * df-scan.c: Likewise.
12529 * diagnostic-core.h: Likewise.
12530 * diagnostic.c: Likewise.
12531 * dojump.c: Likewise.
12532 * dominance.c: Likewise.
12533 * domwalk.c: Likewise.
12534 * double-int.c: Likewise.
12536 * dumpfile.c: Likewise.
12537 * dumpfile.h: Likewise.
12538 * dwarf2asm.c: Likewise.
12539 * dwarf2cfi.c: Likewise.
12540 * dwarf2out.c: Likewise.
12541 * emit-rtl.c: Likewise.
12542 * et-forest.c: Likewise.
12543 * except.c: Likewise.
12544 * explow.c: Likewise.
12545 * expmed.c: Likewise.
12546 * expr.c: Likewise.
12547 * final.c: Likewise.
12548 * fixed-value.c: Likewise.
12549 * fold-const.c: Likewise.
12550 * function.c: Likewise.
12551 * fwprop.c: Likewise.
12552 * gcc-plugin.h: Likewise.
12553 * gcse.c: Likewise.
12554 * generic-match-head.c: Likewise.
12555 * ggc-page.c: Likewise.
12556 * gimple-builder.c: Likewise.
12557 * gimple-expr.c: Likewise.
12558 * gimple-fold.c: Likewise.
12559 * gimple-iterator.c: Likewise.
12560 * gimple-low.c: Likewise.
12561 * gimple-match-head.c: Likewise.
12562 * gimple-pretty-print.c: Likewise.
12563 * gimple-ssa-isolate-paths.c: Likewise.
12564 * gimple-ssa-strength-reduction.c: Likewise.
12565 * gimple-streamer-in.c: Likewise.
12566 * gimple-streamer-out.c: Likewise.
12567 * gimple-streamer.h: Likewise.
12568 * gimple-walk.c: Likewise.
12569 * gimple.c: Likewise.
12570 * gimplify-me.c: Likewise.
12571 * gimplify.c: Likewise.
12572 * godump.c: Likewise.
12573 * graph.c: Likewise.
12574 * graphite-blocking.c: Likewise.
12575 * graphite-dependences.c: Likewise.
12576 * graphite-interchange.c: Likewise.
12577 * graphite-isl-ast-to-gimple.c: Likewise.
12578 * graphite-optimize-isl.c: Likewise.
12579 * graphite-poly.c: Likewise.
12580 * graphite-scop-detection.c: Likewise.
12581 * graphite-sese-to-poly.c: Likewise.
12582 * graphite.c: Likewise.
12583 * haifa-sched.c: Likewise.
12584 * hw-doloop.c: Likewise.
12585 * ifcvt.c: Likewise.
12586 * init-regs.c: Likewise.
12587 * input.c: Likewise.
12588 * internal-fn.c: Likewise.
12589 * ipa-chkp.c: Likewise.
12590 * ipa-comdats.c: Likewise.
12591 * ipa-cp.c: Likewise.
12592 * ipa-devirt.c: Likewise.
12593 * ipa-icf-gimple.c: Likewise.
12594 * ipa-icf.c: Likewise.
12595 * ipa-inline-analysis.c: Likewise.
12596 * ipa-inline-transform.c: Likewise.
12597 * ipa-inline.c: Likewise.
12598 * ipa-polymorphic-call.c: Likewise.
12599 * ipa-profile.c: Likewise.
12600 * ipa-prop.c: Likewise.
12601 * ipa-pure-const.c: Likewise.
12602 * ipa-ref.c: Likewise.
12603 * ipa-reference.c: Likewise.
12604 * ipa-split.c: Likewise.
12605 * ipa-utils.c: Likewise.
12606 * ipa-visibility.c: Likewise.
12608 * ira-build.c: Likewise.
12609 * ira-color.c: Likewise.
12610 * ira-conflicts.c: Likewise.
12611 * ira-costs.c: Likewise.
12612 * ira-emit.c: Likewise.
12613 * ira-lives.c: Likewise.
12615 * jump.c: Likewise.
12616 * langhooks.c: Likewise.
12618 * loop-doloop.c: Likewise.
12619 * loop-init.c: Likewise.
12620 * loop-invariant.c: Likewise.
12621 * loop-iv.c: Likewise.
12622 * loop-unroll.c: Likewise.
12623 * lower-subreg.c: Likewise.
12624 * lra-assigns.c: Likewise.
12625 * lra-coalesce.c: Likewise.
12626 * lra-constraints.c: Likewise.
12627 * lra-eliminations.c: Likewise.
12628 * lra-lives.c: Likewise.
12629 * lra-remat.c: Likewise.
12630 * lra-spills.c: Likewise.
12632 * lto-cgraph.c: Likewise.
12633 * lto-compress.c: Likewise.
12634 * lto-opts.c: Likewise.
12635 * lto-section-in.c: Likewise.
12636 * lto-section-out.c: Likewise.
12637 * lto-streamer-in.c: Likewise.
12638 * lto-streamer-out.c: Likewise.
12639 * lto-streamer.c: Likewise.
12641 * mode-switching.c: Likewise.
12642 * modulo-sched.c: Likewise.
12643 * omega.c: Likewise.
12644 * omp-low.c: Likewise.
12645 * optabs.c: Likewise.
12646 * opts-global.c: Likewise.
12647 * opts.h: Likewise.
12648 * passes.c: Likewise.
12649 * plugin.c: Likewise.
12650 * postreload-gcse.c: Likewise.
12651 * postreload.c: Likewise.
12652 * predict.c: Likewise.
12653 * pretty-print.h: Likewise.
12654 * print-rtl.c: Likewise.
12655 * print-tree.c: Likewise.
12656 * profile.c: Likewise.
12657 * real.c: Likewise.
12658 * realmpfr.c: Likewise.
12659 * recog.c: Likewise.
12661 * reg-stack.c: Likewise.
12662 * regcprop.c: Likewise.
12663 * reginfo.c: Likewise.
12664 * regrename.c: Likewise.
12665 * regstat.c: Likewise.
12666 * reload.c: Likewise.
12667 * reload1.c: Likewise.
12668 * reorg.c: Likewise.
12669 * resource.c: Likewise.
12670 * rtl-chkp.c: Likewise.
12671 * rtl-error.c: Likewise.
12672 * rtlanal.c: Likewise.
12673 * rtlhooks.c: Likewise.
12674 * sanopt.c: Likewise.
12675 * sched-deps.c: Likewise.
12676 * sched-ebb.c: Likewise.
12677 * sched-rgn.c: Likewise.
12678 * sched-vis.c: Likewise.
12679 * sdbout.c: Likewise.
12680 * sel-sched-dump.c: Likewise.
12681 * sel-sched-ir.c: Likewise.
12682 * sel-sched.c: Likewise.
12683 * sese.c: Likewise.
12684 * shrink-wrap.c: Likewise.
12685 * simplify-rtx.c: Likewise.
12686 * stack-ptr-mod.c: Likewise.
12687 * statistics.c: Likewise.
12688 * stmt.c: Likewise.
12689 * stor-layout.c: Likewise.
12690 * store-motion.c: Likewise.
12691 * streamer-hooks.c: Likewise.
12692 * stringpool.c: Likewise.
12693 * symtab.c: Likewise.
12694 * target-globals.c: Likewise.
12695 * targhooks.c: Likewise.
12696 * toplev.c: Likewise.
12697 * tracer.c: Likewise.
12698 * trans-mem.c: Likewise.
12699 * tree-affine.c: Likewise.
12700 * tree-browser.c: Likewise.
12701 * tree-call-cdce.c: Likewise.
12702 * tree-cfg.c: Likewise.
12703 * tree-cfgcleanup.c: Likewise.
12704 * tree-chkp-opt.c: Likewise.
12705 * tree-chkp.c: Likewise.
12706 * tree-chrec.c: Likewise.
12707 * tree-complex.c: Likewise.
12708 * tree-data-ref.c: Likewise.
12709 * tree-dfa.c: Likewise.
12710 * tree-diagnostic.c: Likewise.
12711 * tree-dump.c: Likewise.
12712 * tree-eh.c: Likewise.
12713 * tree-emutls.c: Likewise.
12714 * tree-if-conv.c: Likewise.
12715 * tree-inline.c: Likewise.
12716 * tree-into-ssa.c: Likewise.
12717 * tree-iterator.c: Likewise.
12718 * tree-loop-distribution.c: Likewise.
12719 * tree-nested.c: Likewise.
12720 * tree-nrv.c: Likewise.
12721 * tree-object-size.c: Likewise.
12722 * tree-outof-ssa.c: Likewise.
12723 * tree-parloops.c: Likewise.
12724 * tree-phinodes.c: Likewise.
12725 * tree-predcom.c: Likewise.
12726 * tree-pretty-print.c: Likewise.
12727 * tree-profile.c: Likewise.
12728 * tree-scalar-evolution.c: Likewise.
12729 * tree-sra.c: Likewise.
12730 * tree-ssa-address.c: Likewise.
12731 * tree-ssa-alias.c: Likewise.
12732 * tree-ssa-ccp.c: Likewise.
12733 * tree-ssa-coalesce.c: Likewise.
12734 * tree-ssa-copy.c: Likewise.
12735 * tree-ssa-copyrename.c: Likewise.
12736 * tree-ssa-dce.c: Likewise.
12737 * tree-ssa-dom.c: Likewise.
12738 * tree-ssa-dse.c: Likewise.
12739 * tree-ssa-forwprop.c: Likewise.
12740 * tree-ssa-ifcombine.c: Likewise.
12741 * tree-ssa-live.c: Likewise.
12742 * tree-ssa-loop-ch.c: Likewise.
12743 * tree-ssa-loop-im.c: Likewise.
12744 * tree-ssa-loop-ivcanon.c: Likewise.
12745 * tree-ssa-loop-ivopts.c: Likewise.
12746 * tree-ssa-loop-manip.c: Likewise.
12747 * tree-ssa-loop-niter.c: Likewise.
12748 * tree-ssa-loop-prefetch.c: Likewise.
12749 * tree-ssa-loop-unswitch.c: Likewise.
12750 * tree-ssa-loop.c: Likewise.
12751 * tree-ssa-math-opts.c: Likewise.
12752 * tree-ssa-operands.c: Likewise.
12753 * tree-ssa-phiopt.c: Likewise.
12754 * tree-ssa-phiprop.c: Likewise.
12755 * tree-ssa-pre.c: Likewise.
12756 * tree-ssa-propagate.c: Likewise.
12757 * tree-ssa-reassoc.c: Likewise.
12758 * tree-ssa-sccvn.c: Likewise.
12759 * tree-ssa-scopedtables.c: Likewise.
12760 * tree-ssa-sink.c: Likewise.
12761 * tree-ssa-strlen.c: Likewise.
12762 * tree-ssa-structalias.c: Likewise.
12763 * tree-ssa-tail-merge.c: Likewise.
12764 * tree-ssa-ter.c: Likewise.
12765 * tree-ssa-threadedge.c: Likewise.
12766 * tree-ssa-threadupdate.c: Likewise.
12767 * tree-ssa-uncprop.c: Likewise.
12768 * tree-ssa-uninit.c: Likewise.
12769 * tree-ssa.c: Likewise.
12770 * tree-ssanames.c: Likewise.
12771 * tree-stdarg.c: Likewise.
12772 * tree-streamer-in.c: Likewise.
12773 * tree-streamer-out.c: Likewise.
12774 * tree-streamer.c: Likewise.
12775 * tree-switch-conversion.c: Likewise.
12776 * tree-tailcall.c: Likewise.
12777 * tree-vect-data-refs.c: Likewise.
12778 * tree-vect-generic.c: Likewise.
12779 * tree-vect-loop-manip.c: Likewise.
12780 * tree-vect-loop.c: Likewise.
12781 * tree-vect-patterns.c: Likewise.
12782 * tree-vect-slp.c: Likewise.
12783 * tree-vect-stmts.c: Likewise.
12784 * tree-vectorizer.c: Likewise.
12785 * tree-vrp.c: Likewise.
12786 * tree.c: Likewise.
12787 * tsan.c: Likewise.
12788 * ubsan.c: Likewise.
12789 * valtrack.c: Likewise.
12790 * value-prof.c: Likewise.
12791 * var-tracking.c: Likewise.
12792 * varasm.c: Likewise.
12793 * varpool.c: Likewise.
12794 * vmsdbgout.c: Likewise.
12795 * vtable-verify.c: Likewise.
12797 * wide-int.cc: Likewise.
12798 * xcoffout.c: Likewise.
12799 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12800 * common/common-targhooks.c: Likewise.
12801 * config/aarch64/aarch64-builtins.c: Likewise.
12802 * config/aarch64/aarch64.c: Likewise.
12803 * config/alpha/alpha.c: Likewise.
12804 * config/arc/arc.c: Likewise.
12805 * config/arm/aarch-common.c: Likewise.
12806 * config/arm/arm-builtins.c: Likewise.
12807 * config/arm/arm-c.c: Likewise.
12808 * config/arm/arm.c: Likewise.
12809 * config/avr/avr-c.c: Likewise.
12810 * config/avr/avr-log.c: Likewise.
12811 * config/avr/avr.c: Likewise.
12812 * config/bfin/bfin.c: Likewise.
12813 * config/c6x/c6x.c: Likewise.
12814 * config/cr16/cr16.c: Likewise.
12815 * config/cris/cris.c: Likewise.
12816 * config/darwin-c.c: Likewise.
12817 * config/darwin.c: Likewise.
12818 * config/default-c.c: Likewise.
12819 * config/epiphany/epiphany.c: Likewise.
12820 * config/epiphany/mode-switch-use.c: Likewise.
12821 * config/epiphany/resolve-sw-modes.c: Likewise.
12822 * config/fr30/fr30.c: Likewise.
12823 * config/frv/frv.c: Likewise.
12824 * config/ft32/ft32.c: Likewise.
12825 * config/glibc-c.c: Likewise.
12826 * config/h8300/h8300.c: Likewise.
12827 * config/i386/i386-c.c: Likewise.
12828 * config/i386/i386.c: Likewise.
12829 * config/i386/msformat-c.c: Likewise.
12830 * config/i386/winnt-cxx.c: Likewise.
12831 * config/i386/winnt-stubs.c: Likewise.
12832 * config/i386/winnt.c: Likewise.
12833 * config/ia64/ia64-c.c: Likewise.
12834 * config/ia64/ia64.c: Likewise.
12835 * config/iq2000/iq2000.c: Likewise.
12836 * config/lm32/lm32.c: Likewise.
12837 * config/m32c/m32c-pragma.c: Likewise.
12838 * config/m32c/m32c.c: Likewise.
12839 * config/m32r/m32r.c: Likewise.
12840 * config/m68k/m68k.c: Likewise.
12841 * config/mcore/mcore.c: Likewise.
12842 * config/mep/mep-pragma.c: Likewise.
12843 * config/mep/mep.c: Likewise.
12844 * config/microblaze/microblaze-c.c: Likewise.
12845 * config/microblaze/microblaze.c: Likewise.
12846 * config/mips/mips.c: Likewise.
12847 * config/mmix/mmix.c: Likewise.
12848 * config/mn10300/mn10300.c: Likewise.
12849 * config/moxie/moxie.c: Likewise.
12850 * config/msp430/msp430-c.c: Likewise.
12851 * config/msp430/msp430.c: Likewise.
12852 * config/nds32/nds32-cost.c: Likewise.
12853 * config/nds32/nds32-fp-as-gp.c: Likewise.
12854 * config/nds32/nds32-intrinsic.c: Likewise.
12855 * config/nds32/nds32-isr.c: Likewise.
12856 * config/nds32/nds32-md-auxiliary.c: Likewise.
12857 * config/nds32/nds32-memory-manipulation.c: Likewise.
12858 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12859 * config/nds32/nds32-predicates.c: Likewise.
12860 * config/nds32/nds32.c: Likewise.
12861 * config/nios2/nios2.c: Likewise.
12862 * config/nvptx/nvptx.c: Likewise.
12863 * config/pa/pa.c: Likewise.
12864 * config/pdp11/pdp11.c: Likewise.
12865 * config/rl78/rl78-c.c: Likewise.
12866 * config/rl78/rl78.c: Likewise.
12867 * config/rs6000/rs6000-c.c: Likewise.
12868 * config/rs6000/rs6000.c: Likewise.
12869 * config/rx/rx.c: Likewise.
12870 * config/s390/s390-c.c: Likewise.
12871 * config/s390/s390.c: Likewise.
12872 * config/sh/sh-c.c: Likewise.
12873 * config/sh/sh-mem.cc: Likewise.
12874 * config/sh/sh.c: Likewise.
12875 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12876 * config/sh/sh_treg_combine.cc: Likewise.
12877 * config/sol2-c.c: Likewise.
12878 * config/sol2-cxx.c: Likewise.
12879 * config/sol2-stubs.c: Likewise.
12880 * config/sol2.c: Likewise.
12881 * config/sparc/sparc-c.c: Likewise.
12882 * config/sparc/sparc.c: Likewise.
12883 * config/spu/spu-c.c: Likewise.
12884 * config/spu/spu.c: Likewise.
12885 * config/stormy16/stormy16.c: Likewise.
12886 * config/tilegx/mul-tables.c: Likewise.
12887 * config/tilegx/tilegx-c.c: Likewise.
12888 * config/tilegx/tilegx.c: Likewise.
12889 * config/tilepro/mul-tables.c: Likewise.
12890 * config/tilepro/tilepro-c.c: Likewise.
12891 * config/tilepro/tilepro.c: Likewise.
12892 * config/v850/v850-c.c: Likewise.
12893 * config/v850/v850.c: Likewise.
12894 * config/vax/vax.c: Likewise.
12895 * config/visium/visium.c: Likewise.
12896 * config/vms/vms-c.c: Likewise.
12897 * config/vms/vms.c: Likewise.
12898 * config/vxworks.c: Likewise.
12899 * config/winnt-c.c: Likewise.
12900 * config/xtensa/xtensa.c: Likewise.
12902 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
12904 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12906 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12908 2015-06-17 Richard Biener <rguenther@suse.de>
12910 PR tree-optimization/66251
12911 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12912 stmts for SLP strided stores.
12915 2015-05-22 Richard Biener <rguenther@suse.de>
12917 PR tree-optimization/66251
12918 * tree-vect-stmts.c (vectorizable_conversion): Properly
12919 set STMT_VINFO_VEC_STMT even for the SLP case.
12921 2015-05-26 Michael Matz <matz@suse.de>
12923 PR middle-end/66251
12924 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12925 STMT_VINFO_VEC_STMT, also with SLP.
12927 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
12930 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12931 (*avx_addsubv4df3_1s): Ditto.
12932 (*sse3_addsubv2df3_1): Ditto.
12933 (*sse3_addsubv2df3_1s): Ditto.
12934 (*avx_addsubv8sf3_1): Ditto.
12935 (*avx_addsubv8sf3_1s): Ditto.
12936 (*sse3_addsubv4sf3_1): Ditto.
12937 (*sse3_addsubv4sf3_1s): Ditto.
12939 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
12941 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12942 (SYSROOT_SUFFIX_SPEC): Update.
12943 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12944 (STARTFILE_PREFIX_SPEC): Update.
12945 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12946 (MULTILIB_REQUIRED): New.
12947 (MULTILIB_OSDIRNAMES): New.
12948 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12949 (MULTILIB_REQUIRED): New.
12950 (MULTILIB_OSDIRNAMES): New.
12952 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
12954 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12955 * config/aarch64/aarch64-options-extensions.def: Update "fP",
12956 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
12957 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12958 (AARCH64_FL_PAN): New.
12959 (AARCH64_FL_LOR): New.
12960 (AARCH64_FL_RDMA): New.
12961 (AARCH64_FL_FOR_ARCH8_1): New.
12962 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12963 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12965 2015-06-16 Martin Liska <mliska@suse.cz>
12967 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12968 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12971 2015-06-16 Richard Biener <rguenther@suse.de>
12973 * tree-vect-stmts.c (vectorizable_store): Adjust.
12974 (vectorizable_load): Likewise.
12975 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12977 (vect_create_data_ref_ptr): Likewise.
12978 (bump_vector_ptr): Adjust.
12980 2015-06-16 Richard Biener <rguenther@suse.de>
12982 * tree-vect-stmts.c (vectorizable_load): Properly start loads
12983 with the first element if this is grouped loads.
12985 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
12987 * config/arm/arm-protos.h (struct tune_params): Rename
12988 log_op_non_sc to log_op_non_short_circuit, and rename enum
12989 values to expand SC to SHORT_CIRCUIT.
12990 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12991 to LOG_OP_NON_SHORT_CIRCUIT.
12992 (arm_fastmul_tune):Likewise
12993 (arm_strongarm_tune): Likewise.
12994 (arm_xscale_tune): Likewise.
12995 (arm_9e_tune): Likewise.
12996 (arm_marvell_pj4_tune): Likewise.
12997 (arm_v6t2_tune): Likewise.
12998 (arm_cortex_tune): Likewise.
12999 (arm_cortex_a8_tune): Likewise.
13000 (arm_cortex_a7_tune): Likewise.
13001 (arm_cortex_a15_tune): Likewise.
13002 (arm_cortex_a53_tune): Likewise.
13003 (arm_cortex_a57_tune): Likewise.
13004 (arm_xgene1_tune): Likewise.
13005 (arm_cortex_a5_tune): Likewise.
13006 (arm_cortex_a9_tune): Likewise.
13007 (arm_cortex_a12_tune): Likewise.
13008 (arm_v7m_tune): Likewise.
13009 (arm_cortex_m7_tune): Likewise.
13010 (arm_v6m_tune): Likewise.
13011 (arm_fa726te_tune): Likewise.
13013 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13015 * altivec.md: Delete UNSPEC_VMLADDUHM.
13016 (mulv4si3_p8): New pattern.
13017 (mulv4si3): Use it for POWER8.
13018 (mulv8hi3): Use vmladduhm with zero addend.
13019 (altivec_vmladduhm): Descriptive RTL.
13021 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13023 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13024 to use neon_move instead of mov_imm.
13025 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13026 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13028 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13029 aarch64_float_const_zero_rtx_p check before TFmode check.
13030 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13032 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13033 code and attributes to match. Change condition from register_operand
13034 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13035 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13038 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13041 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13042 there is no parent.
13044 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13046 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13047 HOST_WIDE_INT parameter.
13049 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13052 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13053 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13055 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13057 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13059 * rtl.h (classify_insn): Declare.
13060 * emit-rtl.c (classify_insn): Move to...
13061 * rtl.c: ...here and add generator support.
13062 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13063 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13064 * genemit.c (gen_emit_seq): New function.
13065 (gen_expand, gen_split): Use it.
13067 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13069 * tree.c (make_vector_stat): Fix comment to state that the
13070 function returns a VECTOR_CST.
13072 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13074 * gensupport.h (add_implicit_parallel): Declare.
13075 * genrecog.c (add_implicit_parallel): Move to...
13076 * gensupport.c (add_implicit_parallel): ...here.
13077 (process_one_cond_exec): Use it.
13078 * genemit.c (gen_insn): Likewise.
13080 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13083 * passes.c (rest_of_decl_compilation): Do not register globals for
13084 early debug if they are declared in built-ins.
13086 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13088 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13090 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13092 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13094 (noce_try_cmove_arith): Likewise.
13095 (noce_get_alt_condition): Likewise.
13097 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13099 * common/config/i386/i386-common.c
13100 (OPTION_MASK_ISA_MWAITX_SET): New.
13101 (ix86_handle_option): Handle mwaitx.
13102 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13103 (x86_64-*-*): Likewise.
13104 * config/i386/mwaitxintrin.h: New header.
13105 * config/i386/cpuid.h (bit_MWAITX): Define.
13106 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13108 * config/i386/i386.opt (mwaitx): New.
13109 * config/i386/i386-builtin-types.def
13110 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13111 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13112 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13114 (ix86_option_override_internal): Handle new option.
13115 (processor_alias_table): Added PTA_MWAITX.
13116 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13117 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13118 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13119 IX86_BUILTIN_MONITORX built-ins.
13120 * config/i386/i386.h (TARGET_MWAITX): New.
13121 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13123 (mwaitx): New pattern.
13124 (monitorx_<mode>): New pattern.
13125 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13126 * doc/extend.texi: Document monitorx and mwaitx builtins.
13127 * doc/invoke.texi: Document -mmwaitx option.
13129 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13131 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13132 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13134 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13136 * dbxout.c (xcoff_debug_hooks): Provide a function for
13137 register_main_translation_unit hook.
13139 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13141 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13142 variants cases from switch.
13143 (rs6000_post_atomic_barrier): Same.
13144 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13145 (rs6000_expand_atomic_exchange): Same.
13146 (rs6000_expand_atomic_op): Same.
13147 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13148 SYNC variants cases from switch.
13149 (atomic_load): Same.
13150 (atomic_store): Same.
13152 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13154 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13155 CONST_INT for goto.
13157 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13160 * dwarf2out.c (check_die): Check for common duplicate attributes.
13161 (add_location_or_const_value_attribute): Do not add duplicate
13163 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13165 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13166 (gen_type_die_with_usage): Call check_die.
13167 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13169 2015-06-11 Jason Merrill <jason@redhat.com>
13171 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13174 2015-06-11 Marek Polacek <polacek@redhat.com>
13176 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13178 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13181 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13182 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13183 (*addx_extend_sp32): Fix pasto.
13184 (*subx_extend): Rename into...
13185 (*subx_extend_sp32): ...this.
13186 (*adddi3_extend_sp32): Add earlyclobber.
13187 (*subdi3_insn_sp32): Likewise.
13188 (*subdi3_extend_sp32): Likewise.
13189 (*and_not_di_sp32): Likewise.
13190 (*or_not_di_sp32): Likewise.
13191 (*xor_not_di_sp32): Likewise.
13192 (*negdi2_sp32): Likewise.
13193 (*one_cmpldi2_sp32): Likewise.
13195 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13197 * debug.h (struct gcc_debug_hooks): Add a
13198 register_main_translation_unit hook.
13199 * debug.c (do_nothing_debug_hooks): Provide a function for this
13201 * dbxout.c (dbx_debug_hooks): Likewise.
13202 * sdbout.c (sdb_debug_hooks): Likewise.
13203 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13204 * dwarf2out.c (main_translation_unit): New global variable.
13205 (dwarf2out_register_main_translation_unit): New function
13206 implementing the new hook.
13207 (dwarf2_debug_hooks): Assign
13208 dwarf2out_register_main_translation_unit to this new hook.
13209 (dwarf2out_init): Associate any main translation unit to
13212 2015-06-11 Marek Polacek <polacek@redhat.com>
13214 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13216 2015-06-11 Marek Polacek <polacek@redhat.com>
13218 * match.pd: Use single_use throughout.
13220 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13222 * config/arm/arm.c (arm_option_params_internal): When optimising
13223 for speed set max_insns_skipped when arm_restrict_it.
13225 2015-06-11 Christian Bruel <christian.bruel@st.com>
13228 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13230 (arm_cpu_builtins): New function.
13231 (arm_pragma_target_parse): Call arm_cpu_builtins.
13232 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13233 (arm_register_target_pragmas): Likewise.
13234 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13235 Call arm_register_target_pragmas.
13236 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13237 (arm_pragma_target_parse): Likewise.
13239 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13241 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13242 of the second operand.
13244 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13247 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13248 to prepare mask operand for AVX512 modes.
13250 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13253 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13254 if you use a constraint that targets a VSX register, you must use
13255 %x<n> in the template.
13257 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13259 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13260 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13261 (define_insn "trap"): New definition.
13263 2015-06-10 Richard Biener <rguenther@suse.de>
13265 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13267 (vect_supported_load_permutation_p): ... here. Handle
13268 supportable permutations in reductions.
13269 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13270 for vectorizing strided group loads.
13272 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13275 * config/i386/i386.c (ix86_split_long_move): For collisions
13276 involving direct tls segment refs, move the UNSPEC_TP possibly
13277 wrapped in ZERO_EXTEND out of the address for lea, to each of
13280 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13282 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13283 dmb sy. Adjust tabs.
13285 2015-06-10 Tom de Vries <tom@codesourcery.com>
13287 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13289 2015-06-10 Martin Liska <mliska@suse.cz>
13292 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13293 all enum values in mem_alloc_origin.
13294 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13296 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13297 * bitmap.c (bitmap_register): Likewise.
13298 (dump_bitmap_statistics): Likewise.
13299 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13300 (ggc_record_overhead): Likewise.
13301 * hash-map.h: Likewise.
13302 * hash-set.h: Likewise.
13303 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13304 * hash-table.h: Likewise.
13305 * vec.c (vec_prefix::register_overhead): Likewise.
13306 (vec_prefix::release_overhead): Likewise.
13307 (dump_vec_loc_statistics): Likewise.
13309 2015-06-09 Christian Bruel <christian.bruel@st.com>
13312 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13313 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13314 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13315 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13316 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13317 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13318 (arm_valid_target_attribute_p): Likewise.
13319 (arm_set_current_function, arm_can_inline_p): Likewise.
13320 (arm_valid_target_attribute_rec): Likewise.
13321 (arm_previous_fndecl): New variable.
13322 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13323 (TARGET_CAN_INLINE_P): Define.
13324 (arm_asm_trampoline_template): Emit mode.
13325 (arm_file_start): Don't set unified syntax.
13326 (arm_declare_function_name): Set unified syntax and mode.
13327 (arm_option_override): Init target_option_default_node.
13328 and target_option_current_node.
13329 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13330 (*call_symbol): Likewise.
13331 * doc/extend.texi: Document ARM/Thumb target attribute.
13332 * doc/invoke.texi: Likewise.
13334 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13337 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13338 PR rtl-optimization/64164
13339 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13340 * tree-ssa-copyrename.c: Removed.
13341 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13342 -ftree-coalesce-vars.
13343 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13344 * common.opt (ftree-copyrename): Ignore.
13345 (ftree-coalesce-inlined-vars): Likewise.
13346 * doc/invoke.texi: Remove the ignored options above.
13347 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13348 * tree-ssa-coalesce.h: ... here.
13349 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13350 headers required by it.
13351 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13352 across variables when flag_tree_coalesce_vars. Check register
13353 use and promoted modes to allow coalescing. Moved to
13354 tree-ssa-coalesce.c.
13355 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13356 with its member functions to tree-ssa-coalesce.c.
13357 (var_map_base_init): Likewise. Renamed to
13358 compute_samebase_partition_bases.
13359 (partition_view_normal): Drop want_bases parameter.
13360 (partition_view_bitmap): Likewise.
13361 * tree-ssa-live.h: Adjust declarations.
13362 * tree-ssa-coalesce.c: Include explow.h.
13363 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13364 default defs at the entry point.
13365 (dump_part_var_map): New.
13366 (compute_optimized_partition_bases): New, called by...
13367 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13368 of compute_samebase_partition_bases. Adjust.
13369 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13370 * cfgexpand.c (leader_merge): New.
13371 (get_rtl_for_parm_ssa_default_def): New.
13372 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13373 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13374 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13375 redundant MEM attr setting.
13376 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13378 (expand_one_stack_var): ... this. New wrapper to check and
13379 skip already expanded SSA partitions.
13380 (record_alignment_for_reg_var): New, factored out of...
13381 (expand_one_var): ... this.
13382 (expand_one_ssa_partition): New.
13383 (adjust_one_expanded_partition_var): New.
13384 (expand_one_register_var): Check and skip already expanded SSA
13386 (expand_used_vars): Don't create DECLs for anonymous SSA
13387 names. Expand all SSA partitions, then adjust all SSA names.
13388 (pass::execute): Replace the loops that set
13389 SA.partition_to_pseudo from partition leaders and cleared
13390 DECL_RTL for multi-location variables, and that which used to
13391 rename vars and set attrs, with one that clears DECL_RTL and
13392 checks that PARMs and RESULTs default_defs match DECL_RTL.
13393 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13394 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13395 * explow.c (promote_ssa_mode): New.
13396 * explow.h (promote_ssa_mode): Declare.
13397 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13398 * function.c: Include cfgexpand.h.
13399 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13400 (use_register_for_parm_decl): Wrapper for the above to
13401 special-case the result_ptr.
13402 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13403 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13404 multiple locations.
13405 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13406 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13407 (assign_parm_setup_block): Prefer SSA-assigned location.
13408 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13409 if stack_parm is NULL.
13410 (assign_parm_setup_stack): Prefer SSA-assigned location.
13411 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13412 rtl before testing for pointer bounds. Special-case result_ptr.
13413 (expand_function_start): Maybe reset DECL_RTL of result.
13414 Prefer SSA-assigned location for result and static chain.
13415 Factor out DECL_RESULT and SET_DECL_RTL.
13416 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13417 anonymous SSA names. Use promote_ssa_mode.
13418 (get_temp_reg): Likewise.
13419 (remove_ssa_form): Adjust.
13420 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13421 and get its reg_usage for reg invalidation.
13422 (compute_bb_dataflow): Pass it insn.
13423 (emit_notes_in_bb): Likewise.
13424 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13425 fail assert on conversion between unsigned types.
13427 2015-06-09 Tom de Vries <tom@codesourcery.com>
13429 PR tree-optimization/65460
13430 * omp-low.c (expand_omp_target): Set parallelized_function on
13431 cgraph_node for child_fn.
13433 2015-06-09 Tom de Vries <tom@codesourcery.com>
13435 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13436 parallelized_function before add_new_function.
13438 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13440 * gcc-plugin.h: Move decls to plugin.h and include it.
13441 * plugin.h: Relocate decls from gcc-plugin.h
13442 * ggc-page.c: Include required header files.
13443 * passes.c: Likewise.
13444 * cgraphunit.c: Likewise.
13446 2015-06-09 Tom de Vries <tom@codesourcery.com>
13448 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13450 2015-06-09 Jason Merrill <jason@redhat.com>
13453 * toplev.c (check_global_declaration): Don't warn about a clone.
13455 2015-06-09 Marek Polacek <polacek@redhat.com>
13457 PR tree-optimization/66299
13458 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13459 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13462 2015-06-09 Richard Biener <rguenther@suse.de>
13464 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13465 (vect_analyze_slp_instance): Instead do not falsely drop
13468 2015-06-09 Richard Biener <rguenther@suse.de>
13470 PR middle-end/66423
13471 * match.pd: Handle A % (unsigned)(1 << B).
13473 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13475 * varasm.c (output_object_block_htab): Remove.
13476 (output_object_block_compare): New.
13477 (output_object_blocks): Sort named object_blocks before outputting
13480 2015-06-09 Richard Biener <rguenther@suse.de>
13482 PR tree-optimization/66419
13483 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13484 consider GROUP_GAP when detecting a perfect subchain.
13486 2015-06-09 Nick Clifton <nickc@redhat.com>
13488 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13489 place read only data in the .frodata section.
13491 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13493 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13494 (atomic_store<mode>): Likewise.
13496 2015-06-09 Richard Biener <rguenther@suse.de>
13498 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13500 2015-06-09 Richard Biener <rguenther@suse.de>
13502 PR middle-end/66413
13503 * tree-inline.c (insert_init_debug_bind): Unshare value.
13505 2015-06-09 Richard Biener <rguenther@suse.de>
13507 PR tree-optimization/66396
13508 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13509 Rename virtual operands.
13511 2015-06-09 Tom de Vries <tom@codesourcery.com>
13513 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13514 always return false.
13516 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13518 PR rtl-optimization/64164
13519 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13520 * tree-ssa-copyrename.c: Removed.
13521 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13522 -ftree-coalesce-vars.
13523 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13524 * common.opt (ftree-copyrename): Ignore.
13525 (ftree-coalesce-inlined-vars): Likewise.
13526 * doc/invoke.texi: Remove the ignored options above.
13527 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13528 * tree-ssa-coalesce.h: ... here.
13529 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13530 headers required by it.
13531 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13532 across variables when flag_tree_coalesce_vars. Check register
13533 use and promoted modes to allow coalescing. Moved to
13534 tree-ssa-coalesce.c.
13535 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13536 with its member functions to tree-ssa-coalesce.c.
13537 (var_map_base_init): Likewise. Renamed to
13538 compute_samebase_partition_bases.
13539 (partition_view_normal): Drop want_bases parameter.
13540 (partition_view_bitmap): Likewise.
13541 * tree-ssa-live.h: Adjust declarations.
13542 * tree-ssa-coalesce.c: Include explow.h.
13543 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13544 default defs at the entry point.
13545 (dump_part_var_map): New.
13546 (compute_optimized_partition_bases): New, called by...
13547 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13548 of compute_samebase_partition_bases. Adjust.
13549 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13550 * cfgexpand.c (leader_merge): New.
13551 (get_rtl_for_parm_ssa_default_def): New.
13552 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13553 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13554 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13555 redundant MEM attr setting.
13556 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13558 (expand_one_stack_var): ... this. New wrapper to check and
13559 skip already expanded SSA partitions.
13560 (record_alignment_for_reg_var): New, factored out of...
13561 (expand_one_var): ... this.
13562 (expand_one_ssa_partition): New.
13563 (adjust_one_expanded_partition_var): New.
13564 (expand_one_register_var): Check and skip already expanded SSA
13566 (expand_used_vars): Don't create DECLs for anonymous SSA
13567 names. Expand all SSA partitions, then adjust all SSA names.
13568 (pass::execute): Replace the loops that set
13569 SA.partition_to_pseudo from partition leaders and cleared
13570 DECL_RTL for multi-location variables, and that which used to
13571 rename vars and set attrs, with one that clears DECL_RTL and
13572 checks that PARMs and RESULTs default_defs match DECL_RTL.
13573 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13574 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13575 * explow.c (promote_ssa_mode): New.
13576 * explow.h (promote_ssa_mode): Declare.
13577 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13578 * function.c: Include cfgexpand.h.
13579 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13580 (use_register_for_parm_decl): Wrapper for the above to
13581 special-case the result_ptr.
13582 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13583 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13584 multiple locations.
13585 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13586 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13587 (assign_parm_setup_block): Prefer SSA-assigned location.
13588 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13589 if stack_parm is NULL.
13590 (assign_parm_setup_stack): Prefer SSA-assigned location.
13591 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13592 rtl before testing for pointer bounds. Special-case result_ptr.
13593 (expand_function_start): Maybe reset DECL_RTL of result.
13594 Prefer SSA-assigned location for result and static chain.
13595 Factor out DECL_RESULT and SET_DECL_RTL.
13596 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13597 anonymous SSA names. Use promote_ssa_mode.
13598 (get_temp_reg): Likewise.
13599 (remove_ssa_form): Adjust.
13600 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13601 and get its reg_usage for reg invalidation.
13602 (compute_bb_dataflow): Pass it insn.
13603 (emit_notes_in_bb): Likewise.
13604 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13605 fail assert on conversion between unsigned types.
13607 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13610 * tree-inline.c (reset_debug_binding): New.
13611 (reset_debug_bindings): Likewise.
13612 (expand_call_inline): Call it.
13614 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13616 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13619 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13621 * lto-streamer-out.c (lto_output_location): Stream
13622 reserved locations correctly.
13623 * lto-streamer-in.c (lto_output_location): Likewise.
13625 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13627 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13628 * ggc.h: Don't include statistics.h>
13629 * hash-map.h: Remove all includes.
13630 * hash-set.h: Likewise.
13631 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13632 the include list. Remove <new>.
13633 * inchash.h: Remove all includes.
13634 * mem-stats.h: Likewise.
13635 * vec.h: No special processing for generators or ggc.
13636 * alias.c : Adjust include files.
13637 * alloc-pool.c : Likewise.
13638 * alloc-pool.h : Likewise.
13639 * asan.c : Likewise.
13640 * attribs.c : Likewise.
13641 * auto-inc-dec.c : Likewise.
13642 * auto-profile.c : Likewise.
13643 * bb-reorder.c : Likewise.
13644 * bitmap.c : Likewise.
13645 * bitmap.h : Likewise.
13646 * bt-load.c : Likewise.
13647 * builtins.c : Likewise.
13648 * caller-save.c : Likewise.
13649 * calls.c : Likewise.
13650 * ccmp.c : Likewise.
13651 * cfg.c : Likewise.
13652 * cfganal.c : Likewise.
13653 * cfgbuild.c : Likewise.
13654 * cfgcleanup.c : Likewise.
13655 * cfgexpand.c : Likewise.
13656 * cfghooks.c : Likewise.
13657 * cfgloop.c : Likewise.
13658 * cfgloop.h : Likewise.
13659 * cfgloopanal.c : Likewise.
13660 * cfgloopmanip.c : Likewise.
13661 * cfgrtl.c : Likewise.
13662 * cgraph.c : Likewise.
13663 * cgraphbuild.c : Likewise.
13664 * cgraphclones.c : Likewise.
13665 * cgraphunit.c : Likewise.
13666 * cilk-common.c : Likewise.
13667 * combine-stack-adj.c : Likewise.
13668 * combine.c : Likewise.
13669 * compare-elim.c : Likewise.
13670 * context.c : Likewise.
13671 * convert.c : Likewise.
13672 * coverage.c : Likewise.
13673 * cppbuiltin.c : Likewise.
13674 * cprop.c : Likewise.
13675 * cse.c : Likewise.
13676 * cselib.c : Likewise.
13677 * data-streamer-in.c : Likewise.
13678 * data-streamer-out.c : Likewise.
13679 * data-streamer.c : Likewise.
13680 * data-streamer.h : Likewise.
13681 * dbxout.c : Likewise.
13682 * dce.c : Likewise.
13683 * ddg.c : Likewise.
13684 * debug.c : Likewise.
13685 * df-core.c : Likewise.
13686 * df-problems.c : Likewise.
13687 * df-scan.c : Likewise.
13689 * dfp.c : Likewise.
13690 * dojump.c : Likewise.
13691 * dominance.c : Likewise.
13692 * domwalk.c : Likewise.
13693 * double-int.c : Likewise.
13694 * dse.c : Likewise.
13695 * dumpfile.c : Likewise.
13696 * dwarf2asm.c : Likewise.
13697 * dwarf2cfi.c : Likewise.
13698 * dwarf2out.c : Likewise.
13699 * emit-rtl.c : Likewise.
13700 * et-forest.c : Likewise.
13701 * except.c : Likewise.
13702 * except.h : Likewise.
13703 * explow.c : Likewise.
13704 * expmed.c : Likewise.
13705 * expr.c : Likewise.
13706 * final.c : Likewise.
13707 * fixed-value.c : Likewise.
13708 * fold-const.c : Likewise.
13709 * function.c : Likewise.
13710 * fwprop.c : Likewise.
13711 * gcc-plugin.h : Likewise.
13712 * gcc.c : Likewise.
13713 * gcse-common.c : Likewise.
13714 * gcse.c : Likewise.
13715 * genattrtab.c : Likewise.
13716 * genautomata.c : Likewise.
13717 * genconditions.c : Likewise.
13718 * genemit.c : Likewise.
13719 * generic-match-head.c : Likewise.
13720 * genextract.c : Likewise.
13721 * gengtype-state.c : Likewise.
13722 * gengtype.c : Likewise.
13723 * genhooks.c : Likewise.
13724 * genmatch.c : Likewise.
13725 * genmodes.c : Likewise.
13726 * genrecog.c : Likewise.
13727 * gensupport.c : Likewise.
13728 * ggc-common.c : Likewise.
13729 * ggc-internal.h : Likewise.
13730 * ggc-none.c : Likewise.
13731 * ggc-page.c : Likewise.
13732 * gimple-builder.c : Likewise.
13733 * gimple-expr.c : Likewise.
13734 * gimple-fold.c : Likewise.
13735 * gimple-iterator.c : Likewise.
13736 * gimple-low.c : Likewise.
13737 * gimple-match-head.c : Likewise.
13738 * gimple-pretty-print.c : Likewise.
13739 * gimple-ssa-isolate-paths.c : Likewise.
13740 * gimple-ssa-strength-reduction.c : Likewise.
13741 * gimple-ssa.h : Likewise.
13742 * gimple-streamer-in.c : Likewise.
13743 * gimple-streamer-out.c : Likewise.
13744 * gimple-streamer.h : Likewise.
13745 * gimple-walk.c : Likewise.
13746 * gimple.c : Likewise.
13747 * gimplify-me.c : Likewise.
13748 * gimplify.c : Likewise.
13749 * godump.c : Likewise.
13750 * graph.c : Likewise.
13751 * graphds.c : Likewise.
13752 * graphite-blocking.c : Likewise.
13753 * graphite-dependences.c : Likewise.
13754 * graphite-interchange.c : Likewise.
13755 * graphite-isl-ast-to-gimple.c : Likewise.
13756 * graphite-optimize-isl.c : Likewise.
13757 * graphite-poly.c : Likewise.
13758 * graphite-scop-detection.c : Likewise.
13759 * graphite-sese-to-poly.c : Likewise.
13760 * graphite.c : Likewise.
13761 * haifa-sched.c : Likewise.
13762 * hard-reg-set.h : Likewise.
13763 * hw-doloop.c : Likewise.
13764 * ifcvt.c : Likewise.
13765 * inchash.c : Likewise.
13766 * incpath.c : Likewise.
13767 * init-regs.c : Likewise.
13768 * input.c : Likewise.
13769 * internal-fn.c : Likewise.
13770 * ipa-chkp.c : Likewise.
13771 * ipa-comdats.c : Likewise.
13772 * ipa-cp.c : Likewise.
13773 * ipa-devirt.c : Likewise.
13774 * ipa-icf-gimple.c : Likewise.
13775 * ipa-icf.c : Likewise.
13776 * ipa-inline-analysis.c : Likewise.
13777 * ipa-inline-transform.c : Likewise.
13778 * ipa-inline.c : Likewise.
13779 * ipa-polymorphic-call.c : Likewise.
13780 * ipa-profile.c : Likewise.
13781 * ipa-prop.c : Likewise.
13782 * ipa-pure-const.c : Likewise.
13783 * ipa-ref.c : Likewise.
13784 * ipa-reference.c : Likewise.
13785 * ipa-split.c : Likewise.
13786 * ipa-utils.c : Likewise.
13787 * ipa-visibility.c : Likewise.
13788 * ipa.c : Likewise.
13789 * ira-build.c : Likewise.
13790 * ira-color.c : Likewise.
13791 * ira-conflicts.c : Likewise.
13792 * ira-costs.c : Likewise.
13793 * ira-emit.c : Likewise.
13794 * ira-lives.c : Likewise.
13795 * ira.c : Likewise.
13796 * jump.c : Likewise.
13797 * langhooks.c : Likewise.
13798 * lcm.c : Likewise.
13799 * libfuncs.h : Likewise.
13800 * lists.c : Likewise.
13801 * loop-doloop.c : Likewise.
13802 * loop-init.c : Likewise.
13803 * loop-invariant.c : Likewise.
13804 * loop-iv.c : Likewise.
13805 * loop-unroll.c : Likewise.
13806 * lower-subreg.c : Likewise.
13807 * lra-assigns.c : Likewise.
13808 * lra-coalesce.c : Likewise.
13809 * lra-constraints.c : Likewise.
13810 * lra-eliminations.c : Likewise.
13811 * lra-lives.c : Likewise.
13812 * lra-remat.c : Likewise.
13813 * lra-spills.c : Likewise.
13814 * lra.c : Likewise.
13815 * lto-cgraph.c : Likewise.
13816 * lto-compress.c : Likewise.
13817 * lto-opts.c : Likewise.
13818 * lto-section-in.c : Likewise.
13819 * lto-section-out.c : Likewise.
13820 * lto-streamer-in.c : Likewise.
13821 * lto-streamer-out.c : Likewise.
13822 * lto-streamer.c : Likewise.
13823 * lto-streamer.h : Likewise.
13824 * mcf.c : Likewise.
13825 * mode-switching.c : Likewise.
13826 * modulo-sched.c : Likewise.
13827 * omega.c : Likewise.
13828 * omp-low.c : Likewise.
13829 * optabs.c : Likewise.
13830 * opts-global.c : Likewise.
13831 * opts.h : Likewise.
13832 * passes.c : Likewise.
13833 * plugin.c : Likewise.
13834 * postreload-gcse.c : Likewise.
13835 * postreload.c : Likewise.
13836 * predict.c : Likewise.
13837 * print-rtl.c : Likewise.
13838 * print-tree.c : Likewise.
13839 * profile.c : Likewise.
13840 * read-md.c : Likewise.
13841 * read-md.h : Likewise.
13842 * read-rtl.c : Likewise.
13843 * real.c : Likewise.
13844 * realmpfr.c : Likewise.
13845 * recog.c : Likewise.
13846 * ree.c : Likewise.
13847 * reg-stack.c : Likewise.
13848 * regcprop.c : Likewise.
13849 * reginfo.c : Likewise.
13850 * regrename.c : Likewise.
13851 * regstat.c : Likewise.
13852 * reload.c : Likewise.
13853 * reload1.c : Likewise.
13854 * reorg.c : Likewise.
13855 * resource.c : Likewise.
13856 * rtl-chkp.c : Likewise.
13857 * rtl.c : Likewise.
13858 * rtl.h : Likewise.
13859 * rtlanal.c : Likewise.
13860 * rtlhash.c : Likewise.
13861 * rtlhash.h : Likewise.
13862 * rtlhooks.c : Likewise.
13863 * sanopt.c : Likewise.
13864 * sched-deps.c : Likewise.
13865 * sched-ebb.c : Likewise.
13866 * sched-rgn.c : Likewise.
13867 * sched-vis.c : Likewise.
13868 * sdbout.c : Likewise.
13869 * sel-sched-dump.c : Likewise.
13870 * sel-sched-ir.c : Likewise.
13871 * sel-sched-ir.h : Likewise.
13872 * sel-sched.c : Likewise.
13873 * sese.c : Likewise.
13874 * shrink-wrap.c : Likewise.
13875 * shrink-wrap.h : Likewise.
13876 * simplify-rtx.c : Likewise.
13877 * stack-ptr-mod.c : Likewise.
13878 * statistics.c : Likewise.
13879 * stmt.c : Likewise.
13880 * stor-layout.c : Likewise.
13881 * store-motion.c : Likewise.
13882 * stringpool.c : Likewise.
13883 * symtab.c : Likewise.
13884 * target-globals.c : Likewise.
13885 * targhooks.c : Likewise.
13886 * tlink.c : Likewise.
13887 * toplev.c : Likewise.
13888 * tracer.c : Likewise.
13889 * trans-mem.c : Likewise.
13890 * tree-affine.c : Likewise.
13891 * tree-affine.h : Likewise.
13892 * tree-browser.c : Likewise.
13893 * tree-call-cdce.c : Likewise.
13894 * tree-cfg.c : Likewise.
13895 * tree-cfgcleanup.c : Likewise.
13896 * tree-chkp-opt.c : Likewise.
13897 * tree-chkp.c : Likewise.
13898 * tree-chrec.c : Likewise.
13899 * tree-complex.c : Likewise.
13900 * tree-data-ref.c : Likewise.
13901 * tree-dfa.c : Likewise.
13902 * tree-diagnostic.c : Likewise.
13903 * tree-dump.c : Likewise.
13904 * tree-eh.c : Likewise.
13905 * tree-eh.h : Likewise.
13906 * tree-emutls.c : Likewise.
13907 * tree-hasher.h : Likewise.
13908 * tree-if-conv.c : Likewise.
13909 * tree-inline.c : Likewise.
13910 * tree-inline.h : Likewise.
13911 * tree-into-ssa.c : Likewise.
13912 * tree-iterator.c : Likewise.
13913 * tree-loop-distribution.c : Likewise.
13914 * tree-nested.c : Likewise.
13915 * tree-nrv.c : Likewise.
13916 * tree-object-size.c : Likewise.
13917 * tree-outof-ssa.c : Likewise.
13918 * tree-parloops.c : Likewise.
13919 * tree-phinodes.c : Likewise.
13920 * tree-predcom.c : Likewise.
13921 * tree-pretty-print.c : Likewise.
13922 * tree-profile.c : Likewise.
13923 * tree-scalar-evolution.c : Likewise.
13924 * tree-sra.c : Likewise.
13925 * tree-ssa-address.c : Likewise.
13926 * tree-ssa-alias.c : Likewise.
13927 * tree-ssa-ccp.c : Likewise.
13928 * tree-ssa-coalesce.c : Likewise.
13929 * tree-ssa-copy.c : Likewise.
13930 * tree-ssa-copyrename.c : Likewise.
13931 * tree-ssa-dce.c : Likewise.
13932 * tree-ssa-dom.c : Likewise.
13933 * tree-ssa-dse.c : Likewise.
13934 * tree-ssa-forwprop.c : Likewise.
13935 * tree-ssa-ifcombine.c : Likewise.
13936 * tree-ssa-live.c : Likewise.
13937 * tree-ssa-loop-ch.c : Likewise.
13938 * tree-ssa-loop-im.c : Likewise.
13939 * tree-ssa-loop-ivcanon.c : Likewise.
13940 * tree-ssa-loop-ivopts.c : Likewise.
13941 * tree-ssa-loop-manip.c : Likewise.
13942 * tree-ssa-loop-niter.c : Likewise.
13943 * tree-ssa-loop-prefetch.c : Likewise.
13944 * tree-ssa-loop-unswitch.c : Likewise.
13945 * tree-ssa-loop.c : Likewise.
13946 * tree-ssa-math-opts.c : Likewise.
13947 * tree-ssa-operands.c : Likewise.
13948 * tree-ssa-phiopt.c : Likewise.
13949 * tree-ssa-phiprop.c : Likewise.
13950 * tree-ssa-pre.c : Likewise.
13951 * tree-ssa-propagate.c : Likewise.
13952 * tree-ssa-reassoc.c : Likewise.
13953 * tree-ssa-sccvn.c : Likewise.
13954 * tree-ssa-scopedtables.c : Likewise.
13955 * tree-ssa-sink.c : Likewise.
13956 * tree-ssa-strlen.c : Likewise.
13957 * tree-ssa-structalias.c : Likewise.
13958 * tree-ssa-tail-merge.c : Likewise.
13959 * tree-ssa-ter.c : Likewise.
13960 * tree-ssa-threadedge.c : Likewise.
13961 * tree-ssa-threadupdate.c : Likewise.
13962 * tree-ssa-uncprop.c : Likewise.
13963 * tree-ssa-uninit.c : Likewise.
13964 * tree-ssa.c : Likewise.
13965 * tree-ssanames.c : Likewise.
13966 * tree-stdarg.c : Likewise.
13967 * tree-streamer-in.c : Likewise.
13968 * tree-streamer-out.c : Likewise.
13969 * tree-streamer.c : Likewise.
13970 * tree-streamer.h : Likewise.
13971 * tree-switch-conversion.c : Likewise.
13972 * tree-tailcall.c : Likewise.
13973 * tree-vect-data-refs.c : Likewise.
13974 * tree-vect-generic.c : Likewise.
13975 * tree-vect-loop-manip.c : Likewise.
13976 * tree-vect-loop.c : Likewise.
13977 * tree-vect-patterns.c : Likewise.
13978 * tree-vect-slp.c : Likewise.
13979 * tree-vect-stmts.c : Likewise.
13980 * tree-vectorizer.c : Likewise.
13981 * tree-vectorizer.h : Likewise.
13982 * tree-vrp.c : Likewise.
13983 * tree.c : Likewise.
13984 * tsan.c : Likewise.
13985 * ubsan.c : Likewise.
13986 * valtrack.c : Likewise.
13987 * valtrack.h : Likewise.
13988 * value-prof.c : Likewise.
13989 * var-tracking.c : Likewise.
13990 * varasm.c : Likewise.
13991 * varpool.c : Likewise.
13993 * vmsdbgout.c : Likewise.
13994 * vtable-verify.c : Likewise.
13995 * vtable-verify.h : Likewise.
13996 * web.c : Likewise.
13997 * wide-int.cc : Likewise.
13998 * xcoffout.c : Likewise.
13999 * config/aarch64/aarch64-builtins.c : Likewise.
14000 * config/aarch64/aarch64.c : Likewise.
14001 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14002 * config/alpha/alpha.c : Likewise.
14003 * config/arc/arc.c : Likewise.
14004 * config/arm/aarch-common.c : Likewise.
14005 * config/arm/arm-builtins.c : Likewise.
14006 * config/arm/arm-c.c : Likewise.
14007 * config/arm/arm.c : Likewise.
14008 * config/avr/avr-c.c : Likewise.
14009 * config/avr/avr-log.c : Likewise.
14010 * config/avr/avr.c : Likewise.
14011 * config/bfin/bfin.c : Likewise.
14012 * config/c6x/c6x.c : Likewise.
14013 * config/cr16/cr16.c : Likewise.
14014 * config/cris/cris.c : Likewise.
14015 * config/darwin-c.c : Likewise.
14016 * config/darwin.c : Likewise.
14017 * config/default-c.c : Likewise.
14018 * config/epiphany/epiphany.c : Likewise.
14019 * config/epiphany/mode-switch-use.c : Likewise.
14020 * config/epiphany/resolve-sw-modes.c : Likewise.
14021 * config/fr30/fr30.c : Likewise.
14022 * config/frv/frv.c : Likewise.
14023 * config/ft32/ft32.c : Likewise.
14024 * config/glibc-c.c : Likewise.
14025 * config/h8300/h8300.c : Likewise.
14026 * config/i386/i386-c.c : Likewise.
14027 * config/i386/i386.c : Likewise.
14028 * config/i386/msformat-c.c : Likewise.
14029 * config/i386/winnt-cxx.c : Likewise.
14030 * config/i386/winnt-stubs.c : Likewise.
14031 * config/i386/winnt.c : Likewise.
14032 * config/ia64/ia64-c.c : Likewise.
14033 * config/ia64/ia64.c : Likewise.
14034 * config/iq2000/iq2000.c : Likewise.
14035 * config/lm32/lm32.c : Likewise.
14036 * config/m32c/m32c-pragma.c : Likewise.
14037 * config/m32c/m32c.c : Likewise.
14038 * config/m32r/m32r.c : Likewise.
14039 * config/m68k/m68k.c : Likewise.
14040 * config/mcore/mcore.c : Likewise.
14041 * config/mep/mep-pragma.c : Likewise.
14042 * config/mep/mep.c : Likewise.
14043 * config/microblaze/microblaze-c.c : Likewise.
14044 * config/microblaze/microblaze.c : Likewise.
14045 * config/mips/mips.c : Likewise.
14046 * config/mmix/mmix.c : Likewise.
14047 * config/mn10300/mn10300.c : Likewise.
14048 * config/moxie/moxie.c : Likewise.
14049 * config/msp430/msp430-c.c : Likewise.
14050 * config/msp430/msp430.c : Likewise.
14051 * config/nds32/nds32-cost.c : Likewise.
14052 * config/nds32/nds32-fp-as-gp.c : Likewise.
14053 * config/nds32/nds32-intrinsic.c : Likewise.
14054 * config/nds32/nds32-isr.c : Likewise.
14055 * config/nds32/nds32-md-auxiliary.c : Likewise.
14056 * config/nds32/nds32-memory-manipulation.c : Likewise.
14057 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14058 * config/nds32/nds32-predicates.c : Likewise.
14059 * config/nds32/nds32.c : Likewise.
14060 * config/nios2/nios2.c : Likewise.
14061 * config/nvptx/nvptx.c : Likewise.
14062 * config/pa/pa.c : Likewise.
14063 * config/pdp11/pdp11.c : Likewise.
14064 * config/rl78/rl78-c.c : Likewise.
14065 * config/rl78/rl78.c : Likewise.
14066 * config/rs6000/rs6000-c.c : Likewise.
14067 * config/rs6000/rs6000.c : Likewise.
14068 * config/rx/rx.c : Likewise.
14069 * config/s390/s390-c.c : Likewise.
14070 * config/s390/s390.c : Likewise.
14071 * config/sh/sh-c.c : Likewise.
14072 * config/sh/sh-mem.cc : Likewise.
14073 * config/sh/sh.c : Likewise.
14074 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14075 * config/sh/sh_treg_combine.cc : Likewise.
14076 * config/sol2-c.c : Likewise.
14077 * config/sol2-cxx.c : Likewise.
14078 * config/sol2-stubs.c : Likewise.
14079 * config/sol2.c : Likewise.
14080 * config/sparc/sparc-c.c : Likewise.
14081 * config/sparc/sparc.c : Likewise.
14082 * config/spu/spu-c.c : Likewise.
14083 * config/spu/spu.c : Likewise.
14084 * config/stormy16/stormy16.c : Likewise.
14085 * config/tilegx/mul-tables.c : Likewise.
14086 * config/tilegx/tilegx-c.c : Likewise.
14087 * config/tilegx/tilegx.c : Likewise.
14088 * config/tilepro/mul-tables.c : Likewise.
14089 * config/tilepro/tilepro-c.c : Likewise.
14090 * config/tilepro/tilepro.c : Likewise.
14091 * config/v850/v850-c.c : Likewise.
14092 * config/v850/v850.c : Likewise.
14093 * config/vax/vax.c : Likewise.
14094 * config/visium/visium.c : Likewise.
14095 * config/vms/vms-c.c : Likewise.
14096 * config/vms/vms.c : Likewise.
14097 * config/vxworks.c : Likewise.
14098 * config/winnt-c.c : Likewise.
14099 * config/xtensa/xtensa.c : Likewise.
14101 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14104 * ipa-utils.h (warn_types_mismatch): Update prototype.
14105 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14107 (type_mismatch_p): New function.
14108 (warn_types_mismatch): Reorg to work better on non-C++ types.
14109 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14110 (add_type_duplicate): Update.
14112 2015-06-08 Tom de Vries <tom@codesourcery.com>
14114 PR rtl-optimization/66444
14115 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14118 2015-06-08 Richard Biener <rguenther@suse.de>
14120 PR tree-optimization/66422
14121 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14122 block after inserted gcc_unreachable.
14124 2015-06-08 Nick Clifton <nickc@redhat.com>
14126 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14127 (rx_promote_function_mode): Likewise.
14128 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14130 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14132 * genattrtab.c (insn_alternatives): Change type from int *
14134 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14135 (get_attr_value): Change type of num_alt to uint64_t.
14136 (compute_alternative_mask): Change return type from
14137 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14138 (make_alternative_compare, mk_attr_alt): Change argument type
14139 from int to uint64_t.
14140 (simplify_test_exp): Change type of i from int to uint64_t.
14141 Shift ((uint64_t) 1) instead of 1 up.
14142 (main): Adjust oballocvec first argument from int to uint64_t.
14143 Shift ((uint64_t) 1) instead of 1 up.
14145 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14148 * gdbhooks.py: Import sys.
14149 (intptr): New function. Replace int(...) by intptr(...).
14151 2015-06-08 Richard Biener <rguenther@suse.de>
14153 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14154 adjustment for gaps at the end of a SLP load group properly.
14155 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14156 all permutations we can generate.
14157 (vect_transform_slp_perm_load): Use the correct group-size.
14159 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14161 * genmatch.c (expr::gen_transform): For conditions, guess the type
14162 from the second operand.
14164 2015-06-08 Tom de Vries <tom@codesourcery.com>
14166 PR tree-optimization/66442
14167 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14168 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14169 if the loop latch is not a singleton. Use
14170 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14172 2015-06-08 Marek Polacek <polacek@redhat.com>
14175 * toplev.c (check_global_declaration): Don't warn about artificial
14178 2015-06-08 Tom de Vries <tom@codesourcery.com>
14180 PR tree-optimization/66436
14181 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14183 * gimplify.c: Add tree-dump.h include.
14184 (gimplify_function_tree): Dump function to gimple dump file.
14185 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14188 2015-06-08 Tom de Vries <tom@codesourcery.com>
14190 PR tree-optimization/66435
14191 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14194 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14196 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14197 of ptr_type_node to not be ptr_to_node.
14198 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14199 TREE_TYPE of pointers.
14200 * gimple-expr.c (useless_type_conversion): Reorder the check for
14201 function pointers and TYPE_CANONICAL.
14203 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14206 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14207 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14208 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14210 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14211 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14212 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14213 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14214 and non iso if unix2003.
14216 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14218 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14220 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14222 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14223 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14224 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14225 except.c, final.c, function.c, gcse-common.c, genemit.c,
14226 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14227 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14228 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14229 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14232 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14234 * combine.c (combine_split_insns): Remove cast.
14235 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14236 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14237 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14238 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14239 * genemit.c (gen_split): Change return type of generated functions to
14241 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14242 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14243 gen_peephole2_* functions.
14244 (print_subroutine, main): Likewise.
14245 * recog.c (peephole2_optimize): Remove cast.
14246 (peep2_next_insn): Promote return type to rtx_insn.
14247 * recog.h (peep2_next_insn): Fix prototype.
14248 * rtl.h (try_split, split_insns): Likewise.
14250 2015-06-06 DJ Delorie <dj@redhat.com>
14252 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14253 and subtraction too.
14255 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14258 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14259 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14260 instead of Snd. Disparage Sid/z alternative with '^'.
14262 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14264 * dwarf2out.c: Remove deferred_locations*.
14265 (dwarf2_debug_hooks): Add early_finish hook.
14266 Remove global_decl hook.
14267 Add early_global_decl and late_global_decl hook.
14268 New global early_dwarf.
14269 New structure set_early_dwarf.
14270 (output_die): Indicate whether a DIE was generated early
14271 when generating assembly with -dA.
14272 (struct limbo_die_struct): Document created_for field.
14273 Remove file_table_last_lookup.
14274 (remove_AT): Return TRUE if successful.
14275 (remove_child_TAG): Clear die_parent.
14276 (reparent_child): New function abstracted from...
14277 (splice_child_die): ...here.
14278 (new_die): ICE if a DIE ends up in limbo too late.
14280 (defer_location): Remove.
14281 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14282 (fill_variable_array_bounds): New.
14283 (decl_start_label): Call fill_variable_array_bounds.
14284 (gen_formal_parameter_die): Rewrite to reuse previously generated
14286 (gen_subprogram_die): Same.
14287 (gen_variable_die): Same.
14288 (gen_const_die): Same.
14289 (gen_label_die): Same.
14290 (gen_lexical_block_die): Same.
14291 (decl_will_get_specification_p): New.
14292 (local_function_static): New.
14293 (gen_struct_or_union_type_die): Fill in variable-length fields.
14294 (gen_typedef_die): Fill in variable-length typedefs.
14295 (gen_tagged_type_die): Gracefully return on error_mark_node.
14296 Handle re-entrancy.
14297 (gen_type_die_with_usage): Handle variable-length types.
14298 Remove duplicate code for ARRAY_TYPE case.
14299 (process_scope_var): Only process imported modules during early
14301 (dwarf2out_early_global_decl): New.
14302 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14303 (dwarf2out_type_decl): Set early_dwarf while calling
14305 (dwarf2out_decl): Verify that we did not recreate a previously
14307 Do not return on DECL_EXTERNALs in VAR_DECLs.
14308 Abstract some code to local_function_static.
14309 (lookup_filename): Remove use of file_table_last_lookup.
14310 Gracefully exit on missing file_name.
14311 (dwarf2out_finish): Verify limbo list.
14312 Remove deferred_locations_list use.
14313 Move deferred_asm_name and limbo flushing to...
14314 (dwarf2out_early_finish): ...here. New.
14315 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14316 deferred_asm_name, and file_table_last_lookup.
14317 * cgraph.h (referred_to_p): Add default argument.
14318 * cgraphunit.c (referred_to_p): Add and handle include_self
14320 (analyze_functions): Add first_time argument.
14321 Call check_global_declaration for all symbols.
14322 Call late_global_decl for nodes for moribund nodes.
14323 (finalize_compilation_unit): Add new argument to
14325 Call early_global_decl for functions.
14326 Call early_finish debug hook.
14327 * dbxout.c (dbxout_early_global_decl): New.
14328 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14329 (dbx_debug_hooks): Add new hooks.
14330 (xcoff_debug_hooks): Same.
14331 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14332 Add early and late debug hooks.
14333 Remove global_decl hook.
14334 * debug.h (struct gcc_debug_hooks): Add early_finish,
14335 early_global_decl, and late_global_decl fields.
14336 Remove global_decl field.
14337 Document gcc_debug_hooks.
14338 * gengtype.c (output_typename): Remove.
14339 * godump.c (go_early_global_decl): New.
14340 (go_late_global_decl): New.
14341 (go_global_decl): Remove.
14342 (dump_go_spec_init): Remove global_decl. Add
14343 {early,late}_global_decl.
14344 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14345 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14346 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14347 (write_global_declarations): Remove.
14348 (global_decl_processing): New.
14349 * langhooks.h (struct lang_hooks_for_decls): Remove
14350 final_write_globals field.
14351 Add post_compilation_parsing_cleanups field.
14352 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14353 * sdbout.c: Add early and late_global_decl hooks. Remove
14354 sdbout_global_decl hook.
14355 Add early_finish field for sdb_debug_hooks.
14356 (sdbout_global_decl): Remove.
14357 (sdbout_early_global_decl): New.
14358 (sdbout_late_global_decl): New.
14359 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14360 * toplev.c (check_global_declaration): Rename from
14361 check_global_declaration_1.
14362 Adapt to use symtab infrastructure.
14363 (check_global_declarations): Remove.
14364 (emit_debug_global_declarations): Remove.
14365 (compile_file): Remove call to final_write_globals langhook.
14366 Run the actual compilation process.
14367 Perform any post compilation parser cleanups.
14368 Generate late debug info.
14369 * toplev.h (check_global_declaration): New.
14370 (check_global_declaration_1): Remove.
14371 (check_global_declarations): Remove.
14372 (write_global_declarations): Remove.
14373 (emit_debug_global_declarations): Remove.
14374 (global_decl_processing): New.
14375 * tree-core.h (struct tree_block): Add DIE field.
14376 * tree.h (BLOCK_DIE): New.
14377 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14379 (vmsdbgout_early_global_decl): New.
14380 (vmsdbgout_late_global_decl): New.
14381 Add early_finish debug hook field to vmsdbg_debug_hooks.
14382 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14383 Add early and late_global_decl debug hooks.
14385 2015-06-05 Julian Brown <julian@codesourcery.com>
14386 Sandra Loosemore <sandra@codesourcery.com>
14388 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14389 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14390 to print-sysroot-suffix.sh script.
14392 2015-06-05 Tom de Vries <tom@codesourcery.com>
14394 merge from gomp4 branch:
14395 2015-05-28 Tom de Vries <tom@codesourcery.com>
14397 PR tree-optimization/65443
14398 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14399 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14400 (try_transform_to_exit_first_loop_alt): New function.
14401 (transform_to_exit_first_loop): Use
14402 try_transform_to_exit_first_loop_alt.
14404 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14406 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14407 emit_cmp_and_jump_insns with the mode of target.
14409 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14411 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14413 2015-06-04 DJ Delorie <dj@redhat.com>
14415 * config/msp430/msp430.md (movsi_s): New. Special case for
14416 storing a 20-bit symbol into a 32-bit register.
14417 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14418 * config/msp430/predicates.md (msp430_symbol_operand): New.
14420 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14422 * c-family/c-common.c (noplt): New attribute.
14423 (handle_noplt_attribute): New handler.
14424 * calls.c (prepare_call_address): Check for noplt
14426 * config/i386/i386.c (ix86_expand_call): Check
14427 for noplt attribute.
14428 (ix86_nopic_noplt_attribute_p): New function.
14429 (ix86_output_call_insn): Output indirect call for non-pic
14431 * doc/extend.texi (noplt): Document new attribute.
14432 * doc/invoke.texi: Document new attribute.
14434 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14436 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14437 real.h, and fixed-value.h when included in host source files.
14438 * double-int.h: Remove redundant #includes listed above.
14439 * fixed-value.h: Likewise.
14440 * real.h: Likewise.
14441 * wide-int.h: Likewise.
14442 * inchash.h: Likewise.
14443 * rtl.h: Add some include files When included from a generator file.
14444 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14445 * internal-fn.h: Don't include coretypes.h.
14446 * alias.c: Adjust includes for restructured coretypes.h.
14447 * asan.c: Likewise.
14448 * attribs.c: Likewise.
14449 * auto-inc-dec.c: Likewise.
14450 * auto-profile.c: Likewise.
14451 * bb-reorder.c: Likewise.
14452 * bt-load.c: Likewise.
14453 * builtins.c: Likewise.
14454 * caller-save.c: Likewise.
14455 * calls.c: Likewise.
14456 * ccmp.c: Likewise.
14458 * cfganal.c: Likewise.
14459 * cfgbuild.c: Likewise.
14460 * cfgcleanup.c: Likewise.
14461 * cfgexpand.c: Likewise.
14462 * cfghooks.c: Likewise.
14463 * cfgloop.c: Likewise.
14464 * cfgloop.h: Likewise.
14465 * cfgloopanal.c: Likewise.
14466 * cfgloopmanip.c: Likewise.
14467 * cfgrtl.c: Likewise.
14468 * cgraph.c: Likewise.
14469 * cgraphbuild.c: Likewise.
14470 * cgraphclones.c: Likewise.
14471 * cgraphunit.c: Likewise.
14472 * cilk-common.c: Likewise.
14473 * combine-stack-adj.c: Likewise.
14474 * combine.c: Likewise.
14475 * compare-elim.c: Likewise.
14476 * convert.c: Likewise.
14477 * coverage.c: Likewise.
14478 * cppbuiltin.c: Likewise.
14479 * cprop.c: Likewise.
14481 * cselib.c: Likewise.
14482 * data-streamer-in.c: Likewise.
14483 * data-streamer-out.c: Likewise.
14484 * data-streamer.c: Likewise.
14485 * dbxout.c: Likewise.
14488 * debug.c: Likewise.
14489 * df-core.c: Likewise.
14490 * df-problems.c: Likewise.
14491 * df-scan.c: Likewise.
14494 * dojump.c: Likewise.
14495 * dominance.c: Likewise.
14496 * domwalk.c: Likewise.
14497 * double-int.c: Likewise.
14499 * dumpfile.c: Likewise.
14500 * dwarf2asm.c: Likewise.
14501 * dwarf2cfi.c: Likewise.
14502 * dwarf2out.c: Likewise.
14503 * dwarf2out.h: Likewise.
14504 * emit-rtl.c: Likewise.
14505 * et-forest.c: Likewise.
14506 * except.c: Likewise.
14507 * explow.c: Likewise.
14508 * expmed.c: Likewise.
14509 * expr.c: Likewise.
14510 * final.c: Likewise.
14511 * fixed-value.c: Likewise.
14512 * fold-const.c: Likewise.
14513 * function.c: Likewise.
14514 * fwprop.c: Likewise.
14515 * gcc-plugin.h: Likewise.
14516 * gcse.c: Likewise.
14517 * generic-match-head.c: Likewise.
14518 * ggc-page.c: Likewise.
14519 * gimple-builder.c: Likewise.
14520 * gimple-expr.c: Likewise.
14521 * gimple-fold.c: Likewise.
14522 * gimple-iterator.c: Likewise.
14523 * gimple-low.c: Likewise.
14524 * gimple-match-head.c: Likewise.
14525 * gimple-pretty-print.c: Likewise.
14526 * gimple-ssa-isolate-paths.c: Likewise.
14527 * gimple-ssa-strength-reduction.c: Likewise.
14528 * gimple-streamer-in.c: Likewise.
14529 * gimple-streamer-out.c: Likewise.
14530 * gimple-streamer.h: Likewise.
14531 * gimple-walk.c: Likewise.
14532 * gimple.c: Likewise.
14533 * gimplify-me.c: Likewise.
14534 * gimplify.c: Likewise.
14535 * godump.c: Likewise.
14536 * graph.c: Likewise.
14537 * graphite-blocking.c: Likewise.
14538 * graphite-dependences.c: Likewise.
14539 * graphite-interchange.c: Likewise.
14540 * graphite-isl-ast-to-gimple.c: Likewise.
14541 * graphite-optimize-isl.c: Likewise.
14542 * graphite-poly.c: Likewise.
14543 * graphite-scop-detection.c: Likewise.
14544 * graphite-sese-to-poly.c: Likewise.
14545 * graphite.c: Likewise.
14546 * haifa-sched.c: Likewise.
14547 * hooks.h: Likewise.
14548 * hw-doloop.c: Likewise.
14549 * ifcvt.c: Likewise.
14550 * incpath.c: Likewise.
14551 * init-regs.c: Likewise.
14552 * internal-fn.c: Likewise.
14553 * ipa-chkp.c: Likewise.
14554 * ipa-comdats.c: Likewise.
14555 * ipa-cp.c: Likewise.
14556 * ipa-devirt.c: Likewise.
14557 * ipa-icf-gimple.c: Likewise.
14558 * ipa-icf.c: Likewise.
14559 * ipa-inline-analysis.c: Likewise.
14560 * ipa-inline-transform.c: Likewise.
14561 * ipa-inline.c: Likewise.
14562 * ipa-polymorphic-call.c: Likewise.
14563 * ipa-profile.c: Likewise.
14564 * ipa-prop.c: Likewise.
14565 * ipa-pure-const.c: Likewise.
14566 * ipa-ref.c: Likewise.
14567 * ipa-reference.c: Likewise.
14568 * ipa-split.c: Likewise.
14569 * ipa-utils.c: Likewise.
14570 * ipa-visibility.c: Likewise.
14572 * ira-build.c: Likewise.
14573 * ira-color.c: Likewise.
14574 * ira-conflicts.c: Likewise.
14575 * ira-costs.c: Likewise.
14576 * ira-emit.c: Likewise.
14577 * ira-lives.c: Likewise.
14579 * jump.c: Likewise.
14580 * langhooks.c: Likewise.
14582 * loop-doloop.c: Likewise.
14583 * loop-init.c: Likewise.
14584 * loop-invariant.c: Likewise.
14585 * loop-iv.c: Likewise.
14586 * loop-unroll.c: Likewise.
14587 * lower-subreg.c: Likewise.
14588 * lra-assigns.c: Likewise.
14589 * lra-coalesce.c: Likewise.
14590 * lra-constraints.c: Likewise.
14591 * lra-eliminations.c: Likewise.
14592 * lra-lives.c: Likewise.
14593 * lra-remat.c: Likewise.
14594 * lra-spills.c: Likewise.
14596 * lto-cgraph.c: Likewise.
14597 * lto-compress.c: Likewise.
14598 * lto-opts.c: Likewise.
14599 * lto-section-in.c: Likewise.
14600 * lto-section-out.c: Likewise.
14601 * lto-streamer-in.c: Likewise.
14602 * lto-streamer-out.c: Likewise.
14603 * lto-streamer.c: Likewise.
14605 * mode-switching.c: Likewise.
14606 * modulo-sched.c: Likewise.
14607 * omega.c: Likewise.
14608 * omp-low.c: Likewise.
14609 * optabs.c: Likewise.
14610 * opts-global.c: Likewise.
14611 * passes.c: Likewise.
14612 * plugin.c: Likewise.
14613 * postreload-gcse.c: Likewise.
14614 * postreload.c: Likewise.
14615 * predict.c: Likewise.
14616 * print-rtl.c: Likewise.
14617 * print-tree.c: Likewise.
14618 * profile.c: Likewise.
14619 * real.c: Likewise.
14620 * realmpfr.c: Likewise.
14621 * realmpfr.h: Likewise.
14622 * recog.c: Likewise.
14624 * reg-stack.c: Likewise.
14625 * regcprop.c: Likewise.
14626 * reginfo.c: Likewise.
14627 * regrename.c: Likewise.
14628 * regs.h: Likewise.
14629 * regstat.c: Likewise.
14630 * reload.c: Likewise.
14631 * reload1.c: Likewise.
14632 * reorg.c: Likewise.
14633 * resource.c: Likewise.
14634 * rtl-chkp.c: Likewise.
14635 * rtlanal.c: Likewise.
14636 * rtlhooks.c: Likewise.
14637 * sanopt.c: Likewise.
14638 * sched-deps.c: Likewise.
14639 * sched-ebb.c: Likewise.
14640 * sched-rgn.c: Likewise.
14641 * sched-vis.c: Likewise.
14642 * sdbout.c: Likewise.
14643 * sel-sched-dump.c: Likewise.
14644 * sel-sched-ir.c: Likewise.
14645 * sel-sched.c: Likewise.
14646 * sese.c: Likewise.
14647 * shrink-wrap.c: Likewise.
14648 * shrink-wrap.h: Likewise.
14649 * simplify-rtx.c: Likewise.
14650 * stack-ptr-mod.c: Likewise.
14651 * statistics.c: Likewise.
14652 * stmt.c: Likewise.
14653 * stor-layout.c: Likewise.
14654 * store-motion.c: Likewise.
14655 * stringpool.c: Likewise.
14656 * symtab.c: Likewise.
14657 * target-globals.c: Likewise.
14658 * targhooks.c: Likewise.
14659 * toplev.c: Likewise.
14660 * tracer.c: Likewise.
14661 * trans-mem.c: Likewise.
14662 * tree-affine.c: Likewise.
14663 * tree-affine.h: Likewise.
14664 * tree-browser.c: Likewise.
14665 * tree-call-cdce.c: Likewise.
14666 * tree-cfg.c: Likewise.
14667 * tree-cfgcleanup.c: Likewise.
14668 * tree-chkp-opt.c: Likewise.
14669 * tree-chkp.c: Likewise.
14670 * tree-chrec.c: Likewise.
14671 * tree-complex.c: Likewise.
14672 * tree-data-ref.c: Likewise.
14673 * tree-dfa.c: Likewise.
14674 * tree-diagnostic.c: Likewise.
14675 * tree-dump.c: Likewise.
14676 * tree-eh.c: Likewise.
14677 * tree-emutls.c: Likewise.
14678 * tree-if-conv.c: Likewise.
14679 * tree-inline.c: Likewise.
14680 * tree-into-ssa.c: Likewise.
14681 * tree-iterator.c: Likewise.
14682 * tree-loop-distribution.c: Likewise.
14683 * tree-nested.c: Likewise.
14684 * tree-nrv.c: Likewise.
14685 * tree-object-size.c: Likewise.
14686 * tree-outof-ssa.c: Likewise.
14687 * tree-parloops.c: Likewise.
14688 * tree-phinodes.c: Likewise.
14689 * tree-predcom.c: Likewise.
14690 * tree-pretty-print.c: Likewise.
14691 * tree-pretty-print.h: Likewise.
14692 * tree-profile.c: Likewise.
14693 * tree-scalar-evolution.c: Likewise.
14694 * tree-sra.c: Likewise.
14695 * tree-ssa-address.c: Likewise.
14696 * tree-ssa-alias.c: Likewise.
14697 * tree-ssa-ccp.c: Likewise.
14698 * tree-ssa-coalesce.c: Likewise.
14699 * tree-ssa-copy.c: Likewise.
14700 * tree-ssa-copyrename.c: Likewise.
14701 * tree-ssa-dce.c: Likewise.
14702 * tree-ssa-dom.c: Likewise.
14703 * tree-ssa-dse.c: Likewise.
14704 * tree-ssa-forwprop.c: Likewise.
14705 * tree-ssa-ifcombine.c: Likewise.
14706 * tree-ssa-live.c: Likewise.
14707 * tree-ssa-loop-ch.c: Likewise.
14708 * tree-ssa-loop-im.c: Likewise.
14709 * tree-ssa-loop-ivcanon.c: Likewise.
14710 * tree-ssa-loop-ivopts.c: Likewise.
14711 * tree-ssa-loop-manip.c: Likewise.
14712 * tree-ssa-loop-niter.c: Likewise.
14713 * tree-ssa-loop-prefetch.c: Likewise.
14714 * tree-ssa-loop-unswitch.c: Likewise.
14715 * tree-ssa-loop.c: Likewise.
14716 * tree-ssa-loop.h: Likewise.
14717 * tree-ssa-math-opts.c: Likewise.
14718 * tree-ssa-operands.c: Likewise.
14719 * tree-ssa-phiopt.c: Likewise.
14720 * tree-ssa-phiprop.c: Likewise.
14721 * tree-ssa-pre.c: Likewise.
14722 * tree-ssa-propagate.c: Likewise.
14723 * tree-ssa-reassoc.c: Likewise.
14724 * tree-ssa-sccvn.c: Likewise.
14725 * tree-ssa-scopedtables.c: Likewise.
14726 * tree-ssa-sink.c: Likewise.
14727 * tree-ssa-strlen.c: Likewise.
14728 * tree-ssa-structalias.c: Likewise.
14729 * tree-ssa-tail-merge.c: Likewise.
14730 * tree-ssa-ter.c: Likewise.
14731 * tree-ssa-threadedge.c: Likewise.
14732 * tree-ssa-threadupdate.c: Likewise.
14733 * tree-ssa-uncprop.c: Likewise.
14734 * tree-ssa-uninit.c: Likewise.
14735 * tree-ssa.c: Likewise.
14736 * tree-ssanames.c: Likewise.
14737 * tree-stdarg.c: Likewise.
14738 * tree-streamer-in.c: Likewise.
14739 * tree-streamer-out.c: Likewise.
14740 * tree-streamer.c: Likewise.
14741 * tree-switch-conversion.c: Likewise.
14742 * tree-tailcall.c: Likewise.
14743 * tree-vect-data-refs.c: Likewise.
14744 * tree-vect-generic.c: Likewise.
14745 * tree-vect-loop-manip.c: Likewise.
14746 * tree-vect-loop.c: Likewise.
14747 * tree-vect-patterns.c: Likewise.
14748 * tree-vect-slp.c: Likewise.
14749 * tree-vect-stmts.c: Likewise.
14750 * tree-vectorizer.c: Likewise.
14751 * tree-vrp.c: Likewise.
14752 * tree.c: Likewise.
14753 * tsan.c: Likewise.
14754 * ubsan.c: Likewise.
14755 * valtrack.c: Likewise.
14756 * value-prof.c: Likewise.
14757 * var-tracking.c: Likewise.
14758 * varasm.c: Likewise.
14759 * varpool.c: Likewise.
14760 * vmsdbgout.c: Likewise.
14761 * vtable-verify.c: Likewise.
14763 * wide-int-print.cc: Likewise.
14764 * wide-int-print.h: Likewise.
14765 * wide-int.cc: Likewise.
14766 * xcoffout.c: Likewise.
14767 * config/aarch64/aarch64-builtins.c: Likewise.
14768 * config/aarch64/aarch64.c: Likewise.
14769 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14770 * config/alpha/alpha.c: Likewise.
14771 * config/arc/arc.c: Likewise.
14772 * config/arm/aarch-common.c: Likewise.
14773 * config/arm/arm-builtins.c: Likewise.
14774 * config/arm/arm-c.c: Likewise.
14775 * config/arm/arm.c: Likewise.
14776 * config/avr/avr-c.c: Likewise.
14777 * config/avr/avr-log.c: Likewise.
14778 * config/avr/avr.c: Likewise.
14779 * config/bfin/bfin.c: Likewise.
14780 * config/c6x/c6x.c: Likewise.
14781 * config/cr16/cr16.c: Likewise.
14782 * config/cris/cris.c: Likewise.
14783 * config/darwin-c.c: Likewise.
14784 * config/darwin.c: Likewise.
14785 * config/default-c.c: Likewise.
14786 * config/epiphany/epiphany.c: Likewise.
14787 * config/epiphany/mode-switch-use.c: Likewise.
14788 * config/epiphany/resolve-sw-modes.c: Likewise.
14789 * config/fr30/fr30.c: Likewise.
14790 * config/frv/frv.c: Likewise.
14791 * config/ft32/ft32.c: Likewise.
14792 * config/glibc-c.c: Likewise.
14793 * config/h8300/h8300.c: Likewise.
14794 * config/i386/i386-c.c: Likewise.
14795 * config/i386/i386.c: Likewise.
14796 * config/i386/msformat-c.c: Likewise.
14797 * config/i386/winnt-cxx.c: Likewise.
14798 * config/i386/winnt-stubs.c: Likewise.
14799 * config/i386/winnt.c: Likewise.
14800 * config/ia64/ia64-c.c: Likewise.
14801 * config/ia64/ia64.c: Likewise.
14802 * config/iq2000/iq2000.c: Likewise.
14803 * config/lm32/lm32.c: Likewise.
14804 * config/m32c/m32c-pragma.c: Likewise.
14805 * config/m32c/m32c.c: Likewise.
14806 * config/m32r/m32r.c: Likewise.
14807 * config/m68k/m68k.c: Likewise.
14808 * config/mcore/mcore.c: Likewise.
14809 * config/mep/mep-pragma.c: Likewise.
14810 * config/mep/mep.c: Likewise.
14811 * config/microblaze/microblaze-c.c: Likewise.
14812 * config/microblaze/microblaze.c: Likewise.
14813 * config/mips/mips.c: Likewise.
14814 * config/mmix/mmix.c: Likewise.
14815 * config/mn10300/mn10300.c: Likewise.
14816 * config/moxie/moxie.c: Likewise.
14817 * config/msp430/msp430-c.c: Likewise.
14818 * config/msp430/msp430.c: Likewise.
14819 * config/nds32/nds32-cost.c: Likewise.
14820 * config/nds32/nds32-fp-as-gp.c: Likewise.
14821 * config/nds32/nds32-intrinsic.c: Likewise.
14822 * config/nds32/nds32-isr.c: Likewise.
14823 * config/nds32/nds32-md-auxiliary.c: Likewise.
14824 * config/nds32/nds32-memory-manipulation.c: Likewise.
14825 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14826 * config/nds32/nds32-predicates.c: Likewise.
14827 * config/nds32/nds32.c: Likewise.
14828 * config/nios2/nios2.c: Likewise.
14829 * config/nvptx/nvptx.c: Likewise.
14830 * config/pa/pa.c: Likewise.
14831 * config/pdp11/pdp11.c: Likewise.
14832 * config/rl78/rl78-c.c: Likewise.
14833 * config/rl78/rl78.c: Likewise.
14834 * config/rs6000/rs6000-c.c: Likewise.
14835 * config/rs6000/rs6000.c: Likewise.
14836 * config/rx/rx.c: Likewise.
14837 * config/s390/s390-c.c: Likewise.
14838 * config/s390/s390.c: Likewise.
14839 * config/sh/sh-c.c: Likewise.
14840 * config/sh/sh-mem.cc: Likewise.
14841 * config/sh/sh.c: Likewise.
14842 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14843 * config/sh/sh_treg_combine.cc: Likewise.
14844 * config/sol2-c.c: Likewise.
14845 * config/sol2-cxx.c: Likewise.
14846 * config/sol2-stubs.c: Likewise.
14847 * config/sol2.c: Likewise.
14848 * config/sparc/sparc-c.c: Likewise.
14849 * config/sparc/sparc.c: Likewise.
14850 * config/spu/spu-c.c: Likewise.
14851 * config/spu/spu.c: Likewise.
14852 * config/stormy16/stormy16.c: Likewise.
14853 * config/tilegx/mul-tables.c: Likewise.
14854 * config/tilegx/tilegx-c.c: Likewise.
14855 * config/tilegx/tilegx.c: Likewise.
14856 * config/tilepro/mul-tables.c: Likewise.
14857 * config/tilepro/tilepro-c.c: Likewise.
14858 * config/tilepro/tilepro.c: Likewise.
14859 * config/v850/v850-c.c: Likewise.
14860 * config/v850/v850.c: Likewise.
14861 * config/vax/vax.c: Likewise.
14862 * config/visium/visium.c: Likewise.
14863 * config/vms/vms-c.c: Likewise.
14864 * config/vms/vms.c: Likewise.
14865 * config/vxworks.c: Likewise.
14866 * config/winnt-c.c: Likewise.
14867 * config/xtensa/xtensa.c: Likewise.
14868 * common/config/bfin/bfin-common.c: Likewise.
14870 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
14872 * tree.h (tree_code_for_canonical_type_merging): New function.
14873 * tree.c (gimple_canonical_types_compatible_p): Use
14874 tree_code_for_canonical_type_merging..
14876 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14880 * doc/tm.texi: Regenerate.
14881 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14882 * target.def (TARGET_RELAXED_ORDERING): Likewise.
14883 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14884 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14885 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14886 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14887 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14888 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14889 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14891 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14893 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14894 register fma steering pass.
14895 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14896 AARCH64_TUNE_FMA_STEERING.
14898 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
14900 * tree.c (verify_type_variant): Verify that type and variant is
14902 (gimple_canonical_types_compatible_p): Look for main variants.
14904 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14906 * config.gcc (powerpc*-*-*): Add support for a new configure
14907 option --with-advance-toolchain=<xxx> which overrides using the
14908 default header files, libraries and dynamic linker.
14910 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14911 specs to support the configure --with-advance-toolchain=<xxx>
14913 (INCLUDE_EXTRA_SPEC): Likewise.
14914 (LINK_OS_EXTRA_SPEC32): Likewise.
14915 (LINK_OK_EXTRA_SPEC64): Likewise.
14916 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14917 (DYNAMIC_LINKER_PREFIX): Likewise.
14918 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14920 (GLIBC_DYNAMIC_LINKER32): Likewise.
14921 (GLIBC_DYNAMIC_LINKER64): Likewise.
14922 (LINK_OS_LINUX_SPEC32): Likewise.
14923 (LINK_OS_LINUX_SPEC64): Likewise.
14925 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14926 configuration option.
14928 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
14931 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14932 to determine current function ABI.
14933 (ix86_function_value_regno_p): Ditto.
14935 2015-06-03 Martin Liska <mliska@suse.cz>
14937 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14938 * bitmap.h (struct bitmap_usage): Likewise.
14939 * ggc-common.c (struct ggc_usage): Likewise.
14940 * mem-stats.h (struct mem_location): Likewise.
14941 (struct mem_usage): Likewise.
14942 * vec.c (struct vec_usage): Likewise.
14944 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
14946 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14949 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
14951 * doc/plugins.texi (enum plugin_event): New event.
14952 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14953 and PLUGIN_FINISH_FUNCTION.
14954 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14955 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14957 2015-06-03 Richard Biener <rguenther@suse.de>
14959 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14960 compute GROUP_GAP for the first element.
14961 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14964 2015-06-03 Nick Clifton <nickc@redhat.com>
14966 * config/rl78/rl78-real.md: Add peepholes to avoid a register
14967 copy when calling a function.
14968 * config/rl78/rl78.c (need_to_save): Do not push the frame
14969 pointer in an interrupt handler prologue if it is never used.
14971 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14973 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14975 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14977 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14978 reference when cloning alias node.
14980 2015-06-03 Martin Liska <mliska@suse.cz>
14982 * alloc-pool.h (struct pool_usage): Correct space padding.
14983 * ggc-page.c (ggc_print_statistics): Align columns in a report.
14984 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14985 * tree.c (dump_tree_statistics): Align columns in a report.
14987 2015-06-03 Martin Liska <mliska@suse.cz>
14989 * alloc-pool.c (allocate_pool_descriptor): Remove.
14990 (struct pool_output_info): Likewise.
14991 (print_alloc_pool_statistics): Likewise.
14992 (dump_alloc_pool_statistics): Likewise.
14993 * alloc-pool.h (struct pool_usage): New struct.
14994 (pool_allocator::initialize): Change usage of memory statistics
14995 to a new interface.
14996 (pool_allocator::release): Likewise.
14997 (pool_allocator::allocate): Likewise.
14998 (pool_allocator::remove): Likewise.
14999 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15000 for a pool allocator.
15001 * mem-stats.h (struct mem_location): Add new ctor.
15002 (struct mem_usage): Add counter for number of
15004 (mem_alloc_description::register_descriptor): New overload of
15005 * mem-stats.h (mem_location::to_string): New function.
15006 * bitmap.h (struct bitmap_usage): Use this new function.
15007 * ggc-common.c (struct ggc_usage): Likewise.
15010 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15012 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15013 of GCC_INSN_FLAGS_H block.
15015 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15017 * explow.c (plus_constant): Update check after force_const_mem call
15018 to see if the value returned is not a NULL_RTX.
15020 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15022 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15023 remove instumentation thunks calling reachable functions.
15024 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15025 * lto/lto-partition.c (privatize_symbol_name_1): New.
15026 (privatize_symbol_name): Privatize both decl and orig_decl
15027 names for instrumented functions.
15028 * cgraph.c (cgraph_node::verify_node): Add transparent
15029 alias chain check for instrumented node.
15031 2015-06-03 Marek Polacek <polacek@redhat.com>
15035 * tree.c (attribute_value_equal): Handle attribute format.
15036 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15038 2015-06-03 Richard Biener <rguenther@suse.de>
15040 PR tree-optimization/63916
15041 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15042 Forward-propagate non-invariant addresses by splicing their
15043 reference ops if the result isn't going to be used by PRE.
15044 (vn_reference_lookup_3): Remove pointless assert.
15046 2015-06-03 Richard Biener <rguenther@suse.de>
15048 PR tree-optimization/66375
15049 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15050 add to the evolution before following SSA edges.
15052 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15054 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15055 (dump_use, dump_cand, find_induction_variables): Pass new argument
15057 (record_use): Preserve the ssa name information in IV.
15059 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15061 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15063 (add_mode_tests): Don't add mode tests if the predicate only
15064 accepts scalar constant integers. Otherwise, allow the mode
15065 of "op" to be VOIDmode if the predicate does accept such integers.
15067 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15070 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15071 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15072 (aarch64_secondary_reload): Likewise
15073 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15075 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15078 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15079 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15082 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15084 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15086 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15087 provide access to the IBM extended double floating point mode if
15088 long double is IEEE 128-bit floating point.
15089 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15090 point if long double is the IBM extended double type.
15092 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15093 enable adding IEEE 128-bit floating point support.
15094 (-mfloat128-software): Likewise.
15095 (-mfloat128-sw): Likewise.
15097 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15098 128-bit floating point types to occupy any register if
15099 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15100 -mfloat128-software is enabled.
15101 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15103 (rs6000_option_override_internal): Add -mfloat128-* support.
15104 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15106 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15107 and float128 type nodes.
15108 (ieee128_float_type_node): Likewise.
15109 (ibm128_float_type_node): Likewise.
15111 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15114 * config/aarch64/geniterators.sh: Rewrite in awk.
15116 2015-06-02 Martin Liska <mliska@suse.cz>
15118 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15119 values to avoid -Wmaybe-uninitialized errors.
15121 2015-06-02 Richard Biener <rguenther@suse.de>
15124 * dwarf2out.c (lookup_context_die): New function.
15125 (resolve_addr): Avoid forcing a full DIE for the
15126 target of a DW_TAG_GNU_call_site during late compilation.
15127 Instead create a stub DIE without a type if we have a
15128 context DIE present.
15130 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15132 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15134 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15136 PR tree-optimization/48052
15137 * cfgloop.h (struct control_iv): New.
15138 (struct loop): New field control_ivs.
15139 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15140 (number_of_iterations_lt): Set no_overflow information.
15141 (number_of_iterations_exit): Init control iv in niter struct.
15142 (record_control_iv): New.
15143 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15144 (loop_exits_before_overflow): New. Interface factored out of
15145 scev_probably_wraps_p.
15146 (scev_probably_wraps_p): Factor loop niter related code into
15147 loop_exits_before_overflow.
15148 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15149 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15151 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15153 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15154 the target doesn't belong to the current function.
15156 2015-06-02 Marek Polacek <polacek@redhat.com>
15158 PR middle-end/66345
15159 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15160 get_maxval_strlen does not produce an INTEGER_CST.
15162 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15164 * config/arc/constraints.md: Use lower-case names in match_code.
15165 * config/mmix/constraints.md: Likewise.
15167 2015-06-02 Richard Biener <rguenther@suse.de>
15169 PR tree-optimization/65961
15170 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15171 check and clarify dump message.
15172 (vect_build_slp_tree): If all children are built up from scalars
15173 build up the parent from scalars instead.
15174 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15176 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15179 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15180 instead of print ... .
15182 2015-06-02 Alan Modra <amodra@gmail.com>
15184 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15187 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15189 PR tree-optimization/52563
15190 PR tree-optimization/62173
15191 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15192 (alloc_iv, set_iv): New parameter.
15193 (determine_biv_step): Delete.
15194 (find_bivs): Inline original determine_biv_step. Pass new
15195 argument to set_iv.
15196 (idx_find_step): Use no_overflow information for conversion.
15197 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15198 resolve_mixers handle folded_casts.
15199 (instantiate_scev_name): Change bool parameter to bool pointer.
15200 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15201 (instantiate_array_ref, instantiate_scev_not): Ditto.
15202 (instantiate_scev_3, instantiate_scev_2): Ditto.
15203 (instantiate_scev_1, instantiate_scev_r): Ditto.
15204 (instantiate_scev_convert, ): Change parameter. Pass argument
15205 to chrec_convert_aggressive.
15206 (instantiate_scev): Change argument.
15207 (resolve_mixers): New parameter and set it.
15208 (scev_const_prop): New argument.
15209 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15210 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15212 (chrec_convert): New parameter. Move definition below.
15213 (chrec_convert_aggressive): New parameter and set it. Call
15214 convert_affine_scev.
15215 * tree-chrec.h (chrec_convert): New parameter.
15216 (chrec_convert_aggressive): Ditto.
15218 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15220 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15221 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15222 the LHS of a no-return call if its type has variable size.
15223 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15224 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15226 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15228 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15229 * config.in: Regenerate.
15231 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15233 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15234 consecutive accesses within outer-loop with force_vectorize
15235 for references with zero step in inner-loop.
15237 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15239 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15240 rather than from gcc/build directory.
15242 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15245 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15246 for __sync memory models, emit initial loads and final barriers as
15249 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15252 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15253 (aarch64_split_atomic_op): Check for __sync memory models, emit
15254 appropriate initial loads and final barriers.
15256 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15258 * Makefile.in: Fix gcov dependencies that should
15259 not point to a build folder.
15261 2015-06-01 Richard Biener <rguenther@suse.de>
15264 2015-05-29 Richard Biener <rguenther@suse.de>
15266 PR tree-optimization/66314
15267 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15268 parameter that says which loop the new block belongs to.
15269 (ssa_create_duplicates): Blocks duplicated for the threaded
15270 path belong to the loop of the thread destination.
15272 2015-06-01 Martin Liska <mliska@suse.cz>
15274 * sched-deps.c: Include pool-alloc.h before
15275 cselib.h header file is included.
15277 2015-06-01 Richard Biener <rguenther@suse.de>
15279 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15282 2015-06-01 Martin Liska <mliska@suse.cz>
15284 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15285 a function local variable.
15287 2015-06-01 Martin Liska <mliska@suse.cz>
15289 * alloc-pool.c (create_alloc_pool): Remove.
15290 (empty_alloc_pool): Likewise.
15291 (free_alloc_pool): Likewise.
15292 (free_alloc_pool_if_empty): Likewise.
15293 (pool_alloc): Likewise.
15294 (pool_free): Likewise.
15295 * alloc-pool.h: Remove old declarations.
15297 2015-06-01 Martin Liska <mliska@suse.cz>
15299 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15300 (ira_create_object): Likewise.
15301 (ira_create_allocno): Likewise.
15302 (ira_create_live_range): Likewise.
15303 (copy_live_range): Likewise.
15304 (ira_finish_live_range): Likewise.
15305 (ira_free_allocno_costs): Likewise.
15306 (finish_allocno): Likewise.
15307 (finish_allocnos): Likewise.
15308 (initiate_prefs): Likewise.
15309 (ira_create_pref): Likewise.
15310 (finish_pref): Likewise.
15311 (finish_prefs): Likewise.
15312 (initiate_copies): Likewise.
15313 (ira_create_copy): Likewise.
15314 (finish_copy): Likewise.
15315 (finish_copies): Likewise.
15316 (finish_prefs): Likewise.
15318 2015-06-01 Martin Liska <mliska@suse.cz>
15320 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15321 (allocate_and_init_ipcp_value): Likewise.
15322 (ipcp_lattice::add_value): Likewise.
15323 (merge_agg_lats_step): Likewise.
15324 (ipcp_driver): Likewise.
15325 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15326 (ipa_free_all_structures_after_iinln): Likewise.
15327 * ipa-prop.h: Likewise.
15329 2015-06-01 Martin Liska <mliska@suse.cz>
15331 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15333 (set_hint_predicate): Likewise.
15334 (inline_summary_alloc): Likewise.
15335 (reset_inline_edge_summary): Likewise.
15336 (reset_inline_summary): Likewise.
15337 (set_cond_stmt_execution_predicate): Likewise.
15338 (set_switch_stmt_execution_predicate): Likewise.
15339 (compute_bb_predicates): Likewise.
15340 (estimate_function_body_sizes): Likewise.
15341 (inline_free_summary): Likewise.
15343 2015-06-01 Martin Liska <mliska@suse.cz>
15345 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15346 (ipa_edge_duplication_hook): Likewise.
15347 (ipa_free_all_structures_after_ipa_cp): Likewise.
15348 (ipa_free_all_structures_after_iinln): Likewise.
15350 2015-06-01 Martin Liska <mliska@suse.cz>
15352 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15353 (ipa_profile_generate_summary): Likewise.
15354 (ipa_profile_read_summary): Likewise.
15355 (ipa_profile): Likewise.
15357 2015-06-01 Martin Liska <mliska@suse.cz>
15359 * tree-ssa-structalias.c (new_var_info): Use new type-based
15361 (new_constraint): Likewise.
15362 (init_alias_vars): Likewise.
15363 (delete_points_to_sets): Likewise.
15365 2015-06-01 Martin Liska <mliska@suse.cz>
15367 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15368 (free_strinfo): Likewise.
15369 (pass_strlen::execute): Likewise.
15371 2015-06-01 Martin Liska <mliska@suse.cz>
15373 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15375 (vn_reference_insert_pieces): Likewise.
15376 (vn_phi_insert): Likewise.
15377 (visit_reference_op_call): Likewise.
15378 (copy_phi): Likewise.
15379 (copy_reference): Likewise.
15380 (process_scc): Likewise.
15381 (allocate_vn_table): Likewise.
15382 (free_vn_table): Likewise.
15384 2015-06-01 Martin Liska <mliska@suse.cz>
15386 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15388 (add_repeat_to_ops_vec): Likewise.
15389 (get_ops): Likewise.
15390 (maybe_optimize_range_tests): Likewise.
15391 (init_reassoc): Likewise.
15392 (fini_reassoc): Likewise.
15394 2015-06-01 Martin Liska <mliska@suse.cz>
15396 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15398 (bitmap_set_new): Likewise.
15399 (get_or_alloc_expr_for_constant): Likewise.
15400 (get_or_alloc_expr_for): Likewise.
15401 (phi_translate_1): Likewise.
15402 (compute_avail): Likewise.
15403 (init_pre): Likewise.
15404 (fini_pre): Likewise.
15406 2015-06-01 Martin Liska <mliska@suse.cz>
15408 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15409 (delete_dep_node): Likewise.
15410 (create_deps_list): Likewise.
15411 (free_deps_list): Likewise.
15412 (sched_deps_init): Likewise.
15413 (sched_deps_finish): Likewise.
15415 2015-06-01 Martin Liska <mliska@suse.cz>
15417 * regcprop.c (free_debug_insn_changes): Use new type-based
15419 (replace_oldest_value_reg): Likewise.
15420 (pass_cprop_hardreg::execute): Likewise.
15422 2015-06-01 Martin Liska <mliska@suse.cz>
15424 * ira-build.c (initiate_cost_vectors): Use new type-based
15426 (ira_allocate_cost_vector): Likewise.
15427 (ira_free_cost_vector): Likewise.
15428 (finish_cost_vectors): Likewise.
15430 2015-06-01 Martin Liska <mliska@suse.cz>
15432 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15434 (free_sched_pools): Likewise.
15435 * sel-sched-ir.h (_list_alloc): Likewise.
15436 (_list_remove): Likewise.
15438 2015-06-01 Martin Liska <mliska@suse.cz>
15440 * stmt.c (add_case_node): Use new type-based pool allocator.
15441 (expand_case): Likewise.
15442 (expand_sjlj_dispatch_table): Likewise.
15444 2015-06-01 Martin Liska <mliska@suse.cz>
15446 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15447 (free_bb): Likewise.
15448 (pass_cse_reciprocals::execute): Likewise.
15450 2015-06-01 Martin Liska <mliska@suse.cz>
15452 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15453 (sra_deinitialize) Likewise.
15454 (create_access_1) Likewise.
15455 (build_accesses_from_assign) Likewise.
15456 (create_artificial_child_access) Likewise.
15458 2015-06-01 Martin Liska <mliska@suse.cz>
15460 * dse.c (get_group_info):Use new type-based pool allocator.
15461 (dse_step0) Likewise.
15462 (free_store_info) Likewise.
15463 (delete_dead_store_insn) Likewise.
15464 (free_read_records) Likewise.
15465 (record_store) Likewise.
15466 (replace_read) Likewise.
15467 (check_mem_read_rtx) Likewise.
15468 (scan_insn) Likewise.
15469 (dse_step1) Likewise.
15470 (dse_step7) Likewise.
15472 2015-06-01 Martin Liska <mliska@suse.cz>
15474 * df-scan.c (struct df_scan_problem_data):Use new type-based
15476 (df_scan_free_internal) Likewise.
15477 (df_scan_alloc) Likewise.
15478 (df_grow_reg_info) Likewise.
15479 (df_free_ref) Likewise.
15480 (df_insn_create_insn_record) Likewise.
15481 (df_mw_hardreg_chain_delete) Likewise.
15482 (df_insn_info_delete) Likewise.
15483 (df_free_collection_rec) Likewise.
15484 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15485 (df_sort_and_compress_mws) Likewise.
15486 (df_ref_create_structure) Likewise.
15487 (df_ref_record) Likewise.
15489 2015-06-01 Martin Liska <mliska@suse.cz>
15491 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15492 (df_chain_unlink_1) Likewise.
15493 (df_chain_unlink) Likewise.
15494 (df_chain_remove_problem) Likewise.
15495 (df_chain_alloc) Likewise.
15496 (df_chain_free) Likewise.
15497 * df.h (struct dataflow) Likewise.
15499 2015-06-01 Martin Liska <mliska@suse.cz>
15501 * cselib.c (new_elt_list):Use new type-based pool allocator.
15502 (new_elt_loc_list) Likewise.
15503 (unchain_one_elt_list) Likewise.
15504 (unchain_one_elt_loc_list) Likewise.
15505 (unchain_one_value) Likewise.
15506 (new_cselib_val) Likewise.
15507 (cselib_init) Likewise.
15508 (cselib_finish) Likewise.
15510 2015-06-01 Martin Liska <mliska@suse.cz>
15512 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15513 (sh_reorg) Likewise.
15515 2015-06-01 Martin Liska <mliska@suse.cz>
15517 * cfg.c (initialize_original_copy_tables):Use new type-based
15519 (free_original_copy_tables) Likewise.
15520 (copy_original_table_clear) Likewise.
15521 (copy_original_table_set) Likewise.
15523 2015-06-01 Martin Liska <mliska@suse.cz>
15525 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15527 (asan_mem_ref_new) Likewise.
15528 (free_mem_ref_resources) Likewise.
15530 2015-06-01 Martin Liska <mliska@suse.cz>
15532 * var-tracking.c (variable_htab_free):Use new type-based
15534 (attrs_list_clear) Likewise.
15535 (attrs_list_insert) Likewise.
15536 (attrs_list_copy) Likewise.
15537 (shared_hash_unshare) Likewise.
15538 (shared_hash_destroy) Likewise.
15539 (unshare_variable) Likewise.
15540 (var_reg_delete_and_set) Likewise.
15541 (var_reg_delete) Likewise.
15542 (var_regno_delete) Likewise.
15543 (drop_overlapping_mem_locs) Likewise.
15544 (variable_union) Likewise.
15545 (insert_into_intersection) Likewise.
15546 (canonicalize_values_star) Likewise.
15547 (variable_merge_over_cur) Likewise.
15548 (dataflow_set_merge) Likewise.
15549 (remove_duplicate_values) Likewise.
15550 (variable_post_merge_new_vals) Likewise.
15551 (dataflow_set_preserve_mem_locs) Likewise.
15552 (dataflow_set_remove_mem_locs) Likewise.
15553 (variable_from_dropped) Likewise.
15554 (variable_was_changed) Likewise.
15555 (set_slot_part) Likewise.
15556 (clobber_slot_part) Likewise.
15557 (delete_slot_part) Likewise.
15558 (loc_exp_insert_dep) Likewise.
15559 (notify_dependents_of_changed_value) Likewise.
15560 (emit_notes_for_differences_1) Likewise.
15561 (vt_emit_notes) Likewise.
15562 (vt_initialize) Likewise.
15563 (vt_finalize) Likewise.
15565 2015-06-01 Martin Liska <mliska@suse.cz>
15567 * ira-color.c (init_update_cost_records):Use new type-based
15569 (get_update_cost_record) Likewise.
15570 (free_update_cost_record_list) Likewise.
15571 (finish_update_cost_records) Likewise.
15572 (initiate_cost_update) Likewise.
15574 2015-06-01 Martin Liska <mliska@suse.cz>
15576 * lra.c (init_insn_regs): Use new type-based pool allocator.
15577 (new_insn_reg) Likewise.
15578 (free_insn_reg) Likewise.
15579 (free_insn_regs) Likewise.
15580 (finish_insn_regs) Likewise.
15581 (init_insn_recog_data) Likewise.
15582 (init_reg_info) Likewise.
15583 (finish_reg_info) Likewise.
15584 (lra_free_copies) Likewise.
15585 (lra_create_copy) Likewise.
15586 (invalidate_insn_data_regno_info) Likewise.
15588 2015-06-01 Martin Liska <mliska@suse.cz>
15590 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15591 (free_live_range_list) Likewise.
15592 (create_live_range) Likewise.
15593 (copy_live_range) Likewise.
15594 (lra_merge_live_ranges) Likewise.
15595 (remove_some_program_points_and_update_live_ranges) Likewise.
15596 (lra_live_ranges_init) Likewise.
15597 (lra_live_ranges_finish) Likewise.
15599 2015-06-01 Martin Liska <mliska@suse.cz>
15601 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15602 (et_new_tree): Likewise.
15603 (et_free_tree): Likewise.
15604 (et_free_tree_force): Likewise.
15605 (et_free_pools): Likewise.
15606 (et_split): Likewise.
15608 2015-06-01 Martin Liska <mliska@suse.cz>
15610 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15612 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15613 (pool_allocator::release): Likewise.
15614 (inline pool_allocator::release_if_empty): Likewise.
15615 (inline pool_allocator::~pool_allocator): Likewise.
15616 (pool_allocator::allocate): Likewise.
15617 (pool_allocator::remove): Likewise.
15619 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15621 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15624 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15626 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15628 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15629 (arm_macro_fusion_p): Likewise.
15630 (arm_macro_fusion_pair_p): Likewise.
15632 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15634 * config/aarch64/aarch64-protos.h (tune_params): Rename
15635 fuseable_ops to fusible_ops.
15636 * config/aarch64/aarch64.c (generic_tunings): Rename
15637 fuseable_ops to fusible_ops.
15638 (cortexa53_tunings): Likewise.
15639 (cortexa57_tunings): Likewise.
15640 (thunderx_tunings): Likewise.
15641 (xgene1_tunings): Likewise.
15642 (aarch64_macro_fusion_p): Likewise.
15643 (aarch64_macro_fusion_pair_p): Likewise.
15645 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15647 * config/s390/driver-native.c: New file.
15648 * config/s390/x-native: New file.
15649 * config.host: Add new files for s390.
15650 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15652 * config.gcc: Likewise.
15653 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15654 * config/s390/s390-opts.h (enum processor_type): Ditto.
15655 * config/s390/s390.c (s390_option_override): Catch unhandled
15658 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15661 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15662 redirection for instrumented calls.
15663 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15664 (append_compiler_options): Append -fcheck-pointer-bounds.
15665 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15666 (chkp_redirect_edge): New.
15667 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15668 (chkp_redirect_edge): New.
15670 2015-06-01 Richard Biener <rguenther@suse.de>
15672 PR tree-optimization/66280
15673 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15676 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15678 * config/aarch64/aarch64.md
15679 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
15682 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15684 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
15685 Remove obsolete kludge.
15687 2015-06-01 Richard Biener <rguenther@suse.de>
15689 * tree-ssa-reassoc.c (get_rank): Simplify.
15691 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
15693 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
15694 * configure: Regenerated.
15696 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
15698 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
15699 issue (add space between string literal and macro).
15700 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
15702 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
15704 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
15705 implict or explicit -fPIE or -fpie.
15707 2015-05-30 Mike Frysinger <vapier@gentoo.org>
15709 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
15711 2015-05-28 DJ Delorie <dj@redhat.com>
15713 * expmed.c (extract_bit_field_1): Avoid clobbering a
15714 yet-to-be-used base/index register.
15716 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
15718 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
15719 (alias_stats): Add num_universal.
15720 (alias_set_subset_of): Special case pointers; be ready for NULL
15722 (alias_sets_conflict_p): Special case pointers; be ready for NULL
15724 (init_alias_set_entry): Break out from ...
15725 (record_alias_subset): ... here; propagate new fields;
15726 allocate children only when really needed.
15727 (get_alias_set): Do less generous pointer globbing.
15728 (dump_alias_stats_in_alias_c): Update statistics.
15730 2015-05-30 Alan Modra <amodra@gmail.com>
15732 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15733 correct block for use of r12.
15734 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15736 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15739 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15742 2015-05-29 Jakub Jelinek <jakub@redhat.com>
15744 PR tree-optimization/66142
15745 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15746 virtual phis that feed themselves.
15748 2015-05-29 Richard Biener <rguenther@suse.de>
15750 PR tree-optimization/66314
15751 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15752 parameter that says which loop the new block belongs to.
15753 (ssa_create_duplicates): Blocks duplicated for the threaded
15754 path belong to the loop of the thread destination.
15756 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15758 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
15759 to cleanup-saved-temps.
15760 * doc/sourcebuild.texi (Clean up generated test files): Expand
15762 (dg-keep-saved-temps): Document new proc.
15763 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
15764 cleanup-saved-temps): Remove.
15766 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
15768 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
15769 gcc_AC_CHECK_DECLS.
15770 * configure: Regenerate.
15772 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15774 * config/nios2/linux.h (CPP_SPEC): Define.
15776 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15778 * config/microblaze/linux.h (CPP_SPEC): Define.
15780 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15782 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15783 -pthread is specified.
15785 2015-05-28 Richard Biener <rguenther@suse.de>
15787 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15788 (vect_fixup_scalar_cycles_with_patterns): Likewise.
15789 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15790 after pattern recog.
15791 (vect_create_epilog_for_reduction): Properly handle reductions
15793 (vectorizable_reduction): Likewise.
15794 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15796 (vect_get_constant_vectors): Create the correct number of
15797 initial values for reductions.
15798 (vect_schedule_slp_instance): Handle reduction chains that are
15799 type changing properly.
15800 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15802 2015-05-28 Richard Biener <rguenther@suse.de>
15804 PR tree-optimization/66142
15805 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15806 values better in memcpy destination handling. Handle non-aliasing
15809 2015-05-28 Lawrence Velázquez <vq@larryv.me>
15812 * config/darwin-c.c (version_components): New global enum.
15813 (parse_version, version_as_legacy_macro)
15814 (version_as_modern_macro, macosx_version_as_macro): New functions.
15815 (version_as_macro): Remove.
15816 (darwin_cpp_builtins): Use new function.
15818 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
15820 * builtins.c (expand_builtin_acc_on_device): Mark parameters
15821 with ATTRIBUTE_UNUSED.
15823 2015-05-28 Julian Brown <julian@codesourcery.com>
15827 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15828 sequence for !ACCEL_COMPILER.
15830 2015-05-28 Nick Clifton <nickc@redhat.com>
15832 * config/rx/rx.c (push_regs): New function. Extracts code from...
15833 (rx_expand_prologue): ... here. Use push_regs to push even small
15834 spans of registers.
15835 (pop_regs): New function.
15836 (rx_expand_epilogue): Use pop_regs to pop even small spans of
15839 2015-05-28 Richard Biener <rguenther@suse.de>
15841 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15843 (SLP_INSTANCE_BODY_COST_VEC): Remove.
15844 (vect_update_slp_costs_according_to_vf): Likewise.
15845 (vect_slp_analyze_operations): Update prototype.
15846 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15847 vect_update_slp_costs_according_to_vf, adjust.
15848 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15849 (vect_analyze_slp_cost_1): Likewise.
15850 (vect_analyze_slp_cost): Likewise. Properly deal with
15851 widening reduction ops. Commit body costs.
15852 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
15853 cost for loops from here.
15854 (vect_slp_analyze_operations): But do it from here when
15855 the vectorization factor is known and stmts are analyzed.
15856 (vect_bb_vectorization_profitable_p): Simplify.
15857 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15858 (vect_update_slp_costs_according_to_vf): Remove.
15860 2015-05-27 Magnus Granberg <zorry@gentoo.org>
15861 H.J. Lu <hongjiu.lu@intel.com>
15863 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15864 (BUILD_CFLAGS): Likewise.
15865 (BUILD_CXXFLAGS): Likewise.
15866 (LINKER): Add @NO_PIE_FLAG@.
15867 (BUILD_LDFLAGS): Likewise.
15868 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15869 --enable-default-pie.
15870 * common.opt (fPIE): Initialize to -1.
15872 (no-pie): New option.
15873 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15874 * configure.ac: Add --enable-default-pie.
15875 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
15876 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
15877 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
15878 * gcc.c (NO_PIE_SPEC): New.
15879 (PIE_SPEC): Likewise.
15880 (NO_FPIE1_SPEC): Likewise.
15881 (FPIE1_SPEC): Likewise.
15882 (NO_FPIE2_SPEC): Likewise.
15883 (FPIE2_SPEC): Likewise.
15884 (NO_FPIE2_SPEC): Likewise.
15885 (FPIE_SPEC): Likewise.
15886 (NO_FPIE_SPEC): Likewise.
15887 (NO_FPIC1_SPEC): Likewise.
15888 (FPIC1_SPEC): Likewise.
15889 (NO_FPIC2_SPEC): Likewise.
15890 (FPIC2_SPEC): Likewise.
15891 (NO_FPIC2_SPEC): Likewise.
15892 (FPIC_SPEC): Likewise.
15893 (NO_FPIC_SPEC): Likewise.
15894 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15895 (FPIE1_OR_FPIC1_SPEC): Likewise.
15896 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15897 (FPIE2_OR_FPIC2_SPEC): Likewise.
15898 (NO_FPIE_AND_FPIC_SPEC): Likewise.
15899 (FPIE_OR_FPIC_SPEC): Likewise.
15900 (LD_PIE_SPEC): Likewise.
15901 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
15902 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15903 * config/darwin.h (PIE_SPEC): Renamed to ...
15904 (DARWIN_PIE_SPEC): This.
15905 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15906 * config/darwin9.h (PIE_SPEC): Renamed to ...
15907 (DARWIN_PIE_SPEC): This.
15908 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15909 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15910 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15911 FPIE2_OR_FPIC2_SPEC.
15912 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15913 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15914 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15915 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15916 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15917 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15918 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15919 * config/m32r/m32r.h (ASM_SPEC): Likewise.
15920 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15921 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15922 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15923 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15924 * config/sparc/linux.h (ASM_SPEC): Likewise.
15925 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15926 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15927 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15928 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15929 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15930 * config/sparc/sparc.h (ASM_SPEC): Likewise.
15931 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15932 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15933 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15934 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15935 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15936 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15937 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15938 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15939 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15940 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15941 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15942 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15943 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15944 * config/vax/linux.h (ASM_SPEC): Likewise.
15945 * doc/install.texi: Document --enable-default-pie.
15946 * doc/invoke.texi: Document -no-pie.
15947 * config.in: Regenerated.
15948 * configure: Likewise.
15950 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15952 PR rtl-optimization/66168
15953 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15954 can_move_invariant_reg.
15956 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
15959 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15960 REG_EQUAL note when doing insert.
15962 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15963 instead of "%d" for 'o' operand.
15965 2015-05-27 Nathan Sidwell <nathan@acm.org>
15968 * tree.c (build_pointer_type_for_mode): Canonical type does not
15969 inherit can_alias_all.
15970 (build_reference_type_for_mode): Likewise.
15972 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
15974 * expr.h (array_at_struct_end_p): Move to...
15975 (array_ref_element_size): Likewise.
15976 (component_ref_field_offset): Likewise.
15977 * tree.h (array_ref_element_size): ...here.
15978 (array_at_struct_end_p): Likewise.
15979 (component_ref_field_offset): Likewise.
15980 * expr.c (array_ref_element_size): Move to...
15981 (array_ref_low_bound): Likewise.
15982 (array_at_struct_end_p): Likewise.
15983 (array_ref_up_bound): Likewise.
15984 (component_ref_field_offset): Likewise.
15985 * tree.c (array_ref_element_size): ...here.
15986 (array_ref_low_bound): Likewise.
15987 (array_ref_up_bound): Likewise.
15988 (array_at_struct_end_p): Likewise.
15989 (component_ref_field_offset): Likewise.
15991 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15992 Szabolcs Nagy <szabolcs.nagy@arm.com>
15994 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15996 2015-05-27 Jason Merrill <jason@redhat.com>
15999 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16000 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16001 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16003 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16005 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16008 * statistics.c (statistics_fini_pass): Print pass name.
16010 2015-05-27 Richard Biener <rguenther@suse.de>
16012 PR tree-optimization/66272
16014 2014-08-15 Richard Biener <rguenther@suse.de>
16016 PR tree-optimization/62031
16017 * tree-data-ref.c (dr_analyze_indices): Do not set
16018 DR_UNCONSTRAINED_BASE.
16019 (dr_may_alias_p): All indirect accesses have to go the
16020 formerly DR_UNCONSTRAINED_BASE path.
16021 * tree-data-ref.h (struct indices): Remove
16022 unconstrained_base member.
16023 (DR_UNCONSTRAINED_BASE): Remove.
16025 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16027 * dwarf2out.c: Remove block_map.
16028 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16029 (gen_lexical_block_die): Same.
16030 (dwarf2out_function_decl): Remove block_map use.
16031 (dwarf2out_c_finalize): Same.
16032 * tree-core.h (struct tree_block): Add die field.
16033 * tree.h (BLOCK_DIE): New.
16035 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16038 * expr.c (memory_load_overlap): New function.
16039 (emit_push_insn): When pushing partial args to the stack would
16040 clobber the register part load the overlapping part into a pseudo
16041 and put it into the hard reg after pushing. Change return type
16042 to bool. Add bool argument.
16043 * expr.h (emit_push_insn): Change return type to bool.
16045 * calls.c (expand_call): Cancel sibcall optimization when encountering
16046 partial argument on targets with ARGS_GROW_DOWNWARD and
16047 !STACK_GROWS_DOWNWARD.
16048 (emit_library_call_value_1): Update callsite of emit_push_insn.
16049 (store_one_arg): Likewise.
16051 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16053 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16055 2015-05-27 Martin Liska <mliska@suse.cz>
16057 * Makefile.in: Add additional dependencies related to memory report
16059 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16060 * bitmap.c (struct bitmap_descriptor_d): Remove.
16061 (struct loc): Likewise.
16062 (struct bitmap_desc_hasher): Likewise.
16063 (bitmap_desc_hasher::hash): Likewise.
16064 (bitmap_desc_hasher::equal): Likewise.
16065 (get_bitmap_descriptor): Likewise.
16066 (bitmap_register): User new memory descriptor API.
16067 (register_overhead): Likewise.
16068 (bitmap_find_bit): Register nsearches and search_iter statistics.
16069 (struct bitmap_output_info): Remove.
16070 (print_statistics): Likewise.
16071 (dump_bitmap_statistics): Use new memory descriptor.
16072 * bitmap.h (struct bitmap_usage): New class.
16073 * genmatch.c: Extend header file inclusion.
16074 * genpreds.c: Likewise.
16075 * ggc-common.c (struct ggc_usage): New class.
16076 (struct ggc_loc_desc_hasher): Remove.
16077 (ggc_loc_desc_hasher::hash): Likewise.
16078 (ggc_loc_desc_hasher::equal): Likewise.
16079 (struct ggc_ptr_hash_entry): Likewise.
16080 (struct ptr_hash_hasher): Likewise.
16081 (ptr_hash_hasher::hash): Likewise.
16082 (ptr_hash_hasher::equal): Likewise.
16083 (make_loc_descriptor): Likewise.
16084 (ggc_prune_ptr): Likewise.
16085 (dump_ggc_loc_statistics): Use new memory descriptor.
16086 (ggc_record_overhead): Likewise.
16087 (ggc_free_overhead): Likewise.
16088 (final_cmp_statistic): Remove.
16089 (cmp_statistic): Likewise.
16090 (ggc_add_statistics): Liekwise.
16091 (ggc_prune_overhead_list): Likewise.
16092 * hash-map-traits.h: New file.
16093 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16094 separate header file.
16095 * hash-set.h: Pass memory statistics info to ctor.
16096 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16097 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16098 (hash_table::~hash_table): Register memory release operation.
16099 (hash_table::alloc_entries): Handle memory allocation operation.
16100 (hash_table::expand): Likewise.
16101 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16103 (iterative_hash_host_wide_int): Likewise.
16104 * inchash.h (class hash): Likewise.
16105 * mem-stats-traits.h: New file.
16106 * mem-stats.h: New file.
16107 (mem_location): Add new class.
16108 (mem_usage): Likewise.
16109 (mem_alloc_description): Likewise.
16110 * sese.c: Add new header file inclusision.
16111 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16113 * tree-sra.c: Add new header file inclusision.
16114 * vec.c (struct vec_descriptor): Remove.
16115 (hash_descriptor): Likewise.
16116 (struct vec_usage): Likewise.
16117 (struct ptr_hash_entry): Likewise.
16118 (hash_ptr): Likewise.
16119 (eq_ptr): Likewise.
16120 (vec_prefix::register_overhead): Use new memory descriptor API.
16121 (vec_prefix::release_overhead): Likewise.
16122 (add_statistics): Remove.
16123 (dump_vec_loc_statistics): Use new memory descriptor API.
16124 * vec.h (struct vec_prefix): Likewise.
16125 (va_heap::reserve): Likewise.
16126 (va_heap::release): Likewise.
16127 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16129 2015-05-27 Richard Biener <rguenther@suse.de>
16131 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16132 earlier and remove ??? comment.
16133 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16134 and got called from loop analysis bail out. Always pass the SLP
16135 node to the vectorizable_* functions.
16136 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16137 the premature SLP check here.
16138 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16139 detected SLP stmts.
16140 (vect_detect_hybrid_slp_1): Likewise.
16142 2015-05-26 Jeff Law <law@redhat.com>
16144 * combine.c (find_split_point): Verify that the shift count is a
16145 constant when choosing (plus (ashift ...)) as a split point.
16147 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16148 No functional changes.
16150 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16152 * ipa-polymorphic-call.c
16153 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16154 case when call target is already known.
16156 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16159 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16160 take into account the case that operands[1] and operands[2]
16161 are the same register.
16163 2015-05-26 Michael Matz <matz@suse.de>
16165 PR middle-end/66251
16167 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16169 (vect_create_vectorized_demotion_stmts): Always set
16170 STMT_VINFO_VEC_STMT, also with SLP.
16171 (vectorizable_store): Handle strided group stores.
16173 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16176 * config/aarch64/aarch64.md
16177 (*adds_shift_imm_<mode>): New pattern.
16178 (*subs_shift_imm_<mode>): Likewise.
16179 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16180 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16181 (*add_uxt<mode>_shift2): Likewise.
16182 (*add_uxtsi_shift2_uxtw): Likewise.
16183 (*sub_uxt<mode>_shift2): Likewise.
16184 (*sub_uxtsi_shift2_uxtw): Likewise.
16186 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16188 * config/rs6000/constraints.md (Y, U): Use match_test.
16190 2015-05-26 Christian Bruel <christian.bruel@st.com>
16193 * config/arm/arm.c (arm_option_check_internal)
16194 (arm_option_params_internal): Check opts->target_flags to set macros.
16195 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16196 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16197 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16198 (builtin_define): Replaced with def_or_undef_macro.
16199 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16200 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16201 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16202 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16203 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16204 (TARGET_ARM_FEATURE_LDREX_P)
16205 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16206 * config/arm/arm-c.c (def_or_undef_macro): New function.
16207 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16209 2015-05-26 Christian Bruel <christian.bruel@st.com>
16211 * c-common.h (builtin_define_with_int_value)
16212 (builtin_define_type_sizeof): Declare.
16213 * c-cppbuiltin.c (builtin_define_with_int_value)
16214 (builtin_define_type_sizeof): Externalize.
16215 (builtin_define_std): Cleanup declaration.
16216 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16217 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16218 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16219 (builtin_define, builtin_assert): New macros.
16221 2015-05-26 Richard Biener <rguenther@suse.de>
16223 PR tree-optimization/66142
16224 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16225 MEM_REFs for the same base address.
16227 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16230 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16232 2015-05-26 Jason Merrill <jason@redhat.com>
16234 * configure.ac: Set CXXFLAGS for ISL test.
16235 * configure: Regenerate.
16237 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16238 strstr and basename.
16239 * configure: Regenerate.
16241 2015-05-26 Richard Biener <rguenther@suse.de>
16243 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16244 X % C -> X & (C - 1) for C being a power-of two to ...
16245 * match.pd: ... patterns.
16247 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16249 * match.pd (swapped_tcc_comparison): New operator list.
16250 (-A CMP -B): New simplification.
16251 * fold-const.c (fold_comparison): Remove corresponding code.
16253 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16255 * caller-save.c (init_caller_save): Base temporary register numbers
16256 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16257 * cfgloopanal.c (init_set_costs): Likewise.
16258 * dojump.c (prefer_and_bit_test): Likewise.
16259 * expr.c (init_expr_target): Likewise.
16260 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16261 * lower-subreg.c (init_lower_subreg): Likewise.
16262 * postreload.c (reload_cse_regs_1): Likewise.
16264 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16266 * gensupport.h (compute_test_codes): Declare.
16267 * gensupport.c (compute_predicate_codes): Rename to...
16268 (compute_test_codes): ...this. Generalize error message.
16269 (process_define_predicate): Update accordingly.
16270 * genpreds.c (compute_maybe_allows): Delete.
16271 (add_constraint): Use compute_test_codes to determine whether
16272 something can accept a SUBREG, REG or MEM.
16274 2015-05-26 Torvald Riegel <triegel@redhat.com>
16276 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16277 'memory model' to align with C++11; fix description of memory orders;
16280 2015-05-26 Richard Biener <rguenther@suse.de>
16282 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16283 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16284 detect whether we apply SLP. Remove call to
16285 vect_update_slp_costs_according_to_vf.
16286 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16287 vect_update_slp_costs_according_to_vf from here. Dispatch
16288 to vect_slp_analyze_operations to analyze SLP stmts.
16289 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16290 unused bb_vec_info parameter, adjust assert.
16291 (vect_slp_analyze_operations): Pass in the slp instance tree
16292 instead of bb_vec_info.
16293 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16294 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16296 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16298 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16299 Q_REGS. Expand comment.
16300 (REG_CLASS_NAMES): Ditto.
16301 (REG_CLASS_CONTENTS): Ditto.
16303 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16306 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16307 when LEGACY_INT_REGNO_P is processed.
16309 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16311 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16313 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16315 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16316 register if not marked dead/unused, before return.
16318 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16321 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16322 is set; check for assembler name at LTO time.
16323 (type_in_anonymous_namespace): Remove hacks, check that all
16324 anonymous types are called "<anon>"
16325 (odr_type_p): Simplify; add check for "<anon>"
16326 (odr_subtypes_equivalent): Add odr_type_p check.
16327 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16330 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16332 * ipa-utils.h (method_class_type): Remove.
16333 * cgraphunit.c (walk_polymorphic_call_targets): Use
16334 TYPE_METHOD_BASETYPE.
16335 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16336 on main variants only.
16337 (method_class_type): Remove.
16338 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16339 (build_type_inheritance_graph): Likewise.
16340 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16341 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16342 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16344 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16346 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16347 is_typedef_decl, typedef_variant_p): Constify.
16348 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16349 is_typedef_decl, typedef_variant_p): Constify.
16351 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16353 * defaults.h (gen_tablejump): New function.
16354 (HAVE_tablejump): Add default value.
16356 * stmt.c: Likewise.
16358 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16360 * defaults.h (gen_store_multiple): New function.
16361 (HAVE_store_multiple): Add default value.
16362 * expr.c (move_block_from_reg): Adjust.
16364 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16366 * defaults.h (gen_load_multiple): New function.
16367 (HAVE_load_multiple): Add default value.
16368 * expr.c (move_block_to_reg): Adjust.
16370 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16372 * defaults.h (gen_mem_signal_fence): New function.
16373 (HAVE_mem_signal_fence): Add default value.
16374 * optabs.c: Adjust.
16376 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16378 * defaults.h (gen_memory_barrier): New function.
16379 (HAVE_memory_barrier): Add default value.
16380 * optabs.c: Adjust.
16382 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16384 * defaults.h (gen_mem_thread_fence): New function.
16385 (HAVE_mem_thread_fence): Add default definition.
16386 * optabs.c: Adjust.
16388 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16390 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16391 instead of if it is defined.
16392 (combine_simplify_rtx): Likewise.
16393 * lra-constraints.c (process_address_1): Likewise.
16394 * config/darwin.c: Adjust.
16395 * genconfig.c (main): Always define HAVE_lo_sum.
16397 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16399 * genmatch.c (parser::parse_operation): Reject expanding
16400 operator-list inside 'for'.
16402 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16404 * genmatch.c (parser::parse_for): Reject iterator if used as
16407 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16409 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16410 after end of id-list.
16412 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16414 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16415 we do not try to compute canonical type for type that does not need
16417 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16419 * tree.h (type_with_alias_set_p): New.
16421 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16423 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16424 function attributes.
16425 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16427 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16429 * Makefile.in (check_gcc_parallelize): Delete.
16430 (lang_checks_parallelized): Update comment.
16432 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16434 PR rtl-optimization/66237
16435 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16436 location of an "as_a" cast.
16438 2015-05-22 Jeff Law <law@redhat.com>
16440 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16441 (peepholes with non-canonical RTL sources): Remove.
16442 (peepholes for indexed stores of FP regs in integer modes): Match and
16443 generate canonical RTL.
16445 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16447 PR tree-optimization/63387
16448 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16449 ((x ord x) & (y ord y) -> (x ord y),
16450 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16451 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16452 vectors like scalars.
16454 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16456 * convert.c (convert_to_integer, convert_to_vector): Include the
16457 types in the error message.
16459 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16461 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16464 2015-05-22 Jeff Law <law@redhat.com>
16466 * config/pa/pa.md (integer_indexed_store splitters): Use
16467 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16468 insns -- adjusting the constant 2nd operand accordingly.
16470 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16471 (plus (ashift X log2) Y) if it is a split point.
16473 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16474 out of hppa_legitimize_address to handle both forms of a multiply
16476 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16477 Always generate the ASHIFT variant as the result is not directly
16478 used in a MEM. Update comments and refactor slightly to improve
16481 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16484 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16485 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16486 (aarch64_composite_type_p): Return false if given type and mode are
16487 for a short vector.
16489 2015-05-22 Richard Biener <rguenther@suse.de>
16491 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16493 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16494 patterns when determining whether SLP is pure.
16495 (vect_is_slp_reduction): Remove check for pattern stmts.
16496 (vect_is_simple_reduction_1): Remove dead code.
16497 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16498 (vect_get_and_check_slp_defs): Pass in the stmt number.
16499 Allow the first def in a reduction to be not a pattern stmt when
16500 the rest of the stmts def are patterns.
16501 (vect_build_slp_tree_1): Allow tcc_expression codes like
16502 SAD_EXPR and DOT_PROD_EXPR.
16503 (vect_build_slp_tree): Adjust.
16504 (vect_analyze_slp): Refactor and move BB vect error message ...
16505 (vect_slp_analyze_bb_1): ... here.
16507 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16509 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16510 for CSWTCH temporary.
16512 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16514 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16515 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16518 2015-05-22 Richard Biener <rguenther@suse.de>
16520 PR tree-optimization/66251
16521 * tree-vect-stmts.c (vectorizable_conversion): Properly
16522 set STMT_VINFO_VEC_STMT even for the SLP case.
16524 2015-05-22 Marek Polacek <polacek@redhat.com>
16526 * doc/extend.texi: Use @pxref instead of @xref.
16528 2015-05-22 hiraditya <hiraditya@msn.com>
16530 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16533 2015-05-22 Richard Biener <rguenther@suse.de>
16535 PR tree-optimization/65701
16536 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16537 Move peeling cost models into one place. Peel for alignment
16538 for single loads only if an aligned load is cheaper than
16541 2015-05-22 Marek Polacek <polacek@redhat.com>
16544 * doc/extend.texi (Enumerator Attributes): New section.
16545 Document syntax of enumerator attributes.
16547 2015-05-22 Richard Biener <rguenther@suse.de>
16549 * tree-vect-loop.c (get_reduction_op): New function.
16550 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16551 Make ready for BB reductions.
16552 (vect_create_epilog_for_reduction): Use get_reduction_op.
16553 (vectorizable_reduction): Init reduc_index to a valid value.
16554 Adjust vect_model_reduction_cost call.
16555 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16556 operand for reduction defaults. Add SAD_EXPR support.
16557 Assert we have a neutral op for SLP reductions.
16558 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16559 walking pattern stmt ops only recurse to SSA names.
16561 2015-05-22 Richard Biener <rguenther@suse.de>
16563 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16564 assert with guard, remove check on detected reduction.
16565 (vect_recog_sad_pattern): Likewise.
16566 (vect_recog_widen_sum_pattern): Likewise.
16568 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16570 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16571 __always_inline__ attribute.
16572 (vaesdq_u8): Likewise.
16573 (vaesmcq_u8): Likewise.
16574 (vaesimcq_u8): Likewise.
16575 (vsha1cq_u32): Likewise.
16576 (vsha1mq_u32): Likewise.
16577 (vsha1pq_u32): Likewise.
16578 (vsha1h_u32): Likewise.
16579 (vsha1su0q_u32): Likewise.
16580 (vsha1su1q_u32): Likewise.
16581 (vsha256hq_u32): Likewise.
16582 (vsha256h2q_u32): Likewise.
16583 (vsha256su0q_u32): Likewise.
16584 (vsha256su1q_u32): Likewise.
16585 (vmull_p64): Likewise.
16586 (vmull_high_p64): Likewise.
16588 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16590 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16592 * output.h: Likewise.
16593 * genconfig.c (main): Alwways define HAVE_peephole.
16594 * genpeep.c: Don't emit checks of HAVE_peephole.
16596 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16598 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16599 check HAVE_conditional_move with the preprocessor.
16601 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16603 * genconfig.c (main): Always define HAVE_conditional_move.
16604 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16605 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16608 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16610 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16611 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16612 and FRAME_POINTER_REGNUM with the preprocessor.
16614 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16616 * defaults.h: Add default for STACK_PUSH_CODE.
16617 * expr.c: Don't redefine STACK_PUSH_CODE.
16618 * recog.c: Likewise.
16620 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16622 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16623 sched-deps.c: Use if instead of preprocessor checks with
16624 STACK_GROWS_DOWNWARD.
16626 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16628 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16630 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16631 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16632 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16633 * doc/tm.texi: Regenerate.
16635 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16638 * config/i386/constraints.md (Bg): New constraint for GOT memory
16640 * config/i386/i386.md (*call_got_x32): New pattern.
16641 (*call_value_got_x32): Likewise.
16642 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16644 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16646 PR tree-optimization/66233
16647 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16650 2015-05-21 Jeff Law <law@redhat.com>
16652 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16653 than MULT for shadd sequences.
16655 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16657 * alias.c (alias_stats): New static var.
16658 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16659 (dump_alias_stats_in_alias_c): New function.
16660 * alias.h (dump_alias_stats_in_alias_c): Declare.
16661 * tree-ssa-alias.c (dump_alias_stats): Call it.
16663 2015-05-08 Michael Matz <matz@suse.de>
16665 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16667 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16668 (STMT_VINFO_STRIDED_P): ... this.
16669 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16670 (vect_verify_datarefs_alignment): Likewise.
16671 (vect_enhance_data_refs_alignment): Likewise.
16672 (vect_analyze_data_ref_access): Likewise.
16673 (vect_analyze_data_refs): Accept strided stores.
16674 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16675 (vect_model_load_cost): Adjust for macro rename.
16676 (vectorizable_mask_load_store): Likewise.
16677 (vectorizable_load): Likewise.
16678 (vectorizable_store): Open code strided stores.
16680 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16682 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
16683 Document sqrt_insn.
16685 2015-05-21 Richard Biener <rguenther@suse.de>
16688 * match.pd: Guard pattern optimzing (int)(float)int
16689 conversions to apply only on GIMPLE.
16691 2015-05-21 Jeff Law <law@redhat.com>
16693 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
16694 multiply-accumulate/shift-add insn generation.
16696 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16699 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
16700 operands[1] are the same.
16702 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
16704 PR middle-end/66221
16705 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
16706 build_distinct_type_copy to copy bounds.
16708 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
16710 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
16711 Change to unsigned int.
16713 2015-05-20 Jeff Law <law@redhat.com>
16715 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
16716 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
16717 (pa_shadd_constant_p): Allow constants for shadd insns rather
16718 than valid scaling constants for memory addresses.
16719 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
16720 * config/pa/predicates.md (mem_shadd_operand): New predicate.
16721 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
16722 (shift-add insns using ASHIFT): New patterns.
16724 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
16726 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16728 (fix_up_fall_thru_edges): Likewise.
16729 (fix_crossing_conditional_branches): Likewise. Promote jump targets
16730 from to rtx_insn to rtx_code_label where feasible.
16731 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16732 gen_move_insn (returned type changed to rtx_insn).
16733 * builtins.c (expand_errno_check): Fix arguments of
16734 do_compare_rtx_and_jump (now expects rtx_code_label).
16735 (expand_builtin_acc_on_device): Likewise.
16736 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16737 invert_jump (now exprects rtx_jump_insn).
16738 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16739 (construct_init_block): Use rtx_code_label.
16740 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16741 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16742 calling redirect_jump.
16743 (patch_jump_insn): Likewise.
16744 (redirect_branch_edge): Likewise.
16745 (force_nonfallthru_and_redirect): Likewise.
16746 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16748 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16749 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16750 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16751 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16752 to store the value retured by gen_label_rtx.
16753 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
16755 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
16756 (split_branches): Fix calls of redirect_jump.
16757 * dojump.c (jumpifnot): Promote argument type from rtx to
16759 (jumpifnot_1): Likewise.
16760 (jumpif): Likewise.
16761 (jumpif_1): Likewise.
16762 (do_jump_1): Likewise.
16763 (do_jump): Likewise. Use rtx_code_label when feasible.
16764 (do_jump_by_parts_greater_rtx): Likewise.
16765 (do_jump_by_parts_zero_rtx): Likewise.
16766 (do_jump_by_parts_equality_rtx): Likewise.
16767 (do_compare_rtx_and_jump): Likewise.
16768 * dojump.h: Update function prototypes.
16769 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
16771 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
16773 (emit_label_before): Likewise.
16774 (emit_jump_insn_after_noloc): Likewise.
16775 (emit_jump_insn_after_setloc): Likewise.
16776 (emit_jump_insn_after): Likewise
16777 (emit_jump_insn_before_setloc): Likewise.
16778 (emit_jump_insn_before): Likewise.
16779 (emit_label_before): Promote return type to rtx_code_label.
16780 (emit_label): Likewise.
16781 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16782 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16784 (emit_stack_restore): Likewise.
16785 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16786 (do_cmp_and_jump): Likewise.
16787 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16788 from rtx to rtx_code_label.
16789 (gen_move_insn_uncast): New function.
16790 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16791 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16792 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16793 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16794 invert_jump_1 and redirect_jump_1.
16795 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16796 do_compare_rtx_and_jump.
16797 (expand_addsub_overflow): Likewise.
16798 (expand_neg_overflow): Likewise.
16799 (expand_mul_overflow): Likewise.
16800 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16801 return value of gen_move_insn.
16802 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16803 * loop-doloop.c (add_test): Use rtx_code_label.
16804 (doloop_modify): Likewise.
16805 (doloop_optimize): Likewise.
16806 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16807 * lra-constraints.c (emit_spill_move): Remove cast of value returned
16809 (inherit_reload_reg): Add cast when calling dump_insn_slim.
16810 (split_reg): Likewise.
16811 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16813 * optabs.c (expand_binop_directly): Remove casts of values returned by
16815 (expand_unop_direct): Likewise.
16816 (expand_abs): Likewise.
16817 (maybe_emit_unop_insn): Likewise.
16818 (maybe_gen_insn): Promote return type to rtx_insn.
16819 * optabs.h: Update prototype of maybe_gen_insn.
16820 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16822 * recog.c (struct peep2_insn_data): Promote type of insn field to
16824 (peep2_reinit_state): Use NULL instead of NULL_RTX.
16825 (peep2_attempt): Remove casts of insn in peep2_insn_data.
16826 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16827 * recog.h (struct insn_gen_fn): Promote return types of function
16828 pointers and operator ().from rtx to rtx_insn.
16829 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16830 (fill_eager_delay_slots): Likewise.
16831 (relax_delay_slots): Likewise.
16832 (make_return_insns): Likewise.
16833 (dbr_schedule): Likewise.
16834 (optimize_skips): Likewise.
16835 (reorg_redirect_jump): Likewise.
16836 (fill_slots_from_thread): Likewise.
16837 * reorg.h: Update prototypes.
16838 * resource.c (find_dead_or_set_registers): Use dyn_cast to
16839 rtx_jump_insn instead of check. Use it's jump_target method.
16840 * rtl.h (rtx_jump_insn::jump_label): Define new method.
16841 (rtx_jump_insn::jump_target): Define new method.
16842 (rtx_jump_insn::set_jump_target): Define new method.
16843 * rtlanal.c (tablejump_p): Promote type of one local variable.
16844 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16845 (sched_analyze_insn): Likewise.
16846 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16847 (print_insn): Likewise.
16848 * stmt.c (label_rtx): Promote return type to rtx_insn.
16849 (force_label_rtx): Likewise.
16850 (jump_target_rtx): Define new function.
16851 (expand_label): Use it, get rid of one cast.
16852 (expand_naked_return): Promote rtx to rtx_code_label.
16853 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16854 (expand_case): Use rtx_code_label instread of rtx where feasible.
16855 (expand_sjlj_dispatch_table): Likewise.
16856 (emit_case_nodes): Likewise.
16857 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
16858 * store-motion.c (insert_store): Make use of new return type of
16859 gen_move_insn and remove a cast.
16860 (replace_store_insn): Likewise.
16862 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
16864 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16865 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16867 2015-05-20 Jeff Law <law@redhat.com>
16869 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16870 dispose of the jump thread path when the jump threading
16871 opportunity is cancelled.
16873 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16875 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16876 when printing the caret character.
16878 2015-05-20 Marek Polacek <polacek@redhat.com>
16880 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16882 2015-05-20 Marek Polacek <polacek@redhat.com>
16884 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16885 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16886 * gimple-fold.c (canonicalize_bool): Likewise.
16887 (same_bool_result_p): Likewise.
16888 * tree-if-conv.c (parse_predicate): Likewise.
16890 2015-05-20 Marek Polacek <polacek@redhat.com>
16892 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16893 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16895 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16897 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16898 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16901 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
16903 * config/mips/mips.h (micromips_globals): Declare.
16905 2015-05-20 David Malcolm <dmalcolm@redhat.com>
16907 * timevar.def (TV_INITIALIZE_RTL): New.
16908 * toplev.c (initialize_rtl): Use an auto_timevar to account this
16909 function's time to TV_INITIALIZE_RTL.
16911 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16913 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16914 gimple_build_nop calls.
16915 (chkp_find_bounds_for_elem): Likewise.
16916 (chkp_get_zero_bounds): Likewise.
16917 (chkp_get_none_bounds): Likewise.
16918 (chkp_get_bounds_by_definition): Likewise.
16919 (chkp_generate_extern_var_bounds): Likewise.
16920 (chkp_get_bounds_for_decl_addr): Likewise.
16921 (chkp_get_bounds_for_string_cst): Likewise.
16923 2015-05-20 Bin Cheng <bin.cheng@arm.com>
16925 PR tree-optimization/65447
16926 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16927 (dump_use, dump_uses): Support to dump sub use.
16928 (record_use): New parameters to support sub use. Remove call to
16930 (record_sub_use, record_group_use): New functions.
16931 (compute_max_addr_offset, split_all_small_groups): New functions.
16932 (group_address_uses, rewrite_use_address): New functions.
16933 (strip_offset): New declaration.
16934 (find_interesting_uses_address): Call record_group_use.
16935 (add_candidate): New assertion.
16936 (infinite_cost_p): Move definition forward.
16937 (add_costs): Check INFTY cost and return immediately.
16938 (get_computation_cost_at): Clear setup cost and dependent bitmap
16940 (determine_use_iv_cost_address): Compute cost for sub uses.
16941 (rewrite_use_address_1): Rename from old rewrite_use_address.
16942 (free_loop_data): Free sub uses.
16943 (tree_ssa_iv_optimize_loop): Call group_address_uses.
16945 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16946 Jim Wilson <jim.wilson@linaro.org>
16948 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16949 new fields loadv and storev.
16950 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16951 Initialize loadv and storev.
16952 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16953 (cortexa53_extra_costs): Likewise.
16954 (cortexa57_extra_costs): Likewise.
16955 (xgene1_extra_costs): Likewise.
16956 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16959 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16961 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16963 (cortexa8_extra_costs): Likewise.
16964 (cortexa5_extra_costs): Likewise.
16965 (cortexa7_extra_costs): Likewise.
16966 (cortexa12_extra_costs): Likewise.
16967 (cortexa15_extra_costs): Likewise.
16968 (v7m_extra_costs): Likewise.
16970 2015-05-20 Jeff Law <law@redhat.com>
16972 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16973 instead of open-coded version. Also delete the jump thread created
16974 within this function.
16976 2015-05-20 Alan Modra <amodra@gmail.com>
16978 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16979 stack adjusting insn. Formatting.
16980 (rs6000_emit_prologue): Track stack adjusting insn, and use of
16981 r12. If possible, emit first -fsplit-stack arg pointer insn
16982 before stack adjust. Don't use r12 to save cr if split-stack.
16984 2015-05-20 Alan Modra <amodra@gmail.com>
16986 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16988 (rs6000_supports_split_stack): New function.
16989 * gcc/config/rs6000/rs6000.c (machine_function): Add
16990 split_stack_arg_pointer.
16991 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16992 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16993 rather than virtual_incoming_args_rtx.
16994 (rs6000_va_start): Likewise.
16995 (split_stack_arg_pointer_used_p): New function.
16996 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16997 (morestack_ref): New var.
16998 (gen_add3_const, rs6000_expand_split_stack_prologue,
16999 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17000 rs6000_split_stack_space_check): New functions.
17001 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17002 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17003 (UNSPECV_SPLIT_STACK_RETURN): Define.
17004 (split_stack_prologue, load_split_stack_limit,
17005 load_split_stack_limit_di, load_split_stack_limit_si,
17006 split_stack_return, split_stack_space_check): New expands and insns.
17007 * gcc/config/rs6000/rs6000-protos.h
17008 (rs6000_expand_split_stack_prologue): Declare.
17009 (rs6000_split_stack_space_check): Declare.
17011 2015-05-20 Alan Modra <amodra@gmail.com>
17013 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17014 (direct_return): Test vrsave_size rather than vrsave_mask.
17015 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17016 (rs6000_emit_epilogue): Likewise.
17018 2015-05-20 Alan Modra <amodra@gmail.com>
17020 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17021 when not saving registers.
17022 (debug_stack_info): Adjust to omit printing unused offsets,
17024 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17027 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17030 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17031 value_type to const char *.
17033 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17035 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17036 to build a biarch toolchain again.
17038 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17040 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17041 or implicit declarations.
17042 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17044 (get_odr_type): Check type has linkage before adding bases.
17045 (register_odr_type): Check that type has linkage before adding it.
17046 (type_known_to_have_no_deriavations_p): Rename to ..
17047 (type_known_to_have_no_derivations_p): This one.
17048 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17049 (type_known_to_have_no_derivations_p): This one.
17050 * ipa-polymorphic-call.c
17051 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17054 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17056 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17057 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17059 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17061 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17062 (s390_invalid_binary_op): New function.
17063 (TARGET_INVALID_BINARY_OP): Define macro.
17065 2015-05-19 David Sherwood <david.sherwood@arm.com>
17067 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17068 if mode is not a scalar integer.
17069 (get_inv_cost): Increase computational cost for unused invariants.
17071 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17073 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17074 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17075 * config/s390/s390-builtin-types.def: New file.
17076 * config/s390/s390-builtins.def: New file.
17077 * config/s390/s390-builtins.h: New file.
17078 * config/s390/s390-c.c: New file.
17079 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17080 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17081 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17082 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17084 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17086 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17087 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17088 variable definitions.
17089 (s390_const_operand_ok): New function.
17090 (s390_expand_builtin): Rewrite.
17091 (s390_init_builtins): New function.
17092 (s390_handle_vectorbool_attribute): New function.
17093 (s390_attribute_table): Add s390_vector_bool attribute.
17094 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17095 (s390_branch_condition_mask): Generate masks for new modes.
17096 (s390_expand_vec_compare_cc): New function.
17097 (s390_mangle_type): Add mangling for vector bool types.
17098 (enum s390_builtin): Remove.
17099 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17101 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17102 s390_cpu_cpp_builtins.
17103 (REGISTER_TARGET_PRAGMAS): New macro.
17104 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17105 (insn_cmp mode attribute): Add new CC modes.
17106 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17107 (lcbb): New pattern definition.
17108 * config/s390/s390intrin.h: Include vecintrin.h.
17109 * config/s390/t-s390: New file.
17110 * config/s390/vecintrin.h: New file.
17111 * config/s390/vector.md: Include vx-builtins.md.
17112 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17115 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17117 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17119 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17120 (s390_select_ccmode): Likewise.
17121 (s390_canonicalize_comparison): Swap operands if necessary.
17122 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17123 single element vector instructions.
17124 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17125 (s390_branch_condition_mask): Generate CC masks for the new modes.
17126 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17127 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17128 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17129 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17130 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17131 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17132 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17133 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17134 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17135 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17136 (sqrt<mode>2): Add vector instruction.
17138 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17140 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17142 * config/s390/predicates.md (const0_operand, constm1_operand)
17143 (constable_operand): Accept vector operands.
17144 * config/s390/s390-modes.def: Add supported vector modes.
17145 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17146 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17147 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17148 (s390_expand_vec_compare, s390_expand_vcond)
17149 (s390_expand_vec_init): Add prototypes.
17150 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17151 (s390_vector_mode_supported_p): New function.
17152 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17153 (s390_contiguous_bitmask_vector_p): New function.
17154 (s390_bytemask_vector_p): New function.
17155 (s390_split_ok_p): Vector regs don't work either.
17156 (regclass_map): Add VEC_REGS.
17157 (s390_legitimate_constant_p): Handle vector constants.
17158 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17159 (legitimate_reload_vector_constant_p): New function.
17160 (s390_preferred_reload_class): Handle CONST_VECTOR.
17161 (s390_reload_symref_address): Likewise.
17162 (s390_secondary_reload): Vector memory instructions only support
17163 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17164 (s390_emit_ccraw_jump): New function.
17165 (s390_expand_vec_strlen): New function.
17166 (s390_expand_vec_compare): New function.
17167 (s390_expand_vcond): New function.
17168 (s390_expand_vec_init): New function.
17169 (s390_dwarf_frame_reg_mode): New function.
17170 (print_operand): Handle addresses with 'O' and 'R' constraints.
17171 (NR_C_MODES, constant_modes): Add vector modes.
17172 (s390_output_pool_entry): Handle vector constants.
17173 (s390_hard_regno_mode_ok): Handle vector registers.
17174 (s390_class_max_nregs): Likewise.
17175 (s390_cannot_change_mode_class): New function.
17176 (s390_invalid_arg_for_unprototyped_fn): New function.
17177 (s390_function_arg_vector): New function.
17178 (s390_function_arg_float): Remove size variable.
17179 (s390_pass_by_reference): Handle vector arguments.
17180 (s390_function_arg_advance): Likewise.
17181 (s390_function_arg): Likewise.
17182 (s390_return_in_memory): Vector values are returned in a VR if
17184 (s390_function_and_libcall_value): Handle vector arguments.
17185 (s390_gimplify_va_arg): Likewise.
17186 (s390_call_saved_register_used): Consider the arguments named.
17187 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17189 (s390_preferred_simd_mode): New function.
17190 (s390_support_vector_misalignment): New function.
17191 (s390_vector_alignment): New function.
17192 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17193 (TARGET_VECTOR_MODE_SUPPORTED_P)
17194 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17195 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17196 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17197 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17198 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17199 (FIRST_PSEUDO_REGISTER): Increase value.
17200 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17201 (VECTOR_REG_P): Define macros.
17202 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17203 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17204 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17205 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17206 Add vector registers.
17207 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17208 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17209 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17211 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17212 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17213 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17214 (VR*_REGNUM): New constants.
17215 (ALL): New mode iterator.
17216 (INTALL): Remove mode iterator.
17218 (movti): Implement TImode moves for VRs.
17219 Disable TImode splitter for VR targets.
17220 Implement splitting TImode GPR<->VR moves.
17221 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17222 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17223 reload<mode>_la_in, reload<mode>_la_out.
17224 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17225 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17226 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17227 (mov<mode> SF SD): Prefer lder, lde for loading.
17228 Add lrl and strl instructions.
17229 Add vector instructions.
17230 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17231 Call s390_expand_vec_strlen on z13.
17232 (*cc_to_int): Change predicate to nonimmediate_operand.
17233 (addti3): Rename to *addti3. New expander.
17234 (subti3): Rename to *subti3. New expander.
17235 * config/s390/vector.md: New file.
17237 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17239 * common/config/s390/s390-common.c (processor_flags_table): Add
17241 * config.gcc: Add z13.
17242 * config/s390/s390-opts.h (enum processor_type): Add
17243 PROCESSOR_2964_Z13.
17244 * config/s390/s390.c (s390_adjust_priority): Check for
17245 PROCESSOR_2964_Z13.
17246 (s390_reorg): Likewise.
17247 (s390_sched_reorder): Likewise.
17248 (s390_sched_variable_issue): Likewise.
17249 (s390_loop_unroll_adjust): Likewise.
17250 (s390_option_override): Likewise. Default to -mvx when available.
17251 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17252 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17253 (TARGET_VX_ABI): Define macros.
17255 (TARGET_DEFAULT): Add MASK_OPT_VX.
17256 * config/s390/s390.md ("cpu" attribute): Add z13.
17257 ("cpu_facility" attribute): Add vec.
17258 * config/s390/s390.opt (processor_type): Add z13.
17259 (mvx): New options.
17260 * doc/invoke.texi: Add z13 option for -march.
17262 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17264 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17265 mode check to make sure that only scalar integer values are
17268 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17270 * tree.c (verify_type_variant): Fix #undef.
17271 (gimple_canonical_types_compatible_p): Move here from lto.c
17272 (verify_type): Verify TYPE_CANONICAL compatibility.
17273 * tree.h (gimple_canonical_types_compatible_p): Declare.
17275 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17277 PR middle-end/66199
17278 * tree.h (OMP_TEAMS_COMBINED): Define.
17279 * gimplify.c (enum gimplify_omp_var_data): Add
17280 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17281 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17282 (omp_notice_variable): Accept both ORT_TEAMS
17283 and ORT_COMBINED_TEAMS. Don't recurse if
17284 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17285 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17287 (omp_no_lastprivate): New function.
17288 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17289 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17290 notice_outer and set appropriate bits, otherwise make
17291 sure default(none) combined constructs won't complain.
17292 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17293 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17294 omp_no_lastprivate either remove the clause or turn it
17295 into OMP_CLAUSE_PRIVATE.
17296 (gimplify_omp_for): Fix up handling of implicit
17297 lastprivate or linear iterators.
17298 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17299 ORT_COMBINED_TEAMS.
17300 * omp-low.c (lower_omp_for_lastprivate): For combined
17301 for simd use fd.loop.n2 from the for rather than simd.
17303 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17305 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17306 instead of gen_rtx_raw_REG.
17307 (cris_expand_epilogue): Likewise.
17308 * config/microblaze/microblaze.c (microblaze_classify_address):
17310 * config/sparc/sparc.md: Likewise.
17312 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17314 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17315 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17316 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17317 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17318 Use CASE_CONST_SCALAR_INT.
17319 (print_operand) <case 'M'>: Use mode_width_operand to check the
17320 value of the constant.
17321 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17322 * config/alpha/predicates.md (input_operand): Use general_operand
17323 instead of match_code as operand check.
17324 (symbolic_operand): Use match_code with subexpression digits.
17325 * config/alpha/constraints.md (Q): Ditto.
17327 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17329 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17331 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17333 * config/s390/s390.c (s390_secondary_reload): Fix check for
17334 load/store relative.
17336 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17338 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17339 alternative_mask to uint64_t.
17341 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17343 PR tree-optimization/66187
17344 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17345 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17346 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17348 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17350 * diagnostic.c (diagnostic_report_current_module): Strengthen
17351 local "new_map" from const line_map * to
17352 const line_map_ordinary *.
17353 * genmatch.c (error_cb): Likewise for local "map".
17354 (output_line_directive): Likewise for local "map".
17355 * input.c (expand_location_1): Likewise for local "map".
17356 Pass NULL rather than &map to
17357 linemap_unwind_to_first_non_reserved_loc, since the value is never
17358 read from there, and the value written back not read from here.
17359 (is_location_from_builtin_token): Strengthen local "map" from
17360 const line_map * to const line_map_ordinary *.
17361 (dump_location_info): Strengthen locals "map" from
17362 line_map *, one to const line_map_ordinary *, the other
17363 to const line_map_macro *.
17364 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17365 const line_map * to const line_map_macro *.
17366 (maybe_unwind_expanded_macro_loc): Add a call to
17367 linemap_check_macro when writing to the "map" field of the
17369 Introduce local const line_map_ordinary * "ord_map", using it in
17370 place of "map" in the part of the function where we know we have
17371 an ordinary map. Strengthen local "m" from const line_map * to
17372 const line_map_ordinary *.
17374 2015-05-19 Nick Clifton <nickc@redhat.com>
17377 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17378 separate source and destination registers.
17380 2015-05-19 Richard Biener <rguenther@suse.de>
17382 PR tree-optimization/66165
17383 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17384 for no load permutation.
17386 PR tree-optimization/66185
17387 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17388 when building the SLP node from scalars.
17390 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17391 Tristan Gingold <gingold@adacore.com>
17393 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17394 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17395 (expand_stack_restore): Call record_new_stack_level.
17396 (expand_stack_save): Do not call do_pending_stack_adjust.
17397 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17398 * calls.c (expand_call): Call record_new_stack_level for alloca.
17399 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17400 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17401 (update_sjlj_context): New global function.
17402 * except.h (update_sjlj_context): Declare.
17403 * explow.c (record_new_stack_level): New global function.
17404 (allocate_dynamic_stack_space): Call record_new_stack_level.
17405 * explow.h (record_new_stack_level): Declare.
17406 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17407 * cfgrtl.c (duplicate_insn_chain): Likewise.
17409 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17411 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17412 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17413 STACK_GROWS_DOWNWARD as normal if.
17414 (expand_call): Likewise.
17416 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17419 * config/sh/sh.md (*round_int_even): New insn_and_split and
17420 accompanying new unnamed split.
17422 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17424 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17425 (bitmap_clear_range): Likewise.
17426 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17427 bitmap_set_range unconditionally.
17428 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17429 * df-scan.c (df_mark_reg): Likewise.
17430 * haifa-sched.c (setup_ref_regs): Likewise.
17431 * sched-rgn.c (update_live_1): Likewise.
17433 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17435 * regs.h (END_HARD_REGNO): Delete.
17436 (END_REGNO): Move to...
17438 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17439 * caller-save.c (mark_set_regs): Likewise.
17440 * combine.c (move_deaths, distribute_notes): Likewise.
17441 * cse.c (invalidate, invalidate_for_call): Likewise.
17442 * df-scan.c (df_ref_record): Likewise.
17443 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17444 (record_last_reg_set_info): Likewise.
17445 * reg-stack.c (convert_regs_exit): Likewise.
17446 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17447 * resource.c (update_live_status): Likewise.
17448 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17450 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17452 * rtl.h (reg_info): Add an nregs field.
17453 (REG_NREGS): Use it.
17454 (SET_REGNO_RAW): Delete.
17455 (set_regno_raw): New function.
17456 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17457 (END_REGNO): Redefine in terms of REG_NREGS.
17458 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17460 * emit-rtl.c (set_mode_and_regno): Likewise.
17461 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17462 instead of SET_REGNO_RAW.
17464 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17466 * rtl.h (PUT_MODE_RAW): New macro.
17467 (PUT_REG_NOTE_KIND): Use it.
17468 (set_mode_and_regno): Declare.
17469 (gen_raw_REG): Change regno to "unsigned int".
17470 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17471 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17472 use set_mode_and_regno to change the mode of registers.
17473 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17474 * emit-rtl.c (set_mode_and_regno): New function.
17475 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17476 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17477 * expr.c (init_expr_target): Likewise.
17478 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17479 * postreload.c (reload_cse_simplify_operands): Likewise.
17481 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17483 * caller-save.c (init_caller_save): Use word_mode and
17484 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17485 * expr.c (init_expr_target): Likewise.
17486 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17487 * postreload.c (reload_cse_regs_1): Likewise.
17489 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17491 * rtl.def (REG): Change format to "r".
17492 * rtl.h (rtunion): Remove rt_reg.
17493 (reg_info): New structure.
17494 (rtx_def): Add reg field to main union.
17495 (X0REGATTR): Delete.
17496 (REG_CHECK): New macro.
17497 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17498 * rtl.c (rtx_format): Document "r".
17499 (rtx_code_size): Handle REG specially.
17500 * gengenrtl.c (special_format): Return true for formats
17502 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17503 Deal with REG_ATTRS after the field loop.
17504 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17505 * expmed.c (init_expmed): Call gen_raw_REG instead of
17507 * expr.c (init_expr_target): Likewise.
17508 * regcprop.c (maybe_mode_change): Likewise.
17509 * varasm.c (make_decl_rtl): Likewise.
17510 * final.c (leaf_renumber_regs_insn): Return early after
17512 * genemit.c (gen_exp): Handle 'r' fields.
17513 * genpeep.c (match_rtx): Likewise.
17514 * gensupport.c (subst_pattern_match): Likewise.
17515 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17516 (alter_constraints, subst_dup): Likewise.
17517 * read-rtl.c (read_rtx_code): Likewise.
17518 * print-rtl.c (print_rtx): Likewise.
17519 * genrecog.c (find_operand, find_matching_operand): Likewise.
17520 (validate_pattern, match_pattern_2): Likewise.
17521 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17522 (rtx_test::regno_field): New function.
17523 (operator ==, safe_to_hoist_p, transition_parameter_type)
17524 (parameter_type_string, print_parameter_value)
17525 (print_nonbool_test, print_test): Handle new enum values.
17526 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17527 * lra-constraints.c (operands_match_p): Likewise.
17529 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17531 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17532 Change type of new_regno to unsigned int.
17533 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17534 new_regno to unsigned int.
17535 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17536 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17537 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17538 (SET_REGNO_RAW): Add space after ",".
17540 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17542 * rtl.h (REG_NREGS): New macro
17543 * alias.c (record_set): Use it.
17544 * cfgcleanup.c (mark_effect): Likewise.
17545 * combine.c (likely_spilled_retval_1): Likewise.
17546 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17547 (move_deaths, distribute_notes): Likewise.
17548 * cselib.c (cselib_record_set): Likewise.
17549 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17550 * df-scan.c (df_mark_reg): Likewise.
17551 * dse.c (look_for_hardregs): Likewise.
17552 * dwarf2out.c (reg_loc_descriptor): Likewise.
17553 (multiple_reg_loc_descriptor): Likewise.
17554 * expr.c (write_complex_part, read_complex_part): Likewise.
17555 (emit_move_complex): Likewise.
17556 * haifa-sched.c (setup_ref_regs): Likewise.
17557 * ira-lives.c (mark_hard_reg_live): Likewise.
17558 * lra.c (lra_set_insn_recog_data): Likewise.
17559 * mode-switching.c (create_pre_exit): Likewise.
17560 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17561 (reload_combine_recognize_pattern): Likewise.
17562 (reload_combine_note_use, move2add_record_mode): Likewise.
17563 (reload_cse_move2add): Likewise.
17564 * reg-stack.c (subst_stack_regs_pat): Likewise.
17565 * regcprop.c (kill_value, copy_value): Likewise.
17566 (copyprop_hardreg_forward_1): Likewise.
17567 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17568 (build_def_use): Likewise.
17569 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17570 (deps_analyze_insn): Likewise.
17571 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17572 * sel-sched.c (count_occurrences_equiv): Likewise.
17573 * valtrack.c (dead_debug_insert_temp): Likewise.
17575 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17577 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17578 * dse.c (note_add_store): Likewise.
17579 * ira-lives.c (mark_hard_reg_dead): Likewise.
17580 * loop-invariant.c (mark_reg_store): Likewise.
17581 (mark_reg_death): Likewise.
17582 * postreload.c (reload_combine): Likewise.
17583 (reload_combine_note_store): Likewise.
17584 (reload_combine_note_use): Likewise.
17585 * recog.c (peep2_reg_dead_p): Likewise.
17587 2015-05-19 Alan Modra <amodra@gmail.com>
17589 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17590 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17591 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17593 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17594 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17595 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17596 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17598 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17600 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17601 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17602 (join2_loadhi): Likewise.
17603 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17604 load-load and store-stores.
17605 * config/mips/mips.opt (mload-store-pairs): New option.
17606 (TARGET_LOAD_STORE_PAIRS): New macro.
17607 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17608 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17609 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17611 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17613 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17615 * dojump.c (do_compare_rtx_and_jump): Likewise.
17616 * expmed.c (emit_store_flag_1): Likewise.
17617 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17618 * final.c (sprint_ul): Use std::reverse for reversing a string.
17619 * fold-const.c (extract_muldiv_1): Use std::swap.
17620 * genmodes.c (emit_mode_int_n): Likewise.
17621 * ifcvt.c (dead_or_predicable): Likewise.
17622 * ira-build.c (ira_merge_live_ranges): Likewise.
17623 (swap_allocno_copy_ends_if_necessary): Likewise.
17624 * ira.c (ira_setup_alts): Likewise.
17625 * loop-iv.c (iv_analyze_expr): Likewise.
17626 (implies_p): Likewise.
17627 (canon_condition): Likewise.
17628 * lra-constraints.c (swap_operands): Likewise.
17629 * lra-lives.c (lra_merge_live_ranges): Likewise.
17630 * omega.c (swap): Remove.
17632 (omega_unprotect_1): Use std::swap.
17633 (omega_solve_geq): Likewise.
17634 * optabs.c (expand_binop_directly): Likewise.
17635 (expand_binop): Likewise.
17636 (emit_conditional_move): Likewise.
17637 (emit_conditional_add): Likewise.
17638 * postreload.c (reload_cse_simplify_operands): Likewise.
17639 * reg-stack.c (emit_swap_insn): Likewise.
17640 (swap_to_top): Likewise.
17641 (compare_for_stack_reg): Likewise.
17642 (subst_asm_stack_regs): Likewise.
17643 * reload.c (find_reloads): Likewise.
17644 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17645 * sel-sched.c (invoke_reorder_hooks): Likewise.
17646 (create_block_for_bookkeeping): Likewise.
17647 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17648 (lambda_matrix_right_hermite): Use std::swap.
17649 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17650 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17651 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17652 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17653 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17654 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17655 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17656 * tree-vrp.c (compare_ranges): Likewise.
17657 * var-tracking.c (add_with_sets): Likewise.
17658 (vt_find_locations): Likewise.
17660 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17662 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17664 (FBSD_ENDFILE_SPEC): Likewise.
17665 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17666 config/freebsd-spec.h.
17667 (ENDFILE_SPEC): Likewise.
17669 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17670 Richard Henderson <rth@redhat.com>
17673 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17674 Check for a memory location that is not a reference (using an AND)
17675 to an unaligned location here.
17676 * config/alpha/predicates.md (normal_memory_operand): Remove.
17678 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
17680 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
17681 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
17683 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
17685 * config/mips/mips.c (micromips_globals): New variable.
17686 (mips_set_compression_mode): Save and reinitialize target-dependent
17687 state for microMIPS.
17689 2015-05-18 Martin Liska <mliska@suse.cz>
17691 * dbgcnt.def: Add new counter.
17692 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
17694 2015-05-18 Martin Liska <mliska@suse.cz>
17696 * dbgcnt.def: Sort counters.
17697 * opts.c (common_handle_option): Do not compile if
17698 -fdbg-cnt-list is enabled.
17700 2015-05-18 Tom de Vries <tom@codesourcery.com>
17702 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
17703 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
17704 address operator to va_list operand.
17705 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
17707 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
17709 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
17710 * config/s390/s390.c (s390_gimplify_va_arg): Same.
17711 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
17713 2015-05-18 Tom de Vries <tom@codesourcery.com>
17715 * tree-ssa-tail-merge.c: Fix whitespace.
17717 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
17719 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
17720 cortex-a17, and cortex-a17.cortex-a7.
17722 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
17725 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17727 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
17730 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17731 QImode inner modes for TARGET_AVX512BW. Force mask operand
17732 to a register for AVX512F modes.
17734 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17736 * toplev.c (emit_debug_global_declarations): Do not output debug info
17737 when doing slim LTO objects.
17739 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17741 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17742 odr_types_equivalent_p): Declare.
17743 (odr_type_p): Use gcc_checking_assert.
17744 (type_in_anonymous_namespace_p) Declare.
17745 (type_with_linkage_p): Declare.
17746 * common.opt (Wlto-type-mismatch): New warning.
17747 * ipa-devirt.c (compound_type_base): New function.
17748 (odr_or_derived_type_p): New function.
17749 (odr_types_equivalent_p): New function.
17750 (add_type_duplicate): Simplify.
17751 (type_with_linkage_p): Add hack to prevent false positives on C types
17752 (type_in_anonymous_namespace_p): Likewise.
17753 * tree.c (need_assembler_name_p): Use type_with_linkage.
17754 * tree.h (type_in_anonymous_namespace_p): Remove.
17755 * doc/invoke.texi (-Wlto-type-mismatch): Document
17757 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17759 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
17760 (verify_type): Verify STRING_FLAG.
17762 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
17765 * tree-pretty-print.c (percent_K_format): Replace locus pointer
17766 with accessor function.
17767 * tree-diagnostic.c (diagnostic_report_current_function): Use
17768 diagnostic_location function.
17769 (maybe_unwind_expanded_macro_loc): Likewise.
17770 (virt_loc_aware_diagnostic_finalizer): Likewise.
17771 (default_tree_printer): Replace locus pointer with accessor function.
17772 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
17773 (diagnostic_set_info_translated): Initialize second location.
17774 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17775 (diagnostic_show_locus): Handle two locations. Call
17776 diagnostic_print_caret_line.
17777 (diagnostic_print_caret_line): New.
17778 (default_diagnostic_starter): Use diagnostic_location function.
17779 (diagnostic_report_diagnostic): Use diagnostic_location function.
17780 (verbatim): Do not set text.locus.
17781 * diagnostic.h (struct diagnostic_info): Remove location field.
17782 (struct diagnostic_context): Make caret_chars an array of two.
17783 (diagnostic_location): New inline.
17784 (diagnostic_expand_location): Handle two locations.
17785 (diagnostic_same_line): New inline.
17786 (diagnostic_print_caret_line): Declare.
17787 (CARET_LINE_MARGIN): New constant.
17788 * pretty-print.c (pp_printf): Do not set text.locus.
17789 (pp_verbatim): Do not set text.locus.
17790 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17791 (struct text_info): Replace locus pointer with locations
17792 array. Add accessor functions.
17794 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
17795 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17798 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17799 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17800 large constants in register instead of splitting them.
17802 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
17805 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17806 replacements in memory addresses.
17807 (get_unaligned_address): Ditto.
17809 2015-05-16 James Bowman <james.bowman@ftdichip.com>
17811 * config/ft32/*: New files for FT32 port.
17812 * doc/install.texi: Add FT32 information.
17813 * doc/invoke.texi: Add FT32 information.
17814 * doc/md.texi: Add FT32 information.
17815 * doc/contrib.texi: Self added.
17817 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
17819 PR tree-optimization/64454
17820 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17821 (-1 - A -> ~A): Remove unnecessary condition.
17823 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
17825 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17826 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17827 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17829 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
17831 * ipa-chkp.h (chkp_wrap_function): New.
17832 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17833 (chkp_wrap_function_name): New.
17834 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17835 to get wrapper name.
17836 * lto-cgraph.c: Include ipa-chkp.h.
17837 (input_cgraph_1): Avoid alias chain for wrappers.
17839 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17841 PR middle-end/66134
17842 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17843 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17845 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17847 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17848 (AARCH64_FL_SLOWMUL): Delete.
17849 (AARCH64_FL_CRC): Redefine to 1<<3.
17850 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17852 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17854 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17857 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17859 * config/alpha/alpha.md (extendqidi2): Use general_operand
17860 instead of some_operand for operand[1] predicate.
17861 (extendhidi2): Ditto.
17862 (cbranchdi4): Use general_operand instead of some_operand
17863 for operand[1] and operands[2] predicates.
17864 (cstoredi4): Ditto.
17865 * config/alpha/predicates.md (some_operand): Remove unused predicate.
17866 (some_ni_operand): Ditto.
17868 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17870 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17871 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
17872 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17873 low part of the constant using alpha_emit_set_const_1.
17874 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17876 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
17878 * varasm.c (output_constant_pool_1): Pass down alignment from
17879 constant pool entry's descriptor to output_constant_pool_2.
17880 (output_object_block): Add comment prior to call to
17881 output_constant_pool_1.
17883 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
17885 PR rtl-optimization/65862
17886 * target.def (ira_change_pseudo_allocno_class): New hook.
17887 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17889 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17890 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17892 * ira-costs.c (find_costs_and_classes): Call the hook and change
17893 classes when it is necessary.
17894 * doc/tm.texi: Update.
17896 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
17898 * config/i386/i386.md (sibcall_memory): Check that register with
17899 callee address is not also used as one of the arguments, instead
17900 of checking that it is not live after the sibcall.
17901 (sibcall_pop_memory): Ditto.
17902 (sibcall_value_memory): Ditto.
17903 (sibcall_value_pop_memory): Ditto.
17905 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
17907 * generic-match-head.c (types_match): Handle non-types.
17908 * gimple-match-head.c (types_match): Likewise.
17909 * match.pd: Remove unnecessary TREE_TYPE for types_match.
17911 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
17913 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17914 (csneg3<mode>_insn): Enable expansion of pattern.
17916 2015-05-14 Nick Clifton <nickc@redhat.com>
17918 * config/rl78/rl78.c (rl78_select_section): Select the correct
17919 default section based upon the category of the decl.
17921 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17923 PR rtl-optimization/30967
17924 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17925 destination mode for the cost of scc patterns.
17927 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17929 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17930 using SWIM248 mode iterator.
17931 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17932 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
17933 for operand[2] constraint.
17934 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17936 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17938 PR middle-end/66133
17939 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17940 make sure it is never noreturn, even when the task body does not
17942 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17943 right before GIMPLE_OMP_RETURN.
17944 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17945 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
17946 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17948 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17950 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17951 * tree-ssa-math-opts.c: Include params.h
17952 (pow_synth_sqrt_info): New struct.
17953 (representable_as_half_series_p): New function.
17954 (get_fn_chain): Likewise.
17955 (print_nested_fn): Likewise.
17956 (dump_fractional_sqrt_sequence): Likewise.
17957 (dump_integer_part): Likewise.
17958 (expand_pow_as_sqrts): Likewise.
17959 (gimple_expand_builtin_pow): Use above to attempt to expand
17960 pow as series of square roots. Removed now unused variables.
17962 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17964 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17965 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17966 Remove *p0 and *p1 arguments. Rewrite function.
17967 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17968 (alpha_split_const_mov): Update calls to alpha_extract_integer and
17969 alpha_emit_set_long_const.
17970 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17971 (alpha_output_mi_thunk_osf): Ditto.
17972 * config/alpha/alpha.md (movti): Do not check operands[1]
17975 2015-05-13 Richard Biener <rguenther@suse.de>
17977 PR tree-optimization/66129
17978 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17980 (vect_schedule_slp_instance): Fix typo.
17982 2015-05-13 David Malcolm <dmalcolm@redhat.com>
17984 * common.opt (fdump-internal-locations): New option.
17985 * input.c: Include diagnostic-core.h.
17986 (get_end_location): New function.
17987 (write_digit): New function.
17988 (write_digit_row): New function.
17989 (dump_location_range): New function.
17990 (dump_labelled_location_range): New function.
17991 (dump_location_info): New function.
17992 * input.h (dump_location_info): New prototype.
17993 * toplev.c (compile_file): Handle flag_dump_locations.
17995 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
17997 * gimple-expr.h (is_gimple_constant): Reorder.
17998 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18000 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18002 * combine.c (simplify_set): When generating a CC set, if the
18003 source already is in the correct mode, do not wrap it in a
18004 compare. Simplify the rest of that code.
18006 2015-05-13 Richard Biener <rguenther@suse.de>
18008 PR tree-optimization/66123
18009 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18012 2015-05-13 Richard Biener <rguenther@suse.de>
18014 PR middle-end/66110
18015 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18017 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18019 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18021 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18022 * aclocal.m4: Regenerated with automake-1.11.6.
18024 2015-05-13 Tom de Vries <tom@codesourcery.com>
18026 PR tree-optimization/66010
18027 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18028 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18029 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18030 and rval based on do_deref.
18032 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18035 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18036 link time constants into adress expressions and therefore set
18039 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18042 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18043 Use SWI248 iterator instead of SWI.
18044 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18045 Use eq_attr "alternative" "0" instead of match_test in
18046 length_immediate attribute computation.
18047 (*mulvhi4, *mulvhi4_1): New define_insns.
18050 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18051 SIGNED to get precision of non-negative value.
18053 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18056 * function.c (diddle_return_value_1): Process bounds first.
18057 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18060 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18062 PR rtl-optimization/64616
18063 * loop-invariant.c (can_move_invariant_reg): New.
18064 (move_invariant_reg): Call above new function to decide whether
18065 instruction can just be moved, skipping creation of temporary
18068 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18070 PR target/pr66047.c
18071 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18072 with implied regparm is called from -mno-sse function.
18073 (init_cumulative_args): Output error if ix86_function_sseregparm
18074 return -1 and SSE register would be needed.
18075 (function_arg_advance_32): Likewise.
18076 (function_arg_32): Likewise.
18077 * i386.h (ix86_args): Add decl field.
18079 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18082 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18083 inlines across optimization boundary.
18085 2015-05-12 Jason Merrill <jason@redhat.com>
18087 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18088 string literal and macro name.
18090 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18092 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18093 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18094 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18096 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18098 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18099 (-Wmisleading-indentation): New option.
18100 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18102 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18104 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18105 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18106 (alpha_extract_integer): Ditto.
18107 (alpha_legitimate_constant_p): Ditto.
18108 (alpha_split_tmode_pair): Ditto.
18109 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18110 (alpha_expand_mov): Ditto.
18111 (print_operand): Remove handling of 'H' modifier.
18112 <case 'm'>: Remove CONST_DOUBLE handling.
18113 (summarize_insn): Handle CONST_WIDE_INT.
18114 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18116 (movti): Handle CONST_WIDE_INT.
18117 * config/alpha/constraints.md ('H'): Remove constraint definition.
18118 ('G'): Do not match MODE_FLOAT class.
18119 * config/alpha/predicates.md (const0_operand): Also match
18121 (non_add_const_operand): Ditto.
18122 (non_zero_const_operand): Ditto.
18123 (some_operand): Ditto.
18124 (input_operand): Ditto. Handle CONST_WIDE_INT.
18125 (and_operand): Do not match const_double.
18126 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18128 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18131 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18132 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18133 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18134 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18135 is_mm_seq_cst, is_mm_sync): New accessor functions.
18136 * builtins.c (expand_builtin_sync_operation,
18137 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18138 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18139 (get_memmodel, expand_builtin_atomic_compare_exchange,
18140 expand_builtin_atomic_load, expand_builtin_atomic_store,
18141 expand_builtin_atomic_clear): Use new accessor routines.
18142 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18143 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18144 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18145 MEMMODEL_SYNC_ACQUIRE.
18146 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18147 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18148 expand_atomic_store): Use new accessors.
18149 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18150 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18151 final enum to use MEMMODEL_LAST.
18152 * c-family/c-common.c: Use new accessor for memmodel_base.
18153 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18155 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18156 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18157 mem_thread_fence, *dmb): Likewise.
18158 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18159 alpha_split_compare_and_swap_12): Likewise.
18160 * config/arm/arm.c (arm_expand_compare_and_swap,
18161 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18162 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18163 atomic_loaddi): Likewise.
18164 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18166 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18167 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18169 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18170 atomic_store<mode>, atomic_compare_and_swap<mode>,
18171 atomic_exchange<mode>): Use new accessors.
18172 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18173 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18174 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18175 rs6000_post_atomic_barrier): Add new cases.
18176 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18177 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18178 (atomic_load<mode>): Add new cases and use new accessors.
18179 (store_quadpti): Add new cases.
18180 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18182 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18183 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18186 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18188 * ipa-devirt.c (type_with_linkage_p): New function.
18189 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18191 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18192 (can_be_name_hashed_p): Simplify.
18193 (hash_odr_name): Check that type has linkage before checking if it is
18195 (types_same_for_odr): Likewise.
18196 (odr_name_hasher::equal): Likewise.
18197 (odr_subtypes_equivalent_p): Likewise.
18198 (warn_types_mismatch): Likewise.
18199 (get_odr_type): Likewise.
18200 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18201 * ipa-utils.h (odr_type_p): Move offline.
18202 * tree.c (need_assembler_name_p): Fix handling of types
18204 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18206 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18208 * timevar.c (timevar_enable): Delete in favor of...
18209 (g_timer): New global.
18210 (struct timevar_def): Move to timevar.h inside class timer.
18211 (struct timevar_stack_def): Likewise.
18212 (timevars): Delete global in favor of field "m_timevars" within
18213 class timer in timevar.h
18214 (stack): Likewise, in favor of field "m_stack".
18215 (unused_stack_instances): Likewise, in favor of field
18216 "m_unused_stack_instances".
18217 (start_time): Likewise, in favor of field "m_start_time".
18218 (get_time): Eliminate check for timevar_enable.
18219 (timer::timer): New function, built from part of timevar_init.
18220 (timevar_init): Rewrite idempotency test from using
18221 "timevar_enable" bool to using dynamic allocation of "g_timer".
18222 Move rest of implementation into timer's constructor.
18223 (timevar_push_1): Rename to...
18224 (timer::push): ...this, adding "m_" prefixes to variables that
18225 are now fields of timer.
18226 (timevar_pop_1): Likewise, rename to...
18227 (timer::pop): ...this, and add "m_" prefixes.
18228 (timevar_start): Replace test for "timevar_enable" with one for
18229 "g_timer", and move bulk of implementation to...
18230 (timer::start): ...here, adding "m_" prefixes.
18231 (timevar_stop): Likewise, from here...
18232 (timer::stop): ...to here.
18233 (timevar_cond_start): Likewise, from here...
18234 (timer::cond_start): ...to here.
18235 (timevar_cond_stop): Likewise, from here...
18236 (timer::cond_stop): ...to here.
18237 (validate_phases): Rename to...
18238 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18239 locals "total" and "tv" const.
18240 (timevar_print): Rename to...
18241 (timer::print): ...this, and add "m_" prefixes. Make locals
18242 "total" and "tv" const. Eliminate test for timevar_enable.
18243 * timevar.h (timevar_enable): Eliminate.
18244 (g_timer): New declaration.
18245 (timevar_push_1): Eliminate.
18246 (timevar_pop_1): Eliminate.
18247 (timevar_print): Eliminate.
18248 (class timer): New class.
18249 (timevar_push): Rewrite to use g_timer.
18250 (timevar_pop): Likewise.
18251 * toplev.c (toplev::~toplev): Likewise.
18253 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18255 * arm-protos.h (arm_sched_autopref): Delete.
18256 (tune_params): Re-organize, use enums for flag values.
18257 (FUSE_OPS): New macro.
18258 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18259 (ARM_PREFETCH_BENEFICIAL): Likewise.
18260 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18261 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18262 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18263 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18264 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18265 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18266 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18267 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18269 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18270 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18271 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18273 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18275 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18278 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18279 Sandra Loosemore <sandra@codesourcery.com>
18281 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18283 (REG_CLASS_NAMES): Add "IJMP_REGS".
18284 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18285 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18286 use new "c" register constraint.
18287 * config/nios2/constraint.md (c): New register constraint
18288 corresponding to IJMP_REGS.
18290 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18292 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18293 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18294 define_splits): Delete, revamp, transmogrify into ...
18295 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18296 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18297 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18300 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18302 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18303 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18305 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18307 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18308 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18309 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18310 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18311 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18312 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18313 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18314 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18315 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18316 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18317 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18318 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18319 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18320 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18321 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18322 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18323 and 30 corresponding splitters): Delete.
18325 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18327 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18330 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18332 * combine.c (recog_for_combine_1): New function, factored out
18333 from recog_for_combine.
18334 (change_zero_ext): New function.
18335 (recog_for_combine): If recog fails, try again with the pattern
18336 modified by change_zero_ext; if that still fails, restore the
18339 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18341 * combine.c (get_undo_marker): New function.
18342 (undo_to_marker): New function, largely factored out from ...
18343 (undo_all): ... this. Adjust.
18345 2015-05-12 Richard Biener <rguenther@suse.de>
18347 PR tree-optimization/66101
18348 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18349 fixup if we turn a loop exit edge to a fallthru edge.
18351 2015-05-12 Richard Biener <rguenther@suse.de>
18353 PR tree-optimization/37021
18354 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18355 (SLP_TREE_TWO_OPERATORS): New define.
18356 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18357 SLP_TREE_TWO_OPERATORS.
18358 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18360 (vect_build_slp_tree): Adjust.
18361 (vect_analyze_slp_cost_1): Likewise.
18362 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18363 emitting two vector stmts and mixing the results.
18365 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18367 * call.c (print_z_candidates): Remove dead code.
18369 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18371 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18372 and zEC12_simple_fp.
18373 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18376 2015-05-12 Tom de Vries <tom@codesourcery.com>
18378 PR tree-optimization/66010
18379 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18381 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18382 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18383 va_lists are passed, and remove corresponding handling.
18384 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18385 do_deref argument to ifn_va_arg.
18386 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18389 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18392 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18393 REG before taking its REGNO.
18395 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18397 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18398 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18399 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18400 present to get more accurate information about the number of sign bit
18401 copies and non zero bits.
18403 2015-05-12 Richard Biener <rguenther@suse.de>
18405 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18406 do not allow unrolling.
18408 2015-05-11 Richard Henderson <rth@redhat.com>
18410 * config/i386/i386-modes.def (CCP): New.
18411 * config/i386/i386.c (put_condition_code): Handle it.
18412 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18414 2015-05-11 Richard Henderson <rth@redhat.com>
18416 * target.def (md_asm_clobbers): Replace with...
18417 (md_asm_adjust): this.
18418 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18419 (TARGET_MD_ASM_ADJUST): New.
18420 * tm.texi: Rebuild.
18421 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18422 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18423 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18425 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18426 constraints instead of lists of outputs and inputs.
18427 (expand_asm_stmt): Save and restore input_location around the
18428 body of the function. Move asm data into vectors instead of
18429 building tree lists. Generate cleanup sequences as needed,
18430 rather than waiting til the end. Use new md_asm_adjust hook.
18432 * config/vxworks.c: Include vec.h before target.h.
18433 * gimple.c: Likewise.
18434 * incpath.c: Likewise.
18435 * mode-switching.c: Likewise.
18437 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18438 (cris_md_asm_adjust): this.
18439 (TARGET_MD_ASM_CLOBBERS): Remove.
18440 (TARGET_MD_ASM_ADJUST): New.
18441 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18442 (ix86_md_asm_adjust): this.
18443 (TARGET_MD_ASM_CLOBBERS): Remove.
18444 (TARGET_MD_ASM_ADJUST): New.
18445 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18446 (mn10300_md_asm_adjust): this.
18447 (TARGET_MD_ASM_CLOBBERS): Remove.
18448 (TARGET_MD_ASM_ADJUST): New.
18449 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18450 (rs6000_md_asm_adjust): this.
18451 (TARGET_MD_ASM_CLOBBERS): Remove.
18452 (TARGET_MD_ASM_ADJUST): New.
18453 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18454 (visium_md_asm_adjust): this.
18455 (TARGET_MD_ASM_CLOBBERS): Remove.
18456 (TARGET_MD_ASM_ADJUST): New.
18458 2015-05-11 Richard Henderson <rth@redhat.com>
18460 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18461 if noutputs is zero.
18462 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18464 * cfgexpand.c (expand_asm_operands): Merge into...
18465 (expand_asm_stmt): ... here.
18467 * cfgexpand.c (expand_asm_operands): Don't call
18468 resolve_asm_operand_names.
18469 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18471 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18473 * dwarf2out.c (gen_member_die): Sanity check that we access
18474 TYPE_MAIN_VARIANT for TYPE_METHODS.
18475 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18476 checking TYPE_METHODS.
18477 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18479 (build_distinct_type_copy): Clear TYPE_METHODS.
18480 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18481 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18482 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18484 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18486 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18487 (emit_pattern_before_setloc): Likewise.
18489 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18491 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18492 for define_peephole2s.
18493 (get_peephole2_pattern): New function.
18494 (main): Use it. Call validate_pattern.
18496 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18498 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18499 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18500 (Last callee saved reg is different for AVR_TINY architecture)
18502 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18504 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18505 when looking for memory references.
18507 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18510 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18511 via function pointers.
18513 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18515 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18516 indirect call by forcing address into a pseudo with -fno-plt.
18517 * common.opt (flag_plt): New option.
18518 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18519 ([-fno-plt]): Document.
18521 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18524 * config/rs6000/option-defaults.h: Add space between string literal
18527 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18529 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18530 accross ARM targets.
18532 2015-05-11 Christian Bruel <christian.bruel@st.com>
18534 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18535 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18537 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18539 PR rtl-optimization/66076
18540 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18541 Don't grow the heap array if it is already big enough from a
18542 previous iteration.
18544 2015-05-11 Christian Bruel <christian.bruel@st.com>
18546 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18547 (is_called_in_ARM_mode): Remove.
18548 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18549 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18550 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18551 arm_declare_function_name.
18553 2015-05-11 Christian Bruel <christian.bruel@st.com>
18555 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18556 (arm_option_params_internal); New function.
18557 (arm_option_check_internal): New function.
18558 (arm_option_override_internal): New function.
18559 (thumb_code, thumb1_code): Remove.
18560 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18561 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18562 (thumb_code, thumb1_code): Remove.
18563 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18565 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18567 * config/alpha/alpha.c (alpha_emit_set_const_1)
18568 (alpha_emit_set_long_const, alpha_extract_integer)
18569 (alpha_legitimate_constant_p, alpha_split_const_mov)
18570 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18571 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18572 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18574 * config/alpha/predicates.md (mode_mask_operand): Do not match
18576 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18577 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18578 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18579 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18580 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18582 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18585 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18586 default_binds_local_p_2.
18587 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18588 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18590 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18592 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18594 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18596 Patch by Richard Biener
18597 * coverage.c (coverage_obj_init): Delay building of type variant
18598 until the type is finished.
18600 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18602 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18603 mismatch between C and C++ type; compoare correctly ARG_TYPES
18604 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18605 (odr_types_equivalent_p): Fix wording of warning about attributes;
18606 it is OK to match prototype and non-prototype.
18608 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18610 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18611 TYPE_ARG_TYPES list.
18612 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18613 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18615 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18617 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18618 * tree.h (is_lang_specific): Constify.
18620 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18622 PR tree-optimization/64454
18623 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18626 2015-05-08 Jason Merrill <jason@redhat.com>
18628 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18629 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18630 config/darwin.h, config/darwin9.h, config/elfos.h,
18631 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18632 config/microblaze/microblaze.h, config/mips/mips.h,
18633 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18634 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18635 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18636 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18637 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18638 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18639 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18640 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18641 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18642 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18643 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18644 between string literal and macro name.
18646 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18648 * jump.c: Change argument types to rtx_insn *.
18651 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18653 * lra-constraints.c: Change argument type to rtx_insn *.
18655 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18657 * df-problems.c: Change argument type to rtx_insn *.
18659 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18661 * combine.c: Change argument type to rtx_insn *.
18663 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18666 * rtlanal.c: Change argument type to rtx_insn *.
18668 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18670 * sched-deps.c: Change argument types to rtx_insn *.
18671 * sched-int.h: Adjust.
18673 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18675 * dwarf2cfi.c: Change argument type to rtx_insn *.
18677 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18679 * ira.c (decrease_live_ranges_number): Changetype of local
18680 variable to rtx_insn *.
18681 * recog.c: Change argument types to rtx_insn *.
18684 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18686 * reorg.c: Change argument types to rtx_insn *.
18688 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18690 * ira-color.c: Change argument types to rtx_insn *.
18691 * lra-eliminations.c: Likewise.
18694 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18696 * gcse.c: Change argument types to rtx_insn *.
18698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18700 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
18702 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18704 * emit-rtl.c (emit_debug_insn_before): Change argument type to
18708 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18710 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
18713 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18715 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
18718 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18720 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
18723 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18725 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18728 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18730 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18734 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18736 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18740 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18742 * except.c (can_nonlocal_goto): Change type of argument to
18746 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18748 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18751 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18753 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
18754 * cfgrtl.c (can_delete_label_p): Adjust.
18757 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18759 * reorg.c (stop_search_p): Change argument to rtx_insn *.
18761 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18763 * except.c (make_reg_eh_region_note): Change argument to
18765 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
18766 * except.h: Adjust.
18768 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18770 * mode-switching.c (commit_mode_sets): Change type of local
18771 variable from rtx to rtx_insn *.
18773 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
18775 * doc/install.texi (--enable-languages): Add missing jit and lto info.
18776 Add ^ to grep command.
18777 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18778 arg to last gimple_simplify declaration. Add missing gimple_build
18779 declaration for built-in function case with four tree args.
18781 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18782 Szabolcs Nagy <szabolcs.nagy@arm.com>
18784 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18785 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18786 (GNU_USER_DYNAMIC_LINKERN32): Update.
18788 2015-05-08 Richard Biener <rguenther@suse.de>
18790 PR tree-optimization/66036
18791 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18792 Handle strided group loads.
18793 (vect_verify_datarefs_alignment): Likewise.
18794 (vect_enhance_data_refs_alignment): Likewise.
18795 (vect_analyze_group_access): Likewise.
18796 (vect_analyze_data_ref_access): Likewise.
18797 (vect_analyze_data_ref_accesses): Likewise.
18798 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18799 (vectorizable_load): Likewise.
18801 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
18803 * config/rs6000/rs6000.md: Require operand inequality in one
18806 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
18807 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18809 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18811 * config/rx/rx.md (movdi, movdf): Likewise.
18812 Likewise for define_peephole2s.
18814 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18816 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18817 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18818 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18819 vtst_u64): Rewrite using gcc vector extensions.
18821 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18823 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18824 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18826 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18828 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18830 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18832 * config/glibc-stdint.h (OPTION_MUSL): Define.
18833 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18834 Change the definition based on OPTION_MUSL for 64 bit targets.
18835 * config/linux.h (OPTION_MUSL): Redefine.
18836 * config/alpha/linux.h (OPTION_MUSL): Redefine.
18837 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18838 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18840 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18841 Szabolcs Nagy <szabolcs.nagy@arm.com>
18843 * config.gcc (LIBC_MUSL): New tm_defines macro.
18844 * config/linux.h (OPTION_MUSL): Define.
18845 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18846 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18847 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18848 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18849 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18850 * config/linux.opt (mmusl): New option.
18851 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18852 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18853 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18854 * configure: Regenerate.
18856 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
18857 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18860 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18861 * config/i386/knetbsd-gnu64.h: New file.
18863 2015-05-08 Marek Polacek <polacek@redhat.com>
18866 * doc/invoke.texi: Document -Woverride-init-side-effects.
18868 2015-05-07 Marek Polacek <polacek@redhat.com>
18871 * doc/invoke.texi: Document -Wshift-negative-value.
18873 2015-05-06 Aditya Kumar <hiraditya@msn.com>
18875 * gcov-tool.c (do_merge): Refactore to remove int ret.
18876 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18877 !type == FUNC to type != FUNC.
18878 * reload.h (struct target_reload): Changee to type of
18879 x_spill_indirect_levels from bool to unsigned char.
18881 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
18883 * rtl.h (always_void_p): New function.
18884 * gengenrtl.c (always_void_p): Likewise.
18885 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18886 with code foo are always VOIDmode.
18887 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18888 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18889 compare-elim.c, config/aarch64/aarch64.c,
18890 config/aarch64/aarch64.md, config/alpha/alpha.c,
18891 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18892 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18893 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18894 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18895 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18896 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18897 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18898 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18899 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18900 config/ia64/vect.md, config/iq2000/iq2000.c,
18901 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18902 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18903 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18904 config/mep/mep.c, config/microblaze/microblaze.c,
18905 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18906 config/mn10300/mn10300.c, config/msp430/msp430.c,
18907 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18908 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18909 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18910 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18911 config/rs6000/rs6000.md, config/rs6000/vector.md,
18912 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18913 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18914 config/sh/sh.md, config/sh/sh_treg_combine.cc,
18915 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18916 config/spu/spu.md, config/stormy16/stormy16.c,
18917 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18918 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18919 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18920 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18921 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18922 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18923 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18924 var-tracking.c: Update calls accordingly.
18926 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18929 PR middle-end/54303
18930 * varasm.c (function_mergeable_rodata_prefix): New function.
18931 (mergeable_string_section): Use it.
18932 (mergeable_constant_section): Use it.
18934 2015-05-07 Jeff Law <law@redhat.com>
18937 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18938 simplifier to narrow arithmetic.
18939 * generic-match-head.c: (types_match, single_use): New functions.
18940 * gimple-match-head.c: (types_match, single_use): New functions.
18942 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18944 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18947 2015-05-07 Richard Biener <rguenther@suse.de>
18949 PR tree-optimization/66002
18950 * passes.def: Schedule another pass_merge_phi after ifcombine, right
18953 2015-05-07 Marek Polacek <polacek@redhat.com>
18954 Martin Uecker <uecker@eecs.berkeley.edu>
18956 * doc/invoke.texi: Document -fsanitize=bounds-strict.
18957 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18958 into SANITIZE_NONDEFAULT.
18959 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18961 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
18964 * config/alpha/alpha.c (alpha_override_options_after_change): New.
18965 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18966 (alpha_override_options): Move align_loops, align_jumps and
18967 align_functions handling into alpha_override_options_after_change.
18969 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
18970 Chris Jones <chrisj@nvidia.com>
18971 Joshua Conner <jconner@nvidia.com>
18973 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18974 linking of crtfastmath.o.
18975 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18977 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18979 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18980 (cstore<mode>4_unsigned_imm): New expander.
18981 (cstore<mode>4): Remove empty constraint strings. Use the new
18984 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
18987 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18990 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18992 * config/aarch64/geniterators.sh: Use standard BRE in sed.
18994 2015-05-06 Alan Modra <amodra@gmail.com>
18997 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18998 (UNSPEC_NOP): Define.
18999 (reload_vsx_from_gpr<mode>): Add missing DONE.
19000 (reload_gpr_from_vsx<mode>): Likewise.
19001 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19002 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19004 2015-05-06 Christian Bruel <christian.bruel@st.com>
19007 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19008 align_jumps, align_functions into aarch64_override_options_after_change.
19010 2015-05-06 Richard Biener <rguenther@suse.de>
19012 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19013 vect_transform_slp_perm_load to check if we support a permutation
19014 for basic-block vectorization.
19016 2015-05-06 Nick Clifton <nickc@redhat.com>
19018 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19019 used, even if it is not being used as a frame pointer.
19021 2015-05-05 Jason Merrill <jason@redhat.com>
19023 * dwarf2out.c (gen_member_die): Don't emit anything for an
19024 anonymous class constructor.
19026 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19028 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19029 that it reflects the block structure.
19030 (afdo_propagate_edge): Likewise.
19031 (afdo_calculate_branch_prob): Likewise.
19032 (afdo_annotate_cfg): Likewise.
19033 * cfgcleanup.c (equal_different_set_p): Likewise.
19034 (try_crossjump_to_edge): Likewise.
19035 * cgraph.c (cgraph_node::verify_node): Likewise.
19036 * cgraphunit.c (expand_all_functions): Likewise.
19037 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19038 (exact_dependency_1): Likewise.
19039 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19040 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19041 * gensupport.c (process_define_subst): Likewise.
19042 * lto-wrapper.c (merge_and_complain): Likewise.
19043 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19044 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19045 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19046 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19047 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19048 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19049 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19050 * tree-vrp.c (vrp_finalize): Likewise.
19051 * tree.c (variably_modified_type_p): Likewise.
19053 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19055 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19056 on darwin12 and later.
19057 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19058 file to pass -rdynamic on darwin12 and later.
19059 * config/darwin.opt (rdynamic): Add.
19061 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19063 * doc/extend.texi (C Extensions): Update menu for moved Variable
19064 Attributes and Type Attributes sections.
19066 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19069 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19070 if rep_8byte stringop strategy was specified for 32-bit target.
19072 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19075 * config/i386/i386.md (vector convert to float spltiter): Check for
19076 xmm16+, when splitting scalar float conversion.
19077 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19079 2015-05-05 Nick Clifton <nickc@redhat.com>
19081 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19082 * config/msp430/msp430.c (msp430_override_options): Complain if
19083 -mcode-region or -mdata-region is used on a non MSP430X.
19084 (msp430_section_attr): New function. Checks lower, upper and
19086 (msp430_attribute_table): Add lower, upper and either.
19087 (gen_prefix): New function. Generates a prefix for a section
19089 (msp430_select_section): New function - handles the choice of
19090 section for an object. Takes into account memory region
19091 attributes and options.
19092 (msp430_function_section): Use gen_prefix.
19093 (TARGET_SECTION_TYPE_FLAGS): Define.
19094 (msp430_section_type_flags): New function.
19095 (TARGET_ASM_UNIQUE_SECTION): Define.
19096 (msp430_unique_section): New function.
19097 (msp430_output_aligned_decl_common): New function.
19098 (msp430_do_not_relax_short_jumps): New function.
19099 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19101 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19102 * config/msp430/msp430-protos.h
19103 (msp430_do_not_relax_short_jumps): New prototype.
19104 (msp430_output_aligned_decl_common): New prototype.
19105 * config/msp430/msp430.md (length): New attribute.
19106 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19107 then use a long code sequence for short jumps.
19108 * config/msp430/msp430.opt (mcode-region): New.
19109 (mdata-region): New.
19110 * doc/invoke.texi: Document new options.
19111 * doc/extend.texi: Document new attributes.
19113 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19115 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19116 (tune_params): Add field branch_costs.
19117 (aarch64_branch_cost): Declare.
19118 * gcc/config/aarch64.c (generic_branch_cost): New.
19119 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19120 (cortexa53_tunings): Likewise.
19121 (cortexa57_tunings): Likewise.
19122 (thunderx_tunings): Likewise.
19123 (xgene1_tunings): Likewise.
19124 (aarch64_branch_cost): Define.
19125 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19127 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19129 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19130 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19131 * config/i386/i386.md: Ditto.
19132 * config/i386/winnt.c: Ditto.
19134 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19136 * doc/extend.texi (__atomic Builtins): Move implementation details
19137 to the end of the description, rewrite opening paragraphs, state
19138 difference with __sync builtins, state C11/C++11 assumptions,
19139 weaken itemized descriptions, add explanation of memory model
19140 behaviour, expand description of compare-exchange, simplify text.
19142 2015-05-05 Renlin Li <renlin.li@arm.com>
19144 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19146 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19148 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19149 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19150 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19151 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19152 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19153 * configure: Regenerate.
19154 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19155 * doc/install.texi (aarch64*-*-*): Document new
19156 --enable-fix-cortex-a53-843419 option.
19157 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19158 and -mno-fix-cortex-a53-843419 options.
19160 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19163 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19165 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19167 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19168 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19169 compatibility problems.
19171 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19173 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19175 (cbranchsi4_reg): New.
19176 * config/microblaze/microblaze.c
19177 (microblaze_expand_conditional_branch_reg): New.
19178 * config/microblaze/microblaze-protos.h
19179 (microblaze_expand_conditional_branch_reg): New prototype.
19181 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19183 * config/microblaze/microblaze.md (peephole2): New.
19185 2015-05-04 Jeff Law <law@redhat.com>
19188 2015-05-04 Jeff Law <law@redhat.com>
19190 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19191 simplifier to narrow arithmetic.
19192 * generic-match-head.c: (types_match, single_use): New functions.
19193 * gimple-match-head.c: (types_match, single_use): New functions.
19195 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19198 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19199 (split_branches): Likewise.
19201 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19203 * common.opt (fdelete-null-pointer-checks): Init to -1.
19204 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19205 override flag_delete_null_pointer_checks default.
19206 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19207 behavior re address zero. Better document target-specific behavior.
19208 (-fisolate-errneous-paths-dereference): Mention relationship to
19209 -fdelete-null-pointer-checks.
19211 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19213 PR tree-optimization/65984
19214 * ubsan.c: Include tree-cfg.h.
19215 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19216 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19218 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19220 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19221 to CONST_DOUBLE_P predicate.
19222 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19223 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19224 allow only operands that satisfy standard_sse_constant_p predicate.
19225 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19226 to CONST_DOUBLE_P predicate.
19228 2015-05-04 Jeff Law <law@redhat.com>
19230 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19231 simplifier to narrow arithmetic.
19232 * generic-match-head.c: (types_match, single_use): New functions.
19233 * gimple-match-head.c: (types_match, single_use): New functions.
19235 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19237 * config/arm/arm.c: Restore bootstrap.
19239 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19241 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19242 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19243 as CONST_WIDE_INT, not CONST_DOUBLE.
19244 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19245 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19246 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19247 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19248 (ix86_build_signbit_mask): Rewrite using wide ints.
19249 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19250 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19251 (find_constant): Ditto.
19252 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19253 using gen_int_mode.
19254 * config/i386/predicates.md (x86_64_immediate_operand)
19255 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19256 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19257 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19258 (const0_operand): Also match const_wide_int.
19259 (constm1_operand): Ditto.
19260 (const1_operand): Ditto.
19262 2015-05-04 Richard Biener <rguenther@suse.de>
19264 PR tree-optimization/65965
19265 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19266 store groups at gaps.
19268 2015-05-04 Richard Biener <rguenther@suse.de>
19270 PR tree-optimization/65935
19271 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19272 then make sure to apply that swapping to the IL.
19274 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19276 * Makefile.in (PATCHLEVEL_c): New variable.
19277 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19278 expand the same way as if DEVPHASE_c was non-empty.
19280 2015-05-04 Kai Tietz <ktietz@redhat.com>
19283 * lto-wrapper.c (run_gcc): Open filename
19286 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19288 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19289 sections up in file, to immediately after the Function Attributes
19292 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19294 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19296 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19298 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19299 (insert_partition_copy_on_edge): Adjust.
19300 (insert_rtx_to_part_on_edge): Likewise.
19301 (insert_part_to_rtx_on_edge): Likewise.
19303 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19305 * function.c (set_return_jump_label): Change type of argument to
19307 * function.h (set_return_jump_label): Adjust.
19309 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19311 * reload.h (struct reg_equivs_t): Change type of init to
19313 * ira.c (fix_reg_equiv_init): Adjust.
19314 * reload1.c (eliminate_regs_1): Likewise.
19315 (init_eliminable_invariants): Likewise.
19317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19319 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19320 * cselib.h (fp_setter_insn): Adjust.
19322 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19324 * recog.c (struct validate_replace_src_data): Change type of
19325 insn field to rtx_insn *.
19326 (validate_replace_src_group): Change type of argument to rtx_insn *.
19327 * recog.h (validate_replace_src_group): Adjust.
19329 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19331 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19332 * sched-deps.c: Likewise.
19333 * sched-int.h: Likewise.
19334 * sched-rgn.c: Likewise.
19335 * sel-sched.c: Likewise.
19337 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19340 * config/i386/i386.c: Change the type of some arguments to
19342 * config/arm/arm.c: Likewise.
19344 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19346 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19348 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19350 * regcprop.c (kill_autoinc_value): Change type of argument to
19353 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19355 * genrecog.c (print_subroutine): Adjust.
19356 * recog.c (get_bool_attr_mask_uncached): Likewise.
19357 * recog.h (struct recog_data_d): Change the type of insn to
19360 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19362 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19364 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19366 * df-problems.c (df_set_note): Change type of argument to
19369 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19371 * builtins.c (expand_builtin_trap): Change type of local
19372 variable to rtx_insn *.
19373 (add_sched_insns_for_speculation): Likewise.
19374 (ix86_emit_save_regs): Likewise.
19375 (get_scratch_register_on_entry): Likewise.
19376 (ix86_emit_restore_reg_using_pop): Likewise.
19377 (ix86_emit_leave): Likewise.
19378 (ix86_emit_restore_regs_using_mov): Likewise.
19379 (ix86_expand_epilogue): Likewise.
19381 (rl78_alloc_physical_registers_umul): Likewise.
19382 * cselib.c (discard_useless_locs): Likewise.
19383 (cselib_invalidate_regno): Likewise.
19384 (cselib_invalidate_mem): Likewise.
19385 * function.c (expand_function_start): Likewise.
19386 (emit_use_return_register_into_block): Likewise.
19387 * gcse.c: Likewise.
19388 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19389 * ifcvt.c (noce_get_alt_condition): Likewise.
19390 * loop-doloop.c (doloop_condition_get): Likewise.
19391 * lra-constraints.c (inherit_in_ebb): Likewise.
19392 * modulo-sched.c (sms_schedule_by_order): Likewise.
19393 * recog.c (next_insn_tests_no_inequality): Likewise.
19394 * reorg.c (emit_delay_sequence): Likewise.
19395 (update_reg_dead_notes): Likewise.
19396 (fix_reg_dead_note): Likewise.
19397 (fill_slots_from_thread): Likewise.
19398 (delete_computation): Likewise.
19400 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19402 * doc/extend.texi (Variable Attributes): Add menu and proper
19403 @nodes to subsections. Move Microsoft Windows attributes to
19404 their own subsection.
19405 (Type Attributes): Reorganize introduction to remove duplicate
19406 list of attributes. Add menu and proper @nodes to subsections.
19407 Alphabetize the main table of common attributes.
19409 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19411 * match.pd: New simplification patterns.
19412 (x + (x & 1)) -> ((x + 1) & ~1)
19413 (x & ~(x & y)) -> ((x & ~y))
19414 (x | ~(x | y)) -> ((x | ~y))
19416 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19418 * target.def (attribute_table): Mention that struct attribute_spec
19419 is defined in tree-core.h rather than tree.h
19420 * doc/tm.texi: Regenerate.
19422 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19424 * genrecog.c (test): Rename to rtx_test. Update rest of file
19427 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19429 PR translation/65959
19430 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19432 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19434 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19435 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19436 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19437 Return value depending on target.
19438 (generic_tunings): Initialize new target settings.
19439 (cortexa53_tunings): Likewise.
19440 (cortexa57_tunings): Likewise.
19441 (thunderx_tunings): Likewise.
19442 (xgene1_tunings): Likewise.
19444 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19446 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19447 Make Cortex-A53 shift costs more accurate.
19449 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19451 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19454 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19456 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19457 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19459 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19461 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19462 Add cost of op0 in the compare-with-fpzero case.
19464 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19466 * builtins.c (fold_builtin_1): Remove spurious second
19468 * cgraph.h (symtab_node::get_availability): Likewise.
19469 * opts.c (common_handle_option): Remove spurious second semicolon.
19470 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19471 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19473 2015-04-30 Caroline Tice <cmtice@google.com>
19475 PR gcov-profile/65929
19476 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19477 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19478 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19479 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19480 * doc/tm.texi: Regenerate.
19481 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19482 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19483 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19484 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19486 2015-04-30 Marek Polacek <polacek@redhat.com>
19488 * varasm.c (handle_cache_entry): Fix logic.
19490 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19492 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19493 (*extrsi5_insn_uxtw_alt): Likewise.
19494 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19495 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19498 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19500 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19503 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19505 * config/aarch64/aarch64.md
19506 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19507 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19508 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19509 appropriately. Handle alternative EON form.
19511 2015-04-30 Renlin Li <renlin.li@arm.com>
19513 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19514 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19516 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19519 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19520 -fstrict-aliasing boundaries.
19522 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19524 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19525 and [SU]MNEGL patterns.
19527 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19529 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19530 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19531 combined arithmetic-shift ops. Properly handle all shift and extend
19532 operations that can occur in combination with PLUS/MINUS.
19533 Rename maybe_fma to compound_p.
19534 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19535 arithmetic and shift operations.
19537 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19539 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19540 rather than arith_shift cost when costing ADD/MINUS of an
19543 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19546 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19549 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19551 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19552 are for the same position.
19554 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19556 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19558 (vectorize_loops): Use it.
19560 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19562 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19563 for aggregate types.
19564 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19565 type to be non_ODR.
19566 * tree.c (need_assembler_name_p): Compute mangled name for
19567 non-fundamental types and integer types.
19569 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19571 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19573 * expr.c (expand_expr_real_2): Likewise.
19575 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19577 * tree.c (build_common_builtin_nodes): Do not build
19578 __builtin_alloca_with_align as equivalent of library alloca.
19580 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19582 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19583 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19585 * tree.c: Include print-tree.h and ipa-utils.h
19586 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19587 (free_lang_data_in_cgraph): Call verify_type.
19588 (verify_type_variant): New function.
19589 (verify_type): New function.
19590 * tree.h (verify_type): Declare.
19592 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19594 * config/mips/mips-cpus.def: (mips4): Change default processor
19595 from PROCESSOR_R8000 to PROCESSOR_R10000.
19597 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19599 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19600 la/jalr instead of jal.
19602 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19605 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19606 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19607 (setcc+movzbl peephole2): Check also clobbered reg.
19608 (setcc+andl peephole2): Ditto.
19610 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19613 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19614 (main): Set it depending on "-foffload-abi=[...]".
19615 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19618 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19621 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19622 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19623 Flip lane index back at assembly time for bigendian.
19625 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19627 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19628 * gimplify.c (gimplify_omp_workshare): Use it.
19630 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19632 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19633 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19635 * genrecog.c: Rewrite most of the code except for the third page.
19637 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19639 * inchash.h, inchash.c: Include bconfig.h for build objects.
19640 * Makefile.in (build/inchash.o): New rule.
19642 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19645 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19646 number in type attribute expression.
19648 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19650 * loop-iv.c (canon_condition): Generalize to all types of integer
19653 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19655 * gimple-walk.c: Prune duplicate or unneeded includes.
19656 (walk_gimple_asm): Only call parse_input_constraint or
19657 parse_output_constraint if their findings are used.
19658 Honour parse_input_constraint and parse_output_constraint
19661 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19663 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19665 2015-04-29 Tom de Vries <tom@codesourcery.com>
19667 PR tree-optimization/65893
19668 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19671 2015-04-29 Richard Biener <rguenther@suse.de>
19673 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19674 compute GROUP_SIZE for basic-block SLP.
19675 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19676 take into account gaps.
19677 (vect_get_mask_element): Properly reject references to previous
19679 (vect_transform_slp_perm_load): Likewise.
19681 2015-04-29 Christian Bruel <christian.bruel@st.com>
19684 * config/i386/i386.c (ix86_default_align): New function.
19685 (ix86_override_options_after_change): Call ix86_default_align.
19686 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
19687 (ix86_override_options_after_change): New function.
19689 2015-04-28 Jeff Law <law@redhat.com>
19691 * tree-ssa-dom.c (record_equality); Fix comment typos.
19693 2015-04-28 Tom de Vries <tom@codesourcery.com>
19695 PR tree-optimization/65887
19696 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
19698 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
19700 * doc/extend.texi (Declaring Attributes of Functions): Split into
19701 subsections by target. Alphabetize the table of common attributes.
19702 Rewrite some of the introductory text to reflect the new structure.
19703 Update some cross-references to point to the new subsections.
19704 (Attribute Syntax): Put paragraph about "__" naming here. Remove
19705 duplicate copies in the discussion of function, label, and type
19708 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
19711 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
19713 2015-04-28 Jason Merrill <jason@redhat.com>
19716 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
19717 (finalize_type_size): Respect TYPE_USER_ALIGN.
19718 (layout_type) [ARRAY_TYPE]: Likewise.
19720 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
19722 * config/arm/arm.md (*arm_movt): Fix type attribute.
19723 (*cmpsi_shiftsi): Likewise.
19724 (*cmpsi_shiftsi_swp): Likewise.
19725 (*movsicc_insn): Likewise.
19726 (*cond_move): Likewise.
19727 (*if_plus_move): Likewise.
19728 (*if_move_plus): Likewise.
19729 (*if_arith_move): Likewise.
19730 (*if_move_arith): Likewise.
19731 (*if_shift_move): Likewise.
19732 (*if_move_shift): Likewise.
19733 (*arm_movtas_ze): Likewise.
19734 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19735 redundancy and type attribute.
19736 (*thumb2_movsi_insn): Fix type attribute.
19737 (*thumb2_addsi_short): Likewise.
19738 (thumb2_addsi3_compare0): Likewise.
19739 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19740 attributes accordingly.
19742 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19745 * function.c (pad_to_arg_alignment): Add parentheses.
19747 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
19749 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19750 libgcc/config/frv/elf-lib.h.
19752 2015-04-28 Tom de Vries <tom@codesourcery.com>
19754 * tree-call-cdce.c: Fix example in header comment.
19756 2015-04-28 Richard Biener <rguenther@suse.de>
19758 PR tree-optimization/62283
19759 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
19760 fails fatally and we are vectorizing a basic-block simply
19761 cause the child to be constructed piecewise.
19762 (vect_analyze_slp_cost_1): Adjust.
19763 (vect_detect_hybrid_slp_stmts): Likewise.
19764 (vect_bb_slp_scalar_cost): Likewise.
19765 (vect_get_constant_vectors): For piecewise constructed
19766 constants place them after the last def.
19767 (vect_get_slp_defs): Adjust.
19768 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
19769 externals for basic-block vectorization.
19771 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19774 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19776 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19777 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19778 (AARCH64_TUNE_FMA_STEERING): Likewise.
19779 * config/aarch64/aarch64-cores.def: Set
19780 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19781 FMUL/FMADD instructions.
19782 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19783 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
19784 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19785 * config/aarch64/cortex-a57-fma-steering.h: New file.
19786 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19788 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
19790 * gensupport.c (std_preds): Add missing codes to address_operand entry.
19792 2015-04-28 Richard Biener <rguenther@suse.de>
19794 PR tree-optimization/65851
19795 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19796 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
19797 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
19798 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19799 (ccp_visit_phi_node): Adjust.
19800 (evaluate_stmt): For simplifications to SSA names return its
19801 lattice value if that isn't VARYING. Return immediately when
19802 simplified to a constant.
19803 (visit_assignment): Adjust.
19804 (ccp_visit_stmt): Likewise.
19806 2015-04-28 Tom de Vries <tom@codesourcery.com>
19808 PR tree-optimization/65818
19809 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19812 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19814 * calls.c (save_fixed_argument_area): Don't check
19815 ARGS_GROW_DOWNWARD with the preprocessor.
19816 (restore_fixed_argument_area): Likewise.
19817 (mem_overlaps_already_clobbered_arg_p): Likewise.
19818 (check_sibcall_argument_overlap): Likewise.
19819 (expand_call): Likewise.
19820 (emit_library_call_value_1): Likewise.
19821 (store_one_arg): Likewise.
19822 * function.c (assign_parms): Likewise.
19823 (locate_and_pad_parm): Likewise.
19824 (pad_to_arg_alignment): Likewise.
19825 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19827 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19829 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19830 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19831 * calls.c (save_fixed_argument_area): Don't chekc if
19832 ARGS_GROW_DOWNWARD is defined.
19833 (restore_fixed_argument_area): Likewise.
19834 (mem_overlaps_already_clobbered_arg_p): Likewise.
19835 (check_sibcall_argument_overlap): Likewise.
19836 (expand_call): Likewise.
19837 (emit_library_call_value_1): Likewise.
19838 (store_one_arg): Likewise.
19839 * function.c (assign_parms): Likewise.
19840 (locate_and_pad_parm): Likewise.
19841 (pad_to_arg_alignment): Likewise.
19842 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19844 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19846 * defaults.h (gen_epilogue): New function.
19847 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19849 * cfgrtl.c (cfg_layout_finalize): Likewise.
19850 * df-scan.c: Likewise.
19851 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19852 (reposition_prologue_and_epilogue_notes): Likewise.
19853 * reorg.c (find_end_label): Likewise.
19854 * toplev.c: Likewise.
19856 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19858 * bb-reorder.c (HAVE_return): Don't check if its undefined.
19859 * defaults.h (gen_simple_return): New function.
19860 (gen_simple_return): Likewise.
19861 (HAVE_return): Add default definition to false.
19862 (HAVE_simple_return): Likewise.
19863 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19864 HAVE_return and HAVE_simple_return are defined.
19865 * function.c (gen_return_pattern): Likewise.
19866 (convert_jumps_to_returns): Likewise.
19867 (thread_prologue_and_epilogue_insns): Likewise.
19868 * reorg.c (find_end_label): Likewise.
19869 (dbr_schedule): Likewise.
19870 * shrink-wrap.c: Likewise.
19871 * shrink-wrap.h: Likewise.
19873 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19875 * defaults.h (EPILOGUE_USES): Add default definition of false.
19876 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19877 * resource.c (init_resource_info): Likewise.
19879 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19881 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19883 * dwarf2out.c (field_byte_offset): REmove check if
19884 PCC_BITFIELD_TYPE_MATTERS is defined.
19885 * stor-layout.c (layout_decl): Likewise.
19886 (update_alignment_for_field): Likewise.
19887 (place_field): Likewise.
19889 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19891 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19893 * regrename.c (check_new_reg_p): Remove check if
19894 HARD_REGNO_RENAME_OK is defined.
19895 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19897 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19899 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19900 * cse.c (fold_rtx): Likewise.
19901 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19902 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19903 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19904 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19905 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19906 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19907 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19908 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19909 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19910 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19912 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19913 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19914 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19915 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19916 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19917 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19918 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19919 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19920 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19921 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19922 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19923 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19924 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19925 * doc/tm.texi: Regenerate.
19926 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19927 either true or false.
19929 2015-04-27 Jeff Law <law@redhat.com>
19931 PR tree-optimization/65217
19932 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19933 of them has a single use, make sure it is the LHS of the implied
19936 2015-04-28 Alan Modra <amodra@gmail.com>
19939 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19940 (offsettable_ok_by_alignment): Use minimum of decl and toc
19941 pointer alignment. Replace dead code with assertion.
19942 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
19943 case if size exceeds toc pointer alignment.
19944 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19945 (rs6000_emit_move): Likewise.
19946 * configure.ac: Add linker toc pointer alignment check.
19947 * configure: Regenerate.
19948 * config.in: Regenerate.
19950 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
19952 * config.gcc: Add h8300-*-linux.
19953 * config/h8300/linux.h: New.
19954 * config/h8300/t-linux: New.
19955 * config/h8300/h8300.c (h8300_option_override): Normal mode
19956 is not supported for h8300-*-linux.
19957 (h8300_file_start): Target priority change.
19958 (get_shift_alg): Likewise.
19959 (h8300_shift_need_scratch_p): Likewise.
19960 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19961 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19963 2015-04-27 Caroline Tice <cmtice@google.com>
19965 * final.c (final_scan_insn): Output cold_function_name as function
19967 * varasm.c (cold_function_name): Make global.
19968 (assemble_start_function): Re-set cold_function_name.
19969 (assemble_end_function): Output cold partition size.
19970 * varasm.h (cold_function_name): Declare global.
19972 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
19974 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19975 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19977 (*movxi_internal_avx512f): Ditto.
19978 (define_split): Check for xmm16+, when splitting scalar float_extend.
19979 (*extendsfdf2_mixed): Use "v" constraint.
19980 (define_split): Check for xmm16+, when splitting scalar float_truncate.
19981 (*truncdfsf_fast_sse): Use "v" constraint.
19982 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19983 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19984 (define_peephole2): Check for xmm16+, when converting scalar
19986 (define_peephole2): Check for xmm16+, when converting scalar
19988 (*fop_<mode>_comm_mixed): Use "v" constraint.
19989 (*fop_<mode>_comm_sse): Ditto.
19990 (*fop_<mode>_1_mixed): Ditto.
19991 (*sqrt<mode>2_sse): Ditto.
19992 (*ieee_s<ieee_maxmin><mode>3): Ditto.
19994 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19996 * combine.c (simplify_if_then_else): Use std::swap instead
19997 of manually swapping.
19998 (known_cond): Likewise.
19999 (simplify_comparison): Likewise.
20001 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20004 * config/rs6000/htm.md: Remove all define_expands.
20005 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20006 UNSPECV_HTM_TABORTWCI): Remove.
20007 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20008 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20009 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20010 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20011 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20012 tabortwci_internal): Remove define_insns.
20013 (tabort<wd>c, tabort<wd>ci): New define_insns.
20014 (tabort): Use gpc_reg_operand.
20015 (tcheck): Remove operand.
20016 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20017 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20019 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20020 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20021 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20022 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20023 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20024 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20025 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20026 (tcheck): Remove builtin argument.
20027 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20029 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20030 tabortdc and tabortdci builtins when not in 64-bit mode.
20031 Modify code to handle the loss of the HTM define_expands.
20032 Emit code to copy the CR register to TARGET.
20033 (htm_init_builtins): Modify code to handle the loss of the HTM
20035 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20036 (RS6000_BTC_64BIT): Likewise.
20037 (RS6000_BTC_CR): New macro.
20038 * doc/extend.texi: Update documentation for htm builtins.
20040 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20042 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20043 of manually swapping.
20044 (simplify_associative_operation): Likewise.
20045 (simplify_binary_operation): Likewise.
20046 (simplify_plus_minus): Likewise.
20047 (simplify_relational_operation): Likewise.
20048 (simplify_ternary_operation): Likewise.
20050 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20052 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20053 (xs_hi_nonmemory_operand): Remove error.
20054 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20055 general_operand rather than xs_hi_general_operand.
20057 2015-04-27 Richard Biener <rguenther@suse.de>
20059 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20060 (record_equivalences_from_stmt): Valueize rhs.
20061 (record_equality): Canonicalize x and y order via
20062 tree_swap_operands_p. Do not swap operands for same loop depth.
20064 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20068 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20069 Add hint how to use own spec file.
20071 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20073 PR tree-optimization/65875
20074 * tree-vrp.c (update_value_range): If in is_new case setting
20075 old_vr to VR_VARYING, also set new_vr to it. Remove
20076 old_vr->type == VR_VARYING test.
20077 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20078 SSA_PROP_INTERESTING if update_value_range returned true,
20079 but new range is VR_VARYING.
20081 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20083 * combine.c (sign_extend_short_imm): New.
20084 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20085 extension of src short immediate.
20086 (reg_nonzero_bits_for_combine): Likewise for tem.
20088 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20090 * stor-layout.c (self_referential_component_ref_p): New predicate.
20091 (copy_self_referential_tree_r): Use it.
20092 (self_referential_size): Punt for simple operations directly involving
20093 self-referential component references.
20094 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20096 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20098 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20100 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20102 * vec.h (vec): Make splice arguments const. Update definitions
20105 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20107 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20110 2015-04-26 Tom de Vries <tom@codesourcery.com>
20112 PR tree-optimization/65826
20113 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20115 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20117 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20118 (*madd3<mode>): Ditto.
20119 (*msub4<mode>): Ditto.
20120 (*msub3<mode>): Ditto.
20121 (*nmadd4<mode>): Ditto.
20122 (*nmadd3<mode>): Ditto.
20123 (*nmadd4<mode>_fastmath): Ditto.
20124 (*nmadd3<mode>_fastmath): Ditto.
20125 (*nmsub4<mode>): Ditto.
20126 (*nmsub3<mode>): Ditto.
20127 (*nmsub4<mode>_fastmath): Ditto.
20128 (*nmsub3<mode>_fastmath): Ditto.
20130 2015-04-24 Jason Merrill <jason@redhat.com>
20133 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20134 down when building TYPE_CANONICAL.
20135 (build_pointer_type_for_mode): Likewise.
20137 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20139 * genrecog.c (validate_pattern): Check matching constraint refers
20140 to a lower numbered operand.
20142 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20145 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20146 save to independent variables use the Save attribute. This will
20147 allow these options to be modified with the #pragma/attribute
20149 (-mallow-movmisalign): Likewise.
20150 (-mallow-df-permute): Likewise.
20151 (-msched-groups): Likewise.
20152 (-malways-hint): Likewise.
20153 (-malign-branch-targets): Likewise.
20154 (-mvectorize-builtins): Likewise.
20155 (-msave-toc-indirect): Likewise.
20157 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20158 can be set via the #pragma/attribute target support.
20159 (rs6000_opt_vars): Likewise.
20160 (rs6000_inner_target_options): If VSX was set, also set
20161 -mno-avoid-indexed-addresses.
20163 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20165 * config/arm/iterators.md (shiftable_ops): Rename to...
20166 (SHIFTABLE_OPS): ... This. Update use in comments.
20167 (ior_xor): Rename to...
20168 (IOR_XOR): ... This.
20169 (vqh_ops): Rename to...
20170 (VQH_OPS): ... This.
20171 (vqhs_ops): Rename to...
20172 (VQHS_OPS): ... This.
20173 (rshifts): Rename to...
20174 (RSHIFTS): ... This.
20175 (returns): Rename to...
20176 (RETURNS): ... This.
20177 * config/arm/arm.md: Update uses of the above.
20178 * config/arm/neon.md: Likewise.
20180 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20182 * config.host (case ${host}): Add aarch64*-*-linux case.
20183 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20184 fields to all the cores.
20185 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20186 Add MCPU_MTUNE_NATIVE_SPECS.
20187 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20188 field to all extensions.
20189 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20190 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20191 Adjust definition of AARCH64_OPT_EXTENSION.
20192 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20193 (MCPU_MTUNE_NATIVE_SPECS): Define.
20194 * config/aarch64/driver-aarch64.c: New file.
20195 * config/aarch64/x-arch64: New file.
20196 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20199 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20200 Wei Mi <wmi@google.com>
20202 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20203 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20204 (ix86_operands_ok_for_move_multiple): Ditto.
20205 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20206 (movlpd/movhpd to movupd peephole2): Ditto.
20208 2015-04-24 Marek Polacek <polacek@redhat.com>
20211 * input.h (from_macro_expansion_at): Define.
20214 * doc/invoke.texi: Update description of -Wlogical-op.
20216 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20218 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20219 ternary operator in fprintf and harmonize spacing.
20221 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20223 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20224 Mark operand1 commutative.
20226 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20228 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20229 input operands in memory.
20230 (*vec_concatv2si_sse4_1): Ditto.
20231 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20232 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20234 (vec_extract_hi_v32hi): Ditto.
20235 (vec_extract_hi_v64hi): Ditto.
20236 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20238 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20239 Steven Bosscher <steven@gcc.gnu.org>
20241 PR rtl-optimization/34503
20242 * cprop.c (cprop_reg_p): New.
20243 (hash_scan_set): Use above function to check if register can be
20245 (find_avail_set): Return up to two sets, one whose source is a
20246 register and one whose source is a constant. Sets are returned in an
20247 array passed as parameter rather than as a return value.
20248 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20249 sets returned by find_avail_set, starting with the one whose source is
20250 a constant. Use cprop_reg_p to check if register can be propagated.
20251 (do_local_cprop): Use cprop_reg_p to check if register can be
20253 (implicit_set_cond_p): Likewise.
20255 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20257 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20258 (sem_function::equals): IGNORED_NODES parameter is now unused;
20259 update call of equals_private.
20260 (sem_function::equals_private): Do not call equals_wpa; skip
20261 gimple body matching if there is no body.
20262 (sem_function::init): Add logic to hash tthunk info.
20263 (sem_function::parse): Also parse thunks.
20264 * ipa-icf.h (equals_private): Update declaration.
20266 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20268 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20269 asterisk from name so this can be generated directly.
20270 (*altivec_stvx_<mode>_internal): Likewise.
20271 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20272 that this is never called during or after reload/lra.
20273 (rs6000_frame_related): Remove split_reg
20274 argument and logic that references it.
20275 (emit_frame_save): Remove last parameter from call to
20276 rs6000_frame_related.
20277 (rs6000_emit_prologue): Remove last parameter from eight calls to
20278 rs6000_frame_related. Force generation of stvx instruction for
20279 Altivec register saves. Remove split_reg handling, which is no
20281 (rs6000_emit_epilogue): Force generation of lvx instruction for
20282 Altivec register restores.
20284 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20286 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20287 match category changes in ISA 2.07B.
20289 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20291 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20293 (cmp_op, cmp_type): New code attributes.
20294 (NEON_VCMP, NEON_VACMP): New int iterators.
20295 (cmp_op_unsp): New int attribute.
20296 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20297 (neon_vceq<mode>): Delete.
20298 (neon_vc<cmp_op><mode>_insn): New pattern.
20299 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20300 (neon_vcgeu<mode>): Delete.
20301 (neon_vcle<mode>): Likewise.
20302 (neon_vclt<mode>: Likewise.
20303 (neon_vcage<mode>): Likewise.
20304 (neon_vcagt<mode>): Likewise.
20305 (neon_vca<cmp_op><mode>): New define_expand.
20306 (neon_vca<cmp_op><mode>_insn): New pattern.
20307 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20309 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20311 * tree.h (attribute_value_equal): Declare.
20312 * tree.c (attribute_value_equal): Export.
20314 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20316 * ipa-icf.c (sem_item::compare_attributes): New function.
20317 (sem_item::compare_referenced_symbol_properties): Compare variable
20319 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20320 (sem_function::param_used_p): New function.
20321 (sem_function::equals_wpa): Fix attribute comparsion; match
20322 parameter type codes; do not compare paremter flags when
20323 they are not used; compare edge flags; compare indirect calls.
20324 (sem_item::update_hash_by_addr_refs): Hash reference type.
20325 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20326 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20327 reference use type.
20328 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20329 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20331 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20333 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20335 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20336 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20337 (sem_item::compare_referenced_symbol_properties): New.
20338 (sem_item::hash_referenced_symbol_properties): New.
20339 (sem_item::compare_cgraph_references): Rename to ...
20340 (sem_item::compare_symbol_references): ... this one; use
20341 compare_referenced_symbol_properties.
20342 (sem_function::equals_wpa): Do not compare
20343 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20344 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20345 (sem_item::update_hash_by_addr_refs): Call
20346 hash_referenced_symbol_properties.
20347 (sem_item::update_hash_by_local_refs): Cleanup.
20348 (sem_function::merge): Do not mix up symbol properties.
20349 (sem_variable::equals_wpa): Use compare_symbol_references.
20350 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20351 (sem_item::hash_referenced_symbol_properties): New.
20352 (sem_item::compare_symbol_references): New.
20353 (sem_item::compare_cgraph_references): Remove.
20355 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20358 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20359 Emit size of local.
20361 2015-04-23 Nick Clifton <nickc@redhat.com>
20363 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20364 ATTRIBUTE_UNUSED to x parameter.
20365 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20367 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20369 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20370 TARGET_CRYPTO to TARGET_P8_VECTOR>
20371 (crypto_vpermxor_<mode>): Likewise.
20372 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20373 (BU_CRYPTO_3A): Likewise.
20374 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20375 (BU_CRYPTO_OVERLOAD_3A): New #define.
20376 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20377 (VPMSUMH): Likewise.
20378 (VPMSUMW): Likewise.
20379 (VPMSUMD): Likewise.
20380 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20381 (VPERMXOR_V4SI): Likewise.
20382 (VPERMXOR_V8HI): Likewise.
20383 (VPERMXOR_V16QI): Likewise.
20384 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20385 BU_CRYPTO_OVERLOAD_2A.
20386 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20387 BU_CRYPTO_OVERLOAD_3A.
20388 * config/rs6000/rs6000.opt (mcrypto): Change description of
20391 2015-04-23 Richard Biener <rguenther@suse.de>
20393 * passes.def: Remove copy propagation passes run directly after CCP.
20394 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20396 (ccp_visit_phi_node): Rework to handle first executable edge
20399 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20401 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20402 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20403 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20404 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20405 (thumb_legimitimize_reload_address): Remove.
20406 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20408 (thumb_legimitimize_reload_address): Remove.
20410 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20412 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20414 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20416 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20418 (store_multiple): Likewise.
20420 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20422 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20423 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20424 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20425 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20426 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20427 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20428 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20429 Specify issue_rate value.
20430 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20431 large switch statement.
20432 (arm_marvell_pj4_tune): New struct.
20433 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20436 2015-04-23 Richard Biener <rguenther@suse.de>
20438 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20439 (vect_find_last_store_in_slp_instance): Rename to ...
20440 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20441 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20442 and vec_construct for external defs when estimating prologue cost.
20443 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20444 Compute costs here only when vectorizing loops.
20445 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20446 have been determined.
20447 (vect_schedule_slp_instance): Simplify vectorized code placement
20448 and prepare for in-BB external defs.
20449 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20450 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20451 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20453 (vect_model_load_cost): Likewise.
20454 (vectorizable_store): Instead add it here.
20455 (vectorizable_load): Likewise.
20456 (vect_is_simple_use): Dump def type textually.
20458 2015-04-23 Richard Biener <rguenther@suse.de>
20460 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20461 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20462 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20463 instead of get_eh_region_from_lp_number.
20464 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20467 2015-04-23 Anton Blanchard <anton@samba.org>
20469 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20470 need for -mprofile-kernel to save LR to stack.
20472 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20474 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20476 (insn_is_swappable_p): Return 1 for a convert from double to
20477 single precision when all of its uses are splats of BE element
20480 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20482 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20484 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20487 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20488 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20489 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20491 (rs6000_builtin_mask_for_load): Return 0 for targets with
20492 efficient unaligned VSX accesses so that the vectorizer will use
20493 direct unaligned loads.
20494 (rs6000_builtin_support_vector_misalignment): Always return true
20495 for targets with efficient unaligned VSX accesses.
20496 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20497 stores on targets with efficient unaligned VSX accesses is almost
20498 always the same as the cost of an aligned load or store, so model
20500 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20501 unaligned vectors if we have efficient unaligned VSX accesses.
20502 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20503 undocumented option.
20505 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20508 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20510 * config.gcc (LIBC_MUSL): New tm_defines macro.
20511 * config/linux.h (OPTION_MUSL): Define.
20512 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20513 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20514 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20516 * config/linux.opt (mmusl): New option.
20517 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20518 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20520 * configure: Regenerate.
20522 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20524 * config.gcc (LIBC_MUSL): New tm_defines macro.
20525 * config/linux.h (OPTION_MUSL): Define.
20526 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20527 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20528 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20530 * config/linux.opt (mmusl): New option.
20531 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20532 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20534 * configure: Regenerate.
20536 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20538 * doc/invoke.texi (-fsanitize-sections): Update description.
20539 * asan.c (set_sanitized_sections): Parse incoming arg.
20540 (section_sanitized_p): Support wildcards.
20542 2015-04-22 Tom de Vries <tom@codesourcery.com>
20544 PR tree-optimization/65823
20545 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20546 equality between ap_copy and ap.
20548 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20551 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20553 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20556 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20558 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20561 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20562 remove already contained t-files.
20564 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20566 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20567 Remove unneeded forward declarations.
20568 (suitable_for_tail_call_opt_p): Commentary typo fix.
20570 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20572 * varasm.c (emit_bss): Remove redundant guard.
20574 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20576 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20578 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20580 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20582 2015-04-22 Hale Wang <hale.wang@arm.com>
20583 Terry Guo <terry.guo@arm.com>
20585 PR rtl-optimization/64818
20586 * combine.c (can_combine_p): Don't combine user-specified
20587 register if it is in an asm input.
20589 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20592 * passes.def (early_optimizations): Add pass_dse.
20594 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20596 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20597 * reorg.c (redundant_insn): Remove ifdef
20598 INSN_REFERENCES_ARE_DELAYED.
20599 * resource.c (mark_referenced_resources): Likewise.
20601 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20603 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20604 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20605 * resource.c (mark_set_resources): Likewise.
20607 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20609 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20610 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20611 (flow_find_head_matching_sequence): Likewise.
20612 (try_head_merge_bb): Likewise.
20613 * combine.c (can_combine_p): Likewise.
20614 (try_combine): Likewise.
20615 (distribute_notes): Likewise.
20616 * df-problems.c (can_move_insns_across): Likewise.
20617 * final.c (final): Likewise.
20618 * gcse.c (insert_insn_end_basic_block): Likewise.
20619 * ira.c (find_moveable_pseudos): Likewise.
20620 * reorg.c (try_merge_delay_insns): Likewise.
20621 (fill_simple_delay_slots): Likewise.
20622 (fill_slots_from_thread): Likewise.
20623 * sched-deps.c (sched_analyze_2): Likewise.
20625 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20627 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20628 PIC_OFFSET_TABLE_REGNUM.
20630 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20632 * alias.c (init_alias_target): Remove ifdef
20633 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20634 * df-scan.c (df_insn_refs_collect): Likewise.
20635 (df_get_regular_block_artificial_uses): Likewise.
20636 (df_get_eh_block_artificial_uses): Likewise.
20637 (df_get_entry_block_def_set): Likewise.
20638 (df_get_exit_block_use_set): Likewise.
20639 * emit-rtl.c (gen_rtx_REG): Likewise.
20640 * ira.c (ira_setup_eliminable_regset): Likewise.
20641 * reginfo.c (init_reg_sets_1): Likewise.
20642 * regrename.c (rename_chains): Likewise.
20643 * reload1.c (reload): Likewise.
20644 (eliminate_regs_in_insn): Likewise.
20645 * resource.c (mark_referenced_resources): Likewise.
20646 (init_resource_info): Likewise.
20648 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20650 * defaults.h (MASK_RETURN_ADDR): New definition.
20651 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20654 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20656 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20657 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20658 RETURN_ADDR_OFFSET.
20659 (expand_builtin_frob_return_addr): Likewise.
20661 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20663 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20664 (try_redirect_by_replacing_jump): Likewise.
20665 (rtl_tidy_fallthru_edge): Likewise.
20666 * combine.c (insn_a_feeds_b): Likewise.
20667 (find_split_point): Likewise.
20668 (simplify_set): Likewise.
20669 * cprop.c (cprop_jump): Likewise.
20670 * cse.c (cse_extended_basic_block): Likewise.
20671 * df-problems.c (can_move_insns_across): Likewise.
20672 * function.c (emit_use_return_register_into_block): Likewise.
20673 * haifa-sched.c (sched_init): Likewise.
20674 * ira.c (find_moveable_pseudos): Likewise.
20675 * loop-invariant.c (find_invariant_insn): Likewise.
20676 * lra-constraints.c (curr_insn_transform): Likewise.
20677 * postreload.c (reload_combine_recognize_const_pattern):
20679 * reload.c (find_reloads): Likewise.
20680 * reorg.c (delete_scheduled_jump): Likewise.
20681 (steal_delay_list_from_target): Likewise.
20682 (steal_delay_list_from_fallthrough): Likewise.
20683 (redundant_insn): Likewise.
20684 (fill_simple_delay_slots): Likewise.
20685 (fill_slots_from_thread): Likewise.
20686 (delete_computation): Likewise.
20687 * sched-rgn.c (add_branch_dependences): Likewise.
20689 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20691 * genconfig.c (main): Always define HAVE_cc0.
20692 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
20694 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20695 (flow_find_head_matching_sequence): Likewise.
20696 (try_head_merge_bb): Likewise.
20697 * cfgrtl.c (rtl_merge_blocks): Likewise.
20698 (try_redirect_by_replacing_jump): Likewise.
20699 (rtl_tidy_fallthru_edge): Likewise.
20700 * combine.c (do_SUBST_MODE): Likewise.
20701 (insn_a_feeds_b): Likewise.
20702 (combine_instructions): Likewise.
20703 (can_combine_p): Likewise.
20704 (try_combine): Likewise.
20705 (find_split_point): Likewise.
20707 (simplify_set): Likewise.
20708 (distribute_notes): Likewise.
20709 * cprop.c (cprop_jump): Likewise.
20710 * cse.c (cse_extended_basic_block): Likewise.
20711 * df-problems.c (can_move_insns_across): Likewise.
20712 * final.c (final): Likewise.
20713 (final_scan_insn): Likewise.
20714 * function.c (emit_use_return_register_into_block): Likewise.
20715 * gcse.c (insert_insn_end_basic_block): Likewise.
20716 * haifa-sched.c (sched_init): Likewise.
20717 * ira.c (find_moveable_pseudos): Likewise.
20718 * loop-invariant.c (find_invariant_insn): Likewise.
20719 * lra-constraints.c (curr_insn_transform): Likewise.
20720 * optabs.c (prepare_cmp_insn): Likewise.
20721 * postreload.c (reload_combine_recognize_const_pattern):
20723 * reload.c (find_reloads): Likewise.
20724 (find_reloads_address_1): Likewise.
20725 * reorg.c (delete_scheduled_jump): Likewise.
20726 (steal_delay_list_from_target): Likewise.
20727 (steal_delay_list_from_fallthrough): Likewise.
20728 (try_merge_delay_insns): Likewise.
20729 (redundant_insn): Likewise.
20730 (fill_simple_delay_slots): Likewise.
20731 (fill_slots_from_thread): Likewise.
20732 (delete_computation): Likewise.
20733 (relax_delay_slots): Likewise.
20734 * sched-deps.c (sched_analyze_2): Likewise.
20735 * sched-rgn.c (add_branch_dependences): Likewise.
20737 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20739 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20740 that is trivially ded on non cc0 targets.
20741 (simplify_set): Likewise.
20742 (mark_used_regs_combine): Likewise.
20743 * cse.c (new_basic_block): Likewise.
20744 (fold_rtx): Likewise.
20745 (cse_insn): Likewise.
20746 (cse_extended_basic_block): Likewise.
20747 (set_live_p): Likewise.
20748 * rtlanal.c (canonicalize_condition): Likewise.
20749 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20751 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20753 * conditions.h: Define macros even if HAVE_cc0 is undefined.
20754 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
20755 * final.c: Likewise.
20756 * jump.c: Likewise.
20757 * recog.c: Likewise.
20758 * recog.h: Declare functions even when HAVE_cc0 is undefined.
20759 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
20761 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20763 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
20764 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
20765 * builtins.c (expand_builtin): Remove check if
20766 EH_RETURN_DATA_REGNO is defined.
20767 * df-scan.c (df_bb_refs_collect): Likewise.
20768 (df_get_exit_block_use_set): Likewise.
20769 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20770 * ira-lives.c (process_bb_node_lives): Likewise.
20771 * lra-lives.c (process_bb_lives): Likewise.
20773 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20775 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20776 FIRST_PSEUDO_REG): New.
20777 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20778 (ARG_POINTER_REGNUM): Define to ARGP_REG.
20779 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20780 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20781 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20782 (FIRST_INT_REG): New.
20783 (LAST_INT_REG): New.
20784 (FIRST_*_REG): Define using *_REG.
20785 (LAST_*_REG): Ditto.
20786 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20787 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20788 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20790 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20792 * expmed.c: (synth_mult): Only assume overlapping
20793 shift with previous steps in alg_sub_t_m2 case.
20795 2015-04-21 Richard Biener <rguenther@suse.de>
20797 PR tree-optimization/65650
20798 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20799 transitions involving copies.
20800 (set_lattice_value): Adjust for copy lattice state.
20801 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20802 if that doesn't dominate the merge point.
20803 (bit_value_unop): Adjust what we treat as varying mask.
20804 (bit_value_binop): Likewise.
20805 (bit_value_assume_aligned): Likewise.
20806 (evaluate_stmt): When we simplified to a SSA name record a copy
20807 instead of dropping to varying.
20808 (visit_assignment): Simplify.
20810 * gimple-match.h (gimple_simplify): Add another callback.
20811 * gimple-fold.c (fold_stmt_1): Adjust caller.
20812 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20813 for the 2nd callback.
20814 * gimple-match-head.c (gimple_simplify): Add a callback that is
20815 used to valueize the stmt operands and use it that way.
20817 2015-04-21 Richard Biener <rguenther@suse.de>
20819 PR tree-optimization/65788
20820 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20822 2015-04-21 Richard Biener <rguenther@suse.de>
20824 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20825 vec_construct cost by vec_stmt_cost.
20827 2015-04-21 Richard Biener <rguenther@suse.de>
20829 * cfghooks.h (create_basic_block): Replace with two overloads
20830 for RTL and GIMPLE.
20831 (split_block): Likewise.
20832 * cfghooks.c (split_block): Rename to ...
20833 (split_block_1): ... this.
20834 (split_block): Add two type-safe overloads for RTL and GIMPLE.
20835 (split_block_after_labels): Call split_block_1.
20836 (create_basic_block): Rename to ...
20837 (create_basic_block_1): ... this.
20838 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20839 (create_empty_bb): Call create_basic_block_1.
20840 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20841 split_block_after_labels.
20842 * omp-low.c (expand_parallel_call): Likewise.
20843 (expand_omp_target): Likewise.
20844 (simd_clone_adjust): Likewise.
20845 * tree-chkp.c (chkp_get_entry_block): Likewise.
20846 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20847 create_basic_block overload.
20848 (cgraph_node::expand_thunk): Likewise.
20849 * tree-cfg.c (make_blocks): Likewise.
20850 (handle_abnormal_edges): Likewise.
20851 * tree-inline.c (copy_bb): Likewise.
20853 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20855 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20857 (*xor_one_cmplsidi3_ze): Likewise.
20859 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20861 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20862 use df_remove_problem rather than manually removing problems, leaving
20863 holes in df->problems_in_order[].
20865 2015-04-21 Tom de Vries <tom@codesourcery.com>
20867 PR tree-optimization/65802
20868 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20870 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20872 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20874 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20875 at '.'. Assert that there's enough space for everything.
20877 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20879 PR tree-optimization/64950
20881 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
20884 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20887 2015-04-20 Shiva Chen <shiva0217@gmail.com>
20889 PR rtl-optimization/64916
20890 * cfgcleanup.c (values_equal_p): New function.
20891 (can_replace_by): Use it.
20893 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
20896 * doc/invoke.texi ([-Wnarrowing]): Update.
20898 2015-04-20 Jeff Law <law@redhat.com>
20900 PR tree-optimization/65658
20901 * tree-ssa-threadupdate.c (redirection_block_p): Remove
20902 redundant test for GIMPLE_ASSIGN in last change.
20904 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
20906 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20907 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20908 (legitimize_tls_address): Ditto.
20909 (ix86_expand_move): Ditto.
20910 (ix86_expand_binary_operator): Remove reload_in_progress checks.
20911 (ix86_expand_unary_operator): Ditto.
20912 * config/i386/predicates.md (index_register_operand): Ditto.
20914 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
20916 * reorg.c (try_merge_delay_insns): Improve correctness checking
20917 for targets with multiple delay slots.
20919 2015-04-20 Jeff Law <law@redhat.com>
20921 PR tree-optimization/65658
20922 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20925 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20927 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20928 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20931 2015-04-20 Jakub Jelinek <jakub@redhat.com>
20934 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20936 2015-04-20 Richard Biener <rguenther@suse.de>
20938 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20939 * gimple-fold.c (gimple_build_valueize): New function.
20940 (gimple_build): Always use gimple_build_valueize as valueize hook.
20942 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20945 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20946 and overwrite variable parts if <= 1/2 the elements are variable.
20948 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
20950 PR rtl-optimization/65805
20951 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20952 Don't use difference of offset and previous offset if
20953 update_sp_offset is non-zero.
20954 (eliminate_regs_in_insn): Ditto.
20955 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20956 lra_eliminate_regs_1 call.
20957 * lra-constraints.c (get_equiv_with_elimination): Ditto.
20959 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
20961 * hash-table.h: Remove version of hash_table that stored value_type *.
20962 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20963 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20964 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20965 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20966 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20967 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20968 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20969 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20970 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20971 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20972 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20973 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20974 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20975 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20976 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20977 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20979 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20980 Jakub Jelinek <jakub@redhat.com>
20983 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20984 subsequent SH_NONE operand does not overwrite an existing *special
20986 (adjust_extract): Handle case where a vec_extract operation is
20987 wrapped in a PARALLEL.
20989 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20992 * config/i386/i386.c (ix86_binds_local_p): Define only if
20993 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20995 2015-04-17 Jeff Law <law@redhat.com>
20997 PR tree-optimization/47679
20998 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20999 * tree-ssa-scopedtables.c: New file.
21000 * tree-ssa-scopedtables.h: New file.
21001 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21002 (const_and_copies): Change name/type.
21003 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21004 (record_const_or_copy_1): Similarly.
21005 (restore_vars_to_original_value): Similarly.
21006 (pass_dominator::execute): Create and destroy const_and_copies table.
21007 (thread_across_edge): Update passing of const_and_copies.
21008 (record_temporary_equivalence): Use method calls rather than
21009 manipulating const_and_copies directly.
21010 (record_equality, cprop_into_successor_phis): Similarly.
21011 (dom_opt_dom_walker::before_dom_children): Similarly.
21012 (dom_opt_dom_walker::after_dom_children): Similarly.
21013 (eliminate_redundant_computations): Similarly.
21014 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21015 (record_temporary_equivalence): Likewise.
21016 (invalidate_equivalences): Likewise.
21017 (record_temporary_equivalences_from_phis): Update due to type
21018 change of const_and_copies. Use method calls rather than
21019 manipulating the stack directly.
21020 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21021 (thread_through_normal_block, thread_across_edge): Likewise.
21022 (thread_across_edge): Likewise.
21023 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21024 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21026 (identify_jump_threads): Update due to type change of equiv_stack.
21027 (finalize_jump_threads): Delete the equiv_stack when complete.
21029 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21031 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21032 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21033 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21035 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21038 * config.gcc: Exit with a comment when we do not have a major version
21039 number for the FreeBSD target.
21041 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21044 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21045 maybe_allows_mem bitfields.
21046 (maybe_allows_none_start, maybe_allows_none_end,
21047 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21048 maybe_allows_mem_end): New variables.
21049 (compute_maybe_allows): New function.
21050 (add_constraint): Use it to initialize maybe_allows_reg and
21051 maybe_allows_mem fields.
21052 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21053 is_address constraints such that those that allow neither mem nor
21054 reg come first, then those that only allow reg but not mem, then
21055 those that only allow mem but not reg, then the rest.
21056 (write_allows_reg_mem_function): New function.
21057 (write_tm_preds_h): Call it.
21058 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21059 the generated insn_extra_constraint_allows_reg_mem function
21060 instead of always setting *allows_reg = true; *allows_mem = true;
21061 for unknown extra constraints.
21063 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21066 * output.h (default_binds_local_p_3): New.
21067 * varasm.c (default_binds_local_p_3): Make it public. Take an
21068 argument to indicate if common symbol may be local. If common
21069 symbol may be local, treat non-external variable as defined
21071 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21072 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21073 * config/i386/i386.c (ix86_binds_local_p): New.
21074 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21075 ix86_binds_local_p.
21077 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21080 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21081 trying mem_loc_descriptor on XEXP (rtl, 0).
21083 2015-04-17 Martin Liska <mliska@suse.cz>
21085 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21086 Release symbol_compare_collection.
21087 * ipa-reference.c: Add TODO that a vector should be released.
21089 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21092 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21093 to new AVR-LibC file layout (bug #44574).
21094 (*avrlibc_devicelib): Same.
21095 * config/avr/avr-mcus.def: Adjust comments.
21096 * config/avr/avr.opt (nodevicelib): Adjust help.
21098 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21100 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21102 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21105 * gimplify.c (gimplify_init_constructor): Always emit a
21106 side-effecting constructor.
21108 2015-04-17 Tom de Vries <tom@codesourcery.com>
21110 PR tree-optimization/64950
21111 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21112 in cfun->curr_properties.
21113 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21114 if we generate an IFN_VA_ARG.
21115 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21116 function if PROP_gimple_lva is not set in src function.
21118 2015-04-17 Tom de Vries <tom@codesourcery.com>
21119 Michael Matz <matz@suse.de>
21121 PR tree-optimization/64950
21122 * gimple-iterator.c (update_modified_stmts): Remove static.
21123 * gimple-iterator.h (update_modified_stmts): Declare.
21124 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21125 (gimplify_va_arg_internal): New function.
21126 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21127 * gimplify.h (gimplify_va_arg_internal): Declare.
21128 * internal-fn.c (expand_VA_ARG): New unreachable function.
21129 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21130 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21131 (expand_ifn_va_arg): New function.
21132 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21133 (pass_stdarg::execute): Call expand_ifn_va_arg.
21134 (pass_data_lower_vaarg): New pass_data.
21135 (pass_lower_vaarg): New gimple_opt_pass.
21136 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21137 (make_pass_lower_vaarg): New function.
21138 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21139 properties_required field.
21140 * passes.def (all_passes): Add pass_lower_vaarg.
21141 * tree-pass.h (PROP_gimple_lva): Add define.
21142 (make_pass_lower_vaarg): Declare.
21144 2015-04-17 Tom de Vries <tom@codesourcery.com>
21146 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21147 * calls.c (call_expr_flags): Same.
21149 2015-04-17 Tom de Vries <tom@codesourcery.com>
21151 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21152 (pass_stdarg::execute): ... here.
21154 2015-04-17 Tom de Vries <tom@codesourcery.com>
21155 Michael Matz <matz@suse.de>
21157 * tree-cfg.c (make_blocks_1): Factor out of ...
21158 (make_blocks): ... here.
21159 (make_edges_bb): Factor out of ...
21160 (make_edges): ... here.
21161 (gimple_find_sub_bbs): New function.
21162 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21164 2015-04-17 Tom de Vries <tom@codesourcery.com>
21166 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21168 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21170 * asan.c (set_sanitized_sections): New function.
21171 (section_sanitized_p): Ditto.
21172 (asan_protect_global): Optionally sanitize user-defined
21174 * asan.h (set_sanitized_sections): Declare new function.
21175 * common.opt (fsanitize-sections): New option.
21176 * doc/invoke.texi (-fsanitize-sections): Document new option.
21177 * opts-global.c (handle_common_deferred_options): Handle new
21180 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21183 * dwarf2out.c (loc_list_from_tree): Return NULL
21184 for DEBUG_EXPR_DECL.
21186 2015-04-17 Christian Bruel <christian.bruel@st.com>
21188 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21191 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21193 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21194 node itself when computing left conflict subnode size.
21196 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21198 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21199 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21200 *fop_<mode>_1_sse using enabled attribute. Use
21201 register_mixssei387nonimm_operand operand 1 predicate. Change
21202 alternative 3 constraints from "x" to "v".
21204 2015-04-16 Richard Biener <rguenther@suse.de>
21206 PR tree-optimization/65774
21207 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21208 bit-value tracking on.
21210 2015-04-16 Richard Biener <rguenther@suse.de>
21212 PR tree-optimization/64277
21213 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21214 simplify upper bound handling.
21215 (search_for_addr_array): Simplify.
21216 (check_array_bounds): Handle ADDR_EXPRs here.
21217 (check_all_array_refs): Simplify.
21219 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21221 * config/i386/i386.c (print_reg): Rewrite function.
21223 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21225 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21226 Invert the condition.
21228 2015-04-16 Renlin Li <renlin.li@arm.com>
21230 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21231 simplifications for UNSIGNED_FLOAT.
21233 2015-04-16 Nick Clifton <nickc@redhat.com>
21235 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21237 (enum rl78_cpu_type): New.
21238 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21239 (umulhi3_shift_virt): Remove m constraint from operand 1.
21240 (umulqihi3_virt): Likewise.
21241 * config/rl78/rl78.c (rl78_option_override): Add code to process
21242 -mcpu and -mmul options.
21243 (rl78_alloc_physical_registers): Add code to handle divhi and
21244 divsi valloc attributes.
21245 (set_origin): Likewise.
21246 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21247 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21248 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21250 (ASM_SPEC): Pass -mcpu on to assembler.
21251 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21252 (mulqi3_rl78): Likewise.
21253 (mulhi3_g13): Likewise.
21254 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21255 (mulsi3): Likewise.
21256 (mulhi3_g14): Add clobbers of AX and BC.
21257 (mulsi3_g14): Likewise.
21258 (mulsi3_g13): Likewise.
21259 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21260 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21261 * config/rl78/rl78.opt (mmul): Initialise value to
21263 (mcpu): New option.
21264 (m13, m14, mrl78): New option aliases.
21265 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21266 (MULTILIB_DIRNAMES): Add g13 and g14.
21267 * doc/invoke.texi: Document -mcpu and -mmul options.
21269 2015-04-16 Richard Biener <rguenther@suse.de>
21271 * tree-ssa-ccp.c (likely_value): See if we have operands that
21272 are marked as never simulate again and return CONSTANT in this
21274 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21275 not have any operands that will be simulated again as
21276 not being simulated again.
21278 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21280 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21281 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21282 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21284 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21286 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21287 *float<SWI48:mode><MODEF:mode>2_sse.
21288 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21290 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21293 2015-04-15 Tom de Vries <tom@codesourcery.com>
21296 * function.c (push_dummy_function): New function.
21297 (init_dummy_function_start): Use push_dummy_function.
21298 (pop_dummy_function): New function. Factored out of ...
21299 (expand_dummy_function_end): ... here.
21300 * function.h (push_dummy_function, pop_dummy_function): Declare.
21301 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21302 pop_dummy_function.
21303 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21305 2015-04-15 Jeff Law <law@redhat.com>
21307 PR tree-optimization/47679
21308 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21309 need for forward declaration in upcoming changes.
21310 (record_conditions, record_edge_info): Likewise.
21312 PR rtl-optimization/42522
21313 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21314 SIGN_EXTRACT as a whole object rather than simplifying
21317 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21320 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21321 and GIMPLE_PREDICT use break instead of return true. For
21322 GIMPLE_EH_DISPATCH, compare dispatch region.
21324 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21326 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21327 details about the implementation. Make clear preference for
21328 __atomic builtins. Reduce possibility of future change.
21330 2015-04-15 Nick Clifton <nickc@redhat.com>
21332 * config/rx/rx.opt (mallow-string-insns): New option.
21333 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21334 builtin if string instructions are denied.
21335 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21336 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21338 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21339 * config/rx/rx.md (movstr): Enable pattern only if string
21340 instructions are allowed.
21341 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21342 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21343 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21344 (MULTILIB_DIRNAMES): Add no-strings.
21345 * doc/invoke.texi: Document -mno-allow-string-insns.
21347 2015-04-15 Alan Modra <amodra@gmail.com>
21351 PR middle-end/36043
21352 * calls.c (load_register_parameters): Don't load past end of
21353 mem unless suitably aligned.
21355 2015-04-15 Nick Clifton <nickc@redhat.com>
21357 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21358 decrement instruction as being frame related.
21359 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21361 If zero extending a function address enclose the operation in
21363 (rl78_preferred_reload_class): New function.
21364 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21365 * config/rl78/rl78.md: Remove useless constraints in expanders.
21366 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21367 (mulhi3_rl78): Likewise.
21368 (mulhi3_g13): Likewise.
21369 (mulsi3_rl78): Likewise.
21370 (es_addr): Move to before the multiply patterns.
21372 2015-04-15 Alan Modra <amodra@gmail.com>
21374 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21375 and sequence_stack. Add seq.
21376 (seq_stack): Delete.
21377 * function.c (prepare_function_start): Don't access x_last_insn.
21378 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21379 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21380 * emit_rtl.c (start_sequence, push_topmost_sequence,
21381 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21382 sequence accessors.
21383 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21384 remove_insn): Likewise. Simplify.
21385 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21386 and pop_topmost_sequence.
21387 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21389 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21391 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21394 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21397 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21399 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21400 (LEGACY_INT_REGNO_P): Ditto.
21401 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21402 (ANY_MASK_REG_P): Remove.
21403 (BND_REG_P): Rename from ANY_BND_REG_P.
21404 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21405 legacy integer registers. Do not handle MMX_REG_P in a special way.
21406 Merge 64byte and 32byte SSE handling.
21408 2015-04-14 Nick Clifton <nickc@redhat.com>
21410 * expr.c (expand_assignment): Force an address offset computation
21411 into a register before changing its mode.
21412 (expand_expr_real_1): Likewise.
21414 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21416 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21417 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21418 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21419 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21420 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21421 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21422 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21423 and __aarch64_vget_lane_any.
21425 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21427 PR rtl-optimization/65761
21428 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21429 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21431 2015-04-14 Richard Biener <rguenther@suse.de>
21433 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21434 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21436 2015-04-14 Richard Biener <rguenther@suse.de>
21438 PR tree-optimization/65758
21439 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21441 (ccp_lattice_meet): Likewise.
21442 (bit_value_unop): Likewise.
21443 (bit_value_binop): Likewise.
21444 (bit_value_assume_aligned): Likewise.
21446 2015-04-14 Christian Bruel <christian.bruel@st.com>
21448 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21451 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21453 PR tree-optimization/63387
21454 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21455 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21457 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21459 * config/i386/predicates.md (any_QIreg_operand): Rename from
21460 q_regs_operand. Do not process subregs.
21461 (QIreg_operand): Use QI_REGNO_P predicate.
21462 (ext_QIreg_operand): Ditto.
21463 (ext_register_operand): Ditto.
21464 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21465 (AND splitters): Ditto.
21466 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21467 (AND with -256 splitter): Use any_QIreg_operand predicate and
21468 SWI248 mode for operand 0.
21469 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21470 mode for operand 0.
21471 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21473 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21475 * doc/plugins.texi: Rewrite first introductory paragraph.
21477 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21479 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21480 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21482 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21484 * ipa-profie.c (ipa_profile): Check number of parameters
21485 and possible polymorphic call targets before
21488 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21490 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21491 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21493 2015-04-13 Richard Biener <rguenther@suse.de>
21495 PR tree-optimization/65204
21496 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21497 takens for bit-CCP.
21499 2015-04-13 Richard Biener <rguenther@suse.de>
21502 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21503 and cond_not_taken_branch_cost to 4 and 2.
21504 (bdver2_cost): Likewise.
21505 (bdver3_cost): Likewise.
21506 (bdver4_cost): Likewise.
21508 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21510 * hash-table.h (hash_table constructor): Add mem stats.
21511 (alloc_entries): Likewise.
21513 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21515 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21516 * passes.c (execute_one_pass): Only add transform if pass has one.
21518 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21520 * config/i386/i386.c (ix86_option_override_internal): Don't set
21521 -fprefetch-loop-arrays if optimizing for size.
21523 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21524 Gerald Pfeifer <gerald@pfeifer.com>
21526 * doc/contrib.texi (Contributors): Add Martin Jambor and
21529 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21531 * BASE-VER: Set to 6.0.0.
21533 PR tree-optimization/65747
21534 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21535 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21537 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21539 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21540 sentence. Improve grammar.
21542 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21544 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21546 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21549 * ipa-inline-transform.c (speculation_removed): Remove static var.
21550 (check_speculations): New function.
21551 (clone_inlined_nodes): Do not check spculations.
21552 (inline_call): Call check_speculations.
21553 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21554 consider non-invariants.
21556 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21557 Martin Liska <mliska@suse.cz>
21560 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21561 variable can not match.
21562 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21563 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21565 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21567 PR tree-optimization/65735
21568 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21569 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21570 same bb rather than just into the same phi node.
21571 (thread_through_normal_block): Adjust caller.
21573 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21575 * doc/contrib.texi (Contributors): Add Ira Rosen.
21577 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21579 * gcov.c (find_source): Fix miswording in error message.
21580 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21581 (ix86_expand_sse_comi_round): Fix typo in error message.
21583 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21585 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21587 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21589 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21591 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21594 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21595 Print bad_spills_num and insn_pseudos_num.
21597 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21600 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21601 when creating +1 values for SImode.
21603 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21606 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21609 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21610 Iain Sandoe <iain@codesourcery.com>
21613 * configure: Regenerate.
21615 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21618 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21620 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21622 * doc/contrib.texi (Contributors): Add John Marino.
21624 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21626 PR tree-optimization/65709
21627 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21628 TREE_TYPE (TREE_TYPE (t)).
21630 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21633 * lra-int.h (lra_bad_spill_regno_start): New.
21634 * lra.c (lra_bad_spill_regno_start): New.
21635 (lra): Set up lra_bad_spill_regno_start. Set up
21636 lra_constraint_new_regno_start unconditionally.
21637 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21640 2015-04-09 Marek Polacek <polacek@redhat.com>
21641 Jakub Jelinek <jakub@redhat.com>
21643 PR middle-end/65554
21644 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21645 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21648 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21650 PR rtl-optimization/65693
21651 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21654 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21657 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21658 device specs file if "device-specs%s" didn't resolve to a path.
21660 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21663 * config/i386/i386.c (fixup_modeless_constant): New.
21664 (ix86_expand_args_builtin): Fixup modeless constant operand.
21665 (ix86_expand_round_builtin): Ditto.
21666 (ix86_expand_special_args_builtin): Ditto.
21667 (ix86_expand_builtin): Ditto.
21669 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21672 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21673 any pow2 integer in between 2 and 0x80000000U inclusive.
21675 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
21677 PR rtl-optimization/65693
21678 * combine.c (is_parallel_of_n_reg_sets): Change first argument
21679 from an rtx_insn * to an rtx.
21680 (try_combine): Adjust both callers. Use it once more.
21682 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21684 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
21685 (chkp_make_static_const_bounds): Search existing
21686 symbol by assembler name. Use make_decl_one_only.
21687 (chkp_get_zero_bounds_var): Remove node search which
21688 is now performed in chkp_make_static_const_bounds.
21689 (chkp_get_none_bounds_var): Likewise.
21691 2015-04-08 Michael Witten <mfwitten@gmail.com>
21693 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
21696 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21698 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
21700 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21702 * doc/extend.texi (__sync Builtins): Fix grammar.
21704 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21706 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
21708 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21710 * varasm.c (emit_local): Move definition of align.
21712 2015-04-08 Julian Brown <julian@codesourcery.com>
21714 * config/nvptx/mkoffload.c (process): Support variable mapping.
21716 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
21718 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
21720 (alpha_write_one_linkage): Correct typo.
21722 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21724 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21726 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21728 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21730 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21732 * tree-chkp.h (chkp_insert_retbnd_call): New.
21733 * tree-chkp.c (chkp_insert_retbnd_call): New.
21734 * ipa-split.c (insert_bndret_call_after): Remove.
21735 (split_function): Use chkp_insert_retbnd_call.
21736 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21737 bounds for instrumented functions.
21739 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
21742 * calls.c (initialize_argument_information): When producing tail
21743 call also turn SSA_NAMES passed by references to original PARM_DECLs
21745 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
21748 * lra-remat.c (do_remat): Process input and non-input insn
21749 registers separately.
21751 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21754 * valtrack.c (debug_lowpart_subreg): New function.
21755 (dead_debug_insert_temp): Use it.
21757 PR middle-end/65680
21758 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
21759 into signed HOST_WIDE_INT the same as negative bit_offset.
21761 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
21763 * ipa-comdats.c (ipa_comdats): Visit all thunks
21764 to set proper comdat group.
21766 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21769 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
21770 on constants for NEON VSTRUCT modes.
21772 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21773 Iain Sandoe <iain@codesourcery.com>
21776 * configure: Regenerate.
21778 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21781 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21782 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21783 that LFD is used to load double constants instead of LFS. Add
21784 defaults for all costs structures. Add comments for missing
21785 initialization fields.
21786 (size32_cost): Likewise.
21787 (size64_cost): Likewise.
21788 (rs64a_cost): Likewise.
21789 (mpccore_cost): Likewise.
21790 (ppc403_cost): Likewise.
21791 (ppc405_cost): Likewise.
21792 (ppc440_cost): Likewise.
21793 (ppc476_cost): Likewise.
21794 (ppc601_cost): Likewise.
21795 (ppc603_cost): Likewise.
21796 (ppc604_cost): Likewise.
21797 (ppc604e_cost): Likewise.
21798 (ppc620_cost): Likewise.
21799 (ppc630_cost): Likewise.
21800 (ppccell_cost): Likewise.
21801 (ppc750_cost): Likewise.
21802 (ppc7450_cost): Likewise.
21803 (ppc8540_cost): Likewise.
21804 (ppce300c2c3_cost): Likewise.
21805 (ppce500mc_cost): Likewise.
21806 (ppce500mc64_cost): Likewise.
21807 (ppce5500_cost): Likewise.
21808 (ppce6500_cost): Likewise.
21809 (titan_cost): Likewise.
21810 (power4_cost): Likewise.
21811 (power6_cost): Likewise.
21812 (power7_cost): Likewise.
21813 (power8_cost): Likewise.
21814 (ppca2_cost): Likewise.
21815 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21817 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21818 instead of XXLOR to copy SFmode to clear out dirty bits created
21819 when SFmode denormals are generated.
21820 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21821 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21823 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21825 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21826 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21827 * config/aarch64/aarch64-tune.md: Regenerate.
21829 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21831 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21832 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21833 * config/arm/arm-cores.def (exynos-m1): New core.
21834 * config/arm/arm-tune.md: Regenerate.
21835 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21836 * config/arm/bpabi.h: Likewise.
21838 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21840 * ipa-cp (set_single_call_flag): Remove too
21841 restrictive assert.
21843 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
21845 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21846 GOMP_offload_unregister from the destructor.
21848 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21850 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21851 flags for instrumentation thunk.
21852 (chkp_produce_thunks): Likewise.
21854 2015-04-05 Martin Liska <mliska@suse.cz>
21857 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21858 has computed data structure.
21859 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21861 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
21863 * invoke.texi (inline-unit-growth): Increase growth to 20%
21864 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21866 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
21869 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
21871 (lra_rematerialization_iter): New.
21872 * lra.c (lra): Initialize lra_rematerialization_iter.
21873 Stop updating lra_constraint_new_regno_start after switching of
21874 inheritance and rematerialization.
21875 * lra-remat.c (lra_rematerialization_iter): New.
21876 (lra_remat): Add printing pass iteration. Do rematerialization
21877 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21879 2015-04-04 Richard Biener <rguenther@suse.de>
21881 PR tree-optimization/64909
21882 PR tree-optimization/65660
21883 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21884 to take a cost vector for scalar iteration cost.
21885 (vect_get_single_scalar_iteration_cost): Likewise.
21886 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21887 Compute the scalar iteration cost into a cost vector.
21888 (vect_get_known_peeling_cost): Use the scalar cost vector to
21889 account for the cost of the peeled iterations.
21890 (vect_estimate_min_profitable_iters): Likewise.
21891 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21894 2015-04-04 Alan Modra <amodra@gmail.com>
21898 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21899 0.0 constant unless TARGET_VSX.
21900 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21903 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21906 * ipa-inline-transform.c (inline_call): Skip sanity check to work
21909 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21912 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21913 speculative indirect edges to avoid ordering issue.
21915 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21918 * ipa-inline.c (edge_badness): Add combined size to the denominator.
21920 2015-04-03 Jakub Jelinek <jakub@redhat.com>
21922 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21923 TYPE_ARTIFICIAL on the .omp_data* types.
21925 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21927 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21928 instrumentation thunks.
21930 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21932 * config/i386/i386.c (ix86_expand_call): Avoid nested
21933 PARALLEL in returned call value.
21935 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21937 * lto-cgraph.c (input_cgraph_1): Always link instrumented
21938 assembler name with original one.
21940 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21942 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21944 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21946 Revert parts of r216820.
21947 * config/i386/i386.md (movqi_internal): Correct type calculation
21948 for alternatives 3 and 5.
21950 2015-04-02 Jakub Jelinek <jakub@redhat.com>
21952 PR preprocessor/61977
21953 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21954 predefine __vector/__bool/__pixel macros nor context sensitive
21955 macros for CLK_ASM.
21956 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21958 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
21960 * config/pa/pa.c (pa_output_move_double): Directly handle register
21961 indexed memory operand. Simplify handling of scaled register indexed
21964 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21967 * config/i386/linux-common.h (MPX_SPEC): New.
21968 (CHKP_SPEC): Add MPX_SPEC.
21969 * doc/invoke.texi (-fcheck-pointer-boudns): Document
21970 possible issues with '-z bndplt' support in linker.
21972 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21974 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21975 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21976 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21977 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21978 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21980 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
21982 * config/i386/sync.md (UNSPEC_MOVA): Remove.
21983 (atomic_load<mode>): Change operand 0 predicate to
21984 nonimmediate_operand and fix up the destination when needed.
21986 (atomic_loaddi_fpu): Use UNSPEC_LDA.
21987 (atomic_store<mode>): Change operand 1 predicate to
21988 nonimmendate_operand and move the source to register when needed.
21990 (atomic_store<mode>_1): Use UNSPEC_STA.
21991 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21992 Fix moves from memory operand. Use UNSPEC_STA.
21994 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21996 * expmed.c (strict_volatile_bitfield_p): Check that the access will
21997 not cross a MODESIZE boundary.
21998 (store_bit_field, extract_bit_field): Added assertions in the
21999 strict volatile bitfields code path.
22001 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22004 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22005 Increase args array size by one to avoid buffer overflow.
22007 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22009 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22011 * ipa-inline.c (edge_badness): Add wrapper penalty.
22012 (sum_callers): Move up.
22013 (inline_small_functions): Set single_caller.
22014 * ipa-inline.h (inline_summary): Add single_caller.
22015 * ipa-split.c (split_function): Set split_part.
22016 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22017 * cgraph.h (cgraph_node): Add split_part.
22019 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22022 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22023 Do not split operands 0 and operands 2 to halfmode.
22024 (atomic_compare_and_swap<mode>): Update for
22025 atomic_compare_and_swap<dwi>_doubleword changes.
22027 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22029 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22030 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22031 no caching is done.
22033 2015-03-31 Martin Liska <mliska@suse.cz>
22036 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22037 has already filled up function summary.
22038 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22040 2015-03-31 Richard Biener <rguenther@suse.de>
22042 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22045 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22047 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22049 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22050 (s390_asm_output_function_label): Adapt to new signature of
22051 s390_function_num_hotpatch_hw
22052 Optimise the code generating assembler output.
22053 Add comments to assembler file.
22055 2015-03-31 Richard Biener <rguenther@suse.de>
22057 PR middle-end/65626
22058 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22059 of the noreturn call so it is last and cleanup_control_flow_bb
22060 can do the CFG part.
22062 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22065 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22066 same_comdat_group for external symbols.
22067 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22068 infinite same_comdat_group traversal loop.
22070 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22073 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22074 automatically to $headers.
22076 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22079 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22080 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22082 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22084 * ipa-prop.c (param_type_may_change_p): Likewise.
22085 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22086 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22087 argument. Before inlining, preserve
22088 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22089 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22091 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22093 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22096 * ipa-inline.c (edge_badness): Base denominator on callee's
22099 2015-03-27 Martin Jambor <mjambor@suse.cz>
22102 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22103 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22104 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22105 node_calling_single_call.
22106 * ipa-cp.c (count_callers): New function.
22107 (set_single_call_flag): Likewise.
22108 (initialize_node_lattices): Count callers and set single_flag_call if
22110 (incorporate_penalties): New function.
22111 (good_cloning_opportunity_p): Use it, dump new flags.
22112 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22113 * doc/invoke.texi (ipa-cp-recursion-penalty,
22114 ipa-cp-single-call-pentalty): Document.
22116 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22119 * symtab.c (symtab_node::get_partitioning_class): Register vars
22121 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22122 decls for non-symbols.
22124 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22127 * output.h (default_binds_local_p_2): New.
22128 * varasm.c (default_binds_local_p_2): Renamed to ...
22129 (default_binds_local_p_3): This. Don't return true on protected
22130 data symbol if protected data may be external.
22131 (default_binds_local_p): Use default_binds_local_p_3.
22132 (default_binds_local_p_1): Likewise.
22133 (default_binds_local_p_2): New.
22134 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22135 default_binds_local_p_2 if TARGET_MACHO is undefined.
22137 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22140 * config/i386/i386.c (legitimize_pic_address): If base
22141 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22142 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22144 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22147 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22150 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22153 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22154 of optimized out indirect call.
22155 (redirect_to_unreachable): Always build symbol table node for
22156 BUILT_IN_UNREACHABLE
22158 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22161 * ira-costs.c (record_reg_classes): Process all constraint string
22164 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22166 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22170 * config/c6x/constraints.md (S3): New constraint.
22171 * config/c6x/c6x.md (real_jump): Use it.
22173 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22175 PR middle-end/65595
22176 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22177 do redirection if the call is not optimized out.
22179 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22182 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22183 (fchkp-check-incomplete-type): Add LTO.
22184 (fchkp-zero-input-bounds-for-main): Likewise.
22185 (fchkp-first-field-has-own-bounds): Likewise.
22186 (fchkp-narrow-bounds): Likewise.
22187 (fchkp-narrow-to-innermost-array): Likewise.
22188 (fchkp-use-static-bounds): Likewise.
22189 (fchkp-use-static-const-bounds): Likewise.
22190 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22192 2015-03-27 Marek Polacek <polacek@redhat.com>
22194 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22196 2015-03-27 Marek Polacek <polacek@redhat.com>
22199 * ubsan.c (ubsan_create_edge): New function.
22200 (instrument_bool_enum_load): Call it.
22201 (instrument_nonnull_arg): Likewise.
22202 (instrument_nonnull_return): Likewise.
22203 (instrument_object_size): Likewise.
22205 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22207 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22210 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22213 * lto-streamer.h (class lto_location_cache): New.
22214 (struct data_in): Add location_cache.
22215 (lto_input_location): Update prototype.
22216 (stream_input_location_now): New.
22217 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22218 pointer to location.
22219 (stream_input_location): Update.
22220 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22221 (warn_odr): Apply location cache before warning.
22222 (lto_input_location): Update prototype.
22223 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22224 Use stream_input_location_now.
22225 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22227 (lto_location_cache::cmp_loc): New function.
22228 (lto_location_cache::apply_location_cache): New function.
22229 (lto_location_cache::accept_location_cache): New function.
22230 (lto_location_cache::revert_location_cache): New function.
22231 (lto_location_cache::input_location): New function.
22232 (lto_input_location): Do location caching.
22233 (stream_input_location_now): New function.
22234 (input_eh_region, input_struct_function_base): Use
22235 stream_input_location_now.
22236 (lto_data_in_create): use new.
22237 (lto_data_in_delete): Use delete.
22238 * tree-streamer-in.c (unpack_ts_block_value_fields,
22239 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22240 lto_input_ts_exp_tree_pointers): Update for cached location api.
22242 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22245 * passes.def: Add pass_nothrow.
22246 * ipa-pure-const.c: (pass_data_nothrow): New.
22247 (pass_nothrow): New.
22248 (pass_nothrow::execute): New.
22249 (make_pass_nothrow): New.
22250 * tree-pass.h (make_pass_nothrow): Declare.
22252 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22254 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22255 edge to change by speculation resolution or redirection.
22256 (edge_set_predicate): Likewise.
22257 (inline_summary_t::duplicate): Likewise.
22258 (remap_edge_summaries): Likewise.
22260 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22262 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22264 (can_inline_edge_p): Relax option matching for always inline functions.
22266 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22269 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22270 Check operand 4 and operand 0 for equality.
22271 (avx512f_vextract<shuffletype>32x4_1_maskm):
22272 Check operand 6 and operand 0 for equality.
22273 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22275 (vec_extract_hi_<mode>_maskm): Ditto.
22277 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22279 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22280 dead calls back to live.
22281 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22283 (cgraph_node::verify_node): ... here; verify only callee edges,
22285 * cif-code.def (CILK_SPAWN): New code.
22287 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22289 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22290 (edge_set_predicate): Use it to mark unreachable edges.
22291 (inline_summary_t::duplicate): Remove unnecesary code.
22292 (remap_edge_summaries): Likewise.
22293 (dump_inline_summary): Report contains_cilk_spawn.
22294 (compute_inline_parameters): Compute contains_cilk_spawn.
22295 (inline_read_section, inline_write_summary): Stream
22296 contains_cilk_spawn.
22297 * ipa-inline.c (can_inline_edge_p): Do not touch
22298 DECL_STRUCT_FUNCTION that may not be available;
22299 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22300 remove check for callee_fun->can_throw_non_call_exceptions and
22301 replace it by optimization attribute check; check for flag_exceptions.
22302 * ipa-inline-transform.c (inline_call): Maintain
22303 DECL_FUNCTION_PERSONALITY
22304 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22306 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22308 PR tree-optimization/65551
22309 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22310 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22312 2015-03-26 Richard Biener <rguenther@suse.de>
22314 PR middle-end/65555
22315 * tree-cfg.c (verify_gimple_call): Do not require a call to
22316 have no LHS if it wasn't recognized as control altering yet.
22318 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22320 PR tree-optimization/64715
22321 * passes.def: Add another instance of pass_object_sizes before ccp1.
22322 * tree-object-size.c (pass_object_sizes::execute): In
22323 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22324 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22325 __bos result and the computed constant. Remove redundant
22326 checks, obsoleted by gimple_call_builtin_p test.
22328 * var-tracking.c (variable_tracking_main_1): Don't track
22329 variables for targetm.no_register_allocation targets.
22331 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22333 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22334 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22336 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22339 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22340 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22341 0.0 is correctly setup.
22342 (extenddftf2_internal): Likewise.
22344 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22346 PR tree-optimization/65177
22347 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22349 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22350 edges not adjacent on the path to the original code.
22352 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22355 * doc/install.texi (Building a native compiler): Document new
22356 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22357 configuration assumes that the host supports the linker plugin.
22359 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22362 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22363 chain for generated call.
22365 2015-03-25 Richard Biener <rguenther@suse.de>
22367 * passes.c (pass_manager::execute_early_local_passes): Guard
22368 execution of pass_chkp_instrumentation_passes with
22369 flag_check_pointer_bounds.
22370 (pass_chkp_instrumentation_passes::gate): Likewise.
22372 2015-03-25 Martin Liska <mliska@suse.cz>
22374 PR tree-optimization/65538
22375 * symbol-summary.h (function_summary::~function_summary):
22376 Relese memory for allocated summaries.
22377 (function_summary::release): New function.
22379 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22382 * lto-streamer-out.c (DFS::worklist): New struct.
22383 (DFS::worklist_vec): New data member.
22384 (DFS::next_dfs_num): Remove.
22385 (DFS::DFS): Rewritten using worklist instead of recursion,
22386 using most of code from DFS::DFS_write_tree.
22387 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22388 pass it to DFS_write_tree calls.
22389 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22390 quick initial checks push it into worklist_vec and return.
22392 2015-03-25 Richard Biener <rguenther@suse.de>
22394 PR middle-end/65519
22395 * genmatch.c (expr::gen_transform): Re-write to avoid
22396 using gimple_build.
22398 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22400 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22402 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22404 * config/arm/arm.opt (print_tune_info): New option.
22405 * config/arm/arm.c (arm_print_tune_info): New function.
22406 (arm_file_start): Call arm_print_tune_info.
22407 * config/arm/arm-protos.h (struct tune_params): Add comment.
22408 * doc/invoke.texi (@item -mprint-tune-info): New item.
22409 (-mtune): mention it in ARM Option Summary.
22411 2015-03-25 DJ Delorie <dj@redhat.com>
22413 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22416 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22417 Martin Liska <mliska@suse.cz>
22419 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22420 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22421 (sem_item::add_type): New function.
22422 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22423 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22424 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22425 (sem_function::equals_wpa): Fix typo.
22426 * ipa-icf.h (sem_item::add_type): New function.
22427 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22430 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22432 PR tree-optimization/65533
22433 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22434 with swapped operands, call vect_free_slp_tree on
22435 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22438 2015-03-24 Richard Biener <rguenther@suse.de>
22440 PR middle-end/65517
22441 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22442 for fixup if necessary.
22444 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22446 * doc/extend.texi (Function Attributes): Add @cindex entries
22447 for all attributes and regularize their format. Delete text
22448 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22449 information about "eightbit_data", "tiny_data", and "model"
22450 variable attributes to the Variable Attributes section. Fix
22451 some obvious typos and copy-editing issues.
22452 (Variable Attributes, Type Attributes): Likewise add/fix
22453 @cindex entries for all attributes.
22455 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22458 * tree-chkp.c (chkp_build_returned_bound): Ignore
22459 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22461 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22464 * config/sh/predicates.md (simple_mem_operand,
22465 displacement_mem_operand): Add test for reg.
22466 (short_displacement_mem_operand): Test for displacement_mem_operand
22467 before invoking sh_disp_addr_displacement.
22468 * config/sh/constraints.md (Sdd, Sra): Simplify.
22469 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22470 Remove redundant displacement_mem_operand tests.
22472 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22475 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22476 the same -mmcu=MCU more than once.
22478 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22481 * ipa-devirt.c: Remove duplicate demangle.h include.
22484 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22486 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22487 REG_POINTER on *destptr after adjusting it for prologue size.
22490 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22491 ultimate_alias_target ()->order ints instead of
22492 ultimate_alias_target () pointers.
22494 2015-03-23 Richard Biener <rguenther@suse.de>
22496 PR tree-optimization/65518
22497 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22498 interleaving cases we generate absymal code for.
22500 2015-03-23 Richard Biener <rguenther@suse.de>
22502 PR tree-optimization/65494
22503 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22505 (vect_analyze_slp_instance): But do that here, always and once.
22507 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22509 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22510 adding T or multiplying by T+1 and subracting T.
22512 2015-03-22 Jeff Law <law@redhat.com>
22514 PR rtl-optimization/64317
22515 * Makefile.in (OBJS): Add gcse-common.c
22516 * gcse.c: Include gcse-common.h
22517 (struct modify_pair_s): Move structure definition to gcse-common.h
22518 (compute_transp): Move function to gcse-common.c.
22519 (canon_list_insert): Similarly.
22520 (record_last_mem_set_info): Break out some code and put it into
22521 gcse-common.c. Call into the new common code.
22522 (compute_local_properties): Pass additional arguments to compute_transp.
22523 * postreload-gcse.c: Include gcse-common.h and df.h
22524 (modify_mem_list_set, blocks_with_calls): New variables.
22525 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22526 (get_bb_avail_insn): Pass in the expression index too.
22527 (alloc_mem): Allocate memory for the new bitmaps and lists.
22528 (free_mem): Free memory for the new bitmaps and lists.
22529 (insert_expr_in_table): Record a bitmap index for each entry we
22531 (record_last_mem_set_info): Call into common code in gcse-common.c.
22532 (get_bb_avail_insn): If no available insn was found in the requested
22533 BB. If BB has a single predecessor, see if the expression is
22534 transparent in BB and available in that single predecessor.
22535 (compute_expr_transp): New wrapper for compute_transp.
22536 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22537 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22538 (gcse_after_reload_main): If there are elements in the hash table,
22539 then compute transparency for all the elements in the hash table.
22540 * gcse-common.h: New file.
22541 * gcse-common.c: New file.
22543 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22545 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22547 (System Headers): Likewise.
22549 (Traditional macros): Likewise.
22550 (Invocation): Likewise.
22551 (Option Index): Likewise.
22552 * doc/cppopts.texi (-M): Likewise.
22553 (-finput-charset): Likewise.
22554 (--help): Likewise.
22555 * doc.invoke.texi (AVR Options): Likewise.
22556 (V850 Options): Likewise.
22558 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22561 * ipa-devirt.c: Include demangle.h
22562 (odr_type_d): Add field rtti_broken.
22563 (odr_subtypes_equivalent_p): Do not require name to match.
22564 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22565 bypass the tests; be ready for function referneces in vtables that are
22566 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22567 (warn_odr): Give up for nameless types.
22568 (warn_types_mismatch): Report mismatch in mangled names;
22569 report mismatch in anonymous namespaces; look into component types to
22570 give useful error; report when mismatch is dragged in from other ODR
22572 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22573 duplicated diagnostics.
22574 (add_type_duplicate): Reorder checks so more informative ones come
22575 first; fix typo; do not output "the extra base is defined here" when
22577 (BINFO_N_BASE_BINFOS): Relax sanity check.
22579 2015-03-22 Martin Liska <mliska@suse.cz>
22580 Jakub Jelinek <jakub@redhat.com>
22582 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22583 masks that can potentially include a builtin.
22584 (ix86_add_new_builtins): Introduce fast filter for isa values
22585 that cannot trigger builtin inclusion.
22587 2015-03-22 Martin Liska <mliska@suse.cz>
22589 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22590 (sem_item::update_hash_by_local_refs): Likewise.
22591 (sem_variable::get_hash): Empty line is fixed.
22592 (sem_item_optimizer::execute): Include adding of hash references.
22593 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22594 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22595 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22596 (sem_item::update_hash_by_local_refs): Likewise.
22598 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22601 * ipa-comdats.c (enqueue_references): Walk through thunks.
22602 (ipa_comdats): Likewise.
22603 (set_comdat_group_1): New function.
22605 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22608 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22611 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22612 Gerald Pfeifer <gerald@pfeifer.com>
22614 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22616 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22617 Sandra Loosemore <sandra@codesourcery.com>
22619 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22620 function parameter declaration.
22621 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22622 Update arguments to nios2_adjust_call_address().
22623 (sibcall_internal): Rename from *sibcall.
22624 (sibcall_value_internal): Rename from *sibcall_value.
22625 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22626 (nios2_large_got_address): Add target temp reg parameter.
22627 (nios2_got_address): Adjust call to nios2_large_got_address, add
22628 force_reg around it.
22629 (nios2_load_pic_address): Add target temp reg parameter, replace call
22630 to nios2_got_address with corresponding code.
22631 (nios2_legitimize_constant_address): Update call to
22632 nios2_load_pic_address.
22633 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22634 to use temp reg for PIC loading purposes.
22635 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22636 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22637 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22639 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22641 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22642 usage of "the @option{...}".
22643 (-Wopenmp-simd): Likewise.
22644 (-fsanitize-recover): Likewise.
22645 (-fsanitize-undefined-trap-on-error): Likewise.
22647 (tracer-dynamic-coverage-feedback): Likewise.
22648 (reorder-block-duplicate-feedback): Likewise.
22649 (loop-unroll-jam-size): Likewise.
22652 (-mabs=legacy): Likewise.
22653 (-mupper-regs-df): Likewise.
22654 (-mupper-regs-sf): Likewise.
22655 (-mpointers-to-nested-functions): Likewise.
22657 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22659 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22661 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22663 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22664 additional index entries and cross-references.
22665 (-fchkp-check-incomplete-type): Likewise.
22666 (-fchkp-first-field-has-own-bounds): Likewise.
22667 (-fchkp-narrow-to-innermost-array): Likewise.
22668 (-fchkp-use-fast-string-functions): Likewise.
22669 (-fchkp-use-nochk-string-functions): Likewise.
22670 (-fchkp-use-static-const-bounds): Likewise.
22671 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22672 (-fchkp-instrument-marked-only): Likewise.
22673 (-fchkp-use-wrappers): Likewise.
22674 (-static-libmpx): Likewise.
22675 (-static-libmpxwrappers): Likewise.
22676 * doc/extend.texi (bnd_legacy): Likewise.
22677 (bnd_instrument): Likewise.
22678 (bnd_variable_size): Likewise.
22679 (Pointer Bounds Checker builtins): Likewise.
22681 2015-03-21 Tom de Vries <tom@codesourcery.com>
22683 PR tree-optimization/65458
22684 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
22685 * cgraph.h (cgraph_node): Add parallelized_function field.
22686 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
22687 (input_overwrite_node): Read parallelized_function field.
22688 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
22689 parallelized_function on cgraph_node for child_fn.
22690 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
22691 Remove include of gt-tree-parloops.h.
22692 (parallelized_functions): Remove static variable.
22693 (parallelized_function_p): Rewrite using parallelized_function field of
22695 (create_loop_fn): Remove adding to parallelized_functions.
22696 * Makefile.in (GTFILES): Remove tree-parloops.c
22698 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
22700 PR rtl-optimization/64366
22701 * lra.c (lra_update_insn_regno_info): Consider regs in
22702 CALL_INSN_FUNCTION_USAGE memory.
22704 2015-03-20 Richard Biener <rguenther@suse.de>
22706 PR middle-end/64715
22707 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
22708 for type comparison and gcc_checking_assert.
22709 (chrec_fold_plus_poly_poly): Likewise.
22710 (chrec_fold_multiply_poly_poly): Likewise.
22711 (chrec_convert_1): Likewise.
22712 * gimplify.c (gimplify_expr): Remove premature folding of
22713 &X + CST to &MEM[&X, CST].
22715 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22717 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
22719 (ipa_inline): Recompute inline_failed codes.
22720 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22721 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22724 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
22726 PR rtl-optimization/60851
22727 * recog.c (constrain_operands): Accept a pseudo register before reload
22728 for LRA enabled targets.
22730 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
22733 * config/rs6000/predicates.md (easy_fp_constant): Remove special
22734 -ffast-math handling that kept non-0 constants live in the RTL
22735 until reload. Remove logic testing the number of instructions it
22736 took to create a constant in a GPR that was never used, due to a
22737 test for soft-float earlier.
22738 (memory_fp_constant): Delete, no longer used.
22740 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22741 alternatives for loading non-0 constants into GPRs for hard
22742 floating point that is no longer needed due to changes in
22743 easy_fp_constant. Add support for loading 0.0 into GPRs.
22744 (mov<mode>_hardfloat32): Likewise.
22745 (mov<mode>_hardfloat64): Likewise.
22746 (mov<mode>_64bit_dm): Likewise.
22747 (movtd_64bit_nodm): Likewise.
22748 (pre-reload move FP constant define_split): Delete define_split,
22749 since it is no longer used.
22750 (extenddftf2_internal): Remove GHF constraints that are not valid
22753 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
22755 PR rtl-optimization/63491
22756 * lra-constraints.c (check_and_process_move): Use src instead of
22757 sreg. Remove some dead code.
22759 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
22762 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
22763 (sem_variable::merge): Likewise.
22765 2015-03-19 Martin Liska <mliska@suse.cz>
22768 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
22769 all fields of cgraph_thunk_info.
22771 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
22773 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22774 clone instrumented thunks.
22776 2015-03-19 Richard Biener <rguenther@suse.de>
22779 2015-03-10 Richard Biener <rguenther@suse.de>
22781 PR middle-end/63155
22782 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22783 * tree-ssa-coalesce.c: Include timevar.h.
22784 (attempt_coalesce): Handle graph being NULL.
22785 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22786 Split out abnormal coalescing to ...
22787 (perform_abnormal_coalescing): ... this function.
22788 (coalesce_ssa_name): Perform abnormal coalescing without computing
22790 (verify_ssa_coalescing_worker): New function.
22791 (verify_ssa_coalescing): Likewise.
22793 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
22794 Jakub Jelinek <jakub@redhat.com>
22797 * tsan.c (instrument_gimple): Clear tail call flag on
22800 2015-03-19 Jakub Jelinek <jakub@redhat.com>
22803 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22804 call in the return bb.
22805 (find_split_points): Add RETURN_BB argument, don't call
22807 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
22808 if true append TSAN_FUNC_EXIT internal call after the call to
22809 the split off function.
22810 (execute_split_functions): Call find_return_bb here.
22811 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22812 Adjust find_split_points and split_function calls.
22814 2015-03-18 DJ Delorie <dj@redhat.com>
22816 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22817 (iorqi3_virt): Likewise.
22819 2015-03-18 Tom de Vries <tom@codesourcery.com>
22821 * tree-parloops.c (parallelize_loops): Make static.
22822 * tree-parloops.h (parallelize_loops): Remove extern declaration.
22824 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
22826 PR middle-end/64491
22828 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
22830 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22831 condition would be removed due to undefined behaviour.
22833 2015-03-18 Martin Liska <mliska@suse.cz>
22836 * cgraph.c (cgraph_node::get_create): Remove unnecessary
22837 xstrdup_for_dump wrapper.
22838 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22840 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22841 with xstrdup_for_dump.
22842 (sem_variable::equals): Likewise.
22843 (sem_item_optimizer::read_section): Use symtab_node::name instead of
22845 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22846 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22847 symtab_node::asm_name with xstrdup_for_dump.
22848 (congruence_class::dump): Use symtab_node::name instead of
22850 * ipa-icf.h (symtab_node::name): Remove.
22851 (symtab_node::asm_name): Likewise.
22853 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22855 PR tree-optimization/65450
22856 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22858 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22859 it instead of duplicate_ssa_name_ptr_info.
22862 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22864 2015-03-18 Richard Biener <rguenther@suse.de>
22866 * tree-data-ref.h (struct access_matrix): Remove.
22867 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22868 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22869 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22870 (am_vector_index_for_loop): Likewise.
22871 (struct data_reference): Remove access_matrix member.
22872 (DR_ACCESS_MATRIX): Remove.
22873 (lambda_vector_new): Add comment.
22874 (lambda_matrix_new): Use XOBNEWVEC.
22876 2015-03-18 Richard Biener <rguenther@suse.de>
22878 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22879 (pass_ch::execute): Cleanup the CFG only if we did sth.
22880 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22882 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22884 * expmed.c (synth_mult): Use std::swap instead of manually
22885 swapping algorithms.
22887 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22890 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22892 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
22895 * config/avr/avr.opt (-nodevicelib): New option.
22896 * doc/invoke.texi (AVR Options): Document it.
22897 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22898 libgcc.a, libc.a, libm.a.
22899 * config/avr/specs.h: Same.
22900 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22901 which don't (directly) depend on the device. Print more help.
22902 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22903 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22904 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22906 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22907 for specs file name.
22908 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22909 * config/avr/avr-mcus.def: Adjust initializers and comments.
22911 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
22913 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22914 DECL_ONE_ONLY to check if decl is one only.
22915 * ipa-split.c (consider_split): Limit splitt of one only functions.
22917 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22919 PR tree-optimization/65427
22920 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22922 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22924 2015-03-16 Marek Polacek <polacek@redhat.com>
22926 * cgraph.h (add_new_static_var): Remove declaration.
22927 * varpool.c (add_new_static_var): Remove function.
22929 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22931 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22932 instead of vec<tree> * with vec_alloc and release for args.
22935 PR middle-end/65431
22936 * omp-low.c (delete_omp_context): Only splay_tree_delete
22937 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22938 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
22940 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
22943 * cfgexpand.c (align_base): New function.
22944 (alloc_stack_frame_space): Call it.
22945 (expand_stack_vars): Align prev_frame to be sure
22946 data->asan_vec elements aligned properly.
22948 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
22950 PR middle-end/65409
22951 * expr.c (store_field): Do not do a direct block copy if the source is
22952 a PARALLEL with BLKmode.
22954 2015-03-16 Tom de Vries <tom@codesourcery.com>
22956 PR middle-end/65414
22958 2015-03-12 Tom de Vries <tom@codesourcery.com>
22960 PR rtl-optimization/64895
22961 * lra-lives.c (check_pseudos_live_through_calls): Use
22962 actual_call_used_reg_set instead of call_used_reg_set, if available.
22964 2015-03-16 Alan Modra <amodra@gmail.com>
22967 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22968 Modify Z->r bswapdi splitter to use dest in place of scratch.
22969 In r->Z and Z->r bswapdi splitter rename word_high, word_low
22970 to word1, word2 and rearrange logic to suit.
22971 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22972 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
22973 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22974 Add one '?' on r->r. Modify Z->r splitter to avoid need for
22977 2015-03-14 Jakub Jelinek <jakub@redhat.com>
22979 PR tree-optimization/65369
22980 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22981 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22982 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22984 PR tree-optimization/65418
22985 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22986 are casts in the first PLUS_EXPR operand, ensure tbias and
22987 *totallowp are in the inner type.
22989 PR rtl-optimization/65401
22990 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22991 argument. If true, adjust_address_nv of x with big-endian
22992 correction for the mode widening to GET_MODE (y).
22993 (make_field_assignment): Don't do MEM mode widening here.
22994 Use MEM_P instead of GET_CODE == MEM.
22996 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
22998 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22999 the external decls.
23001 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23004 * config/arm/arm.c (arm_gen_constant, AND case): Use
23005 ARM_SIGN_EXTEND when constructing AND mask.
23007 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23009 * graph.c (print_graph_cfg): Make function names visible and append
23010 parenthesis to it. Also make groups of basic blocks belonging to the
23011 same function visible.
23013 2015-03-12 Richard Biener <rguenther@suse.de>
23015 PR middle-end/44563
23016 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23017 to avoid quadratic behavior with inline expansion splitting blocks.
23018 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23019 with the successor if the predecessor will be merged with it.
23020 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23021 entry block with its successor.
23023 2015-03-13 Richard Biener <rguenther@suse.de>
23025 PR middle-end/44563
23026 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23027 (cleanup_tree_cfg_1): Do not call it.
23028 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23029 (fixup_noreturn_call): Mark the stmt as control altering.
23030 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23032 (pass_data_fixup_cfg): Produce a dump file.
23033 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23034 (need_noreturn_fixup): New global.
23035 (pass_dominator::execute): Fixup queued noreturn calls.
23036 (optimize_stmt): Queue calls that became noreturn for fixup.
23037 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23038 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23039 (el_to_fixup): New global.
23040 (eliminate_dom_walker::before_dom_childre): Queue calls that
23041 became noreturn for fixup.
23042 (eliminate): Fixup queued noreturn calls.
23043 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23044 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23045 (substitute_and_fold_dom_walker::before_dom_children): Queue
23046 alls that became noreturn for fixup.
23047 (substitute_and_fold): Fixup queued noreturn calls.
23049 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23051 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23052 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23053 are building; for methods check ODR type of class they belong to if
23054 they may lead to a polymorphic call.
23055 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23056 when function may lead to a polymorphic call.
23057 (sem_function::compare_type_list): Remove.
23058 (sem_variable::equals): Update use of compatible_types_p.
23059 (sem_variable::parse_tree_refs): Remove.
23060 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23062 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23064 (func_checker::compatible_polymorphic_types_p): Break out from ...
23065 (unc_checker::compatible_types_p): ... here.
23066 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23068 (unc_checker::compatible_types_p): Update.
23069 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23072 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23074 PR rtl-optimization/65235
23075 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23076 When first element of vec_concat is const_int, calculate its size
23077 using second element.
23079 2015-03-12 Richard Biener <rguenther@suse.de>
23081 PR middle-end/65270
23082 * fold-const.c (operand_equal_p): Fix ordering of resetting
23083 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23085 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23087 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23089 (s390_asm_output_function_label): Likewise.
23090 * config/s390/s390.c (s390_asm_output_function_label):
23091 Fix function label alignment with -mhtopatch.
23092 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23093 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23094 ("nop_2_byte"): New define_insn.
23095 ("nop_4_byte"): Likewise.
23096 ("nop_6_byte"): Likewise.
23097 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23098 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23100 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23103 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23106 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23109 * toplev.c (process_options): Restrict Pointer Bounds Checker
23110 usage with Address Sanitizer.
23112 2015-03-12 Richard Biener <rguenther@suse.de>
23114 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23116 * omp-low.c (expand_omp_taskreg): Split block before removing
23118 (expand_omp_target): Likewise.
23119 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23120 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23121 stmt to split_block.
23123 2015-03-12 Tom de Vries <tom@codesourcery.com>
23125 PR rtl-optimization/64895
23126 * lra-lives.c (check_pseudos_live_through_calls): Use
23127 actual_call_used_reg_set instead of call_used_reg_set, if available.
23129 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23131 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23132 (cgraph_node::remove): Likewise.
23133 (cgraph_node::get_untransformed_body): Likewise.
23134 * varpool.c (varpool_node::remove): Likewise.
23135 (varpool_node::get_constructor): Add sanity check.
23137 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23139 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23141 (-fabi-compat-version): Likewise.
23142 (-ffriend-injection): Likewise.
23143 (-Wdeclaration-after-statement): Likewise.
23144 (-fomit-frame-pointer): Likewise.
23145 (-ftree-coalesce-inlined-vars): Likewise.
23146 (-fvisibility=): Likewise.
23147 * doc/extend.texi (Typeof): Likewise.
23148 (Zero Length): Likewise.
23149 (Escaped Newlines): Likewise.
23150 (Compound Literals): Likewise.
23151 (Function Attributes): Likewise.
23152 (Label Attributes): Likewise.
23153 (Type Attributes): Likewise.
23154 (Function Names): Likewise.
23155 (Other Builtins): Likewise.
23156 (Function Specific Option Pragmas): Likewise.
23157 (C++ Interface): Likewise.
23159 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23161 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23163 2015-03-11 Marek Polacek <polacek@redhat.com>
23165 PR tree-optimization/65388
23166 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23168 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23171 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23172 * configure: Regenerate.
23173 * config.in: Regenerate.
23174 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23175 [-mn-flash]: Document it.
23176 [__AVR_ARCH__]: Document avrtiny.
23178 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23179 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23180 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23182 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23184 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23186 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23189 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23190 allow reloads of PLUS in floating point/VSX registers.
23192 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23194 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23195 crypto_sha256_fast.
23196 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23198 2015-03-11 Richard Biener <rguenther@suse.de>
23200 PR tree-optimization/65310
23201 * tree-sra.c (build_ref_for_offset): Also preserve larger
23204 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23206 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23208 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23211 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23213 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23215 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23217 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23218 (sem_function::equals_wpa): ... here.
23220 2015-03-10 Marek Polacek <polacek@redhat.com>
23221 Jakub Jelinek <jakub@redhat.com>
23224 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23225 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23228 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23231 * config/rs6000/t-linux: For powerpc64* target set
23232 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23234 2015-03-10 Richard Biener <rguenther@suse.de>
23236 PR middle-end/44563
23237 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23238 for redirect_all_calls.
23240 2015-03-10 Marek Polacek <polacek@redhat.com>
23242 * gdbinit.in (pcfun): Define and document.
23244 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23246 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23247 of libgomp-plugin.h.
23248 (find_target_compiler): Support a case when the path to gcc is
23249 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23250 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23251 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23253 (main): Use GCC_INSTALL_NAME as target_driver_name.
23254 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23256 (mkoffload.o): Remove obsolete include path and defines.
23257 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23259 2015-03-10 Richard Biener <rguenther@suse.de>
23261 PR middle-end/63155
23262 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23263 * tree-ssa-coalesce.c: Include timevar.h.
23264 (attempt_coalesce): Handle graph being NULL.
23265 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23266 Split out abnormal coalescing to ...
23267 (perform_abnormal_coalescing): ... this function.
23268 (coalesce_ssa_name): Perform abnormal coalescing without computing
23270 (verify_ssa_coalescing_worker): New function.
23271 (verify_ssa_coalescing): Likewise.
23273 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23276 * config.gcc (extra_options) [avr]: Remove.
23277 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23278 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23279 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23281 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23282 (-mmcu=): Add Var and MissingArgError properties.
23284 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23285 * config/avr/t-multilib: Regenerate.
23286 * config/avr/specs.h: New file.
23287 * config/avr/driver-avr.c: New file.
23288 * config/avr/genopt.sh: Remove file.
23289 * config/avr/avr-tables.opt: Remove file.
23290 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23291 * config/avr/avr-c.c: Same.
23292 * avr-arch.h: Same.
23293 (avr_current_device): Remove proto.
23294 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23295 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23296 (EXTRA_SPEC_FUNCTIONS): Define.
23297 (avr_devicespecs_file): New specs function proto.
23298 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23299 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23300 (avr_current_device): Remove definition and usage.
23301 (avr_set_core_architecture): New static function.
23302 (avr_option_override): Use it.
23303 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23304 (mcu_name): New static array.
23305 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23306 (avr_inform_devices, avr_inform_core_architectures): New functions.
23307 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23308 (avrlibc.h) [WITH_AVRLIBC]: Include.
23309 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23310 (print_mcu): Rewrite from scratch.
23311 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23312 Forward to avr-specific specs defined in device-specs file.
23313 * config/avr/t-avr (driver-avr.o): New rule.
23314 (avr-devices.o): Depend on avr-arch.h.
23315 (avr-mcus): No more depend on avr-tables.opt.
23316 (avr-tables.opt): Remove rule.
23317 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23319 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23321 * c-family/c.opt (fchkp-use-wrappers): New.
23322 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23323 (chkp_wrap_function): New.
23324 (chkp_build_instrumented_fndecl): Support wrapped
23326 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23327 (-fchkp-check-incomplete-type): New.
23328 (-fchkp-first-field-has-own-bounds): New.
23329 (-fchkp-narrow-bounds): New.
23330 (-fchkp-narrow-to-innermost-array): New.
23331 (-fchkp-optimize): New.
23332 (-fchkp-use-fast-string-functions): New.
23333 (-fchkp-use-nochk-string-functions): New.
23334 (-fchkp-use-static-bounds): New.
23335 (-fchkp-use-static-const-bounds): New.
23336 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23337 (-fchkp-check-read): New.
23338 (-fchkp-check-write): New.
23339 (-fchkp-store-bounds): New.
23340 (-fchkp-instrument-calls): New.
23341 (-fchkp-instrument-marked-only): New.
23342 (-fchkp-use-wrappers): New.
23343 (-static-libmpx): New.
23344 (-static-libmpxwrappers): New.
23346 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23348 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23349 (CHKP_SPEC): Add wrappers library.
23350 * c-family/c.opt (static-libmpxwrappers): New.
23352 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23354 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23355 (LIBMPX_SPEC): New.
23357 * gcc.c (CHKP_SPEC): New.
23358 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23359 * c-family/c.opt (static-libmpx): New.
23361 2015-03-10 Richard Biener <rguenther@suse.de>
23363 PR middle-end/44563
23364 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23366 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23367 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23368 (cgraph_add_edge_to_call_site_hash): Likewise.
23369 (cgraph_node::get_edge): Likewise.
23370 (cgraph_edge::set_call_stmt): Likewise.
23371 (cgraph_edge::remove_caller): Likewise.
23373 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23375 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23376 (callee_saved_gpr_regs_size): ... this.
23377 (callee_saved_regs_first_regno): Rename to ...
23378 (callee_saved_first_gpr_regno): ... this.
23379 (callee_saved_regs_last_regno) Rename to ...
23380 (callee_saved_last_gpr_regno): ... this.
23381 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23383 (nds32_initial_elimination_offset): Likewise.
23384 (nds32_expand_prologue): Likewise.
23385 (nds32_expand_epilogue): Likewise.
23386 (nds32_expand_prologue_v3push): Likewise.
23387 (nds32_expand_epilogue_v3pop): Likewise.
23388 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23389 Adjust renamed variables.
23390 (nds32_output_stack_pop): Likewise.
23392 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23394 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23397 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23399 PR rtl-optimization/65321
23400 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23402 * var-tracking.c (use_narrower_mode): Likewise.
23404 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23406 PR tree-optimization/65355
23407 * varasm.c (notice_global_symbol): Do not produce RTL.
23408 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23410 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23411 check for section anchors.
23413 2015-03-10 Alan Modra <amodra@gmail.com>
23416 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23417 to be single-arch by default. Set cpu_is_64bit for powerpc64
23418 given --with-cpu=native.
23419 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23420 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23422 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23423 rs6000_isa_flags rather than TARGET_64BIT.
23425 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23426 Kaz Kojima <kkojima@gcc.gnu.org>
23428 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23430 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23433 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23434 on a TREE_BINFO, instead use BINFO_TYPE.
23436 2015-03-09 Richard Biener <rguenther@suse.de>
23438 PR middle-end/65270
23439 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23440 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23441 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23442 of that. When comparing dereferences compare alignment.
23443 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23445 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23447 * ipa-inline-analysis.c (check_callers): Check
23448 node->can_remove_if_no_direct_calls_and_refs_p.
23449 (growth_likely_positive): Reorganize to call
23450 can_remove_if_no_direct_calls_p later.
23451 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23452 will_be_removed_from_program_if_no_direct_calls_p): Add
23453 will_inline parameter.
23454 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23455 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23456 Handle inliner case correctly.
23458 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23460 PR tree-optimization/63743
23461 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23462 had its definition forwarded by TER.
23464 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23467 * ipa-utils.h (types_odr_comparable): Add strict argument.
23468 * ipa-devirt.c: Fix whitespace;
23469 (odr_hasher): Remove.
23470 (odr_name_hasher, odr_vtable_hasher): New hashers.
23471 (can_be_name_hashed_p): New predicate.
23472 (hash_type_name): remove.
23473 (hash_odr_name): New.
23474 (odr_name_hasher::hash): new.
23475 (can_be_vtable_hashed_p): New.
23476 (hash_odr_vtable): New.
23477 (odr_vtable_hasher::hash): New.
23478 (types_same_for_odr): Add strict parameter.
23479 (types_odr_comparable): Likewise.
23480 (odr_name_hasher::equal): New.
23481 (odr_vtable_hasher::equal): New.
23482 (odr_name_hasher::remove): New.
23483 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23484 (odr_vtable_hash_type): New.
23485 (odr_vtable_hash): New.
23486 (odr_subtypes_equivalent_p): Do strict comparsion.
23487 (add_type_duplicate): Merge type names; cleanup; avoid type
23489 (register_odr_type): Initialize vtable hash.
23490 (build_type_inheritance_graph): Likewise
23491 (get_odr_type): Reorg to use two hashes.
23492 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23494 (ipa_devirt): Dump type_inheritance_graph.
23495 (types_same_for_odr): Add strict mode.
23497 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23500 * cgraph.h (symtab_node): Add definition_alignment,
23501 can_increase_alignment_p and increase_alignment.
23502 * symtab.c (symtab_node::can_increase_alignment_p,
23503 increase_alignment_1, symtab_node::increase_alignment,
23504 symtab_node::definition_alignment): New.
23505 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23506 can_increase_alignment_p.
23507 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23508 * tree-vect-stmts.c (ensure_base_align): Likewise.
23509 * varasm.c (function_section_1): Use definition_alignment.
23510 (assemble_start_function): Likewise.
23511 (emit_local): likewise.
23512 (build_constant_desc): Likewsie.
23513 (output_constant_def_contents): Likewise.
23514 (place_block_symbol): Likewise.
23515 (output_object_block): Likewise.
23517 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23520 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23521 when outputting debug.
23523 2015-03-07 Marek Polacek <polacek@redhat.com>
23524 Martin Uecker <uecker@eecs.berkeley.edu>
23527 * doc/invoke.texi: Update description of -fsanitize=bounds.
23529 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23531 * tree-ssa-phiopt.c (neg_replacement): Remove.
23532 (tree_ssa_phiopt_worker): Remove negate optimization.
23534 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23537 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23539 2015-03-06 Richard Biener <rguenther@suse.de>
23541 PR middle-end/64928
23542 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23543 and liveout_obstack members.
23544 (calculate_live_on_exit): Remove.
23545 (calculate_live_ranges): Change declaration.
23546 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23547 (new_tree_live_info): Adjust.
23548 (calculate_live_ranges): Delete livein when not wanted.
23549 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23550 Deal with partly deleted live info.
23551 (loe_visit_block): Remove temporary bitmap by using
23552 bitmap_ior_and_compl_into.
23553 (live_worklist): Adjust accordingly.
23554 (calculate_live_on_exit): Make static.
23555 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23556 we do not need livein.
23558 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23560 * real.c (real_from_string): Fix typo in assertion.
23562 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23564 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23567 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23569 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23571 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23574 * lra-assigns.c (find_hard_regno_for): Rename to
23575 find_hard_regno_for_1. Add a new parameter.
23576 (find_hard_regno_for): New function using find_hard_regno_for_1.
23578 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23580 PR rtl-optimization/65067
23581 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23582 strict volatile bitfield handling.
23584 2015-03-05 Martin Liska <mliska@suse.cz>
23587 * ipa-icf.c (sem_variable::equals): Compare variables types.
23589 2015-03-05 Richard Henderson <rth@redhat.com>
23592 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23593 correctly check weak symbol binding.
23595 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23597 PR middle-end/65315
23598 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23601 2015-03-05 Martin Liska <mliska@suse.cz>
23603 * ipa-inline.c (inline_small_functions): Set default value to
23604 prevent warning during bootstrap.
23605 * tree.h: Add pragma guard that ignores false positives during
23608 2015-03-05 Richard Biener <rguenther@suse.de>
23610 PR tree-optimization/65310
23611 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23612 Properly preserve alignment of the base of the access.
23614 2015-03-05 Richard Biener <rguenther@suse.de>
23617 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23618 Compare dependence info.
23620 2015-03-05 Richard Biener <rguenther@suse.de>
23622 PR middle-end/65233
23623 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23625 (walk_ssa_copies): Revert last chage. Instead do not walk
23626 SSA names registered for SSA update.
23628 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23631 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23632 vtable references for their containing type.
23633 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23634 and type attributes.
23636 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23638 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23639 before negating it.
23640 * stor-layout.c (finalize_record_size): Revert latest change.
23642 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23644 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23646 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23648 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23649 for correct comdat handling.
23650 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23652 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23653 (used_from_object_file_p_worker): Remove.
23654 (cgraph_node::only_called_directly_or_alised): Add
23655 used_from_object_file_p.
23656 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23657 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23658 can_remove_if_no_direct_calls_and_refs_p.
23660 2015-03-04 Nick Clifton <nickc@redhat.com>
23662 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23663 General register class.
23664 * config/rl78/rl78-real.md: Replace general register constraints
23665 with real+virtual register constraints.
23667 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23669 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23670 from checking for -mhtm option.
23672 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23674 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23675 (struct ipa_sra_check_caller_data): Add has_thunk field.
23676 (ipa_sra_check_caller): Check for thunk.
23677 (ipa_sra_preliminary_function_checks): Give up on function with
23679 (ipa_early_sra): Use call_for_symbol_and_aliases.
23681 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
23684 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
23685 called for __stack_chk_guard symbol.
23687 2015-03-03 DJ Delorie <dj@redhat.com>
23689 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
23691 (*addhi3_real): Likewise.
23692 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
23693 pattern to match incrementing memory.
23694 * config/rl78/predicates.md (rl78_1_2_operand): New.
23695 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
23696 it's the same and only mem.
23697 (rl78_alloc_physical_registers_op2): If there's effectively only
23698 one MEM, transcode it into HL.
23699 (rl78_far_p): Reject addresses that aren't legitimate.
23701 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23703 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
23706 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
23708 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23710 Implement call0 ABI for xtensa
23711 * config/xtensa/constraints.md ("a" constraint): Include stack
23712 pointer in case of call0 ABI.
23713 ("q" constraint): Make empty in case of call0 ABI.
23714 ("D" constraint): Include stack pointer in case of call0 ABI.
23715 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
23716 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
23718 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
23720 (xtensa_regno_to_class): Make it a local variable in the
23721 function xtensa_regno_to_class.
23722 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
23723 macro, function prototype and implementation.
23724 (reg_nonleaf_alloc_order): Make it a local variable in the
23725 function order_regs_for_local_alloc.
23726 (xtensa_conditional_register_usage): New function.
23727 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23728 (xtensa_valid_move): Allow direct moves to stack pointer
23729 register in call0 ABI.
23730 (xtensa_setup_frame_addresses): Only spill register windows in
23732 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23733 call0 ABI respectively.
23734 (xtensa_function_arg_1): Only mark a7 register for copying in
23736 (xtensa_call_save_reg): New function.
23737 (compute_frame_size): Add space for callee saved register
23738 storage to the frame size in call0 ABI.
23739 (xtensa_expand_prologue): Generate code to set up stack frame
23740 and save callee-saved registers in call0 ABI.
23741 (xtensa_expand_epilogue): New function.
23742 (xtensa_set_return_address): New function.
23743 (xtensa_return_addr): Calculate return address in call0 ABI.
23744 (xtensa_builtin_saveregs): Only mark a7 register for copying and
23745 emit copying code in windowed ABI.
23746 (order_regs_for_local_alloc): Add preferred register allocation
23747 order for non-leaf function in call0 ABI.
23748 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23749 (xtensa_asm_trampoline_template): Add trampoline generation for
23751 (xtensa_trampoline_init): Add trampoline initialization for
23753 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
23755 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
23756 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
23757 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
23758 ABI call-used registers.
23759 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
23760 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
23762 (REG_CLASS_CONTENTS): Include all registers into the preferred
23763 reload registers set, adjust the set in the
23764 xtensa_conditional_register_usage.
23765 (xtensa_regno_to_class): Drop variable declaration.
23766 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
23768 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
23770 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
23771 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
23772 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
23773 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23774 location in call0 ABI.
23775 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23776 stack adjustment size when handling exception.
23777 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23778 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23780 ("return" pattern): Generate ret.n/ret in call0 ABI.
23781 ("epilogue" pattern): Expand epilogue.
23782 ("nonlocal_goto" pattern): Use default in call0 ABI.
23783 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23784 emit eh_set_a0_* depending on ABI.
23785 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23786 ("eh_set_a0_call0", "blockage"): New patterns.
23788 2015-03-03 Martin Liska <mliska@suse.cz>
23791 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23793 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23796 * config/rs6000/rs6000-tables.opt: Regenerate table.
23798 2015-03-03 Renlin Li <renlin.li@arm.com>
23800 * doc/md.texi (@item ^): Change ? into ^.
23802 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
23804 * doc/tm.texi: Regenerated.
23806 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23808 * builtins.c (expand_builtin_return_addr): Add
23809 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23810 surrounding #ifdef.
23811 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23813 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23815 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23817 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23820 2015-03-03 Martin Jambor <mjambor@suse.cz>
23821 Eric Botcazou <ebotcazou@adacore.com>
23823 * tree-sra.c (ipa_sra_check_caller_data): New type.
23824 (has_caller_p): Removed.
23825 (ipa_sra_check_caller): New function.
23826 (ipa_sra_preliminary_function_checks): Use it.
23828 2015-03-03 Martin Liska <mliska@suse.cz>
23830 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23831 instead of if branch.
23833 2015-03-03 Martin Liska <mliska@suse.cz>
23836 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23838 2015-03-23 Jeff Law <law@redhat.com>
23840 PR tree-optimization/65241
23841 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23842 hash table if INSERT is true.
23844 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23847 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23849 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23852 * config/avr/avr.c (context.h, tree-pass.h): Include them.
23853 (avr_pass_data_recompute_notes): New static variable.
23854 (avr_pass_recompute_notes): New class.
23855 (avr_register_passes): New static function.
23856 (avr_option_override): Call it.
23858 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23860 Fix various problems with specs file generation.
23863 * config.gcc (extra_gcc_objs) [avr]: Remove.
23864 * config/avr/driver-avr.c: Remove file.
23865 * config/avr/t-avr (driver-avr.o): Remove rule.
23866 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23867 INCLUDES to build. Depend on TM_H.
23868 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
23869 build warnings. Fix non-matching types and non-existing %-codes.
23871 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23872 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23873 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23874 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23875 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23876 (LIBGCC_SPEC): Remove definitions.
23878 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23880 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23881 to create a register in testing mode.
23883 2015-03-03 Martin Liska <mliska@suse.cz>
23884 Jan Hubicka <hubicka@ucw.cz>
23887 * cgraph.c (cgraph_node::has_thunk_p): New function.
23888 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23889 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23890 (sem_function::merge): Assert is changed.
23892 2015-03-03 Martin Liska <mliska@suse.cz>
23893 Martin Jambor <mjambor@suse.cz>
23896 * ipa-icf.c (sem_item_optimizer::execute): Change function
23897 return value to boolean.
23898 (sem_item_optimizer::merge_classes): Likewise.
23899 (ipa_icf_driver): Return TODO_remove_functions in case there's
23900 a merge operation processed.
23901 * ipa-icf.h: Change function return value to boolean.
23903 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23906 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23907 processor type for 64-bit little endian PowerPC.
23909 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23910 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
23911 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
23912 printing built-in mask so it does not pass NULL pointers.
23914 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23917 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
23920 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23921 !ISA_HAS_FP_CONDMOVE.
23923 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
23925 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23928 2015-03-02 Ulrich Drepper <drepper@gmail.com>
23930 * doc/invoke.texi (Options for Code Generation Conventions):
23931 Fix URL of DSO paper.
23933 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23936 * ipa-inline.c (check_callers): Looks for recursion.
23937 (inline_to_all_callers): Give up on uninlinable or recursive edges.
23938 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23939 summary of inline clones.
23940 (do_estimate_growth_1): Fix recursion check.
23942 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23945 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23948 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23949 Aldy Hernandez <aldyh@redhat.com>
23952 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23953 when checking TYPE_BINFO.
23955 2015-03-02 Richard Biener <rguenther@suse.de>
23958 * ipa-icf-gimple.c: Include builtins.h.
23959 (func_checker::compare_memory_operand): Compare base alignment.
23961 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23964 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23965 are never passed by reference.
23967 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23970 * tree-chkp.c (chkp_check_lower): Don't check against
23971 zero bounds for already instrumented functions.
23972 (chkp_check_upper): Likewise.
23973 (chkp_fini): Clean pass local data to avoid wrong reusage.
23975 2015-02-28 Martin Liska <mliska@suse.cz>
23976 Jan Hubicka <hubicka@ucw.cz>
23978 * ipa-icf.c (sem_variable::equals): Improve debug output;
23979 get variable constructor.
23980 (sem_variable::parse): Do not filter out too early; give up on
23981 volatile and register vars.
23982 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23984 * ipa-icf.h (sem_variable::init): Do not set ctor.
23985 (sem_variable::ctor): Remove.
23987 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
23989 PR middle-end/65233
23990 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23992 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23994 * ipa-icf.c: Include stor-layout.h
23995 (sem_function::compare_cgraph_references): Rename to ...
23996 (sem_item::compare_cgraph_references): ... this one.
23997 (sem_variable::equals_wpa): New function
23998 (sem_variable::equals): Do not check stuff already verified by
24000 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24001 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24002 (sem_function): Remove compare_cgraph_references.
24003 (sem_variable): Turns equals_wpa into non-inline.
24005 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24007 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24008 (sem_item::add_expr): New function.
24009 (sem_function::hash_stmt): Handle operands of most statements.
24010 (sem_variable::get_hash): Hash the actual constructor.
24011 * ipa-icf.h (sem_item): Add add_expr.
24012 (sem_function): Update prototype of hash_stmt
24014 2015-02-28 Martin Liska <mliska@suse.cz>
24015 Jan Hubicka <hubicka@ucw.cz>
24018 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24020 (func_checker::compare_variable_decl): Skip symtab vars.
24021 (func_checker::compare_cst_or_decl): Update.
24022 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24023 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24024 use correct symtab predicates.
24025 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24026 (sem_variable::parse): Update comment.
24027 (sem_item_optimizer::build_graph): Consider ultimate aliases
24030 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24032 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24035 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24037 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24038 (sem_variable::merge) Likewise.
24040 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24042 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24043 target; also match flag_ipa_devirt.
24045 2015-03-01 Martin Liska <mliska@suse.cz>
24046 Jan Hubicka <hubicka@ucw.cz>
24048 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24049 Validate variable alignment.
24050 * ipa-icf.c (sem_function::equals_private): Be more precise
24051 about non-common function attributes.
24052 (sem_variable::equals): Likewise.
24054 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24057 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24058 across COMDAT group boundary.
24060 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24063 * ipa-icf.c (clear_decl_rtl): New function.
24064 (sem_function::merge): Clear RTL before forming alias.
24065 (sem_variable::merge): Clear RTL before forming alias.
24067 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24070 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24072 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24074 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24077 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24079 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24080 a typo in the description.
24082 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24085 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24086 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24087 * lra-constraints.c: Include "params.h".
24088 (EBB_PROBABILITY_CUTOFF): Use
24089 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24090 (lra_inheritance): Use '<' instead of '<=' for
24091 EBB_PROBABILITY_CUTOFF.
24092 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24095 2015-02-27 Martin Liska <mliska@suse.cz>
24097 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24098 vector length condition.
24100 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24102 * doc/extend.texi (x86 transactional memory intrinsics):
24103 Reorganize discussion of _xbegin. Clarify that the return
24104 value is a bit mask. Expand example and move to end of section.
24106 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24107 Aldy Hernandez <aldyh@redhat.com>
24109 PR rtl-optimization/65220
24110 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24112 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24115 * lra-remat.c (update_scratch_ops): New.
24116 (do_remat): Call it.
24117 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24118 (remove_scratches): ... here.
24119 * lra-int.h (lra_register_new_scratch_op): New prototype.
24121 2015-02-27 Marek Polacek <polacek@redhat.com>
24124 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24125 -Wformat-signedness anymore.
24127 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24129 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24131 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24133 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24135 * config/s390/s390.c (enum s390_builtin):
24136 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24137 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24138 (s390_init_builtins): Generate new builtin functions.
24139 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24140 (s390_sfpc, s390_efpc): New pattern definitions.
24142 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24144 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24145 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24146 (s390_builtin_decls): New array.
24147 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24148 (s390_builtin_decl): New function.
24149 (TARGET_BUILTIN_DECL): Define macro.
24151 2015-02-27 Richard Biener <rguenther@suse.de>
24153 PR middle-end/63175
24154 * builtins.c (get_object_alignment_2): Make sure to re-apply
24155 the ANDed mask after recursing to its operand gets us a new
24156 misalignment bit position.
24158 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24159 Martin Liska <mliska@suse.cz>
24162 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24163 Use address_matters_p.
24164 (redirect_all_callers, set_addressable): New functions.
24165 (sem_function::merge): Reorganize and fix merging issues.
24166 (sem_variable::merge): Likewise.
24167 (sem_variable::compare_sections): Remove.
24168 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24170 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24172 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24174 (address_matters_1): New function.
24175 (symtab_node::address_matters_p): New function.
24176 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24177 check for merged flag.
24178 * cgraph.h (address_matters_p): Declare.
24179 (symtab_node::address_taken_from_non_vtable_p): Remove.
24180 (symtab_node::address_can_be_compared_p): New method.
24181 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24182 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24184 (comdat_can_be_unshared_p_1) Use address_matters_p.
24185 (update_vtable_references): Fix formating.
24186 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24187 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24188 * cgraphclones.c: Preserve merged and icf_merged flags.
24190 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24192 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24193 (Label Attributes): Likewise.
24194 (Cilk Plus Builtins): Likewise.
24195 (ARC SIMD Built-in Functions): Likewise.
24196 (ARM C Language Extensions (ACLE)): Likewise.
24197 (PowerPC Built-in Functions): Likewise.
24198 (PowerPC Hardware Transactional Memory Built-in Functions):
24201 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24203 PR tree-optimization/65216
24204 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24205 new stmt and new SSA_NAME for lhs whenever the arguments have
24206 changed and weren't just swapped. Fix comment typo.
24208 PR tree-optimization/65215
24209 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24210 for PDP endian targets.
24211 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24212 Fix up formatting issues.
24213 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24214 size is smaller than the original, adjust MEM_REF offset by the
24215 difference of sizes. Use is_gimple_mem_ref_addr instead of
24216 is_gimple_min_invariant test to avoid adding address temporaries.
24218 2015-02-26 Martin Liska <mliska@suse.cz>
24219 Jan Hubicka <hubicka@ucw.cz>
24222 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24223 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24224 (sem_item_optimizer::process_cong_reduction): Include division by
24225 sensitive references.
24226 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24227 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24228 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24230 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24233 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24235 * config/avr/avr.c: Same.
24236 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24237 Refuse any constant address not in 0..0xbf.
24238 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24239 tiny_valid_direct_memory_access_range from insn conditions.
24240 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24242 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24245 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24246 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24247 * config/sh/predicates.md (const_logical_operand): New predicate.
24248 * config/sh/sh.md: Add new peephole2 patterns.
24250 2015-02-26 Marek Polacek <polacek@redhat.com>
24253 * ipa-inline.c (early_inliner): Recompute inline parameters.
24255 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24258 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24259 instructions with TImode operands are included in the analysis.
24261 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24263 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24264 of an EDGE_FSM_THREAD.
24266 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24268 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24270 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24273 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24275 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24277 PR tree-optimization/65048
24278 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24279 (thread_through_all_blocks): Call valid_jump_thread_path.
24280 Remove invalid FSM jump-thread paths.
24282 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24284 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24285 (ipa_write_optimization_summaries): Likewise.
24286 * tree-streamer.h: Include data-streamer.h.
24287 (streamer_mode_table): Declare extern variable.
24288 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24289 * lto-streamer-out.c (lto_output_init_mode_table,
24290 lto_write_mode_table): New functions.
24291 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24293 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24294 (lto_create_simple_input_block): Add mode_table argument to the
24295 lto_input_block constructors.
24296 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24298 * data-streamer-in.c (string_for_index): Likewise.
24299 * ipa-inline-analysis.c (inline_read_section): Likewise.
24300 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24301 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24302 * lto-streamer-in.c (lto_read_body_or_constructor,
24303 lto_input_toplevel_asms): Likewise.
24304 (lto_input_mode_table): New function.
24305 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24306 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24307 Use bp_pack_machine_mode.
24308 * real.h (struct real_format): Add name field.
24309 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24310 (class lto_input_block): Add mode_table member.
24311 (lto_input_block::lto_input_block): Add mode_table_ argument,
24312 initialize mode_table.
24313 (struct lto_file_decl_data): Add mode_table field.
24314 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24315 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24316 unpack_ts_decl_common_value_fields,
24317 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24318 * tree-streamer.c (streamer_mode_table): New variable.
24319 * real.c (ieee_single_format, mips_single_format,
24320 motorola_single_format, spu_single_format, ieee_double_format,
24321 mips_double_format, motorola_double_format,
24322 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24323 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24324 ibm_extended_format, mips_extended_format, ieee_quad_format,
24325 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24326 decimal_single_format, decimal_double_format, decimal_quad_format,
24327 ieee_half_format, arm_half_format, real_internal_format): Add name
24329 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24331 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24334 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24335 reordering for selective scheduling.
24337 2015-02-26 Terry Guo <terry.guo@arm.com>
24339 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24340 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24341 (arm_arch_no_volatile_ce): Declare new global variable.
24342 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24343 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24344 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24345 (TARGET_NO_VOLATILE_CE): New macro.
24346 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24347 volatile memory access in IT block
24349 2015-02-25 Kai Tietz <ktietz@redhat.com>
24351 PR tree-optimization/61917
24352 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24353 that reduc_def_stmt is null.
24355 2015-02-25 Martin Liska <mliska@suse.cz>
24357 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24358 hard register variables.
24360 2015-02-25 Kai Tietz <ktietz@redhat.com>
24363 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24364 (symtab::noninterposable_alias): Likewise.
24366 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24369 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24371 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24373 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24376 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24377 as split condition; force split via '#' in output pattern.
24379 2015-02-25 Richard Biener <rguenther@suse.de>
24380 Kai Tietz <ktietz@redhat.com>
24382 PR tree-optimization/61917
24383 * tree-vect-loop.c (vectorizable_reduction): Allow
24384 vect_internal_def without reduction to exit graceful.
24386 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24389 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24390 only with NONDEBUG_INSN_P.
24392 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24394 Use variadic macros with avr-log.c.
24396 * config/avr/avr-protos.h (avr_vdump): New prototype.
24397 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24398 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24399 * config/avr/avr-log.c: Adjust comments.
24400 (avr_vdump): New function.
24401 (avr_vadump): Pass caller as 2nd argument instead of format string.
24402 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24403 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24405 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24408 * target.def (target_option_stream_in): New target hook.
24409 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24410 targetm.target_option.post_stream_in if non-NULL.
24411 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24412 * doc/tm.texi: Updated.
24413 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24415 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24417 2015-02-24 Jeff Law <law@redhat.com>
24420 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24421 of operand 0 and operand 2.
24422 (zero_cost_loop_end, loop_end): Similarly.
24424 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24426 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24429 2015-02-24 DJ Delorie <dj@redhat.com>
24431 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24432 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24433 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24434 instead of hardcoding SImode.
24436 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24438 * omp-low.c (create_omp_child_function): Tag entrypoint
24439 functions with a special attribute.
24441 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24444 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24446 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24448 PR rtl-optimization/65123
24449 * lra-remat.c (operand_to_remat): Check hard regs in insn
24452 2015-02-24 Nick Clifton <nickc@redhat.com>
24454 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24457 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24460 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24461 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24462 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24463 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24464 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24465 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24466 (BUILT_IN_GOACC_PARALLEL): Specify as
24467 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24468 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24469 * builtin-types.def
24470 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24471 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24472 Remove function types.
24473 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24474 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24475 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24476 New function types.
24478 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24480 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24482 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24484 PR tree-optimization/65170
24485 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24486 if val[1] < 0, clear also val[2] and return 3.
24488 2015-02-24 Alan Modra <amodra@gmail.com>
24491 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24492 when *base is a reg. Handle nested plus addresses. Simplify
24495 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24497 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24498 use natural alignment when optimizing for size.
24500 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24503 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24504 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24505 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24507 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24510 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24511 too big for a wide_int. Implement missing wrapping operation.
24513 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24516 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24517 instead of const_int 4294901760.
24519 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24521 * config/avr/t-avr: Fix typo in comment.
24523 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24525 * doc/rtl.texi (fma): Clarify documentation.
24527 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24530 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24531 over input_location.
24533 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24535 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24536 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24537 restrict alignments to absolute_biggest_alignment.
24538 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24540 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24541 * doc/tm.texi: Regenerate.
24542 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24544 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24547 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24549 2015-02-20 Richard Biener <rguenther@suse.de>
24551 PR tree-optimization/65136
24552 * tree-ssa-propagate.c: Include cfgloop.h.
24553 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24554 arguments with constants.
24556 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24557 Martin Liska <mliska@suse.cz>
24560 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24561 don't try to create_thunk if stdarg_p. If
24562 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24563 redirect_callers if possible.
24564 (sem_item_optimizer::execute): Call unregister_hooks here...
24565 (ipa_icf_driver): ... instead of here.
24567 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24569 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24570 Mark operand 0 as earlyclobber in 2nd alternative.
24571 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24572 Write negated shift amount into QI lowpart operand 0 and use it
24574 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24576 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24578 * cgraph.h (clone_function_name_1): Declare.
24579 * cgraphclones.c (clone_function_name_1): New function.
24580 (clone_function_name): Use it.
24581 * lto-partition.c: Include "stringpool.h".
24582 (must_not_rename, maybe_rewrite_identifier)
24583 (validize_symbol_for_target): New static functions.
24584 (privatize_symbol_name): Use must_not_rename.
24585 (promote_symbol): Call validize_symbol_for_target.
24586 (lto_promote_cross_file_statics): Likewise.
24587 (lto_promote_statics_nonwpa): Likewise.
24589 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24592 * config/avr/avr.md (pushhi_insn): New insn.
24593 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24595 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24596 Jakub Jelinek <jakub@redhat.com>
24598 * tree-streamer.c (preload_common_nodes): Don't preload
24599 TI_VA_LIST* for offloading.
24600 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24603 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24605 * config/pa/pa.c (pa_emit_move_sequence): Always force
24606 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24609 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24610 (TARGET_ASM_RELOC_RW_MASK): Define.
24611 (pa_cannot_force_const_mem): Revert previous change.
24613 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24614 Jan Hubicka <hubicka@ucw.cz>
24617 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24618 across jump functions.
24620 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24622 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24624 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24626 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24628 2015-02-19 Richard Henderson <rth@redhat.com>
24630 PR middle-end/65074
24631 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24632 test DECL_EXTERNAL independent of symtab_node.
24634 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24637 * varpool.c (varpool_node::get_constructor): Return early
24638 if this->lto_file_data is NULL.
24640 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24642 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24643 (rank_for_schedule_debug): Update.
24644 (ready_sort): Make static. Move sorting logic to ...
24645 (ready_sort_debug, ready_sort_real): New static functions.
24646 (schedule_block): Sort both debug insns and real insns in preparation
24647 for ready list trimming. Improve debug output.
24648 * sched-int.h (ready_sort): Remove global declaration.
24650 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24652 * ipa-icf.c (sem_function::equals_private): Adjust.
24653 (sem_function::bb_dict_test): Take a vec<int> * instead of
24655 * ipa-icf.h (bb_dict_test): Likewise.
24657 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24659 PR gcov-profile/64634
24660 * tree-eh.c (frob_into_branch_around): Fix up typos
24661 in function comment.
24662 (lower_catch): Put eh_seq resulting from EH lowering of
24663 the cleanup sequence after the cleanup rather than before it.
24665 2015-02-18 Tom de Vries <tom@codesourcery.com>
24667 * common.opt (fstdarg-opt): New option.
24668 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24669 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24670 (@item -fstdarg-opt): New item.
24672 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
24675 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24676 for common symbols.
24678 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24680 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
24682 (ALL_HOST_OBJS): Add mkoffload.o.
24683 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
24685 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
24687 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
24688 (compare_virtual_tables): Be smarter about skipping typeinfos;
24689 do sane output on virtual table table mismatch.
24690 (warn_odr): Be ready for forward declarations of enums;
24691 output sane info on base mismatch and virtual table mismatch.
24692 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
24693 when only one type is polymorphic.
24694 (get_odr_type): Fix hashtable corruption.
24695 (dump_odr_type): Dump mangled names.
24697 2015-02-18 Richard Biener <rguenther@suse.de>
24699 PR tree-optimization/65063
24700 * tree-predcom.c (determine_unroll_factor): Return 1 if we
24701 have replaced looparound PHIs.
24703 2015-02-18 Martin Liska <mliska@suse.cz>
24705 * lto-streamer.c (lto_streamer_init): Encapsulate
24706 streamer_check_handled_ts_structures with checking macro.
24708 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24711 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
24712 section if !implicit_section.
24713 (cgraph_node::create_version_clone_with_body): Likewise.
24714 * trans-mem.c (ipa_tm_create_version): Likewise.
24716 2015-02-18 Richard Biener <rguenther@suse.de>
24718 PR tree-optimization/62217
24719 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
24722 2015-02-18 Marek Polacek <polacek@redhat.com>
24725 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24726 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24727 is in range [-16K, -1]. Don't issue run-time error if
24728 (ptr > ptr + offset).
24730 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
24732 * doc/install.texi (nvptx-*-none): New section.
24733 * doc/invoke.texi (Nvidia PTX Options): Likewise.
24734 * config/nvptx/nvptx.opt: Update.
24736 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24737 (access_check): New functions, copied from
24738 config/i386/intelmic-mkoffload.c.
24739 (main): For non-installed testing, look in all COMPILER_PATHs for
24742 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24744 2015-02-18 Andrew Pinski <apinski@cavium.com>
24745 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24747 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24748 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24750 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24752 * ipa-visibility.c (function_and_variable_visibility): Only
24753 check locality if node is not already local.
24754 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24755 call_for_symbol_and_aliases instead of
24756 call_for_symbol_thunks_and_aliases.
24757 (ipa_inline): Likewise.
24758 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24759 first walk aliases.
24760 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24761 call_for_symbol_and_aliases.
24762 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24763 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24764 (ipa_propagate_frequency): Update.
24765 (ipa_profile): Add opt_for_fn gueards.
24767 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24769 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
24770 * doc/invoke.texi (SH options): Document it.
24771 * config/sh/sh.c (sh_insn_length_adjustment): Check
24772 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24774 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
24776 * common.opt (fipa-cp-alignment): New.
24777 * ipa-cp.c (ipcp_store_alignment_results): Check
24778 flag_ipa_cp_alignment.
24779 * opts.c (default_options_table): Enable -fipa-cp-alignment for
24781 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24782 * doc/invoke.texi: Document -fipa-cp-alignment.
24784 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24787 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24788 to nil. Adjust comments.
24790 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24792 * ipa-visibility.c (function_and_variable_visibility): Only
24793 check locality if node is not already local.
24794 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24795 call_for_symbol_and_aliases instead of
24796 call_for_symbol_thunks_and_aliases.
24797 (ipa_inline): Likewise.
24798 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24799 first walk aliases.
24800 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24801 call_for_symbol_and_aliases.
24802 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24803 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24804 (ipa_propagate_frequency): Update.
24805 (ipa_profile): Add opt_for_fn guards.
24807 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
24809 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24810 skipping of "strange" tokens.
24812 2015-02-17 Jeff Law <law@redhat.com>
24814 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
24817 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
24819 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24820 as forcing a HARD_DEP between instructions, thereby
24821 disallowing rewriting to break dependencies.
24823 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24825 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24826 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24827 variables in boundary that have no inlitalizer encoded and are
24829 * varasm.c (default_binds_local_p_2): External definitions do not
24830 count as definitions here.
24832 2015-02-16 Jeff Law <law@redhat.com>
24834 PR tree-optimization/64823
24835 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24837 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24838 threading through blocks with PHIs, but no statements.
24839 (thread_through_normal_block): Distinguish between blocks where
24840 we did not process all the statements and blocks with no statements.
24842 2015-02-16 Jakub Jelinek <jakub@redhat.com>
24843 James Greenhalgh <james.greenhalgh@arm.com>
24846 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24847 section if not linkonce. Fix up formatting.
24848 (cgraph_node::create_version_clone_with_body): Copy section.
24849 * trans-mem.c (ipa_tm_create_version): Likewise.
24851 2015-02-16 Richard Biener <rguenther@suse.de>
24853 PR tree-optimization/65077
24854 * tree-ssa-structalias.c (get_constraint_for_1): Handle
24855 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24856 (find_func_aliases): Allow float values to carry pointers again.
24858 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24860 * doc/install.texi (Specific): Reorder targets list to put
24861 aarch64 in alphabetical order. Add a link to aarch64*-*-*
24864 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24865 David Edelsohn <dje.gcc@gmail.com>
24868 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24869 mapping class to external variable or function reference.
24870 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24873 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
24876 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24877 ASM_WEAKEN_DECL if defined.
24879 2015-02-16 Richard Biener <rguenther@suse.de>
24882 * varasm.c (default_file_start): For LTO produced units
24883 emit <artificial> as file directive.
24885 2015-02-16 Richard Biener <rguenther@suse.de>
24887 PR tree-optimization/63593
24888 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24889 stmts and releasing SSA names until...
24890 (execute_pred_commoning): ... after processing all chains.
24892 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24895 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24896 external functions.
24898 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
24900 * doc/bugreport.texi: Adjust section titles throughout the file
24901 to use "Title Case".
24902 * doc/extend.texi: Likewise.
24903 * doc/gcov.texi: Likewise.
24904 * doc/implement-c.texi: Likewise.
24905 * doc/implement-cxx.texi: Likewise.
24906 * doc/invoke.texi: Likewise.
24907 * doc/objc.texi: Likewise.
24908 * doc/standards.texi: Likewise.
24909 * doc/trouble.texi: Likewise.
24911 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
24913 * cgraph.h (symtab_node::has_aliases_p): Simplify.
24914 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24915 * tree.c (lookup_binfo_at_offset): Make static.
24916 (get_binfo_at_offset): Do not shadow offset; add explanatory
24919 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
24921 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24922 for all floading point loads and stores except those using a register
24924 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24927 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24929 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24930 (do_estimate_growth_1): Record if any uninlinable edge was seen.
24931 (estimate_growth): Handle uninlinable edges correctly.
24932 (check_callers): New.
24933 (growth_likely_positive): Handle aliases correctly.
24935 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24937 * ipa-chkp.c: Use iterate_direct_aliases.
24938 * symtab.c (resolution_used_from_other_file_p): Move inline.
24939 (symtab_node::create_reference): Fix formating.
24940 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24941 (symtab_node::iterate_reference): Move inline.
24942 (symtab_node::iterate_referring): Move inline.
24943 (symtab_node::iterate_direct_aliases): Move inline.
24944 (symtab_node::used_from_object_file_p_worker): Inline into ...
24945 (symtab_node::used_from_object_file_p): ... this one; move inline.
24946 (symtab_node::call_for_symbol_and_aliases): Move inline;
24947 use iterate_direct_aliases.
24948 (symtab_node::call_for_symbol_and_aliases_1): New method.
24949 (cgraph_node::call_for_symbol_and_aliases): Move inline;
24950 use iterate_direct_aliases.
24951 (cgraph_node::call_for_symbol_and_aliases_1): New method.
24952 (varpool_node::call_for_node_and_aliases): Rename to ...
24953 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24954 use iterate_direct_aliases.
24955 (varpool_node::call_for_symbol_and_aliases_1): New method.
24956 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24957 (ipa_discover_readonly_nonaddressable_var): Update.
24958 * ipa-devirt.c: Fix formating.
24959 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24961 (cgraph_node::call_for_symbol_and_aliases): Move inline.
24962 (cgraph_node::call_for_symbol_and_aliases_1): New function..
24963 * cgraph.h (used_from_object_file_p_worker): Remove.
24964 (resolution_used_from_other_file_p): Move inline.
24965 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24966 (symtab_node::iterate_reference): Move inline.
24967 (symtab_node::iterate_referring): Move inline.
24968 (symtab_node::iterate_direct_aliases): Move inline.
24969 (symtab_node::used_from_object_file_p_worker): Inline into ...
24970 (symtab_node::used_from_object_file_p): Move inline.
24971 * tree-emutls.c (ipa_lower_emutls): Update.
24972 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24973 (varpool_node::call_for_node_and_aliases): Remove.
24975 2015-02-14 Jakub Jelinek <jakub@redhat.com>
24977 PR tree-optimization/62209
24978 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24979 op == range->exp, insert seq and gimplified code after labels
24980 instead of after the phi.
24982 2015-02-13 Jeff Law <law@redhat.com>
24985 Revert my change for tree-optimization/64823.
24987 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24989 PR tree-optimization/65053
24990 * tree-ssa-phiopt.c (value_replacement): When moving assign before
24991 cond, either reset VR on lhs or set it to phi result VR.
24993 2015-02-13 Jeff Law <law@redhat.com>
24995 PR tree-optimization/64823
24996 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24997 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24998 threading through blocks with PHIs, but no statements.
24999 (thread_through_normal_block): Distinguish between blocks where
25000 we did not process all the statements and blocks with no statements.
25002 PR rtl-optimization/47477
25003 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25004 simplifier to narrow arithmetic.
25006 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25009 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25010 polymorphic call info when type is not known to be preserved.
25012 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25015 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25016 (inline_call): Use it.
25018 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25020 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25021 GOMP_DEVICE_NVIDIA_PTX.
25023 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25026 * stmt.c (emit_case_nodes): Use void_type_node instead of
25027 NULL_TREE as LABEL_DECL type.
25029 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25031 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25033 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25034 symbolic references to data to be forced to constant memory on the
25037 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25039 PR tree-optimization/65002
25040 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25042 * tree-sra.c (some_callers_have_no_vuse_p): New.
25043 (ipa_early_sra): Reject functions whose callers
25044 assume function is read only.
25046 2015-02-13 Richard Biener <rguenther@suse.de>
25049 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25050 for LTO produced CUs.
25052 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25054 PR tree-optimization/64705
25055 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25056 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25057 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25058 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25059 expand_simple_operations.
25061 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25062 Richard Henderson <rth@redhat.com>
25065 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25066 before notice_global_symbol.
25067 (varpool_node::finalize_decl): Likewise.
25068 * varasm.c (default_binds_local_p_2): Rename from
25069 default_binds_local_p_1, add weak_dominate argument. Use direct
25070 returns instead of assigning to local variable. Unify varpool and
25071 cgraph paths via symtab_node. Reject undef weak variables before
25072 testing visibility. Reorder tests for simplicity.
25073 (default_binds_local_p): Use default_binds_local_p_2.
25074 (default_binds_local_p_1): Likewise.
25075 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25077 (default_elf_asm_output_external): Emit visibility when specified.
25079 2015-02-13 Alan Modra <amodra@gmail.com>
25081 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25082 code setting up r11 for out-of-line fp restore.
25084 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25086 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25087 (muser-mode): Likewise.
25089 2015-02-13 Alan Modra <amodra@gmail.com>
25091 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25092 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25094 2015-02-12 David Howells <dhowells@redhat.com>
25096 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25098 * tree-ssa-uninit.c (dump_predicates): Likewise.
25099 * opts.c (print_filtered_help): Likewise.
25101 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25103 * dwarf2out.c (output_die): Use "%s", name instead of name to
25104 avoid -Wformat-security warning.
25106 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25107 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25108 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25109 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25111 2015-02-12 Jason Merrill <jason@redhat.com>
25113 * common.opt (-flifetime-dse): New.
25115 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25118 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25120 PR tree-optimization/65014
25121 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25122 use original second operand of arg0 or arg1 instead of
25123 that adjusted by STRIP_NOPS.
25125 2015-02-11 Jeff Law <law@redhat.com>
25128 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25129 that needs to be queued, just queue it for a single cycle.
25131 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25133 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25134 bodies of thunks; comment on why.
25135 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25136 symbols are extern.
25138 2015-02-11 Richard Henderson <rth@redhat.com>
25141 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25142 regions of __builtin_eh_copy_values.
25144 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25146 PR middle-end/65003
25147 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25148 ultimate alias is MEM with SYMBOL_REF satisfying
25149 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25150 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25152 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25154 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25155 "diagnostic-core.h".
25156 (main): Initialize progname, and call diagnostic_initialize.
25158 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25159 instead of __OPENMP_TARGET__.
25161 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25162 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25163 hard-coding PTX_ID.
25165 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25167 * doc/sourcebuild.texi (pie_enabled): Document.
25169 2015-02-11 Martin Liska <mliska@suse.cz>
25172 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25173 a return value for call to a function that is noreturn.
25175 2015-02-11 Richard Biener <rguenther@suse.de>
25178 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25181 2015-02-11 Andrew Pinski <apinski@cavium.com>
25184 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25185 Change the first argument type to size_type_node and add another
25187 (aarch64_simd_expand_builtin): Handle the new argument to
25188 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25189 print an out when the first two arguments are not
25190 nonzero integer constants.
25191 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25192 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25194 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25197 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25198 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25199 (ix86_set_current_function): Rewritten.
25200 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25201 when creating builtin fndecls.
25203 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25206 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25208 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25209 have no comdat group.
25210 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25211 (lto_output_varpool_node): Always output alias info.
25212 (output_refs): Output refs of boundary aliases, too.
25213 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25214 (output_symtab): Output call eges in thunks in boundary.
25215 (get_alias_symbol): Remove.
25216 (input_node, input_varpool_node): Do not special case weakrefs.
25217 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25218 alias and thunks targets in the boundary; do not take removed symbols
25219 from their comdat groups.
25220 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25221 (cgraph_node::global_info): Remove.
25222 (cgraph_node::rtl_info): Look through aliases and thunks.
25223 * cgrpah.h (global_info): Remove.
25224 (non_local_p): Remove.
25226 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25227 Sandra Loosemore <sandra@codesourcery.com>
25229 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25230 to inline asm. List dialects in proper order.
25232 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25233 Sandra Loosemore <sandra@codesourcery.com>
25235 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25237 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25239 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25240 modified) reference to Solaris.
25242 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25244 * doc/extend.texi (Extended Asm): Fix typos.
25246 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25249 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25251 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25254 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25255 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25256 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25257 * config/sh/constraints.md (Ara, Add): New constraints.
25258 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25260 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25261 atomic_mem_operand_0. Don't use force_reg on the memory address.
25262 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25263 Sra constraint. Convert to insn_and_split. Add workaround for
25265 (atomic_compare_and_swap<mode>_hard): Copy to
25266 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25267 Use atomic_mem_operand_0 predicate.
25268 (atomic_compare_and_swap<mode>_soft_gusa,
25269 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25270 AraAdd constraints.
25271 (atomic_compare_and_swap<mode>_soft_tcb,
25272 atomic_compare_and_swap<mode>_soft_imask,
25273 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25274 atomic_mem_operand_0 predicate and SraSdd constraints.
25275 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25277 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25278 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25279 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25280 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25281 force_reg on the memory address.
25282 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25283 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25284 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25285 atomic_mem_operand_1 predicate and Sra constraint.
25286 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25287 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25288 Use atomic_mem_operand_1 predicate.
25289 (atomic_<fetchop_name><mode>_hard): Copy to
25290 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25291 Use atomic_mem_operand_1 predicate.
25292 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25293 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25294 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25295 insn_and_split. Use atomic_mem_operand_1 predicate.
25296 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25297 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25298 Use atomic_mem_operand_1 predicate.
25299 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25300 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25301 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25302 in generated insn with original mem operand before emitting the insn.
25303 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25304 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25305 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25306 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25307 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25308 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25309 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25310 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25311 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25312 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25313 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25314 atomic_not_fetch<mode>_soft_tcb,
25315 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25316 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25317 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25318 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25320 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25322 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25323 and 3 earlyclobber operands.
25325 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25327 * common.opt (fstack-reuse): Mark as optimization.
25329 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25332 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25334 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25336 PR tree-optimization/64326
25337 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25339 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25341 PR gcov-profile/61889
25342 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25344 2015-02-10 Richard Biener <rguenther@suse.de>
25346 PR tree-optimization/64995
25347 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25348 value we use is final.
25349 (visit_reference_op_store): Always valueize op.
25350 (visit_use): Properly valueize vuses.
25352 2015-02-10 Richard Biener <rguenther@suse.de>
25354 PR tree-optimization/64909
25355 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25356 pass a scalar-stmt count estimate to the cost model.
25357 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25359 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25361 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25362 enabled by default together with var-tracking.
25364 2015-02-10 Nick Clifton <nickc@redhat.com>
25366 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25367 included in previous rl78 commit.
25369 2015-02-10 Richard Biener <rguenther@suse.de>
25371 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25372 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25373 return the bitpack.
25375 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25377 PR gcov-profile/61889
25378 * config.in: regenerate.
25379 * configure.in: Likewise.
25380 * configure.ac: Check for ftw.h.
25381 * gcov-tool.c: Check for ftw.h before using nftw.
25383 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25386 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25387 assert when not in lto mode.
25389 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25391 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25392 initialization/assignment of conflict_size.
25394 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25397 * ipa-cp.c (gather_caller_stats): Skip thunks.
25398 (propagate_constants_topo): Skip aliases.
25400 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25403 * config/sh/sh.c (sh_option_override): Don't change
25404 -freorder-blocks-and-partition to -freorder-blocks even when
25405 unwinding is enabled.
25406 (sh_can_follow_jump): Return false if the followee jump is
25407 a crossing jump when -freorder-blocks-and-partition is specified.
25408 * config/sh/sh.md (*jump_compact_crossing): New insn.
25410 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25411 Kaz Kojima <kkojima@gcc.gnu.org>
25414 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25415 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25416 (sh_can_redirect_branch): Rename to ...
25417 (sh_can_follow_jump): ... this. Constify argument types.
25418 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25419 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25420 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25421 * doc/tm.texi: Regenerate.
25423 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25426 * builtins.c (expand_builtin): Call targetm.expand_builtin
25427 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25429 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25432 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25434 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25437 * ipa-icf.c (set_local): New function.
25438 (sem_function::merge): Use it.
25440 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25442 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25443 (add_type_duplicate): Fix comparison of BINFOs.
25445 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25447 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25448 on getting VOID pointer.
25450 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25453 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25456 2015-02-09 Richard Biener <rguenther@suse.de>
25458 * genmatch.c (replace_id): Copy expr_type.
25460 2015-02-09 Richard Biener <rguenther@suse.de>
25462 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25463 (streamer_write_tree_bitfields): Declare.
25464 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25465 properly unpack padding.
25466 (unpack_value_fields): Inline ...
25467 (streamer_read_tree_bitfields): ... here.
25468 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25469 and properly add padding bits.
25470 (streamer_pack_tree_bitfields): Fold into ...
25471 (streamer_write_tree_bitfields): ... this new function,
25472 exposing the bitpack object.
25473 * lto-streamer-out.c (lto_write_tree_1): Call
25474 streamer_write_tree_bitfields.
25476 2015-02-09 Richard Biener <rguenther@suse.de>
25478 PR tree-optimization/54000
25479 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25480 (struct ivopts_data): Add loop_loc member.
25481 (tree_ssa_iv_optimize_loop): Dump loop location.
25482 (create_new_ivs): Likewise, also dump number of IVs generated.
25484 2015-02-09 Martin Liska <mliska@suse.cz>
25486 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25487 just if not yet registered.
25488 (ipa_icf_generate_summary): Register callgraph hooks.
25490 2015-02-08 Andrew Pinski <apinski@cavium.com>
25492 * config/aarch64/aarch64.c (gty_dummy): Delete.
25494 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25497 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25498 (cgraph_node::local_p): Remove thunk related FIXME.
25500 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25503 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25504 is local and optimized.
25505 (ix86_function_sseregparm): Likewise; also use target's SSE math
25506 settings; error out instead of silently generating wrong code
25508 (init_cumulative_args): Look through aliases.
25510 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25513 * ipa-split.c (execute_split_functions): Split if function has aliases.
25515 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25518 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25519 aliases before trying to expand it.
25520 (cgraph_node::expand_thunk): Fix formating.
25522 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25524 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25525 (Using Assembly Language with C): Expand introduction.
25526 (Basic Asm): Copy-edit. Add more information about uses of
25528 (Extended Asm): Copy-edit. Document new escape syntax and
25530 (Global Reg Vars): Copy-edit.
25531 (Local Reg Vars): Likewise.
25533 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25537 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25538 (DBX_CONTIN_CHAR): Define.
25540 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25541 Brian Rzycki <b.rzycki@samsung.com>
25543 PR tree-optimization/64878
25544 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25545 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25546 Stop recursion at loop phi nodes after having visited a loop phi node.
25548 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25550 * toplev.c (process_options): Change flag_ipa_ra before creating
25551 optimization_{default,current}_node.
25554 * cgraphunit.c (cgraph_node::expand_thunk): If
25555 restype is not is_gimple_reg_type nor the thunk_fndecl
25556 returns aggregate_value_p, set restmp to a temporary variable
25557 instead of resdecl.
25559 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25561 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25563 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25566 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25567 add a general secondary reload handler for SDmode, unless we have
25568 both read/write support for SDmode.
25570 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25572 PR middle-end/64937
25573 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25574 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25575 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25576 1 before, push it to abstract_vec.
25577 (dwarf2out_abstract_function): Adjust caller. Don't call
25578 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25579 DECL_ABSTRACT_P flags for all abstract_vec elts.
25581 2015-02-06 Renlin Li <renlin.li@arm.com>
25583 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25585 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25587 2015-02-06 Jeff Law <law@redhat.com>
25590 * config/h8300/h8300.c (push): New argument "in_prologue".
25591 Pass "in_prologue" along to "F".
25592 (h8300_push_pop): Corresponding changes.
25593 (h8300_expand_prologue): Likewise.
25594 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25596 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25598 PR rtl-optimization/64957
25600 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25601 IOR rather than for AND.
25603 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25606 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25607 of shift-add and (add + shift) operations. Rename local variable.
25609 2015-02-05 Jeff Law <law@redhat.com>
25612 * config/h8300/constraints.md (U): Correctly dectect
25613 "eightbit_data" memory addresses.
25614 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25615 handle (const (plus (symbol_ref (x)))) where x is declared
25616 as an 8-bit data memory address.
25617 * config/h8300/h8300.md (call, call_value): Correctly detect
25618 "funcvec" functions.
25621 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25622 24 to 28 bits for the H8/300.
25624 2015-02-06 Alan Modra <amodra@gmail.com>
25627 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25628 (rs6000_call_aix): Use it.
25630 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25632 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25635 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25637 * config/h8300/constraints.md ("U" constraint): Use strict
25638 variant of REG_OK_FOR_BASE_P after reload has started.
25640 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25642 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25643 define to zero if !TARGET_NEON.
25644 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25646 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25647 Trevor Saunders <tsaunders@mozilla.com>
25650 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25652 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25655 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25656 when removing varpool nodes.
25658 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25661 * varpool.c (varpool_node::remove): Fix order of variables.
25663 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25666 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25667 speculation resolution and key updates.
25669 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25671 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25672 about not letting any speculative edges unupdated.
25674 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25677 * gcov-io.c (gcov_var): Export.
25679 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25681 PR middle-end/64922
25682 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
25683 edges that become speculative.
25685 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25687 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
25688 or DW_LANG_Fortran08.
25689 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
25691 (gen_compile_unit_die): Handle "GNU Fortran2003" and
25692 "GNU Fortran2008" language strings.
25693 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
25694 * langhooks.h (lang_GNU_Fortran): New prototype.
25695 * langhooks.c (lang_GNU_Fortran): New function.
25696 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
25699 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25701 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
25702 (RTX_OK_FOR_OLO10_P): Likewise.
25704 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25706 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
25708 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25710 PR middle-end/64922
25711 * gimple.c: Include gimple-ssa.h.
25712 (maybe_remove_unused_call_args): New function.
25713 * gimple.h (maybe_remove_unused_call_args): Declare.
25714 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
25715 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25716 * gimple-fold.c (gimple_fold_call): Likewise.
25718 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
25720 PR rtl-optimization/64905
25721 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
25722 pointer alignment if it isn't needed.
25724 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25726 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25727 cortex-a72.cortex-a53.
25728 * config/aarch64/aarch64-tune.md: Regenerate.
25729 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25731 2015-02-04 Nick Clifton <nickc@redhat.com>
25733 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25736 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25738 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25739 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25740 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25742 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25743 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25744 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25745 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25746 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25747 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25748 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25749 * tree-core.h (enum built_in_function): In between
25750 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25751 for builtins that use DEF_BUILTIN_CHKP macro.
25753 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
25756 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
25757 operands for tcc_comparison exprs. Fix typos.
25760 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
25761 of two XORs that have an intervening AND or IOR.
25764 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
25765 simplification of XOR of AND to not allocate new rtx before
25766 committing to a simplification.
25768 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25770 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
25771 manual swaps in all peepholes.
25773 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25775 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25776 of manual swapping implementation.
25777 (aarch64_expand_vec_perm_const_1): Likewise.
25779 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
25781 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25782 (generic_addrcost_table): Remove NAMED_PARAM.
25783 (cortexa57_addrcost_table): Likewise.
25784 (xgene1_addrcost_table): Likewise.
25785 (generic_regmove_table): Likewise.
25786 (cortexa53_regmove_table): Likewise.
25787 (xgene1_regmove_table): Likewise.
25788 (generic_vector_table): Likewise.
25789 (cortexa57_vector_table): Likewise.
25790 (xgene1_vector_table): Likewise.
25791 (generic_tunings): Likewise.
25792 (cortexa53_tunings): Likewise.
25793 (cortexa57_tunings): Likewise.
25794 (xgene1_tunings): Likewise.
25796 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25798 * config/arm/arm-cores.def: Add cortex-a72 and
25799 cortex-a72.cortex-a53.
25800 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25801 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25802 * config/arm/arm-tune.md: Regenerate.
25803 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25804 "cortex-a72.cortex-a53".
25805 * doc/invoke.texi (ARM Options/-mtune): Likewise.
25807 2015-02-04 Nick Clifton <nickc@redhat.com>
25810 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25812 (nonimmediate_di_operand): Likewise.
25814 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25815 prefixes of known F5 using MSP430 MCUs.
25817 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25819 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25820 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25821 instead of __builtin_sqrt.
25823 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
25825 * varasm.c (do_assemble_alias): Follow transparent alias
25827 (default_assemble_visibility): Follow transparent alias
25828 chain for decl name.
25830 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25832 PR middle-end/62103
25833 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25834 to compute size of referenced value in the constant case.
25836 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25838 PR rtl-optimization/64756
25839 * cse.c (invalidate_dest): New function.
25840 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
25841 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25842 invalidate and do not record it.
25844 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25847 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25848 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25849 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25850 atomic_nand<mode>_soft_tcb): New insns.
25851 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25852 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25853 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25854 Split into atomic_not_fetchsi_hard if operands[0] is unused.
25855 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25856 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25857 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
25858 atomic_not<mode>_hard if operands[0] is unused.
25859 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25860 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25861 if operands[0] is unused.
25862 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
25863 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25864 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25865 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25867 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
25868 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25869 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25870 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25871 if operands[0] is unused.
25872 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
25873 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25874 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
25875 atomic_nand_fetchsi_hard if operands[0] is unused.
25876 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
25877 atomic_nand<mode>_hard if operands[0] is unused.
25878 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
25879 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25880 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
25881 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25882 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
25883 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25884 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25885 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25886 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
25887 atomic_not<mode>_hard if operands[0] is unused.
25888 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25889 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25891 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25892 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25893 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
25894 atomic_nand<mode>_hard if operands[0] is unused.
25895 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25896 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25898 2015-02-03 David Malcolm <dmalcolm@redhat.com>
25901 * Makefile.in (GCC_OBJS): Add gcc-main.o.
25902 * gcc-main.c: New file, containing "main" taken from gcc.c.
25903 * gcc.c (do_self_spec): Free decoded_options.
25904 (class driver): Move declaration to gcc.h.
25905 (main): Move declaration and implementation to new file
25907 (driver_get_configure_time_options): New function.
25908 * gcc.h (class driver): Move this declaration here, from
25910 (driver_get_configure_time_options): New declaration.
25912 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
25914 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25915 cross-module inlining.
25916 * cgraph.h (cgraph_node): Add flag merged.
25917 * ipa-icf.c (sem_function::merge): Maintain it.
25919 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
25921 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25922 instead of OBJECT_P.
25924 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
25927 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25928 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25929 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25930 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25932 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25935 * combine.c (reg_n_sets_max): New variable.
25936 (can_change_dest_mode, reg_nonzero_bits_for_combine,
25937 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25938 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25939 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25940 (rest_of_handle_combine): Initialize reg_n_sets_max.
25942 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
25944 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25945 if some always_inline was inlined, apply changes before inlining
25948 2015-02-02 David Malcolm <dmalcolm@redhat.com>
25951 * config/arm/arm.c (arm_option_override): Set
25952 arm_selected_arch/cpu/tune to NULL on entry.
25954 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
25955 Andrew Pinski <pinskia@gcc.gnu.org>
25956 Jakub Jelinek <jakub@gcc.gnu.org>
25959 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25960 integer typing for small model. Use IN_RANGE.
25962 2015-02-02 Richard Biener <rguenther@suse.de>
25964 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25965 * tree-vrp.c (vrp_valueize_1): Likewise.
25967 2015-02-02 Alan Modra <amodra@gmail.com>
25969 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25970 than mem for toc_restore.
25971 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25972 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25973 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25975 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
25978 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25979 explicit default options.
25981 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
25984 * ipa-utils.c (ipa_merge_profiles): Add release argument.
25985 * ipa-icf.c (sem_function::merge): Do not release body when merging.
25986 * ipa-utils.h (ipa_merge_profiles): Update prototype.
25988 2015-02-01 Jakub Jelinek <jakub@redhat.com>
25991 * cfgexpand.c (deep_ter_debug_map): New variable.
25992 (avoid_deep_ter_for_debug): New function.
25993 (expand_debug_expr): If TERed SSA_NAME is in
25994 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25995 instead of trying to expand SSA_NAME's def stmt.
25996 (expand_debug_locations): When expanding debug bind
25997 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25998 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26000 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26001 all debug bind stmts. Delete deep_ter_debug_map after
26002 expand_debug_location if non-NULL and clear it.
26004 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26007 * config/sh/sync.md (atomic_fetch_notsi_hard,
26008 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26009 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26010 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26011 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26012 atomic_not_fetch<mode>_soft_imask): New insns.
26014 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26016 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26017 (rank_for_schedule_debug): Split from ...
26018 (rank_for_schedule): ... this.
26019 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26020 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26022 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26024 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26025 * doc/extend.texi (x86 Variable Attributes): Move section to
26026 correct alphabetization after renaming.
26027 (x86 Type Attributes): Likewise.
26028 (Target Builtins): Re-alphabetize menu.
26029 (x86 Built-in Functions): Move section to correct alphabetization
26031 (x86 transactional memory intrinsics): Likewise.
26032 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26033 and x86 Windows Options in table and menu.
26034 (x86 Options): Move section to correct alphabetization after
26036 (x86 Windows Options): Likewise.
26038 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26040 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26041 preferred names of the architecture and its 32- and 64-bit
26043 * doc/invoke.texi: Likewise.
26044 * doc/md.texi: Likewise.
26046 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26049 * config/i386/predicates.md (address_no_seg_operand): Reject
26050 non-CONST_INT_P operands in invalid mode.
26052 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26054 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26055 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26056 * config/i386/predicates.md (address_no_seg_operand): Call
26057 address_operand with VOIDmode.
26058 (vsib_address_operand): Ditto.
26059 (address_mpx_no_base_operand): Ditto.
26060 (address_mpx_no_index_operand): Ditto.
26062 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26065 * lra-constraints.c (original_subreg_reg_mode): New.
26066 (simplify_operand_subreg): Try to simplify subreg of const. Use
26067 original_subreg_reg_mode for it.
26068 (swap_operands): Update original_subreg_reg_mode.
26069 (curr_insn_transform): Set up original_subreg_reg_mode.
26071 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26074 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26076 (process_alt_operands): Use it.
26077 (curr_insn_transform): Check the optional reload pseudo class is
26080 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26082 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26083 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26085 * toplev.h (init_asm_output): Update comment on use of
26086 UNKNOWN_LOCATION with fatal_error.
26087 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26088 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26089 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26090 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26091 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26092 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26093 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26094 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26095 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26096 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26097 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26098 fatal_error changed to pass input_location as first argument.
26100 2015-01-30 Martin Liska <mliska@suse.cz>
26102 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26103 in #pragma GCC diagnostic guards.
26105 2015-01-30 Richard Biener <rguenther@suse.de>
26107 PR tree-optimization/64829
26108 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26109 not add a widening conversion pattern but hand off extra
26110 widenings to callers.
26111 (vect_recog_widen_mult_pattern): Handle extra widening produced
26112 by vect_handle_widen_op_by_const.
26113 (vect_recog_widen_shift_pattern): Likewise.
26114 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26115 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26116 (vect_init_vector_1): Likewise.
26117 (vect_get_vec_def_for_operand): Likewise.
26118 (vect_finish_stmt_generation): Likewise.
26119 (vectorizable_load): Likewise.
26120 (vect_analyze_stmt): Likewise.
26121 (vect_is_simple_use): Likewise.
26123 2015-01-29 Jeff Law <law@redhat.com>
26125 * combine.c (try_combine): Fix typo in comment.
26127 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26130 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26131 (rs6000_stack_info): Add assert.
26132 (rs6000_output_savres_externs): New function, split off from...
26133 (rs6000_output_function_prologue): ... here. Do not call it for
26136 2015-01-29 Jeff Law <law@redhat.com>
26139 * combine.c (try_combine): If I0 is a memory load and I3 a store
26140 to a related address, increase the "goodness" of doing a 4-insn
26141 combination with I0-I3.
26142 (make_field_assignment): Handle SUBREGs in the ior+and case.
26144 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26146 PR tree-optimization/64746
26147 * tree-if-conv.c (mask_exists): New function.
26148 (predicate_mem_writes): Save created mask with given size for further
26150 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26151 (ifcvt_repair_bool_pattern): Collect all statements that are root
26152 of bool pattern and use iterative algorithm to remove multiple uses
26153 of predicates, display number of required iterations.
26155 2015-01-29 Richard Biener <rguenther@suse.de>
26157 PR tree-optimization/64853
26158 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26159 stmt will get simulated again.
26160 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26162 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26164 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26165 return_in_pc. Remove redundant assignments.
26166 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26167 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26169 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26171 * config/i386/i386.c (ix86_mode_after): Make static.
26173 2015-01-29 Richard Biener <rguenther@suse.de>
26175 PR tree-optimization/64844
26176 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26177 dump cost model analysis.
26178 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26179 Do not register adjusted load/store costs here.
26181 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26182 Uros Bizjak <ubizjak@gmail.com>
26184 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26185 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26186 using x86_use_pseudo_pic_reg.
26187 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26188 support for fixed PIC register.
26189 (ix86_use_pseudo_pic_reg): Not static any more.
26191 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26193 PR middle-end/64805
26194 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26195 to avoid error in cgraph node verification.
26197 2015-01-29 Marek Polacek <polacek@redhat.com>
26199 * doc/standards.texi: Reflect that the default for C is gnu11.
26201 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26204 * reorg.c (switch_text_sections_between_p): New function.
26205 (relax_delay_slots): Call it when testing if the jump insn
26206 is removable. Use targetm.can_follow_jump when testing if
26207 the conditional branch can follow an unconditional jump.
26209 2015-01-27 Caroline Tice <cmtice@google.com>
26211 Committing VTV Cywin/Ming patch for Patrick Wollgast
26212 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26213 if -fvtable-verify=preinit/std is used.
26214 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26215 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26216 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26217 if -fvtable-verify=preinit/std is used.
26218 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26219 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26220 if -fvtable-verify=preinit/std is used.
26221 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26222 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26223 * varasm.c (assemble_variable): Add code to properly set the comdat
26224 section and name for the .vtable_map_vars section in case the
26225 target is PE or COFF.
26227 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26230 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26231 make sane BB profile.
26232 (cgraph_node::expand_thunk): Make sane BB profile.
26233 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26234 * cgraph.h (init_lowered_empty_function): Update prototype.
26235 * config/i386/i386.c (make_resolver_func): Update call.
26236 * predict.c (gate): Disable branch prediction pass if
26237 profile is already there.
26239 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26241 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26242 * opth-gen.awk: Likewise.
26243 * common.opt: Mark flag_fp_contract_mode as Optimization.
26245 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26247 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26248 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26250 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26253 * config/sh/predicates.md (atomic_arith_operand,
26254 atomic_logical_operand): Remove.
26255 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26256 (atomic_arith_operand_0): New predicate.
26257 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26258 Use atomic_arith_operand_0 for input values.
26259 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26260 atomic_compare_and_swap<mode>_soft_gusa,
26261 atomic_compare_and_swap<mode>_soft_tcb,
26262 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26263 arith_reg_operand instead of register_operand.
26264 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26265 atomic_arith_operand_0 for newval input.
26266 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26267 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26268 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26269 arith_reg_operand instead of register_operand.
26270 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26271 fetchop_predicate_1, fetchop_constraint_1_llcs,
26272 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26273 fetchop_constraint_1_imask): New code iterator attributes.
26274 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26275 register_operand. Use fetchop_predicate_1.
26276 (atomic_fetch_<fetchop_name>si_hard,
26277 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26278 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26279 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26280 and arith_reg_operand instead of register_operand. Use
26281 fetchop_predicate_1, fetchop_constraint_1_gusa.
26282 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26283 and arith_reg_operand instead of register_operand. Use
26284 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26286 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26287 and arith_reg_operand instead of register_operand. Use
26288 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26290 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26291 register_operand. Use atomic_logical_operand_1.
26292 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26293 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26294 arith_reg_operand instead of register_operand.
26295 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26296 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26297 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26298 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26299 register_operand. Use fetchop_predicate_1.
26300 (atomic_<fetchop_name>_fetchsi_hard,
26301 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26302 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26303 fetchop_constraint_1_llcs.
26304 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26305 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26306 fetchop_constraint_1_gusa.
26307 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26308 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26309 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26310 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26311 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26312 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26313 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26314 register_operand. Use atomic_logical_operand_1.
26315 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26316 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26317 arith_reg_operand instead of register_operand.
26318 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26319 arith_reg_operand instead of register_operand. Use logical_operand
26320 and K08. Adjust asm sequence to allow R0 usage.
26321 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26322 arith_reg_operand instead of register_operand. Use logical_operand
26325 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26328 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26329 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26330 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26331 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26332 all bits in *val_wide.
26334 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26336 * varpool.c (tls_model_names): Fix names.
26337 (varpool_node::dump): Dump tls- prefix for tls models.
26339 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26340 Bernd Schmidt <bernds@codesourcery.com>
26341 Nathan Sidwell <nathan@codesourcery.com>
26343 * config/nvptx/mkoffload.c: New file.
26344 * config/nvptx/t-nvptx: Add build rules for it.
26345 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26346 (extra_programs): Add mkoffload.
26347 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26349 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26351 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26353 PR middle-end/64809
26354 * cfgexpand.c (reorder_operands): Skip debug gimples.
26356 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26358 PR tree-optimization/64277
26359 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26360 range info when possible to refine estimation.
26362 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26364 PR tree-optimization/64718
26365 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26366 be a 16bit unsigned integer when n->range is 16.
26367 (bswap_replace): Convert src to that type if necessary for all bswap
26368 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26369 set in pass_optimize_bswap::execute ().
26371 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26373 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26374 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26375 integer and floating point variants.
26376 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26378 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26380 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26381 for all vector modes.
26383 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26386 * doc/sourcebuild.texi (comdat_group): Document.
26388 2015-01-28 Terry Guo <terry.guo@arm.com>
26390 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26392 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26394 * toplev.c (print_version): Add param "show_global_state", and
26395 only print GGC and plugin information if it is true.
26396 (init_asm_output): Pass in "true" for the new param when calling
26398 (process_options): Likewise.
26399 (toplev::main): Likewise.
26400 * toplev.h (print_version): Add new param to decl.
26402 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26406 * tree.c (lookup_binfo_at_offset): New function.
26407 (get_binfo_at_offset): Use it.
26409 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26412 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26413 on vtable being vtable.
26415 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26417 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26418 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26419 -mhotpatch= option.
26420 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26421 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26422 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26424 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26425 (s390_hotpatch_hw_max): New name.
26426 (s390_hotpatch_trampoline_halfwords): Renamed.
26427 (s390_hotpatch_hw_before_label): New name.
26428 (get_hotpatch_attribute): Removed.
26429 (s390_hotpatch_hw_after_label): New name.
26430 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26432 (s390_attribute_table): Ditto.
26433 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26434 (s390_function_num_hotpatch_hw): New name.
26435 Remove special handling of inline functions and hotpatching.
26436 Return number of nops before and after the function label.
26437 (s390_can_inline_p): Removed.
26438 (s390_asm_output_function_label): Emit a configurable number of nops
26439 after the function label.
26440 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26441 (TARGET_CAN_INLINE_P) Removed.
26442 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26444 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26445 Jiong Wang <jiong.wang@arm.com>
26447 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26449 (cb<optab><mode>1): Likewise.
26450 * config/aarch64/iterators.md (bcond): New define_code_attr.
26452 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26454 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26457 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26459 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26462 2015-01-27 Richard Biener <rguenther@suse.de>
26464 * tree-vrp.c (update_value_range): Intersect the range with
26465 old recorded SSA name range information.
26467 2015-01-27 Nick Clifton <nickc@redhat.com>
26469 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26470 BC, DE and HL registers directly, not via AX.
26471 When decrementing the stack pointer by a large amount, transfer SP
26472 into AX and perform the subtraction there.
26473 (rl78_expand_epilogue): Perform the inverse of the above
26476 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26478 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26480 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26481 Yury Gribov <y.gribov@samsung.com>
26484 * ubsan.c (ubsan_source_location): Refactor code.
26485 (ubsan_type_descriptor): Update type size. Refactor code.
26487 2015-01-27 Richard Biener <rguenther@suse.de>
26489 PR tree-optimization/56273
26490 PR tree-optimization/59124
26491 PR tree-optimization/64277
26492 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26493 from the first VRP pass.
26495 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26498 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26499 handle the first argument in the same loop as all the other arguments.
26501 PR rtl-optimization/61058
26502 * jump.c (cleanup_barriers): Update basic block boundaries
26503 if BLOCK_FOR_INSN is non-NULL on PREV.
26505 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26507 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26508 bounds narrowing, already instrumented calls and calls to
26509 not instrumentable functions.
26511 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26513 PR tree-optimization/64807
26514 * wide-int.cc (wi::divmod_internal): Clear
26515 b_dividend[dividend_blocks_needed].
26517 2015-01-26 DJ Delorie <dj@redhat.com>
26519 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26520 volatile memory references.
26522 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26525 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26527 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26528 shifts if it already fits into K08.
26530 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26533 * ipa-inline.c (inline_small_functions): Print "unknown" even
26534 if edge->call_stmt is non-NULL, but has builtins or unknown
26537 PR middle-end/64421
26538 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26539 with asterisk, skip the first character.
26541 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26544 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26547 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26550 * config/i386/i386.md (*movdi_internal): Also check operand 0
26551 to determine TYPE_LEA operand.
26552 (*movsi_internal): Ditto.
26554 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26556 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26557 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26559 2015-01-26 Renlin Li <renlin.li@arm.com>
26561 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26563 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26566 2015-01-26 Richard Biener <rguenther@suse.de>
26568 PR middle-end/64764
26569 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26570 combining two BIT_AND_EXPR predicates.
26572 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26575 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26577 2015-01-26 Terry Guo <terry.guo@arm.com>
26579 * config/arm/arm.c (arm_file_start): Update the assignment of
26580 Tag_ABI_HardFP_use.
26582 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26584 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26586 config/arm/arm.md: Include the new Cortex-A57 model.
26587 (generic_sched): Don't use generic_sched when tuning for
26590 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26591 Uros Bizjak <ubizjak@gmail.com>
26593 * config/i386/i386.c (get_builtin_code_for_version): Add
26594 support for BMI and BMI2 multiversion functions.
26596 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26598 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26599 (extract_bit_field): Likewise.
26600 (extract_low_bits): Likewise.
26601 (expand_mult): Likewise.
26602 (expand_mult_highpart_adjust): Likewise.
26604 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26606 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26607 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26608 * config/i386/i386.c (processor_model): Add
26609 M_INTEL_COREI7_BROADWELL.
26610 (arch_names_table): Add "broadwell".
26612 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26621 * config/sh/sh-protos.h
26622 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26623 sh_extending_set_of_reg::use_as_unextended_reg,
26624 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26625 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26626 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26627 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26628 (sh_treg_insns): New class.
26629 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26630 (scope_counter): New class.
26631 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26632 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26633 sh_extending_set_of_reg::can_use_as_unextended_reg,
26634 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26635 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26636 sh_split_treg_set_expr): New functions.
26637 (addsubcosts): Handle treg_set_expr.
26638 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26639 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26640 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26641 (sh_insn_operands_modified_between_p): Make non-static.
26642 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26643 simple_mem_operand in addition to displacement_mem_operand.
26644 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26645 (treg_set_expr, treg_set_expr_not_const01,
26646 arith_reg_or_treg_set_expr): New predicates.
26647 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26648 arith_or_int_operand instead of logical_operand. Convert to
26649 insn_and_split. Try to optimize constant operand in splitter.
26650 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26651 (*tstqi_t_zero): Delete.
26652 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26653 (tstsi_t_and_not): Delete.
26654 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26655 Convert to insn_and_split.
26656 (unnamed split, tstsi_t_zero_extract_xor,
26657 tstsi_t_zero_extract_subreg_xor_little,
26658 tstsi_t_zero_extract_subreg_xor_big): Delete.
26659 (*tstsi_t_shift_mask): New insn_and_split.
26660 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26661 to recombine with surrounding insns when splitting.
26662 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26663 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26664 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26665 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26666 (*cbranch_div0s: Delete.
26667 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26668 Try to recombine with surrounding insns when splitting. Add operand
26670 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26671 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26672 *addc_r_r_msb, *addc_2r_msb): Delete.
26673 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
26675 (*addc_negreg_t): New insn_and_split.
26676 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26677 Try to recombine with surrounding insns when splitting.
26678 Add operand order variants.
26679 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
26680 insn_and_split patterns.
26681 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
26682 surrounding insns when splitting.
26683 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
26684 (*rotcl): Likewise. Add zero_extract variant.
26685 (*ashrsi2_31): New insn_and_split.
26686 (*negc): Convert to insn_and_split. Use treg_set_expr.
26687 (*zero_extend<mode>si2_disp_mem): Update comment.
26688 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
26690 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
26691 with surrounding insns when splitting.
26692 (any_treg_expr_to_reg): New insn_and_split.
26693 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
26694 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
26695 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
26696 *zero_extract_2): New single bit zero extract patterns.
26697 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
26698 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
26699 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
26700 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
26702 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
26703 register_operand for set source.
26705 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
26707 * i386.opt (prefetch_sse): New targetsave.
26708 * i386.c (ix86_function_specific_save): Save prefetch_sse.
26709 (ix86_function_specific_restore): Restore prefetch_sse and initialize
26710 ix86_cost/ix86_tune_cost.
26712 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26714 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
26715 Support the JIT by using 0 as the language type.
26717 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
26720 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
26721 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
26722 (mark_regno_live, process_bb_lives): Pass new parameter value to
26723 make_hard_regno_born.
26725 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26727 PR rtl-optimization/63637
26728 PR rtl-optimization/60663
26729 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26730 if elt->cost is MAX_COST for ASM_OPERANDS.
26731 (find_sets_in_insn): Fix up comment typo.
26732 (cse_insn): Don't set src_volatile for all non-volatile
26733 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26734 or with "memory" clobber. Set elt->cost to MAX_COST
26735 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
26736 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26738 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26740 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26743 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26745 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26746 libgcc/config/i386/elf-lib.h.
26748 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26751 * gcc.c (print_configuration): Don't print a blank line at the end
26753 (run_attempt): ... but here unstead.
26755 PR middle-end/64734
26756 * omp-low.c (scan_sharing_clauses): Don't ignore
26757 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
26758 on target data/update constructs.
26760 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
26763 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
26764 (DEBUG_RELOAD): Removed define.
26765 (m32c_limit_reload_class): Enable traces with if DEBUG0.
26766 (m32c_function_arg): Added a type cast.
26767 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
26768 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
26769 * config/m32c/bitops.md (andqi3_16): Likewise.
26770 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
26771 (push_a01_l): Likewise.
26773 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26776 * main.c (main): Construct toplev instances with init_signals=true.
26777 * toplev.c (general_init): Add param "init_signals", and use it to
26778 conditionalize the calls to signal and host_hooks.extra_signals.
26779 (toplev::toplev): Add param "init_signals".
26780 (toplev::main): When invoking general_init, pass m_init_signals
26781 to control whether signal-handlers are installed.
26782 * toplev.h (toplev::toplev): Add param "init_signals".
26783 (toplev::m_init_signals): New field.
26785 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26788 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26789 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26790 latter may be affected by the former (e.g. on i686).
26792 2015-01-23 Martin Liska <mliska@suse.cz>
26794 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26795 false positive during profiledbootstrap.
26797 2015-01-23 Tom de Vries <tom@codesourcery.com>
26800 * lto-opts.c (lto_write_options): Output non-explicit conservative
26802 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26803 (append_compiler_options): Pass -fopenacc through.
26805 2015-01-23 Tom de Vries <tom@codesourcery.com>
26808 * lto-opts.c (lto_write_options): Output non-explicit conservative
26810 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26811 (append_compiler_options): Pass -fopenmp through.
26813 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26816 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26819 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26820 * diagnostic.def (DK_ICE_NOBT): New kind.
26821 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26822 like DK_ICE, but never print backtrace.
26823 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26824 (internal_error_no_backtrace): New function.
26825 * gcc.c (execute): Use internal_error_no_backtrace instead of
26828 2015-01-22 Jeff Law <law@redhat.com>
26831 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26832 improve code density for small immediate to memory case.
26833 (insv): Better handle bitfield assignments when the field is
26834 being set to all ones.
26835 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26838 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26839 Jakub Jelinek <jakub@redhat.com>
26841 PR middle-end/64729
26842 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26843 for !TARGET_LIBC_PROVIDES_SSP version and
26844 -fstack-protector-{all,strong,explicit} otherwise.
26845 * config/freebsd.h (LINK_SSP_SPEC): Handle
26846 -fstack-protector-{strong,explicit}.
26848 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
26849 H.J. Lu <hongjiu.lu@intel.com>
26852 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26855 2015-01-22 Wei Mi <wmi@google.com>
26857 PR rtl-optimization/64557
26858 * dse.c (record_store): Call get_addr for mem_addr.
26859 (check_mem_read_rtx): Likewise.
26861 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
26863 * fold-const.c (const_binop): Add early return for non-tcc_binary.
26865 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
26867 * toplev.c (init_local_tick): Process the failure when read
26868 fails for random_seed.
26870 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26871 'pretty_name' to avoid memory overflow.
26873 2015-01-22 Richard Biener <rguenther@suse.de>
26875 PR middle-end/64728
26876 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26877 abnormal coalescing on undefined SSA names.
26879 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
26883 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26885 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26887 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
26889 PR middle-end/63325
26890 * fold-const.c (fold_checksum_tree): Don't include value of
26891 expr->decl_with_vis.symtab_node in the checksum.
26893 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26895 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26897 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
26900 * gcc.c (insert_comments): New function.
26901 (try_generate_repro): Call it.
26902 (append_text): Removed.
26904 2015-01-22 Richard Biener <rguenther@suse.de>
26906 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26907 with IL incompatible options. Properly honor user optimize
26910 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
26912 PR rtl-optimization/64682
26913 * combine.c (distribute_notes): When moving a death note for
26914 a register that is set in the new I2, make sure to put it
26915 before that new I2.
26917 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
26919 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26920 not TARGET_DEFAULT.
26922 2015-01-21 Jakub Jelinek <jakub@redhat.com>
26925 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26926 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26927 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26930 * doc/invoke.texi (-fsanitize=vptr): Document.
26932 PR rtl-optimization/62078
26933 * dse.c: Include cfgcleanup.h.
26934 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26935 anything call purge_all_dead_edges and cleanup_cfg at the end
26938 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
26940 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26943 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26945 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26948 2015-01-21 David Sherwood <david.sherwood@arm.com>
26949 Tejas Belagod <Tejas.Belagod@arm.com>
26951 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26952 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26953 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26956 2015-01-21 David Sherwood <david.sherwood@arm.com>
26957 Tejas Belagod <Tejas.Belagod@arm.com>
26959 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26960 (aarch64_reverse_mask): New decls.
26961 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26962 (insn_count): New mode_attr.
26963 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26964 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26965 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26966 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26967 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26968 (aarch64_simd_st4): New patterns.
26969 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26970 (aarch64_reverse_mask): New functions.
26972 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
26974 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26976 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26977 addressing modes for BE.
26978 (aarch64_print_operand): Add 'R' specifier.
26979 (aarch64_simd_disambiguate_copy): Delete.
26980 (aarch64_simd_emit_reg_reg_move): New function.
26981 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26982 in define_splits for structural moves.
26983 (mov<mode>): Use less restrictive predicates.
26984 (*aarch64_mov<mode>): Simplify and only allow for LE.
26985 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26987 2015-01-21 Alan Hayward <alan.hayward@arm.com>
26989 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26991 2015-01-21 Richard Henderson <rth@redhat.com>
26994 * ccmp.c (used_in_cond_stmt_p): Remove.
26995 (expand_ccmp_expr): Don't use it.
26997 2015-01-21 Nick Clifton <nickc@redhat.com>
26999 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27002 2015-01-21 Richard Biener <rguenther@suse.de>
27004 PR middle-end/64313
27005 * tree-core.h (builtin_info, builtin_info_type): Turn from
27006 an object with two arrays into an array of an object with
27007 decl and two flags, implicit_p and declared_p.
27008 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27009 set_builtin_decl, set_builtin_decl_implicit_p,
27010 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27011 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27012 * builtins.c (builtin_info): Adjust.
27013 * gimplify.c (gimplify_addr_expr): References to builtins
27014 that have been declared by the user makes them eligible for
27015 use by the compiler. Call set_builtin_decl_implicit_p on them.
27017 2015-01-20 Jeff Law <law@redhat.com>
27020 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27021 allow pc-relative addresses in operand predicates or constraints.
27023 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27025 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27026 neon on aarch32 processors for stringops.
27028 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27031 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27033 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27036 * ipa-inline.c: Include lto-streamer.h
27037 (report_inline_failed_reason): Output source file differences and
27038 flags on optimization/target node mismatch.
27039 (can_inline_edge_p): Consider caller to be the outer inline function;
27040 be less restrictive about matching opimize and optimize_size attributes.
27041 (inline_account_function_p): Break out from ...
27042 (inline_small_functions): ... here.
27043 * ipa-inline-transform.c (clone_inlined_nodes): Use
27044 inline_account_function_p.
27045 (inline_call): Use optimize attribution; use inline_account_function_p.
27046 (inline_transform): Use opt_for_fn.
27047 * ipa-inline.h (inline_account_function_p): Declare.
27049 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27052 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27053 mode if bitsize <= 0.
27054 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27055 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27056 sizes and positions.
27058 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27060 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27061 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27063 (TARGET_ASM_FILE_END): Define.
27065 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27067 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27068 (struct tune_params): Use the enum.
27069 * arm.c (arm_*_tune): Update.
27070 (arm_option_override): Update.
27072 2015-01-20 Richard Biener <rguenther@suse.de>
27075 * ipa-reference.c (add_static_var): Inline ...
27076 (analyze_function): ... here after splitting out from ...
27077 (is_proper_for_analysis): ... this.
27079 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27082 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27083 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27084 replace the conditional with it's true branch.
27085 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27086 (arm_lra_p): Remove.
27088 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27090 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27092 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27094 * config/tilegx/mul-tables.c: Move symtab.h include after
27095 coretypes.h include.
27096 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27097 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27098 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27099 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27100 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27102 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27106 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27108 PR rtl-optimization/64081
27109 * loop-iv.c (def_pred_latch_p): New function.
27110 (latch_dominating_def): Allow specific cases with non-single
27112 (iv_get_reaching_def): Likewise.
27113 (check_complex_exit_p): New function.
27114 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27115 with exits not executing on any iteration.
27117 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27120 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27121 to set branch cost.
27123 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27126 * i386.c (gate): Check flag_expensive_optimizations and
27128 (ix86_option_override_internal): Drop optimize_size condition
27129 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27130 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27131 MASK_PREFER_AVX128.
27132 (ix86_avx256_split_vector_move_misalign,
27133 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27134 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27135 optimize_insn_for_speed_p check.
27137 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27139 * config/mips/mips.h (FP_ASM_SPEC): New define.
27140 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27143 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27146 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27147 nullptr for insn when reaching the first insn.
27148 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27149 (sh_insn_operands_modified_between_p): Add nullptr check.
27150 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27151 sign extending mem load if the insn contains any UNSPEC or
27154 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27156 * params.def (inline-unit-growth): Drop to 15%.
27157 * invoke.texi (inline-unit-growth): Document change.
27159 2015-01-19 Martin Liska <mliska@suse.cz>
27162 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27163 function for second argument of OBJ_TYPE_REF.
27165 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27168 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27169 whether function is an alias.
27171 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27173 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27176 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27178 PR rtl-optimization/64671
27179 * lra-remat.c (operand_to_remat): Don't consider jump and call
27182 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27185 * config/rs6000/default64.h: Include rs6000-cpus.def.
27186 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27187 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27188 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27190 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27192 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27193 pseudo-op to specify assembler dialect.
27195 2015-01-19 Martin Liska <mliska@suse.cz>
27198 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27199 Handle safe potentially removed nodes during filtering.
27201 2015-01-19 Martin Liska <mliska@suse.cz>
27203 * doc/extend.texi (no_icf): Add new attribute description.
27204 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27205 where the pass attempts to merge a function with no_icf attribute.
27207 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27210 * doc/md.texi (ARM Options): Document register constraints.
27212 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27213 Andrew Pinski <apinski@cavium.com>
27216 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27217 (ashl<mode>3): Don't expand if operands[2] is not constant.
27219 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27222 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27223 Match xor-and-xor RTL pattern.
27225 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27227 PR rtl-optimization/64081
27228 * loop-iv.c (def_pred_latch_p): New function.
27229 (latch_dominating_def): Allow specific cases with non-single
27231 (iv_get_reaching_def): Likewise.
27232 (check_complex_exit_p): New function.
27233 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27234 with exits not executing on any iteration.
27236 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27238 * common.opt (fgraphite): Fix a typo.
27240 2015-01-19 Felix Yang <felix.yang@huawei.com>
27242 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27244 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27245 uminp, smax_nanp, smin_nanp): New builtins.
27246 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27247 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27248 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27249 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27250 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27251 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27252 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27253 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27254 vpminnms_f32): Rewrite using builtin functions.
27256 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27259 * omp-low.c (offload_symbol_decl): Remove variable.
27260 (get_offload_symbol_decl): Remove function.
27261 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27262 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27263 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27264 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27265 BUILT_IN_GOACC_UPDATE don't pass it at all.
27267 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27269 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27272 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27274 * ipa-chkp.c (chkp_produce_thunks): Add early param
27275 to split thunks production into two passes. Keep
27276 'always_inline' function bodies after the first pass.
27277 (pass_data_ipa_chkp_early_produce_thunks): New.
27278 (pass_ipa_chkp_early_produce_thunks): New.
27279 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27280 chkp_produce_thunks signature.
27281 (make_pass_ipa_chkp_early_produce_thunks): New.
27282 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27283 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27284 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27286 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27288 * cgraph.c (cgraph_node::dump): Dump profile flags.
27290 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27293 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27294 reg appear first in the parallel.
27296 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27298 * ipa-reference.c (set_reference_optimization_summary,
27299 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27301 (ignore_module_statics): New static var.
27302 (propagate_bits): If ipa-reference is disabled, do not look into local
27304 (analyze_function): Disable analysis when ipa_reference is disabled.
27305 (generate_summary): Do not dump when reference is disabled;
27306 collect vars accessed from functions with ipa-reference disabled.
27307 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27309 (gate): Enable for LTO.
27310 (ignore_edge_p): New function.
27311 (propagate): Skip functions w/o ipa-reference analysis.
27312 * optc-save-gen.awk: Handle optimize_debug correctly.
27313 * opth-gen.awk: Likewise.
27314 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27315 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27316 fira-share-save-slots, fira-share-spill-slots,
27317 fmodulo-sched-allow-regmoves, fpartial-inlining,
27318 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27319 ftracer, ftree-parallelize-loops, fassociative-math,
27320 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27322 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27323 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27325 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27328 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27331 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27333 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27335 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27337 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27338 Remove duplicate option listings.
27340 2015-01-18 Felix Yang <felix.yang@huawei.com>
27342 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27343 (autofdo_source_profile::get_callsite_total_count,
27344 function_instance::get_function_instance_by_decl,
27345 string_table::get_index, string_table::get_index_by_decl,
27346 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27347 Fix comment typos. Reformatting and minor code rearrangement.
27349 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27351 * config/rs6000/rs6000.md (probe_stack): Delete.
27352 (probe_stack_address): New.
27354 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27356 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27357 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27359 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27361 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27362 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27363 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27365 (rs6000_libcall_value): Use the new function.
27367 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27369 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27371 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27373 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27374 implement a more precise life analysis for it during backward scan.
27376 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27378 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27380 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27382 PR rtl-optimization/52773
27383 * calls.c (emit_library_call_value): When pushing arguments use
27384 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27385 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27386 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27388 2015-01-17 Jeff Law <law@redhat.com>
27390 PR rtl-optimization/32790
27391 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27392 not ZERO_EXTEND in SET_DESTs.
27394 2015-01-17 Alan Modra <amodra@gmail.com>
27396 * cprop.c (do_local_cprop): Revert last change.
27398 2015-01-16 DJ Delorie <dj@redhat.com>
27399 Nick Clifton <nickc@redhat.com>
27401 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27402 (addhi3_real): Likewise. Fix [HL+0] syntax.
27403 (subqi3_real): Likewise.
27404 (subhi3_real): Likewise.
27405 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27406 (cbranchhi4_real): Likewise.
27407 (cbranchhi4_real_inverted): Likewise.
27408 (cbranchsi4_real_lt): Likewise.
27409 (cbranchsi4_real_ge): Likewise.
27410 (cbranchsi4_real_ge): Likewise.
27411 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27412 (sub<mode>3_virt): Likewise.
27413 (cbranchqi4_virt): Likewise.
27414 (cbranchhi4_virt): Likewise.
27415 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27416 always use '[reg+imm]' even when imm is zero.
27417 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27418 (rl78_general_operand): New.
27419 (rl78_nonimmediate_operand): New.
27420 (rl78_nonfar_operand): Use them.
27421 (rl78_nonfar_nonimm_operand): Likewise.
27422 (rl78_stack_based_mem): Fix.
27423 * config/rl78/constraints.md (Ibqi): New.
27428 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27429 (iorqi3): Likewise.
27430 (xorqi3): Likewise.
27431 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27433 * config/rl78/constrains (Qs8): New constraint.
27434 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27435 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27436 * config/rl78/rl78-real.md (update_Z): New attribute.
27437 Update patterns to set it.
27438 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27439 shorter compare and branch sequence can be used.
27440 (cbranchhi4_real): Likewise.
27441 (cbranchhi4_real_inverted): Likewise.
27443 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27444 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27446 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27447 (rl78_option_override): Allow -mes0 only if C.
27448 (characterize_address): Support subregs of symbol_refs.
27449 (rl78_addr_space_address_mode): Move. Add __near.
27450 (rl78_far_p): Likewise.
27451 (rl78_addr_space_pointer_mode): Likewise.
27452 (rl78_as_legitimate_address): Likewise.
27453 (rl78_addr_space_subset_p): Likewise.
27454 (rl78_addr_space_convert): Likewise.
27455 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27456 symbols with -mes0.
27457 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27459 (rl78_alloc_physical_registers_op1): Change logic to prefer
27460 symbol[BC] addressing.
27461 (frodata_section): New.
27462 (rl78_asm_init_sections): Initialize it.
27463 (rl78_select_section): Put __far readonly symbols in .frodata.
27464 (rl78_make_type_far): New.
27465 (rl78_insert_attributes): Force all readonly symbols to be
27467 (rl78_asm_out_integer): New.
27468 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27469 * config/rl78/rl78.opt (-mes0): New.
27471 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27472 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27473 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27474 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27475 (rl78_saddr_p): New.
27476 (rl78_output_aligned_common): New.
27477 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27478 (rl78_handle_saddr_attribute): New.
27479 (rl78_handle_naked_attribute): New.
27480 (rl78_attribute_table): Add saddr.
27481 (rl78_print_operand_1): Don't print '!' on saddr operands.
27482 (rl78_print_operand_1): Strip encodings.
27484 (rl78_strip_name_encoding): New.
27485 (rl78_attrlist_to_encoding): New.
27486 (rl78_encode_section_info): New.
27487 (rl78_asm_init_sections): New.
27488 (rl78_select_section): New.
27489 (rl78_output_labelref): New.
27490 (rl78_output_aligned_common): New.
27491 (rl78_asm_out_integer): New.
27492 (rl78_asm_ctor_dtor): New.
27493 (rl78_asm_constructor): New.
27494 (rl78_asm_destructor): New.
27496 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27497 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27498 (transcode_memory_rtx): Update.
27499 (rl78_expand_epilogue): Use A_REG instead of 0.
27501 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27503 * config/arm/arm-protos.h (struct tune_params): New field
27504 sched_autopref_queue_depth.
27505 * config/arm/arm.c (sched-int.h): Include header.
27506 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27507 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27508 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27509 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27510 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27511 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27512 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27513 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27514 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27515 * config/arm/t-arm (arm.o): Update.
27516 * haifa-sched.c (update_insn_after_change): Update.
27517 (rank_for_schedule): Use auto-prefetcher model, if requested.
27518 (autopref_multipass_init): New static function.
27519 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27520 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27521 variable for debug dumps.
27522 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27523 (autopref_multipass_dfa_lookahead_guard): New global function that
27524 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27525 (init_h_i_d): Update.
27526 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27527 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27528 (autopref_multipass_data_): Structure for auto-prefetcher data.
27529 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27530 (struct _haifa_insn_data:autopref_multipass_data): New field.
27531 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27532 (autopref_multipass_dfa_lookahead_guard): Declare.
27534 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27536 * rtlanal.c (get_base_term): Handle SCRATCH.
27538 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27540 * config/aarch64/aarch64.c
27541 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27542 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27544 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27545 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27547 2015-01-17 Alan Modra <amodra@gmail.com>
27549 * cprop.c (do_local_cprop): Disallow replacement of fixed
27552 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27555 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27558 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27560 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27561 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27563 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27565 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27566 * config/arm/thumb1.md: ... Here.
27568 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27570 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27571 TImode for TARGET_32BIT.
27573 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27575 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27576 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27578 (rs6000_abi_word_mode): New function.
27580 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27582 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27583 instead of UNITS_PER_WORD to describe the size of stack slots.
27585 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27587 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27588 as rs6000_promote_function_mode. Move comment to there.
27589 (rs6000_promote_function_mode): New function.
27591 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27593 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27594 -mpowerpc64 is active.
27596 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27598 PR middle-end/64353
27599 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27602 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27604 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27605 introduced in revision 219724.
27607 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27608 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27611 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27612 destination is not a GP reg.
27613 (*movdi_aarch64): Likewise.
27615 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27618 * config/rs6000/default64.h: Revert ISA change.
27620 2015-01-16 Richard Biener <rguenther@suse.de>
27622 PR middle-end/64614
27623 * tree-ssa-uninit.c: Include tree-cfg.h.
27624 (MAX_SWITCH_CASES): New define.
27625 (convert_control_dep_chain_into_preds): Handle switch statements.
27626 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27627 (normalize_one_pred_1): Do not split bit-manipulations.
27630 2015-01-16 Richard Biener <rguenther@suse.de>
27632 PR tree-optimization/64568
27633 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27634 complex load rewriting for TARGET_MEM_REFs.
27636 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27638 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27640 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27643 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27645 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27646 (aarch64_lra_p): Remove.
27648 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27651 * ipa-chkp.h (chkp_instrumentable_p): New.
27652 * ipa-chkp.c: Include tree-inline.h.
27653 (chkp_instrumentable_p): New.
27654 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27655 Fix processing of not instrumentable functions.
27656 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27657 not instrumentable functions.
27658 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27659 chkp_instrumentable_p.
27660 * tree-inline.h (copy_forbidden): New.
27661 * tree-inline.c (copy_forbidden): Not static anymore.
27663 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27665 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27668 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27670 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27671 type OP_OUT to OP_INOUT.
27673 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27675 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27676 (high x) y) to y if x and y have the same base.
27678 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27680 * config/arm/cortex-a57.md: New.
27681 * config/aarch64/aarch64.md: Include it.
27682 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
27683 * config/aarch64/aarch64-tune.md: Regenerate.
27685 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
27688 * ccmp.c (expand_ccmp_next): New function.
27689 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
27690 and compare insn sequence.
27691 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
27692 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
27693 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
27694 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
27695 (*ccmp_ior): Changed to ccmp_ior<mode>.
27696 (cmp<mode>): New pattern.
27697 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
27699 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
27701 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
27703 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
27704 _mm256_bsrli_epi128): New.
27705 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
27707 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27709 * expmed.c (store_bit_field_using_insv): Improve warning message.
27710 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
27712 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27714 PR rtl-optimization/64011
27715 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
27716 there is partial overflow.
27718 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27720 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
27722 (nds32_expand_epilogue_v3pop): Likewise.
27723 * config/nds32/nds32.md (sibcall): Define this for sibling call
27725 (sibcall_register): Likewise.
27726 (sibcall_immediate): Likewise.
27727 (sibcall_value): Likewise.
27728 (sibcall_value_register): Likewise.
27729 (sibcall_value_immediate): Likewise.
27730 (sibcall_epilogue): Likewise.
27731 (epilogue): Pass false to indicate this is not a sibcall epilogue.
27732 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27733 (nds32_expand_epilogue_v3pop): Likewise.
27735 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27737 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27738 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27739 (return_internal): New.
27740 (return): Define this named pattern.
27741 (simple_return): Define this named pattern.
27742 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27743 pattern instead of unspec_volatile_func_return.
27744 (nds32_expand_epilogue_v3pop): Likewise.
27745 (nds32_can_use_return_insn): New function.
27747 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27749 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27750 * config/nds32/nds32.md (pop25return): New.
27751 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27752 pop25return pattern.
27754 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27756 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
27757 -mforbid-fp-as-gp, and -mex9 options.
27759 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27761 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
27762 remove -mgp-direct option.
27764 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27766 * doc/invoke.texi (--param early-inlining-insns): Update default value.
27767 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
27769 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27771 * ipa-inline.c (inline_small_functions): Work around hints
27774 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
27777 * doc/invoke.texi (Option Summary): Document new Nios II
27779 (Nios II Options): Likewise.
27780 * config/nios2/nios2.opt: Add -mgpopt= option support.
27781 Modify existing -mgpopt and -mno-gpopt options to be aliases.
27782 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27783 * config/nios2/nios2.c (nios2_option_override): Adjust
27784 -mgpopt defaulting.
27785 (nios2_in_small_data_p): Return true for explicit small data
27786 sections even with -G0.
27787 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27790 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27793 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27795 (inline_call): Fix removal of aliases.
27797 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27799 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27800 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27801 * opts.c (common_handle_option): Add -fsanitize=vptr.
27802 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27803 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27804 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27805 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27806 (ubsan_expand_vptr_ifn): New prototype.
27807 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27808 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27809 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27810 expand_LOOP_VECTORIZED): Make argument nameless, remove
27812 (expand_UBSAN_VPTR): New function.
27813 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27815 (UBSAN_VPTR): New internal function.
27816 * sanopt.c (tree_map_traits): Renamed to ...
27817 (sanopt_tree_map_traits): ... this.
27818 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27819 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27820 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
27821 (maybe_optimize_ubsan_vptr_ifn): New function.
27822 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27823 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
27825 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27826 internal calls like pure functions for aliasing, even when they
27827 have other side-effects that prevent making them ECF_PURE.
27828 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27829 (ubsan_expand_vptr_ifn): New function.
27831 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
27833 PR rtl-optimization/64110
27834 * stmt.c (parse_output_constraint): Process '^' and '$'.
27835 (parse_input_constraint): Ditto.
27836 * lra-constraints.c (process_alt_operands): Process the new
27838 * ira-costs.c (record_reg_classes): Process the new constraint
27840 * genoutput.c (indep_constraints): Add '^' and '$'.
27841 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27842 * doc/md.texi: Add description of the new constraints.
27844 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
27845 Bernd Schmidt <bernds@codesourcery.com>
27846 Cesar Philippidis <cesar@codesourcery.com>
27847 James Norris <jnorris@codesourcery.com>
27848 Tom de Vries <tom@codesourcery.com>
27849 Ilmir Usmanov <i.usmanov@samsung.com>
27850 Dmitry Bocharnikov <dmitry.b@samsung.com>
27851 Evgeny Gavrin <e.gavrin@samsung.com>
27852 Jakub Jelinek <jakub@redhat.com>
27854 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27855 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27856 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27857 New function types.
27858 * builtins.c: Include "gomp-constants.h".
27859 (expand_builtin_acc_on_device): New function.
27860 (expand_builtin, is_inexpensive_builtin): Handle
27861 BUILT_IN_ACC_ON_DEVICE.
27862 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27864 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27866 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27867 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27868 i386/intelmic-offload.h.
27869 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27870 to libgomp and its dependencies.
27871 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27872 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27873 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27874 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27875 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27876 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27877 * doc/generic.texi: Update for OpenACC changes.
27878 * doc/gimple.texi: Likewise.
27879 * doc/invoke.texi: Likewise.
27880 * doc/sourcebuild.texi: Likewise.
27881 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27882 GF_OMP_FOR_KIND_OACC_LOOP.
27883 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27884 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27885 GF_OMP_TARGET_KIND_OACC_UPDATE,
27886 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27888 * gimple.c: Update comments for OpenACC changes.
27889 * gimple.def: Likewise.
27890 * gimple.h: Likewise.
27891 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27892 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27893 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27894 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27895 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27897 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27898 * gimplify.c: Include "gomp-constants.h".
27899 Update comments for OpenACC changes.
27900 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27901 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27902 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27903 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27904 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27905 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27906 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27907 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27908 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27910 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27911 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27912 OMP_CLAUSE_SET_MAP_KIND.
27913 (gimplify_oacc_cache): New function.
27914 (gimplify_omp_for): Handle OACC_LOOP.
27915 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27917 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27918 OACC_EXIT_DATA, OACC_UPDATE.
27919 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27920 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27921 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27922 (gimplify_body): Consider flag_openacc next to flag_openmp.
27923 * lto-streamer-out.c: Include "gomp-constants.h".
27924 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27925 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27926 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27927 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27928 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27929 (BUILT_IN_ACC_ON_DEVICE): New builtins.
27930 * omp-low.c: Include "gomp-constants.h".
27931 Update comments for OpenACC changes.
27932 (struct omp_context): Add reduction_map, gwv_below, gwv_this
27934 (extract_omp_for_data, use_pointer_for_field, install_var_field)
27935 (new_omp_context, delete_omp_context, scan_sharing_clauses)
27936 (create_omp_child_function, scan_omp_for, scan_omp_target)
27937 (check_omp_nesting_restrictions, lower_reduction_clauses)
27938 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27939 Update for OpenACC changes.
27940 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27941 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27942 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27943 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27944 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27945 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
27947 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27948 Handle GF_OMP_FOR_KIND_OACC_LOOP.
27949 (expand_omp_target, lower_omp_target): Handle
27950 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27951 GF_OMP_TARGET_KIND_OACC_UPDATE,
27952 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27953 GF_OMP_TARGET_KIND_OACC_DATA.
27954 (pass_expand_omp::execute, execute_lower_omp)
27955 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27957 (offload_symbol_decl): New variable.
27958 (oacc_get_reduction_array_id, oacc_max_threads)
27959 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27960 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27961 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27962 (oacc_gimple_assign, oacc_initialize_reduction_data)
27963 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27965 (is_targetreg_ctx): Remove function.
27966 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27967 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27968 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27969 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27970 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27971 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27972 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27973 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27974 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27975 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27976 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27977 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27978 * tree-core.h: Update comments for OpenACC changes.
27979 (enum omp_clause_map_kind): Remove.
27980 (struct tree_omp_clause): Change type of map_kind member from enum
27981 omp_clause_map_kind to unsigned char.
27982 * tree-inline.c: Update comments for OpenACC changes.
27983 * tree-nested.c: Likewise. Include "gomp-constants.h".
27984 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27985 (convert_tramp_reference_stmt, convert_gimple_call): Update for
27986 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27987 OMP_CLAUSE_SET_MAP_KIND.
27988 * tree-pretty-print.c: Include "gomp-constants.h".
27989 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27990 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27991 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27992 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27993 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27994 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
27995 instead of OMP_CLAUSE_MAP_*.
27996 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27997 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27998 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27999 * tree-streamer-in.c: Include "gomp-constants.h".
28000 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28001 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28002 * tree-streamer-out.c: Include "gomp-constants.h".
28003 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28005 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28006 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28007 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28008 * tree.c (omp_clause_num_ops): Update accordingly.
28009 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28011 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28012 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28013 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28014 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28015 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28016 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28017 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28018 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28019 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28021 * config/i386/intelmic-offload.h: New file.
28022 * config/nvptx/offload.h: Likewise.
28024 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28026 * explow.h: Remove duplicate contents.
28027 * dojump.h: Likewise.
28029 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28031 * arm.c (arm_xgene_tune): Add default initializer for instruction
28034 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28038 * ipa.c (symbol_table::remove_unreachable_nodes):
28039 Do not put abstract origins into boundary.
28041 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28043 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28044 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28046 2015-01-15 Steve Ellcey <sellcey@mips.com>
28048 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28049 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28050 builtins.def, and chkp-builtins.def.
28052 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28054 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28057 2015-01-15 Richard Biener <rguenther@suse.de>
28059 PR tree-optimization/61743
28060 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28061 information on PHIs for some simple cases.
28063 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28065 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28067 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28068 * config/arm/arm-cores.def (xgene1): New entry.
28069 * config/arm/arm-tables.opt: Regenerate.
28070 * config/arm/arm-tune.md: Regenerate.
28071 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28073 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28075 * tree-if-conv.c: Include hash-map.h.
28076 (aggressive_if_conv): New variable.
28077 (fold_build_cond_expr): Add simplification of non-zero condition.
28078 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28079 destination block is not always executed.
28080 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28081 than two predecessors if AGGRESSIVE_IF_CONV is true.
28082 (if_convertible_stmt_p): Fix commentary.
28083 (all_preds_critical_p): New function.
28084 (has_pred_critical_p): New function.
28085 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28086 BB can have more than two predecessors and all incoming edges can be
28088 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28089 to compute predicate for true edge.
28090 (find_phi_replacement_condition): Delete this function.
28091 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28092 Allow interchange PHI arguments if EXTENDED is false.
28093 Change check that block containing reduction statement candidate
28094 is predecessor of phi-block since phi may have more than two arguments.
28095 (phi_args_hash_traits): New helper structure.
28096 (struct phi_args_hash_traits): New type.
28097 (phi_args_hash_traits::hash): New function.
28098 (phi_args_hash_traits::equal_keys): New function.
28099 (gen_phi_arg_condition): New function.
28100 (predicate_scalar_phi): Add handling of phi nodes with more than two
28101 arguments, delete COND and TRUE_BB arguments, insert body of
28102 find_phi_replacement_condition to predicate ordinary phi nodes.
28103 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28104 delete call of find_phi_replacement_condition and invoke
28105 predicate_scalar_phi with two arguments.
28106 (insert_gimplified_predicates): Add assert that non-predicated block
28107 don't have statements to insert.
28108 (ifcvt_split_critical_edges): New function.
28109 (ifcvt_split_def_stmt): Likewise.
28110 (ifcvt_walk_pattern_tree): Likewise.
28111 (stmt_is_root_of_bool_pattern): Likewise.
28112 (ifcvt_repair_bool_pattern): Likewise.
28113 (ifcvt_local_dce): Likewise.
28114 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28115 is copy of inner or outer loop force_vectorize field, invoke
28116 ifcvt_split_critical_edges, ifcvt_local_dce and
28117 ifcvt_repair_bool_pattern for aggressive if-conversion.
28119 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28121 * config/aarch64/aarch64.md: Include xgene1.md.
28122 * config/aarch64/xgene1.md: New file.
28124 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28126 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28127 xgene1 (APM XGene-1) core definition.
28128 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28129 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28130 * doc/invoke.texi: Document -mcpu=xgene1.
28132 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28134 * dojump.h: New header file.
28135 * explow.h: Likewise.
28136 * expr.h: Remove includes.
28137 Move expmed.c prototypes to expmed.h.
28138 Move dojump.c prototypes to dojump.h.
28139 Move alias.c prototypes to alias.h.
28140 Move explow.c prototypes to explow.h.
28141 Move calls.c prototypes to calls.h.
28142 Move emit-rtl.c prototypes to emit-rtl.h.
28143 Move varasm.c prototypes to varasm.h.
28144 Move stmt.c prototypes to stmt.h.
28145 (saved_pending_stack_adjust): Move to dojump.h.
28146 (adjust_address): Move to explow.h.
28147 (adjust_address_nv): Move to emit-rtl.h.
28148 (adjust_bitfield_address): Likewise.
28149 (adjust_bitfield_address_size): Likewise.
28150 (adjust_bitfield_address_nv): Likewise.
28151 (adjust_automodify_address_nv): Likewise.
28152 * explow.c (expr_size): Move to expr.c.
28153 (int_expr_size): Likewise.
28154 (tree_expr_size): Likewise.
28155 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28156 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28157 * genemit.c (main): Generate includes statistics.h, real.h,
28158 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28160 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28161 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28162 explow.h, emit-rtl.h, stmt.h.
28163 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28164 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28165 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28166 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28167 emit-rtl.h, varasm.h, stmt.h.
28168 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28169 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28170 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28171 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28172 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28173 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28174 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28175 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28176 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28177 tm.h tree.h varasm.h vec.h wide-int.h.
28178 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28179 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28180 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28181 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28182 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28183 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28184 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28185 * loop-iv.c: Likewise.
28186 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28187 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28188 statistics.h stmt.h tree.h varasm.h wide-int.h.
28189 * lra-constraints.c: Likewise.
28190 * lra-eliminations.c: Likewise.
28191 * lra-lives.c: Likewise.
28192 * lra-remat.c: Likewise.
28193 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28194 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28195 statistics.h stmt.h tree.h varasm.h wide-int.h.
28196 * hw-doloop.c: Likewise.
28197 * ira-color.c: Likewise.
28198 * ira-emit.c: Likewise.
28199 * loop-doloop.c: Likewise.
28200 * loop-invariant.c: Likewise.
28201 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28202 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28203 statistics.h stmt.h tree.h varasm.h wide-int.h.
28204 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28205 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28206 statistics.h stmt.h tree.h varasm.h wide-int.h.
28207 * combine-stack-adj.c: Likewise.
28210 * ifcvt.c: Likewise.
28211 * ira-costs.c: Likewise.
28212 * jump.c: Likewise.
28213 * lra-coalesce.c: Likewise.
28214 * lra-spills.c: Likewise.
28215 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28216 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28217 stmt.h varasm.h wide-int.h.
28218 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28219 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28221 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28222 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28223 statistics.h stmt.h varasm.h wide-int.h.
28224 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28225 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28226 varasm.h wide-int.h.
28227 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28228 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28229 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28230 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28231 statistics.h stmt.h.
28232 * config/tilepro/tilepro.c: Likewise.
28233 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28234 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28235 * config/pdp11/pdp11.c: Likewise.
28236 * config/xtensa/xtensa.c: Likewise.
28237 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28238 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28240 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28241 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28242 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28243 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28244 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28245 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28246 * rtl-chkp.c: Likewise.
28247 * tree-chkp-opt.c: Likewise.
28248 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28249 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28250 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28251 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28252 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28253 statistics.h stmt.h.
28254 * tree-vect-data-refs.c: Likewise.
28255 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28256 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28257 rtl.h statistics.h stmt.h varasm.h.
28258 * internal-fn.c: Likewise.
28259 * ipa-icf-gimple.c: Likewise.
28260 * lto-section-out.c: Likewise.
28261 * tree-data-ref.c: Likewise.
28262 * tree-nested.c: Likewise.
28263 * tree-outof-ssa.c: Likewise.
28264 * tree-predcom.c: Likewise.
28265 * tree-pretty-print.c: Likewise.
28266 * tree-scalar-evolution.c: Likewise.
28267 * tree-ssa-strlen.c: Likewise.
28268 * tree-vect-loop.c: Likewise.
28269 * tree-vect-patterns.c: Likewise.
28270 * tree-vect-slp.c: Likewise.
28271 * tree-vect-stmts.c: Likewise.
28272 * tsan.c: Likewise.
28273 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28274 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28276 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28277 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28278 statistics.h stmt.h varasm.h.
28279 * loop-unroll.c: Likewise.
28280 * ubsan.c: Likewise.
28281 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28282 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28284 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28285 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28286 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28287 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28288 statistics.h stmt.h.
28289 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28290 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28291 statistics.h stmt.h varasm.h.
28292 * gimple-match-head.c: Likewise.
28293 * lto-cgraph.c: Likewise.
28294 * lto-section-in.c: Likewise.
28295 * lto-streamer-in.c: Likewise.
28296 * lto-streamer-out.c: Likewise.
28297 * tree-affine.c: Likewise.
28298 * tree-cfg.c: Likewise.
28299 * tree-cfgcleanup.c: Likewise.
28300 * tree-if-conv.c: Likewise.
28301 * tree-into-ssa.c: Likewise.
28302 * tree-ssa-alias.c: Likewise.
28303 * tree-ssa-copyrename.c: Likewise.
28304 * tree-ssa-dse.c: Likewise.
28305 * tree-ssa-forwprop.c: Likewise.
28306 * tree-ssa-live.c: Likewise.
28307 * tree-ssa-math-opts.c: Likewise.
28308 * tree-ssa-pre.c: Likewise.
28309 * tree-ssa-sccvn.c: Likewise.
28310 * tree-tailcall.c: Likewise.
28311 * tree-vect-generic.c: Likewise.
28312 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28313 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28314 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28315 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28316 * varasm.c: Likewise.
28317 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28318 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28320 * init-regs.c: Likewise.
28322 * omp-low.c: Likewise.
28323 * stack-ptr-mod.c: Likewise.
28324 * tree-ssa-reassoc.c: Likewise.
28325 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28326 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28328 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28329 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28330 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28331 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28332 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28333 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28334 * tree-ssa-phiopt.c: Likewise.
28335 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28336 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28337 * config/fr30/fr30.c: Likewise.
28338 * config/frv/frv.c: Likewise.
28339 * expr.c: Likewise.
28340 * final.c: Likewise.
28341 * optabs.c: Likewise.
28342 * passes.c: Likewise.
28343 * simplify-rtx.c: Likewise.
28344 * stmt.c: Likewise.
28345 * toplev.c: Likewise.
28346 * var-tracking.c: Likewise.
28347 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28348 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28349 * lower-subreg.c: Likewise.
28350 * postreload-gcse.c: Likewise.
28352 * reginfo.c: Likewise.
28353 * store-motion.c: Likewise.
28354 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28355 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28356 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28357 fixed-value.h hashtab.h statistics.h stmt.h.
28358 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28359 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28360 * except.c: Likewise.
28361 * explow.c: Likewise.
28362 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28363 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28365 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28366 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28367 * tree-ssa-structalias.c: Likewise.
28368 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28369 fixed-value.h insn-config.h real.h statistics.h.
28370 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28371 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28372 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28373 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28374 * cfgbuild.c: Likewise.
28375 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28376 fixed-value.h real.h rtl.h statistics.h stmt.h.
28377 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28378 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28379 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28380 fixed-value.h real.h statistics.h stmt.h.
28381 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28382 fixed-value.h real.h statistics.h stmt.h varasm.h.
28383 * cprop.c: Likewise.
28384 * modulo-sched.c: Likewise.
28385 * postreload.c: Likewise.
28386 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28387 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28388 statistics.h stmt.h varasm.h.
28389 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28390 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28391 rtl.h statistics.h stmt.h varasm.h.
28392 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28393 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28395 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28396 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28398 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28399 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28401 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28402 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28403 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28404 function.h real.h statistics.h stmt.h varasm.h.
28405 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28406 insn-config.h real.h statistics.h stmt.h.
28407 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28408 statistics.h stmt.h.
28409 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28410 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28411 statistics.h stmt.h varasm.h.
28412 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28413 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28414 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28415 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28416 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28417 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28418 statistics.h stmt.h varasm.h.
28419 * ipa-polymorphic-call.c: Likewise.
28420 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28421 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28422 statistics.h stmt.h.
28423 * config/c6x/c6x.c: Likewise.
28424 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28425 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28426 statistics.h stmt.h varasm.h.
28427 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28428 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28430 * ipa-split.c: Likewise.
28431 * tree-eh.c: Likewise.
28432 * tree-ssa-dce.c: Likewise.
28433 * tree-ssa-loop-niter.c: Likewise.
28434 * tree-vrp.c: Likewise.
28435 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28436 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28438 * config/nds32/nds32-fp-as-gp.c: Likewise.
28439 * config/nds32/nds32-intrinsic.c: Likewise.
28440 * config/nds32/nds32-isr.c: Likewise.
28441 * config/nds32/nds32-md-auxiliary.c: Likewise.
28442 * config/nds32/nds32-memory-manipulation.c: Likewise.
28443 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28444 * config/nds32/nds32-predicates.c: Likewise.
28445 * config/nds32/nds32.c: Likewise.
28446 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28447 fixed-value.h hashtab.h real.h statistics.h.
28448 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28449 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28450 * config/arm/arm.c: Likewise.
28451 * config/avr/avr.c: Likewise.
28452 * config/bfin/bfin.c: Likewise.
28453 * config/h8300/h8300.c: Likewise.
28454 * config/i386/i386.c: Likewise.
28455 * config/ia64/ia64.c: Likewise.
28456 * config/iq2000/iq2000.c: Likewise.
28457 * config/m32c/m32c.c: Likewise.
28458 * config/m32r/m32r.c: Likewise.
28459 * config/m68k/m68k.c: Likewise.
28460 * config/mcore/mcore.c: Likewise.
28461 * config/mep/mep.c: Likewise.
28462 * config/mips/mips.c: Likewise.
28463 * config/mn10300/mn10300.c: Likewise.
28464 * config/moxie/moxie.c: Likewise.
28465 * config/pa/pa.c: Likewise.
28466 * config/rl78/rl78.c: Likewise.
28467 * config/rx/rx.c: Likewise.
28468 * config/s390/s390.c: Likewise.
28469 * config/sh/sh.c: Likewise.
28470 * config/sparc/sparc.c: Likewise.
28471 * config/spu/spu.c: Likewise.
28472 * config/stormy16/stormy16.c: Likewise.
28473 * config/v850/v850.c: Likewise.
28474 * config/vax/vax.c: Likewise.
28475 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28476 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28477 * config/msp430/msp430.c: Likewise.
28478 * predict.c: Likewise.
28479 * value-prof.c: Likewise.
28480 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28481 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28482 * config/microblaze/microblaze.c: Likewise.
28483 * config/nios2/nios2.c: Likewise.
28484 * config/rs6000/rs6000.c: Likewise.
28485 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28486 insn-config.h real.h rtl.h statistics.h stmt.h.
28487 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28488 insn-config.h real.h statistics.h stmt.h.
28489 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28490 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28491 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28492 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28493 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28494 fixed-value.h real.h statistics.h stmt.h.
28495 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28496 fixed-value.h statistics.h stmt.h.
28497 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28500 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28502 * gengtype.c (create_user_defined_type): Workaround
28503 -Wmaybe-uninitialized false positives.
28504 * cse.c (fold_rtx): Likewise.
28505 * loop-invariant.c (gain_for_invariant): Likewise.
28507 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28509 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28510 set the memory attributes in all cases but clear MEM_EXPR if need be.
28512 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28514 PR tree-optimization/64434
28515 * cfgexpand.c (reorder_operands): New function.
28516 (expand_gimple_basic_block): Insert call of reorder_operands if
28519 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28521 * config/mips/micromips.md (*swp): Remove explicit parallel.
28522 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28523 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28524 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28525 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28526 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28527 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28528 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28529 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28530 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28531 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28532 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28533 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28534 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28535 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28536 (mips_wrdsp): Likewise.
28537 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28539 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28540 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28541 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28542 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28543 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28544 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28545 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28546 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28547 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28549 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28551 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28552 (mips_print_operand): Support 'y' to print exact log2 in decimal
28554 * config/mips/mips.h (ISA_HAS_LSA): New define.
28555 (ISA_HAS_DLSA): Likewise.
28556 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28557 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28559 2015-01-15 Martin Liska <mliska@suse.cz>
28562 * optc-save-gen.awk: Add support for array types.
28564 2015-01-15 Richard Biener <rguenther@suse.de>
28566 PR middle-end/64365
28567 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28568 for MEM_REF access functions with the same base can never partially
28571 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28573 * common.opt: New option -fstack-protector-explicit.
28574 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28575 (stack_protect_decl_phase): Handle stack_protect attribute for
28576 explicit stack protection requests.
28577 (expand_used_vars): Similarly.
28578 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28579 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28580 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28582 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28585 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28587 (sh_extending_set_of_reg): New struct.
28588 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28589 sh_remove_reg_dead_or_unused_notes): New Declarations.
28590 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28591 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28592 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28593 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28594 convert to insn_and_split and use new function sh_split_tst_subregs.
28596 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28598 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28600 (Optimization Options): Move -fuse-ld documentation to...
28601 (Link Options): ...here.
28603 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28605 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28607 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28608 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28609 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28610 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28611 instead of ZR for the memory operand of LL/SC.
28612 (compare_and_swap_12, sync_add<mode>): Likewise.
28613 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28614 (sync_new_<optab>_12, sync_nand_12): Likewise.
28615 (sync_old_nand_12, sync_new_nand_12): Likewise.
28616 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28617 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28618 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28619 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28620 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28621 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28622 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28623 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28624 * doc/md.texi (ZC): Update description.
28626 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28628 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28629 memory model is CONSUME.
28630 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28631 expand_builtin_atomic_store): Change invalid memory model errors to
28633 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28634 and issue warning for CONSUME.
28636 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28638 * lto-cgraph: Update function comments for
28639 lto_symtab_encoder_encode_*.
28641 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28643 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28645 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28647 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28648 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28649 lto_stream_offload_p instead.
28650 * lto-streamer.h (select_what_to_stream): Remove argument.
28651 * passes.c (ipa_write_summaries): Likewise.
28652 * tree-pass.h (ipa_write_summaries): Likewise.
28654 2015-01-14 Richard Biener <rguenther@suse.de>
28656 PR tree-optimization/59354
28657 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28658 groups larger than the slp group size as having gaps.
28660 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28662 PR middle-end/59448
28663 * builtins.c (get_memmodel): Promote consume to acquire always.
28665 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28668 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28671 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28674 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28676 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28677 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
28678 AVX512VBMI, as it implies AVX512BW.
28680 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28683 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
28684 (vec_unpacks_hi_v16sf): Ditto.
28686 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28688 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
28691 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28693 * doc/invoke.texi (mapcs): Mention deprecation.
28694 (mapcs-frame): Likewise.
28696 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
28699 * config/arm/arm.c (callee_saved_reg_p): Define.
28700 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
28701 register is callee saved instead of !call_used_regs[reg].
28702 (thumb1_compute_save_reg_mask): Likewise.
28704 2015-01-14 Hale Wang <hale.wang@arm.com>
28706 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
28709 2015-01-14 Richard Biener <rguenther@suse.de>
28712 * tree-inline.c (insert_debug_decl_map): Check destination
28713 function MAY_HAVE_DEBUG_STMTS.
28714 (insert_init_debug_bind): Likewise.
28715 (insert_init_stmt): Remove redundant check.
28716 (remap_gimple_stmt): Drop debug stmts if the destination
28717 function has var-tracking assignments disabled.
28719 2015-01-14 Martin Liska <mliska@suse.cz>
28721 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
28722 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28724 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28727 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28728 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28730 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28732 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28733 level from an ARCH; do not inject the default.
28734 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28735 MIPS_ISA_LEVEL_SPEC.
28736 (MIPS_ISA_NAN2008_SPEC): Update comment.
28737 (BASE_DRIVER_SELF_SPECS): Likewise.
28738 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28739 MIPS_DEFAULT_ISA_LEVEL_SPEC.
28740 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28741 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28742 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28744 2015-01-14 Richard Biener <rguenther@suse.de>
28746 PR tree-optimization/64493
28747 PR tree-optimization/64495
28748 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28749 assign the proper vectorized PHI to the inner loop exit PHIs.
28751 2015-01-14 Joey Ye <joey.ye@arm.com>
28753 * config/arm/arm.c (arm_compute_save_reg_mask):
28754 Do not save lr in case of tail call.
28755 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
28757 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
28759 * tree-vrp.c (check_array_ref): Emit more warnings
28760 for warn_array_bounds >= 2.
28761 * common.opt: New option -Warray-bounds=.
28762 * doc/invoke.texi: Document -Warray-bounds=.
28764 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
28766 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
28767 (mforbid-fp-as-gp): Remove.
28769 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
28770 (nds32_symbol_load_store_p): Remove.
28771 (nds32_fp_as_gp_check_available): Clean up implementation.
28772 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
28774 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28775 fp-as-gp and ex9 cases.
28777 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28779 * tree-profile.c (init_ic_make_global_vars): Drop workaround
28780 for bintuils bug 14342.
28781 (init_ic_make_global_vars): Likewise.
28782 (gimple_init_edge_profiler): Likewise.
28783 (gimple_gen_ic_func_profiler): Likewise.
28785 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28787 * ipa-inline.c (inline_small_functions): Swap the operands in
28790 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28793 * ipa-inline-analysis.c (node_growth_cache): Remove.
28794 (initialize_growth_caches): Do not initialize it.
28795 (free_growth_caches): Do not free it.
28796 (do_estimate_growth): Rename to ...
28797 (estimate_growth): ... this one; drop growth cache code.
28798 (growth_likely_positive): Always go the heuristics way.
28799 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28800 (reset_edge_caches): Do not reset node growth.
28801 (heap_edge_removal_hook): Do not maintain cache.
28802 (inline_small_functions): Likewise; strenghten sanity check.
28803 (ipa_inline): Do not maintain caches.
28804 * ipa-inline.h (node_growth_cache): Remove.
28805 (do_estimate_growth): Remove to ...
28806 (estimate_growth): this one; remove inline version.
28807 (reset_node_growth_cache): Remove.
28809 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28812 * ipa-inline.c (inline_small_functions): Update callee keys after
28813 resolving speculation
28814 (inline_small_functions): Always check monotonicity of the queue.
28816 2015-01-13 Marek Polacek <polacek@redhat.com>
28818 PR middle-end/64391
28819 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28821 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28823 PR rtl-optimization/64286
28824 * ree.c (combine_reaching_defs): Move part of comment earlier,
28825 remove !SCALAR_INT_MODE_P check.
28826 (add_removable_extension): Don't add vector mode
28827 extensions if all uses of the source register aren't the same
28830 2015-01-13 Renlin Li <renlin.li@arm.com>
28832 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28833 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28835 2015-01-13 Martin Liska <mliska@suse.cz>
28837 * ipa-icf.c (sem_function::equals_private): Call new functions
28838 cl_target_option_print_diff and cl_optimization_print_diff.
28839 * optc-save-gen.awk (cl_target_option_print_diff): New function.
28840 (cl_optimization_print_diff): Likewise.
28841 * opth-gen.awk: Likewise.
28843 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
28845 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28846 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28847 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28848 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28849 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28850 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28852 2015-01-13 Andrew Pinski <apinski@cavium.com>
28854 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28855 instead of src mode.
28857 2015-01-13 Richard Biener <rguenther@suse.de>
28860 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28863 2015-01-13 Andrew Pinski <apinski@cavium.com>
28865 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28867 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28869 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28871 PR middle-end/63974
28872 * cfgexpand.c (expand_computed_goto): Don't call
28873 convert_memory_address here.
28875 2015-01-13 Richard Biener <rguenther@suse.de>
28877 PR tree-optimization/64406
28878 * tree-loop-distibution.c (pass_loop_distribution::execute):
28879 Reset the SCEV hashtable if we distributed anything.
28881 2015-01-13 Richard Biener <rguenther@suse.de>
28883 PR tree-optimization/64404
28884 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28885 SLP types for CSEd loads.
28887 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28889 PR tree-optimization/64436
28890 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28891 merge of two symbolic numbers for a bitwise OR to ...
28892 (perform_symbolic_merge): This. Also fix computation of the range and
28893 end of the symbolic number corresponding to the result of a bitwise OR.
28895 2015-01-13 Richard Biener <rguenther@suse.de>
28897 PR tree-optimization/64568
28898 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28899 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28901 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28903 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28904 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28906 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28908 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28909 target-specific symbol_ref flag.
28910 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28911 resides in rodata section.
28912 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28913 (nds32_encode_section_info): New function.
28915 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28917 * config/nds32/nds32.md (call): Use pseudo instruction bal which
28918 clobbers TA_REGNUM if large code model is specified.
28919 (call_register): Likewise.
28920 (call_immediate): Likewise.
28921 (call_value): Likewise.
28922 (call_value_register): Likewise.
28923 (call_value_immediate): Likewise.
28925 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28927 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28928 (TARGET_CMODEL_MEDIUM): New macro.
28929 (TARGET_CMODEL_LARGE): New macro.
28930 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28931 code model setting in assembly code.
28933 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28935 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28936 Remove MASK_GP_DIRECT flag.
28937 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28938 one of the multilib default options.
28939 * config/nds32/nds32.opt (mgp-direct): Remove.
28940 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28941 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
28943 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28945 * config/nds32/nds32.opt (mcmodel): Add new option.
28946 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28947 to describe code model.
28949 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
28952 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28954 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
28956 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28957 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28958 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28959 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28960 __builtin_sh_set_fpscr.
28962 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28964 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28965 after a funtion name just to indicate it is a function.
28966 ([-fsanitize-undefined-trap-on-error]): Likewise.
28967 ([-fdbg-cnt=]): Likewise.
28968 ([-mmemcpy]): Likewise.
28969 ([-mflush-func]): Likewise.
28970 ([-msynci]): Likewise.
28972 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28974 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28977 2015-01-12 Jakub Jelinek <jakub@redhat.com>
28979 PR tree-optimization/64563
28980 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28981 instead of != VR_VARYING.
28984 * config/i386/i386.c (ix86_expand_prologue): Add
28985 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28987 PR tree-optimization/64454
28988 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28989 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28990 for signed or [0, op1 - 1] for unsigned modulo.
28991 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28992 even if op1 does not satisfy integer_pow2p.
28995 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28997 2015-01-12 Jeff Law <law@redhat.com>
29000 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29001 (trunchiqi2, truncsihi2): Similarly.
29003 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29004 rather than calling F.
29006 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29008 * tsan.c (instrument_expr): Use force_gimple_operand.
29009 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29011 2015-01-12 Richard Biener <rguenther@suse.de>
29013 PR tree-optimization/64530
29014 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29017 2015-01-12 Richard Biener <rguenther@suse.de>
29019 PR middle-end/64357
29020 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29023 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29025 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29026 Cortex-A17 tuning parameters.
29027 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29029 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29031 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29032 * config/arm/arm.c (arm_macro_fusion_p): New function.
29033 (arm_macro_fusion_pair_p): Likewise.
29034 (TARGET_SCHED_MACRO_FUSION_P): Define.
29035 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29036 (ARM_FUSE_NOTHING): Likewise.
29037 (ARM_FUSE_MOVW_MOVT): Likewise.
29038 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29039 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29040 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29041 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29042 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29043 arm_cortex_a5_tune): Specify fuseable_ops value.
29045 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29048 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29049 test for PIE with copy reloc.
29050 * configure: Regenerated.
29052 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29054 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29056 (arm_tls_descseq_addr): Likewise.
29057 (arm_gen_movmemqi): Likewise.
29058 (arm_expand_epilogue_apcs_frame): Likewise.
29059 (arm_expand_epilogue): Likewise.
29060 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29063 2015-01-12 Martin Liska <mliska@suse.cz>
29066 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29067 volatility for correct operands.
29069 2015-01-12 Martin Liska <mliska@suse.cz>
29071 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29072 indication that a function is not leaf.
29073 (sem_function::compare_polymorphic_p): Likewise.
29075 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29077 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29078 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29079 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29080 fold-const.h, tree-check.h.
29082 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29086 * ipa-inline.c (compute_uninlined_call_time,
29087 compute_inlined_call_time): Use counts for extra precision when
29089 (big_speedup_p): Fix formating.
29090 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29091 (relative_time_benefit): Remove.
29092 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29093 merge guessed and read profile paths.
29094 (inline_small_functions): Count only !optimize_size functions into
29095 initial size; be more lax about sanity check when profile is used;
29096 be sure to update inlined function profile when profile is read.
29098 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29101 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29102 cost when edge becomes direct.
29103 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29104 is resolved or when introducing new speculation.
29106 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29110 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29111 '||' to fix typo issue.
29113 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29114 accept and return NULL.
29116 2015-01-12 Martin Liska <mliska@suse.cz>
29118 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29119 file for being inlined.
29120 (cgraph_set_edge_callee): Delete.
29121 (cgraph_edge::redirect_callee): Move function to header file
29123 (cgraph_edge::make_direct): Use new function.
29124 (cgraph_edge::dump_edge_flags): New function created from
29125 static dump_edge_flags function.
29126 (cgraph_node::dump): Use new function.
29127 (cgraph_edge::verify_count_and_frequency): New function created
29128 from verify_edge_count_and_frequency.
29129 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29130 from verify_edge_corresponds_to_fndecl.
29131 (verify_edge_corresponds_to_fndecl): Delete.
29132 (cgraph_node::verify_node): Use new function.
29133 * cgraph.h (cgraph_edge::set_callee): New function.
29134 (cgraph_edge::dump_edge_flags): Likewise.
29135 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29137 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29139 * ipa-utils.c (estimate_function_body_sizes): Do not
29140 free node params when called late with early=true.
29142 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29144 * doc/md.texi (Instruction Patterns): Rewrite text for
29146 (Example): Likewise.
29148 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29150 * doc/invoke.texi (Option Summary): Break long lines.
29151 [(-fdiagnostics-color)]: Put long literal in @smallexample
29153 [(-fsanitize-recover)]: Likewise.
29154 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29155 [(-ffast-math)]: Likewise.
29156 [(--param max-inline-insns-recursive)]: Likewise.
29157 [(--param max-inline-recursive-depth)]: Likewise.
29158 [(-mno-text-section-literals)]: Likewise.
29160 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29162 * doc/install.texi: Update for libgomp being renamed from "GNU
29163 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29165 * doc/sourcebuild.texi: Likewise.
29167 2015-01-10 Anthony Green <green@moxielogic.com>
29169 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29170 mul.x availability for moxiebox configuration.
29172 2015-01-09 Anthony Green <green@moxielogic.com>
29174 * config/moxie/moxie.md: Tabify assembly output.
29176 2015-01-09 Anthony Green <green@moxielogic.com>
29178 * config/moxie/moxie.md (CC_REG): Correct register definition.
29180 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29182 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29183 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29186 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29188 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29190 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29191 Jakub Jelinek <jakub@redhat.com>
29193 PR middle-end/64412
29194 * lto-streamer.h (lto_stream_offload_p): New declaration.
29195 * lto-streamer.c (lto_stream_offload_p): New variable.
29196 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29197 at the same time as section_name_prefix.
29198 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29199 if lto_stream_offload_p.
29200 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29201 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29202 (write_ts_function_decl_tree_pointers): Don't
29203 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29204 * tree-streamer-in.c (unpack_value_fields): Don't stream
29205 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29206 (lto_input_ts_function_decl_tree_pointers): Don't stream
29207 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29208 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29209 instead of section_name_prefix string comparisons.
29211 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29213 PR rtl-optimization/64536
29214 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29217 2015-01-09 Michael Collison <michael.collison@linaro.org>
29219 PR tree-optimization/64322
29220 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29221 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29223 2015-01-09 Tom de Vries <tom@codesourcery.com>
29225 PR rtl-optimization/64539
29226 * regcprop.c (kill_clobbered_values): Factor out of ...
29227 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29228 instead of note_stores with kill_clobbered_value.
29230 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29232 * ginclude/unwind-arm-common.h: Revert previous commit.
29234 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29236 * config.gcc (arm*-*-freebsd*): New configuration.
29237 * config/arm/freebsd.h: New file.
29238 * config.host: Add extra components for arm*-*-freebsd*.
29239 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29240 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29242 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29244 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29246 * config/rs6000/t-rtems: Add e6500 multilibs.
29248 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29250 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29253 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29255 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29256 MULTILIB_EXCEPTIONS.
29258 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29260 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29261 MULTILIB_EXCEPTIONS.
29263 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29265 * config/arm/t-rtems-eabi: Rename to...
29266 * config/arm/t-rtems: ...this.
29267 * config/arm/rtems-eabi.h: Rename to...
29268 * config/arm/rtems.h: ...this.
29269 * config.gcc (arm*-*-rtems*): Reflect changes above.
29271 2015-01-09 Richard Biener <rguenther@suse.de>
29273 PR tree-optimization/64410
29274 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29276 (execute_update_addresses_taken): Deal with that.
29277 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29278 loads/stores for complex variables.
29280 2015-01-09 Martin Liska <mliska@suse.cz>
29282 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29284 (func_checker::compare_memory_operand): New function.
29285 (func_checker::compare_operand): Split case to newly
29287 (func_checker::compare_cst_or_decl): New function.
29288 (func_checker::compare_gimple_call): Identify
29290 (func_checker::compare_gimple_assign): Likewise.
29291 * ipa-icf-gimple.h: New function.
29293 2015-01-09 Martin Liska <mliska@suse.cz>
29296 * sreal.c (sreal::dump): Change unsigned format to signed for
29298 (sreal::to_double): Replace exp2 with scalbln.
29300 2015-01-09 Martin Liska <mliska@suse.cz>
29302 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29303 * ipa-icf.c (sem_function::equals_private): Add support for target and
29304 (sem_item_optimizer::merge_classes): Remove redundant function
29305 optimization flags comparison.
29306 * tree.h (target_opts_for_fn): New function.
29308 2015-01-09 Tom de Vries <tom@codesourcery.com>
29310 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29312 2015-01-09 Kito Cheng <kito@0xlab.org>
29314 PR rtl-optimization/64348
29315 * lra-constraints.c (split_reg): Fix caller-save store/restore
29316 instruction generation.
29318 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29320 PR gcov-profile/61790
29321 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29322 long long. Fallback to int64_t if host doesn't have long long and
29323 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29325 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29327 PR tree-optimization/63989
29328 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29329 from 1000 to 10000.
29330 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29331 (get_stridx): If we don't have a record for certain SSA_NAME,
29332 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29333 constant offset, call get_stridx_plus_constant.
29334 (get_stridx_plus_constant): New function.
29335 (zero_length_string): Don't use get_stridx here.
29338 PR middle-end/64388
29339 * dse.c (struct insn_info): Mention frame_read set also
29340 before reload for tail calls on some targets.
29341 (scan_insn): Revert 2014-12-22 change. Set frame_read
29342 also before reload for tail calls if
29343 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29344 instead of add_non_frame_wild_read for non-const/memset
29345 tail calls after reload.
29347 2015-01-08 Jason Merrill <jason@redhat.com>
29349 * ubsan.c (do_ubsan_in_current_function): New.
29350 (pass_ubsan::gate): Use it.
29351 * ubsan.h: Declare it.
29352 * convert.c (convert_to_integer): Use it.
29354 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29357 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29358 compare_code when it is unconditionally overwritten afterwards.
29359 Use ix86_reverse_condition instead of reverse_condition. Don't
29360 change code if *reverse_condition* returned UNKNOWN and don't
29361 swap ct/cf and negate diff in that case.
29363 2015-01-08 Mike Stump <mikestump@comcast.net>
29365 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29366 (pass_tsan_O0::gate): Likewise.
29367 * extend.texi (Function Attributes): Add no_sanitize_thread
29370 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29372 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29373 for registering builtins.
29374 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29375 add -fopenmp to the argv_obstack used when invoking
29376 compile_for_target.
29378 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29379 add "-m32" or "-m64" to argv_obstack.
29380 (generate_host_descr_file): Likewise, when invoking host_compiler.
29381 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29384 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29386 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29389 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29392 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29393 constant load if constant operand fits into I08.
29395 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29398 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29399 and TREE_THIS_VOLATILE for MEM_REFs.
29400 (build5_stat): Fix up initialization of TREE_READONLY and
29401 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29403 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29406 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29407 of r for the second alternative of the destination operand.
29409 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29412 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29414 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29416 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29418 ([-fivar-visibility], [-fvisibility]): Likewise.
29420 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29422 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29423 the file where @code, @command, etc is more appropriate.
29425 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29427 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29428 of -mrecip= documentation.
29430 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29433 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29434 correct reload handler if -m32 -mpowerpc64 is used.
29436 2015-01-06 Tom de Vries <tom@codesourcery.com>
29438 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29440 2015-01-08 Christian Bruel <christian.bruel@st.com>
29443 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29445 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29447 PR tree-optimization/63259
29448 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29449 if optab exists for 16bit byteswap.
29451 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29453 * opts.c (common_handle_option): Add support for
29454 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29455 * doc/invoke.texi: Document -fno-sanitize=all,
29456 -f{,no-}sanitize-recover=all. Document that
29457 -fsanitize=float-cast-overflow is not enabled
29458 by -fsanitize=undefined. Fix up documentation
29459 of -f{,no-}sanitize-recover.
29461 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29463 * config.gcc: Add Visium support.
29464 * configure.ac: Likewise.
29465 * configure: Regenerate.
29466 * doc/extend.texi (interrupt attribute): Add Visium.
29467 * doc/invoke.texi: Document Visium options.
29468 * doc/install.texi: Document Visium target.
29469 * doc/md.texi: Document Visium constraints.
29470 * common/config/visium: New directory.
29471 * config/visium: Likewise.
29473 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29475 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29476 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29478 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29480 * combine.c (combine_validate_cost): Do not count the cost of a
29481 split I2 twice. Do not display it twice in the dump, either.
29483 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29485 Revert parts of r219199.
29486 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29488 ([-Wtraditional]): Restore markup on <limits.h>.
29490 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29493 * doc/invoke.texi: Document -Wsuggest-override.
29495 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29497 PR rtl-optimization/64287
29498 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29499 (process_options): Disable flag_ipa_ra if profiling.
29501 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29503 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29505 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29507 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29508 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29509 put under #if TARGET_LOOPS guard.
29511 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29513 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29515 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29517 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29518 * rtl.h (refers_to_regno_p): Add overload.
29520 * bt-load.c: Likewise.
29521 * combine.c: Likewise.
29522 * df-scan.c: Likewise.
29523 * sched-deps.c: Likewise.
29524 * config/s390/s390.c: Likewise.
29525 * config/m32r/m32r.c: Likewise.
29526 * config/rs6000/spe.md: Likewise.
29527 * config/rs6000/rs6000.c: Likewise.
29528 * config/pa/pa.c: Likewise.
29529 * config/stormy16/stormy16.c: Likewise.
29530 * config/cris/cris.c: Likewise.
29531 * config/arc/arc.md: Likewise.
29532 * config/arc/arc.c: Likewise.
29533 * config/sh/sh.md: Likewise.
29534 * config/sh/sh.c: Likewise.
29535 * config/frv/frv.c: Likewise.
29537 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29540 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29541 call as cleanup of the whole body.
29542 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29543 * tsan.c (replace_func_exit): New function.
29544 (instrument_func_exit): Moved earlier.
29545 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29546 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29548 (tsan_pass): Don't call instrument_func_exit.
29549 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29550 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29554 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29555 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29556 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29557 if the result is integer_zerop, return NULL_TREE.
29558 * convert.c (convert_to_integer): Pass expr as ARG.
29560 PR tree-optimization/64465
29561 * tree-inline.c (redirect_all_calls): During inlining
29562 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29563 changed the stmt to a non-throwing call.
29565 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29567 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29568 etc markup throughout the file.
29570 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29572 Enable experimental TSAN support for Ada.
29573 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29575 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29577 PR tree-optimization/64494
29578 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29579 clear SSA_NAME_ANTI_RANGE_P flag.
29581 2015-01-05 Marek Polacek <polacek@redhat.com>
29583 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29585 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29587 Update copyright years.
29589 * gcc.c (process_command): Update copyright notice dates.
29590 * gcov-dump.c: Ditto.
29592 * doc/cpp.texi: Bump @copying's copyright year.
29593 * doc/cppinternals.texi: Ditto.
29594 * doc/gcc.texi: Ditto.
29595 * doc/gccint.texi: Ditto.
29596 * doc/gcov.texi: Ditto.
29597 * doc/install.texi: Ditto.
29598 * doc/invoke.texi: Ditto.
29600 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29602 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29604 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29606 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29607 ([-Wabi]): Likewise.
29608 ([-fmessage-length]): Likewise.
29609 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29610 ([-Wno-discarded-qualifiers]): Likewise.
29611 ([-Wnodiscarded-array-qualifiers]): Likewise.
29612 ([-Wno-virtual-move-assign]): Likewise.
29613 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29614 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29615 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29616 ([-fsanitize-undefined-trap-on-error]): Likewise.
29617 ([-floop-interchange]): Likewise.
29618 ([-ftree-coalesce-inlined-vars]): Likewise.
29619 ([-fvect-cost-model]): Likewise.
29620 ([-flto]): Likewise.
29621 ([--param]): Likewise.
29622 (Spec Files): Likewise.
29623 ([-mstrict-align]): Likewise.
29624 ([-mfix-cortex-a53-835769]): Likewise.
29625 ([-march], [-mtune]): Likewise.
29626 ([-mpic-register]): Likewise.
29627 ([-munaligned-access]): Likewise.
29628 ([-msp8]): Likewise.
29629 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29630 (AVR Built-in Macros): Likewise.
29631 ([-mpreferred-stack-boundary]): Likewise.
29632 ([-mtune-crtl]): Likewise.
29633 ([-mashf]): Likewise.
29634 ([-mmcu=]): Likewise.
29635 ([-minrt]): Likewise.
29636 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29637 ([-mupper-regs]): Likewise.
29638 ([-matomic-model]): Likewise.
29639 ([-mdiv]): Likewise.
29640 ([-mzdcbranch]): Likewise.
29641 ([-mdisable-callt]): Likewise.
29642 ([-msoft-float]): Likewise.
29643 ([-m8byte-align]): Likewise.
29644 ([-fstack-reuse]): Likewise.
29646 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29648 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29649 Fix markup, light copy-editing.
29650 ([-fauto-profile]): Rewrite to fix formatting and content
29653 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29655 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29656 Copy-edit description.
29657 ([-fisolate-erroneous-paths-attribute]): Likewise.
29658 * common.opt (fisolate-erroneous-paths-dereference):
29659 Copy-edit description.
29660 (fisolate-erroneous-paths-attribute): Likewise.
29662 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29664 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29667 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29669 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29670 ([-fvtv-debug]): Likewise.
29671 ([-Wc++-compat]): Likewise.
29672 ([-Wc++11-compat]): Likewise.
29673 ([-Wc++14-compat]): Likewise.
29674 ([-Wno-sized-deallocation]): Likewise.
29675 ([-femit-class-debug-always]): Likewise.
29676 ([-femit-struct-debug-detailed]): Likewise.
29677 ([-fno-keep-inline-dllexport]): Likewise.
29678 ([-fira-algorithm]): Likewise.
29679 ([-fira-region]): Likewise.
29680 ([-flra-remat]): Likewise.
29681 ([-fipa-ra]): Likewise.
29682 ([-fhoist-adjacent-loads]): Likewise.
29683 ([-fisolate-erroneous-paths-dereference]): Likewise.
29684 ([-fisolate-erroneous-paths-attribute]): Likewise.
29685 ([-ftree-switch-conversion]): Likewise.
29686 ([-ftree-tail-merge]): Likewise.
29687 ([-ftree-loop-if-convert]): Likewise.
29688 ([-ftree-loop-if-convert-stores]): Likewise.
29689 ([-ftree-loop-distribution]): Likewise.
29690 ([-ftree-loop-distribute-patterns]): Likewise.
29691 ([-flto-compression-level]): Likewise.
29692 ([-flto-report]): Likewise.
29693 ([-flto-report-wpa]): Likewise.
29694 ([-fuse-linker-plugin]): Likewise.
29695 ([-mfix-cortex-a53-835769]): Likewise.
29696 ([-mno-fix-cortex-a53-835769]): Likewise.
29697 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
29698 explicit listing; add a note to the discussion indicating they
29699 exist. Reorder table to group similar options. Add missing
29700 @opindex entries. Add @need commands throughout the table to
29701 allow it to be split across multiple pages.
29702 ([-m8bit-idiv]): Fix @opindex.
29703 ([-mavx256-split-unaligned-load]): Likewise.
29704 ([-mavx256-split-unaligned-store]): Likewise.
29705 ([-mstack-protector-guard]): Likewise.
29706 ([-mcpu=]): Likewise.
29707 ([-mcpu]): Likewise.
29708 ([-mpointer-size=]): Likewise.
29710 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
29712 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
29713 instead of `m' constraint. Likewise for unnamed movb comparison
29714 patterns using reg_before_reload_operand predicate.
29715 * config/pa/predicates.md (reg_before_reload_operand): Tighten
29716 predicate to reject register index and LO_SUM DLT memory forms
29719 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29721 * doc/invoke.texi (Option Summary): Fix spelling of
29722 -fdevirtualize-at-ltrans.
29723 ([-fdevirtualize]): Fix markup.
29724 ([-fdevirtualize-speculatively]): Fix typo.
29725 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
29726 implementor-speaky.
29727 * common.opt (fdevirtualize-at-ltrans): Likewise.
29728 * ipa-devirt.c: Fix typos in comments throughout the file.
29729 (ipa_devirt): Fix typos in format strings for dump output.
29731 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29733 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29734 discussion of defaults, light copy-editing.
29736 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29738 * tsan.c (instrument_expr): corrected previous checkin.
29740 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29742 Instrument bit field and unaligned accesses for TSAN.
29743 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29744 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29745 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29746 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29747 unaligned memory regions.
29749 2015-01-01 Anthony Green <green@moxielogic.com>
29751 * config/moxie/predicates.md (moxie_general_movsrc_operand):
29752 Restrict move source register offsets to 16 bits.
29754 Copyright (C) 2015 Free Software Foundation, Inc.
29756 Copying and distribution of this file, with or without modification,
29757 are permitted in any medium without royalty provided the copyright
29758 notice and this notice are preserved.