1 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2 Sebastian Pop <s.pop@samsung.com>
4 PR tree-optimization/67700
5 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6 invariant_in_sese_p_rec.
7 (extract_affine): Same.
8 (rewrite_cross_bb_scalar_deps): Call update_ssa.
9 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
10 * sese.h (invariant_in_sese_p_rec): Declare.
12 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14 * doc/extend.texi (Asm Labels): Break out text for data vs
17 2015-09-28 Jiong Wang <jiong.wang@arm.com>
20 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21 Jiong Wang <jiong.wang@arm.com>
23 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
24 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
25 (REG_CLASS_NAMES): Likewise.
26 (REG_CLASS_CONTENTS): Likewise.
27 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
28 (aarch64_register_move_cost): Likewise.
29 (aarch64_load_symref_appropriately): Invoke the new added pattern if
31 * config/aarch64/constraints.md (Uc0): New constraint.
33 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
35 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
37 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
39 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
40 SECTION_EXCLUDE in XO mapping class.
42 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
45 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
46 and handle ne and eq codes.
47 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
48 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
49 CONST_INT_P. Use reverse_condition.
50 (sh_split_treg_set_expr): Likewise.
52 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
54 * config/arm/types.md (type): Add rotate_imm.
55 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
57 (*rorsi3_insn_uxtw): Likewise.
58 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
59 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
60 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
62 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
64 PR rtl-optimization/67481
65 * ifcvt.c (contains_ccmode_rtx_p): New function.
66 (insn_valid_noce_process_p): Use it.
68 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
70 PR rtl-optimization/67456
71 PR rtl-optimization/67464
72 PR rtl-optimization/67465
73 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
74 move in the mode of x. Handle combination of complex and simple
75 block pairs as well as the case when one is empty.
77 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
79 * doc/gimple.texi: Update references to gimple_statement_base.
80 * gdbhooks.py: Likewise.
83 2015-09-28 Daniel Cederman <cederman@gaisler.com>
85 * config/sparc/driver-sparc.c: map LEON to leon3
87 2015-09-28 Daniel Cederman <cederman@gaisler.com>
89 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
90 and make it inverse to change default
91 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
93 * doc/invoke.texi: Document change of default
95 2015-09-28 Daniel Cederman <cederman@gaisler.com>
97 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
98 true on %f0 for a target without FPU.
99 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
101 (untyped_return): Do not load %f0 for a target without FPU.
103 2015-09-28 Andrew Pinski <apinski@cavium.com>
105 * config/aarch64/aarch64.md (prefetch):
106 Change the predicate of operand 0 to register_operand.
108 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
110 * config/i386/predicates.md (register_sse4nonimm_operand): New
112 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
113 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
114 Use register_sse4nonimm_operand as operand 0 predicate.
115 (*vec_extractv8hi_sse2): Remove insn pattern.
116 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
117 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
119 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
120 Kaz Kojima <kkojima@gcc.gnu.org>
123 * config/sh/sh-protos.h (sh_lra_p): Declare.
124 * config/sh/sh.c (sh_lra_p): Make non-static.
125 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
126 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
127 Expand into addsi3_scr if operands[2] if needed.
128 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
129 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
130 (addsi3_scr, *addsi3): New insn_and_split patterns.
132 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
134 PR rtl-optimization/64164
135 PR tree-optimization/67312
139 * cfgexpand.c (parm_in_stack_slot_p): Remove.
140 (ssa_default_def_partition): Remove.
141 (get_rtl_for_parm_ssa_default_def): Remove.
142 (set_rtl): Check that RTL assignments match expectations.
143 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
144 default def location for params and results. Record SSA names
145 or types in REG and MEM attrs, respectively.
147 (expand_one_ssa_partition): Drop logic that assigned MEMs with
148 unassigned addresses.
149 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
150 deferred stack alloc vars.
151 (expand_used_vars): Skip partitions holding parm default defs.
152 Move adjust_one_expanded_partition_var loop...
153 (pass_expand::execute): ... here. Drop redundant assert.
154 Adjust comments before the final loop over all ssa names.
155 Require assigned rtl of parms and results to match exactly.
156 Reset its attributes to match them, not any other variables in
158 (expand_debug_expr): Use entry value for PARM's default defs
159 only iff they have zero nondebug uses.
160 * cfgexpand.h (parm_in_stack_slot_p): Remove.
161 (get_rtl_for_parm_ssa_default_def): Remove.
162 (set_parm_rtl): Declare.
163 * doc/invoke.texi: Improve wording.
164 * explow.c (promote_decl_mode): Fix promote_function_mode for
165 result decls not by reference.
166 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
167 bypass TYPE_MODE to get the actual vector mode.
168 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
169 2015-08-19's changes as follows. Drop include of
170 basic-block.h and df.h.
171 (rtl_for_parm): Remove.
172 (maybe_reset_rtl_for_parm): Remove.
173 (parm_in_unassigned_mem_p): Remove.
174 (use_register_for_decl): Add logic for RESULT_DECLs matching
175 assign_parms' behavior.
176 (split_complex_args): Revert.
177 (assign_parms_augmented_arg_list): Revert. Add comment
178 referencing the logic above.
179 (assign_parm_adjust_stack_rtl): Revert.
180 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
181 of SET_DECL_RTL. Set up a REG if the parm demands so.
182 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
183 calls into a single set_parm_rtl. Set up a temporary RTL
184 temporarily for expand_assignment.
185 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
186 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
187 (assign_bounds): Revert.
188 (assign_parms): Revert. Use set_parm_rtl.
189 (allocate_struct_function): Relayout result and parms of
190 non-abstruct functions.
191 (expand_function_start): Revert. Use set_parm_rtl. If the
192 result is not a hard reg, create a pseudo from the promoted
193 mode of the default def. Promote static chain mode.
194 * tree-outof-ssa.c (remove_ssa_form): Drop unused
195 partition_has_default_def. Set up
196 partitions_for_parm_default_defs.
197 (finish_out_of_ssa): Remove partition_has_default_def.
198 Release partitions_for_parm_default_defs.
199 * tree-outof-ssa.h (struct ssaexpand): Remove
200 partition_has_default_def. Add
201 partitions_for_parm_default_defs.
202 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
204 (build_ssa_conflict_graph): Fix conflict-detection of default
205 defs of even unused default defs of params and results.
206 (for_all_parms): New.
207 (create_default_def): New.
208 (register_default_def): New.
209 (coalesce_with_default): New.
210 (create_outofssa_var_map): Create default defs for all parms
211 and results, and register their partitions. Add GIMPLE_RETURN
212 operands as coalesce candidates with results. Add default
213 defs of each parm or result as coalesce candidates with its
214 other defs. Mark each result def, and each default def of
215 parms, as used_in_copy.
216 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
217 with the ssa names, even anonymous ones. Drop
218 parm_in_stack_slot_p calls. Require same signedness and
220 (coalesce_ssa_name): Add coalesce candidates for all defs of
221 each parm and result, even unused ones.
222 (parm_default_def_partition_arg): New type.
223 (set_parm_default_def_partition): New.
224 (get_parm_default_def_partitions): New.
225 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
226 * tree-ssa-live.c (partition_view_init): Regard unused defs of
227 parms and results as used.
228 (verify_live_on_entry): Don't error out just because they're
231 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
233 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
234 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
235 (output_fde): Don't output length for debug_frame on AIX.
236 (output_call_frame_info): Don't output length for debug_frame on AIX.
237 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
238 HAVE_XCOFF_DWARF_EXTRAS.
239 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
240 HAVE_XCOFF_DWARF_EXTRAS.
241 (output_compilation_unit_header): Don't output length on AIX.
242 (output_pubnames): Don't output length on AIX.
243 (output_aranges): Delete argument. Compute length locally. Don't
244 output length on AIX.
245 (output_line_info): Don't output length on AIX.
246 (dwarf2out_finish): Don't compute aranges_length.
247 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
248 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
249 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
250 symbol decoration for AIX.
251 (rs6000_xcoff_debug_unwind_info): New.
252 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
254 (rs6000_xcoff_declare_function_name): Emit different
255 .function pseudo-op when DWARF2_DEBUG. Don't call
256 xcoffout_declare_function for DWARF2_DEBUG.
257 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
259 * config/rs6000/aix71.h: New.
260 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
262 * configure: Regenerate.
263 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
266 2015-09-26 Jeff Law <law@redhat.com>
268 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
270 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
273 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
276 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
279 * config/cris/cris.md (asrandb): Fix left shift undefined
283 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
286 * lra-constarints.c (match_reload): Check presence of the input pseudo
287 in the output operand.
289 2015-09-25 Tobias Burnus <burnus@net-b.de>
291 * doc/invoke.texi (-fsanitize): Minor wording tweak.
293 2015-09-25 Tobias Burnus <burnus@net-b.de>
295 * doc/invoke.texi (-fsanitize): Update URLs.
297 2015-09-25 Teresa Johnson <tejohnson@google.com>
299 * opts.c (finish_options): Unset -freorder-blocks-and-partition
300 if not using profile.
302 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
304 PR pretty-print/67567
305 * pretty-print.c (pp_string): Add gcc_checking_assert.
306 * pretty-print.h (output_buffer_append_r): Likewise.
308 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
311 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
312 addr2 individually. Don't emit logical or insn if one is known to
313 be aligned approriately.
314 (sh_expand_cmpnstr): Likewise.
316 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
318 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
319 __builtin_aarch64_fp[sc]r arguments into a register.
321 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
323 * config.gcc (x86_archs): Replace lakemount with lakemont.
324 (with_cpu): Likewise.
325 (with_arch): Likewise.
326 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
327 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
328 __tune_lakemount__ with __tune_lakemont__.
329 * config/i386/i386.c (lakemount_cost): Renamed to ...
330 (lakemont_cost): This.
331 (m_LAKEMOUNT): Renamed to ...
333 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
334 (processor_target_table): Replace "lakemount" with "lakemont".
335 (processor_alias_table): Likewise.
336 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
338 (ix86_adjust_cost): Likewise.
339 (ia32_multipass_dfa_lookahead): Likewise.
340 * config/i386/i386.h (processor_type): Likewise.
341 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
342 * doc/invoke.texi: Replace lakemount with lakemont. Replace
343 Lakemount with Lakemont.
345 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
347 * config.gcc (x86_archs): Replace iamcu with lakemount.
348 (with_cpu): Likewise.
349 (with_arch): Likewise.
350 * doc/invoke.texi: Likewise.
351 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
352 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
353 __tune_iamcu__ with __tune_lakemount__.
354 * config/i386/i386.c (iamcu_cost): Renamed to ...
355 (lakemount_cost): This.
356 (m_IAMCU): Renamed to ...
358 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
359 (processor_target_table): Replace "iamcu" with "lakemount".
360 (processor_alias_table): Likewise.
361 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
363 (ix86_adjust_cost): Likewise.
364 (ia32_multipass_dfa_lookahead): Likewise.
365 * config/i386/i386.h (processor_type): Likewise.
366 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
368 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
370 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
371 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
373 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
374 (pa_expand_compare_and_swap_loop): New.
375 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
376 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
377 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
378 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
379 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
382 2015-09-24 Michael Collison <michael.collison@linaro.org>
385 * read-md.c (read_name): Allow mode iterators inside angle
386 brackets in rtl expressions.
388 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
391 * ira-color.c (update_allocno_cost): Add parameter.
392 (update_costs_from_allocno): Decrease conflict cost. Pass the new
395 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
398 * opts-common.c (prune_options): Discard all -fdiagnostics-color
399 but the last one, which is moved to the front to be processed
401 * opts.c (enable_warning_as_error): Reject options that do not
404 2015-09-24 Jiong Wang <jiong.wang@arm.com>
406 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
408 2015-09-24 Jiong Wang <jiong.wang@arm.com>
410 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
411 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
412 (aarch64_cannot_force_const_mem): Likewise.
413 (aarch64_classify_address): Likewise.
414 (aarch64_classify_symbolic_expression): Likewise.
415 (aarch64_print_operand): Likewise.
416 (aarch64_classify_symbol): Likewise.
417 (aarch64_mov_operand_p): Likewise.
418 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
419 (aarch64_mov_operand): Likewise.
421 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
423 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
424 for info->spe_gp_size.
426 2015-09-24 Richard Biener <rguenther@suse.de>
429 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
432 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
434 * tree-object-size.c (plus_stmt_object_size)
435 (cond_expr_object_size): Change the formal parameters from gimple
437 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
438 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
439 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
441 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
443 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
444 Check for ld -type pie on Solaris 11.x and 12.
445 * configure: Regenerate.
446 * config.in: Regenerate.
448 * gcc.c (LD_PIE_SPEC): Allow redefinition.
450 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
451 (STARTFILE_SPEC): Use it.
452 (ENDFILE_CRTEND_SPEC): Define.
453 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
454 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
455 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
456 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
457 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
458 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
459 (ENDFILE_ARCH_SPEC): Define.
460 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
462 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
464 * configure.ac (gcc_cv_solaris_crts): New test.
465 * configure. Regenerate.
466 * config.in: Regenerate.
467 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
468 HAVE_SOLARIS_CRTS variant.
470 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
472 * tree-inline.h (count_insns_seq): Delete prototype.
473 (estimate_num_insns_seq): Define prototype.
474 * tree-inline.c (count_insns_seq): Delete.
475 (estimate_num_insns_seq): Remove static qualifier.
476 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
477 with estimate_num_insns_seq.
479 2015-09-24 Richard Biener <rguenther@suse.de>
481 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
483 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
484 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
486 (ao_ref_init_from_vn_reference): Record clique and base in the
488 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
490 2015-09-24 Richard Biener <rguenther@suse.de>
492 PR tree-optimization/48885
493 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
494 as not including any restrict tags from other pointers.
496 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
498 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
499 character when appending to offload_targets.
501 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
502 offload targets by commas, not colons.
503 * config.in: Regenerate.
504 * configure: Likewise.
505 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
506 instead of setting up the default offload targets here...
507 (process_command): ..., do it here.
509 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
510 targets are separated by commas.
511 * config.h.in: Regenerate.
513 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
514 Nathan Sidwell <nathan@codesourcery.com>
516 * omp-low.h (omp_reduction_init_op): Declare.
517 * omp-low.c (omp_reduction_init_op): New, broken out of ...
518 (omp_reduction_init): ... here. Call it.
519 * tree-parloops.c (initialize_reductions): Use
520 omp_reduction_init_op.
522 2015-09-23 Richard Biener <rguenther@suse.de>
525 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
526 undefined overflow unless they will cancel out.
528 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
530 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
533 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
536 * opts.h (write_langs): Declare.
537 * opts-global.c (write_langs): Make it extern.
539 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
542 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
543 overlapping regs when matching the pattern.
545 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
547 * config/aarch64/aarch64-simd.md
548 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
549 (aarch64_float_truncate_hi_v4sf_le): New.
550 (aarch64_float_truncate_hi_v4sf_be): Likewise.
552 2015-09-23 Richard Biener <rguenther@suse.de>
554 * tree-ssa-structalias.c (intra_create_variable_infos): Build
555 representatives for all restrict qualified pointer destinations.
557 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
559 * config/i386/i386.md (define_code_attr mshift): New.
560 (define_mode_iterator SWI1248_AVX512BW): Rename ...
561 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
563 (define_insn "*k<logic><mode>"): Use new iterator name.
564 (define_insn "*<mshift><mode>3"): New.
566 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
569 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
570 mark the block as accessible.
572 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
574 * function.c (thread_prologue_and_epilogue_insns): Delete
575 orig_entry_edge argument to try_shrink_wrapping.
576 * shrink-wrap.c (can_get_prologue): New function.
577 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
578 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
579 can_get_prologue where needed. Remove code that finds a single
580 edge for the prologue. Remove code that tests if any reg clobbered
581 by the prologue is live on the prologue edge. Remove code that finds
582 the new prologue edge after duplicating blocks. Make a new prologue
584 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
586 2015-09-22 Jeff Law <law@redhat.com>
588 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
591 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
593 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
594 -Wtemplates, -Wnamespaces): Document.
596 2015-09-22 Tom de Vries <tom@codesourcery.com>
598 PR tree-optimization/67671
599 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
600 pointer references as restrict.
602 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
604 * config/nios2/nios2.c (nios2_legitimize_address): When handling
605 'reg + reloc' cases, allow first operand to be non-REG, and use
606 force_reg() to enforce address pattern.
608 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
611 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
612 (define_mode_iterator VI12_AVX_AVX512F): New.
613 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
614 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
615 (define_insn "*<code><mode>3"): ... Into new pattern using
616 VI12_AVX_AVX512F iterators without masking.
618 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
620 * config.gcc: Support "skylake-avx512".
621 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
622 PROCESSOR_SKYLAKE_AVX512.
623 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
624 (processor_target_table): Add "skylake-avx512".
625 (PTA_SKYLAKE_AVX512): Define.
626 (ix86_option_override_internal): Add "skylake_avx512".
627 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
628 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
629 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
630 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
631 * doc/invoke.texi (skylake-avx512): New.
633 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
635 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
637 (define_insn "kunpcksi"): Ditto.
638 (define_insn "kunpckdi"): Ditto.
640 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
642 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
643 iterator instead of fixed modes.
645 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
647 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
649 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
650 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
651 out_result. Update to support update-fetch operations.
652 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
653 Adjust for change to aarch64_gen_atomic_ldop.
654 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
655 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
656 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
657 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
658 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
660 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
662 * config/aarch64/aarch64-protos.h
663 (aarch64_atomic_ldop_supported_p): Declare.
664 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
665 (enum aarch64_atomic_load_op_code): New.
666 (aarch64_emit_atomic_load_op): New.
667 (aarch64_gen_atomic_ldop): Update to support load-operate
669 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
671 (aarch64_atomic_<atomic_optab><mode>): New.
672 (aarch64_atomic_<atomic_optab><mode>_lse): New.
673 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
674 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
675 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
677 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
679 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
680 (UNSPECV_ATOMIC_LDOP_OR): New.
681 (UNSPECV_ATOMIC_LDOP_BIC): New.
682 (UNSPECV_ATOMIC_LDOP_XOR): New.
683 (UNSPECV_ATOMIC_LDOP_PLUS): New.
686 (aarch64_atomic_load<atomic_ldop><mode>): New.
688 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
690 * config/aarch64/aarch64.md
691 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
694 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
696 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
698 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
699 (aarch64_gen_atomic_ldop): New.
700 (aarch64_split_atomic_op): Fix whitespace and add a comment.
701 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
702 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
703 (atomic_exchange<mode>): Replace with an expander.
704 (aarch64_atomic_exchange<mode>): New.
705 (aarch64_atomic_exchange<mode>_lse): New.
706 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
707 (aarch64_atomic_swp<mode>): New.
709 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
711 * tree-inline.c (expand_call_inline): Use inform for extra note.
712 Do not give a note with UNKNOWN_LOCATION.
713 Replace input_location with gimple_location (stmt).
714 Use true/false instead of TRUE/FALSE.
716 2015-09-22 Tom de Vries <tom@codesourcery.com>
718 PR tree-optimization/67666
719 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
720 with single field non-conservative.
722 2015-09-21 David S. Miller <davem@davemloft.net>
726 2015-09-11 David S. Miller <davem@davemloft.net>
728 * config/sparc/constraints.md: Make "U" constraint a real register
730 * config/sparc/sparc.c (TARGET_LRA_P): Define.
731 (D_MODES, DF_MODES): Add missing cast.
732 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
733 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
734 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
736 * config/sparc/sparc.h (PROMOTE_MODE): Define.
737 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
738 provide these insn when flag_pic.
740 2015-09-17 David S. Miller <davem@davemloft.net>
742 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
744 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
746 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
747 (HARD_REGNO_CALLER_SAVE_MODE): Define.
748 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
749 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
750 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
751 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
752 provide when flag_pic.
754 2015-09-21 Jeff Law <law@redhat.com>
756 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
759 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
761 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
763 2015-09-21 Richard Biener <rguenther@suse.de>
765 * passes.c (rest_of_decl_compilation): Do not call
766 dwarf2out_early_global_decl for aliases.
768 2015-09-21 Richard Biener <rguenther@suse.de>
771 * dwarf2out.c (add_location_or_const_value_attribute): Remove
772 attribute parameter. Early exit if either DW_AT_const_value
773 or DW_AT_location are present already.
774 (gen_variable_die): Adjust caller.
775 (dwarf2out_late_global_decl): Likewise.
777 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
780 * config/sh/sh.c (sh_remove_overlapping_post_inc,
781 sh_peephole_emit_move_insn): Add new functions.
782 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
783 sh_peephole_emit_move_insn): Declere them.
784 * config/sh/sh.md: Use them in various peephole2 patterns.
786 2015-09-21 Richard Biener <rguenther@suse.de>
789 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
790 address with -fno-delete-null-pointer-checks.
792 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
794 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
795 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
796 (reduc_uplus_v16qi): Remove.
798 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
799 (reduc_<VEC_reduc_name>_v2df): Remove.
800 (reduc_<VEC_reduc_name>_v4sf): Remove.
801 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
803 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
804 gen_ function by removing * prefix.
805 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
807 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
810 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
811 Print i_bound without converting it to a tree.
813 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
815 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
816 operands[4] operands[5] swap with std::swap, removed tmp variable.
817 (arm_evpc_neon_vzip): Replaced in0/in1 and
818 out0/out1 swaps with std::swap, removed x variable.
819 (arm_evpc_neon_vtrn): Replaced in0/int1 and
820 out0/out1 swaos with std::swap, removed x variable.
821 (arm_expand_vec_perm_const_1): Replaced
822 d->op0/d->op1 swap with std::swap, removed x variable.
823 (arm_evpc_neon_vuzp): Replaced in0/in1 and
824 out0/out1 swaps with std::swap, removed x variable.
826 2015-09-21 Jonathan Yong <10walls@gmail.com>
828 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
829 sysroot/usr/lib/32api for additional win32 libraries,
830 fixes failing Cygwin bootstrapping.
832 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
834 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
836 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
839 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
840 (*mov_t_msb_neg): Rewrite negc pattern.
842 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
844 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
845 immediate generation code.
847 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
849 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
850 redundant immediate generation code.
852 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
854 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
855 (AARCH64_NUM_BITMASKS): Remove.
856 (aarch64_bitmasks_cmp): Remove.
857 (aarch64_build_bitmask_table): Remove.
859 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
861 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
862 slow immediate matching loops with a faster algorithm.
864 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
866 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
869 2015-09-20 Jeff Law <law@redhat.com>
871 PR tree-optimization/47679
872 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
873 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
874 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
875 (thread_through_normal_block): Use record_temporary_equivalences.
877 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
879 * coretypes.h (gimple): Change typedef to be a forward declaration.
880 * gimple.h (gimple_statement_base): rename to gimple.
881 * (all functions and types using gimple): Adjust.
884 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
885 David Edelsohn <dje.gcc@gmail.com>
887 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
888 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
889 (EH_FRAME_THROUGH_COLLECT2): Define.
890 (EH_TABLES_CAN_BE_READ_ONLY): Define.
891 (ASM_OUTPUT_DWARF_PCREL): Define.
892 (ASM_OUTPUT_DWARF_DATAREL): Define.
894 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
896 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
899 2015-09-18 Jeff Law <law@redhat.com>
901 PR tree-optimization/47679
902 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
904 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
905 object. Update constructor.
906 (pass_dominator::execute): Corresponding chagnes to declaration
907 and initialization of avail_exprs_stack. Update constructor call
908 for dom_opt_dom_walker object.
909 (lookup_avail_expr, record_cond): Accept additional argument. Pass
910 it down to children as needed.
911 (record_equivalences_from_incoming_edge): Likewise.
912 (eliminate_redundant_computations): Likewise.
913 (record_equivalences_from_stmt): Likewise.
914 (simplify_stmt_for_jump_threading): Likewise.
915 (record_temporary_equivalences): Likewise.
916 (optimize_stmt): Likewise.
917 (dom_opt_dom_walker::thread_across_edge): Update access to
918 avail_exprs_stack object and pass it to children as needed.
919 (dom_opt_dom_walker::before_dom_children): Similarly.
920 (dom_opt_dom_walker::after_dom_children): Similarly.
921 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
922 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
923 Add avail_expr_stack argument. Pass it to children as needed.
924 (dummy_simplify): Likewise.
925 (simplify_control_stmt_condition): Likewise.
926 (thread_around_empty_blocks): Likewise.
927 (thread_through_normal_block): Likewise.
928 (thread_across_edge): Likewise.
929 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
930 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
932 PR tree-optimization/47679
933 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
935 (dom_opt_dom_walker): New private member holding the const_and_copies
936 object. Update constructor.
937 (pass_dominator::execute): Corresponding changes to declaration
938 and initialization of const_and_copies. Update constructor call
939 for the dom_opt_dom_walker object.
940 (record_temporary_equivalences): Accept const_and_copies argument
941 pass it down to children as needed.
942 (record_equality): Likewise.
943 (record_equivalences_from_incoming_edge): Likewise.
944 (cprop_into_successor_phis, optimize_stmt): Likewise.
945 (eliminate_redundant_computations): Likewise.
946 (dom_opt_dom_walker::thread_across_edge): Update access to
947 const_and_copies object and pass it to children as needed.
948 (dom_opt_dom_walker::before_dom_children): Similarly.
949 (dom_opt_dom_walker::after_dom_children): Similarly.
951 PR tree-optimization/47679
952 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
953 it into the avail_exprs_stack class.
954 (pass_dominator::execute): Corresponding changes to declaration
955 and initialization of avail_exprs. Pass avail_exprs to
956 dump_dominator_optimization_stats.
957 (record_cond): Extract avail_exprs from avail_exprs_stack.
958 (lookup_avail_expr): Similarly.
959 (htab_staticstics): Remove unnecessary prototype. Move to earlier
961 (dump_dominator_optimization_stats): Make static and prototype.
962 Add argument for the hash table to dump.
963 (debug_dominator_optimization_stats): Remove.
964 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
966 (debug_dominator_optimization_stats): Similarly.
967 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
968 "void" in prototype for pop_to_marker method. Add accessor method
969 for the underlying avail_exprs table.
971 * tree-ssa-threadedge.c: Remove trailing whitespace.
973 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
975 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
977 (pa_ldil_cint_p): Likewise.
978 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
979 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
981 * config/pa/pa.md: Likewise.
983 2015-09-18 David Malcolm <dmalcolm@redhat.com>
985 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
986 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
987 (diagnostic_show_locus): Likewise.
988 (diagnostic_print_caret_line): Likewise.
989 * diagnostic-show-locus.c: New file.
991 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
993 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
994 "back" parameter. Declare label in #if block.
996 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
999 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1000 the address to a register.
1002 2015-09-18 Jeff Law <law@redhat.com>
1004 PR tree-optimization/47679
1005 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1006 * tree-ssa-dom.c: Remove unnecessary header includes.
1007 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1008 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1009 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1010 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1011 (pass_phi_only_cprop::execute): Likewise.
1012 (make_pass_phi_only_cprop): Likewise.
1013 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1014 uses of file scoped statics by passing the required objects
1015 as parameters wherever needed.
1017 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1018 David Edelsohn <dje.gcc@gmail.com>
1020 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1021 EH_FRAME_THROUGH_COLLECT2.
1022 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1024 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1025 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1026 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1027 * except.c (switch_to_exception_section): Use a read-only section
1028 even if EH_FRAME_SECTION_NAME is undefined.
1029 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1030 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1031 (scan_prog_file): Don't export __dso_handle nor
1033 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1034 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1035 (ASM_OUTPUT_DWARF_PCREL): Define.
1036 (ASM_OUTPUT_DWARF_DATAREL): Define.
1037 (EH_FRAME_THROUGH_COLLECT2): Define.
1038 (EH_FRAME_IN_DATA_SECTION): Delete.
1039 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1040 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1042 (rs6000_asm_output_dwarf_datarel): Declare.
1043 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1044 (rs6000_aix_asm_output_dwarf_datarel): New.
1045 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1046 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1047 (EH_FRAME_THROUGH_COLLECT2): Define.
1048 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1049 (EH_FRAME_THROUGH_COLLECT2): Define.
1050 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1051 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1052 (EH_FRAME_THROUGH_COLLECT2): New.
1053 (ASM_OUTPUT_DWARF_DATAREL): New.
1054 * doc/tm.texi: Regenerate.
1056 2015-09-18 Richard Biener <rguenther@suse.de>
1058 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1059 we're in early phase.
1060 (schedule_generic_params_dies_gen): Likewise.
1061 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1062 work as possible, retaining unhandled cases.
1063 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1064 clear out generic_type_instances at the end.
1065 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1066 (dwarf2out_early_finish): ... here. Do most of
1067 gen_remaining_tmpl_value_param_die_attribute here.
1069 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1071 PR tree-optimization/67283
1072 * tree-sra.c (type_consists_of_records_p): Rename to...
1073 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1074 (completely_scalarize_record): Rename to...
1075 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1076 (scalarize_elem): New.
1077 (analyze_all_variable_accesses): Follow renamings.
1079 2015-09-18 Richard Biener <rguenther@suse.de>
1081 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1084 2015-09-18 Richard Biener <rguenther@suse.de>
1086 PR tree-optimization/66142
1087 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1088 treat MEM[&x] and x the same.
1089 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1090 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1091 when we simplified sth.
1092 (vn_reference_maybe_forwprop_address): Likewise.
1093 (valueize_refs_1): When we simplified through
1094 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1095 set valueized_anything to true.
1096 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1097 one ref kills the other instead of just a offset-based test.
1098 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1099 for the operand_equal_p test to compare bases and also compare
1102 2015-09-17 Christian Bruel <christian.bruel@st.com>
1104 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1106 2015-09-17 Richard Henderson <rth@redhat.com>
1109 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1110 pointers that encode the alignment of the object.
1112 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1114 PR rtl-optimization/66790
1115 * df-problems.c (LIVE): Amend documentation.
1117 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1119 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1121 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1122 * genopinit.c (main): Add an include guard to insn-opinit.h.
1123 Protect the rtx_code parts with NUM_RTX_CODE.
1124 * optabs.h: Split parts out to...
1125 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1126 * optabs.c: Split parts out to...
1127 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1128 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1129 * fold-const.c: Likewise.
1130 * target-globals.c: Likewise.
1131 * tree-if-conv.c: Likewise.
1132 * tree-ssa-forwprop.c: Likewise.
1133 * tree-ssa-loop-prefetch.c: Likewise.
1134 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1135 Remove unncessary include files.
1136 * tree-ssa-phiopt.c: Likewise.
1137 * tree-ssa-reassoc.c: Likewise.
1138 * tree-switch-conversion.c: Likewise.
1139 * tree-vect-data-refs.c: Likewise.
1140 * tree-vect-generic.c: Likewise.
1141 * tree-vect-loop.c: Likewise.
1142 * tree-vect-patterns.c: Likewise.
1143 * tree-vect-slp.c: Likewise.
1144 * tree-vect-stmts.c: Likewise.
1145 * tree-vrp.c: Likewise.
1146 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1147 rather than optabs.h.
1148 * expr.c: Include optabs-tree.h.
1149 * function.c: Likewise.
1151 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1154 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1155 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1156 * config/arm/arm.c: Include common/common-target.h.
1157 (use_return_insn): Return 0 if the static chain register was saved
1158 above a non-APCS frame.
1159 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1160 (struct scratch_reg): New.
1161 (get_scratch_register_on_entry): New function.
1162 (release_scratch_register_on_entry): Likewise.
1163 (arm_emit_probe_stack_range): Likewise.
1164 (output_probe_stack_range): Likewise.
1165 (arm_expand_prologue): Factor out code dealing with the IP register
1166 for nested function and adjust it for stack checking.
1167 Invoke arm_emit_probe_stack_range if static builtin stack checking
1169 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1171 (arm_expand_epilogue): Add the saved static chain register, if any, to
1172 the amount of pre-pushed registers to pop.
1173 (arm_frame_pointer_required): Return true if static stack checking is
1174 enabled and we want to catch the exception with the EABI unwinder.
1175 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1176 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1177 * config/arm/arm.md (probe_stack): New insn.
1178 (probe_stack_range): Likewise.
1180 2015-09-17 Richard Biener <rguenther@suse.de>
1182 * genmatch.c (parser::parse_expr): Improve error message
1183 for mis-placed flags.
1185 2015-09-17 Richard Biener <rguenther@suse.de>
1187 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1188 debug hook when we created a varpool node.
1189 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1190 dwarf2out_early_global_decl, when not just add location or
1191 value attributes to existing DIEs.
1193 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1195 * config/aarch64/aarch64.md (copysigndf3): New.
1196 (copysignsf3): Likewise.
1198 2015-09-17 David S. Miller <davem@davemloft.net>
1200 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1201 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1202 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1203 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1204 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1205 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1206 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1207 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1208 provide when flag_pic.
1210 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1212 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1213 object_allocator change.
1215 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1217 PR tree-optimization/66388
1218 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1219 (dump_iv): Dump no_overflow information.
1220 (alloc_iv): Initialize new field for struct iv.
1221 (mark_bivs): Count number of no_overflow bivs.
1222 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1224 (idx_find_step): Call new functions above.
1225 (add_candidate_1, add_candidate): New paramter.
1226 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1227 (get_computation_aff): Simplify convertion of cand for BIV.
1228 (get_computation_cost_at): Step cand's base if necessary.
1230 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1232 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1234 (tree_simplify_using_condition): Ditto.
1235 (simplify_using_initial_conditions): Ditto.
1236 (loop_exits_before_overflow): Pass new argument to function
1237 simplify_using_initial_conditions. Remove case for type conversions
1239 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1241 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1242 in iv base using loop initial conditions.
1244 2015-09-16 Jeff Law <law@redhat.com>
1246 PR tree-optimization/47679
1247 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1248 (free_all_edge_infos): Use it.
1249 (allocate_edge_info): Free preexisting edge info data.
1250 (pass_dominator::execute): Set up initial edge info structures.
1251 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1253 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1254 If non-null, then push/pop markers appropriately.
1255 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1256 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1259 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1261 * config/ft32/ft32.c: Fix the memory address space predicate.
1263 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1266 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1267 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1269 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1271 * toplev.h (check_global_declaration): Remove declaration.
1272 * toplev.c (check_global_declaration): Move to ...
1273 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1274 (analyze_functions): Update call.
1276 2015-09-16 David S. Miller <davem@davemloft.net>
1278 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1279 lowpart of a SUBREG has offset zero.
1281 2015-09-16 Jeff Law <law@redhat.com>
1283 PR tree-optimization/47679
1284 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1285 tree-ssa-scopedtables.h.
1286 (struct hashable_expr, class expr_hash_elt): Likewise.
1287 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1288 Move associated methods into tree-ssa-scopedtables.c.
1289 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1290 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1291 (add_hashable_expr): Likewise.
1292 (record_cond): Delete element directly.
1293 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1294 private copy ctor and assignment operator methods.
1295 (expr_elt_hasher): Inline trivial methods.
1296 (initialize_expr_from_cond): Prototype.
1297 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1298 methods that were previously in tree-ssa-dom.c. Improve various
1301 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1303 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1305 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1308 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1311 2015-09-16 Richard Biener <rguenther@suse.de>
1314 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1315 location of possibly shared trees.
1317 2015-09-16 Richard Biener <rguenther@suse.de>
1320 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1322 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1324 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1325 offset and size computations instead of HOST_WIDE_INT.
1327 2015-09-16 Richard Biener <rguenther@suse.de>
1330 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1331 result before builting a tree via wide_int_to_tree.
1333 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1335 * Makefile.in: Add memory-block.cc
1336 (pool_allocator::initialize): Use fixed block size.
1337 (pool_allocator::release): Use memory_block_pool.
1338 (pool_allocator::allocate): Likewise.
1339 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1341 * cfg.c (initialize_original_copy_tables): Likewise.
1342 * cselib.c (elt_list_pool, elt_loc_list_pool,
1343 cselib_val_pool): Likewise.
1344 * df-problems.c (df_chain_alloc): Likewise.
1345 * df-scan.c (df_scan_alloc): Likewise.
1346 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1347 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1348 group_info_pool, deferred_change_pool): Likewise.
1349 * et-forest.c (et_nodes, et_occurrences): Likewise.
1350 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1351 ipcp_agg_lattice_pool): Likewise.
1352 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1353 * ipa-profile.c (histogram_pool): Likewise.
1354 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1355 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1356 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1357 * ira-color.c (update_cost_record_pool): Likewise.
1358 * lra-lives.c (lra_live_range_pool): Likewise.
1359 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1360 * memory-block.cc: New file.
1361 * memory-block.h: New file.
1362 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1363 * sched-deps.c (sched_deps_init): Likewise.
1364 * sel-sched-ir.c (sched_lists_pool): Likewise.
1365 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1366 * tree-sra.c (access_pool): Likewise.
1367 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1368 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1369 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1370 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1371 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1372 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1373 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1374 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1376 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1378 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1380 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1383 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1385 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1386 to pass TLS call argument, according to current ABI.
1387 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1388 callx0 for TLS call, according to current ABI.
1390 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1392 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1393 on stack restore statements.
1394 (decide_copy_try_finally): Do not consider a stack restore statement as
1395 coming from sources.
1397 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1399 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1400 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1402 2015-09-15 Jeff Law <law@redhat.com>
1404 PR tree-optimization/47679
1405 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1406 methods and private members.
1407 (avail_exprs_stack): Similarly. Change type of global
1408 from a pair of expr_hash_elt_t to the new class.
1409 (expr_elt_hasher::hash): Corresponding changes.
1410 (expr_elt_hasher::equal): Similarly.
1411 (avail_expr_hash): Similarly.
1412 (pass_dominator::execute): Similarly.
1413 (dom_opt_dom_walker::thread_across_edge): Similarly.
1414 (record_cond): Similarly.
1415 (dom_opt_dom_walker::before_dom_children): Similarly.
1416 (dom_opt_dom_walker::after_dom_children): Similarly.
1417 (lookup_avail_expr): Likewise.
1418 (initialize_hash_element): Now a expr_hash_elt constructor.
1419 (initialize_hash_element_from_expr): Similarly.
1420 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1421 (free_expr_hash_elt): Call dtor for the element.
1422 (remove_local_expressions_from_table): Now the "pop_to_marker"
1423 method in the available_exprs_stack class.
1424 (avail_expr_stack::record_expr): Method factored out.
1425 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1427 (hashable_expr_equal_p): Fix formatting.
1429 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1431 * input.h (location_get_source_line): Drop "expanded_location"
1432 param in favor of a file and line number.
1433 * input.c (location_get_source_line): Likewise.
1434 (dump_location_info): Update for change in signature of
1435 location_get_source_line.
1436 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1438 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1440 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1441 Bump to 4KB for SJLJ exceptions.
1442 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1443 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1444 * doc/tm.texi: Regenerate.
1446 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1448 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1449 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1452 2015-09-15 Richard Biener <rguenther@suse.de>
1454 PR tree-optimization/67470
1455 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1456 structure for PHI hoisting by inserting a forwarder block
1459 2015-09-15 Christian Bruel <christian.bruel@st.com>
1461 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1462 (arm_option_print): New function.
1464 2015-09-15 Christian Bruel <christian.bruel@st.com>
1467 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1468 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1469 Remove flags parameter.
1470 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1471 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1472 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1473 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1474 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1475 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1476 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1477 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1479 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1481 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1483 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1484 AARCH64_VALID_SIMD_DREG_MODE.
1486 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1488 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1489 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1490 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1491 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1492 aarch64_ld4_lane<mode>): Combine together, making...
1493 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1494 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1495 aarch64_st4_lane<mode>): Combine together, making...
1496 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1497 * config/aarch64/iterators.md (nregs): Add comment.
1499 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1501 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1502 Change operand mode from <V_TWO_ELEM> to BLK.
1503 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1504 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1505 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1506 (aarch64_ld2_lane<mode>): Likewise.
1507 (aarch64_st2_lane<VQ:mode>): Likewise.
1508 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1510 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1512 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1513 Change operand mode from <V_FOUR_ELEM> to BLK.
1514 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1515 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1516 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1517 (aarch64_ld4_lane<mode>): Likewise.
1518 (aarch64_st4_lane<mode>): Likewise.
1519 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1521 2015-09-15 Richard Biener <rguenther@suse.de>
1524 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1525 transfer EH info from old to new stmt.
1526 (replace_call_with_value): Likewise.
1527 (replace_call_with_call_and_fold): Likewise.
1528 (gimple_fold_builtin_memory_op): Likewise.
1529 (gimple_fold_builtin_memset): Likewise.
1530 (gimple_fold_builtin_stpcpy): Likewise.
1531 (gimple_fold_call): Likewise.
1533 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1535 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1537 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1538 (aarch64_simd_intEI_type_node): Likewise.
1539 (aarch64_simd_builtin_std_type): Remove EImode case.
1540 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1541 * config/aarch64/aarch64-modes.def: Remove EImode.
1543 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1545 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1546 Change operand mode from <V_THREE_ELEM> to BLK.
1547 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1548 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1549 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1550 (aarch64_ld3_lane<mode>): Likewise.
1551 (aarch64_st3_lane<mode>): Likewise.
1552 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1554 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1556 * config/aarch64/aarch64-simd.md
1557 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1558 Change all TImode operands to BLKmode.
1559 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1560 Change all EImode operands to BLKmode.
1561 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1562 Change all OImode operands to BLKmode.
1564 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1565 and call set_mem_size.
1566 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1568 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1570 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1572 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1574 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1576 (vec_store_lanesci_lane<mode>): Rename to...
1577 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1579 (vec_store_lanesxi_lane<mode>): Rename to...
1580 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1582 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1583 aarch64_st4_lane<mode>): Follow renaming.
1585 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1587 * config/s390/s390.c (s390_const_operand_ok): Add missing
1590 2015-09-15 Richard Biener <rguenther@suse.de>
1593 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1595 * lto-streamer-out.c (clear_line_info): Likewise.
1597 2015-09-15 Richard Biener <rguenther@suse.de>
1599 * doc/match-and-simplify.texi: Fix wording.
1601 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1603 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1604 unnecessary type conversion in op1.
1606 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1608 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1609 (dup_block_and_redirect): Delete function.
1610 (can_dup_for_shrink_wrapping): New function.
1611 (fix_fake_fallthrough_edge): New function.
1612 (try_shrink_wrapping): Rewrite function.
1613 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1615 2015-09-14 Rich Felker <dalias@libc.org>
1617 * configure.ac: Change target pattern for sh TLS support
1618 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1619 * configure: Regenerate.
1621 2015-09-14 Jeff Law <law@redhat.com>
1623 PR tree-optimization/47679
1624 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1625 type rather than void *.
1627 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1630 * diagnostic.c (diagnostic_initialize): Do not set
1631 some_warnings_are_errors.
1632 (diagnostic_finish): Use DK_WERROR count instead.
1633 (diagnostic_report_diagnostic): Do not set
1634 some_warnings_are_errors.
1635 * diagnostic.h (struct diagnostic_context): Remove
1636 some_warnings_are_errors.
1638 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1640 * config/sparc/predicates.md (const_all_ones_operand): Use
1641 CONSTM1_RTX to simplify definition.
1643 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1646 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1649 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1651 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1652 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1653 OPT_fshow_column to handled saved option cases.
1654 (append_compiler_options): Do not skip the above added options.
1656 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1659 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1660 nopcrelative_literal_loads.
1661 (aarch64_classify_address): Likewise.
1662 (aarch64_constant_pool_reload_icode): Define.
1663 (aarch64_secondary_reload): Handle secondary reloads for
1665 (aarch64_override_options): Handle nopcrelative_literal_loads.
1666 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1667 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1669 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1670 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1671 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1673 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1675 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1678 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1679 sync_compare_and_swap_optab libcall to target_oval.
1681 2015-09-14 Marek Polacek <polacek@redhat.com>
1683 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1685 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1687 2015-09-11 Mark Wielaard <mjw@redhat.com>
1690 * toplev.c (check_global_declaration): Check and use
1691 warn_unused_const_variable.
1692 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1693 (-Wunused-variable): Remove non-constant. For C implies
1694 -Wunused-const-variable.
1695 (-Wunused-const-variable): New.
1697 2015-09-14 Richard Biener <rguenther@suse.de>
1699 * doc/match-and-simplify.texi: Update for changed syntax
1700 of inner ifs and the new switch expression.
1702 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1704 * config/i386/haswell.md: New file describing Haswell pipeline.
1705 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1706 haswell-like processors.
1707 (ix86_reassociation_width): Increase reassociation width for 64-bit
1708 Haswell processor family.
1709 * config/i386/i386.md: Introduce haswell cpu and include new md file.
1711 2015-09-14 Richard Biener <rguenther@suse.de>
1713 * doc/match-and-simplify.texi: Fixup some formatting issues
1714 and document the 's' flag.
1716 2015-09-13 Olivier Hainque <hainque@adacore.com>
1717 Eric Botcazou <ebotcazou@adacore.com>
1719 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
1720 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
1721 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
1722 (TARGET_CPU_gr5): Likewise.
1723 (TARGET_CPU_gr6): Likewise.
1724 (MULTILIB_DEFAULTS): Likewise.
1725 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
1726 for mcpu=gr5 and mcpu=gr6.
1727 (MULTILIB_DIRNAMES): Adjust accordingly.
1729 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1731 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
1732 (mem_ref_p): Likewise.
1733 (outermost_indep_loop): Adjust.
1734 (mem_ref_in_stmt): Likewise.
1735 (determine_max_movement): Likewise.
1736 (mem_ref_alloc): Likewise.
1737 (record_mem_ref_loc): Likewise.
1738 (set_ref_stored_in_loop): Likewise.
1739 (mark_ref_stored): Likewise.
1740 (gather_mem_refs_stmt): Likewise.
1741 (mem_refs_may_alias_p): Likewise.
1742 (for_all_locs_in_loop): Likewise.
1743 (struct rewrite_mem_ref_loc): Likewise.
1744 (rewrite_mem_refs): Likewise.
1745 (struct first_mem_ref_loc_1): Likewise.
1746 (first_mem_ref_loc): Likewise.
1747 (struct sm_set_flag_if_changed): Likewise.
1748 (execute_sm_if_changed_flag_set): Likewise.
1749 (execute_sm): Likewise.
1750 (hoist_memory_references):
1751 (struct ref_always_accessed): Likewise.
1752 (ref_always_accessed_p): Likewise.
1753 (refs_independent_p): Likewise.
1754 (record_dep_loop): Likewise.
1755 (ref_indep_loop_p_1): Likewise.
1756 (ref_indep_loop_p_2): Likewise.
1757 (ref_indep_loop_p): Likewise.
1758 (can_sm_ref_p): Likewise.
1759 (find_refs_for_sm): Likewise.
1760 (tree_ssa_lim_finalize): Likewise.
1762 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1764 * dwarf2out.c (dw_attr_ref): Remove typedef.
1765 (dw_line_info_ref): Likewise.
1766 (pubname_ref): Likewise.
1767 (dw_ranges_ref): Likewise.
1768 (dw_ranges_by_label_ref): Likewise.
1769 (comdat_type_node_ref): Likewise.
1771 (get_AT_low_pc): Likewise.
1772 (get_AT_hi_pc): Likewise.
1773 (get_AT_string): Likewise.
1774 (get_AT_flag): Likewise.
1775 (get_AT_unsigned): Likewise.
1776 (get_AT_ref): Likewise.
1777 (get_AT_file): Likewise.
1778 (remove_AT): Likewise.
1779 (print_die): Likewise.
1780 (check_die): Likewise.
1781 (die_checksum): Likewise.
1782 (attr_checksum_ordered): Likewise.
1783 (struct checksum_attributes): Likewise.
1784 (collect_checksum_attributes): Likewise.
1785 (die_checksum_ordered): Likewise.
1786 (same_die_p): Likewise.
1787 (is_declaration_die): Likewise.
1788 (clone_die): Likewise.
1789 (clone_as_declaration): Likewise.
1790 (copy_declaration_context): Likewise.
1791 (break_out_comdat_types): Likewise.
1792 (copy_decls_walk): Likewise.
1793 (output_location_lists): Likewise.
1794 (external_ref_hasher::hash): Likewise.
1795 (optimize_external_refs_1): Likewise.
1796 (build_abbrev_table): Likewise.
1797 (size_of_die): Likewise.
1798 (unmark_all_dies): Likewise.
1799 (size_of_pubnames): Likewise.
1800 (output_die_abbrevs): Likewise.
1801 (output_die): Likewise.
1802 (output_pubnames): Likewise.
1803 (add_ranges_num): Likewise.
1804 (add_ranges_by_labels): Likewise.
1805 (add_high_low_attributes): Likewise.
1806 (gen_producer_string): Likewise.
1807 (dwarf2out_set_name): Likewise.
1808 (new_line_info_table): Likewise.
1809 (prune_unused_types_walk_attribs): Likewise.
1810 (prune_unused_types_update_strings): Likewise.
1811 (prune_unused_types): Likewise.
1812 (resolve_addr): Likewise.
1813 (optimize_location_lists_1): Likewise.
1814 (index_location_lists): Likewise.
1815 (dwarf2out_finish): Likewise.
1817 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1819 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1821 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1823 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1824 (dump_asserts_for): Adjust.
1825 (register_new_assert_for): Likewise.
1826 (process_assert_insertions): Likewise.
1827 (insert_range_assertions): Likewise.
1829 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1831 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1833 (new_temp_expr_table): Adjust.
1834 (free_temp_expr_table): Likewise.
1835 (version_to_be_replaced_p): Likewise.
1836 (make_dependent_on_partition): Likewise.
1837 (add_to_partition_kill_list): Likewise.
1838 (remove_from_partition_kill_list): Likewise.
1839 (add_dependence): Likewise.
1840 (finished_with_expr): Likewise.
1841 (process_replaceable): Likewise.
1842 (kill_expr): Likewise.
1843 (kill_virtual_exprs): Likewise.
1844 (mark_replaceable): Likewise.
1845 (find_replaceable_in_bb): Likewise.
1846 (find_replaceable_exprs): Likewise.
1847 (debug_ter): Likewise.
1849 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1851 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1852 (struct btr_user): Rename from btr_user_s.
1853 (struct btr_def): Rename from btr_def_s.
1854 (find_btr_def_group): Adjust.
1855 (add_btr_def): Likewise.
1856 (new_btr_user): Likewise.
1857 (note_other_use_this_block): Likewise.
1858 (compute_defs_uses_and_gen): Likewise.
1859 (link_btr_uses): Likewise.
1860 (build_btr_def_use_webs): Likewise.
1861 (block_at_edge_of_live_range_p): Likewise.
1862 (btr_def_live_range): Likewise.
1863 (combine_btr_defs): Likewise.
1864 (move_btr_def): Likewise.
1865 (migrate_btr_def): Likewise.
1866 (migrate_btr_defs): Likewise.
1868 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1870 * var-tracking.c (shared_hash_def): Rename to shared_hash.
1871 (shared_hash): Remove typedef.
1872 (struct dataflow_set): Adjust.
1873 (shared_hash_unshare): Likewise.
1874 (dataflow_set_merge): Likewise.
1875 (vt_initialize): Likewise.
1876 (vt_finalize): Likewise.
1878 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1880 * var-tracking.c (struct location_chain): Rename from
1882 (struct variable_part): Adjust.
1883 (variable_htab_free): Likewise.
1884 (unshare_variable): Likewise.
1885 (get_init_value): Likewise.
1886 (get_addr_from_local_cache): Likewise.
1887 (drop_overlapping_mem_locs): Likewise.
1888 (val_reset): Likewise.
1889 (struct variable_union_info): Likewise.
1890 (variable_union): Likewise.
1891 (find_loc_in_1pdv): Likewise.
1892 (insert_into_intersection): Likewise.
1893 (intersect_loc_chains): Likewise.
1894 (canonicalize_loc_order_check): Likewise.
1895 (canonicalize_values_mark): Likewise.
1896 (canonicalize_values_star): Likewise.
1897 (canonicalize_vars_star): Likewise.
1898 (variable_merge_over_cur): Likewise.
1899 (remove_duplicate_values): Likewise.
1900 (variable_post_merge_new_vals): Likewise.
1901 (variable_post_merge_perm_vals): Likewise.
1902 (find_mem_expr_in_1pdv): Likewise.
1903 (dataflow_set_preserve_mem_locs): Likewise.
1904 (dataflow_set_remove_mem_locs): Likewise.
1905 (variable_part_different_p): Likewise.
1906 (onepart_variable_different_p): Likewise.
1907 (find_src_set_src): Likewise.
1908 (dump_var): Likewise.
1909 (set_slot_part): Likewise.
1910 (clobber_slot_part): Likewise.
1911 (delete_slot_part): Likewise.
1912 (vt_expand_var_loc_chain): Likewise.
1913 (emit_note_insn_var_location): Likewise.
1914 (vt_finalize): Likewise.
1916 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1918 * dse.c (store_info_t): Remove typedef.
1919 (group_info_t): Likewise.
1920 (const_group_info_t): Likewise.
1921 (deferred_change_t): Likewise.
1922 (get_group_info): Adjust.
1923 (free_store_info): Likewise.
1924 (canon_address): Likewise.
1925 (clear_rhs_from_active_local_stores): Likewise.
1926 (record_store): Likewise.
1927 (replace_read): Likewise.
1928 (check_mem_read_rtx): Likewise.
1929 (scan_insn): Likewise.
1930 (remove_useless_values): Likewise.
1931 (dse_step1): Likewise.
1932 (dse_step2_init): Likewise.
1933 (dse_step2_nospill): Likewise.
1934 (scan_stores_nospill): Likewise.
1935 (scan_reads_nospill): Likewise.
1936 (dse_step3_exit_block_scan): Likewise.
1937 (dse_step3): Likewise.
1938 (dse_step5_nospill): Likewise.
1939 (dse_step6): Likewise.
1941 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1943 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1944 (alias_set_entry): Remove typedef.
1945 (alias_set_subset_of): Adjust.
1946 (alias_sets_conflict_p): Likewise.
1947 (init_alias_set_entry): Likewise.
1948 (get_alias_set): Likewise.
1949 (new_alias_set): Likewise.
1950 (record_alias_subset): Likewise.
1952 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
1954 * doc/install.texi (Downloading the source): Mark up
1955 contrib/download_prerequisites properly and drop leading "./".
1957 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1959 * config/arc/arc.h: Remove define of STRUCT_VALUE.
1960 * config/lm32/lm32.h: Likewise.
1961 * config/mep/mep.h: Likewise.
1962 * config/visium/visium.h: Likewise.
1963 * system.h: Poison STRUCT_VALUE macro.
1965 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1967 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1968 CONSTANT_P operands.
1970 2015-09-11 David S. Miller <davem@davemloft.net>
1972 * config/sparc/constraints.md: Make "U" constraint a real register
1974 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1975 (D_MODES, DF_MODES): Add missing cast.
1976 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1977 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1978 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1980 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1981 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1982 provide these insn when flag_pic.
1984 2015-09-11 Jeff Law <law@redhat.com>
1986 PR tree-optimization/47679
1987 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1988 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1989 member with m_. Update inline member functions as necessary. Add
1991 * tree-ssa-scopedtables.c: Update const_and_copies's member
1992 functions to use m_ prefix to access the stack.
1994 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1996 * graphite-optimize-isl.c (disable_tiling): Remove.
1997 (get_schedule_for_band): Do not use disable_tiling.
1998 (get_prevector_map): Delete function.
1999 (enable_polly_vector): Remove.
2000 (get_schedule_for_band_list): Remove dead code.
2002 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2004 * graphite-optimize-isl.c (get_tile_map): Refactor.
2005 (get_schedule_for_band): Same.
2006 (getScheduleForBand): Same.
2007 (get_prevector_map): Same.
2008 (get_schedule_for_band_list): Same.
2009 (get_schedule_map): Same.
2010 (get_single_map): Same.
2011 (apply_schedule_map_to_scop): Same.
2012 (optimize_isl): Same.
2014 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2017 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2019 * config/aarch64/iterators.md (GPF_TF_F16): New.
2022 2015-09-10 Nathan Sidwell <nathan@acm.org>
2024 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2025 (nvptx_reorg): Adjust comments.
2027 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2030 * configure.ac: Check if setenv and unsetenv are declared.
2031 * configure: Rebuild.
2032 * config.in: Rebuild.
2033 * system.h: Declare setenv and unsetenv if not declared.
2035 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2037 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2038 commentary to simplify permute mask adjustment equation.
2039 (special_handling_values): Add SH_VPERM.
2040 (const_load_sequence_p): New function.
2041 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2042 the mask loaded from the constant pool.
2043 (adjust_vperm): New function.
2044 (handle_special_swappables): Call adjust_vperm.
2045 (dump_swap_insn_table): Handle SH_VPERM.
2047 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2049 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2050 * shrink-wrap.h (requires_stack_frame_p): Put back.
2052 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2054 * reload1.c (elimination_costs_in_insn): Locally turn
2055 -Wmaybe-uninitialized into a warning.
2057 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2059 * shrink-wrap.c (requires_stack_frame_p): Make static.
2060 (prepare_shrink_wrap): Likewise.
2061 (dup_block_and_redirect): Likewise.
2062 * shrink-wrap.h: Remove declarations of those functions.
2064 2015-09-10 Mark Wielaard <mjw@redhat.com>
2066 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2068 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2071 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2072 missing simplify_gen_subreg.
2074 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2076 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2077 the vector element is bigger than 64 bit.
2079 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2081 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2082 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2084 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2086 * config/s390/s390.c: Add V1TImode to constant pool modes.
2088 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2091 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2092 predicate. Set predicable_short_it attr to "no".
2094 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2096 PR rtl-optimization/67421
2097 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2098 left wide shift tranformation.
2100 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2102 * common/config/arc/arc-common.c: Remove references to A5.
2103 * config/arc/arc-opts.h: Likewise.
2104 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2105 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2106 * config/arc/t-arc-newlib: Likewise.
2108 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2110 * config/arc/arc.md (length): Fix attribute length for conditional
2111 executed instructions with long immediate.
2113 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2115 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2116 type for second alternative.
2118 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2120 * doc/invoke.texi (Downloading GCC): Mention
2121 contrib/download_prerequisites script.
2123 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2126 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2127 for combined loop, assert seen_error () and return GS_ERROR.
2130 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2131 if decl is already in outer->variables.
2134 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2135 asserting that decl is not specified in octx->variables,
2136 break out of the loop if it is.
2139 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2140 iterator is not explicitly determined, but is defined inside
2141 of the combined workshare region, handle it like if it has
2142 DECL_EXPR in OMP_FOR_PRE_BODY.
2144 2015-09-09 Nathan Sidwell <nathan@acm.org>
2146 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2147 (*cmp<mode>): Add assembler spacing.
2148 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2149 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2151 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2152 (nvptx_expand_call): Likewise.
2153 (nvptx_output_call_insn): Likewise.
2154 (nvptx_reorg_subreg): Add spacing.
2156 2015-09-09 Marek Polacek <polacek@redhat.com>
2159 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2162 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2165 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2167 2015-09-09 Tom de Vries <tom@codesourcery.com>
2169 * params-list.h: Add missing copyright notice.
2171 2015-09-09 Nathan Sidwell <nathan@acm.org>
2173 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2174 sel_truesi, not andsi.
2176 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2178 * config/arm/arm.md (*subsi3_compare0): Rename to...
2179 (subsi3_compare0): ... This.
2180 (modsi3): New define_expand.
2181 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2182 when operand is power of 2.
2184 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2186 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2187 (*neg<mode>2_compare0): Rename to...
2188 (neg<mode>2_compare0): ... This.
2189 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2190 Move check for speed inside the if-then-elses. Reflect
2191 CSNEG sequence in MOD by power of 2 case.
2193 2015-09-09 Alan Modra <amodra@gmail.com>
2196 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2197 reload replacement for PRE_MODIFY address reg.
2199 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2201 PR tree-optimization/53852
2202 * config.in: Regenerate.
2203 * configure: Regenerate.
2204 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2205 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2206 PARAM_MAX_ISL_OPERATIONS is reached.
2207 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2208 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2209 result equal to isl_stat_ok as the status now can be isl_error_quota.
2210 (subtract_commutative_associative_deps): Same.
2211 (compute_deps): Same.
2213 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2214 Sebastian Pop <s.pop@samsung.com>
2216 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2217 Return the parameter if it was saved in corresponding
2218 parameter_rename_map of the region.
2219 (copy_def): Copy def from sese region to the newly created region.
2220 (copy_internal_parameters): Copy all the internal parameters defined
2221 within a region to the newly created region.
2222 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2223 translating isl to gimple.
2224 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2225 the loop-nest does not have any data-references.
2226 (build_graphite_scops): Create a scop only when there is at least one
2228 (contains_only_close_phi_nodes): Deleted.
2229 (print_graphite_scop_statistics): Deleted
2230 (print_graphite_statistics): Deleted
2231 (limit_scops): Deleted.
2232 (build_scops): Removed call to limit_scops.
2233 * sese.c (new_sese): Construct.
2234 (free_sese): Destruct.
2235 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2237 (set_rename): Pass sese region so that parameters inside the region can
2238 be added to its parameter_rename_map.
2239 (rename_uses): Pass sese region.
2240 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2241 generated in the header of the scop. For each SSA_NAME in the
2242 parameter_rename_map rename its usage.
2243 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2245 (scalar_evolution_in_region): If the tree t is invariant just return t.
2246 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2247 struct sese to keep track of all the parameters which need renaming.
2248 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2250 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2252 2015-09-08 Tom de Vries <tom@codesourcery.com>
2254 * Makefile.in (generated_files): Add params.list.
2255 (params.list, s-params.list): Add rule.
2256 * params.h (enum compiler_param): Include params-list.h. Move define
2257 DEFPARAM, include params.def and undef DEFPARAM ...
2258 * params-list.h: ... here. New file.
2260 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2262 * pretty-print.h (printer_fn): Fix typo in comment.
2264 2015-09-07 Jeff Law <law@redhat.com>
2266 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2268 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2270 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2271 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2272 (arm_neon_fp16_hw): New.
2274 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2276 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2277 UNITS_PER_WORD >= 4.
2279 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2281 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2282 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2283 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2284 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2285 (aarch64_float_extend_lo_v2df): Rename to...
2286 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2288 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2289 (float_extend_lo): Add v4sf.
2291 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2292 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2293 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2294 (Vwide): New mode_attr.
2296 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2298 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2299 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2300 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2301 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2302 V4HF and V8HF variants to iterator.
2304 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2306 * config/aarch64/iterators.md (VDQF_F16): New.
2307 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2309 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2311 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2312 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2313 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2314 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2315 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2316 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2317 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2318 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2319 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2320 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2321 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2322 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2323 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2324 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2325 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2326 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2327 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2328 vld1q_dup_f16): New.
2330 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2332 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2333 Reparameterize to...
2334 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2335 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2336 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2338 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2340 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2342 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2344 * config/aarch64/iterators.md (VDF, Vdtype): New.
2345 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2347 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2349 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2350 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2351 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2352 Add __builtin_aarch64_simd_hf.
2353 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2354 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2355 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2356 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2357 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2358 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2359 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2360 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2361 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2363 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2364 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2365 (VDC, Vdbl): Add V4HF.
2367 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2369 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2370 V4HFmode and V8HFmode.
2371 (aarch64_split_simd_move): Add case for V8HFmode.
2372 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2373 (aarch64_simd_builtin_std_type): Handle HFmode.
2374 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2376 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2377 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2378 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2380 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2383 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2384 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2386 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2387 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2388 vst1q_lane_f16): New.
2389 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2390 (VALLDI_F16, VALL_F16): New.
2391 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2392 Add cases for V4HF and V8HF.
2393 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2395 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2397 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2398 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2399 vld4_dup): Add v4hf variant.
2400 (vget_high, vget_low): Add v8hf variant.
2401 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2402 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2403 v4hf and v8hf variants.
2405 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2407 (V_DOUBLE): Add case for V4HF.
2409 (V_HALF): Add case for V8HF.
2410 (VDQX): Add V4HF, V8HF.
2411 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2412 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2414 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2415 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2416 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2417 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2418 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2419 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2420 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2421 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2422 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2424 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2425 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2426 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2427 Change VDX to VD_RE.
2429 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2430 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2431 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2433 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2434 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2435 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2436 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2437 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2438 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2439 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2440 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2441 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2443 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2445 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2446 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2447 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2448 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2449 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2450 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2451 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2452 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2453 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2454 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2457 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2459 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2461 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2463 * config/arm/arm-builtins.c (v8hf_UP): New.
2464 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2466 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2468 * config/arm/arm_neon.h (float16x8_t): New typedef.
2470 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2472 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2473 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2474 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2475 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2476 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2477 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2478 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2479 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2480 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2481 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2483 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2485 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2486 non-alphanumeric characters in the symbol name.
2488 2015-09-07 Marek Polacek <polacek@redhat.com>
2491 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2494 2015-09-07 Marek Polacek <polacek@redhat.com>
2496 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2498 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2500 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2503 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2506 * tree-ssa-live.c: Include cfgloop.h.
2507 (remove_unused_locals): Clear loop->simduid if simduid is about
2508 to be removed from cfun->local_decls.
2510 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2513 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2516 2015-09-04 Tom de Vries <tom@codesourcery.com>
2518 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2520 2015-09-04 Jeff Law <law@redhat.com>
2522 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2523 unnecessary constructor. It's now trivial and implemented inside...
2524 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2525 constructor. Add comments to various methods. Remove unused
2527 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2528 * tree-vrp.c (identify_jump_threads): Likewise.
2529 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2531 (thread_across_edge): Similarly.
2532 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2533 arguments in constructor call.
2535 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2537 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2538 temp path contains a '-'.
2540 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2541 Petr Murzin <petr.murzin@intel.com>
2542 Kirill Yukhin <kirill.yukhin@intel.com>
2544 * config/i386/i386-builtin-types.def
2545 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2546 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2547 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2548 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2549 * config/i386/i386.c
2550 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2551 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2552 IX86_BUILTIN_SCATTERALTDIV16SI.
2553 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2554 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2555 __builtin_ia32_scatteraltdiv8si.
2556 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2557 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2558 IX86_BUILTIN_SCATTERALTDIV16SI.
2559 (ix86_vectorize_builtin_scatter): New.
2560 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2561 ix86_vectorize_builtin_scatter.
2563 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2564 Petr Murzin <petr.murzin@intel.com>
2565 Kirill Yukhin <kirill.yukhin@intel.com>
2567 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2568 * doc/tm.texi: Regenerate.
2569 * target.def: Add scatter builtin.
2570 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2571 for loads/stores in case of gather/scatter accordingly.
2572 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2573 STMT_VINFO_GATHER_P(S).
2574 (vect_check_gather): Rename to ...
2575 (vect_check_gather_scatter): this.
2576 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2577 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2578 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2579 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2580 variable and new checkings for it accordingly.
2582 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2583 STMT_VINFO_GATHER_P(S).
2584 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2585 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2587 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2589 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2591 (mulv16qi3): New define_expand.
2593 2015-09-03 Martin Sebor <msebor@redhat.com>
2596 * doc/extend.texi (Other Builtins): Document when the address
2597 of a built-in function can be taken.
2599 2015-09-03 Richard Biener <rguenther@suse.de>
2601 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2602 (dwarf2out_early_finish): ... here.
2603 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2604 flush_limbo_die_list. Assert we have no deferred asm names.
2606 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2608 * optabs.c (expand_binop): Don't create a broadcast vector with a
2609 source element wider than the inner mode.
2611 2015-09-03 Richard Biener <rguenther@suse.de>
2613 * varasm.c (output_constant): Use fold_convert instead of
2616 2015-09-03 Tom de Vries <tom@codesourcery.com>
2618 PR tree-optimization/65637
2619 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2620 fin_bb has 2 predecessors.
2622 2015-09-03 Tom de Vries <tom@codesourcery.com>
2624 PR tree-optimization/65637
2625 * omp-low.c (find_phi_with_arg_on_edge): New function.
2626 (expand_omp_for_static_chunk): Fix inner loop phi.
2628 2015-09-03 Tom de Vries <tom@codesourcery.com>
2630 PR tree-optimization/65637
2631 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2634 2015-09-03 Tom de Vries <tom@codesourcery.com>
2636 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2638 2015-09-03 Tom de Vries <tom@codesourcery.com>
2640 * doc/invoke.texi (parloops-chunk-size): Add item.
2641 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2642 * tree-parloops.c: Include params.h.
2643 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2644 param parloops-chunk-size is used.
2646 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2649 * fold-const.c (fold_binary_loc) : Move
2650 Transform (x >> c) << c into x & (-1<<c) or
2651 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2652 types using simplify and match.
2653 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2654 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2656 2015-09-03 Richard Biener <rguenther@suse.de>
2659 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2660 (create_variable_info_for_1): Use ctor_for_analysis instead
2662 (create_variable_info_for): Likewise.
2664 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2667 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2668 in new callgraph edge.
2670 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2675 * config/aarch64/aarch64-simd.md
2676 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2677 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2678 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2679 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2681 2015-09-02 Alan Modra <amodra@gmail.com>
2683 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2684 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2685 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2687 2015-09-02 Alan Modra <amodra@gmail.com>
2690 * config/rs6000/predicates.md (current_file_function_operand): Don't
2691 return true for weak symbols.
2692 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2694 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2695 Andrew Bennett <andrew.bennett@imgtec.com>
2697 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2698 * config/mips/mips-protos.h: Add definitions for
2699 mips_output_jump and mips_output_equal_conditional_branch
2700 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2702 (mips_emit_compare): Add support for the MIPS R6 conditional
2704 (mips_process_sync_loop): Likewise.
2705 (mips_output_order_conditional_branch): Likewise.
2706 (mips16_build_call_stub): Change MIPS_CALL to
2708 (mips_print_operand_punctuation): Update 's' case to only
2709 apply to micromips r2.
2710 (mips_adjust_insn_length): Add support for forbidden slot
2712 (mips_avoid_hazard): Likewise.
2713 (mips_reorg_process_insns): Likewise.
2714 (mips_output_jump): New function.
2715 (mips_output_equal_conditional_branch): Likewise.
2716 (mips_output_conditional_branch): Use jrc/bc if compact
2717 branch support is enabled. Ensure the forbidden slots
2718 between the two branch instructions is filled with a nop.
2719 (mips_option_override): Add support to process the compact
2720 branch option and set the correct defaults. Prevent
2721 non-explict relocs being using for MIPS R6.
2722 (mips_trampoline_init): Add compact branch support.
2723 (mips_mult_zero_zero_cost): Allow zero initialisation of
2724 accumulators with TARGET_DSP.
2725 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
2726 (TARGET_CB_MAYBE): New define.
2727 (TARGET_CB_ALWAYS): New define.
2728 (ISA_HAS_DELAY_SLOTS): New define.
2729 (ISA_HAS_COMPACT_BRANCHES): New define.
2730 (ISA_HAS_JRC): New define.
2731 (MIPS_BRANCH_C): New define.
2732 (MIPS_CALL): Removed.
2733 (MICROMIPS_J): Removed.
2734 * config/mips/mips.md (compact_form): New attr.
2735 (hazard): Add support for forbidden slots.
2736 (define_delay): Add support for compact branches.
2737 (*branch_order<mode>): Likewise.
2738 (*branch_order<mode>_inverted): Likewise.
2739 (*branch_equality<mode>): Likewise.
2740 (*branch_equality<mode>_inverted): Likewise.
2741 (*jump_absolute): Likewise.
2742 (*jump_pic): Likewise.
2743 (indirect_jump): Use mips_output_jump to produce assembly output.
2744 (tablejump_<mode>"): Likewise.
2745 (*<optab>"): Likewise.
2746 (<optab>_internal): Likewise.
2747 (sibcall_internal): Likewise.
2748 (sibcall_value_internal): Likewise.
2749 (sibcall_value_multiple_internal): Likewise.
2750 (call_internal): Likewise.
2751 (call_split): Likewise.
2752 (call_internal_direct): Likewise.
2753 (call_direct_split): Likewise.
2754 (call_value_internal): Likewise.
2755 (call_value_split): Likewise.
2756 (call_value_internal_direct): Likewise.
2757 (call_value_direct_split): Likewise.
2758 (call_value_multiple_internal): Likewise.
2759 (call_value_multiple_split): Likewise.
2760 (mips_get_fcsr_mips16_<mode>): Likewise.
2761 (mips_set_fcsr_mips16_<mode>): Likewise.
2762 (tls_get_tp_mips16_<mode>): Likewise.
2763 * config/mips/mips.opt: Add -mcompact-branches option.
2764 * config/mips/predicates.md (order_operator): Ensure the
2765 conditional compact branches are only used if the ISA them.
2766 * doc/invoke.texi: Document -mcompact-branches option.
2768 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
2771 * lra-lives.c (process_bb_lives): Process move pseudos with the
2772 same value for copies and preferences
2773 * lra-constraints.c (match_reload): Create match reload pseudo
2774 with the same value from single dying input pseudo.
2776 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2779 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2781 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
2783 * trans-mem.c: Add contributed-by.
2784 * trans-mem.h: Same.
2786 2015-09-01 Richard Biener <rguenther@suse.de>
2788 * expr.c (expand_expr_real_1): For expanding TERed defs
2789 set the current location to that of the def if not UNKNOWN.
2791 2015-09-01 David Sherwood <david.sherwood@arm.com>
2793 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
2795 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2797 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
2798 then_cost, else_cost fields. Change branch_cost field to unsigned int.
2799 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
2801 (noce_simple_bbs): New function.
2802 (noce_try_move): Bail if basic blocks are not simple.
2803 (noce_try_store_flag): Likewise.
2804 (noce_try_store_flag_constants): Likewise.
2805 (noce_try_addcc): Likewise.
2806 (noce_try_store_flag_mask): Likewise.
2807 (noce_try_cmove): Likewise.
2808 (noce_try_minmax): Likewise.
2809 (noce_try_abs): Likewise.
2810 (noce_try_sign_mask): Likewise.
2811 (noce_try_bitop): Likewise.
2812 (bbs_ok_for_cmove_arith): New function.
2813 (noce_emit_all_but_last): Likewise.
2814 (noce_emit_insn): Likewise.
2815 (noce_emit_bb): Likewise.
2816 (noce_try_cmove_arith): Handle non-simple basic blocks.
2817 (insn_valid_noce_process_p): New function.
2818 (contains_mem_rtx_p): Likewise.
2819 (bb_valid_for_noce_process_p): Likewise.
2820 (noce_process_if_block): Allow non-simple basic blocks
2823 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
2825 * tree-ssa-dom.c (record_equivalences_from_phis,
2826 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2827 (lookup_avail_expr): Likewise, and remove comment and unused temp.
2829 2015-09-01 Nick Clifton <nickc@redhat.com>
2831 * config/msp430/msp430.opt (mcpu): Fix typo.
2833 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2835 * config/aarch64/aarch64.c (aarch64_set_current_function):
2836 Re-layout any vector parameters have non-simd layout.
2837 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2839 (aarch64_simd_expand_args): Delete call to the above.
2841 2015-08-31 Mike Frysinger <vapier@gentoo.org>
2843 * doc/invoke.texi (asan-stack): Add space before option.
2845 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2847 * tree.h (zerop): New function.
2848 * tree.c (zerop): Likewise.
2849 (element_precision): Handle expressions.
2850 * match.pd (define_predicates): Add zerop.
2851 (x <= +Inf): Fix comment.
2852 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2853 * fold-const.c (fold_binary_loc): ... here. Remove.
2855 2015-08-31 Richard Biener <rguenther@suse.de>
2858 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2860 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2862 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2863 (CEXPI): New operator list.
2864 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2865 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2867 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2869 2015-08-31 Tom de Vries <tom@codesourcery.com>
2871 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2872 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2874 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2875 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2876 (rewrite_into_loop_closed_ssa): ... here.
2877 (replace_uses_in_dominated_bbs): Remove function.
2878 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2879 rewrite_into_loop_closed_ssa_1.
2881 2015-08-31 Michael Matz <matz@suse.de>
2883 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2884 enter entry and exit blocks for reverse post order.
2886 2015-08-31 Richard Biener <rguenther@suse.de>
2888 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2889 (lto_location_cache::current_sysp): Likewise.
2890 (output_block::current_sysp): Likewise.
2891 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2892 (lto_location_cache::apply_location_cache): Properly record
2893 system header locations.
2894 (lto_location_cache::input_location): Input whether a file
2896 * lto-streamer-out.c (lto_output_location): Stream whether a file
2899 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2902 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2904 2015-08-31 Tom de Vries <tom@codesourcery.com>
2906 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2907 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2908 Improve function header comments.
2910 2015-08-30 Michael Collison <michael.collison@linaro.org>
2913 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2916 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2918 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2919 special_handling bitfield.
2920 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2921 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2922 that represents a general xxpermdi.
2923 (insn_is_swappable_p): Add handling for vec_concat of two
2924 doublewords, which maps to a specific xxpermdi.
2925 (adjust_xxpermdi): New function.
2926 (adjust_concat): Likewise.
2927 (handle_special_swappables): Call adjust_xxpermdi and
2929 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2931 2015-08-30 Rich Felker <dalias@libc.org>
2933 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2934 case instead of sh[123456ble]-*-*.
2936 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2938 * ira.c (print_unform_and_important_classes,
2939 print_translated_classes): Remove reg_class_names static array.
2940 (print_unform_and_important_classes): Rename to ...
2941 (print_uniform_and_important_classes): ... this.
2942 (ira_debug_allocno_classes): Update accordingly.
2944 2015-08-29 Tom de Vries <tom@codesourcery.com>
2946 PR tree-optimization/46193
2947 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2950 2015-08-28 Jeff Law <law@redhat.com>
2953 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2954 unable to find X NE 0 in the tables, return X as the simplified
2956 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2957 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2959 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2960 after removing the control flow statement and unnecessary edges.
2962 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
2965 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2967 PR tree-optimization/67283
2968 * tree-sra.c (type_consists_of_records_p): Rename to...
2969 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2971 (completely_scalarize_record): Rename to...
2972 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2974 (scalarize_elem): New.
2976 2015-08-28 Jiong Wang <jiong.wang@arm.com>
2978 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2979 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2980 (aarch64_symbol_type): Likewise.
2981 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2983 (aarch64_expand_mov_immediate): Likewise.
2984 (aarch64_print_operand): Likewise.
2985 (aarch64_classify_tls_symbol): Likewise.
2987 2015-08-28 Richard Biener <rguenther@suse.de>
2989 * cgraphunit.c (symbol_table::compile): Move early debug generation
2991 (symbol_table::finalize_compilation_unit): ... back here and
2992 add a !seen_error () guard.
2994 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2996 * toplev.c (process_options): Do not use flag_loop_block,
2997 flag_loop_interchange, and flag_loop_strip_mine. Add check for
2998 flag_loop_optimize_isl.
3000 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3002 * Makefile.in (OBJS): Remove graphite-blocking.o and
3003 graphite-interchange.o.
3004 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3005 Alias of floop-nest-optimize.
3006 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3007 Document as alias of -floop-nest-optimize.
3008 * graphite-blocking.c: Remove.
3009 * graphite-interchange.c: Remove.
3010 * graphite-optimize-isl.c: Include dumpfile.h.
3011 (getScheduleForBand): Add dump for tiled loops. Use
3012 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3013 * graphite-poly.c (scop_max_loop_depth): Remove.
3014 (print_scattering_function_1): Remove.
3015 (print_scattering_function): Remove.
3016 (print_scattering_functions): Remove.
3017 (debug_scattering_function): Remove.
3018 (debug_scattering_functions): Remove.
3019 (apply_poly_transforms): Remove use of flag_loop_block,
3020 flag_loop_strip_mine, and flag_loop_interchange.
3021 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3023 (print_pdr_access_layout): Remove.
3024 (print_pdr): Print ISL representation.
3025 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3026 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3028 (openscop_print_pbb_domain): Remove.
3029 (print_pbb): Remove call to print_scattering_function.
3030 (openscop_print_scop_context): Remove.
3031 (print_scop_context): Do not print matrices anymore.
3032 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3033 SCOP_TRANSFORMED_SCHEDULE.
3034 (print_isl_set): Add printing of a new line.
3035 (print_isl_map): Same.
3036 (print_isl_aff): Same.
3037 (print_isl_constraint): Same.
3038 (loop_to_lst): Remove.
3039 (scop_to_lst): Remove.
3040 (lst_indent_to): Remove.
3041 (print_lst): Remove.
3042 (debug_lst): Remove.
3043 (dot_lst_1): Remove.
3045 (reverse_loop_at_level): Remove.
3046 (reverse_loop_for_pbbs): Remove.
3047 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3048 (pdr_nb_params): Remove.
3049 (pdr_alias_set_dim): Remove.
3050 (pdr_subscript_dim): Remove.
3051 (pdr_iterator_dim): Remove.
3052 (pdr_parameter_dim): Remove.
3053 (same_pdr_p): Remove.
3054 (struct poly_scattering): Remove.
3055 (struct poly_bb): Remove _original, _transformed, _saved.
3056 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3057 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3058 (PBB_NB_LOCAL_VARIABLES): Remove.
3059 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3060 (schedule_to_scattering): Remove.
3061 (number_of_write_pdrs): Remove.
3062 (pbb_dim_iter_domain): Remove.
3063 (pbb_nb_params): Remove.
3064 (pbb_nb_scattering_orig): Remove.
3065 (pbb_nb_scattering_transform): Remove.
3066 (pbb_nb_dynamic_scattering_transform): Remove.
3067 (pbb_nb_local_vars): Remove.
3068 (pbb_iterator_dim): Remove.
3069 (pbb_parameter_dim): Remove.
3070 (psco_scattering_dim): Remove.
3071 (psct_scattering_dim): Remove.
3072 (psct_local_var_dim): Remove.
3073 (psco_iterator_dim): Remove.
3074 (psct_iterator_dim): Remove.
3075 (psco_parameter_dim): Remove.
3076 (psct_parameter_dim): Remove.
3077 (psct_dynamic_dim): Remove.
3078 (psct_static_dim): Remove.
3079 (psct_add_local_variable): Remove.
3080 (new_lst_loop): Remove.
3081 (new_lst_stmt): Remove.
3084 (lst_add_loop_under_loop): Remove.
3085 (lst_depth): Remove.
3086 (lst_dewey_number): Remove.
3087 (lst_dewey_number_at_depth): Remove.
3090 (lst_find_pbb): Remove.
3091 (find_lst_loop): Remove.
3092 (lst_find_first_pbb): Remove.
3093 (lst_empty_p): Remove.
3094 (lst_find_last_pbb): Remove.
3095 (lst_contains_p): Remove.
3096 (lst_contains_pbb): Remove.
3097 (lst_create_nest): Remove.
3098 (lst_remove_from_sequence): Remove.
3099 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3100 (lst_niter_for_loop): Remove.
3101 (pbb_update_scattering): Remove.
3102 (lst_update_scattering_under): Remove.
3103 (lst_update_scattering): Remove.
3104 (lst_insert_in_sequence): Remove.
3105 (lst_replace): Remove.
3106 (lst_substitute_3): Remove.
3107 (lst_distribute_lst): Remove.
3108 (lst_remove_all_before_including_pbb): Remove.
3109 (lst_remove_all_before_excluding_pbb): Remove.
3110 (struct scop): Remove original_schedule, transformed_schedule, and
3112 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3113 (SCOP_SAVED_SCHEDULE): Remove.
3114 (poly_scattering_new): Remove.
3115 (poly_scattering_free): Remove.
3116 (poly_scattering_copy): Remove.
3117 (store_scattering_pbb): Remove.
3118 (store_lst_schedule): Remove.
3119 (restore_lst_schedule): Remove.
3120 (store_scattering): Remove.
3121 (restore_scattering_pbb): Remove.
3122 (restore_scattering): Remove.
3123 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3124 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3125 compute the scattering polyhedron dimension from the dimension of
3127 (build_scop_scattering): Update call to
3128 build_pbb_scattering_polyhedrons.
3129 (build_poly_scop): Remove call to scop_to_lst.
3130 * graphite.c (graphite_transform_loops): Add call to print_scop.
3131 (gate_graphite_transforms): Remove use of flag_loop_block,
3132 flag_loop_interchange, and flag_loop_strip_mine.
3134 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3136 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3137 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3138 -floop-nest-optimize.
3139 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3140 (generate_luj_sepclass): Remove.
3141 (generate_luj_options): Remove.
3142 (set_options): Remove opt_luj.
3143 (scop_to_isl_ast): Remove opt_luj.
3144 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3145 flag_loop_unroll_jam.
3146 (getPrevectorMap_full): Remove.
3147 (getScheduleForBandList): Remove map_sepcl.
3148 (getScheduleMap): Same.
3149 (apply_schedule_map_to_scop): Remove sepcl.
3150 (optimize_isl): Same.
3151 * graphite-poly.c (apply_poly_transforms): Remove check for
3152 flag_loop_unroll_jam.
3153 (new_poly_bb): Remove map_sepclass.
3154 * graphite-poly.h (struct poly_bb): Same.
3155 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3156 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3157 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3158 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3160 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3163 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3165 (UNSPEC_ADD_CARRY): Remove.
3166 (addqi3_cconly_overflow): New expander.
3167 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3168 Adjust for changed add<mode>3_carry.
3169 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3170 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3171 (<plusminus_insn><mode>3_carry): Remove expander.
3172 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3173 add<mode>3_carry and sub<mode>3_carry.
3174 (plusminus_carry_mnemonic): Remove code attribute.
3175 (add<mode>3_carry): Canonicalize insn pattern.
3176 (*addsi3_carry_zext): Ditto.
3177 (sub<mode>3_carry): Ditto.
3178 (*subsi3_carry_zext): Ditto.
3179 (adcx<mode>3): Remove insn pattern.
3180 (addcarry<mode>): New insn pattern.
3181 (subborrow<mode>): Ditto.
3182 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3183 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3184 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3185 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3186 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3187 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3188 Rewrite expander to not clobber carry flag chains.
3190 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3192 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3193 instead of a rotate.
3195 2015-08-27 Marek Polacek <polacek@redhat.com>
3198 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3199 an entry into an irreducible region.
3201 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3203 * configure: Regenerate.
3205 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3207 PR tree-optimization/67283
3208 * tree-sra.c (type_consists_of_records_p): Rename to...
3209 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3211 (completely_scalarize_record): Rename to...
3212 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3213 (scalarize_elem): New.
3215 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3217 * tree-sra.c (completely_scalarize_var): Rename to...
3218 (create_total_scalarization_access): ... Here. Drop call to
3219 completely_scalarize_record.
3221 (analyze_all_variable_accesses): Replace completely_scalarize_var
3222 with create_total_scalarization_access and completely_scalarize_record.
3224 2015-08-27 Alan Modra <amodra@gmail.com>
3227 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3230 2015-08-27 Richard Biener <rguenther@suse.de>
3232 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3233 call with !seen_error ().
3234 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3235 early debug generation and finish...
3236 (symbol_table::compile): ... here to put it after a !seen_error ()
3239 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3241 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3244 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3245 Andre Vieira <andre.simoesdiasvieira@arm.com>
3247 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3248 (*cb<optab><mode>1): Likewise.
3249 (*tb<optab><mode>1): Likewise.
3250 (*cb<optab><mode>1): Likewise.
3251 * config/aarch64/iterators.md (inv_cb): New code attribute.
3253 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3254 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3256 2015-08-27 Richard Biener <rguenther@suse.de>
3258 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3260 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3262 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3265 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3267 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3270 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3272 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3273 floating point in VSX registers.
3274 (rs6000_output_move_128bit): Always print out the set insn if we
3275 can't generate an appropriate 128-bit move.
3276 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3277 point in VSX registers comparisons.
3278 (rs6000_expand_float128_convert): Likewise.
3280 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3281 predicate for only GPR hard registers.
3283 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3284 modes to iterators. Add new iterators for moving 128-bit values in
3285 scalar FPR registers and VSX registers.
3286 (FMOVE128): Likewise.
3287 (FMOVE128_FPR): Likewise.
3288 (FMOVE128_GPR): Likewise.
3289 (FMOVE128_VSX): Likewise.
3290 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3295 (RELOAD): Add IEEE 128-bit floating point modes.
3296 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3297 floating point in VSX registers modes.
3298 (signbit<mode>2, IBM128 iterator): Likewise.
3299 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3300 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3302 (neg<mode>2, TFIFKF iterator): Likewise.
3303 (negtf2_internal): Likewise.
3305 (abs<mode>2, TFIFKF iterator): Likewise.
3306 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3307 VSX insn support for negate, absolute value, and negative absolute
3309 (ieee_128bit_vsx_neg<mode>2): Likewise.
3310 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3311 (ieee_128bit_vsx_abs<mode>2): Likewise.
3312 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3313 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3314 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3315 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3316 floating point in VSX registers.
3317 (unpack<mode>_dm): Likewise.
3318 (unpack<mode>_nodm): Likewise.
3319 (pack<mode>): Likewise.
3320 (unpackv1ti): Likewise.
3321 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3322 (packv1ti): Likewise.
3323 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3324 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3326 (extenddftf2_internal): Likewise.
3327 (trunctfdf2): Likewise.
3328 (trunctfdf2_internal2): Likewise.
3329 (fix_trunc_helper): Likewise.
3330 (fix_trunctfdi2"): Likewise.
3331 (floatditf2): Likewise.
3332 (floatuns<mode>tf2): Likewise.
3333 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3334 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3335 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3336 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3337 (float<SDI:mode><IFKF:mode>2): Likewise.
3338 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3340 2015-08-26 Renlin Li <renlin.li@arm.com>
3342 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3344 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3345 Jiong Wang <jiong.wang@arm.com>
3347 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3348 (tlsie_tiny_<mode>): New define_insn.
3349 (tlsie_tiny_sidi): Likewise.
3350 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3352 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3353 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3355 (aarch64_expand_mov_immediate): Likewise.
3356 (aarch64_print_operand): Likewise.
3357 (arch64_classify_tls_symbol): Likewise.
3359 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3361 * config/arm/arm-arches.def: Replace single value flags with
3362 an initializer built from ARM_FSET_MAKE_CPU1.
3363 * config/arm/arm-cores.def: Likewise.
3364 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3365 derivation from the ARM_CORE macro definition, use the given value
3367 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3368 ARM_ARCH macro definition, use the given value instead.
3370 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3372 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3374 (struct builtin_description): Replace field mask with field
3376 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3377 (IWMMXT2_BUILTIN): Likewise.
3378 (IWMMXT2_BUILTIN2): Likewise.
3379 (FP_BUILTIN): Likewise.
3380 (CRC32_BUILTIN): Likewise.
3381 (CRYPTO_BUILTIN): Likewise.
3382 (iwmmx_mbuiltin): Likewise.
3383 (iwmmx2_mbuiltin): Likewise.
3384 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3385 struct builtin_description.
3387 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3389 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3390 (struct builtin_description): Change type of mask to unsigned
3392 * config/arm/arm-protos.h (insn_flags): Declare as type
3394 (tune_flags): Likewise.
3395 * config/arm/arm.c (feature_count): New.
3396 (insn_flags): Define as type arm_feature_set.
3397 (tune_flags): Likewise.
3398 (struct processors): Define field flags as type arm_feature_set.
3399 (all_cores): Update for change to struct processors.
3400 (all_architectures): Likewise.
3401 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3403 (arm_option_override_internal): Likewise.
3404 (arm_option_override): Likewise.
3406 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3407 Jiong Wang <jiong.wang@arm.com>
3409 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3410 tls size for tiny, small, large memory model.
3411 (aarch64_load_symref_appropriately): Support new symbol types.
3412 (aarch64_expand_mov_immediate): Likewise.
3413 (aarch64_print_operand): Likewise.
3414 (aarch64_classify_tls_symbol): Likewise.
3415 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3416 (aarch64_symbol_type): Likewise.
3417 * config/aarch64/aarch64.md (tlsle): Deleted.
3418 (tlsle12_<mode>): New define_insn.
3419 (tlsle24_<mode>): Likewise.
3420 (tlsle32_<mode>): Likewise.
3421 (tlsle48_<mode>): Likewise.
3422 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3425 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3427 * config/arm/arm-protos.h (FL_NONE): New.
3429 (arm_feature_set): New.
3430 (ARM_FSET_MAKE): New.
3431 (ARM_FSET_MAKE_CPU1): New.
3432 (ARM_FSET_MAKE_CPU2): New.
3433 (ARM_FSET_CPU1): New.
3434 (ARM_FSET_CPU2): New.
3435 (ARM_FSET_EMPTY): New.
3436 (ARM_FSET_ANY): New.
3437 (ARM_FSET_HAS_CPU1): New.
3438 (ARM_FSET_HAS_CPU2): New.
3439 (ARM_FSET_HAS_CPU): New.
3440 (ARM_FSET_ADD_CPU1): New.
3441 (ARM_FSET_ADD_CPU2): New.
3442 (ARM_FSET_DEL_CPU1): New.
3443 (ARM_FSET_DEL_CPU2): New.
3444 (ARM_FSET_UNION): New.
3445 (ARM_FSET_INTER): New.
3446 (ARM_FSET_XOR): New.
3447 (ARM_FSET_EXCLUDE): New.
3448 (AFM_FSET_IS_EMPTY): New.
3449 (ARM_FSET_CPU_SUBSET): New.
3451 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3453 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3454 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3455 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3457 (aarch64_expand_mov_immediate): Likewise.
3458 (aarch64_print_operand): Likewise.
3459 (aarch64_classify_symbol): Likewise.
3461 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3463 * config/aarch64/aarch64.opt (mtls-size): New entry.
3464 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3465 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3466 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3468 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3470 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3471 ARM_CORE entry. Fix some white-space.
3472 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3473 ARM_CORE definition.
3475 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3477 * fold-const.c (fold_binary_loc) : Move Optimize
3478 root(x)*root(y) as root(x*y) to match.pd.
3479 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3480 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3481 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3482 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3483 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3484 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3485 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3486 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3487 (rdiv @0 (exps:s @1)) : New simplifier.
3489 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3491 * gcc.c (driver::finalize): Only assign to extra_specs if
3494 2015-08-25 Marek Polacek <polacek@redhat.com>
3497 * varasm.c (declare_weak): Return after giving an error.
3499 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3501 * gcc-main.c (main): Add params to driver ctor.
3502 * gcc.c (class env_manager): New.
3504 (env_manager::init): New.
3505 (env_manager::get): New.
3506 (env_manager::xput): New.
3507 (env_manager::restore): New.
3508 Poison getenv and putenv.
3509 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3510 (target_system_root): Update initialization to use
3511 DEFAULT_TARGET_SYSTEM_ROOT.
3512 (struct spec_list): Add field "default_ptr".
3513 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3514 (init_spec): Likewise.
3515 (set_spec): Clear field "default_ptr".
3516 (read_specs): Free "spec" and "buffer".
3517 (xputenv): Reimplement in terms of env_manager.
3518 (process_command): Replace ::getenv calls with calls to the
3519 env_manager singleton.
3520 (process_brace_body): Free string in three places.
3521 (driver::driver): New.
3522 (driver::~driver): New.
3523 (used_arg): Convert from a function to...
3524 (class used_arg_t): ...this class, and...
3525 (used_arg): ...this new global instance.
3526 (used_arg_t::finalize): New function.
3527 (getenv_spec_function): Add "const" to local "value". Replace
3528 ::getenv call with call to the env_manager singleton.
3529 (path_prefix_reset): New function.
3530 (driver::finalize): New function.
3531 * gcc.h (driver::driver): New.
3532 (driver::~driver): New.
3533 (driver::finalize): New.
3535 2015-08-25 Nathan Sidwell <nathan@acm.org>
3537 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3538 target doesn't have one.
3540 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3543 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3545 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3548 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3549 a define_insn, remove second alternative.
3551 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3552 Joseph Myers <joseph@codesourcery.com>
3554 * gcc.c (struct switchstr): Expand comment.
3556 2015-08-25 Nathan Sidwell <nathan@acm.org>
3558 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3559 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3561 2015-08-25 Richard Biener <rguenther@suse.de>
3564 * genmatch.c (expr::gen_transform): Verify the result of
3565 builtin_decl_implicit.
3566 (dt_simplify::gen_1): Likewise.
3568 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3570 * config/arm/constraints.md: Also list Cs and US ARM-specific
3571 constraints as used.
3573 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3576 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3578 (nonpic_symbol_mentioned_p): Likewise.
3579 (sh_delegitimize_address): Likewise.
3580 (sh_function_ok_for_sibcall): Take into account weak symbols.
3581 (sh_expand_sym_label2reg): New.
3582 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3583 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3584 (call_pcrel): Use sh_expand_sym_label2reg.
3585 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3586 (symPCREL_label2reg) New expand.
3588 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3590 * graphite-poly.c: Change type of region from void* to sese.
3591 * graphite-poly.h (struct scop): Changing the type of scop::region
3592 from void* to sese. Change accessor macro accordingly.
3593 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3595 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3597 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3598 Constrain only on INTEGER_TYPE.
3600 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3603 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3604 -mefficient-unaligned-vsx on ISA 2.7.
3606 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3607 option to a masked option.
3609 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3610 logic for -mefficient-unaligned-vsx so that it is set via an arch
3611 ISA option, instead of being set if -mtune=power8 is set. Move
3612 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3613 near other default option handling.
3615 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3617 * genflags.c (gen_macro): Delete.
3618 (gen_proto): Don't create GEN.*CALL.* macros.
3619 * gensupport.h (get_file_location): Declare.
3620 * gensupport.c (rtx_locs): New variable.
3621 (read_md_rtx): Record rtx locations.
3622 (get_file_location): New function.
3623 * target-insns.def (call, call_pop, call_value, call_value_pop)
3624 (sibcall, sibcall_value): New patterns.
3625 * gentarget-def.c (parse_argument): New function.
3626 (def_target_insn): Use it. Handle optional operands. Raise an
3627 error if an .md pattern has the wrong number of operands for the
3628 pattern name. Remove the names of unused operands from the prototype.
3629 * builtins.c (expand_builtin_apply): Use targetm functions
3630 instead of HAVE_call_value and GEN_CALL_VALUE.
3631 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3632 and sibcall_value_pop.
3633 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3635 * config/alpha/alpha.md (untyped_call): Likewise.
3636 * config/iq2000/iq2000.md (untyped_call): Likewise.
3637 * config/m68k/m68k.md (untyped_call): Likewise.
3638 * config/mips/mips.md (untyped_call): Likewise.
3639 * config/pa/pa.md (untyped_call): Likewise.
3640 * config/rs6000/rs6000.md (untyped_call): Likewise.
3641 * config/sparc/sparc.md (untyped_call): Likewise.
3642 * config/tilegx/tilegx.md (untyped_call): Likewise.
3643 * config/tilepro/tilepro.md (untyped_call): Likewise.
3644 * config/visium/visium.md (untyped_call): Likewise.
3645 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3646 gen_call_value instead of GEN_CALL_VALUE.
3647 * config/arm/arm.md (untyped_call): Likewise.
3648 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3651 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3653 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3654 (have_cbranchcc4): New variable.
3655 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3656 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3657 (if_convert): Initialize have_cbranchcc4.
3659 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3661 * builtins.c (expand_cmpstrn): Rename to...
3662 (expand_cmpstrn_or_cmpmem): ...this.
3663 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3664 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3665 Remove mode argument.
3666 (expand_builtin): Update accordingly.
3668 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3670 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3671 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3672 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3673 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3674 Add predicates for operands 0 and 3.
3675 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3677 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3678 immediate_operand to nonmemory_operand.
3680 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3682 * df-scan.c (df_insn_info_init_fields): New function, split out
3684 (df_insn_create_insn_record): ...here.
3685 (df_insn_info_free_fields): New function, split out from...
3686 (df_insn_info_delete): ...here.
3687 (df_insn_rescan): Use the new functions instead of freeing and
3688 reallocating the df_insn_info.
3690 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3692 * doc/install.texi (Binaries): Remove links no longer valid.
3694 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3696 * config/nvptx/mkoffload.c (process): Replace
3697 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3699 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3702 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3704 2015-08-24 Renlin Li <renlin.li@arm.com>
3706 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3707 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3708 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3709 * config/arm/constraints.md ("j"): Add check for high code.
3711 2015-08-24 Tom de Vries <tom@codesourcery.com>
3713 PR tree-optimization/65468
3714 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
3717 2015-08-24 Nathan Sidwell <nathan@acm.org>
3719 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
3720 change to nvptx_type_from_mode call. Use arg_promotion for both
3721 split and non-split args.
3723 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3725 * target-insns.def (movstr): New pattern.
3726 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
3727 (expand_movstr): Use targetm rather than HAVE_movstr/
3730 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3732 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
3735 2015-08-24 Andrew Pinski <apinski@cavium.com>
3737 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
3738 AARCH64_EXTRA_TUNING_OPTION.
3739 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
3741 (aarch64_extra_tuning_flags): Base the shifted value on the index
3742 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
3743 * config/aarch64/aarch64.c: Remove the last argument to
3744 AARCH64_EXTRA_TUNING_OPTION.
3746 2015-08-23 Nathan Sidwell <nathan@acm.org>
3748 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
3750 (nvptx_declare_function_name): Insert formatting tabs for
3753 2015-08-23 Tom de Vries <tom@codesourcery.com>
3755 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
3756 parm_decl, rather than generating a dummy default def in cfun.
3757 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
3758 ssa_name from cfun and child_fn do not share a stmt as def stmt.
3759 (move_stmt_op): Handle PARM_DECl.
3760 (gather_ssa_name_hash_map_from): New function.
3761 (move_sese_region_to_fn): Add default defs for function params, and add
3762 them to vars_map. Release copied ssa names.
3763 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3765 2015-08-23 Tom de Vries <tom@codesourcery.com>
3767 * doc/sourcebuild.texi: Rename vect_no_int_max with
3768 vect_no_int_min_max. Update description.
3770 2015-08-22 Andrew Pinski <apinski@cavium.com>
3772 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3773 * config/aarch64/aarch64-protos.h
3774 (aarch64_fusion_pairs_index): New enum.
3775 (aarch64_fusion_pairs): Base the shifted value on the index instead
3776 Rewrite AARCH64_FUSE_ALL to be based on the end index.
3777 of the argument to AARCH64_FUSION_PAIR.
3778 * config/aarch64/aarch64.c: Remove the last argument to
3779 AARCH64_FUSION_PAIR.
3781 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
3783 * dominance.c (new_zero_array): Define.
3784 (dom_info): Redefine as class with proper encapsulation.
3785 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
3787 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
3788 allocations/deallocations. Pass function as parameter (instead of
3790 (dom_info::get_idom): Define accessor method.
3791 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
3792 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
3793 (calculate_dominance_info): Adjust to use dom_info class.
3794 (verify_dominators): Likewise.
3796 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
3798 * print-rtl.c (print_rtx): Check the correct range for
3799 flag_dump_unnumbered_links to behave as documented.
3801 PR rtl-optimization/67227
3802 PR rtl-optimization/64164
3803 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
3804 (nonoverlapping_memrefs_p): Test offsets and sizes when given
3805 identical gimple_reg exprs.
3807 2015-08-21 Nathan Sidwell <nathan@acm.org>
3809 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3811 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3812 crtl->stack_alignment_needed to determine alignment.
3813 (nvptx_get_drap_rtx): New.
3814 (TARGET_GET_DRAP_RTX): Override.
3815 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3817 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3819 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3821 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3823 * configure.ac: Remove uwin* cases.
3824 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3825 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3826 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3827 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3828 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3829 i[34567]86-*-uwin*, powerpc-*-beos*.
3831 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
3833 * gencodes.c (gencodes): Print the comma for the preceding
3834 enum value rather than the current one. Use aliased enum values
3835 rather than #defines for compiled-out patterns.
3836 (main): Update accordingly. Replace LAST_INSN_CODE with
3838 * lra.c (insn_code_data): Update accordingly.
3839 (finish_insn_code_data_once, get_static_insn_data): Likewise.
3840 * recog.h (target_recog): Likewise.
3841 (preprocess_insn_constraints): Change parameter to unsigned int.
3842 * recog.c (preprocess_insn_constraints): Likewise.
3843 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3844 * tree-vect-stmts.c (vectorizable_operation): Simplify.
3846 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3848 PR rtl-optimization/61657
3849 * loop-iv.c (iv_number_of_iterations): Declare up and down as
3850 unsigned. Remove superflous uint64_t cast.
3852 2014-08-21 Felix Yang <felix.yang@huawei.com>
3853 Jiji Jiang <jiangjiji@huawei.com>
3855 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
3856 argument and get builtin function code directly from CALL.
3857 (gimple_stringop_fixed_value): Modified accordingly.
3858 (gimple_stringops_transform, gimple_stringops_values_to_profile):
3859 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
3861 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
3863 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3865 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3867 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3869 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3870 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3871 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3872 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3873 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3874 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3875 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3876 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3877 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3878 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3880 * match.pd (SIN ) : New Operator.
3881 (TAN) : New Operator.
3882 (mult (SQRT@1 @0) @1) : New simplifier.
3883 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3884 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3885 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3886 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3887 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3888 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3889 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3890 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3891 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3892 (rdiv @0 (POW:s @1 @2)) : New simplifier.
3894 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3896 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3897 loop if EXPR is simplified to const value.
3899 2015-08-21 Yury Gribov <y.gribov@samsung.com>
3901 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3902 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3904 2015-08-21 Richard Biener <rguenther@suse.de>
3907 * gimple-fold.c (replace_stmt_with_simplification): Assert
3908 seq is empty when replacing a call with itself but different
3910 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3911 a call require that it is const.
3913 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3915 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3916 * builtins.c (get_object_alignment_2): Adjust.
3917 * varasm.c (align_variable): Likewise.
3918 (get_variable_align): Likewise.
3919 (build_constant_desc): Likewise.
3920 (force_const_mem): Likewise.
3921 * doc/tm.texi.in: Likewise.
3922 * doc/tm.texi: Regenerate.
3924 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3926 * genconfig.c (main): Always define HAVE_cc0.
3927 * recog.c (rest_of_handle_peephole2): Adjust.
3929 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3931 * reorg.c (relax_delay_slots): Don't use #if to check value of
3934 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3936 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3937 * targhooks.c (default_have_conditional_execution): Adjust.
3939 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3941 * rtl.h (rtvec_all_equal_p): Declare.
3942 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3943 * rtl.c (rtvec_all_equal_p): New function.
3944 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3945 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3946 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3947 * config/arm/arm.c (neon_vdup_constant): Likewise.
3948 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3949 * config/tilegx/constraints.md (W, Y): Likewise.
3950 * config/tilepro/constraints.md (W, Y): Likewise.
3951 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3952 (classify_immediate): Use unwrap_const_vec_duplicate.
3953 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3954 (reg_or_v2s8bit_operand): Likewise.
3955 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3956 (reg_or_v4s8bit_operand): Likewise.
3958 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3960 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3961 (vec_shasigma_be): New #define.
3962 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3963 (VPMSUMH): Likewise.
3964 (VPMSUMW): Likewise.
3965 (VPMSUMD): Likewise.
3966 (VPMSUM): New BU_P8V_OVERLOAD_2.
3967 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3968 entries for VEC_MADD and VEC_VPMSUM.
3970 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
3972 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3973 Multiply argument avr_n_flash by 64 to match unit of "KiB".
3974 (avr_pgm_check_var_decl): Same.
3976 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
3978 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3979 initialization of HFmode scalar type (float16_t) to...
3980 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3983 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3985 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3986 having an -mfp16-format.
3988 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3990 * config/i386/predicates.md (vector_all_ones_operand): Use
3991 CONSTM1_RTX to simplify definition.
3993 2015-08-20 Richard Biener <rguenther@suse.de>
3995 * toplev.c (compile_file): Remove loop calling late_global_decl
3997 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3998 on decls we assembled.
4000 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4002 * common/config/aarch64/aarch64-common.c
4003 (AARCH64_CPU_NAME_LENGTH): Delete.
4004 (aarch64_option_extension): New.
4005 (all_extensions): Likewise.
4006 (processor_name_to_arch): Likewise.
4007 (arch_to_arch_name): Likewise.
4009 (all_architectures): Likewise.
4010 (aarch64_get_extension_string_for_isa_flags): Likewise.
4011 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4013 * config/aarch64/aarch64-protos.h
4014 (aarch64_get_extension_string_for_isa_flags): New.
4015 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4016 (aarch64_option_print): Get the string to print from
4017 aarch64_get_extension_string_for_isa_flags.
4018 (aarch64_declare_function_name): Likewise.
4019 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4020 (MCPU_TO_MARCH_SPEC): This.
4021 (ASM_CPU_SPEC): Use it.
4022 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4023 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4024 (EXTRA_SPEC_FUNCTIONS): Use it.
4026 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4028 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4029 expansion when !ISA_HAS_LWL_LWR.
4030 (mips_block_move_straight): Update the size of elements copied to
4031 account for alignment when !ISA_HAS_LWL_LWR.
4032 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4034 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4036 * expr.c (expand_expr_real_2): Check gimple statement during
4039 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4041 * common.opt (fstack-protector): Initialize to -1.
4042 (fstack-protector-all): Likewise.
4043 (fstack-protector-strong): Likewise.
4044 (fstack-protector-explicit): Likewise.
4045 * configure.ac: Add --enable-default-ssp.
4046 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4047 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4049 * doc/install.texi: Document --enable-default-ssp.
4050 * config.in: Regenerated.
4051 * configure: Likewise.
4053 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4055 PR rtl-optimization/64164
4056 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4057 (parm_in_stack_slot_p): ... this. Disregard mode, what
4058 matters is whether the parm will live in a pseudo or a stack
4060 (expand_one_ssa_partition): Deal with params without a default
4061 def. Disregard mode.
4062 * cfgexpand.h: Renamed function declaration.
4063 * tree-ssa-coalesce.c: Adjust.
4064 * function.c (split_complex_args): Allocate stack slot for
4065 unassigned parms before splitting.
4066 (parm_in_unassigned_mem_p): New. Use it instead of
4067 parm_maybe_byref_p throughout this file.
4068 (assign_parm_setup_block): Use it. Accept pseudos in the
4069 expand-assigned rtl.
4070 (assign_parm_setup_reg): Drop BLKmode requirement.
4071 (assign_parm_setup_stack): Allocate and fill in the address of
4072 unassigned MEM parms.
4074 2015-08-19 David Sherwood <david.sherwood@arm.com>
4076 * genmodes.c (emit_mode_unit_size_inline): New function.
4077 (emit_mode_unit_precision_inline): New function.
4078 (emit_insn_modes_h): Emit new #define. Emit new functions.
4079 (emit_mode_unit_size): New function.
4080 (emit_mode_unit_precision): New function.
4081 (emit_mode_adjustments): Add mode_unit_size adjustments.
4082 (emit_insn_modes_c): Emit new arrays.
4083 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4084 use new inline methods.
4086 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4088 * config/aarch64/aarch64.c (bit_count): Delete prototype
4090 (aarch64_print_operand): Use popcount_hwi instead of the above.
4092 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4094 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4097 2015-08-19 Marek Polacek <polacek@redhat.com>
4100 * gimple-ssa-isolate-paths.c
4101 (insert_trap_and_remove_trailing_statements): Rename to ...
4102 (insert_trap): ... this. Don't remove trailing statements; split
4104 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4106 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4109 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4110 conditionalize the whole on __GNUC__. Add fallback code
4111 depending neither on undefined nor implementation-defined behaviour.
4113 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4115 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4116 whitespaces with tab.
4118 2015-08-19 Florian Weimer <fweimer@redhat.com>
4120 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4121 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4122 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4123 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4126 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4128 * config/arm/arm.c (bounds_check): Use %wd print format
4129 for HOST_WIDE_INT arguments.
4131 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4133 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4134 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4135 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4136 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4137 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4138 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4139 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4140 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4141 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4144 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4146 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4147 function.c, graphite-scop-detection.c, haifa-sched.c,
4148 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4149 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4150 varasm.c: Remove typedefs of structs.
4152 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4154 * config/rs6000/altivec.h (vec_adde): New define.
4155 (vec_addec): Likewise.
4156 (vec_double): Likewise.
4157 (vec_bperm): Likewise.
4159 * config/rs6000/rs6000-builtin.def (ADDE): New
4160 BU_ALTIVEC_OVERLOAD_3.
4162 (DOUBLE): New BU_VSX_OVERLOAD_1.
4163 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4164 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4165 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4166 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4167 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4168 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4169 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4170 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4171 and P8V_BUILTIN_VEC_VBPERMQ.
4173 2015-08-18 Jason Merrill <jason@redhat.com>
4175 * print-tree.c (print_node): Handle TREE_BINFO.
4177 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4180 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4181 we can expand BUILT_IN_SIGNBIT inline.
4182 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4183 * doc/extend.texi: Document the type-generic __builtin_signbit.
4185 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4187 PR rtl-optimization/67218
4188 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4189 (simplify_unary_operation_1): Use it.
4191 2015-08-18 Marek Polacek <polacek@redhat.com>
4194 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4195 if the call isn't valid.
4196 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4197 gimple_call_builtin_p.
4198 (call_may_clobber_ref_p_1): Likewise.
4199 (stmt_kills_ref_p): Likewise.
4201 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4203 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4204 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4205 (mips_hard_regno_scratch_ok): Likewise.
4206 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4207 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4209 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4211 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4212 (determine_value_range): Call refine_value_range_using_guard for
4213 each loop initial condition to improve value range.
4215 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4217 * config/i386/i386.c: Remove include of fibheap.h.
4219 2015-08-17 Richard Biener <rguenther@suse.de>
4221 PR tree-optimization/67221
4222 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4223 (sccvn_dom_walker::before_dom_children): Mark backedges of
4224 non-executable blocks as not executable.
4226 2015-08-17 David Sherwood <david.sherwood@arm.com>
4228 * config/arm/arm.c (neon_element_bits): Replace call to
4229 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4230 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4231 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4232 (neon_vdup_lane<mode>): Likewise.
4233 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4234 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4235 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4236 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4237 * config/spu/spu.c (arith_immediate_p): Likewise.
4238 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4239 * expr.c (expand_expr_real_2): Likewise.
4240 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4241 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4242 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4243 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4245 * fold-const.c (fold_binary_loc): Replace call to
4246 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4247 GET_MODE_UNIT_PRECISION (m).
4249 2015-08-17 Mike Stump <mikestump@comcast.net>
4251 * config/arm/arm.c (arm_block_move_unaligned_straight):
4252 Emit normal move instead of unaligned load when source or destination
4253 are appropriately aligned.
4255 2015-08-17 Richard Biener <rguenther@suse.de>
4256 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4259 * match.pd (div (coss (op @0) : New simplifier.
4261 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4263 PR rtl-optimization/64164
4266 PR rtl-optimization/67000
4269 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4270 * tree-ssa-copyrename.c: Removed.
4271 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4272 -ftree-coalesce-vars.
4273 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4274 * common.opt (ftree-copyrename): Ignore.
4275 (ftree-coalesce-inlined-vars): Likewise.
4276 * doc/invoke.texi: Remove the ignored options above.
4277 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4278 * tree-ssa-coalesce.h: ... here.
4279 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4280 headers required by it.
4281 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4282 across variables when flag_tree_coalesce_vars. Check register
4283 use and promoted modes to allow coalescing. Do not coalesce
4284 maybe-byref parms with SSA_NAMEs of other variables, or
4285 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4286 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4287 with its member functions to tree-ssa-coalesce.c.
4288 (var_map_base_init): Likewise. Renamed to
4289 compute_samebase_partition_bases.
4290 (partition_view_normal): Drop want_bases parameter.
4291 (partition_view_bitmap): Likewise.
4292 * tree-ssa-live.h: Adjust declarations.
4293 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4294 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4295 default defs at the entry point.
4296 (dump_part_var_map): New.
4297 (compute_optimized_partition_bases): New, called by...
4298 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4299 of compute_samebase_partition_bases. Adjust.
4300 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4301 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4302 (ssa_default_def_partition): New.
4303 (get_rtl_for_parm_ssa_default_def): New.
4304 (align_local_variable, add_stack_var): Support anonymous SSA
4306 (defer_stack_allocation): Likewise. Declare earlier.
4307 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4308 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4309 Do no record deferred-allocation marker in
4310 SA.partition_to_pseudo.
4311 (expand_stack_vars): Adjust check for the marker in it.
4312 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4313 redundant MEM attr setting.
4314 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4316 (expand_one_stack_var): ... this. New wrapper to check and
4317 skip already expanded SSA partitions.
4318 (record_alignment_for_reg_var): New, factored out of...
4319 (expand_one_var): ... this.
4320 (expand_one_ssa_partition): New.
4321 (adjust_one_expanded_partition_var): New.
4322 (expand_one_register_var): Check and skip already expanded SSA
4324 (expand_used_vars): Don't create DECLs for anonymous SSA
4325 names. Expand all SSA partitions, then adjust all SSA names.
4326 (pass::execute): Replace the loops that set
4327 SA.partition_to_pseudo from partition leaders and cleared
4328 DECL_RTL for multi-location variables, and that which used to
4329 rename vars and set attrs, with one that clears DECL_RTL and
4330 checks that PARMs and RESULTs default_defs match DECL_RTL.
4331 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4332 * emit-rtl.c: Include stor-layout.h.
4333 (set_reg_attrs_for_parm): Handle NULL decl.
4334 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4336 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4337 rather than its possibly-NULL DECL.
4338 * explow.c (promote_ssa_mode): New.
4339 * explow.h (promote_ssa_mode): Declare.
4340 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4341 (read_complex_part): Export.
4342 * expr.h (read_complex_part): Declare.
4343 * cfgexpand.h (parm_maybe_byref_p): Declare.
4344 * function.c: Include cfgexpand.h.
4345 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4346 (use_register_for_parm_decl): Wrapper for the above to
4347 special-case the result_ptr.
4348 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4349 (split_complex_args): Take assign_parm_data_all argument.
4350 Pass it to rtl_for_parm. Set up rtl and context for split
4351 args. Reset complex parm before fetching its default decl
4353 (assign_parms_unsplit_complex): Use the default-def complex
4354 parm rtl if it matches the components.
4355 (assign_parms_augmented_arg_list): Adjust.
4356 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4357 multiple locations. Recognize split complex args.
4358 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4359 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4360 (assign_parm_setup_block): Prefer SSA-assigned location, and
4361 fill in its address if the memory location of a maybe-byref
4362 parm was not assigned by cfgexpand.
4363 (assign_parm_setup_reg): Likewise. Adjust its mode as
4364 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4365 sure passed_pointer parms don't need conversion. Copy address
4367 (assign_parm_setup_stack): Prefer SSA-assigned location.
4368 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4369 rtl before testing for pointer bounds. Special-case result_ptr.
4370 (expand_function_start): Maybe reset DECL_RTL of result.
4371 Prefer SSA-assigned location for result and static chain.
4372 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4373 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4374 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4375 anonymous SSA names. Use promote_ssa_mode.
4376 (get_temp_reg): Likewise.
4377 (remove_ssa_form): Adjust.
4378 * stor-layout.c (layout_decl): Don't set mem attributes of
4380 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4381 and get its reg_usage for reg invalidation.
4382 (compute_bb_dataflow): Pass it insn.
4383 (emit_notes_in_bb): Likewise.
4385 2015-08-14 Marek Polacek <polacek@redhat.com>
4387 * tree-core.h (tree_base): Fix typo.
4389 2015-08-14 Marek Polacek <polacek@redhat.com>
4392 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4393 nonnull argument position is not outside function arguments.
4395 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4398 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4399 'lconst_atomic' with 'const_atomic'.
4400 (atomic_fetch_<optab><mode>): Likewise.
4401 (atomic_<optab>_fetch<mode>): Likewise.
4402 * config/aarch64/iterators.md (lconst-atomic): Move below
4404 (const_atomic): New.
4406 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4407 Bernd Schmidt <bernds@codesourcery.com>
4409 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4411 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4412 (DWARF2_DEBUGGING_INFO): Don't define.
4413 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4414 * toplev.c (process_options): Add a case for it.
4415 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4416 (dwarf2out_init): Skip most initializations if
4417 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4419 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4420 DWARF2_LINENO_DEBUGGING_INFO.
4421 * opts.c (set_debug_level): Likewise.
4423 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4425 * config/arm/types.md (is_neon_type): Add missing types.
4427 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4429 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4431 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4432 (processor_alias_table): Add skylake description.
4433 (enum processor_model): Add skylake processor.
4434 (arch_names_table): Add skylake record.
4435 * doc/invoke.texi: Add skylake item.
4437 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4439 * ira-int.h: Include recog.h.
4440 * ira-build.c: Don't include recog.h.
4441 * ira-color.c: Likewise.
4442 * ira-conflicts.c: Likewise.
4443 * ira-costs.c: Likewise.
4444 * ira-emit.c: Likewise.
4445 * ira-lives.c: Likewise.
4447 * sched-deps.c: Likewise.
4448 * sel-sched.c: Likewise.
4449 * target-globals.c: Likewise.
4451 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4454 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4455 compiler that the n_dups and n_operands loop bounds are invariant.
4457 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4459 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4460 expressions in A and B.
4462 2015-08-13 Richard Biener <rguenther@suse.de>
4464 * tree.c (nonnull_arg_p): Move from ...
4465 * tree-vrp.c (nonnull_arg_p): ... here.
4466 * tree.h (nonnull_arg_p): Declare.
4467 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4468 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4469 Properly initialize static chain and by-reference result pointer.
4470 (run_scc_vn): Adjust.
4472 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4474 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4477 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4479 * config/aarch64/aarch64-protos.h
4480 (aarch64_gen_atomic_cas): Declare.
4481 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4482 Choose appropriate instruction pattern for the target.
4483 (aarch64_gen_atomic_cas): New.
4484 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4485 (atomic_compare_and_swap<mode>_1): Rename to
4486 aarch64_compare_and_swap<mode>. Fix some indentation.
4487 (aarch64_compare_and_swap<mode>_lse): New.
4488 (aarch64_atomic_cas<mode>): New.
4490 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4492 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4495 2015-08-13 Richard Biener <rguenther@suse.de>
4497 PR tree-optimization/67191
4498 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4499 assert we value-numbered last stmts operand because it can validly
4500 trigger for unreachable code.
4502 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4504 PR rtl-optimization/67103
4505 * ifcvt.c (noce_try_store_flag_constants): Move
4506 x = (-(test != 0) & (b - a)) + a transformation to...
4507 (noce_try_cmove): ... Here. Try it if normal conditional
4510 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4512 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4514 * config/mips/mips.md (processor): Remove w32 and w64.
4516 2015-08-13 Richard Biener <rguenther@suse.de>
4518 PR tree-optimization/66502
4519 PR tree-optimization/67167
4520 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4522 (vn_phi_lookup): Adjust.
4523 (vn_phi_insert): Likewise.
4524 (visit_phi): Prefer to value-number to another PHI node
4525 over value-numbering to a PHI argument.
4526 (init_scc_vn): Mark DFS back edges.
4528 2015-08-13 Richard Biener <rguenther@suse.de>
4530 * gimple.h (gcall::code_): New constant static member.
4531 (gcond::code_): Likewise.
4532 * gimple.c (gcall::code_): Define.
4533 (gcond::code_): Likewise.
4534 (is_a_helper <const gcond *>): Add.
4535 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4536 and forward to a new gcall overload with less checking and a
4537 cheaper way to access the operand.
4538 (gimple_call_lhs_ptr): Likewise.
4539 (gimple_call_set_lhs): Likewise.
4540 (gimple_call_internal_p): Likewise.
4541 (gimple_call_with_bounds_p): Likewise.
4542 (gimple_call_set_with_bounds): Likewise.
4543 (gimple_call_internal_fn): Likewise.
4544 (gimple_call_set_ctrl_altering): Likewise.
4545 (gimple_call_ctrl_altering_p): Likewise.
4546 (gimple_call_fntype): Likewise.
4547 (gimple_call_fn): Likewise.
4548 (gimple_call_fn_ptr): Likewise.
4549 (gimple_call_set_fndecl): Likewise.
4550 (gimple_call_fndecl): Likewise.
4551 (gimple_call_chain): Likewise.
4552 (gimple_call_num_args): Likewise.
4553 (gimple_call_arg): Likewise.
4554 (gimple_call_arg_ptr): Likewise.
4555 (gimple_call_set_arg): Likewise.
4556 (gimple_call_noreturn_p): Likewise.
4557 (gimple_cond_code): Likewise.
4558 (gimple_cond_lhs): Likewise.
4559 (gimple_cond_rhs): Likewise.
4560 (gimple_has_lhs): Reduce checking.
4562 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4565 * match.pd (div (mult @0 @1) @1) : New simplifier.
4567 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4570 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4571 predicate to allow construction of vector constants using the
4572 VSLDOI vector shift instruction.
4574 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4577 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4578 the number of bytes to be shifted left and filled in with either
4579 all zero or all one bits.
4580 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4582 (output_vec_const_move): On power8, generate XXLORC to generate
4583 a vector constant with all 1's. Do a split if we need to use a
4586 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4587 properly test for the MSB.
4589 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4590 vector constants that can be created with VSLDOI.
4592 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4595 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4596 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4597 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4598 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4599 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4600 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4601 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4602 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4603 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4605 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4607 * config/xtensa/constraints.md (define_constraint "Y"): New
4609 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4610 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4611 * config/xtensa/predicates.md (move_operand): Match constants
4612 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4613 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4614 immediate references to TLS data.
4615 (xtensa_emit_move_sequence): Don't force constants to memory in
4616 the presence of TARGET_AUTO_LITPOOLS.
4617 (print_operand): Add 'y' format, same as default, but capable of
4618 printing SF mode constants as well.
4619 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4620 (movsf_internal): Add movi pattern that loads literal.
4621 (movsf, movdf): Don't force constants to memory in the presence
4622 of TARGET_AUTO_LITPOOLS.
4623 (movdf_internal): Add 'Y' constraint.
4624 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4625 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4627 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4629 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4631 * config/arm/arm.c (ARM_FPU): Update macro.
4632 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4633 (TARGET_FP16): Likewise.
4634 (TARGET_CRYPTO): Likewise.
4635 (TARGET_NEON): Likewise.
4636 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4639 2015-08-12 Tom de Vries <tom@codesourcery.com>
4643 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4644 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4645 accordingly. Mention default for --with-stage1-ldflags.
4647 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4649 * config/arm/arm.h (arm_fpu_feature_set): New.
4650 (ARM_FPU_FSET_HAS): New.
4654 (FPU_FL_CRYPTO): New.
4656 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4658 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4659 after -mcmodel=large -fPIC sorry.
4661 2015-08-12 Richard Biener <rguenther@suse.de>
4663 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4664 comparison operand order and commutative ternary op operand order.
4665 (sccvn_dom_walker::cond_stack): New state to track temporary
4667 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4669 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4671 (sccvn_dom_walker::record_conds): Add a temporary conditional
4672 expressions and all related expressions also true/false.
4673 (sccvn_dom_walker::before_dom_children): Record temporary
4674 expressions based on the controlling condition of a single
4675 predecessor. When trying to simplify a conditional statement
4676 lookup expressions we might have inserted earlier.
4678 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4681 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4682 to ARM core registers.
4684 2015-08-12 Nathan Sidwell <nathan@acm.org>
4686 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4687 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4689 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4691 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4693 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4695 2015-08-12 Richard Biener <rguenther@suse.de>
4697 * gimple.h (remove_pointer): New trait.
4698 (GIMPLE_CHECK2): New inline template function.
4699 (gassign::code_): New constant static member.
4700 (is_a_helper<const gassign *>): Add.
4701 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4702 and forward to a new gassign overload with less checking and a
4703 cheaper way to access the operand.
4704 (gimple_assign_lhs_ptr): Likewise.
4705 (gimple_assign_set_lhs): Likewise.
4706 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4708 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
4710 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
4712 (gimple_assign_rhs_code): Likewise.
4713 * gimple.c (gassign::code_): Define.
4715 2015-08-12 Richard Biener <rguenther@suse.de>
4717 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4718 Eliminate edges marked as not executable by SCCVN.
4719 * tree-ssa-sccvn.c: Include gimple-iterator.h.
4720 (cond_dom_walker): Rename to sccvn_dom_walker.
4721 (sccvn_dom_walker::before_dom_children): Value-number defs
4723 (run_scc_vn): Remove loop value-numbering all SSA names.
4724 Drop not visited SSA names to varying.
4726 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4728 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4729 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4730 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4731 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4732 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4733 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4734 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4735 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4736 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4738 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
4741 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
4742 to enum feature_priority and feature_list.
4743 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
4744 and isa_names_table.
4746 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4748 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
4751 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4755 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
4756 account when deciding what was the command-line status.
4758 2015-08-11 Nathan Sidwell <nathan@acm.org>
4760 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4762 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4763 we're not the only contributor to target phi.
4765 2015-08-11 Jiong Wang <jiong.wang@arm.com>
4767 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4770 2015-08-11 Tom de Vries <tom@codesourcery.com>
4772 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4774 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
4776 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4778 * config/i386/i386.md (cpu): Remove knl.
4780 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4784 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4785 open-coded sequence.
4786 * omp-low.c (oacc_process_reduction_data): Remove handline of
4787 GOMP_DEVICE_HOST_NONSHM.
4789 * lto-streamer-in.c (lto_input_mode_table): Adjust to
4790 GET_MODE_INNER changes.
4792 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4793 Ilya Verbin <ilya.verbin@intel.com>
4795 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
4797 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4799 * doc/options.texi (EnabledBy): Document that the argument must be
4801 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
4802 Not enabled by -Wall.
4803 * optc-gen.awk: Give nicer error messages. Detect if the argument
4804 of EnabledBy is not a Common option.
4805 * common.opt (Wnull-dereference): Not enabled by -Wall.
4806 * opt-functions.awk (lang_enabled_by): Nicer error messages.
4808 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
4810 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4811 model == 0x4f as Broadwell.
4813 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4815 PR rtl-optimization/67028
4816 * combine.c (simplify_comparison): Fix comment. Rearrange code.
4817 Add test to see if a const_int fits in the new mode.
4819 2015-08-07 DJ Delorie <dj@redhat.com>
4821 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4823 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
4825 PR rtl-optimization/67029
4826 * ira-color.c: Include "recog.h" before including "ira-int.h".
4827 * target-globals.c: Likewise.
4828 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4829 adds an alternative_mask argument and use it instead of
4830 preferred_alternatives.
4831 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4832 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4833 * sched-deps.c: Include "ira-int.h" after including "ira.h".
4834 (sched_analyze_insn): Update call to
4835 ira_implicitly_set_insn_hard_regs.
4836 * sel-sched.c: Include "ira-int.h" after including "ira.h".
4837 (implicit_clobber_conflict_p): Update call to
4838 ira_implicitly_set_insn_hard_regs.
4840 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4842 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4844 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
4847 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4848 currently_expanding_to_rtl is set.
4850 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4852 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4853 * configure: Regenerate.
4855 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4856 Jiong Wang <jiong.wang@arm.com>
4858 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4859 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4860 (REG_CLASS_NAMES): Likewise.
4861 (REG_CLASS_CONTENTS): Likewise.
4862 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4863 (aarch64_register_move_cost): Likewise.
4864 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4866 * config/aarch64/constraints.md (Uc0): New constraint.
4868 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4870 * config/aarch64/constraints.md (Usf): Add the test of
4871 aarch64_is_noplt_call_p.
4873 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4875 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4877 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4878 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4879 (call_symbol): Likewise.
4881 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4883 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4884 for vectorizing multiplication patterns.
4885 * tree-vectorizer.h: Adjust the number of patterns.
4887 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4889 * config/i386/sse.md (*vec_concatv2df): Declare added
4890 alternatives as sselog type.
4892 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4894 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4897 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4899 * config/s390/s390.c (s390_expand_tbegin): Expand either
4900 tbegin_1_z13 or tbegin_1 depending on VX flag.
4901 * config/s390/s390.md ("tbegin_1_z13"): New expander.
4903 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4905 * config/s390/s390.opt: Clarify description for -mzvector
4906 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4909 2015-08-06 Richard Biener <rguenther@suse.de>
4911 * gimple.h (gimple_call_set_fn): Access op member directly.
4912 (gimple_call_chain_ptr): Likewise.
4913 (gimple_call_set_chain): Likewise.
4914 (gimple_cond_lhs_ptr): Likewise.
4915 (gimple_cond_set_lhs): Likewise.
4916 (gimple_cond_rhs_ptr): Likewise.
4917 (gimple_cond_set_rhs): Likewise.
4918 (gimple_cond_true_label): Likewise.
4919 (gimple_cond_set_true_label): Likewise.
4920 (gimple_cond_set_false_label): Likewise.
4921 (gimple_cond_false_label): Likewise.
4922 (gimple_label_label): Likewise.
4923 (gimple_label_set_label): Likewise.
4924 (gimple_goto_set_dest): Likewise.
4925 (gimple_asm_input_op): Likewise.
4926 (gimple_asm_input_op_ptr): Likewise.
4927 (gimple_asm_set_input_op): Likewise.
4928 (gimple_asm_output_op): Likewise.
4929 (gimple_asm_output_op_ptr): Likewise.
4930 (gimple_asm_set_output_op): Likewise.
4931 (gimple_asm_clobber_op): Likewise.
4932 (gimple_asm_set_clobber_op): Likewise.
4933 (gimple_asm_label_op): Likewise.
4934 (gimple_asm_set_label_op): Likewise.
4935 (gimple_switch_index): Likewise.
4936 (gimple_switch_index_ptr): Likewise.
4937 (gimple_return_retval_ptr): Likewise.
4938 (gimple_return_retval): Likewise.
4939 (gimple_return_set_retval): Likewise.
4940 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
4941 (gimple_switch_label): Likewise.
4942 (gimple_switch_set_label): Likewise.
4944 2015-08-06 Richard Biener <rguenther@suse.de>
4946 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4947 bool comparison canonicalization and restrict to integers.
4949 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
4951 * coretypes.h (enum symbol_visibility): Relocate here.
4952 * flag-types.h (enum symbol_visibility): Remove.
4953 * tree-core.h (enum symbol_visibility): Remove.
4955 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
4958 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4959 for no_split_stack function attribute along with
4961 (rs6000_expand_split_stack_prologue): Likewise.
4963 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4964 Jeff Law <law@redhat.com>
4967 * doc/invoke.texi (Wnull-dereference): New.
4968 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4969 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4970 Warn for potential NULL dereferences.
4971 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4972 * ubsan.c (instrument_nonnull_arg): Call
4973 infer_nonnull_range_by_attribute.
4974 (instrument_nonnull_return): Likewise.
4975 * common.opt (Wnull-dereference); New.
4976 * gimple.c (infer_nonnull_range): Remove bool arguments.
4977 (infer_nonnull_range_by_dereference): New.
4978 (infer_nonnull_range_by_attribute): New.
4979 * gimple.h: Update declarations.
4981 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4983 * gensupport.c (sequence_num): Replace with...
4984 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4985 ...these new variables.
4986 (init_rtx_reader_args_cb): Update accordingly.
4987 (get_num_code_insns): Likewise.
4988 (read_md_rtx): Rework to use a while loop and get_c_test.
4989 Use the new counters. Remove redundant DEFINE_SUBST case.
4990 * genoutput.c (gen_split): Delete.
4991 (main): Don't call it.
4993 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4995 * gensupport.h (get_c_test): Declare.
4996 * gensupport.c (get_c_test): New function.
4997 * genconditions.c (main): Use it.
4998 * genrecog.c (validate_pattern): Likewise.
4999 (match_pattern_1): Likewise. Remove c_test argument.
5000 (match_pattern): Update accordingly and remove c_test argument.
5001 (main): Update accordingly.
5003 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5005 * gensupport.h (get_num_insn_codes): Declare.
5006 * gensupport.c (get_num_insn_codes): New function.
5007 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5009 (main): Likewise. Use get_num_insn_codes.
5010 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5012 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5015 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5016 is zero- rather than sign-extended.
5018 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5020 * target-insns.def (can_extend): Delete.
5022 2015-08-05 Richard Biener <rguenther@suse.de>
5024 PR tree-optimization/67121
5025 * tree-if-conv.c (combine_blocks): Clear range-info produced
5026 by stmts no longer executed conditionally.
5028 2015-08-05 Nick Clifton <nickc@redhat.com>
5030 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5031 to allow identical far pointers to remain.
5033 2015-08-05 Richard Biener <rguenther@suse.de>
5036 * match.pd: Compare address bases with == if they are decls
5037 or SSA names, not operand_equal_p. Otherwise fail.
5039 2015-08-05 Richard Biener <rguenther@suse.de>
5041 PR tree-optimization/67055
5042 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5045 * g++.dg/torture/pr67055.C: New testcase.
5047 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5049 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5051 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5052 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5053 AVX-512 alternative out of SSE.
5054 (define_insn "*vec_concatv2df"): Ditto.
5056 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5058 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5059 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5060 CODE_FOR_avx_ptestv4di.
5061 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5062 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5063 (define_insn "avx_ptest256"): Merge this ...
5064 (define_insn "sse4_1_ptest"): And this ...
5065 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5067 2015-08-05 Richard Biener <rguenther@suse.de>
5069 PR tree-optimization/67109
5070 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5071 against too big groups. Print whether this is a load or store
5072 group. Rename from ...
5073 (vect_analyze_group_access): ... this which is now a wrapper
5074 dissolving an invalid group.
5075 (vect_analyze_data_ref_accesses): Print whether this is a load
5078 2015-08-05 Richard Biener <rguenther@suse.de>
5081 * match.pd: Guard const_binop result checking against NULL_TREE
5084 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5086 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5087 when dest and value in the REG_EQUAL are same and dest
5090 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5092 * config/moxie/moxie.h (PRINT_OPERAND,
5093 PRINT_OPERAND_ADDRESS): Remove macros.
5094 * config/moxie/moxie-protos.h (moxie_print_operand,
5095 moxie_print_operand_address): Remove declaration.
5096 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5097 TARGET_PRINT_OPERAND_ADDRESS): Define.
5098 (moxie_print_operand, moxie_print_operand_address): Make static.
5100 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5104 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5106 2015-08-04 Richard Biener <rguenther@suse.de>
5108 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5110 (dt_operand::gen_gimple_expr): Adjust.
5112 2015-08-04 Richard Biener <rguenther@suse.de>
5114 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5115 bool compares on RHS.
5116 * match.pd: Add X ==/!= !X is false/true pattern.
5118 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5120 * config/aarch64/aarch64.c: Change inner loop statement cost
5121 to be consistent with other targets.
5123 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5125 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5128 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5130 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5131 (machine_function): Remove pseudos field.
5133 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5135 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5136 Exit early and use target_option_current_node if processing current
5139 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5141 * doc/extend.texi (AArch64 Function Attributes): New node.
5142 (AArch64 Pragmas): Likewise.
5144 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5146 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5147 Initialize simd builtins if TARGET_SIMD.
5148 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5149 Make sure that the builtins are initialized only once no matter how
5150 many times the function is called.
5151 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5152 (aarch64_relayout_simd_param): New function.
5153 (aarch64_simd_expand_args): Use above during argument expansion.
5154 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5155 simd builtins if TARGET_SIMD.
5156 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5158 (aarch64_relayout_simd_types): Likewise.
5160 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5162 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5163 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5164 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5165 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5167 (aarch64_reset_previous_fndecl): New function.
5168 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5170 * config/aarch64/aarch64-c.c: New file.
5171 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5172 Push and pop options at beginning and end. Remove ifdef
5173 __ARM_FEATURE_CRC32.
5174 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5175 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5176 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5177 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5179 (aarch64_register_pragmas): Likewise.
5180 (aarch64_reset_previous_fndecl): Likewise.
5181 (aarch64_process_target_attr): Likewise.
5182 (aarch64_override_options_internal): Likewise.
5184 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5186 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5188 (aarch64_can_inline_p): Likewise.
5189 (TARGET_CAN_INLINE_P): Define.
5191 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5193 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5194 Remove static. Handle OPT_mgeneral_regs_only,
5195 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5196 OPT_momit_leaf_frame_pointer.
5197 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5198 (aarch64_attr_opt_type): New enum.
5199 (aarch64_attribute_info): New struct.
5200 (aarch64_handle_attr_arch): New function.
5201 (aarch64_handle_attr_cpu): Likewise.
5202 (aarch64_handle_attr_tune): Likewise.
5203 (aarch64_handle_attr_isa_flags): Likewise.
5204 (aarch64_attributes): New table.
5205 (aarch64_process_one_target_attr): New function.
5206 (num_occurences_in_str): Likewise.
5207 (aarch64_process_target_attr): Likewise.
5208 (aarch64_option_valid_attribute_p): Likewise.
5209 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5210 * config/aarch64/aarch64-protos.h: Include input.h
5211 (aarch64_handle_option): Declare prototype.
5213 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5215 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5216 * config/aarch64/aarch64.c: Include target-globals.h
5217 (aarch64_previous_fndecl): New variable.
5218 (aarch64_set_current_function): New function.
5219 (TARGET_SET_CURRENT_FUNCTION): Define.
5221 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5223 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5224 (explicit_arch): Likewise.
5225 (x_aarch64_isa_flags): Likewise.
5226 (mgeneral-regs-only): Mark as Save.
5227 (mfix-cortex-a53-835769): Likewise.
5228 (mcmodel=): Likewise.
5229 (mstrict-align): Likewise.
5230 (momit-leaf-frame-pointer): Likewise.
5231 (mtls-dialect): Likewise.
5232 (master=): Likewise.
5233 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5234 (aarch64_isa_flags): Remove extern declaration.
5235 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5236 to indicate success or failure.
5237 (aarch64_validate_march): Likewise.
5238 (aarch64_validate_mtune): Likewise.
5239 (aarch64_isa_flags): Delete.
5240 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5241 instead of aarch64_isa_flags.
5242 (aarch64_get_tune_cpu): New function.
5243 (aarch64_get_arch): Likewise.
5244 (aarch64_override_options): Use above and set up explicit_tune_core
5246 (aarch64_print_extension): Move earlier in file. Add isa_flags
5247 argument and use that instead of the global aarch64_isa_flags.
5248 (aarch64_option_save): New function.
5249 (aarch64_option_restore): Likewise.
5250 (aarch64_option_print): Likewise.
5251 (aarch64_declare_function_name): Likewise.
5252 (aarch64_start_file): Delete.
5253 (TARGET_ASM_FILE_START): Do not define.
5254 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5255 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5258 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5260 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5261 flag_omit_leaf_frame_pointer to 2.
5263 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5265 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5267 (TARGET_FIX_ERR_A53_835769): New macro.
5268 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5269 handling of opts->x_aarch64_fix_a53_err835769.
5270 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5271 than aarch64_fix_a53_err835769.
5272 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5273 * config/aarch64/aarch64-linux.h: Likewise.
5275 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5277 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5278 ix86_expand_int_movcc as boolean.
5280 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5282 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5283 (aarch64_cpu_string): Likewise.
5284 (aarch64_tune_string): Likewise.
5285 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5286 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5287 Add extra argument to put result into.
5288 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5289 (aarch64_parse_cpu): Add arguments to put results into. Return
5290 aarch64_parse_opt_result.
5291 (aarch64_parse_tune): Likewise.
5292 (aarch64_override_options_after_change_1): New function.
5293 (aarch64_override_options_internal): New function.
5294 (aarch64_validate_mcpu): Likewise.
5295 (aarch64_validate_march): Likewise.
5296 (aarch64_validate_mtune): Likewise.
5297 (aarch64_override_options): Update to reflect above changes.
5298 Move some logic into aarch64_override_options_internal.
5299 Initialize target_option_default_node and target_option_current_node.
5300 (aarch64_override_options_after_change): Move logic into
5301 aarch64_override_options_after_change_1 and call it with global_options.
5302 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5303 flag values from that.
5305 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5307 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5308 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5309 * config/aarch64/aarch64.c (struct processor): Add arch field.
5310 (all_architectures): Handle above, move above all_cores.
5311 (all_cores): Handle above.
5312 (aarch64_parse_arch): Handle above changes.
5313 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5314 above. Update comments.
5315 (armv8.1-a): Likewise.
5316 * config/aarch64/aarch64-cores.def: Update according to above.
5317 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5318 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5319 aarch64_arch_driver_info.
5321 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5323 * config/aarch64/aarch64.c (struct processor): Add ident field.
5324 Rename core sched_core.
5325 (all_cores): Handle above changes.
5326 (all_architectures): Likewise.
5327 (aarch64_parse_arch): Likewise.
5328 (aarch64_override_options): Likewise.
5330 2015-08-04 Richard Biener <rguenther@suse.de>
5332 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5333 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5334 comparisons embedded in [VEC_]COND_EXPRs.
5336 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5338 * tree-if-conv.c: Fix various typos in comments.
5339 * tree-vect-stmts.c: Likewise.
5341 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5343 PR tree-optimization/67043
5344 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5345 preheader after hoisting invariant in it.
5346 (find_defs): Force recomputation of all luids.
5348 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5350 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5351 using a base register.
5353 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5355 * main.c (main): Pass in NULL for toplev's external_timer.
5356 * timevar.c: Include coretypes.h.
5357 (class timer::named_items): New.
5358 (timer::named_items::named_items): New.
5359 (timer::named_items::~named_items): New.
5360 (timer::named_items::push): New.
5361 (timer::named_items::pop): New.
5362 (timer::named_items::print): New.
5363 (timer::timer): Initialize field "m_jit_client_items".
5364 (timer::~timer): New.
5365 (timer::push): Move bulk of implementation to...
5366 (timer::push_internal): ...here. New function.
5367 (timer::pop): Move bulk of implementation to...
5368 (timer::pop_internal): ...here. New function.
5369 (timer::push_client_item): New.
5370 (timer::pop_client_item): New.
5371 (timer::print_row): New function, taken from timer::print.
5372 (timer::print): Print "GCC items" header if we also have client
5373 items. Move row-printing to timer::print_row. Print any client
5375 (timer::get_topmost_item_name): New method.
5376 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5377 (TV_JIT_CLIENT_CODE): New.
5378 * timevar.h (timer::push_client_item): New declaration.
5379 (timer::pop_client_item): New declaration.
5380 (timer::get_topmost_item_name): New method.
5381 (timer::push_internal): New declaration.
5382 (timer::pop_internal): New declaration.
5383 (timer::print_row): New declaration.
5384 (timer::named_items): New declaration.
5385 (timer::m_jit_client_items): New field.
5386 (timer): Add friend class named_items.
5387 (auto_timevar::auto_timevar): Add timer param.
5388 (auto_timevar::~auto_timevar): Use field "m_timer".
5389 (auto_timevar::m_timer): New field.
5390 * toplev.c (initialize_rtl): Add g_timer as param when
5391 constructing auto_timevar instance.
5392 (toplev::toplev): Add "external_timer" param, and use it to
5393 initialize the "g_timer" global if non-NULL.
5394 (toplev::~toplev): If this created "g_timer", delete it.
5395 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5396 with "external_timer" timer *.
5398 2015-08-03 Alexander Basov <coohpt@gmail.com>
5403 * cfgexpand.c (expand_one_var): Add check if stack is going to
5404 be used in naked function.
5405 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5406 whether expression should not reside in MEM.
5407 * function.c (use_register_for_decl): Do not use registers for
5408 non-register things (volatile, float, BLKMode) in naked functions.
5410 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5413 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5414 Adjust splits to match new pattern.
5416 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5418 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5421 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5422 point in VSX registers.
5424 * config/rs6000/constraints.md (wb constraint): Document unused
5426 (we constraint): Likewise.
5427 (wo constraint): Likewise.
5428 (wp constraint): New constraint for IEEE 128-bit floating point in
5430 (wq constraint): Likewise.
5432 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5433 IEEE 128-bit floating point in VSX registers.
5434 (easy_scalar_constant): Likewise.
5436 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5437 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5439 (rs6000_init_hard_regno_mode_ok): Likewise.
5441 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5442 floating point in VSX registers.
5451 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5452 IEEE 128-bit floating point in VSX registers on little endian.
5453 (vsx_le_undo_permute_<mode>): Likewise.
5454 (vsx_le_perm_load_<mode>): Likewise.
5455 (vsx_le_perm_store_<mode>): Likewise.
5456 (splitters for IEEE 128-bit fp moves): Likewise.
5458 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5461 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5462 floating point in VSX registers.
5465 * doc/md.text (Machine Constraints): Document wp and wq
5466 constraints on PowerPC.
5468 2015-08-03 Jeff Law <law@redhat.com>
5471 PR gcov-profile/66899
5472 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5473 iterate over the jump threading paths when an element in the
5474 jump threading paths array is eliminated.
5476 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5478 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5480 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5482 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5483 is_use_properly_guarded the variable def_preds. Free its
5484 contents before returning.
5485 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5486 (is_use_properly_guarded): Replace local variable def_preds with
5487 a parameter. Adjust accordingly. Only update *def_preds if it's
5490 2015-08-03 Richard Biener <rguenther@suse.de>
5492 * genmatch.c (simplify::for_subst_vec): New member.
5493 (binary_ok): New helper for for lowering.
5494 (lower_for): Delay substituting operators into result expressions
5495 if we can merge the results eventually again.
5496 (capture_info::walk_result): Adjust for user_id appearing as
5497 result expression operator.
5498 (expr::gen_transform): Likewise.
5499 (dt_simplify::gen_1): Likewise.
5500 (dt_simplify::gen): Pass not substituted operators to tail
5501 functions or initialize local variable with it.
5502 (decision_tree::gen): Adjust function signature.
5503 * match.pd: Fix tests against global code and add default
5504 cases to switch stmts.
5506 2015-08-03 Richard Biener <rguenther@suse.de>
5508 * genmatch.c (dt_simplify::gen): Create captures array
5509 with an initializer.
5511 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5513 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5514 the host compiler is affected by placement new aliasing bug.
5515 * configure: Regenerate.
5516 * Makefile.in (ALIASING_FLAGS): New variable.
5517 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5519 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5522 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5523 (negmulsf3_vfp): Likewise.
5524 (muldf3negdf_vfp): Disable for -frounding-math.
5525 (mulsf3negsf_vfp): Likewise.
5526 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5527 fix MULT cost with -frounding-math.
5529 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5531 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5532 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5533 explicit. Prefer to add the flag whenever possible.
5534 (noce_process_if_block): Try noce_try_store_flag_constants before
5537 2015-08-03 Richard Biener <rguenther@suse.de>
5539 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5540 New hash-map to record equivalent transforms.
5541 (dt_node::analyze): Populate the equivalent transforms hash-map.
5542 (dt_simplify::info): Add reference to hash-map entry.
5543 (dt_simplify::gen): If we have split out a function for the
5544 transform, generate a call to it.
5545 (sinfo_hashmap_traits::hash): New function.
5546 (compare_op): New helper function for ...
5547 (sinfo_hashmap_traits::equal_keys): ... this new function.
5548 (decision_tree::gen): Split out common equivalent transforms
5551 2015-08-03 Richard Biener <rguenther@suse.de>
5553 * gimple-fold.c (fold_gimple_assign): Remove folding of
5554 the comparison in COND_EXPRs.
5556 2015-08-03 Richard Biener <rguenther@suse.de>
5558 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5559 on the rhs of assignments first simplify the embedded
5562 2015-08-03 Richard Biener <rguenther@suse.de>
5564 PR tree-optimization/66917
5565 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5567 (DR_VECT_AUX): New macro.
5568 (set_dr_misalignment): Adjust.
5569 (dr_misalignment): Likewise.
5570 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5571 Compute whether the base is at least element aligned.
5572 * tree-vect-stmts.c (ensure_base_align): Adjust.
5573 (vectorizable_store): If the base is not element aligned
5574 preserve alignment of the original access if misalignment is unknown.
5575 (vectorizable_load): Likewise.
5577 2015-08-02 Martin Sebor <msebor@redhat.com>
5579 * c-family/c.opt (-Wframe-address): New warning option.
5580 * doc/invoke.texi (Wframe-address): Document it.
5581 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5582 Clarify possible effects of calling the functions with non-zero
5583 arguments and mention -Wframe-address.
5584 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5586 2015-08-01 Michael Collison <michael.collison@linaro.org
5587 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5589 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5590 (*arm_umin_cmp): Likewise.
5592 2015-08-01 Caroline Tice <cmtice@google.com>
5595 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5597 (vtbl_find_mangled_name): New function.
5598 (vtbl_register_mangled_name): New function.
5599 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5600 mangled name in mangled name vectors.
5601 (find_or_create_vtbl_map_node): Ditto.
5602 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5603 update recursion_depth on function entry; pass it to every recursive
5604 call; automatically exit if depth > 25 (give up looking at that point).
5605 (verify_bb_vtables): Initialize recursion_depth and pass it to
5606 var_is_used_for_virtual_call_p.
5607 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5608 global variable decls.
5609 (vtbl_register_mangled_name): New extern function decl.
5611 2015-08-01 Tom de Vries <tom@codesourcery.com>
5613 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5615 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5617 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5618 operation_no_trapping_overflow. Allow non-overflow operations.
5619 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5622 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5625 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5627 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5629 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5630 Enable for TARGET_32BIT.
5631 (*if_move_neg): Likewise.
5633 2015-07-31 Nick Clifton <nickc@redhat.com>
5635 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5636 Returns true for __model__.
5637 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5639 2015-07-31 Alan Modra <amodra@gmail.com>
5642 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5643 (rs6000_emit_prologue): Set it.
5644 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5646 2015-07-31 Richard Biener <rguenther@suse.de>
5648 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5649 -> X == (C1 ^ C2) which is already implemented in match.pd.
5650 Remove redundant dispatching to fold_relational_const.
5651 Move unordered self and NaN compares ...
5652 * match.pd: ... as patterns here. Remove some stray captures
5655 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5657 * config/i386/i386.c
5658 (bdesc_special_args): Convert mask type from signed to unsigned for
5660 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5661 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5662 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5663 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5664 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5665 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5666 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5667 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5668 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5669 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5670 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5671 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5672 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5673 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5674 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5675 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5676 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5677 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5678 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5679 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5680 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5681 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5682 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5683 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5684 * config/i386/i386-builtin-types.def
5685 (V16QI_FTYPE_V16SI): Remove.
5686 (V8DF_FTYPE_V8SI): Ditto.
5687 (V8HI_FTYPE_V8DI): Ditto.
5688 (V8SI_FTYPE_V8DI): Ditto.
5689 (V8SF_FTYPE_V8DF): Ditto.
5690 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5691 (V16HI_FTYPE_V16SI): Ditto.
5692 (V16SF_FTYPE_V16HI): Ditto.
5693 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5694 (V16SF_FTYPE_V16SI): Ditto.
5695 (V4DI_FTYPE_V4DI): Ditto.
5696 (V16SI_FTYPE_V16SF): Ditto.
5697 (V16SF_FTYPE_FLOAT): Ditto.
5698 (V8DF_FTYPE_DOUBLE): Ditto.
5699 (V8DI_FTYPE_INT64): Ditto.
5700 (V8DI_FTYPE_V4DI): Ditto.
5701 (V16QI_FTYPE_V8DI): Ditto.
5702 (UINT_FTYPE_V4SF): Ditto.
5703 (UINT64_FTYPE_V4SF): Ditto.
5704 (UINT_FTYPE_V2DF): Ditto.
5705 (UINT64_FTYPE_V2DF): Ditto.
5706 (V16SI_FTYPE_V16SI): Ditto.
5707 (V8DI_FTYPE_V8DI): Ditto.
5708 (V16SI_FTYPE_PV4SI): Ditto.
5709 (V16SF_FTYPE_PV4SF): Ditto.
5710 (V8DI_FTYPE_PV2DI): Ditto.
5711 (V8DF_FTYPE_PV2DF): Ditto.
5712 (V4DI_FTYPE_PV2DI): Ditto.
5713 (V4DF_FTYPE_PV2DF): Ditto.
5714 (V16SI_FTYPE_PV2SI): Ditto.
5715 (V16SF_FTYPE_PV2SF): Ditto.
5716 (V8DI_FTYPE_PV4DI): Ditto.
5717 (V8DF_FTYPE_PV4DF): Ditto.
5718 (V8SF_FTYPE_FLOAT): Ditto.
5719 (V4SF_FTYPE_FLOAT): Ditto.
5720 (V4DF_FTYPE_DOUBLE): Ditto.
5721 (V8SF_FTYPE_PV4SF): Ditto.
5722 (V8SI_FTYPE_PV4SI): Ditto.
5723 (V4SI_FTYPE_PV2SI): Ditto.
5724 (V8SF_FTYPE_PV2SF): Ditto.
5725 (V8SI_FTYPE_PV2SI): Ditto.
5726 (V16SF_FTYPE_PV8SF): Ditto.
5727 (V16SI_FTYPE_PV8SI): Ditto.
5728 (V8DI_FTYPE_V8SF): Ditto.
5729 (V4DI_FTYPE_V4SF): Ditto.
5730 (V2DI_FTYPE_V4SF): Ditto.
5731 (V64QI_FTYPE_QI): Ditto.
5732 (V32HI_FTYPE_HI): Ditto.
5733 (V8UHI_FTYPE_V8UHI): Ditto.
5734 (V16UHI_FTYPE_V16UHI): Ditto.
5735 (V32UHI_FTYPE_V32UHI): Ditto.
5736 (V2UDI_FTYPE_V2UDI): Ditto.
5737 (V4UDI_FTYPE_V4UDI): Ditto.
5738 (V8UDI_FTYPE_V8UDI): Ditto.
5739 (V4USI_FTYPE_V4USI): Ditto.
5740 (V8USI_FTYPE_V8USI): Ditto.
5741 (V16USI_FTYPE_V16USI): Ditto.
5742 (V2DF_FTYPE_V2DF_UINT64): Ditto.
5743 (V2DI_FTYPE_V2DF_V2DF): Ditto.
5744 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
5745 (V8DF_FTYPE_V8DF_V8DI): Ditto.
5746 (V4SF_FTYPE_V4SF_UINT64): Ditto.
5747 (V4SI_FTYPE_V4SF_V4SF): Ditto.
5748 (V16SF_FTYPE_V16SF_V16SI): Ditto.
5749 (V64QI_FTYPE_V32HI_V32HI): Ditto.
5750 (V32HI_FTYPE_V16SI_V16SI): Ditto.
5751 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5752 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
5753 (V32HI_FTYPE_V64QI_V64QI): Ditto.
5754 (V32HI_FTYPE_V32HI_V32HI): Ditto.
5755 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5756 (V16SI_FTYPE_V16SI_V4SI): Ditto.
5757 (V16SI_FTYPE_V16SI_V16SI): Ditto.
5758 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5759 (V16SI_FTYPE_V16SI_SI): Ditto.
5760 (V8DI_FTYPE_V8DI_V8DI): Ditto.
5761 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5762 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5763 (V8DI_FTYPE_V8DI_V2DI): Ditto.
5764 (QI_FTYPE_QI): Ditto.
5765 (SI_FTYPE_SI): Ditto.
5766 (DI_FTYPE_DI): Ditto.
5767 (QI_FTYPE_QI_QI): Ditto.
5768 (QI_FTYPE_QI_INT): Ditto.
5769 (HI_FTYPE_HI_INT): Ditto.
5770 (SI_FTYPE_SI_INT): Ditto.
5771 (DI_FTYPE_DI_INT): Ditto.
5772 (HI_FTYPE_V16QI_V16QI): Ditto.
5773 (SI_FTYPE_V32QI_V32QI): Ditto.
5774 (DI_FTYPE_V64QI_V64QI): Ditto.
5775 (QI_FTYPE_V8HI_V8HI): Ditto.
5776 (HI_FTYPE_V16HI_V16HI): Ditto.
5777 (SI_FTYPE_V32HI_V32HI): Ditto.
5778 (QI_FTYPE_V4SI_V4SI): Ditto.
5779 (QI_FTYPE_V8SI_V8SI): Ditto.
5780 (QI_FTYPE_V2DI_V2DI): Ditto.
5781 (QI_FTYPE_V4DI_V4DI): Ditto.
5782 (QI_FTYPE_V8DI_V8DI): Ditto.
5783 (HI_FTYPE_V16SI_V16SI): Ditto.
5784 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5785 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
5786 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
5787 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5788 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5789 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
5790 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
5791 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
5792 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5793 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
5794 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
5795 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
5796 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
5797 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
5798 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5799 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5800 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5801 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5802 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5803 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5804 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5805 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5806 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5807 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5808 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5809 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5810 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5811 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5812 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5813 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5814 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5815 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5816 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5817 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5818 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5819 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5820 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5821 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5822 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5823 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5824 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5825 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5826 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5827 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5828 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5829 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5830 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5831 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5832 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5833 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5834 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5835 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5836 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5837 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5838 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5839 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5840 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5841 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5842 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5843 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5844 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5845 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5846 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5847 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5848 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5849 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5850 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5851 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5852 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5853 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5854 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5855 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5856 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5857 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5858 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5859 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5860 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5861 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5862 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5863 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5864 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5865 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5866 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5867 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5868 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5869 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5870 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5871 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5872 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5873 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5874 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5875 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5876 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5877 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5878 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5879 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5880 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5881 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5882 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5883 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5884 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5885 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5886 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5887 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5888 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5889 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5890 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5891 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5892 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5893 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5894 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5895 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5896 (HI_FTYPE_HI): Ditto.
5897 (HI_FTYPE_V16QI): Ditto.
5898 (SI_FTYPE_V32QI): Ditto.
5899 (DI_FTYPE_V64QI): Ditto.
5900 (QI_FTYPE_V8HI): Ditto.
5901 (HI_FTYPE_V16HI): Ditto.
5902 (SI_FTYPE_V32HI): Ditto.
5903 (QI_FTYPE_V4SI): Ditto.
5904 (QI_FTYPE_V8SI): Ditto.
5905 (HI_FTYPE_V16SI): Ditto.
5906 (QI_FTYPE_V2DI): Ditto.
5907 (QI_FTYPE_V4DI): Ditto.
5908 (QI_FTYPE_V8DI): Ditto.
5909 (V16QI_FTYPE_HI): Ditto.
5910 (V32QI_FTYPE_SI): Ditto.
5911 (V64QI_FTYPE_DI): Ditto.
5912 (V8HI_FTYPE_QI): Ditto.
5913 (V16HI_FTYPE_HI): Ditto.
5914 (V32HI_FTYPE_SI): Ditto.
5915 (V4SI_FTYPE_QI): Ditto.
5916 (V4SI_FTYPE_HI): Ditto.
5917 (V8SI_FTYPE_QI): Ditto.
5918 (V8SI_FTYPE_HI): Ditto.
5919 (V2DI_FTYPE_QI): Ditto.
5920 (V4DI_FTYPE_QI): Ditto.
5921 (HI_FTYPE_HI_HI): Ditto.
5922 (SI_FTYPE_SI_SI): Ditto.
5923 (DI_FTYPE_DI_DI): Ditto.
5924 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5925 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5926 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5927 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5928 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5929 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5930 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5931 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5932 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5933 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5934 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5935 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5936 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5937 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5938 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5939 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5940 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5941 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5942 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5943 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5944 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5945 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5946 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5947 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5948 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5949 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5950 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5951 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5952 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5953 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5954 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5955 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5956 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5957 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5958 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5959 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5960 (V16SI_FTYPE_HI): Ditto.
5961 (V8DI_FTYPE_QI): Ditto.
5962 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5963 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5964 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5965 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5966 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5967 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5968 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5969 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5970 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5971 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5972 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5973 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5974 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5975 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5976 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5977 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5978 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5979 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5980 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5981 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5982 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5983 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5984 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5985 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5986 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5987 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5988 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5989 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5990 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5991 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5992 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5993 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5994 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5995 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5996 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5997 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5998 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5999 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6000 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6001 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6002 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6003 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6004 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6005 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6006 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6007 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6008 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6009 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6010 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6011 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6012 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6013 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6014 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6015 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6016 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6017 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6018 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6019 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6020 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6021 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6022 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6023 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6024 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6025 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6026 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6027 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6028 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6029 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6030 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6031 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6032 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6033 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6034 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6035 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6036 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6037 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6038 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6039 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6040 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6041 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6042 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6043 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6044 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6045 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6046 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6047 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6048 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6049 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6050 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6051 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6052 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6053 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6054 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6055 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6056 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6057 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6058 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6059 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6060 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6061 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6062 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6063 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6064 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6065 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6066 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6067 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6068 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6069 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6070 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6071 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6072 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6073 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6074 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6075 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6076 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6077 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6078 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6079 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6080 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6081 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6082 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6083 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6084 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6085 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6086 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6087 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6088 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6089 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6090 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6091 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6092 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6093 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6094 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6095 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6096 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6097 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6098 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6099 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6100 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6101 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6102 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6103 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6104 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6105 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6106 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6107 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6108 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6109 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6110 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6111 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6112 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6113 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6114 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6115 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6116 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6117 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6118 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6119 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6120 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6121 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6122 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6123 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6124 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6125 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6126 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6127 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6128 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6129 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6130 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6131 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6132 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6133 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6134 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6135 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6136 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6137 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6138 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6139 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6140 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6141 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6142 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6143 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6144 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6145 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6146 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6147 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6148 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6149 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6150 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6151 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6152 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6153 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6154 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6155 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6156 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6157 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6158 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6159 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6160 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6161 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6162 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6163 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6164 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6165 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6166 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6167 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6168 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6169 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6170 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6171 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6172 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6173 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6174 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6175 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6176 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6177 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6178 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6179 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6180 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6181 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6182 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6183 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6184 (QI_FTYPE_V8DF_INT_QI): Ditto.
6185 (QI_FTYPE_V4DF_INT_QI): Ditto.
6186 (QI_FTYPE_V2DF_INT_QI): Ditto.
6187 (HI_FTYPE_V16SF_INT_HI): Ditto.
6188 (QI_FTYPE_V8SF_INT_QI): Ditto.
6189 (QI_FTYPE_V4SF_INT_QI): Ditto.
6190 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6192 2015-07-31 Richard Biener <rguenther@suse.de>
6194 * gimple-fold.c (fold_gimple_assign): Remove folding of
6197 2015-07-31 Tom de Vries <tom@codesourcery.com>
6199 PR tree-optimization/66846
6200 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6201 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6202 (expand_omp_target) [ENABLE_CHECKING]: Same.
6203 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6204 cfun if !LOOPS_NEED_FIXUP.
6205 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6206 that omp_for already has its own loop struct.
6207 * tree-parloops.c (create_phi_for_local_result)
6208 (create_call_for_reduction): Handle simple latch bb.
6209 (create_parallel_loop): Add simple latch bb to preserve
6210 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6211 (gen_parallel_loop): Remove call to cancel_loop_tree.
6212 (parallelize_loops): Skip loops that are inner loops of parallelized
6214 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6215 verify_loop_structure.
6217 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6219 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6220 * config/v850/v850.md (RV_REGNUM): New constants.
6221 * config/v850/v850.c (v850_libcall_value): New functions.
6222 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6223 (TARGET_LIBCALL_VALUE): Define.
6225 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6227 * rtl.h (lowpart_subreg): Move in file.
6228 * loop-iv.c (lowpart_subreg): Move to...
6229 * simplify-rtx.c (lowpart_subreg): ...here.
6230 (simplify_binary_operation_1): Use lowpart_subreg instead of
6231 simplify_gen_subreg.
6232 * expr.c (expand_expr_real_2): Ditto.
6233 * emit-rtl.c (gen_lowpart_common): Ditto.
6234 * combine.c (gen_lowpart_for_combine): Ditto.
6235 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6236 expand_debug_source_expr): Ditto.
6238 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6240 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6241 (expand_builtin_atomic_clear): Remove support for atomic_clear
6244 2015-07-30 Richard Biener <rguenther@suse.de>
6246 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6247 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6248 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6249 redundant operand canonicalization.
6251 2015-07-30 David Sherwood <david.sherwood@arm.com>
6253 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6254 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6255 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6256 * config/arm/arm.c (neon_valid_immediate): Likewise.
6257 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6258 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6259 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6260 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6261 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6262 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6263 * config/i386/sse.md
6264 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6265 (*ssse3_palignr<mode>_perm): Likewise.
6266 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6267 * config/spu/spu.c (arith_immediate_p): Likewise.
6268 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6269 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6271 2015-07-30 Richard Biener <rguenther@suse.de>
6273 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6274 (decision_tree::gen_generic): ... this into ...
6275 (decision_tree::gen): ... this.
6276 (main): Adjust callers.
6278 2015-07-30 Richard Biener <rguenther@suse.de>
6280 * genmatch.c (verbose): New global.
6281 (warning_at): Add overload with source_location.
6282 (capture_info::capture_info): Add bool whether generating gimple
6283 or generic. Add gimple member.
6284 (capture_info::cinfo): Add capture member.
6285 (capture_info::walk_match): Record capture. Warn on
6287 (capture_info::walk_c_expr): Add more fragments captures cannot
6288 escape through. Warn on escaped captures.
6289 (dt_simplify::gen_1): Warn on operands we force to have no
6291 (main): Initialize verbose.
6292 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6294 2015-07-30 Richard Biener <rguenther@suse.de>
6297 * match.pd: Allow both operands to independently have conversion
6298 when simplifying compares of addresses.
6300 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6304 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6305 around those cases that need one.
6307 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6309 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6311 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6313 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6314 New. Copied from config/i386/gnu-user.h.
6315 (ASM_COMMENT_START): Likewise.
6316 (DBX_REGISTER_NUMBER): Likewise.
6318 2015-07-29 Richard Biener <rguenther@suse.de>
6320 * gimple-fold.c (fold_gimple_cond): Remove.
6321 (fold_stmt_1): Do not call it.
6323 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6325 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6326 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6328 * config/aarch64/aarch64-modes.def: Add HFmode.
6330 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6331 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6333 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6334 aarch64_promoted_type): New.
6336 (aarch64_float_const_representable_p): Disable HFmode.
6337 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6338 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6339 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6341 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6342 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6344 * config/aarch64/iterators.md (GPF_F16): New.
6346 2015-07-29 Richard Biener <rguenther@suse.de>
6348 * match.pd: Merge address comparison patterns and make them
6349 handle some more cases.
6351 2015-07-29 Richard Biener <rguenther@suse.de>
6353 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6354 (parser::parse_capture): Add bool argument on whether to reject
6356 (parser::parse_expr): Adjust.
6357 (parser::parse_op): Likewise.
6358 (parser::parse_pattern): Likewise.
6360 2015-07-29 Richard Biener <rguenther@suse.de>
6362 * gimple-fold.c (has_use_on_stmt): New function.
6363 (replace_stmt_with_simplification): Use it to allow
6364 abnormals originally referenced in the stmt.
6365 (fold_stmt_1): Canonicalize operand order.
6367 2015-07-28 David Sherwood <david.sherwood@arm.com>
6369 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6370 GET_MODE_INNER unconditionally.
6371 * config/spu/spu.c (arith_immediate_p): Likewise.
6372 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6373 * expmed.c (synth_mult): Remove check for VOIDmode result from
6375 (expand_mult_const): Likewise.
6376 * fold-const.c (fold_binary_loc): Replace call to element_precision
6377 with call to GET_MODE_PRECISION.
6378 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6380 (emit_mode_inner): Likewise.
6381 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6383 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6384 (GET_MODE_UNIT_PRECISION): Likewise.
6385 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6386 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6387 * stor-layout.c (bitwise_type_for_mode): Update assert.
6388 (element_precision): Remove.
6390 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6392 * target-insns.def (reload_load_address): New targetm instruction
6394 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6396 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6398 * target-insns.def (atomic_test_and_set): New targetm instruction
6400 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6401 HAVE_*/gen_* interface.
6403 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6405 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6407 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6408 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6409 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6410 * rtlanal.c (nonzero_bits1): Likewise.
6411 (num_sign_bit_copies1): Likewise.
6413 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6415 * target-insns.def (eh_return): New targetm instruction pattern.
6416 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6418 * function.c (thread_prologue_and_epilogue_insns): Remove
6419 preprocessor condition.
6421 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6423 * target-insns.def (indirect_jump): New targetm instruction pattern.
6424 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6427 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6429 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6430 instead of nonimmediate_operand. Remove C condiition.
6432 2015-07-28 Richard Biener <rguenther@suse.de>
6434 * match.pd: Add more simplification of address comparisons.
6436 2015-07-28 Richard Biener <rguenther@suse.de>
6438 * match.pd: Re-order two cases in comparison with max/min
6439 value simplification to make it apply for bools.
6441 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6443 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6444 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6445 (aarch64_rtx_costs): Properly strip extend or extract before
6446 passing down to rtx costs again.
6448 2015-07-28 Nick Clifton <nickc@redhat.com>
6450 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6451 Optimizes the case where -mes0 is active and a constant symbolic
6453 * config/rl78/rl78-protos.h: Prototype the new function.
6454 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6456 2015-07-28 Tom de Vries <tom@codesourcery.com>
6458 * tree-parloops.c (reduc_stmt_res): New function.
6459 (initialize_reductions, add_field_for_reduction)
6460 (create_phi_for_local_result, create_loads_for_reductions)
6461 (create_stores_for_reduction, build_new_reduction): Handle case that
6462 reduc_stmt is a phi.
6463 (gather_scalar_reductions): Allow double_reduc reductions.
6465 2015-07-28 Richard Biener <rguenther@suse.de>
6467 * fold-const.c (fold_comparison): Remove equality folding
6468 of decl addresses ...
6469 * match.pd: ... here and merge with existing pattern.
6471 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6473 PR tree-optimization/66828
6474 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6475 from int64_t to uint64_t.
6477 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6479 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6480 as valid only in the error message of the driver, not in the
6481 messages of the language compilers.
6483 2015-07-27 Tom de Vries <tom@codesourcery.com>
6485 * tree-parloops.c (gather_scalar_reductions): Simplify function
6488 2015-07-27 Marek Polacek <polacek@redhat.com>
6490 * ipa-devirt.c (types_same_for_odr): Fix typo.
6492 2015-07-27 Jason Merrill <jason@redhat.com>
6495 * dwarf2out.c (gen_inlined_subroutine_die): Check
6496 cgraph_function_possibly_inlined_p.
6498 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6500 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6501 Place integer variant first.
6502 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6504 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6507 * config/arm/arm-builtins.c (enum arm_builtins):
6508 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6509 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6510 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6511 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6512 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6514 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6517 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6518 Add qualifier_lane_index.
6519 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6520 (arm_getlane_qualifiers): Use qualifier_lane_index.
6521 (arm_lanemac_qualifiers): Rename to...
6522 (arm_mac_n_qualifiers): ...this.
6523 (LANEMAC_QUALIFIERS): Rename to...
6524 (MAC_N_QUALIFIERS): ...this.
6525 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6526 (arm_setlane_qualifiers): Use qualifier_lane_index.
6527 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6528 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6529 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6530 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6532 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6533 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6534 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6535 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6536 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6537 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6538 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6539 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6540 qualifiers to TERNOP_IMM.
6541 (vdup_lane): Change qualifiers to GETLANE.
6542 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6543 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6544 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6545 vqdmlsl_n): Change qualifiers to MAC_N.
6547 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6548 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6549 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6550 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6551 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6552 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6553 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6554 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6555 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6556 Remove call to neon_lane_bounds.
6558 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6560 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6561 Place integer variant first.
6563 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6565 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6566 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6567 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6568 for armv6kz targets.
6569 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6570 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6571 (FL_FOR_ARCH6ZK): Remove.
6572 (FL_FOR_ARCH6KZ): New.
6573 (arm_arch6zk): New declaration.
6574 * config/arm/arm-tables.opt: Regenerate.
6575 * config/arm/arm.c (arm_arch6kz): New.
6576 (arm_option_override): Set arm_arch6kz.
6577 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6578 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6579 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6581 2015-07-27 Marek Polacek <polacek@redhat.com>
6585 * doc/invoke.texi: Document -Wtautological-compare.
6587 2015-07-27 Richard Biener <rguenther@suse.de>
6589 * genmatch.c (decision_tree::gen_gimple): Split out large
6590 subtrees into separate functions.
6591 (decision_tree::gen_generic): Likewise.
6593 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6595 * config/alpha/alpha.c: Use SUBREG_P predicate.
6596 * config/alpha/predicates.md: Ditto.
6598 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6600 * config.host (s390*-*-*): Include driver-native.c only when
6601 building with s390* as host *and* target.
6603 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6606 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6607 T bit register modified_between_p check.
6609 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6611 * config/i386/i386.c: Use SUBREG_P predicate.
6612 * config/i386/i386.md: Ditto.
6613 * config/i386/sse.md: Ditto.
6614 * config/i386/predicates.md: Ditto.
6616 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6619 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6620 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6622 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6624 * Makefile.in: Remove use of TREEBROWSER.
6625 * config.in: Regenerated.
6626 * configure: Regenerated.
6627 * configure.ac: Remove definition of TREEBROWSER.
6628 * tree-browser.c: Removed.
6629 * tree-browser.def: Removed.
6631 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6633 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6634 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6636 (scopdet_basic_block_info): Print when a loop or bb cannot be
6637 represented in Graphite.
6639 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6642 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6643 execution guard when min_size is less than size_needed.
6645 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6647 * doc/install.texi: Document supported versions of ISL.
6649 2015-07-25 Jeff Law <law@redhat.com>
6653 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6654 unable to find X NE 0 in the tables, return X as the simplified
6656 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6657 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6659 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6660 after removing the control flow statement and unnecessary edges.
6662 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6665 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6667 PR rtl-optimization/64164
6668 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6669 * tree-ssa-copyrename.c: Removed.
6670 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6671 -ftree-coalesce-vars.
6672 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6673 * common.opt (ftree-copyrename): Ignore.
6674 (ftree-coalesce-inlined-vars): Likewise.
6675 * doc/invoke.texi: Remove the ignored options above.
6676 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6677 * tree-ssa-coalesce.h: ... here.
6678 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6679 headers required by it.
6680 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6681 across variables when flag_tree_coalesce_vars. Check register
6682 use and promoted modes to allow coalescing. Moved to
6683 tree-ssa-coalesce.c.
6684 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6685 with its member functions to tree-ssa-coalesce.c.
6686 (var_map_base_init): Likewise. Renamed to
6687 compute_samebase_partition_bases.
6688 (partition_view_normal): Drop want_bases parameter.
6689 (partition_view_bitmap): Likewise.
6690 * tree-ssa-live.h: Adjust declarations.
6691 * tree-ssa-coalesce.c: Include explow.h.
6692 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6693 default defs at the entry point.
6694 (dump_part_var_map): New.
6695 (compute_optimized_partition_bases): New, called by...
6696 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6697 of compute_samebase_partition_bases. Adjust.
6698 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6699 * cfgexpand.c (leader_merge): New.
6700 (get_rtl_for_parm_ssa_default_def): New.
6701 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6702 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6703 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6704 redundant MEM attr setting.
6705 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6707 (expand_one_stack_var): ... this. New wrapper to check and
6708 skip already expanded SSA partitions.
6709 (record_alignment_for_reg_var): New, factored out of...
6710 (expand_one_var): ... this.
6711 (expand_one_ssa_partition): New.
6712 (adjust_one_expanded_partition_var): New.
6713 (expand_one_register_var): Check and skip already expanded SSA
6715 (expand_used_vars): Don't create DECLs for anonymous SSA
6716 names. Expand all SSA partitions, then adjust all SSA names.
6717 (pass::execute): Replace the loops that set
6718 SA.partition_to_pseudo from partition leaders and cleared
6719 DECL_RTL for multi-location variables, and that which used to
6720 rename vars and set attrs, with one that clears DECL_RTL and
6721 checks that PARMs and RESULTs default_defs match DECL_RTL.
6722 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6723 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6724 * explow.c (promote_ssa_mode): New.
6725 * explow.h (promote_ssa_mode): Declare.
6726 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6727 * function.c: Include cfgexpand.h.
6728 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6729 (use_register_for_parm_decl): Wrapper for the above to
6730 special-case the result_ptr.
6731 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6732 (split_complex_args): Take assign_parm_data_all argument.
6733 Pass it to rtl_for_parm. Set up rtl and context for split
6735 (assign_parms_augmented_arg_list): Adjust.
6736 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6737 multiple locations. Recognize split complex args.
6738 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6739 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6740 (assign_parm_setup_block): Prefer SSA-assigned location.
6741 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6742 if stack_parm is NULL.
6743 (assign_parm_setup_stack): Prefer SSA-assigned location.
6744 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6745 rtl before testing for pointer bounds. Special-case result_ptr.
6746 (expand_function_start): Maybe reset DECL_RTL of result.
6747 Prefer SSA-assigned location for result and static chain.
6748 Factor out DECL_RESULT and SET_DECL_RTL.
6749 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6750 anonymous SSA names. Use promote_ssa_mode.
6751 (get_temp_reg): Likewise.
6752 (remove_ssa_form): Adjust.
6753 * stor-layout.c (layout_decl): Don't set mem attributes of
6755 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6756 and get its reg_usage for reg invalidation.
6757 (compute_bb_dataflow): Pass it insn.
6758 (emit_notes_in_bb): Likewise.
6760 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6762 * config/i386/i386.c (ix86_va_start): Remove
6763 unneeded !TARGET_64BIT check.
6764 (ix86_gimplify_va_arg): Ditto.
6766 2015-07-24 Tom de Vries <tom@codesourcery.com>
6768 * graphite-sese-to-poly.c (build_poly_scop): Always call
6769 rewrite_commutative_reductions_out_of_ssa.
6771 2015-07-24 Tom de Vries <tom@codesourcery.com>
6773 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6774 flag_associative_math to FLOAT_TYPE_P. Honour
6775 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6777 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6780 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6781 and "%qD" in warning_at instead of "%q+D" in warning.
6783 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6785 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
6786 (ix86_function_abi): Cleanup.
6788 2015-07-24 Michael Darling <darlingm@gmail.com>
6791 * acinclude.m4: Reflects renaming of configure.in to configure.ac
6792 * configure: Likewise
6793 * configure.ac: Likewise
6794 * doc/install.texi: Likewise
6795 * doc/tm.texi: Likewise
6796 * doc/tm.texi.in: Likewise
6798 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6800 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
6801 manually swapping values.
6802 * cse.c (fold_rtx): Likewise.
6803 * lra-eliminations.c (form_sum): Likewise.
6805 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6808 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6809 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6810 (*jcc_1, *jcc_2, jump, simple_return_internal)
6811 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6812 Set length_nobnd attribute instead of length attribute.
6813 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6814 (length_nobnd): Remove attribute.
6815 (length): Remove length_nobnd processing.
6817 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
6819 * gimplify.c (omp_default_clause): New function. Reorganize flow
6820 for clarity. Broken out of ...
6821 (omp_notice_variable): ... here.
6823 2015-07-24 Gary Funck <gary@intrepid.com>
6826 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6827 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6829 2015-07-24 Tom de Vries <tom@codesourcery.com>
6831 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6832 exit-first loop transform.
6834 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6837 * tree-cfg.c (struct replace_decls_d): New struct.
6838 (replace_block_vars_by_duplicates_1): New function.
6839 (replace_block_vars_by_duplicates): Use it to replace the decls
6840 in the value exprs by duplicates.
6842 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6844 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6845 -shared, -symbolic, -rdynamic.
6847 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6850 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6851 -dynamic-linker within %{!static %{!shared, and -rdynamic within
6854 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
6857 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6858 edge summary is available.
6860 2015-07-24 Richard Biener <rguenther@suse.de>
6862 * genmatch.c (struct dt_node): Add statistic fields.
6863 (dt_node::analyze): New method.
6864 (decision_tree::gen_gimple): Call analyze on the root node
6865 and print statistics to stderr.
6866 (decision_tree::gen_generic): Likewise.
6868 2015-07-24 Richard Biener <rguenther@suse.de>
6870 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6871 against the highest or lowest possible integer ...
6872 * match.pd: ... as patterns here.
6874 2015-07-24 Richard Biener <rguenther@suse.de>
6876 * genmatch.c (struct capture_info): Add same_as field.
6877 (capture_info::capture_info): Initialize same_as.
6878 (capture_info::walk_match): Compute same_as.
6879 (capture_info::walk_result): Compute stuff for the leader.
6880 (capture_info::walk_c_expr): Likewise.
6881 (dt_simplify::gen_1): Only look at leaders when deciding
6882 to force no side-effects or emit side-effects of omitted operands.
6884 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6886 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6887 reg note to the GPR -> FPR save instructions.
6889 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6891 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6893 (s390_expand_insv): Don't generate risbg pattern for constant zero
6895 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6896 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
6899 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6901 * config/s390/s390.c (s390_reorg): Clean up handling of processors
6904 (s390_issue_rate): Likewise.
6905 (s390_sched_reorder): Likewise.
6906 (s390_sched_variable_issue): Likewise.
6907 (s390_loop_unroll_adjust): Likewise.
6908 (s390_option_override): Likewise.
6910 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6912 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6913 processor capabilities with -march=native.
6914 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6915 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
6916 (S390_TARGET_BITS_STRING): Macro to simplify specs.
6918 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6920 * config/s390/s390.c (s390_issue_rate): Handle
6921 PROCESSOR_2094_Z9_EC.
6922 (s390_option_override): Likewise.
6923 (s390_adjust_priority): Likewise.
6925 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6927 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6928 when cross compiling.
6930 2015-07-24 Richard Biener <rguenther@suse.de>
6932 * fold-const.c (maybe_canonicalize_comparison_1): Move
6933 A code CST canonicalization ...
6934 * match.pd: ... to a pattern here.
6936 2015-07-24 Jiong Wang <jiong.wang@arm.com>
6939 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6941 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6942 (HONOR_REG_ALLOC_ORDER): Define.
6944 2015-07-24 Richard Biener <rguenther@suse.de>
6946 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6947 * fold-const.c (fold_comparison): Move parameter does not
6948 alias &local simplification ...
6949 * match.pd: ... as a pattern here.
6951 2015-07-24 Richard Biener <rguenther@suse.de>
6953 * gimple-fold.c (replace_stmt_with_simplification): Special-case
6954 valueizing call operands.
6955 * gimple-match-head.c (maybe_push_res_to_seq): Take
6956 number of call arguments from ops array.
6957 (do_valueize): New function.
6958 (gimple_simplify): Return true if valueization changed
6959 any operand even if the result didn't simplify further.
6961 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6964 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6966 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6969 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6971 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6973 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6976 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6978 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6981 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
6983 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6984 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
6986 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6987 ms_va_list_type_node initialization.
6989 2015-07-23 Jeff Law <law@redhat.com>
6992 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6993 unable to find X NE 0 in the tables, return X as the simplified
6995 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6996 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6998 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6999 after removing the control flow statement and unnecessary edges.
7001 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7003 * tree-pass.h (get_current_pass_name): Removed.
7005 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7007 PR rtl-optimization/64164
7008 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7009 * tree-ssa-copyrename.c: Removed.
7010 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7011 -ftree-coalesce-vars.
7012 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7013 * common.opt (ftree-copyrename): Ignore.
7014 (ftree-coalesce-inlined-vars): Likewise.
7015 * doc/invoke.texi: Remove the ignored options above.
7016 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7017 * tree-ssa-coalesce.h: ... here.
7018 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7019 headers required by it.
7020 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7021 across variables when flag_tree_coalesce_vars. Check register
7022 use and promoted modes to allow coalescing. Moved to
7023 tree-ssa-coalesce.c.
7024 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7025 with its member functions to tree-ssa-coalesce.c.
7026 (var_map_base_init): Likewise. Renamed to
7027 compute_samebase_partition_bases.
7028 (partition_view_normal): Drop want_bases parameter.
7029 (partition_view_bitmap): Likewise.
7030 * tree-ssa-live.h: Adjust declarations.
7031 * tree-ssa-coalesce.c: Include explow.h.
7032 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7033 default defs at the entry point.
7034 (dump_part_var_map): New.
7035 (compute_optimized_partition_bases): New, called by...
7036 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7037 of compute_samebase_partition_bases. Adjust.
7038 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7039 * cfgexpand.c (leader_merge): New.
7040 (get_rtl_for_parm_ssa_default_def): New.
7041 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7042 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7043 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7044 redundant MEM attr setting.
7045 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7047 (expand_one_stack_var): ... this. New wrapper to check and
7048 skip already expanded SSA partitions.
7049 (record_alignment_for_reg_var): New, factored out of...
7050 (expand_one_var): ... this.
7051 (expand_one_ssa_partition): New.
7052 (adjust_one_expanded_partition_var): New.
7053 (expand_one_register_var): Check and skip already expanded SSA
7055 (expand_used_vars): Don't create DECLs for anonymous SSA
7056 names. Expand all SSA partitions, then adjust all SSA names.
7057 (pass::execute): Replace the loops that set
7058 SA.partition_to_pseudo from partition leaders and cleared
7059 DECL_RTL for multi-location variables, and that which used to
7060 rename vars and set attrs, with one that clears DECL_RTL and
7061 checks that PARMs and RESULTs default_defs match DECL_RTL.
7062 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7063 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7064 * explow.c (promote_ssa_mode): New.
7065 * explow.h (promote_ssa_mode): Declare.
7066 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7067 * function.c: Include cfgexpand.h.
7068 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7069 (use_register_for_parm_decl): Wrapper for the above to
7070 special-case the result_ptr.
7071 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7072 (split_complex_args): Take assign_parm_data_all argument.
7073 Pass it to rtl_for_parm. Set up rtl and context for split
7075 (assign_parms_augmented_arg_list): Adjust.
7076 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7077 multiple locations. Recognize split complex args.
7078 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7079 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7080 (assign_parm_setup_block): Prefer SSA-assigned location.
7081 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7082 if stack_parm is NULL.
7083 (assign_parm_setup_stack): Prefer SSA-assigned location.
7084 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7085 rtl before testing for pointer bounds. Special-case result_ptr.
7086 (expand_function_start): Maybe reset DECL_RTL of result.
7087 Prefer SSA-assigned location for result and static chain.
7088 Factor out DECL_RESULT and SET_DECL_RTL.
7089 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7090 anonymous SSA names. Use promote_ssa_mode.
7091 (get_temp_reg): Likewise.
7092 (remove_ssa_form): Adjust.
7093 * stor-layout.c (layout_decl): Don't set mem attributes of
7095 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7096 and get its reg_usage for reg invalidation.
7097 (compute_bb_dataflow): Pass it insn.
7098 (emit_notes_in_bb): Likewise.
7100 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7103 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7105 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7106 (rs6000_emit_2insn_and): Handle dot forms.
7107 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7108 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7109 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7111 2015-07-23 Richard Biener <rguenther@suse.de>
7113 * generic-match-head.c: Include cgraph.h.
7114 * gimple-match-head.c: Likewise.
7115 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7117 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7118 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7121 2015-07-23 Richard Biener <rguenther@suse.de>
7123 * gimple-fold.c (fold_gimple_cond): Do not require folding
7124 results to pass valid_gimple_rhs_p.
7125 * tree-cfg.h (fold_cond_expr_cond): Remove.
7126 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7127 (make_edges): Do not call it.
7128 * tree-inline.c (tree_function_versioning): Likewise.
7130 2015-07-23 Tom de Vries <tom@codesourcery.com>
7132 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7133 vect_force_simple_reduction.
7134 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7135 (vect_is_simple_reduction_1): Add and handle
7136 need_wrapping_integral_overflow parameter.
7137 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7138 need_wrapping_integral_overflow parameter.
7139 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7140 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7143 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7145 PR tree-optimization/66926,66951
7146 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7147 INNER_LOOP and fix up condition for renaming virtual operands.
7149 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7151 * combine.c (try_combine): Use std::swap instead of manually
7154 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7156 * config/mips/i6400.md: New file.
7157 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7158 (mips64r6): Likewise.
7160 * config/mips/mips-tables.opt: Regenerate.
7161 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7162 (mips_issue_rate): Add support for i6400.
7163 (mips_multipass_dfa_lookahead): Likewise.
7164 * config/mips/mips.h (TUNE_I6400): Define.
7165 * config/mips/mips.md: Include i6400.md.
7166 (processor): Add i6400.
7167 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7169 2015-07-23 Richard Biener <rguenther@suse.de>
7172 * match.pd: Guard widen and sign-change comparison simplification
7175 2015-07-23 Richard Biener <rguenther@suse.de>
7177 PR tree-optimization/66945
7178 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7179 ::before_dom_children): Force the propagators idea of
7180 non-executable edges to materialize, not what the folder
7183 2015-07-23 Richard Biener <rguenther@suse.de>
7185 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7186 (gimple_cond_make_true): Use 1 != 0.
7188 2015-07-22 DJ Delorie <dj@redhat.com>
7190 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7193 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7194 (ashrhi3): Likewise.
7195 (lshrhi3): Likewise.
7196 (movhi): Take advantage of zero-extend to load small constants.
7198 (and<mode>3): Likewise.
7199 (zero_extendqihi2): Likewise.
7200 (zero_extendqisi2): New.
7201 * config/msp430/constraints.md (N,O): New.
7202 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7204 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7207 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7208 to enum feature_priority and feature_list.
7209 (fold_builtin_cpu): Add F_AES to enum processor_features
7210 and isa_names_table.
7212 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7215 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7216 for 64bit target only.
7218 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7220 * config/nvptx/nvptx.c: Expand some comments.
7222 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7224 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7225 (cortex_a53_advsimd): ...This.
7227 2015-07-22 Richard Biener <rguenther@suse.de>
7229 * genmatch.c (expr::gen_transform): Clarify error message
7230 and display location.
7232 2015-07-22 Richard Biener <rguenther@suse.de>
7234 * genmatch.c (struct operand): Add location member.
7235 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7237 (struct simplify): Remove match_location and result_location
7239 (elsehwere): Adjust.
7241 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7243 * config/mips/m5100.md: New file.
7244 * config/mips/mips-cpus.def (m5100, m5101): Define.
7245 * config/mips/mips-tables.opt: Regenerate.
7246 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7247 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7248 -march=m5101 to -mips32r5.
7249 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7250 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7252 * config/mips/mips.md: Include m5100.md.
7253 (processor): Add m5100.
7254 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7256 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7258 * config/mips/mips-cpus.def (interaptiv): Define.
7259 * config/mips/mips-tables.opt: Regenerate.
7260 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7262 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7263 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7265 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7268 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7269 (HONOR_REG_ALLOC_ORDER): Define.
7271 2015-07-22 Richard Biener <rguenther@suse.de>
7273 PR tree-optimization/66952
7274 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7275 blocks we end up executing unconditionally reset all SSA
7276 info such as range and alignment.
7277 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7278 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7280 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7282 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7285 2015-07-22 Richard Biener <rguenther@suse.de>
7287 * genmatch.c (parser::parse_result): Properly handle
7288 match with result operands and conditions.
7290 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7293 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7294 Add qualifier_struct_load_store_lane_index.
7295 (aarch64_types_loadstruct_lane_qualifiers): Use
7296 qualifier_struct_load_store_lane_index for lane index argument for
7298 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7299 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7300 (aarch64_simd_expand_args): Add new argument describing mode of
7301 builtin. Check lane bounds for arguments with
7302 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7303 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7304 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7305 (aarch64_simd_expand_builtin): Handle arguments with
7306 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7307 aarch64_simd_expand_args.
7308 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7309 vst[234]_lane with BUILTIN_VALLDIF.
7310 * config/aarch64/aarch64-simd.md:
7311 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7312 endianness reversal on lane index.
7313 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7314 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7315 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7316 (vec_store_lanesci_lane<mode>): Ditto.
7317 (vec_store_lanesxi_lane<mode>): Ditto.
7318 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7319 reversal of lane index.
7320 (aarch64_ld3_lane<mode>): Ditto.
7321 (aarch64_ld4_lane<mode>): Ditto.
7322 (aarch64_st2_lane<mode>): Ditto.
7323 (aarch64_st3_lane<mode>): Ditto.
7324 (aarch64_st4_lane<mode>): Ditto.
7325 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7326 to qmode. Add new mode parameter. Update uses.
7327 (__LD3_LANE_FUNC): Ditto.
7328 (__LD4_LANE_FUNC): Ditto.
7329 (__ST2_LANE_FUNC): Ditto.
7330 (__ST3_LANE_FUNC): Ditto.
7331 (__ST4_LANE_FUNC): Ditto.
7333 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7335 * doc/invoke.texi (Language Independent Options): Rename node to
7336 Diagnostic Message Formatting Options.
7338 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7341 * lra-remat.c (operand_to_remat): Prevent using insns with input
7342 subregs processed separately by IRA.
7344 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7346 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7348 (single_imm_use): Check for iterator node.
7349 (num_imm_uses): Likewise.
7350 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7351 (single_imm_use_1): Check for iterator node.
7353 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7354 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7356 * configure.ac: Add check for new options in isl-0.15.
7357 * config.in, configure: Rebuilt.
7358 * graphite-blocking.c: Include <isl/constraint.h>
7359 * graphite-interchange.c, graphite-poly.c: Likewise.
7360 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7361 * graphite.c: Likewise.
7362 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7364 * graphite-dependences.c: Include <isl/constraint.h>.
7365 (max_number_of_out_dimensions): Returns isl_stat.
7366 (extend_schedule_1): Likewise
7367 (extend_schedule): Corresponding changes.
7368 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7370 (getSingleMap): Change return type of isl_stat.
7371 (optimize_isl): Conditionally use
7372 isl_options_set_schedule_serialize_sccs.
7373 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7374 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7376 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7379 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7380 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7382 2015-07-21 Richard Biener <rguenther@suse.de>
7384 PR tree-optimization/66948
7385 * genmatch.c (capture_info::walk_match): Also recurse to
7386 captures. Properly compute expr state from captures of
7388 * match.pd: Add single-use guards to
7389 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7391 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7393 * config/nvptx/mkoffload.c (process): Add static destructor call.
7395 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7398 * match.pd (A - B -> A + (-B)): Don't allow folding
7399 when type if a fixed-point type.
7401 2015-07-20 DJ Delorie <dj@redhat.com>
7403 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7404 (iorqi3_real): Likewise for set1.
7406 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7408 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7411 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7413 * graphite-isl-ast-to-gimple.c:
7414 Refactor so that each function can access 'region'. This will help
7415 maintain a parameter rename_map within a region.
7417 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7419 * config/rs6000/rs6000.md (*lt0_disi): New.
7421 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7424 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7425 "available letters" comment.
7426 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7427 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7428 and_2rld_operand): Delete.
7429 (and_operand): Adjust.
7430 (rotate_mask_operator): New.
7431 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7432 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7433 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7434 extract_ME): Delete.
7435 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7436 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7437 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7438 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7439 rs6000_emit_2insn_and): New.
7440 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7441 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7442 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7443 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7444 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7445 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7446 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7447 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7448 rs6000_emit_2insn_and): New.
7449 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7450 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7452 <NOT>: Don't fall through to next case.
7453 <AND>: Handle the various rotate-and-mask cases directly.
7454 <IOR>: Always cost as one insn.
7455 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7456 (and<mode>3): Adjust expander for the new patterns.
7457 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7458 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7459 (*and<mode>3_imm_dot_shifted): New.
7460 (*and<mode>3_mask): Delete, rewrite as ...
7461 (and<mode>3_mask): ... New.
7462 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7463 (andsi3_internal0_nomc): Delete.
7464 (*andsi3_internal6): Delete.
7465 (*and<mode>3_2insn): New.
7466 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7467 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7468 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7469 *insvdi_internal3): Delete.
7470 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7471 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7472 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7473 *ior<mode>_mask): New.
7474 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7475 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7476 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7477 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7479 (ashr<mode>3): Delete expander.
7480 (*ashr<mode>3): Rename to ...
7481 (ashr<mode>3): ... This.
7482 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7483 (*rotldi3_internal4, *rotldi3_internal5 and split,
7484 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7485 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7486 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7487 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7488 (splitter for loading a mask): Adjust.
7489 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7491 2015-07-20 Marek Polacek <polacek@redhat.com>
7493 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7494 output_add_clobbers, output_added_clobbers_hard_reg_p,
7495 gen_rtx_scratch): Remove declarations.
7497 2015-07-20 Marek Polacek <polacek@redhat.com>
7500 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7502 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7504 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7505 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7507 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7509 * combine.c (combine_simplify_rtx): Move simplification step
7510 before various transformations/substitutions.
7512 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7514 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7515 (struct int_traits): Likewise.
7517 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7519 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7520 function to vmsdbgout_function_decl.
7522 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7525 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7526 from misaligned positions.
7527 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7529 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7533 * Makefile.in: Removed omega.o.
7534 * common.opt: Document flag fcheck-data-deps as deprecated.
7535 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7536 its associated params: omega-max-vars, omega-max-geqs,
7537 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7538 omega-max-keys, omega-eliminate-redundant-constraints.
7539 * doc/loop.texi: Remove all the section on Omega.
7540 * graphite-blocking.c: Include missing params.h: it used to be
7541 included through tree-data-ref.h and omega.h.
7542 * graphite-isl-ast-to-gimple.c: Same.
7543 * graphite-optimize-isl.c: Same.
7544 * graphite-sese-to-poly.c: Same.
7548 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7549 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7550 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7551 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7552 * passes.def: Remove pass_check_data_deps.
7553 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7554 (dump_conflict_function): Same.
7555 (dump_subscript): Same.
7556 (print_direction_vector): Same.
7557 (print_dir_vectors): Same.
7558 (print_lambda_vector): Same.
7559 (print_dist_vectors): Same.
7560 (dump_data_dependence_relation): Same.
7561 (dump_data_dependence_relations): Same.
7562 (dump_dist_dir_vectors): Same.
7564 (init_omega_eq_with_af): Removed.
7565 (omega_extract_distance_vectors): Removed.
7566 (omega_setup_subscript): Removed.
7567 (init_omega_for_ddr_1): Removed.
7568 (init_omega_for_ddr): Removed.
7569 (ddr_consistent_p): Removed.
7570 (compute_affine_dependence): Do not use omega to check data
7572 (compute_data_dependences_for_bb): Removed.
7573 (analyze_all_data_dependences): Removed.
7574 (tree_check_data_deps): Removed.
7575 * tree-data-ref.h: Do not include omega.h.
7576 (compute_data_dependences_for_bb): Removed.
7577 (tree_check_data_deps): Removed.
7578 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7579 (make_pass_check_data_deps): Removed.
7580 * tree-ssa-phiopt.c: Include params.h.
7581 * tree-vect-data-refs.c: Same.
7582 * tree-vect-slp.c: Same.
7584 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7586 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7587 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7588 (mem->fpreg splitters): Ditto.
7589 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7590 Disable DFmode for TARGET_64BIT.
7592 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7595 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7598 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7600 * config/nvptx/mkoffload.c (process): Constify host data.
7601 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7603 (generate_host_descr_file): Likewise.
7605 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7606 Sebastian Pop <s.pop@samsung.com>
7609 * graphite-dependences.c (add_pdr_constraints): Renamed
7610 pdr->extent to pdr->subscript_sizes.
7611 * graphite-interchange.c (build_linearized_memory_access): Add
7612 back all gcc_assert's that the "isl_int to isl_val conversion"
7613 patch has removed. Refactored.
7614 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7615 * graphite-poly.c (new_poly_dr): Same.
7616 (free_poly_dr): Same.
7617 * graphite-poly.h (struct poly_dr): Same.
7618 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7619 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7620 * graphite-scop-detection.h: Fix space.
7621 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7622 back all gcc_assert's removed by a previous patch.
7623 (wrap): Remove the_isl_ctx global variable that the same patch has
7625 (build_loop_iteration_domains): Same.
7626 (add_param_constraints): Same.
7627 (pdr_add_data_dimensions): Same. Refactored.
7628 (build_poly_dr): Renamed extent to subscript_sizes.
7630 2015-07-17 Marek Polacek <polacek@redhat.com>
7632 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7633 * match.pd: ... here.
7635 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7637 * config/nvptx/mkoffload.c (process): Constify target data.
7638 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7639 Constify target data.
7640 (generate_target_offloadend_file): Likewise.
7642 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7644 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7645 to allow renaming of PHI arguments on edges incoming from outer
7646 loop header, add corresponding check before start PHI iterator.
7647 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7648 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7649 with true force_vectorize. Set-up dominator for outer loop too.
7650 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7651 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7652 was marked with force_vectorize and has restricted cfg.
7653 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7655 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7656 do peeling for outer loops.
7658 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7659 Matthias Klose <doko@ubuntu.com>
7661 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7662 build-sysroot, sysroot from the `Miscenalleous configure options' to
7663 the `Directories' section and strip trailing `/' from with_sysroot.
7664 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7665 * configure: Regenerated.
7667 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7670 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7671 (TARGET_HARD_DF_REGS): Ditto.
7672 (TARGET_HARD_XF_REGS): Ditto.
7673 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7674 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7675 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7676 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7677 (*movsf_internal): Add alternatives 16 and 17. Enable
7678 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7680 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7682 PR rtl-optimization/66891
7683 * calls.c (expand_call): Wrap precompute_register_parameters with
7684 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7686 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7688 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7689 Define target data struct and initialize it.
7691 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7693 PR rtl-optimization/66626
7694 * ira.h (emit-rtl.h): Include.
7695 (non_spilled_static_chain_regno_p): New.
7696 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7697 unless it is non spilled static chain pseudo.
7698 (assign_hard_rego): Spill memory profitable allocno unless it is
7699 non spilled static chain pseudo.
7700 (allocno_spill_priority_compare): Put non spilled static chain
7701 pseudo at the end of sorted array.
7702 (improve_allocation): Do nothing if we have static chain and
7704 (allocno__priority_compare_func): Put non spilled static chain
7705 pseudo at the beginning of sorted array.
7706 (move_spill_restore): Ignore non spilled static chain pseudo.
7707 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7708 to non spilled static chain pseudo.
7709 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
7710 pseudo at the beginning of sorted array.
7711 (spill_for): Spill non spilled static chain pseudo last.
7712 * lra-constraints.c (lra_constraints): Remove static chain pseudo
7713 check for equivalence.
7715 2015-07-16 Martin Liska <mliska@suse.cz>
7718 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
7719 dst_ctx if it does not exist.
7721 2015-07-16 Martin Liska <mliska@suse.cz>
7723 * hash-set.h (remove): New function.
7724 (iterator): New iteration class for hash_set.
7726 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7728 * genattrtab.c (make_canonical): Add a file_location parameter.
7729 Use fatal_at rather than fatal.
7730 (get_attr_value): Likewise. Update call to make_canonical.
7731 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
7732 (make_internal_attr): Update calls accordingly.
7734 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7736 * read-md.h (message_with_line, error_with_line): Delete.
7737 * read-md.c (message_with_line, error_with_line): Delete.
7738 * gensupport.h: Include read-md.h.
7739 (md_rtx_info): New structure.
7740 (read_md_rtx): Use it. Return a bool success value.
7741 * gensupport.c (read_md_rtx): Likewise.
7742 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
7743 (main): Update after interface changes.
7744 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
7745 (main): Update after interface changes.
7746 * genattrtab.c (insn_code_number): Delete.
7747 (optimize_attrs): Add a max_insn_code parameter and use it instead
7748 of insn_code_number.
7749 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
7750 Use *_at rather than *_with_line functions.
7751 (gen_insn): Likewise.
7752 (gen_delay): Likewise.
7753 (gen_insn_reserv): Likewise.
7754 (gen_bypass): Take an md_rtx_info rather than an rtx.
7755 (main): Update after interface changes. Use a local max_insn_code
7756 variable instead of insn_code_number.
7757 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7758 an rtx. Use fatal_at rather than fatal.
7759 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7760 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7761 (gen_absence_set, gen_final_absence_set, gen_automaton)
7762 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7763 (main): Update after interface changes.
7764 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7766 (main): Update after interface changes.
7767 * genconditions.c (main): Use new read_md_rtx interface.
7768 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7769 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7770 (main): Update after interface changes.
7771 * genemit.c (insn_code_number, insn_index_number): Delete.
7772 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7773 Use fatal_at rather than fatal.
7774 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
7776 (gen_split): Likewise.
7777 (main): Update after interface changes.
7778 * genextract.c (line_no): Delete.
7779 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7780 Update call to walk_rtx.
7781 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
7782 rather than message_with_line.
7783 (walk_rtx): Add an md_rtx_info argument. Update call to
7784 VEC_safe_set_locstr.
7785 (main): Update after interface changes.
7786 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
7787 and lineno. Use error_at rather than separate message_with_line
7788 calls and have_error assignments.
7789 (main): Update after interface changes.
7790 * genmddump.c (main): Use new read_md_rtx interface.
7791 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
7792 (main): Update after interface changes.
7793 * genoutput.c (next_code_number): Delete.
7794 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7795 (gen_peephole, gen_expand, gen_split): Likewise.
7796 (note_constraint): Likewise. Use *_at rather than *_with_line
7798 (main): Update after interface changes.
7799 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
7801 (main): Update after interface changes.
7802 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
7803 than an rtx and lineno.
7804 (process_define_constraint): Likewise.
7805 (process_define_register_constraint): Likewise.
7806 (main): Update after interface changes.
7807 * genrecog.c (next_insn_code, pattern_lineno): Delete.
7808 (validate_pattern): Replace top-level rtx with an md_rtx_info.
7809 Use *_at rather than *_with_line functions.
7810 (match_pattern_2): Likewise.
7811 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7812 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7813 Use *_at rather than *_with_line functions.
7814 * gentarget-def.c (add_insn): New function.
7815 (main): Use it. Use new read_md_rtx interface.
7817 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7819 * gensupport.h (compute_test_codes): Take a file_location rather
7821 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
7822 rather than *_with_line functions.
7823 (process_define_predicate): Update call to compute_test_codes.
7824 * genpreds.c (validate_exp): Take a file_location rather than a
7825 line number. Use *_at functions rather than *_with_line functions.
7826 (process_define_predicate): Update call to validate_exp.
7827 (constraint_data): Replace lineno field with a file_location.
7828 (add_constraint): Take a file_location rather than a line number.
7829 Use *_at functions rather than *_with_line functions. Fix error
7830 message for address constraints. Update after changes to
7831 validate_exp, constraint_data and compute_test_codes.
7832 (process_define_constraint): Update accordingly.
7833 (process_define_register_constraint): Likewise.
7835 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7837 * genoutput.c (data): Use a file_location to record the source
7840 (idata, idata_end): Remove initialization.
7841 (constraint_data): Replace lineno with a file_location.
7842 (output_insn_data): Update after changes to data.
7843 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7844 (scan_operands): Likewise, using *_at rather than *_with_line
7846 (process_template): Likewise.
7847 (validate_insn_alternatives): Likewise.
7848 (validate_insn_operands): Likewise.
7849 (validate_optab_operands): Likewise.
7850 (init_insn_for_nothing): Initialize idata and idata_end.
7851 (note_constraint): Update after changes to constraint_data,
7852 using at rather than with_line functions.
7853 (mdep_constraint_len): Take a file_location rather than a
7854 line number. Use at rather than with_line functions.
7856 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7858 * read-md.h (fatal_at): Declare.
7859 * read-md.c (fatal_at): New function.
7860 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7861 to record the source position.
7862 (check_attr_test): Take a file_location instead of a line number.
7863 Use fatal_at instead of fatal.
7864 (check_attr_value): Update after above changes, using "at"
7865 rather than "with_line" reporting functions.
7866 (convert_set_attr_alternative): Likewise.
7867 (gen_attr): Likewise.
7868 (check_defs): Likewise. Don't assign to read_md_filename.
7869 (gen_insn): Update initialization after above changes.
7870 (gen_delay): Likewise.
7871 (write_insn_cases): Print the filename for a define_peephole.
7872 (gen_insn_reserv): Take a line number as argument and update
7873 the call to check_attr_test.
7874 (main): Pass a line number to gen_insn_reserv.
7876 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7878 * read-md.h (file_location): New structure.
7879 (directive_handler_t): Take a file_location rather than a line number.
7880 (message_at, error_at): Declare.
7881 (read_skip_construct): Delete.
7882 * read-md.c (message_with_line_1): Replace with...
7883 (message_at_1): ...this new function.
7884 (message_at, error_at): New functions.
7885 (message_with_line, error_with_line): Update to use message_at_1.
7886 (handle_enum): Take a file_location rather than a line number
7887 and use error_at for error reporting.
7888 (handle_include): Likewise.
7889 (read_skip_construct): Likewise. Make static.
7890 (handle_file): Update after above changes. Pass a file_location
7891 rather than a line number to handle_directive.
7892 * gensupport.c (queue_elem): Replace separate filename and lineno
7893 with a file_location.
7894 (queue_pattern): Replace filename and lineno arguments with a
7895 file_location. Update after change to queue_elem.
7896 (process_define_predicate): Replace lineno argument with a
7897 file_location and use error_at for error reporting. Update
7898 after above changes.
7899 (process_rtx): Likewise.
7900 (subst_pattern_match): Likewise.
7901 (get_alternatives_number): Likewise.
7902 (alter_predicate_for_insn): Likewise.
7903 (rtx_handle_directive): Likewise.
7904 (is_predicable): Update after above changes, using error_at rather
7905 than error_with_line.
7906 (has_subst_attribute): Likewise.
7907 (identify_predicable_attribute): Likewise.
7908 (alter_attrs_for_subst_insn): Likewise.
7909 (process_one_cond_exec): Likewise.
7910 (process_substs_on_one_elem): Likewise.
7911 (process_define_subst): Likewise.
7912 (check_define_attr_duplicates): Likewise.
7913 (read_md_rtx): Update after change to queue_elem.
7915 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7917 * genoutput.c (next_index_number): Delete.
7918 (data): Remove index_number.
7919 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7920 (main): Remove manipulation of next_index_number.
7922 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7924 * genattrtab.c (check_attr_value): Remove handling of null attrs.
7925 (make_canonical): Likewise.
7927 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
7929 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7930 instead of adjust_address_nv.
7931 (restore_stack_nonlocal): Likewise.
7932 (nonlocal_goto): Likewise.
7934 2015-07-16 Tom de Vries <tom@codesourcery.com>
7936 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7937 not have a corresponding loop header phi.
7939 2015-07-16 Tom de Vries <tom@codesourcery.com>
7941 * tree-parloops.c (create_loads_for_reductions): Handle case that
7942 reduction is unused.
7944 2015-07-16 Richard Biener <rguenther@suse.de>
7946 PR tree-optimization/66894
7947 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7948 about deriving NE_EXPR from truncated values.
7950 2015-07-16 Martin Liska <mliska@suse.cz>
7953 (object_allocator): Add new class.
7954 (pool_allocator::initialize): Use the underlying class.
7955 (pool_allocator::allocate): Likewise.
7956 (pool_allocator::remove): Likewise.
7957 (operator new): A new generic allocator.
7958 * asan.c (struct asan_mem_ref): Remove unused members.
7959 (asan_mem_ref_new): Replace new operator with
7960 object_allocator::allocate.
7961 (free_mem_ref_resources): Change deallocation.
7962 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7963 with object_allocator.
7964 * config/sh/sh.c (add_constant): Replace new operator with
7965 object_allocator::allocate.
7966 (sh_reorg): Change call to a release method.
7967 * cselib.c (struct elt_list): Remove unused members.
7968 (new_elt_list): Replace new operator with
7969 object_allocator::allocate.
7970 (new_elt_loc_list): Likewise.
7971 (new_cselib_val): Likewise.
7972 (unchain_one_elt_list): Change delete operator with remove method.
7973 (unchain_one_elt_loc_list): Likewise.
7974 (unchain_one_value): Likewise.
7975 (cselib_finish): Release newly added static allocators.
7976 * cselib.h (struct cselib_val): Remove unused members.
7977 (struct elt_loc_list): Likewise.
7978 * df-problems.c (df_chain_alloc): Replace pool_allocator with
7980 * df-scan.c (struct df_scan_problem_data): Likewise.
7981 (df_scan_alloc): Likewise.
7982 * df.h (struct dataflow): Likewise.
7983 * dse.c (struct read_info_type): Likewise.
7984 (struct insn_info_type): Likewise.
7985 (struct dse_bb_info_type): Likewise.
7986 (struct group_info): Likewise.
7987 (struct deferred_change): Likewise.
7988 (get_group_info): Likewise.
7989 (delete_dead_store_insn): Likewise.
7990 (free_read_records): Likewise.
7991 (replace_read): Likewise.
7992 (check_mem_read_rtx): Likewise.
7993 (scan_insn): Likewise.
7994 (dse_step1): Likewise.
7995 (dse_step7): Likewise.
7996 * et-forest.c (struct et_occ): Remove unused members.
7997 (et_new_occ): Use allocate instead of new operator.
7998 (et_new_tree): Likewise.
7999 (et_free_tree): Call release method explicitly.
8000 (et_free_tree_force): Likewise.
8001 (et_free_pools): Likewise.
8002 (et_split): Use remove instead of delete operator.
8003 * et-forest.h (struct et_node): Remove unused members.
8004 * ipa-cp.c: Change pool_allocator to object_allocator.
8005 * ipa-inline-analysis.c: Likewise.
8006 * ipa-profile.c: Likewise.
8007 * ipa-prop.c: Likewise.
8008 * ipa-prop.h: Likewise.
8009 * ira-build.c (initiate_cost_vectors): Cast return value.
8010 (ira_allocate_cost_vector): Likewise.
8011 * ira-color.c (struct update_cost_record): Remove unused members.
8012 * lra-int.h (struct lra_live_range): Likewise.
8013 (struct lra_copy): Likewise.
8014 (struct lra_insn_reg): Likewise.
8015 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8016 * lra.c (new_insn_reg): Replace new operator with allocate method.
8017 (free_insn_regs): Same for operator delete.
8018 (finish_insn_regs): Release new static allocator.
8019 (finish_insn_recog_data): Likewise.
8020 (lra_free_copies): Replace delete operator with remove method.
8021 (lra_create_copy): Replace operator new with allocate method.
8022 (invalidate_insn_data_regno_info): Same for remove method.
8023 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8024 (free_debug_insn_changes): Replace delete operator with remove method.
8025 (replace_oldest_value_reg): Replace operator new with allocate method.
8026 (pass_cprop_hardreg::execute): Release new static variable.
8027 * sched-deps.c (sched_deps_init): Change pool_allocator to
8029 * sel-sched-ir.c: Likewise.
8030 * sel-sched-ir.h: Likewise.
8031 * stmt.c (expand_case): Likewise.
8032 (expand_sjlj_dispatch_table): Likewise.
8033 * tree-sra.c (struct access): Remove unused members.
8034 (struct assign_link): Likewise.
8035 (sra_deinitialize): Release newly added static pools.
8036 (create_access_1):Replace operator new with allocate method.
8037 (build_accesses_from_assign): Likewise.
8038 (create_artificial_child_access): Likewise.
8039 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8040 pool_allocator to object_allocator.
8041 * tree-ssa-pre.c: Likewise.
8042 * tree-ssa-reassoc.c: Likewise.
8043 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8044 * tree-ssa-strlen.c: Likewise.
8045 * tree-ssa-structalias.c: Likewise.
8046 * var-tracking.c (onepart_pool_allocate): New function.
8047 (unshare_variable): Use the newly added function.
8048 (variable_merge_over_cur): Likewise.
8049 (variable_from_dropped): Likewise.
8050 (variable_was_changed): Likewise.
8051 (set_slot_part): Likewise.
8052 (emit_notes_for_differences_1): Likewise.
8053 (vt_finalize): Release newly added static pools.
8055 2015-07-16 Martin Jambor <mjambor@suse.cz>
8057 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8058 all uses. Fix two typos in its general comment.
8059 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8061 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8063 * config/i386/linux-common.h (LINK_MPX): New.
8064 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8065 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8066 indicating '-z bndplt' support by linker.
8067 * configure: Regenerate.
8068 * config.in: Regenerate.
8070 2015-07-16 Richard Biener <rguenther@suse.de>
8072 * fold-const.c (fold_widened_comparison): Remove.
8073 (fold_sign_changed_comparison): Likewise.
8074 (fold_comparison): Move widened and sign-changed comparison
8076 * match.pd: ... to patterns here.
8077 * generic-match-head.c: Include target.h.
8078 * gimple-match-head.c: Likewise.
8080 2015-07-16 Richard Biener <rguenther@suse.de>
8082 * tree-ssa-dom.c (dom_valueize): New function.
8083 (record_temporary_equivalences): Also record equivalences
8084 for dominating stmts that have uses of equivalences we are
8087 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8089 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8090 add_autoinc_candidates.
8091 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8092 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8093 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8094 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8096 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8097 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8098 Remove parameter struct iv*. Call add_autoinc_candidates here.
8099 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8100 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8102 (find_iv_candidates): Call new functions.
8104 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8106 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8107 uninitialized-variable warning.
8109 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8112 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8113 when the destination is R0.
8115 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8118 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8119 * config/i386/i386.c (ix86_expand_pextr): New function.
8120 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8121 for non-lowpart subregs.
8122 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8123 (insv<mode>): Use SWI248 mode iterator.
8124 (insv<mode>_1): Ditto.
8126 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8127 Sebastian Pop <s.pop@samsung.com>
8129 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8130 iterator to use_stmt.
8132 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8133 Sebastian Pop <s.pop@samsung.com>
8135 * graphite-scop-detection.c (build_scops_1): Discard scops for
8138 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8139 Sebastian Pop <s.pop@samsung.com>
8141 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8142 case of a return statement in scop.
8144 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8145 Sebastian Pop <s.pop@samsung.com>
8147 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8148 INTEGER_TYPE parameters.
8149 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8150 VECTOR_CST in scan_tree_for_params.
8151 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8153 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8155 * gimple-pretty-print.h: Don't include pretty-print.h.
8156 * tree-streamer.h: Don't include lto-streamer.h.
8157 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8158 * gimple-streamer-in.c: Remove redundant includes.
8159 * gimple-streamer-out.c: Likewise.
8160 * ipa-devirt.c: Likewise.
8161 * ipa-icf.c: Likewise.
8162 * ipa-inline-analysis.c: Likewise.
8163 * ipa-polymorphic-call.c: Likewise.
8164 * ipa-profile.c: Likewise.
8165 * ipa-prop.c: Likewise.
8166 * ipa-pure-const.c: Likewise.
8167 * lto-cgraph.c: Likewise.
8168 * lto-streamer-in.c: Likewise.
8169 * lto-streamer-out.c: Likewise.
8170 * lto-streamer.c: Likewise.
8171 * tree-streamer-in.c: Likewise.
8172 * tree-streamer-out.c: Likewise.
8173 * tree-streamer.c: Likewise.
8175 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8177 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8179 * opts.c: Remove multiline #include comment.
8181 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8183 * config/nvptx/mkoffload.c (process): Add C++ protection to
8186 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8189 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8190 null before IEEE 128-bit floating point support patch.
8192 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8194 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8195 for (!c) != {0,...,0} ? a : b for vector modes.
8197 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8198 Martin Jambor <mjambor@suse.cz>
8200 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8201 struct func_body_info* instead of struct ipa_node_params*, expecting
8202 fbi->info to be filled in. Replace throughout. Adjust call to
8203 ipa_load_from_parm_agg.
8204 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8205 instead of struct ipa_node_params*. Adjust calls to other functions
8206 so that they pass either fbi or fbi->info.
8207 (set_switch_stmt_execution_predicate): Likewise.
8208 (will_be_nonconstant_predicate): Likewise.
8209 (compute_bb_predicates): Likewise.
8210 (estimate_function_body_sizes): Move asserts earlier. Fill in
8211 struct func_body_info, replace parms_info with fbi.info. Adjust
8212 calls to functions that now accept struct func_body_info.
8213 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8214 (struct func_body_info): Likewise.
8215 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8216 remove static. Adjust callers.
8217 (ipa_load_from_parm_agg): Remove.
8218 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8219 (func_body_info): Likewise.
8220 (ipa_load_from_parm_agg): Adjust prototype.
8222 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8224 * gensupport.c (rtx_handle_directive): Adjust.
8225 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8226 instead of expr list rtx.
8227 (add_define_attr_for_define_subst): Likewise.
8228 (add_define_subst_attr): Likewise.
8229 (read_subst_mapping): Likewise.
8230 (read_rtx): Likewise.
8231 * rtl.h (read_rtx): Adjust.
8233 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8235 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8237 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8240 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8241 (*tls_local_dynamic_base_64_<mode>): Ditto.
8242 (*tls_local_dynamic_base_64_largepic): Ditto.
8243 (tls_global_dynamic_64_<mode>): Update expander pattern.
8244 (tls_local_dynamic_base_64_<mode>): Ditto.
8246 2015-07-15 Richard Biener <rguenther@suse.de>
8248 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8249 and bool_var == 1 -> bool_var simplifications ...
8250 * match.pd: ... to patterns here. Factor out negate_expr_p
8251 cases from the A - B -> A + (-B) patterns as negate_expr_p
8252 predicate and add a -(A + B) -> (-B) - A pattern.
8254 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8256 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8258 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8259 Robert Suchanek <robert.suchanek@imgtec.com>
8261 * config/mips/mips.c (mips_int_mask): New enum.
8262 (mips_shadow_set): Likewise.
8263 (int_mask): New variable.
8264 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8265 (machine_function): Add int_mask and use_shadow_register_set.
8266 (mips_attribute_table): Add attribute handlers for interrupt and
8267 use_shadow_register_set.
8268 (mips_interrupt_mask): New static function.
8269 (mips_handle_interrupt_attr): Likewise.
8270 (mips_handle_use_shadow_register_set_attr): Likewise.
8271 (mips_use_shadow_register_set): Change return type to enum
8272 mips_shadow_set. Add argument handling for use_shadow_register_set
8274 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8275 compare with mips_shadow_set enum.
8276 (mips_compute_frame_info): Add interrupt mask and
8277 use_shadow_register_set to per-function information structure.
8278 Add a stack slot for EPC unconditionally.
8279 (mips_expand_prologue): Compare use_shadow_register_set value
8280 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8281 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8282 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8283 copying the stack pointer from the shadow register set.
8284 * config/mips/mips.h (SR_IM0): New define.
8285 * config/mips/mips.md (mips_rdpgpr): Rename to...
8286 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8287 * doc/extend.texi (Declaring Attributes of Functions): Document
8288 optional arguments for interrupt and use_shadow_register_set
8291 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8293 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8294 interrupt attribute.
8295 (mips_expand_prologue): Disable the floating point unit in an ISR.
8296 * config/mips/mips.h (SR_COP1): New define.
8298 2015-07-15 Richard Biener <rguenther@suse.de>
8300 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8301 to tell how many tokens to peek ahead (default 1).
8302 (parser::eat_token, parser::eat_ident): Return token consumed.
8303 (parser::parse_result): Parse new switch statement.
8304 * match.pd: Use case statements where appropriate.
8306 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8308 PR rtl-optimization/58066
8309 * calls.c (expand_call): Precompute register parameters before stack
8310 alignment is performed.
8312 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8314 PR rtl-optimization/66838
8315 * postreload.c (reload_cse_move2add): Also process
8316 CALL_INSN_FUNCTION_USAGE when resetting information of
8317 call-clobbered registers.
8319 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8320 Cesar Philippidis <cesar@codesourcery.com>
8321 Chung-Lin Tang <cltang@codesourcery.com>
8323 * config/nios2/constraints.md (U, v): New constraints.
8324 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8325 (ldstex_memory_operand): New.
8326 * config/nios2/sync.md: New file.
8327 * config/nios2/nios2.md (unspecv): Add new builtin function
8329 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8330 (top-level): Include sync.md.
8331 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8333 (N2_BUILTINS): Add arch field setting, add new builtins.
8334 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8336 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8337 Also handle ldex/stex/ldsex/stsex builtins.
8338 (nios2_expand_rdprs_builtin): New function.
8339 (nios2_expand_cache_builtin): New function.
8340 (nios2_expand_wrpie_builtin): New function.
8341 (nios2_expand_eni_builtin): New function.
8342 (nios2_expand_builtin): Add arch field handling and new builtin
8344 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8346 * doc/md.texi (Machine Constraints): Document U and v constraints.
8348 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8349 Cesar Philippidis <cesar@codesourcery.com>
8350 Chung-Lin Tang <cltang@codesourcery.com>
8352 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8353 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8354 callee_save_reg_size and uses_anonymous_args fields.
8355 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8356 (nios2_create_cfa_notes): New function.
8357 (nios2_adjust_stack): New function for adjusting stack.
8358 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8359 Use nios2_adjust_stack.
8360 (nios2_expand_epilogue): Likewise.
8361 (nios2_expand_return): New function.
8362 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8363 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8364 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8365 * config/nios2/nios2.md (return): Use nios2_expand_return.
8367 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8368 Cesar Philippidis <cesar@codesourcery.com>
8369 Chung-Lin Tang <cltang@codesourcery.com>
8371 * config/nios2/predicates.md (pop_operation): New.
8372 (ldwm_operation, stwm_operation): New.
8373 (nios2_hard_register_operand): New.
8374 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8375 (ldstwm_operation_p): Declare.
8376 (gen_ldstwm_peep): Declare.
8377 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8378 (base_reg_adjustment_p): New.
8379 (pop_operation_p): New.
8380 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8381 (nios2_ldstwm_regset_p): New.
8382 (ldstwm_operation_p): New.
8384 (nios2_ldst_parallel): New.
8385 (struct ldswm_operand): Declare.
8386 (compare_ldstwm_operands): New.
8387 (can_use_cdx_ldstw): New.
8388 (gen_ldstwm_peep): New.
8389 * config/nios2/nios2-ldstwm.sml: New.
8390 * config/nios2/nios2.md: Include ldstwm.md.
8391 * config/nios2/ldstwm.md: Generated.
8393 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8394 Cesar Philippidis <cesar@codesourcery.com>
8395 Chung-Lin Tang <cltang@codesourcery.com>
8397 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8398 (REG_ALLOC_ORDER): Define.
8399 (ADJUST_REG_ALLOC_ORDER): Define.
8400 (HONOR_REG_ALLOC_ORDER): Define.
8401 (CDX_REG_P): Define.
8402 (ANDCLEAR_INT): Define.
8403 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8404 (nios2_label_align): Declare.
8405 (nios2_cdx_narrow_form_p): Declare.
8406 (nios2_adjust_reg_alloc_order): Declare.
8407 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8409 (nios2_large_unspec_reloc_p): New function, split from...
8410 (nios2_legitimate_pic_operand_p): ...here.
8411 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8412 (nios2_print_operand_punct_valid_p): New.
8413 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8414 (split_mem_address): New.
8415 (split_alu_insn): New.
8417 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8418 (enum nios2_add_insn_kind): New.
8419 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8420 (nios2_add_insn_classify): New.
8421 (nios2_add_insn_asm): New.
8422 (nios2_cdx_narrow_form_p): New.
8423 (label_align, min_labelno, max_labelno): New.
8425 (nios2_label_align): New.
8426 (nios2_adjust_reg_alloc_order): New.
8427 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8428 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8429 * config/nios2/constraints.md (P): New constraint.
8430 * config/nios2/predicates.md (const_and_operand): New.
8432 (stack_memory_operand): New.
8433 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8434 (length): Update to use nios2_cdx_narrow_form_p().
8435 (type): Add new insn type values.
8436 (control, alu, st, ld, shift): Update insn reservations with
8437 new insn type values.
8438 (*high, *lo_sum): Define new insn patterns for constant generation.
8439 (movqi_internal, movhi_internal, movsi_internal): Reduce
8440 alternatives, update asm template to handle CDX variants, update
8442 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8443 template, update type attributes.
8444 (extendhisi2, extendqi<mode>2): Likewise.
8445 (addsi3): Change to use function for asm string.
8446 (subsi3): Add CDX notation to asm template, update type attributes.
8447 (negsi3, one_cmplsi3): Likewise.
8448 (andsi3): New pattern, specialized from logical patterns.
8449 (<code>si3): Remove and case, combine alternatives, update asm
8451 (<shift_op>si3): Add CDX notation, update type attributes.
8452 (rotrsi3): Update type attribute.
8453 (*merge, extzv, insv): New insn patterns.
8454 (return): Change to define_expand.
8455 (simple_return): Add CDX notation, update type attributes.
8456 (indirect_jump): Add CDX notation.
8457 (jump): Update asm cases, update length attribute expression.
8458 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8459 (nios2_cbranch): Update asm cases and length attribute expression
8460 to handle CDX variants.
8461 (nios2_cmp<code>): Update asm template.
8462 (nop): Add CDX notation, update type attributes.
8463 (trap): Add CDX notation.
8464 (ctrapsi4): Update asm cases and length attribute expression to
8466 * doc/md.texi (Machine Constraints): Document P constraint.
8468 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8469 Cesar Philippidis <cesar@codesourcery.com>
8470 Chung-Lin Tang <cltang@codesourcery.com>
8472 * config/nios2/nios2.h (SMALL_INT12): New macro.
8473 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8474 (nios2_valid_addr_expr_p): Use it.
8475 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8476 with implicit "io" instructions on R2.
8477 * config/nios2/constraints.md (w): New constraint.
8478 * config/nios2/predicates.md (ldstio_memory_operand): New.
8479 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8480 operand predicate and constraint.
8481 (ld<bh>io_signed, st<bhw>io>): Likewise.
8482 * doc/md.texi (Machine Constraints): Document w constraint.
8484 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8485 Cesar Philippidis <cesar@codesourcery.com>
8486 Chung-Lin Tang <cltang@codesourcery.com>
8488 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8489 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8490 Nios II architecture level.
8491 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8492 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8493 (OPTION_DEFAULT_SPECS): Define.
8494 (ASM_SPEC): Add -march= spec strings.
8495 * config/nios2/nios2.c (nios2_option_override): Check for
8496 conflicts involving new options.
8497 * config.gcc (nios2*-*-*): Support --with-arch=.
8498 * doc/invoke.texi (Option Summary, Nios II Options): Document
8499 -march=, -mbmx, and -mcdx.
8501 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8503 PR rtl-optimization/66626
8504 * lra-constraints.c (lra_constraints): Prevent equivalence
8505 substitution for static chain pseudo in functions with nonlocal
8508 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8510 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8511 (nios2_emit_stack_limit_check): Add size parameter. Handle
8512 -fstack-limit-symbol as well as -fstack-limit-register.
8513 (nios2_expand_prologue): Emit only a single stack limit check,
8514 even if multiple stack adjustments are required.
8515 (nios2_option_override): Diagnose unsupported combination of -fpic
8516 and -stack-limit-symbol.
8518 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8520 * Makefile.in (top_srcdir): New.
8521 * configure.ac: Use AM_ZLIB.
8522 * configure: Regeneated.
8524 2015-07-14 Matthias Klose <doko@ubuntu.com>
8527 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8529 2015-07-14 Richard Biener <rguenther@suse.de>
8531 PR tree-optimization/66863
8532 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8533 what we record for conversion use stmt lhs inequalities.
8535 2015-07-14 Richard Biener <rguenther@suse.de>
8537 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8538 (decision_tree::gen_gimple): Likewise.
8540 2015-07-14 Tom de Vries <tom@codesourcery.com>
8542 * gcc.c (greater_than_spec_func): Declare forward.
8543 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8544 -ftree-parallelize-loops={0,1}.
8545 (static_spec_functions): Add greater_than_spec_func function with name
8547 (greater_than_spec_func): New function.
8549 2015-07-14 Richard Biener <rguenther@suse.de>
8551 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8552 wideing type conversion case from record_equivalences_from_incoming_edge
8553 and use record_equality to record equivalences.
8554 (record_equivalences_from_incoming_edge): Call
8555 record_temporary_equivalences.
8557 2015-07-14 Richard Biener <rguenther@suse.de>
8559 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8560 (struct if_expr): New.
8561 (struct with_expr): Likewise.
8562 (is_a_helper): Add helpers for if_expr and with_expr.
8563 (struct simplify): Add simplify_kind enum and member. Remove
8565 (simplify::simplify): Adjust.
8566 (lower_commutative): Adjust.
8567 (lower_opt_convert): Likewise.
8568 (lower_cond): Likewise.
8569 (replace_id): Handle with_expr and if_expr.
8570 (lower_for): Adjust.
8571 (dt_simplify::gen_1): New recursive worker, split out from ...
8572 (dt_simplify::gen): ... here. Deal with if and with expansion
8574 (capture_info::capture_info): Take context argument
8575 (capture_info::walk_result): Only analyze specific result.
8576 (parser::parse_result): New function.
8577 (parser::parse_simplify): Adjust to parse ifs with then end
8579 (parser::parse_if): Simplify.
8580 (parser::parse_pattern): Pass down simplify kind.
8581 * match.pd: Convert if structure to new syntax.
8583 2015-07-13 Marek Polacek <polacek@redhat.com>
8585 * rtl.c (rtx_equal_p_cb): Fix typo.
8587 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8589 * omega.h: Don't include config.h, don't include params.h again if
8590 omega.h has already been included.
8591 * graphite-poly.h: Include sese.h.
8592 * graphite.c: Don't include sese.h, remove needless includes and
8593 minimize includes outside #ifdef HAVE_isl block.
8594 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8595 and wrap entire file in #ifdef HAVE_isl
8596 * graphite-dependences.c: Likewise.
8597 * graphite-interchange.c: Likewise.
8598 * graphite-isl-ast-to-gimple.c: Likewise.
8599 * graphite-optimize-isl.c: Likewise.
8600 * graphite-poly.c: Likewise.
8601 * graphite-scop-detection.c: Likewise.
8602 * graphite-sese-to-poly.c: Likewise.
8604 2015-07-13 Tom de Vries <tom@codesourcery.com>
8606 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8608 2015-07-13 Renlin Li <renlin.li@arm.com>
8611 * simplify-rtx.c (simplify_const_relational_operation): Add
8612 side_effects_p checks.
8614 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8616 * bitmap.h: Fix double word typos.
8619 * cfgloopmanip.c: Same.
8622 * cgraphclones.c: Same.
8624 * config/aarch64/aarch64-protos.h: Same.
8625 * config/aarch64/aarch64.c: Same.
8626 * config/aarch64/aarch64.md: Same.
8627 * config/arm/arm.md: Same.
8628 * config/arm/arm1020e.md: Same.
8629 * config/arm/arm1026ejs.md: Same.
8630 * config/arm/arm926ejs.md: Same.
8631 * config/arm/fa526.md: Same.
8632 * config/arm/fa606te.md: Same.
8633 * config/arm/fa626te.md: Same.
8634 * config/arm/fa726te.md: Same.
8635 * config/arm/fmp626.md: Same.
8636 * config/darwin.c: Same.
8637 * config/epiphany/epiphany.c: Same.
8638 * config/frv/frv.c: Same.
8639 * config/ft32/ft32.c: Same.
8640 * config/gnu-user.h: Same.
8641 * config/h8300/constraints.md: Same.
8642 * config/i386/i386.c: Same.
8643 * config/i386/i386.md: Same.
8644 * config/iq2000/iq2000.md: Same.
8645 * config/mips/mips.c: Same.
8646 * config/mmix/mmix.md: Same.
8647 * config/moxie/moxie.c: Same.
8648 * config/nds32/nds32.md: Same.
8649 * config/pa/pa.h: Same.
8650 * config/rs6000/aix.h: Same.
8651 * config/rs6000/rs6000.h: Same.
8652 * config/sh/sh.c: Same.
8653 * config/tilegx/tilegx.md: Same.
8654 * config/tilepro/gen-mul-tables.cc: Same.
8657 * doc/invoke.texi: Same.
8659 * dwarf2out.c: Same.
8664 * hash-table.h: Same.
8665 * internal-fn.c: Same.
8667 * ipa-devirt.c: Same.
8670 * ipa-profile.c: Same.
8675 * reg-stack.c: Same.
8681 * tree-inline.c: Same.
8683 * tree-ssa-dom.c: Same.
8684 * tree-ssa-loop-ivopts.c: Same.
8685 * tree-ssa-structalias.c: Same.
8686 * tree-ssa-tail-merge.c: Same.
8687 * tree-ssa-ter.c: Same.
8688 * tree-ssa-threadupdate.c: Same.
8689 * tree-ssa-uninit.c: Same.
8690 * tree-ssanames.c: Same.
8691 * tree-vect-loop-manip.c: Same.
8697 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8700 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8701 tree_ssa_phiopt_worker): Call it.
8703 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8705 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8706 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8709 2015-07-11 Marek Polacek <polacek@redhat.com>
8712 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
8713 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
8714 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
8715 rather than bb_has_abnormal_call_pred.
8716 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
8717 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
8718 rather than bb_has_abnormal_call_pred.
8720 2015-07-10 Anatoly Sokolov <aesok@post.ru>
8722 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8723 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
8724 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8725 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
8726 v850_legitimate_address_p): New functions.
8727 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8729 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
8732 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
8733 indirect sibcall with register arguments if register available
8734 for argument passing.
8735 (init_cumulative_args): Set cfun->machine->arg_reg_available
8736 to (cum->nregs > 0) or to true if function has a variable
8738 (function_arg_advance_32): Set cfun->machine->arg_reg_available
8739 to false if cum->nregs <= 0.
8740 * config/i386/i386.h (machine_function): Add arg_reg_available.
8742 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8744 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
8745 and gen_higpart instead of gen_rtx_SUBREG.
8746 * config/i386/i386.md
8747 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
8748 (read-modify peephole2): Use gen_lowpart instead of
8749 gen_rtx_SUBREG for operand 5.
8751 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8753 * config/tilepro/gen-mul-tables.cc (main): Change include list for
8755 * config/tilepro/mul-tables.c: Regenerate.
8756 * config/tilegx/mul-tables.c: Regenerate.
8758 2015-07-10 Richard Biener <rguenther@suse.de>
8760 * fold-const.c (distribute_bit_expr): Remove.
8761 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8762 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8763 to A & (B | C) and simplifying A << C1 << C2 to ...
8764 * match.pd: ... patterns here.
8766 2015-07-10 Jiong Wang <jiong.wang@arm.com>
8768 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8769 Mark mem as READONLY and NOTRAP for PIC symbol.
8771 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8773 * gimple-predict.h: New file.
8774 (gimple_predict_predictor, gimple_predict_set_predictor,
8775 gimple_predict_outcome, gimple_predict_set_outcome,
8776 gimple_build_predict): Relocate here.
8777 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8778 gimple_predict_outcome, gimple_predict_set_outcome): Move to
8780 * gimple.c (gimple_build_predict): Move to gimple-predict.h
8781 * basic-block.h: Don't include cfghooks.h.
8782 * backend.h: Don't include predict.h.
8783 * cfghooks.h: Include predict.h.
8784 * gimple-pretty-print.c: Include gimple-predict.h.
8785 * gimplify.c: Likwise.
8786 * predict.c: Adjust includes.
8787 * tree-inline.c: Likewise.
8789 * auto-inc-dec.c: Likewise.
8790 * auto-profile.c: Likewise.
8791 * bb-reorder.c: Likewise.
8792 * builtins.c: Likewise.
8793 * caller-save.c: Likewise.
8794 * calls.c: Likewise.
8795 * cfganal.c: Likewise.
8796 * cfgbuild.c: Likewise.
8798 * cfgcleanup.c: Likewise.
8799 * cfgexpand.c: Likewise.
8800 * cfghooks.c: Likewise.
8801 * cfgloopanal.c: Likewise.
8802 * cfgloop.c: Likewise.
8803 * cfgloopmanip.c: Likewise.
8804 * cfgrtl.c: Likewise.
8805 * cgraph.c: Likewise.
8806 * cgraphunit.c: Likewise.
8807 * combine.c: Likewise.
8808 * cprop.c: Likewise.
8811 * dojump.c: Likewise.
8813 * except.c: Likewise.
8814 * expmed.c: Likewise.
8816 * final.c: Likewise.
8817 * fold-const.c: Likewise.
8818 * function.c: Likewise.
8819 * fwprop.c: Likewise.
8820 * gcc-plugin.h: Likewise.
8822 * genattrtab.c: Likewise.
8823 * genemit.c: Likewise.
8824 * gengtype.c: Likewise.
8825 * genopinit.c: Likewise.
8826 * genoutput.c: Likewise.
8827 * genpreds.c: Likewise.
8828 * genrecog.c: Likewise.
8829 * gimple-fold.c: Likewise.
8830 * gimple-iterator.c: Likewise.
8831 * gimple-ssa-isolate-paths.c: Likewise.
8832 * gimple-ssa-strength-reduction.c: Likewise.
8833 * graph.c: Likewise.
8834 * graphite-blocking.c: Likewise.
8835 * graphite.c: Likewise.
8836 * graphite-dependences.c: Likewise.
8837 * graphite-interchange.c: Likewise.
8838 * graphite-isl-ast-to-gimple.c: Likewise.
8839 * graphite-optimize-isl.c: Likewise.
8840 * graphite-poly.c: Likewise.
8841 * graphite-scop-detection.c: Likewise.
8842 * graphite-sese-to-poly.c: Likewise.
8843 * haifa-sched.c: Likewise.
8844 * ifcvt.c: Likewise.
8845 * internal-fn.c: Likewise.
8846 * ipa-cp.c: Likewise.
8847 * ipa-profile.c: Likewise.
8848 * ipa-split.c: Likewise.
8849 * ipa-utils.c: Likewise.
8850 * ira-build.c: Likewise.
8851 * ira-color.c: Likewise.
8852 * ira-conflicts.c: Likewise.
8853 * ira-costs.c: Likewise.
8854 * ira-emit.c: Likewise.
8855 * ira-lives.c: Likewise.
8857 * loop-doloop.c: Likewise.
8858 * loop-init.c: Likewise.
8859 * loop-invariant.c: Likewise.
8860 * loop-unroll.c: Likewise.
8861 * lower-subreg.c: Likewise.
8862 * lra-assigns.c: Likewise.
8864 * lra-coalesce.c: Likewise.
8865 * lra-constraints.c: Likewise.
8866 * lra-lives.c: Likewise.
8867 * lto-cgraph.c: Likewise.
8868 * lto-streamer-in.c: Likewise.
8869 * mode-switching.c: Likewise.
8870 * modulo-sched.c: Likewise.
8871 * omp-low.c: Likewise.
8872 * optabs.c: Likewise.
8873 * passes.c: Likewise.
8874 * postreload.c: Likewise.
8875 * postreload-gcse.c: Likewise.
8876 * profile.c: Likewise.
8877 * recog.c: Likewise.
8878 * regstat.c: Likewise.
8879 * reload1.c: Likewise.
8880 * reorg.c: Likewise.
8881 * rtlanal.c: Likewise.
8882 * sched-ebb.c: Likewise.
8883 * sel-sched-ir.c: Likewise.
8885 * shrink-wrap.c: Likewise.
8886 * simplify-rtx.c: Likewise.
8888 * store-motion.c: Likewise.
8889 * tracer.c: Likewise.
8890 * trans-mem.c: Likewise.
8891 * tree-call-cdce.c: Likewise.
8892 * tree-cfg.c: Likewise.
8893 * tree-cfgcleanup.c: Likewise.
8894 * tree-chkp.c: Likewise.
8895 * tree-complex.c: Likewise.
8896 * tree-eh.c: Likewise.
8897 * tree-if-conv.c: Likewise.
8898 * tree-loop-distribution.c: Likewise.
8899 * tree-outof-ssa.c: Likewise.
8900 * tree-parloops.c: Likewise.
8901 * tree-predcom.c: Likewise.
8902 * tree-pretty-print.c: Likewise.
8903 * tree-profile.c: Likewise.
8904 * tree-sra.c: Likewise.
8905 * tree-ssa.c: Likewise.
8906 * tree-ssa-coalesce.c: Likewise.
8907 * tree-ssa-dce.c: Likewise.
8908 * tree-ssa-dom.c: Likewise.
8909 * tree-ssa-forwprop.c: Likewise.
8910 * tree-ssa-ifcombine.c: Likewise.
8911 * tree-ssa-loop-ch.c: Likewise.
8912 * tree-ssa-loop-im.c: Likewise.
8913 * tree-ssa-loop-ivcanon.c: Likewise.
8914 * tree-ssa-loop-ivopts.c: Likewise.
8915 * tree-ssa-loop-manip.c: Likewise.
8916 * tree-ssa-loop-prefetch.c: Likewise.
8917 * tree-ssa-loop-unswitch.c: Likewise.
8918 * tree-ssa-math-opts.c: Likewise.
8919 * tree-ssa-phiopt.c: Likewise.
8920 * tree-ssa-pre.c: Likewise.
8921 * tree-ssa-reassoc.c: Likewise.
8922 * tree-ssa-sink.c: Likewise.
8923 * tree-ssa-tail-merge.c: Likewise.
8924 * tree-ssa-threadedge.c: Likewise.
8925 * tree-ssa-threadupdate.c: Likewise.
8926 * tree-switch-conversion.c: Likewise.
8927 * tree-tailcall.c: Likewise.
8928 * tree-vect-data-refs.c: Likewise.
8929 * tree-vect-loop.c: Likewise.
8930 * tree-vect-loop-manip.c: Likewise.
8931 * tree-vectorizer.c: Likewise.
8932 * tree-vrp.c: Likewise.
8933 * ubsan.c: Likewise.
8934 * value-prof.c: Likewise.
8935 * varasm.c: Likewise.
8936 * var-tracking.c: Likewise.
8937 * config/aarch64/aarch64-builtins.c: Likewise.
8938 * config/aarch64/aarch64.c: Likewise.
8939 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8940 * config/alpha/alpha.c: Likewise.
8941 * config/arc/arc.c: Likewise.
8942 * config/arm/arm.c: Likewise.
8943 * config/avr/avr.c: Likewise.
8944 * config/bfin/bfin.c: Likewise.
8945 * config/c6x/c6x.c: Likewise.
8946 * config/cr16/cr16.c: Likewise.
8947 * config/cris/cris.c: Likewise.
8948 * config/darwin.c: Likewise.
8949 * config/darwin-c.c: Likewise.
8950 * config/epiphany/epiphany.c: Likewise.
8951 * config/epiphany/mode-switch-use.c: Likewise.
8952 * config/epiphany/resolve-sw-modes.c: Likewise.
8953 * config/fr30/fr30.c: Likewise.
8954 * config/frv/frv.c: Likewise.
8955 * config/ft32/ft32.c: Likewise.
8956 * config/h8300/h8300.c: Likewise.
8957 * config/i386/i386.c: Likewise.
8958 * config/i386/winnt.c: Likewise.
8959 * config/ia64/ia64.c: Likewise.
8960 * config/iq2000/iq2000.c: Likewise.
8961 * config/lm32/lm32.c: Likewise.
8962 * config/m32c/m32c.c: Likewise.
8963 * config/m32r/m32r.c: Likewise.
8964 * config/m68k/m68k.c: Likewise.
8965 * config/mcore/mcore.c: Likewise.
8966 * config/mep/mep.c: Likewise.
8967 * config/microblaze/microblaze.c: Likewise.
8968 * config/mips/mips.c: Likewise.
8969 * config/mmix/mmix.c: Likewise.
8970 * config/mn10300/mn10300.c: Likewise.
8971 * config/moxie/moxie.c: Likewise.
8972 * config/msp430/msp430.c: Likewise.
8973 * config/nds32/nds32.c: Likewise.
8974 * config/nds32/nds32-cost.c: Likewise.
8975 * config/nds32/nds32-fp-as-gp.c: Likewise.
8976 * config/nds32/nds32-intrinsic.c: Likewise.
8977 * config/nds32/nds32-isr.c: Likewise.
8978 * config/nds32/nds32-md-auxiliary.c: Likewise.
8979 * config/nds32/nds32-memory-manipulation.c: Likewise.
8980 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8981 * config/nds32/nds32-predicates.c: Likewise.
8982 * config/nios2/nios2.c: Likewise.
8983 * config/nvptx/nvptx.c: Likewise.
8984 * config/pa/pa.c: Likewise.
8985 * config/pdp11/pdp11.c: Likewise.
8986 * config/rl78/rl78.c: Likewise.
8987 * config/rs6000/rs6000.c: Likewise.
8988 * config/rx/rx.c: Likewise.
8989 * config/s390/s390.c: Likewise.
8990 * config/sh/sh.c: Likewise.
8991 * config/sh/sh-mem.cc: Likewise.
8992 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8993 * config/sh/sh_treg_combine.cc: Likewise.
8994 * config/sparc/sparc.c: Likewise.
8995 * config/spu/spu.c: Likewise.
8996 * config/stormy16/stormy16.c: Likewise.
8997 * config/tilegx/tilegx.c: Likewise.
8998 * config/tilepro/tilepro.c: Likewise.
8999 * config/v850/v850.c: Likewise.
9000 * config/vax/vax.c: Likewise.
9001 * config/visium/visium.c: Likewise.
9002 * config/xtensa/xtensa.c: Likewise.
9004 2015-07-10 Richard Biener <rguenther@suse.de>
9006 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9007 (decision_tree::gen_gimple): Likewise.
9008 (decision_tree::gen_generic): Likewise.
9010 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9013 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9014 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9016 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9019 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9020 or ORT_TASK contexts.
9021 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9024 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9026 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9029 2015-07-10 Tom de Vries <tom@codesourcery.com>
9031 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9032 insert nit + 1 bound.
9034 2015-07-10 Richard Biener <rguenther@suse.de>
9036 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9037 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9038 (if_convertible_loop_p_1): For this always compute bb predicates.
9039 (if_convertible_loop_p): And free them.
9041 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9043 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9046 2015-07-10 Richard Biener <rguenther@suse.de>
9048 PR tree-optimization/66823
9049 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9052 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9054 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9055 to handle mips[32|64]r3 and mips[32|64]r5.
9057 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9060 * tree-nested.c (get_static_chain): Or in a flag into
9061 info->static_chain_added.
9062 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9063 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9065 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9066 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9069 PR tree-optimization/66718
9070 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9072 (vect_simd_lane_linear): New function.
9073 (vectorizable_simd_clone_call): Support using linear arguments for
9074 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9076 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9079 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9081 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9083 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9084 Use machine mode, not enum machine_mode in the prototype.
9086 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9087 classify 128-bit floating point support.
9088 (FLOAT128_IBM_P): Likewise.
9089 (FLOAT128_VECTOR_P): Likewise.
9090 (FLOAT128_2REG_P): Likewise.
9091 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9092 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9093 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9094 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9096 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9097 tests against TFmode/TDmode, since those modes do not use VSX
9099 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9101 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9102 tests against TFmode, etc.
9103 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9104 (reg_offset_addressing_ok_p): Likewise.
9105 (rs6000_legitimate_offset_address_p): Likewise.
9106 (rs6000_legitimize_address): Likewise.
9107 (rs6000_legitimize_reload_address): Likewise.
9108 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9109 TDmode to use the new helper macros, which will include IFmode and
9111 (rs6000_emit_move): Likewise.
9112 (rs6000_darwin64_record_arg_recurse): Likewise.
9113 (print_operand): Likewise.
9114 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9115 that uses a single vector register as a vector and not as a
9116 floating point register in terms of the calling sequence.
9117 (rs6000_discover_homogeneous_aggregate): Likewise.
9118 (rs6000_return_in_memory): Likewise.
9119 (init_cumulative_args): Likewise.
9120 (rs6000_function_arg_boundary): Likewise.
9121 (rs6000_function_arg_advance_1): Likewise.
9122 (rs6000_function_arg): Likewise.
9123 (rs6000_pass_by_reference): Likewise.
9124 (rs6000_gimplify_va_arg): Likewise.
9125 (rs6000_secondary_reload_memory): Use machine_mode not enum
9127 (rs6000_split_multireg_move): Use new helper macros.
9128 (spe_func_has_64bit_regs_p): Likewise.
9129 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9130 (output_toc): Use new helper macros.
9131 (rs6000_register_move_cost): Likewise.
9132 (rs6000_function_value): Add IEEE 128-bit floating point calling
9134 (rs6000_libcall_value): Likewise.
9135 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9136 floating point support.
9137 (rs6000_vector_mode_supported_p): Likewise.
9139 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9141 PR rtl-optimization/66782
9142 * lra-int.h (struct lra_insn_recog_data): Add comment about
9143 clobbered hard regs for arg_hard_regs.
9144 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9145 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9146 Add condition for processing used hard regs.
9147 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9148 Process clobbered hard regs.
9150 2015-07-09 Michael Matz <matz@suse.de>
9152 * genmatch.c (fprintf_indent): New function.
9153 (operand::gen_transform): Add indent parameter.
9154 (expr::gen_transform, c_expr::gen_transform,
9155 capture::gen_transform): Ditto and use fprintf_indent.
9156 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9157 (dt_operand::gen, dt_operand::gen_predicate,
9158 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9159 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9160 (decision_tree::gen_gimple): Adjust calls and indent generated
9162 (decision_tree::gen_generic): Ditto.
9163 (write_predicate): Ditto.
9165 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9168 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9169 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9170 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9171 {GENERAL,SSE,MMX}_REG_P where appropriate.
9173 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9175 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9176 * builtins.c: Adjust includes.
9177 * gimple.c: Likewise.
9178 * ipa-icf.c: Likewise.
9179 * lto-opts.c: Likewise.
9180 * ipa-reference.c: Likewise.
9181 * lto-section-out.c: Likewise.
9182 * lto-streamer-in.c: Likewise.
9183 * lto-streamer-out.c: Likewise.
9184 * opts-global.c: Likewise.
9185 * symtab.c: Likewise.
9186 * tree-chkp.c: Likewise.
9187 * tree-ssa-live.c: Likewise.
9188 * tree-streamer-in.c: Likewise.
9189 * tree-streamer-out.c: Likewise.
9190 * config/darwin.c: Likewise.
9191 * config/i386/winnt.c: Likewise.
9193 2015-07-09 Richard Biener <rguenther@suse.de>
9195 * genmatch.c (struct expr): Add force_single_use flag.
9196 (expr::expr): Add copy constructor.
9197 (capture_info::walk_match): Gather force_single_use captures.
9198 (expr::gen_transform): Use possibly NULLified sequence.
9199 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9200 seq if any constrained expr is not single-use.
9201 (parser::parse_expr): Refactor to allow multiple flags. Handle
9202 's' flag to force an expression have a single-use if the pattern
9203 simplifies to more than one statement.
9204 * match.pd: Convert most single_use conditionals to :s flags.
9206 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9208 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9209 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9210 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9212 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9214 * flags.h: Don't include flag-types.h or options.h.
9215 * opts-common.c: Adjust includes.
9216 * opts-global.c: Likewise.
9217 * common/config/epiphany/epiphany-common.c: Likewise.
9219 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9222 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9225 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9228 * config/i386/i386.c (ix86_return_in_memory): Return true
9229 if int_size_in_bytes returns negative for IA MCU.
9231 2015-07-09 Marek Polacek <polacek@redhat.com>
9233 PR tree-optimization/66718
9234 * Makefile.in (OBJS): Add gimple-laddress.o.
9235 * passes.def: Schedule pass_laddress.
9236 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9237 * tree-pass.h (make_pass_laddress): Declare.
9238 * gimple-laddress.c: New file.
9240 2015-07-09 Richard Biener <rguenther@suse.de>
9242 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9244 2015-07-09 Richard Biener <rguenther@suse.de>
9246 PR tree-optimization/66807
9247 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9249 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9251 * function.c (stack_protect_epilogue): Use if rather than switch for
9252 check targetm.have_stack_protect_test.
9254 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9256 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9257 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9258 * config/arc/arc.h: Likewise.
9259 * config/arm/arm.h: Likewise.
9260 * config/bfin/bfin.h: Likewise.
9261 * config/epiphany/epiphany.h: Likewise.
9262 * config/frv/frv.h: Likewise.
9263 * config/ia64/ia64.h: Likewise.
9264 * config/iq2000/iq2000.h: Likewise.
9265 * config/lm32/lm32.h: Likewise.
9266 * config/m32r/m32r.h: Likewise.
9267 * config/mcore/mcore.h: Likewise.
9268 * config/mep/mep.h: Likewise.
9269 * config/microblaze/microblaze.h: Likewise.
9270 * config/mips/mips.h: Likewise.
9271 * config/mmix/mmix.h: Likewise.
9272 * config/mn10300/mn10300.h: Likewise.
9273 * config/nds32/nds32.h: Likewise.
9274 * config/nios2/nios2.h: Likewise.
9275 * config/pa/pa.h: Likewise.
9276 * config/rl78/rl78.h: Likewise.
9277 * config/sh/sh.h: Likewise.
9278 * config/sparc/sparc.h: Likewise.
9279 * config/stormy16/stormy16.h: Likewise.
9280 * config/tilegx/tilegx.h: Likewise.
9281 * config/tilepro/tilepro.h: Likewise.
9282 * config/v850/v850.h: Likewise.
9283 * config/xtensa/xtensa.h: Likewise.
9284 * doc/tm.texi: Regenerate.
9285 * doc/tm.texi.in: Adjust.
9286 * combine.c (simplify_set): Likewise.
9287 (simplify_comparison): Likewise.
9288 * expr.c (store_constructor): Likewise.
9289 * internal-fn.c (expand_arith_overflow): Likewise.
9290 * reload.c (push_reload): Likewise.
9291 (find_reloads): Likewise.
9292 (find_reloads_subreg_address): Likewise.
9293 * reload1.c (eliminate_regs_1): Likewise.
9294 * rtlanal.c (nonzero_bits1): Likewise.
9295 (num_sign_bit_copies1): Likewise.
9296 * simplify-rtx.c (simplify_truncation): Likewise.
9298 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9300 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9301 of AUTO_INC_DEC with the preprocessor.
9302 * combine.c (combine_instructions): Likewise.
9303 (can_combine_p): Likewise.
9304 (try_combine): Likewise.
9305 * emit-rtl.c (try_split): Likewise.
9306 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9307 * lower-subreg.c (resolve_simple_move): Likewise.
9308 * lra.c (update_inc_notes): Likewise.
9309 * recog.c (asm_operand_ok): Likewise.
9310 (constrain_operands): Likewise.
9311 * regrename.c (scan_rtx_address): Likewise.
9312 * reload.c (update_auto_inc_notes): Likewise.
9313 (reg_inc_found_and_valid_p): Likewise.
9314 * reload1.c (reload): Likewise.
9315 (emit_input_reload_insns): Likewise.
9316 (delete_output_reload): Likewise.
9317 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9318 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9320 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9322 * rtl.h: Always define AUTO_INC_DEC.
9323 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9324 * combine.c (combine_instructions): Likewise.
9325 (can_combine_p): Likewise.
9326 (try_combine): Likewise.
9327 * emit-rtl.c (try_split): Likewise.
9328 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9329 * lower-subreg.c (resolve_simple_move): Likewise.
9330 * lra.c (update_inc_notes): Likewise.
9331 * recog.c (asm_operand_ok): Likewise.
9332 (constrain_operands): Likewise.
9333 * regrename.c (scan_rtx_address): Likewise.
9334 * reload.c (update_auto_inc_notes): Likewise.
9335 (find_equiv_reg): Likewise.
9336 * reload1.c (reload): Likewise.
9337 (reload_as_needed): Likewise.
9338 (choose_reload_regs): Likewise.
9339 (emit_input_reload_insns): Likewise.
9340 (delete_output_reload): Likewise.
9341 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9342 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9344 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9346 * combine.c (can_combine_def_p): Don't check the value of
9347 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9348 (combinable_i3pat): Likewise.
9349 (mark_used_regs_combine): Likewise.
9350 * regrename.c (rename_chains): Likewise.
9351 * reload.c (find_reloads_address): Likewise.
9352 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9354 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9356 * combine.c (update_rsp_from_reg_equal): Don't check if
9357 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9358 (reg_nonzero_bits_for_combine): Likewise.
9359 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9361 * config/frv/frv.h: Likewise.
9362 * config/lm32/lm32.h: Likewise.
9363 * config/mep/mep.h: Likewise.
9364 * config/mips/mips.h: Likewise.
9365 * config/rs6000/rs6000.h: Likewise.
9366 * config/sh/sh.h: Likewise.
9367 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9368 * config/tilepro/tilepro.h: Likewise.
9369 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9370 * doc/tm.texi: Regenerate.
9371 * doc/tm.texi.in: Adjust.
9372 * rtlanal.c (nonzero_bits1): Likewise.
9374 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9376 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9377 with the preprocessor.
9378 (combine_instructions): Likewise.
9379 (try_combine): Likewise.
9381 (distribute_notes): Likewise.
9383 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9385 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9387 (simplify_set): Likewise.
9388 * cse.c (cse_insn): Likewise.
9389 * fold-const.c (fold_single_bit_test): Likewise.
9390 (fold_unary_loc): Likewise.
9391 * postreload.c (reload_cse_simplify_set): Likewise.
9392 (reload_cse_simplify_operands): Likewise.
9394 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9396 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9397 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9399 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9402 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9403 __iamcu__ is defined.
9405 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9407 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9409 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9412 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9413 names from preservation.
9415 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9418 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9420 (function_arg_advance_32): Don't pass vectors in registers for
9422 (function_arg_32): Likewise.
9423 (ix86_return_in_memory): Don't return vectors in registers for
9426 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9429 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9430 hard regno live at the start of BB with incoming abnormal edges.
9431 * lra-lives.c (process_bb_lives): Ditto.
9433 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9436 * config/nvptx/mkoffload.c (main): Create an offload image only in
9437 64-bit configurations.
9439 2015-07-08 Martin Liska <mliska@suse.cz>
9442 * tree-sra.c (create_access_1): Call ctor without brackets.
9443 (create_artificial_child_access): Likewise.
9445 2015-07-08 Richard Biener <rguenther@suse.de>
9447 PR tree-optimization/66793
9448 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9449 Properly split the block after stmts ending it.
9451 2015-07-08 Richard Biener <rguenther@suse.de>
9453 PR tree-optimization/66794
9454 * passes.c (execute_function_todo): Assert that post-dominators
9456 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9457 Free post-dominators.
9459 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9461 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9464 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9466 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9467 more than or equal 8 and less than 32 when optimizing for size.
9469 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9471 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9472 COSTS_N_INSNS (1) and increment it appropriately throughout the
9475 2015-07-08 Richard Biener <rguenther@suse.de>
9477 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9479 2015-07-08 Alan Modra <amodra@gmail.com>
9481 * target.def (rtx_costs): Remove "code" param, add "mode".
9482 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9483 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9484 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9485 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9486 call. Track mode when given in rtx.
9487 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9488 (default_address_cost): Pass Pmode to rtx_cost.
9489 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9490 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9492 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9493 (notreg_cost): Add mode param. Use it.
9494 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9495 mode param and pass to set_src_cost. Update all calls.
9496 (hash_scan_set): Formatting.
9497 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9498 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9500 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9501 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9502 emit_store_flag): Update set_src_cost and rtx_cost calls.
9503 * auto-inc-dec.c (attempt_change): Likewise.
9504 * calls.c (precompute_register_parameters): Likewise.
9505 * combine.c (expand_compound_operation, make_extraction,
9506 force_to_mode, distribute_and_simplify_rtx): Likewise.
9507 * dojump.c (prefer_and_bit_test): Likewise.
9508 * dse.c (find_shift_sequence): Likewise.
9509 * expr.c (compress_float_constant): Likewise.
9510 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9511 * ifcvt.c (noce_try_sign_mask): Likewise.
9512 * loop-doloop.c (doloop_optimize): Likewise.
9513 * loop-invariant.c (create_new_invariant): Likewise.
9514 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9515 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9516 lshift_cheap_p): Likewise.
9517 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9518 try_replace_in_use, reload_cse_move2add): Likewise.
9519 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9521 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9522 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9523 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9524 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9525 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9526 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9528 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9529 * config/arc/arc.c (arc_rtx_costs): Likewise.
9530 * config/arm/arm.c (arm_rtx_costs): Likewise.
9531 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9532 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9533 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9534 * config/cris/cris.c (cris_rtx_costs): Likewise.
9535 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9536 * config/frv/frv.c (frv_rtx_costs): Likewise.
9537 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9538 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9539 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9540 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9541 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9542 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9543 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9544 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9545 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9546 * config/mep/mep.c (mep_rtx_cost): Likewise.
9547 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9548 * config/mips/mips.c (mips_rtx_costs): Likewise.
9549 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9550 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9551 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9552 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9553 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9554 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9555 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9556 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9557 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9558 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9559 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9560 * config/s390/s390.c (s390_rtx_costs): Likewise.
9561 * config/sh/sh.c (sh_rtx_costs): Likewise.
9562 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9563 * config/spu/spu.c (spu_rtx_costs): Likewise.
9564 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9565 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9566 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9567 * config/v850/v850.c (v850_rtx_costs): Likewise.
9568 * config/vax/vax.c (vax_rtx_costs): Likewise.
9569 * config/visium/visium.c (visium_rtx_costs): Likewise.
9570 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9571 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9572 "code" param, and pass as outer_code to first rtx_cost call. Pass
9573 mode to rtx_cost calls.
9574 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9576 (aarch64_rtx_costs_wrapper): Update.
9577 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9578 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9580 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9582 (avr_operand_rtx_cost): Similarly.
9583 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9584 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9585 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9586 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9587 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9588 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9590 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9591 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9592 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9593 * doc/tm.texi: Regenerate.
9595 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9597 * tree-core.h: Include symtab.h.
9598 * rtl.h: Include hard-reg-set.h but not flags.h.
9599 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9600 hard-reg-set.h is always included.
9601 * regs.h: Don't include hard-reg-set.h or rtl.h.
9602 * cfg.h: Include dominance.h.
9603 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9604 * backend.h: New. Aggregate commonly used backend header files.
9605 * gimple-ssa.h: Don't include tree-hasher.h.
9606 * ssa.h: New. Aggregate commonly used SSA header files.
9607 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9608 * sel-sched-ir.h: Flatten includes.
9609 * lra-int.h: Flatten completely.
9610 * sel-sched-dump.h: Flatten includes.
9611 * ira-int.h: Flatten includes.
9612 * gimple-streamer.h: Remove all includes.
9613 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9614 * resource.h: Flatten hard-reg-set.h and df.h.
9615 * sched-int.h: Flatten insn-arrt.h and df.h.
9616 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9617 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9618 * genattrtab.c (write_header): Adjust generated includes.
9619 * genautomata.c (main): Likewise.
9620 * genconditions.c (write-header): Likewise.
9621 * genemit.c (main): Likewise.
9622 * gengtype.c (open_base_files): Likewise.
9623 * genopinit.c (main): Likewise.
9624 * genoutput.c (output_prologue): Likewise.
9625 * genpeep.c (main): Likewise.
9626 * genpreds.c (write_insn_preds_c): Likewise.
9627 * genrecog.c (write_header): Likewise.
9628 * alias.c: Adjust includes.
9630 * attribs.c: Likewise.
9631 * auto-inc-dec.c: Likewise.
9632 * auto-profile.c: Likewise.
9633 * bb-reorder.c: Likewise.
9634 * bt-load.c: Likewise.
9635 * builtins.c: Likewise.
9636 * caller-save.c: Likewise.
9637 * calls.c: Likewise.
9640 * cfganal.c: Likewise.
9641 * cfgbuild.c: Likewise.
9642 * cfgcleanup.c: Likewise.
9643 * cfgexpand.c: Likewise.
9644 * cfghooks.c: Likewise.
9645 * cfgloop.c: Likewise.
9646 * cfgloopanal.c: Likewise.
9647 * cfgloopmanip.c: Likewise.
9648 * cfgrtl.c: Likewise.
9649 * cgraph.c: Likewise.
9650 * cgraphbuild.c: Likewise.
9651 * cgraphclones.c: Likewise.
9652 * cgraphunit.c: Likewise.
9653 * cilk-common.c: Likewise.
9654 * combine-stack-adj.c: Likewise.
9655 * combine.c: Likewise.
9656 * compare-elim.c: Likewise.
9657 * convert.c: Likewise.
9658 * coverage.c: Likewise.
9659 * cppbuiltin.c: Likewise.
9660 * cprop.c: Likewise.
9662 * cselib.c: Likewise.
9663 * data-streamer-in.c: Likewise.
9664 * data-streamer-out.c: Likewise.
9665 * data-streamer.c: Likewise.
9666 * dbxout.c: Likewise.
9669 * debug.c: Likewise.
9670 * df-core.c: Likewise.
9671 * df-problems.c: Likewise.
9672 * df-scan.c: Likewise.
9674 * dojump.c: Likewise.
9675 * dominance.c: Likewise.
9676 * domwalk.c: Likewise.
9677 * double-int.c: Likewise.
9679 * dumpfile.c: Likewise.
9680 * dwarf2asm.c: Likewise.
9681 * dwarf2cfi.c: Likewise.
9682 * dwarf2out.c: Likewise.
9683 * emit-rtl.c: Likewise.
9684 * et-forest.c: Likewise.
9685 * except.c: Likewise.
9686 * explow.c: Likewise.
9687 * expmed.c: Likewise.
9689 * final.c: Likewise.
9690 * fixed-value.c: Likewise.
9691 * fold-const.c: Likewise.
9692 * function.c: Likewise.
9693 * fwprop.c: Likewise.
9694 * gcc-plugin.h: Likewise.
9695 * gcse-common.c: Likewise.
9697 * generic-match-head.c: Likewise.
9698 * ggc-page.c: Likewise.
9699 * gimple-builder.c: Likewise.
9700 * gimple-expr.c: Likewise.
9701 * gimple-fold.c: Likewise.
9702 * gimple-iterator.c: Likewise.
9703 * gimple-low.c: Likewise.
9704 * gimple-match-head.c: Likewise.
9705 * gimple-pretty-print.c: Likewise.
9706 * gimple-ssa-isolate-paths.c: Likewise.
9707 * gimple-ssa-strength-reduction.c: Likewise.
9708 * gimple-streamer-in.c: Likewise.
9709 * gimple-streamer-out.c: Likewise.
9710 * gimple-walk.c: Likewise.
9711 * gimple.c: Likewise.
9712 * gimplify-me.c: Likewise.
9713 * gimplify.c: Likewise.
9714 * godump.c: Likewise.
9715 * graph.c: Likewise.
9716 * graphite-blocking.c: Likewise.
9717 * graphite-dependences.c: Likewise.
9718 * graphite-interchange.c: Likewise.
9719 * graphite-isl-ast-to-gimple.c: Likewise.
9720 * graphite-optimize-isl.c: Likewise.
9721 * graphite-poly.c: Likewise.
9722 * graphite-scop-detection.c: Likewise.
9723 * graphite-sese-to-poly.c: Likewise.
9724 * graphite.c: Likewise.
9725 * haifa-sched.c: Likewise.
9726 * hw-doloop.c: Likewise.
9727 * ifcvt.c: Likewise.
9728 * init-regs.c: Likewise.
9729 * internal-fn.c: Likewise.
9730 * ipa-chkp.c: Likewise.
9731 * ipa-comdats.c: Likewise.
9732 * ipa-cp.c: Likewise.
9733 * ipa-devirt.c: Likewise.
9734 * ipa-icf-gimple.c: Likewise.
9735 * ipa-icf.c: Likewise.
9736 * ipa-inline-analysis.c: Likewise.
9737 * ipa-inline-transform.c: Likewise.
9738 * ipa-inline.c: Likewise.
9739 * ipa-polymorphic-call.c: Likewise.
9740 * ipa-profile.c: Likewise.
9741 * ipa-prop.c: Likewise.
9742 * ipa-pure-const.c: Likewise.
9743 * ipa-ref.c: Likewise.
9744 * ipa-reference.c: Likewise.
9745 * ipa-split.c: Likewise.
9746 * ipa-utils.c: Likewise.
9747 * ipa-visibility.c: Likewise.
9749 * ira-build.c: Likewise.
9750 * ira-color.c: Likewise.
9751 * ira-conflicts.c: Likewise.
9752 * ira-costs.c: Likewise.
9753 * ira-emit.c: Likewise.
9754 * ira-lives.c: Likewise.
9757 * langhooks.c: Likewise.
9759 * loop-doloop.c: Likewise.
9760 * loop-init.c: Likewise.
9761 * loop-invariant.c: Likewise.
9762 * loop-iv.c: Likewise.
9763 * loop-unroll.c: Likewise.
9764 * lower-subreg.c: Likewise.
9765 * lra-assigns.c: Likewise.
9766 * lra-coalesce.c: Likewise.
9767 * lra-constraints.c: Likewise.
9768 * lra-eliminations.c: Likewise.
9769 * lra-lives.c: Likewise.
9770 * lra-remat.c: Likewise.
9771 * lra-spills.c: Likewise.
9773 * lto-cgraph.c: Likewise.
9774 * lto-compress.c: Likewise.
9775 * lto-opts.c: Likewise.
9776 * lto-section-in.c: Likewise.
9777 * lto-section-out.c: Likewise.
9778 * lto-streamer-in.c: Likewise.
9779 * lto-streamer-out.c: Likewise.
9780 * lto-streamer.c: Likewise.
9782 * mode-switching.c: Likewise.
9783 * modulo-sched.c: Likewise.
9784 * omega.c: Likewise.
9785 * omp-low.c: Likewise.
9786 * optabs.c: Likewise.
9787 * opts-global.c: Likewise.
9788 * passes.c: Likewise.
9789 * plugin.c: Likewise.
9790 * postreload-gcse.c: Likewise.
9791 * postreload.c: Likewise.
9792 * predict.c: Likewise.
9793 * print-rtl.c: Likewise.
9794 * print-tree.c: Likewise.
9795 * profile.c: Likewise.
9797 * realmpfr.c: Likewise.
9798 * recog.c: Likewise.
9800 * reg-stack.c: Likewise.
9801 * regcprop.c: Likewise.
9802 * reginfo.c: Likewise.
9803 * regrename.c: Likewise.
9804 * regstat.c: Likewise.
9805 * reload.c: Likewise.
9806 * reload1.c: Likewise.
9807 * reorg.c: Likewise.
9808 * resource.c: Likewise.
9809 * rtl-chkp.c: Likewise.
9810 * rtlanal.c: Likewise.
9811 * rtlhooks.c: Likewise.
9812 * sanopt.c: Likewise.
9813 * sched-deps.c: Likewise.
9814 * sched-ebb.c: Likewise.
9815 * sched-rgn.c: Likewise.
9816 * sched-vis.c: Likewise.
9817 * sdbout.c: Likewise.
9818 * sel-sched-dump.c: Likewise.
9819 * sel-sched-ir.c: Likewise.
9820 * sel-sched.c: Likewise.
9822 * shrink-wrap.c: Likewise.
9823 * simplify-rtx.c: Likewise.
9824 * stack-ptr-mod.c: Likewise.
9826 * stor-layout.c: Likewise.
9827 * store-motion.c: Likewise.
9828 * stringpool.c: Likewise.
9829 * symtab.c: Likewise.
9830 * target-globals.c: Likewise.
9831 * targhooks.c: Likewise.
9832 * toplev.c: Likewise.
9833 * tracer.c: Likewise.
9834 * trans-mem.c: Likewise.
9835 * tree-affine.c: Likewise.
9836 * tree-browser.c: Likewise.
9837 * tree-call-cdce.c: Likewise.
9838 * tree-cfg.c: Likewise.
9839 * tree-cfgcleanup.c: Likewise.
9840 * tree-chkp-opt.c: Likewise.
9841 * tree-chkp.c: Likewise.
9842 * tree-chrec.c: Likewise.
9843 * tree-complex.c: Likewise.
9844 * tree-data-ref.c: Likewise.
9845 * tree-dfa.c: Likewise.
9846 * tree-diagnostic.c: Likewise.
9847 * tree-dump.c: Likewise.
9848 * tree-eh.c: Likewise.
9849 * tree-emutls.c: Likewise.
9850 * tree-if-conv.c: Likewise.
9851 * tree-inline.c: Likewise.
9852 * tree-into-ssa.c: Likewise.
9853 * tree-iterator.c: Likewise.
9854 * tree-loop-distribution.c: Likewise.
9855 * tree-nested.c: Likewise.
9856 * tree-nrv.c: Likewise.
9857 * tree-object-size.c: Likewise.
9858 * tree-outof-ssa.c: Likewise.
9859 * tree-parloops.c: Likewise.
9860 * tree-phinodes.c: Likewise.
9861 * tree-predcom.c: Likewise.
9862 * tree-pretty-print.c: Likewise.
9863 * tree-profile.c: Likewise.
9864 * tree-scalar-evolution.c: Likewise.
9865 * tree-sra.c: Likewise.
9866 * tree-ssa-address.c: Likewise.
9867 * tree-ssa-alias.c: Likewise.
9868 * tree-ssa-ccp.c: Likewise.
9869 * tree-ssa-coalesce.c: Likewise.
9870 * tree-ssa-copy.c: Likewise.
9871 * tree-ssa-copyrename.c: Likewise.
9872 * tree-ssa-dce.c: Likewise.
9873 * tree-ssa-dom.c: Likewise.
9874 * tree-ssa-dse.c: Likewise.
9875 * tree-ssa-forwprop.c: Likewise.
9876 * tree-ssa-ifcombine.c: Likewise.
9877 * tree-ssa-live.c: Likewise.
9878 * tree-ssa-loop-ch.c: Likewise.
9879 * tree-ssa-loop-im.c: Likewise.
9880 * tree-ssa-loop-ivcanon.c: Likewise.
9881 * tree-ssa-loop-ivopts.c: Likewise.
9882 * tree-ssa-loop-manip.c: Likewise.
9883 * tree-ssa-loop-niter.c: Likewise.
9884 * tree-ssa-loop-prefetch.c: Likewise.
9885 * tree-ssa-loop-unswitch.c: Likewise.
9886 * tree-ssa-loop.c: Likewise.
9887 * tree-ssa-math-opts.c: Likewise.
9888 * tree-ssa-operands.c: Likewise.
9889 * tree-ssa-phiopt.c: Likewise.
9890 * tree-ssa-phiprop.c: Likewise.
9891 * tree-ssa-pre.c: Likewise.
9892 * tree-ssa-propagate.c: Likewise.
9893 * tree-ssa-reassoc.c: Likewise.
9894 * tree-ssa-sccvn.c: Likewise.
9895 * tree-ssa-scopedtables.c: Likewise.
9896 * tree-ssa-sink.c: Likewise.
9897 * tree-ssa-strlen.c: Likewise.
9898 * tree-ssa-structalias.c: Likewise.
9899 * tree-ssa-tail-merge.c: Likewise.
9900 * tree-ssa-ter.c: Likewise.
9901 * tree-ssa-threadedge.c: Likewise.
9902 * tree-ssa-threadupdate.c: Likewise.
9903 * tree-ssa-uncprop.c: Likewise.
9904 * tree-ssa-uninit.c: Likewise.
9905 * tree-ssa.c: Likewise.
9906 * tree-ssanames.c: Likewise.
9907 * tree-stdarg.c: Likewise.
9908 * tree-streamer-in.c: Likewise.
9909 * tree-streamer-out.c: Likewise.
9910 * tree-streamer.c: Likewise.
9911 * tree-switch-conversion.c: Likewise.
9912 * tree-tailcall.c: Likewise.
9913 * tree-vect-data-refs.c: Likewise.
9914 * tree-vect-generic.c: Likewise.
9915 * tree-vect-loop-manip.c: Likewise.
9916 * tree-vect-loop.c: Likewise.
9917 * tree-vect-patterns.c: Likewise.
9918 * tree-vect-slp.c: Likewise.
9919 * tree-vect-stmts.c: Likewise.
9920 * tree-vectorizer.c: Likewise.
9921 * tree-vrp.c: Likewise.
9924 * ubsan.c: Likewise.
9925 * valtrack.c: Likewise.
9926 * value-prof.c: Likewise.
9927 * var-tracking.c: Likewise.
9928 * varasm.c: Likewise.
9929 * varpool.c: Likewise.
9930 * vmsdbgout.c: Likewise.
9931 * vtable-verify.c: Likewise.
9933 * wide-int.cc: Likewise.
9934 * xcoffout.c: Likewise.
9935 * config/aarch64/aarch64-builtins.c: Likewise.
9936 * config/aarch64/aarch64.c: Likewise.
9937 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9938 * config/alpha/alpha.c: Likewise.
9939 * config/arc/arc.c: Likewise.
9940 * config/arm/aarch-common.c: Likewise.
9941 * config/arm/arm-builtins.c: Likewise.
9942 * config/arm/arm-c.c: Likewise.
9943 * config/arm/arm.c: Likewise.
9944 * config/avr/avr-c.c: Likewise.
9945 * config/avr/avr-log.c: Likewise.
9946 * config/avr/avr.c: Likewise.
9947 * config/bfin/bfin.c: Likewise.
9948 * config/c6x/c6x.c: Likewise.
9949 * config/cr16/cr16.c: Likewise.
9950 * config/cris/cris.c: Likewise.
9951 * config/darwin-c.c: Likewise.
9952 * config/darwin.c: Likewise.
9953 * config/epiphany/epiphany.c: Likewise.
9954 * config/epiphany/mode-switch-use.c: Likewise.
9955 * config/epiphany/resolve-sw-modes.c: Likewise.
9956 * config/fr30/fr30.c: Likewise.
9957 * config/frv/frv.c: Likewise.
9958 * config/ft32/ft32.c: Likewise.
9959 * config/h8300/h8300.c: Likewise.
9960 * config/i386/i386-c.c: Likewise.
9961 * config/i386/i386.c: Likewise.
9962 * config/i386/msformat-c.c: Likewise.
9963 * config/i386/winnt-cxx.c: Likewise.
9964 * config/i386/winnt-stubs.c: Likewise.
9965 * config/i386/winnt.c: Likewise.
9966 * config/ia64/ia64-c.c: Likewise.
9967 * config/ia64/ia64.c: Likewise.
9968 * config/iq2000/iq2000.c: Likewise.
9969 * config/lm32/lm32.c: Likewise.
9970 * config/m32c/m32c-pragma.c: Likewise.
9971 * config/m32c/m32c.c: Likewise.
9972 * config/m32r/m32r.c: Likewise.
9973 * config/m68k/m68k.c: Likewise.
9974 * config/mcore/mcore.c: Likewise.
9975 * config/mep/mep-pragma.c: Likewise.
9976 * config/mep/mep.c: Likewise.
9977 * config/microblaze/microblaze-c.c: Likewise.
9978 * config/microblaze/microblaze.c: Likewise.
9979 * config/mips/mips.c: Likewise.
9980 * config/mmix/mmix.c: Likewise.
9981 * config/mn10300/mn10300.c: Likewise.
9982 * config/moxie/moxie.c: Likewise.
9983 * config/msp430/msp430-c.c: Likewise.
9984 * config/msp430/msp430.c: Likewise.
9985 * config/nds32/nds32-cost.c: Likewise.
9986 * config/nds32/nds32-fp-as-gp.c: Likewise.
9987 * config/nds32/nds32-intrinsic.c: Likewise.
9988 * config/nds32/nds32-isr.c: Likewise.
9989 * config/nds32/nds32-md-auxiliary.c: Likewise.
9990 * config/nds32/nds32-memory-manipulation.c: Likewise.
9991 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9992 * config/nds32/nds32-predicates.c: Likewise.
9993 * config/nds32/nds32.c: Likewise.
9994 * config/nios2/nios2.c: Likewise.
9995 * config/nvptx/nvptx.c: Likewise.
9996 * config/pa/pa.c: Likewise.
9997 * config/pdp11/pdp11.c: Likewise.
9998 * config/rl78/rl78-c.c: Likewise.
9999 * config/rl78/rl78.c: Likewise.
10000 * config/rs6000/rs6000-c.c: Likewise.
10001 * config/rs6000/rs6000.c: Likewise.
10002 * config/rx/rx.c: Likewise.
10003 * config/s390/s390-c.c: Likewise.
10004 * config/s390/s390.c: Likewise.
10005 * config/sh/sh-c.c: Likewise.
10006 * config/sh/sh-mem.cc: Likewise.
10007 * config/sh/sh.c: Likewise.
10008 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10009 * config/sh/sh_treg_combine.cc: Likewise.
10010 * config/sol2-c.c: Likewise.
10011 * config/sol2-cxx.c: Likewise.
10012 * config/sol2-stubs.c: Likewise.
10013 * config/sol2.c: Likewise.
10014 * config/sparc/sparc-c.c: Likewise.
10015 * config/sparc/sparc.c: Likewise.
10016 * config/spu/spu-c.c: Likewise.
10017 * config/spu/spu.c: Likewise.
10018 * config/stormy16/stormy16.c: Likewise.
10019 * config/tilegx/mul-tables.c: Likewise.
10020 * config/tilegx/tilegx-c.c: Likewise.
10021 * config/tilegx/tilegx.c: Likewise.
10022 * config/tilepro/mul-tables.c: Likewise.
10023 * config/tilepro/tilepro-c.c: Likewise.
10024 * config/tilepro/tilepro.c: Likewise.
10025 * config/v850/v850-c.c: Likewise.
10026 * config/v850/v850.c: Likewise.
10027 * config/vax/vax.c: Likewise.
10028 * config/visium/visium.c: Likewise.
10029 * config/vms/vms-c.c: Likewise.
10030 * config/vms/vms.c: Likewise.
10031 * config/vxworks.c: Likewise.
10032 * config/xtensa/xtensa.c: Likewise.
10034 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10036 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10037 Remove operand constraints. Change operand 2 predicate to
10038 nonmemory operand. Limit const_int values to mode bitsize. Only
10039 allow const_int values less than 32 when optimizing for size.
10040 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10041 Remove operand constraints.
10042 (*bt<mode>): Use SImode for const_int values less than 32.
10043 (regmode): Remove mode attribute.
10045 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10047 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10048 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10049 moxie_legitimate_address_p): New functions.
10050 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10052 2015-07-07 Tom de Vries <tom@codesourcery.com>
10054 PR tree-optimization/66642
10055 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10056 header comment. Rename split_edge variable to edge_at_split. Split
10057 exit edge to create new loop exit bb. Insert loop exit phis in new
10060 2015-07-07 Tom de Vries <tom@codesourcery.com>
10062 * tree-cfg.c (get_virtual_phi): New function.
10063 * tree-cfg.h (get_virtual_phi): Declare.
10064 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10065 (rewrite_virtuals_into_loop_closed_ssa): New function.
10066 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10068 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10069 (transform_to_exit_first_loop_alt): Use
10070 rewrite_virtuals_into_loop_closed_ssa.
10072 2015-07-07 Richard Biener <rguenther@suse.de>
10074 * fold-const.c (fold_binary_loc): Move
10075 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10076 * match.pd: ... here.
10077 Add (X * C1) % C2 -> 0 simplification pattern derived from
10080 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10083 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10084 change for target/65249.
10086 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10088 * symtab.c (address_matters_1): Fix typo in comment above.
10089 (can_increase_alignment_p): Likewise.
10091 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10093 * function.c (free_after_compilation): Clear PROP_cfg in
10094 f->curr_properties.
10096 2015-07-07 Richard Biener <rguenther@suse.de>
10098 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10100 (add_control_edge): Remove excessive vertical space in dumping.
10101 (process_ssa_edge_worklist): Simulate at most one statement and
10102 return whether we did. Do not simulate PHIs if they are in a
10103 BB not yet simulated.
10104 (ssa_propagate): Adjust to always drain the BB worklist whenever
10105 a BB is available there, likewise the VARYING edges list before
10106 the interesting edge list.
10108 2015-07-07 Christian Bruel <christian.bruel@st.com>
10111 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10113 2015-07-07 Richard Biener <rguenther@suse.de>
10115 PR middle-end/66739
10116 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10119 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10121 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10122 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10123 Copy operand 0 to a temporary if !ext_register_operand. Remove
10124 ancient extract_bit_field workaround.
10125 (insv<mode>_1): Rename from mov<mode>_insv_1.
10126 (*insvqi): Rename from *movqi_insv_2.
10127 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10128 for renamed insvsi_1.
10129 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10131 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10133 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10134 call to nvptx_reorg_subreg.
10136 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10138 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10139 * graphite-dependencies.c, graphite-interchange.c,
10140 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10141 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10144 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10146 * match.pd: Remove element_mode inside HONOR_*.
10147 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10148 (~X | X -> -1, ~X ^ X -> -1): Merge.
10149 * tree.c (build_each_one_cst): New function.
10150 * tree.h (build_each_one_cst): Likewise.
10152 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10154 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10157 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10159 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10160 * config/mips/mips.opt (mfused-madd): Remove.
10161 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10162 * config/mips/mips.h (TARGET_MIPS8000): New.
10163 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10164 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10165 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10166 (ISA_HAS_NMADD4_NMSUB4): Remove.
10167 (ISA_HAS_NMADD3_NMSUB3): Remove.
10168 (ISA_HAS_FUSED_MADD4): New.
10169 (ISA_HAS_UNFUSED_MADD4): New.
10170 (ISA_HAS_FUSED_MADDF): New.
10171 (ISA_HAS_FUSED_MADD3): New.
10172 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10173 (*fma<mode>4_madd3) New.
10174 (*fma<mode>4_madd4) New.
10175 (*fma<mode>4_maddf) New.
10177 (*fms<mode>4_msub3) New.
10178 (*fms<mode>4_msub4) New.
10180 (*fnma<mode>4_nmadd3) New.
10181 (*fnma<mode>4_nmadd4) New.
10183 (*fnms<mode>4_nmsub3) New.
10184 (*fnms<mode>4_nmsub4) New.
10185 (*madd4<mode>) Modify to be unfused only.
10186 (*msub4<mode>) Modify to be unfused only.
10187 (*nmadd4<mode>) Modify to be unfused only.
10188 (*nmsub4<mode>) Modify to be unfused only.
10189 (*madd3<mode>) Remove.
10190 (*msub3<mode>) Remove.
10191 (*nmadd3<mode>) Remove.
10192 (*nmsub3<mode>) Remove.
10193 (*nmadd3<mode>_fastmath) Remove.
10194 (*nmsub3<mode>_fastmath) Remove.
10195 (*nmadd4<mode>_fastmath) Update condition.
10196 (*nmsub4<mode>_fastmath) Update condition.
10198 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10201 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10202 alignment attribute, exploring one level down for records and arrays.
10204 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10206 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10207 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10208 Copy operand 1 to a temporary if !ext_register_operand. Remove
10209 ancient extract_bit_field workaround.
10210 (*extv<mode>): Rename from *mov<mode>_extv_1.
10211 (*extvqi): Rename from *movqi_extv_1.
10212 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10213 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10214 to a temporary if !ext_register_operand. Remove ancient
10215 extract_bit_field workaround.
10216 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10217 (*extzvqi): Rename from *movqi_extzv_2.
10218 (*testqi_ext_3): Remove modes from const_int_operand predicated
10219 operands. Add "n" constraint.
10220 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10221 operand. Add "J" constraint.
10222 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10223 const_0_to_63 predicated operand.
10224 (regmode): New insn attribute.
10225 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10226 to nonmemory_operand. Use regmode insn attribute.
10227 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10228 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10229 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10230 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10231 operands. Use "N" constraint instead of "n".
10233 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10235 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10237 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10240 * config/i386/i386.c (iamcu_cost): New.
10241 (m_IAMCU): Likewise.
10242 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10243 (processor_target_table): Add an entry for "iamcu".
10244 (processor_alias_table): Likewise.
10245 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10246 (ix86_adjust_cost): Likewise.
10247 (ia32_multipass_dfa_lookahead): Likewise.
10248 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10249 * config/i386/x86-tune.def: Updated for m_IAMCU.
10251 2015-07-06 Richard Biener <rguenther@suse.de>
10253 PR tree-optimization/66772
10254 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10255 values are available in the PHI node BB when there are
10256 still unexecutable edges.
10258 2015-07-06 Richard Biener <rguenther@suse.de>
10260 PR tree-optimization/66767
10261 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10262 Make sure to build the alignment test on a SSA name without
10263 final alignment info valid only if the alignment test
10266 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10269 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10270 loop start when inserting LSETUP.
10272 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10275 * config/i386/i386.c (ix86_option_override_internal): Allow
10276 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10278 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10280 * read-md.c (decimal_string): Rename to ...
10281 (md_decimal_string): ... this.
10282 (handle_enum): Reflect this.
10284 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10287 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10289 2015-07-06 Richard Biener <rguenther@suse.de>
10291 PR middle-end/66759
10292 * match.pd: Add missing constraint of y to REAL_CST in
10293 REAL_CST - x CMP y to y - CST CMP x simplification.
10295 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10297 PR tree-optimization/66757
10298 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10300 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10301 Sandra Loosemore <sandra@codesourcery.com>
10303 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10304 Delete extern declaration.
10305 (gprel_constant_p): Add extern declaration.
10306 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10307 instead of nios2_symbol_ref_in_small_data_p.
10308 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10309 (nios2_symbol_ref_in_small_data_p): Make static.
10310 (gprel_constant_p): Make non-static.
10312 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10314 * doc/fragments.texi (Target Fragment): Convert debian.org
10316 * doc/install.texi (Configuration): Ditto.
10318 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10320 PR tree-optimization/66718
10321 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10322 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10324 PR tree-optimization/66718
10325 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10326 vectorizable_load, vectorizable_condition): Move vectype,
10327 nunits, ncopies computation after checking what kind of statement
10330 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10332 * target-insns.def (extv, extzv, insv): New targetm instruction
10334 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10336 * recog.c (simplify_while_replacing): Likewise.
10338 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10340 * target-insns.def (doloop_begin, doloop_end): New targetm
10341 instruction patterns.
10342 * loop-init.c: Include target.h.
10343 (pass_loop2::gate): Use the new targetm patterns instead of
10344 HAVE_*/gen_* interface.
10345 (pass_rtl_doloop::gate): Likewise.
10346 (pass_rtl_doloop::execute): Remove preprocessor condition.
10347 * hw-doloop.c: Build unconditionally.
10348 * loop-doloop.c: Likewise.
10349 (doloop_optimize): Use the new targetm patterns instead of
10350 HAVE_*/gen_* interface.
10351 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10352 * modulo-sched.c (doloop_register_get): Likewise.
10354 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10356 * target-insns.def (clear_cache): New targetm instruction pattern.
10357 * builtins.c (expand_builtin___clear_cache): Use it instead of
10358 HAVE_*/gen_* interface.
10360 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10362 * target-insns.def (allocate_stack, check_stack, probe_stack)
10363 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10364 New targetm instruction patterns.
10365 * explow.c (allocate_dynamic_stack_space): Use them instead of
10366 HAVE_*/gen_* interface.
10367 (emit_stack_probe): Likewise.
10368 (probe_stack_range): Likewise.
10369 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10371 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10373 * target-insns.def (stack_protect_set, stack_protect_test): New
10374 targetm instruction patterns.
10375 * cfgexpand.c (stack_protect_prologue): Use them instead of
10376 HAVE_*/gen_* interface.
10377 * function.c (stack_protect_epilogue): Likewise.
10379 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10381 * expr.h (gen_move_insn_uncast): Delete.
10382 * expr.c (gen_move_insn_uncast): Delete.
10384 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10386 * target-insns.def (restore_stack_block, restore_stack_function)
10387 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10388 (save_stack_nonlocal): New targetm instruction patterns.
10389 * builtins.c (expand_builtin_apply): Use them instead of
10390 HAVE_*/gen_* interface.
10391 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10393 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10395 * target-insns.def (trap): New targetm instruction pattern.
10396 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10398 * explow.c (allocate_dynamic_stack_space): Likewise.
10399 * ifcvt.c (find_if_header): Likewise.
10401 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10403 * target-insns.def (prefetch): New targetm instruction pattern.
10404 * tree-ssa-loop-prefetch.c: Include targeth.
10405 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10406 of HAVE_*/gen_* interface.
10407 * builtins.c (expand_builtin_prefetch): Likewise.
10408 * toplev.c (process_options): Likewise.
10410 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10412 * target-insns.def (untyped_call, untyped_return): New targetm
10413 instruction patterns.
10414 * builtins.c (expand_builtin_apply): Use them instead of
10415 HAVE_*/gen_* interface.
10416 (result_vector): Define unconditionally.
10418 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10420 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10421 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10422 (nonlocal_goto_receiver): New targetm instruction patterns.
10423 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10424 of HAVE_*/gen_* interface.
10425 (expand_builtin_setjmp_receiver): Likewise.
10426 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10427 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10429 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10431 * target.def: Add code_for_* hooks.
10432 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10433 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10434 * target-insns.def (casesi, tablejump): New targetm instruction
10436 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10437 (do_tablejump): Likewise.
10438 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10439 (expand_sjlj_dispatch_table): Likewise.
10440 * targhooks.c (default_case_values_threshold): Likewise.
10442 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10444 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10445 Use rtx_insn * instead of rtx.
10446 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10447 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10448 (nios2_call_tls_get_addr): Likewise.
10449 (nios2_emit_expensive_div): Likewise.
10450 (nios2_emit_move_sequence): Change return type to bool.
10451 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10452 Change return type to bool.
10454 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10457 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10459 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10462 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10463 of register_operand. Remove constraint.
10465 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10467 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10468 the first argument.
10470 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10472 * attribs.c (decl_attributes): Guard inform with the return value
10473 of the preceding warning.
10475 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10477 * doc/invoke.texi (moverride): Move to correct section.
10479 2015-07-03 Richard Biener <rguenther@suse.de>
10481 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10483 (dt_operand::gen_gimple_expr): After valueizing operands
10484 re-canonicalize operand order for commutative tree codes.
10486 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10489 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10491 (__crc32w): Likewise.
10492 (__crc32d): Likewise.
10493 (__rdpmc): Likewise.
10494 (__rdtscp): Likewise.
10495 (_rdpmc): Likewise.
10496 (_rdtscp): Likewise.
10497 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10500 2015-07-03 Richard Biener <rguenther@suse.de>
10502 * fold-const.c (fold_mathfn_compare): Remove.
10503 (fold_inf_compare): Likewise.
10504 (fold_comparison): Move floating point comparison simplifications...
10505 * match.pd: ... to patterns here. Introduce simple_comparisons
10506 operator list and use it for patterns formerly in fold_comparison.
10508 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10510 PR tree-optimization/66119
10511 * toplev.c (process_options): Don't set up default values for
10512 the sra_max_scalarization_size_{speed,size} parameters.
10513 * tree-sra (analyze_all_variable_accesses): If no values
10514 have been set for the sra_max_scalarization_size_{speed,size}
10515 parameters, call get_move_ratio to get target defaults.
10517 2015-07-03 Richard Biener <rguenther@suse.de>
10519 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10520 * match.pd: ... here.
10522 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10525 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10526 is not actually the default on FreeBSD.
10528 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10530 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10532 (CMPGE_8HI): Likewise.
10533 (CMPGE_4SI): Likewise.
10534 (CMPGE_2DI): Likewise.
10535 (CMPGE_U16QI): Likewise.
10536 (CMPGE_U8HI): Likewise.
10537 (CMPGE_U4SI): Likewise.
10538 (CMPGE_U2DI): Likewise.
10539 (CMPLE_16QI): Likewise.
10540 (CMPLE_8HI): Likewise.
10541 (CMPLE_4SI): Likewise.
10542 (CMPLE_2DI): Likewise.
10543 (CMPLE_U16QI): Likewise.
10544 (CMPLE_U8HI): Likewise.
10545 (CMPLE_U4SI): Likewise.
10546 (CMPLE_U2DI): Likewise.
10547 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10548 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10549 ALTIVEC_BUILTIN_VEC_CMPLE.
10550 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10551 floating-point vector modes.
10552 (vector_nlt<mode>): New define_expand.
10553 (vector_nltu<mode>): Likewise.
10554 (vector_ngt<mode>): Likewise.
10555 (vector_ngtu<mode>): Likewise.
10557 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10559 PR rtl-optimization/66706
10560 * combine.c (make_compound_operation): If an AND of SUBREG of
10561 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10563 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10565 * tree-pass.h (make_pass_ch_vect): New.
10566 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10568 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10569 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10570 make_pass_ch_vect): New.
10571 (pass_ch): Extend ch_base.
10573 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10574 (ch_base::copy_headers): ...here.
10576 2015-07-02 Richard Biener <rguenther@suse.de>
10578 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10579 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10580 (fold_binary_loc): Implement (T)ptr & CST in terms of
10581 get_pointer_alignment_1.
10582 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10583 Make sure to build the alignment test on a SSA name without
10584 final alignment info valid only after the prologue.
10586 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10588 * config/cris/cris.md ("epilogue"): Remove condition.
10589 ("prologue"): Ditto.
10591 2015-07-02 Richard Biener <rguenther@suse.de>
10593 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10594 parameter to record a condition that is false.
10595 (record_conditions): When recording an extra NE_EXPR that is
10596 true also record a EQ_EXPR that is false.
10598 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10600 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10601 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10602 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10603 (set_iv, find_interesting_uses_address, add_candidate_1): New
10604 argument to alloc_iv.
10605 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10606 duplicate struct iv.
10607 (free_loop_data): Don't free struct iv explicitly.
10608 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10610 2015-07-01 DJ Delorie <dj@redhat.com>
10612 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10614 (SUPPORTS_DISCRIMINATOR): Define.
10616 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10619 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10620 there are no CALLs in the same pattern.
10622 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10624 PR rtl-optimization/61047
10625 * rtlanal.c (get_initial_register_offset): New function.
10626 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10628 2015-07-01 Richard Biener <rguenther@suse.de>
10630 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10631 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10632 ~X CMP C -> X CMP' ~C to ...
10633 * match.pd: ... patterns here.
10635 2015-07-01 Nick Clifton <nickc@redhat.com>
10637 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10638 a 16-bit value into a 20-bit memory slot.
10640 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10642 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10643 "aarch64_tiny", "aarch64_small", "aarch64_large",
10644 "aarch64_little_endian", "aarch64_big_endian".
10646 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10648 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10649 Document "aarch64_small_fpic".
10651 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10653 * configure.ac: Add check for aarch64 assembler -fpic relocation
10655 * configure: Regenerate.
10656 * config.in: Regenerate.
10657 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10658 to -fPIC if not support of -fpic relocation modifier in assembler.
10660 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10663 * rtl.c (classify_insn): Handle returns in PARALLELs.
10665 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10667 PR middle-end/66633
10668 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10669 to true if the function is nested and if not optimizing.
10670 (convert_local_omp_clauses): Initialize need_frame to true if the
10671 function contains nested functions and if not optimizing.
10673 2015-07-01 Richard Biener <rguenther@suse.de>
10675 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10676 (X & Y) ^ Y -> ~X & Y transforms to ...
10677 * match.pd: ... here.
10679 2015-07-01 Richard Biener <rguenther@suse.de>
10681 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10682 of converts to avoid uninteresting noise from the conversion
10683 simplifying patterns.
10685 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10687 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10688 gcc_assert evaluating its argument for side-effect.
10690 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10693 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10696 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10698 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10699 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10700 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10701 to the inner DFS walk.
10703 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10705 * target-insns.def (jump): New targetm instruction pattern.
10706 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10707 instead of gen_jump.
10708 (fix_up_crossing_landing_pad): Likewise.
10709 (add_labels_and_missing_jumps): Likewise.
10710 (fix_crossing_conditional_branches): Likewise.
10711 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10712 (force_nonfallthru_and_redirect): Likewise.
10713 * cse.c (cse_insn): Likewise.
10714 * expmed.c (expand_divmod): Likewise.
10715 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
10716 * haifa-sched.c (init_before_recovery): Likewise.
10717 (sched_create_recovery_edges): Likewise.
10718 * ifcvt.c (find_cond_trap): Likewise.
10719 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
10720 (expand_float, expand_fix): Likewise.
10721 * stmt.c (emit_jump): Likewise.
10723 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10725 * defaults.h (HAVE_load_multiple, gen_load_multiple)
10726 (HAVE_store_multiple, gen_store_multiple): Delete.
10727 * target-insns.def (load_multiple, store_multiple): New targetm
10728 instruction patterns.
10729 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
10730 of HAVE_*/gen_* interface.
10732 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10734 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
10735 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
10736 (gen_mem_signal_fence): Delete.
10737 * target-insns.def (mem_signal_fence, mem_thread_fence)
10738 (memory_barrier): New targetm instruction patterns.
10739 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10741 (expand_mem_signal_fence): Likewise.
10743 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10745 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
10746 * target-insns.def (epilogue, prologue, sibcall_prologue): New
10747 targetm instruction patterns.
10748 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
10750 * calls.c (expand_call): Likewise.
10751 * cfgrtl.c (cfg_layout_finalize): Likewise.
10752 * df-scan.c (df_get_entry_block_def_set): Likewise.
10753 (df_get_exit_block_use_set): Likewise.
10754 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
10755 * final.c (final_start_function): Likewise.
10756 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10757 (reposition_prologue_and_epilogue_notes): Likewise.
10758 * reorg.c (find_end_label): Likewise.
10759 * toplev.c (process_options): Likewise.
10761 2015-06-30 David Malcolm <dmalcolm@redhat.com>
10763 * typed-splay-tree.h: New file.
10765 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
10768 * lra-int.h (lra_substitute_pseudo): Add a parameter.
10769 (lra_substitute_pseudo_within_insn): Ditto.
10770 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
10772 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
10773 to lra_substitute_pseudo.
10774 * lra-lives.c (process_bb_lives): Add an argument to
10775 lra_substitute_pseudo_within_insn call.
10776 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10777 argument to lra_substitute_pseudo and
10778 lra_substitute_pseudo_within_insn calls.
10779 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10781 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10783 * configure: Regenerated.
10785 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10787 * config.gcc: Support i[34567]86-*-elfiamcu target.
10788 * config/i386/iamcu.h: New.
10789 * config/i386/i386.opt: Add -miamcu.
10790 * doc/invoke.texi: Document -miamcu.
10791 * common/config/i386/i386-common.c (ix86_handle_option): Turn
10792 off x87/MMX/SSE/AVX codegen for -miamcu.
10793 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10794 __iamcu/__iamcu__ for -miamcu.
10795 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
10796 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
10797 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
10798 * config/i386/i386.c (ix86_option_override_internal): Ignore and
10799 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
10800 MCU by default. Default long double to 64-bit for Intel MCU.
10801 Turn on -freg-struct-return for Intel MCU. Issue an error when
10802 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
10804 (function_arg_advance_32): Pass value whose size is no larger
10805 than 8 bytes in registers for Intel MCU.
10806 (function_arg_32): Likewise.
10807 (ix86_return_in_memory): Return value whose size is no larger
10808 than 8 bytes in registers for Intel MCU.
10809 (iamcu_alignment): New function.
10810 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10812 (ix86_local_alignment): Don't increase alignment for Intel MCU.
10813 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10816 2015-06-30 Marek Polacek <polacek@redhat.com>
10818 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
10819 both operands of the resulting expression.
10821 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
10822 the final expression with the operand's type and then convert
10823 it to the type of the expression.
10825 2015-06-30 Richard Biener <rguenther@suse.de>
10827 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10828 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10829 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10830 * match.pd: ... to patterns here.
10832 2015-06-30 Richard Biener <rguenther@suse.de>
10834 PR tree-optimization/66704
10835 * tree-vect-data-refs.c (vect_setup_realignment): Use
10836 make_ssa_name for non-SSA name source.
10838 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10840 PR middle-end/66702
10841 * omp-low.c (simd_clone_adjust): Handle addressable linear
10842 or uniform parameters or non-gimple type uniform parameters.
10844 2015-06-30 Richard Biener <rguenther@suse.de>
10846 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10847 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10848 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10849 * match.pd: ... here.
10850 Add a few cases of A - B -> A + (-B) when B "easily" negates.
10851 Move (x & y) | x -> x and friends before
10852 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10854 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10856 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10857 -mfix-ut699 is not specified.
10858 (leon3_load): Rename into...
10859 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
10862 2015-06-30 Marek Polacek <polacek@redhat.com>
10864 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10865 * match.pd: ... here.
10867 2015-06-30 Richard Biener <rguenther@suse.de>
10869 * target-insns.def (canonicalize_funcptr_for_compare): Add.
10870 * fold-const.c (build_range_check): Replace uses of
10871 HAVE_canonicalize_funcptr_for_compare.
10872 (fold_widened_comparison): Likewise.
10873 (fold_sign_changed_comparison): Likewise.
10874 * dojump.c: Include "target.h".
10875 (do_compare_and_jump): Replace uses of
10876 HAVE_canonicalize_funcptr_for_compare and
10877 gen_canonicalize_funcptr_for_compare.
10878 * expr.c (do_store_flag): Likewise.
10880 2015-06-30 Tom de Vries <tom@codesourcery.com>
10882 PR tree-optimization/66652
10883 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10884 max_loop_iterations to determine if nit + 1 overflows.
10886 2015-06-30 Richard Biener <rguenther@suse.de>
10888 * tree-vrp.c (register_edge_assert_for_2): Also register
10889 asserts for dominating conversion results.
10891 2015-06-30 Bin Cheng <bin.cheng@arm.com>
10893 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10894 field in struct iv.
10896 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
10899 * configure.ac: Fix filds and fildq test for 64-bit.
10900 * configure: Regenerated.
10902 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
10904 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10905 (nvptx_reorg): Here. Keep the non-subreg pieces.
10907 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
10909 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10910 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10912 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
10914 * config/i386/i386.md (*jcc_1): Use %! in asm template.
10915 Set attribute "length_nobnd" instead of "length".
10918 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10920 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
10922 * config/nios2/nios2.c (nios2_delegitimize_address): Make
10923 assert less restrictive.
10925 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10928 * cgraphunit.c (cgraph_node::finalize_function): Do not call
10929 do_warn_unused_parameter.
10930 * function.c (do_warn_unused_parameter): Move from here.
10931 * function.h (do_warn_unused_parameter): Do not declare.
10933 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10936 * gcc.target/arm/armv-sync-comp-swap.c: New.
10937 * gcc.target/arm/armv-sync-op-acquire.c: New.
10938 * gcc.target/arm/armv-sync-op-full.c: New.
10939 * gcc.target/arm/armv-sync-op-release.c: New.
10941 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10944 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10945 initial acquire barrier with final barrier.
10947 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10950 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10951 initial acquire barrier with final barrier.
10953 2015-06-29 Richard Henderson <rth@redhat.com>
10955 * config/i386/constraints.md (Bf): New constraint.
10956 * config/i386/i386-c.c (ix86_target_macros): Define
10957 __GCC_ASM_FLAG_OUTPUTS__.
10958 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10960 * doc/extend.texi (FlagOutputOperands): Document them.
10962 2015-06-29 Jiong Wang <jiong.wang@arm.com>
10964 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10965 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10967 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10968 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10969 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10970 (aarch64_symbol_context): Ditto.
10971 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10972 and use new pattern name.
10973 (aarch64_expand_mov_immediate): Ditto.
10974 (aarch64_print_operand): Ditto.
10975 (aarch64_classify_tls_symbol): Ditto.
10977 2015-06-29 Marek Polacek <polacek@redhat.com>
10978 Marc Glisse <marc.glisse@inria.fr>
10980 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10981 * match.pd: ... pattern here.
10983 2015-06-29 Tom de Vries <tom@codesourcery.com>
10985 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10986 function structure.
10988 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10990 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10991 feature description, split out the native option, add a link to
10992 the feature documentation, rearrange and slightly rewrite text.
10993 (Aarch64 options, -mcpu): Likewise.
10994 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
10995 +rdma implies Adv. SIMD.
10997 2015-06-29 Marek Polacek <polacek@redhat.com>
11000 * function.c (stack_protect_epilogue): Remove a cast to int.
11001 * doc/invoke.texi: Update -Wswitch-bool description.
11003 2015-06-29 Richard Biener <rguenther@suse.de>
11005 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11006 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11007 via ptr_difference_const ...
11008 * match.pd: ... here.
11009 When matching (X ^ Y) == Y also match with swapped operands.
11011 2015-06-29 Richard Biener <rguenther@suse.de>
11013 * lto-streamer.h (LTO_major_version): Bump to 5.
11015 2015-06-29 Richard Biener <rguenther@suse.de>
11017 PR tree-optimization/66677
11018 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11019 STMT_VINFO_VEC_STMT clobbering less strict.
11021 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11023 PR middle-end/64130
11024 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11025 division, compute max and min when value ranges for dividend and
11026 divisor are available.
11028 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11029 Sandra Loosemore <sandra@codesourcery.com>
11031 * regrename.h (regrename_do_replace): Change to return bool.
11032 * regrename.c (rename_chains): Check return value of
11033 regname_do_replace.
11034 (regrename_do_replace): Re-validate the modified insns and
11035 return bool status.
11036 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11037 Update to match rename_chains changes.
11038 * config/c6x/c6x.c (try_rename_operands): Assert that
11039 regrename_do_replace returns true.
11041 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11043 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11044 operand 2 here. Use copy_addr_to_reg to copy non-index
11045 register operand 2 to a temporary.
11046 (<mode>_stx): Ditto for operand 1.
11047 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11048 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11049 (ix86_store_bounds): Ditto.
11051 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11053 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11055 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11057 * gimple.c (gimple_call_set_fndecl): Remove.
11058 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11059 build1_loc directly instead of build_fold_addr_expr_loc.
11061 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11063 * hash-map.h (hash_map::traverse): Use the definition of the
11064 Key typedef rather than the typedef itself.
11066 2015-06-26 Martin Jambor <mjambor@suse.cz>
11069 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11070 NULL instead of calling dump_enabled_p.
11072 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11074 * config/aarch64/aarch64.opt: (override): New.
11075 * doc/invoke.texi (override): Document.
11076 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11077 (aarch64_fusible_pairs): Likewise.
11078 (aarch64_tuning_flags): Likewise.
11079 (aarch64_tuning_override_function): Likewise.
11080 (aarch64_tuning_override_functions): Likewise.
11081 (aarch64_parse_one_option_token): Likewise.
11082 (aarch64_parse_boolean_options): Likewise.
11083 (aarch64_parse_fuse_string): Likewise.
11084 (aarch64_parse_tune_string): Likewise.
11085 (aarch64_parse_one_override_token): Likewise.
11086 (aarch64_parse_override_string): Likewise.
11087 (aarch64_override_options): Parse the -override string if it
11090 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11092 * config/aarch64/aarch64-protos.h (tune_params): Remove
11093 const from members.
11094 (aarch64_tune_params): Remove const, change to no longer be
11096 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11097 change to no longer be a pointer, initialize to generic_tunings.
11098 (aarch64_min_divisions_for_recip_mul): Change dereference of
11099 aarch64_tune_params to member access.
11100 (aarch64_reassociation_width): Likewise.
11101 (aarch64_rtx_mult_cost): Likewise.
11102 (aarch64_address_cost): Likewise.
11103 (aarch64_branch_cost): Likewise.
11104 (aarch64_rtx_costs): Likewise.
11105 (aarch64_register_move_cost): Likewise.
11106 (aarch64_memory_move_cost): Likewise.
11107 (aarch64_sched_issue_rate): Likewise.
11108 (aarch64_builtin_vectorization_cost): Likewise.
11109 (aarch64_override_options): Take a copy of the selected tuning
11110 struct in to aarch64_tune_params, rather than just setting
11111 a pointer, change dereferences of aarch64_tune_params to member
11113 (aarch64_override_options_after_change): Change dereferences of
11114 aarch64_tune_params to member access.
11115 (aarch64_macro_fusion_p): Likewise.
11116 (aarch_macro_fusion_pair_p): Likewise.
11117 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11119 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11121 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11122 (aarch64_tune_flags): Likewise.
11123 (AARCH64_TUNE_FMA_STEERING): Likewise.
11124 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11125 to AARCH64_FL_USE_FMA_STEERING_PASS.
11126 (cortex-a57.cortex-a53): Likewise.
11127 (cortex-a72): Use cortexa72_tunings.
11128 (cortex-a72.cortex-a53): Likewise.
11129 (exynos-m1): Likewise.
11130 * config/aarch64/aarch64-protos.h (tune_params): Add
11131 a field: extra_tuning_flags.
11132 * config/aarch64/aarch64-tuning-flags.def: New.
11133 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11134 (aarch64_extra_tuning_flags): Likewise.
11135 (aarch64_tune_params): Declare here.
11136 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11137 (cortexa53_tunings): Likewise.
11138 (cortexa57_tunings): Likewise.
11139 (thunderx_tunings): Likewise.
11140 (xgene1_tunings): Likewise.
11141 (cortexa72_tunings): New.
11142 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11143 (gate): Check against aarch64_tune_params.
11144 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11147 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11149 * config/aarch64/aarch64-fusion-pairs.def: New.
11150 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11151 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11152 aarch64_fusion_pairs.
11153 (AARCH64_FUSE_MOV_MOVK): Likewise.
11154 (AARCH64_FUSE_ADRP_ADD): Likewise.
11155 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11156 (AARCH64_FUSE_ADRP_LDR): Likewise.
11157 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11159 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11161 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11162 SYMBOL_SMALL_GOT_28K.
11163 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11164 relocation modifiers.
11165 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11166 (ldr_got_small_28k_<mode>): New.
11167 (ldr_got_small_28k_sidi): New.
11168 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11169 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11170 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11171 SYMBOL_SMALL_GOT_28K.
11172 (aarch64_rtx_costs): Add costs for new instruction sequences.
11173 (initialize_aarch64_code_model): Initialize new model.
11174 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11175 (aarch64_asm_preferred_eh_data_format): Support new model.
11176 (aarch64_load_symref_appropriately): Generate new instruction
11177 sequences for -fpic.
11178 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11179 (aarch64_use_pseudo_pic_reg): New function.
11181 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11183 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11184 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11185 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11186 (aarch64_expand_mov_immediate): Ditto.
11187 (aarch64_print_operand): Ditto.
11188 (aarch64_classify_symbol): Ditto.
11190 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11192 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11194 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11197 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11198 assertion failed. Remove assertion itself.
11200 2015-06-26 Richard Biener <rguenther@suse.de>
11202 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11203 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11205 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11206 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11207 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11208 * match.pd: ... patterns here.
11210 2015-06-26 Marek Polacek <polacek@redhat.com>
11212 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11213 (x | y) & (~x ^ y) -> x & y): New patterns.
11215 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11217 * rtl.h (emit): Add an optional boolean parameter to control
11218 whether barriers are emitted.
11219 * emit-rtl.c (emit): Likewise.
11220 * gensupport.c (get_emit_function): Return null rather than "emit".
11221 * genemit.c (gen_emit_seq): Handle the null return value.
11222 Don't emit barriers after the final instruction in the sequence.
11223 * gentarget-def.c (main): Don't emit barriers after the instruction.
11225 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11227 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11228 TARGET_UNIFIED_ASM.
11230 2015-06-26 Richard Biener <rguenther@suse.de>
11232 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11234 2015-06-26 Richard Biener <rguenther@suse.de>
11236 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11237 irrespective on whether the inner operation has a single use
11238 of both off are constant.
11240 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11241 Segher Boessenkool <segher@kernel.crashing.org>
11244 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11245 before doing PUT_MODE or PUT_CODE on operands to avoid
11246 in-place RTX modification.
11248 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11250 * gentarget-def.c (def_target_insn): Cast return of strtol to
11253 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11255 * gimple.h (gimple_call_set_fn): Move inline function.
11256 * gimple.c (gimple_call_set_fn): Relocate here.
11258 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11262 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11263 the replacement insn will work.
11265 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11267 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11270 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11272 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11273 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11274 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11275 (symtab_node::address_can_be_compared_p): Move function.
11276 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11278 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11279 * auto-profile.c: Likewise.
11280 * bb-reorder.c: Likewise.
11281 * builtins.c: Likewise.
11282 * calls.c: Likewise.
11283 * cfgexpand.c: Likewise.
11284 * cgraphbuild.c: Likewise.
11285 * cgraphclones.c: Likewise.
11286 * cgraphunit.c: Likewise.
11287 * combine.c: Likewise.
11288 * coverage.c: Likewise.
11289 * data-streamer-in.c: Likewise.
11290 * data-streamer-out.c: Likewise.
11291 * data-streamer.c: Likewise.
11292 * dbxout.c: Likewise.
11293 * dwarf2out.c: Likewise.
11294 * except.c: Likewise.
11295 * expr.c: Likewise.
11296 * final.c: Likewise.
11297 * fold-const.c: Likewise.
11298 * ggc-page.c: Likewise.
11299 * gimple-fold.c: Likewise.
11300 * gimple-iterator.c: Likewise.
11301 * gimple-pretty-print.c: Likewise.
11302 * gimple-streamer-in.c: Likewise.
11303 * gimple-streamer-out.c: Likewise.
11304 * gimple.c: Likewise.
11305 * gimplify.c: Likewise.
11306 * ipa-chkp.c: Likewise.
11307 * ipa-comdats.c: Likewise.
11308 * ipa-cp.c: Likewise.
11309 * ipa-devirt.c: Likewise.
11310 * ipa-icf-gimple.c: Likewise.
11311 * ipa-icf.c: Likewise.
11312 * ipa-inline-analysis.c: Likewise.
11313 * ipa-inline-transform.c: Likewise.
11314 * ipa-inline.c: Likewise.
11315 * ipa-polymorphic-call.c: Likewise.
11316 * ipa-profile.c: Likewise.
11317 * ipa-prop.c: Likewise.
11318 * ipa-pure-const.c: Likewise.
11319 * ipa-ref.c: Likewise.
11320 * ipa-reference.c: Likewise.
11321 * ipa-split.c: Likewise.
11322 * ipa-utils.c: Likewise.
11323 * ipa-visibility.c: Likewise.
11325 * langhooks.c: Likewise.
11326 * lto-cgraph.c: Likewise.
11327 * lto-compress.c: Likewise.
11328 * lto-opts.c: Likewise.
11329 * lto-section-in.c: Likewise.
11330 * lto-section-out.c: Likewise.
11331 * lto-streamer-in.c: Likewise.
11332 * lto-streamer-out.c: Likewise.
11333 * lto-streamer.c: Likewise.
11334 * omp-low.c: Likewise.
11335 * opts-global.c: Likewise.
11336 * passes.c: Likewise.
11337 * predict.c: Likewise.
11338 * print-tree.c: Likewise.
11339 * profile.c: Likewise.
11341 * sanopt.c: Likewise.
11342 * stor-layout.c: Likewise.
11343 * symtab.c: Likewise.
11344 * toplev.c: Likewise.
11345 * trans-mem.c: Likewise.
11346 * tree-cfg.c: Likewise.
11347 * tree-chkp.c: Likewise.
11348 * tree-eh.c: Likewise.
11349 * tree-emutls.c: Likewise.
11350 * tree-inline.c: Likewise.
11351 * tree-nested.c: Likewise.
11352 * tree-parloops.c: Likewise.
11353 * tree-pretty-print.c: Likewise.
11354 * tree-profile.c: Likewise.
11355 * tree-sra.c: Likewise.
11356 * tree-ssa-alias.c: Likewise.
11357 * tree-ssa-live.c: Likewise.
11358 * tree-ssa-loop-ivcanon.c: Likewise.
11359 * tree-ssa-loop-ivopts.c: Likewise.
11360 * tree-ssa-pre.c: Likewise.
11361 * tree-ssa-sccvn.c: Likewise.
11362 * tree-ssa-strlen.c: Likewise.
11363 * tree-ssa-structalias.c: Likewise.
11364 * tree-streamer-in.c: Likewise.
11365 * tree-streamer-out.c: Likewise.
11366 * tree-streamer.c: Likewise.
11367 * tree-switch-conversion.c: Likewise.
11368 * tree-tailcall.c: Likewise.
11369 * tree-vect-data-refs.c: Likewise.
11370 * tree-vect-stmts.c: Likewise.
11371 * tree-vectorizer.c: Likewise.
11372 * tree.c: Likewise.
11373 * tsan.c: Likewise.
11374 * ubsan.c: Likewise.
11375 * value-prof.c: Likewise.
11376 * varasm.c: Likewise.
11377 * varpool.c: Likewise.
11378 * config/arm/arm.c: Likewise.
11379 * config/bfin/bfin.c: Likewise.
11380 * config/c6x/c6x.c: Likewise.
11381 * config/cris/cris.c: Likewise.
11382 * config/darwin-c.c: Likewise.
11383 * config/darwin.c: Likewise.
11384 * config/i386/i386.c: Likewise.
11385 * config/i386/winnt.c: Likewise.
11386 * config/microblaze/microblaze.c: Likewise.
11387 * config/mips/mips.c: Likewise.
11388 * config/rs6000/rs6000.c: Likewise.
11389 * config/rx/rx.c: Likewise.
11390 * config/s390/s390.c: Likewise.
11391 * config/tilegx/mul-tables.c: Likewise.
11393 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11395 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11396 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11397 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11398 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11399 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11400 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11401 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11402 config/microblaze/microblaze.c, config/mips/mips.c,
11403 config/mmix/mmix.c, config/mn10300/mn10300.c,
11404 config/moxie/moxie.c, config/msp430/msp430.c,
11405 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11406 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11407 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11408 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11409 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11410 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11411 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11412 target-def.h include.
11413 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11415 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11417 * Makefile.in (TARGET_DEF): Add target-insns.def.
11418 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11419 (build/gentarget-def.o): New rule.
11420 (genprogrtl): Add target-def.
11421 * target-insns.def, gentarget-def.c: New files.
11422 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11423 based on the contents of target-insns.def.
11424 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11425 (HAVE_return, gen_return): Delete.
11426 * target-def.h: Include insn-target-def.h.
11427 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11428 instead of direct calls. Rely on them to do the appropriate assertions.
11429 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11430 (convert_jumps_to_returns): Use targetm interface instead of
11432 (thread_prologue_and_epilogue_insns): Likewise.
11433 * reorg.c (find_end_label, dbr_schedule): Likewise.
11434 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11435 * shrink-wrap.c (convert_to_simple_return): Likewise.
11436 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11438 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11440 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11441 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11442 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11443 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11444 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11445 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11446 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11447 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11448 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11449 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11450 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11451 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11452 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11453 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11454 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11455 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11460 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11461 (unbounded_int_hashmap_traits::key_type): Likewise.
11462 * hash-map.h (hash_map): Get the key type from the traits.
11463 * hash-traits.h (default_hash_traits): By default, inherit from the
11464 template parameter.
11465 * alias.c (alias_set_traits): Delete.
11466 (alias_set_entry_d::children): Use alias_set_hash as the first
11467 template parameter.
11468 (record_alias_subset): Update accordingly.
11469 * except.c (tree_hash_traits): Delete.
11470 (type_to_runtime_map): Use tree_hash as the first template parameter.
11471 (init_eh): Update accordingly.
11472 * genmatch.c (capture_id_map_hasher): Delete.
11473 (cid_map_t): Use nofree_string_hash as first template parameter.
11474 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11475 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11476 Use symbol_compare_hash as the first template parameter in
11477 subdivide_hash_map.
11478 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11479 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11480 template parameter.
11481 * passes.c (pass_registry_hasher): Delete.
11482 (name_to_pass_map): Use nofree_string_hash as the first template
11484 (register_pass_name): Update accordingly.
11485 * sanopt.c (sanopt_tree_map_traits): Delete.
11486 (sanopt_tree_triplet_map_traits): Delete.
11487 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11488 template parameter.
11489 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11490 the first template parameter.
11491 * sese.c (rename_map_hasher): Delete.
11492 (rename_map_type): Use tree_ssa_name_hash as the first template
11494 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11495 (function_summary::m_map): Use map_hash as the first template
11497 (function_summary::release): Update accordingly.
11498 * tree-if-conv.c (phi_args_hash_traits): Delete.
11499 (predicate_scalar_phi): Use tree_operand_hash as the first template
11500 parameter to phi_arg_map.
11501 * tree-inline.h (dependence_hasher): Delete.
11502 (copy_body_data::dependence_map): Use dependence_hash as the first
11503 template parameter.
11504 * tree-inline.c (remap_dependence_clique): Update accordingly.
11505 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11506 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11508 (addr_stridxptr): Update accordingly.
11509 * value-prof.c (profile_id_traits): Delete.
11510 (cgraph_node_map): Use profile_id_hash as the first template
11512 (init_node_map): Update accordingly.
11513 * config/alpha/alpha.c (string_traits): Delete.
11514 (machine_function::links): Use nofree_string_hash as the first
11515 template parameter.
11516 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11517 * config/m32c/m32c.c (pragma_traits): Delete.
11518 (pragma_htab): Use nofree_string_hash as the first template parameter.
11519 (m32c_note_pragma_address): Update accordingly.
11520 * config/mep/mep.c (pragma_traits): Delete.
11521 (pragma_htab): Use nofree_string_hash as the first template parameter.
11522 (mep_note_pragma_flag): Update accordingly.
11523 * config/mips/mips.c (mips16_flip_traits): Delete.
11524 (mflip_mips16_htab): Use nofree_string_hash as the first template
11526 (mflip_mips16_use_mips16_p): Update accordingly.
11527 (local_alias_traits): Delete.
11528 (mips16_local_aliases): Use nofree_string_hash as the first template
11530 (mips16_local_alias): Update accordingly.
11532 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11534 * hash-map-traits.h (default_hashmap_traits): Delete.
11536 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11538 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11539 (unbounded_int_hashmap_traits): Likewise.
11540 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11542 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11544 * ipa-icf.h (symbol_compare_hash): New class.
11545 (symbol_compare_hashmap_traits): Use it.
11546 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11547 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11548 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11549 default_hashmap_traits.
11550 * sanopt.c (sanopt_tree_triplet_hash): New class.
11551 (sanopt_tree_triplet_map_traits): Use it.
11553 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11555 * gengtype-parse.c (require_template_declaration): Allow '+' in
11556 template parameters. Consolidate cases.
11557 * hash-traits.h (int_hash): New class.
11558 * alias.c (alias_set_hash): New structure.
11559 (alias_set_traits): Use it.
11560 * symbol-summary.h (function_summary::map_hash): New class.
11561 (function_summary::summary_hashmap_traits): Use it.
11562 * tree-inline.h (dependence_hash): New class.
11563 (dependence_hasher): Use it.
11564 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11565 * value-prof.c (profile_id_hash): New class.
11566 (profile_id_traits): Use it.
11568 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11570 * config/mips/mips.c (mips16_flip_traits): Use it.
11571 (local_alias_traits, mips16_local_aliases): Convert from a map of
11572 rtxes to a map of symbol names.
11573 (mips16_local_alias): Update accordingly.
11575 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11577 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11578 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11579 * passes.c (pass_registry_hasher): Likewise.
11580 * config/alpha/alpha.c (string_traits): Likewise.
11581 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11582 * config/m32c/m32c.c (pragma_traits): Likewise.
11583 * config/mep/mep.c (pragma_traits): Likewise.
11585 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11587 * tree-hash-traits.h (tree_hash): New class.
11588 * except.c: Include tree-hash-traits.h.
11589 (tree_hash_traits): Use tree_hash.
11591 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11593 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11594 * sese.c: Include tree-hash-traits.h.
11595 (rename_map_hasher): Use tree_ssa_name_hasher.
11597 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11599 * tree-hash-traits.h (tree_decl_hash): New class.
11600 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11601 (stridxlist_hash_traits): Use tree_decl_hash.
11603 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11605 * tree-hash-traits.h: New file.
11606 (tree_operand_hash): New class.
11607 * sanopt.c: Include tree-hash-traits.h.
11608 (sanopt_tree_map_traits): Use tree_operand_hash.
11609 * tree-if-conv.c: Include tree-hash-traits.h.
11610 (phi_args_hash_traits): Use tree_operand_hash.
11611 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11612 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11614 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11616 * hash-map-traits.h: Include hash-traits.h.
11617 (simple_hashmap_traits): New class.
11618 * mem-stats.h (hash_map): Change the default traits to
11619 simple_hashmap_traits<default_hash_traits<Key> >.
11621 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11623 * hash-table.h: Update comments.
11625 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11627 * hash-traits.h (default_hash_traits): New structure.
11628 * hash-set.h (default_hashset_traits): Delete.
11629 (hash_set): Use default_hash_traits<Key> instead of
11630 default_hashset_traits. Delete hash_entry type and use Key directly.
11631 * ipa-devirt.c (pair_traits): Delete.
11632 (default_hash_traits <type_pair>): Override.
11633 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11634 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11636 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11638 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11642 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11643 (has_is_empty, is_empty_helper): Delete.
11644 (has_mark_deleted, mark_deleted_helper): Delete.
11645 (has_mark_empty, mark_empty_helper): Delete.
11646 (hash_table::is_deleted): Call the Descriptor unconditionally.
11647 (hash_table::is_empty): Likewise.
11648 (hash_table::mark_deleted): Likewise.
11649 (hash_table::mark_empty): Likewise.
11651 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11653 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11654 redundant typedefs and members.
11655 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11656 redundant typedefs.
11657 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11658 * ipa-devirt.c (odr_name_hasher): Likewise.
11659 (polymorphic_call_target_hasher): Likewise.
11660 * ira-costs.c (cost_classes_hasher): Likewise.
11661 * statistics.c (stats_counter_hasher): Likewise.
11662 * trans-mem.c (log_entry_hasher): Likewise.
11663 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11664 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11665 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11666 * var-tracking.c (variable_hasher): Likewise.
11667 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11668 Remove redundant typedefs and members.
11670 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11672 * hash-traits.h (ggc_cache_hasher): Rename to...
11673 (ggc_cache_remove): ...this and remove typedefs.
11674 (ggc_cache_ptr_hash): New class.
11675 * hash-table.h: Update commentary.
11676 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11677 rather than ggc_cache_hasher.
11678 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11679 (const_double_hasher, const_fixed_hasher): Likewise.
11680 * function.c (insn_cache_hasher): Likewise.
11681 * trans-mem.c (tm_wrapper_hasher): Likewise.
11682 * tree.h (tree_decl_map_cache_hasher): Likewise.
11683 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11684 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11685 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11686 * varasm.c (tm_clone_hasher): Likewise.
11687 * config/i386/i386.c (dllimport_hasher): Likewise.
11688 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11689 (tree_hasher): Likewise.
11691 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11693 * hash-traits.h (ggc_hasher): Rename to...
11694 (ggc_remover): ...this and remove typedefs.
11695 (ggc_cache_hasher): Update accordingly. Add typedefs.
11696 (ggc_ptr_hash): New class.
11697 * hash-table.h: Update comment.
11698 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11700 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11701 (tree_descriptor_hasher): Likewise.
11702 * cgraph.c (function_version_hasher): Likewise.
11703 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11704 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11705 (dw_loc_list_hasher, addr_hasher): Likewise.
11706 * function.h (used_type_hasher): Likewise.
11707 * function.c (temp_address_hasher): Likewise.
11708 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11709 * libfuncs.h (libfunc_hasher): Likewise.
11710 * lto-streamer.h (decl_state_hasher): Likewise.
11711 * optabs.c (libfunc_decl_hasher): Likewise.
11712 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
11713 * varasm.c (section_hasher, object_block_hasher): Likewise.
11714 (const_rtx_desc_hasher): Likewise.
11715 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
11716 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
11718 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11720 * hash-traits.h (free_ptr_hash): New class.
11721 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
11722 rather than typed_free_remove. Remove redudant typedefs.
11723 (external_ref_hasher): Likewise.
11724 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
11725 (ehspec_hasher): Likewise.
11726 * ggc-common.c (saving_hasher): Likewise.
11727 * gimplify.c (gimplify_hasher): Likewise.
11728 * haifa-sched.c (delay_i2_hasher): Likewise.
11729 * loop-invariant.c (invariant_expr_hasher): Likewise.
11730 * loop-iv.c (biv_entry_hasher): Likewise.
11731 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
11732 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
11733 * tree-cfg.c (locus_discrim_hasher): Likewise.
11734 * tree-eh.c (finally_tree_hasher): Likewise.
11735 * tree-into-ssa.c (var_info_hasher): Likewise.
11736 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
11737 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
11738 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
11739 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
11740 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
11741 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
11742 (shared_bitmap_hasher): Likewise.
11743 * tree-ssa-threadupdate.c (redirection_data): Likewise.
11744 * tree-vectorizer.h (peel_info_hasher): Likewise.
11745 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
11746 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
11748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11750 * hash-table.h: Update comments.
11751 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
11752 (nofree_ptr_hash): New class.
11753 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
11754 than typed_noop_remove. Remove redudant typedefs.
11755 * attribs.c (attribute_hasher): Likewise.
11756 * cfg.c (bb_copy_hasher): Likewise.
11757 * cselib.c (cselib_hasher): Likewise.
11758 * dse.c (invariant_group_base_hasher): Likewise.
11759 * dwarf2cfi.c (trace_info_hasher): Likewise.
11760 * dwarf2out.c (macinfo_entry_hasher): Likewise.
11761 (comdat_type_hasher, loc_list_hasher): Likewise.
11762 * gcse.c (pre_ldst_expr_hasher): Likewise.
11763 * genmatch.c (id_base): Likewise.
11764 * genrecog.c (test_pattern_hasher): Likewise.
11765 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11766 * haifa-sched.c (delay_i1_hasher): Likewise.
11767 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11768 * ipa-icf.h (congruence_class_group_hash): Likewise.
11769 * ipa-profile.c (histogram_hash): Likewise.
11770 * ira-color.c (allocno_hard_regs_hasher): Likewise.
11771 * lto-streamer.h (string_slot_hasher): Likewise.
11772 * lto-streamer.c (tree_entry_hasher): Likewise.
11773 * plugin.c (event_hasher): Likewise.
11774 * postreload-gcse.c (expr_hasher): Likewise.
11775 * store-motion.c (st_expr_hasher): Likewise.
11776 * tree-sra.c (uid_decl_hasher): Likewise.
11777 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11778 (ssa_name_var_hash): Likewise.
11779 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11780 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11781 * tree-ssa-pre.c (pre_expr_d): Likewise.
11782 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11783 * vtable-verify.h (registration_hasher): Likewise.
11784 * vtable-verify.c (vtbl_map_hasher): Likewise.
11785 * config/arm/arm.c (libcall_hasher): Likewise.
11786 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
11787 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
11788 * config/sol2.c (comdat_entry_hasher): Likewise.
11789 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
11790 (print_fold_checksum, fold_checksum_tree): Likewise.
11791 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
11792 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
11793 (fold_build_call_array_loc): Likewise.
11794 * tree-ssa-ccp.c (gimple_htab): Likewise.
11795 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
11796 rather than pointer_type.
11798 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11800 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
11801 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
11803 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11805 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11806 (ggc_hasher::ggc_mx): Likewise.
11807 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
11808 that duplicate ggc_hasher ones.
11810 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11812 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11813 (gt_cleare_cache): Check here for deleted and empty entries.
11814 Replace handle_cache_entry with a call to keep_cache_entry.
11815 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11816 (ggc_cache_hasher::keep_cache_entry): New function.
11817 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11818 (tm_wrapper_hasher::keep_cache_entry): New function.
11819 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11820 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11821 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11822 (type_cache_hasher::keep_cache_entry): New function.
11823 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11824 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11825 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11826 (tree_type_map_cache_hasher::keep_cache_entry): New function.
11827 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11828 (tm_clone_hasher::keep_cache_entry): New function.
11829 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11830 (dllimport_hasher::keep_cache_entry): New function.
11832 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11834 * hash-table.h: Include hash-traits.h.
11835 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11836 (ggc_cache_hasher): Move to...
11837 * hash-traits.h: ...this new file.
11839 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11841 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11842 struct cl_optimization.
11843 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11844 * tree.c (make_node_stat): Allocate cl_optimization struct.
11845 (copy_node_stat): Allocate and copy cl_optimization struct.
11847 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11849 * function.h (struct incoming_args): Move struct.
11850 (pass_by_reference, reference_callee_copied): Remove prototypes.
11851 * emit-rtl.h (struct incoming_args): Relocate struct here.
11852 * calls.h (pass_by_reference, reference_callee_copied): Relocate
11854 * function.c (pass_by_reference, reference_callee_copied): Move.
11855 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11856 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11857 * ipa-chkp.c: Include calls.h.
11859 2015-06-25 Andrew Macleod <amacleod@redhat.com>
11861 * alias.h (alias_set_type): Move typedef.
11862 * coretypes.h (alias_set_type): Relocate typedef here.
11863 * rtl.h: Don't include alias.h.
11865 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11867 * cgraph.h (cgraph_rtl_info): Move to rtl.h
11868 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11870 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11871 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11873 * calls.c: Include hard-reg-set.h before rtl.h.
11876 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11877 Vladimir Makarov <vmakarov@redhat.com>
11879 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11882 2015-06-25 Richard Biener <rguenther@suse.de>
11884 * fold-const.c (fold_binary_loc): Move simplification of
11885 (X <<>> C1) & C2 ...
11886 * match.pd: ... here.
11888 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
11890 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11892 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11894 * match.pd: Add patterns for vec_conds between 1 and 0.
11896 2015-06-25 Richard Biener <rguenther@suse.de>
11898 * tree-vect-stmts.c (vectorizable_conversion): Do not set
11899 STMT_VINFO_VEC_STMT for SLP.
11900 (vectorizable_store): Likewise.
11901 (vectorizable_load): Likewise.
11902 (vect_transform_stmt): Catch SLP vectorization clobbering
11903 STMT_VINFO_VEC_STMT.
11905 2015-06-25 Richard Biener <rguenther@suse.de>
11907 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11909 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11910 cleanup resulting dead code and parameters.
11911 (vect_transform_slp_perm_load): Adjust.
11913 2015-06-25 Nick Clifton <nickc@redhat.com>
11915 * config/bfin/bfin.c (bfin_expand_prologue): Set
11916 current_function_static_stack_size if flag_stack_usage_info is set.
11917 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11918 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11919 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11920 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11922 2015-06-25 Tom de Vries <tom@codesourcery.com>
11924 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11925 comment that the generated IV is unsigned.
11927 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11930 * config/arm/arm.c (arm_dbx_register_number): Return
11931 DWARF_FRAME_REGISTERS by default.
11933 2015-06-25 Tom de Vries <tom@codesourcery.com>
11935 * dominance.c (calculate_dominance_info): Fix verify_dominators call
11936 argument. Call verify_dominator when reusing dominator info.
11938 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
11941 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11942 an additional element of the unspec vector. Modify indices
11944 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11945 * config/sh/sh.c (prepare_move_operands): Pass incremented
11946 const_int to gen_GOTaddr2picreg.
11947 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11949 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11951 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11952 Condition on TARGET_FLOAT.
11954 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11956 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11959 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11961 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11963 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11964 aarch64_err_no_fpadvsimd.
11966 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11967 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11968 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11969 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11970 Turn error into assert, test TARGET_FLOAT.
11971 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11974 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
11977 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11979 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11981 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11983 2015-06-24 Renlin Li <renlin.li@arm.com>
11985 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11986 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11988 2015-06-24 Richard Biener <rguenther@suse.de>
11990 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11992 (lower_opt_convert): Support lowering of conditional view_convert.
11993 (parser::parse_operation): Likewise.
11994 (parser::parse_for): Likewise.
11996 2015-06-24 Renlin Li <renlin.li@arm.com>
11998 * varasm.c (emit_local): Use unsigned int for align variable.
12000 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12003 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12004 for negative numbers.
12006 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12008 PR rtl-optimization/66306
12009 * reload.c (find_reloads): Swap the match_dup info for
12010 commutative operands.
12012 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12014 * config/s390/vx-builtins.md
12015 ("vec_scatter_element<mode>_<non_vec_int>")
12016 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12017 attribute with bhfgq.
12019 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12021 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12023 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12025 * config/s390/s390-builtin-types.def: Add flag to indicate the
12026 options under which the function type is needed.
12027 * config/s390/s390-builtins.def: Add flag to indicate the options
12028 under which the builtin is enabled.
12029 * config/s390/s390-builtins.h: Add flags parameter to macro
12031 (bflags_for_builtin): New function.
12032 (flags_for_builtin): Renamed to ...
12033 (opflags_for_builtin): ... this.
12034 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12035 flags_for_builtin to bflags_for_builtin and
12036 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12037 * config/s390/s390.c: Add initialization of bflags_builtin and
12038 opflags_builtin arrays.
12039 Remove code for flags_builtin.
12040 (s390_init_builtins): Only create builtin function types if one of
12041 their flags is active.
12042 Only create builtins if all of their flags are active.
12043 (s390_expand_builtin): Rename flags_for_builtin to
12044 opflags_for_builtin.
12046 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12048 * config/s390/vecintrin.h: Remove internal builtins.
12050 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12052 * config/s390/s390.c (s390_secondary_reload): Fix check for
12053 GENERAL_REGS register class.
12055 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12057 * config/s390/s390.c (s390_support_vector_misalignment): Call
12058 default implementation for !TARGET_VX.
12060 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12062 * config/s390/s390.c (s390_legitimate_constant_p): Add
12065 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12067 * config/s390/s390.c (s390_vector_abi): New variable definition.
12068 (s390_check_type_for_vector_abi): New function.
12069 (TARGET_ASM_FILE_END): New macro definition.
12070 (s390_asm_file_end): New function.
12071 (s390_function_arg): Call s390_check_type_for_vector_abi.
12072 (s390_gimplify_va_arg): Likewise.
12073 * configure: Regenerate.
12074 * configure.ac: Check for .gnu_attribute Binutils feature.
12076 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12079 * config/bfin/bfin.c (hwloop_optimize): Initialize
12080 JUMP_LABEL for newly created jump.
12082 2015-06-23 Tristan Gingold <gingold@adacore.com>
12084 * collect-utils.c (collect_wait): Unlink the response file here
12086 (do_wait): ...here.
12087 (utils_cleanup): ...and here.
12089 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12091 * df-scan.c: Don't include target-def.h.
12092 * targhooks.c: Likewise.
12093 * config/arm/arm-c.c: Likewise.
12094 * config/i386/i386-c.c: Likewise.
12095 * config/nds32/nds32-cost.c: Likewise.
12096 * config/nds32/nds32-fp-as-gp.c: Likewise.
12097 * config/nds32/nds32-intrinsic.c: Likewise.
12098 * config/nds32/nds32-isr.c: Likewise.
12099 * config/nds32/nds32-md-auxiliary.c: Likewise.
12100 * config/nds32/nds32-memory-manipulation.c: Likewise.
12101 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12102 * config/nds32/nds32-predicates.c: Likewise.
12104 2015-06-23 Richard Biener <rguenther@suse.de>
12106 PR tree-optimization/66636
12107 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12108 def type for further defs for strided stores.
12110 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12112 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12113 conditional selects.
12114 (setcc_int<mode>, setcc_float<mode>): Reformat.
12116 2015-06-23 Marek Polacek <polacek@redhat.com>
12118 * match.pd ((x + y) - (x | y) -> x & y,
12119 (x + y) - (x & y) -> x | y): New patterns.
12121 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12124 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12125 '-dynamic-linker' within %{!shared: ...}.
12127 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12130 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12131 (addsub_vs_operator): Ditto.
12132 (addsub_vs_parallel): Ditto.
12133 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12134 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12135 Put minus RTX before plus and adjust vec_merge selector.
12136 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12137 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12138 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12139 (addsub vec_merge splitters): New combiner splitters.
12140 (addsub vec_select/vec_concat splitters): Ditto.
12142 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12144 PR tree-optimization/66449
12145 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12146 POINTER_PLUS_EXPR for pointers.
12148 2015-06-23 Alan Modra <amodra@gmail.com>
12150 * rtlanal.c (commutative_operand_precedence): Correct comments.
12151 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12152 declaration. Return an int. Distinguish REG,REG return from
12154 (struct simplify_plus_minus_op_data): Make local to function.
12155 (simplify_plus_minus): Don't set canonicalized if merely sorting
12156 registers. Avoid packing ops if nothing changes. White space fixes.
12158 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12160 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12161 -fdump-ada-spec is passed but not if -fsyntax-only is.
12163 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12166 * lra-lives.c (process_bb_lives): Check insn copying the same
12167 reload pseudo and don't create a copy for it.
12169 2015-06-22 Tom de Vries <tom@codesourcery.com>
12171 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12174 2015-06-22 Tom de Vries <tom@codesourcery.com>
12176 * builtins.def (DEF_GOMP_BUILTIN): Test
12177 'flag_tree_parallelize_loops > 1' instead of
12178 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12180 2015-06-22 Tom de Vries <tom@codesourcery.com>
12182 * dominance.c (calculate_dominance_info): Verify dominators if
12185 2015-06-22 Marek Polacek <polacek@redhat.com>
12187 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12188 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12189 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12190 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12192 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12195 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12196 cost of embedded comparison.
12198 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12201 * config/rs6000/predicates.md (altivec_register_operand): Permit
12202 virtual stack registers.
12203 (vsx_register_operand): Likewise.
12204 (vfloat_operand): Likewise.
12205 (vint_operand): Likewise.
12206 (vlogical_operand): Likewise.
12208 2015-06-22 Richard Biener <rguenther@suse.de>
12210 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12211 and single_scalar_iteration_cost members.
12212 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12213 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12214 (vect_get_single_scalar_iteration_cost): Remove.
12215 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12216 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12217 * tree-vect-loop.c (destroy_loop_vec_info): Free
12219 (vect_get_single_scalar_iteration_cost): Compute result into
12220 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12221 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12222 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12223 (vect_estimate_min_profitable_iters): Use them.
12225 2015-06-22 Christian Bruel <christian.bruel@st.com>
12228 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12229 (TARGET_INSERT_ATTRIBUTES): Define.
12230 (thumb_flipper): New var.
12231 * config/arm/arm.opt (-mflip-thumb): New switch.
12233 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12234 Martin Liska <mliska@suse.cz>
12237 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12238 construction of arg_types.
12239 (sem_function::sem_function): Likewise.
12240 (sem_function::~sem_function): Remove destruction of arg_types.
12241 (sem_function::compatible_parm_types_p): New function.
12242 (sem_function::equals_wpa): Reorg matching of return values
12243 and parameter types.
12244 (sem_function::equals_private): Reorg mathcing of argument types.
12245 (sem_function::parse_tree_args): Remove.
12246 * ipa-icf.h (init_wpa): Do not call it.
12247 (parse_tree_args): Remove.
12248 (compatible_parm_types_p): Declare.
12249 (result_type): Remove.
12250 (arg_types): Remove.
12252 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12255 * ipa-polymorphic-call.c
12256 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12257 initializing alias oracle; fix formating; set base_alias_set if it
12260 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12262 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12263 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12264 (find_inc): Likewise.
12265 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12267 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12268 * df-scan.c (df_swap_refs): Remove.
12269 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12270 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12271 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12272 * fold-const.c (fold_relational_const): Likewise.
12273 * genattrtab.c (simplify_test_exp): Likewise.
12274 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12275 gimple_simplify): Likewise.
12276 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12277 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12278 * ipa-devirt.c (add_type_duplicate): Likewise.
12279 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12280 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12281 * lra.c (lra_create_copy): Likewise.
12282 * lto-streamer-out.c (DFS::DFS): Likewise.
12283 * modulo-sched.c (get_sched_window): Likewise.
12284 * omega.c (omega_pretty_print_problem): Likewise.
12285 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12286 * reload1.c (reloads_unique_chain_p): Likewise.
12287 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12288 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12290 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12292 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12293 predicate_mem_writes): Likewise.
12294 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12295 * tree-predcom.c (combine_chains): Likewise.
12296 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12297 refs_may_alias_p_1): Likewise.
12298 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12299 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12300 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12301 number_of_iterations_cond): Likewise.
12302 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12303 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12304 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12305 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12306 * tree-vrp.c (extract_range_from_binary_expr_1,
12307 extract_range_from_unary_expr_1): Likewise.
12309 2015-06-20 Marek Polacek <polacek@redhat.com>
12311 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12313 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12316 * config/sh/sh.c (prepare_move_operands): Replace subreg
12317 index term with R0 for base and index addressing.
12319 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12321 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12323 (movsf_aarch64): Change condition from register_operand to
12324 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12325 load1. Change type for alternative 7 to store1.
12326 (movdf_aarch64): Likewise.
12328 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12330 * config/vax/vax.md: Adjust sign/zero extend patterns to
12331 handle SUBREGs in operands[1].
12333 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12335 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12336 of manually swapping.
12337 (expand_vec_perm_interleave2): Likewise.
12339 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12341 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12342 reuse bounds created for abnormal ssa names.
12344 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12346 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12347 (allocate_stack_<mode>): ... this, and add :P on both
12348 match_operand and unspec.
12349 (allocate_stack): New expander.
12351 2015-06-19 Christian Bruel <christian.bruel@st.com>
12355 * config/arm/arm.c (arm_set_current_function): Handle
12356 explicit default options.
12358 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12360 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12361 (zero-extended cmove with mem peephole2): New pattern.
12362 (cmove with mem peephole2): Merge patterns.
12364 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12366 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12368 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12370 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12371 * config/mips/mips.md (*madd4<mode>): Ditto.
12372 (*nmadd3<mode>) Ditto.
12373 (*nmadd4<mode>_fastmath): Ditto.
12374 (*nmadd3<mode>_fastmath): Ditto.
12375 (*nmsub4<mode>): Ditto.
12376 (*nmsub3<mode>): Ditto.
12377 (*nmsub4<mode>_fastmath): Ditto.
12378 (*nmsub3<mode>_fastmath): Ditto.
12380 2015-06-18 Michael Matz <matz@suse.de>
12382 PR middle-end/66253
12383 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12384 grouped strided stores.
12385 (vectorizable_load): Don't use the DR from first_stmt in
12386 the non-SLP grouped strided case.
12388 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12391 * function.c (assign_bounds): Add arguments assign_regs,
12392 assign_special, assign_bt.
12393 (assign_parms): For vararg functions handle bounds in BT
12394 and special slots after incoming vararg bounds.
12396 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12398 PR middle-end/66568
12399 * cfgexpand.c (expand_return): Handle missing bounds.
12400 (expand_gimple_stmt_1): Likewise.
12401 * tree-chkp.c (chkp_expand_zero_bounds): New.
12402 * tree-chkp.h (chkp_expand_zero_bounds): New.
12404 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12406 PR middle-end/66567
12407 * ipa-chkp.c (chkp_maybe_create_clone): Require
12408 functions to be instrumentable.
12409 * tree-chkp.c (chkp_replace_function_pointer): Use
12410 chkp_instrumentable_p instead of attribute check.
12412 2015-06-18 Richard Biener <rguenther@suse.de>
12414 PR tree-optimization/66510
12415 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12416 number of vector loads for SLP permuted loads.
12417 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12418 check the stride for loop vectorization.
12419 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12420 vectorization factor.
12421 (vect_analyze_group_access): If the group size is not a power
12422 of two require a epilogue loop.
12423 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12424 compute and optimizing and alias test pruning after final
12425 vectorization factor computation.
12426 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12428 (vect_transform_slp_perm_load): Properly compute the original
12429 number of vector load stmts.
12431 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12433 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12434 "unlikely character , in @var" warning.
12436 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12438 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12439 (ix86_function_arg_advance): Ditto.
12440 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12442 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12444 * function.h (struct rtl_data): Remove struct and accessor macros.
12445 * emit-rtl.h (struct rtl_data): Relocate to here.
12446 * Makefile.in (GTFILES): Add emit-rtl.h.
12447 * df-core.c: Include emit-rtl.h.
12448 * genattrtab.c: Likewise.
12449 * genconditions.c: Likewise.
12450 * genpreds.c: Likewise.
12451 * genrecog.c: Likewise.
12452 * regcprop.c: Likewise.
12453 * resource.c: Likewise.
12454 * sched-rgn.c: Likewise.
12455 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12456 * config/i386/winnt.c: Likewise.
12458 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12460 PR middle-end/66429
12461 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12462 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12463 and has_force_vectorize_loops flags from cfun into
12465 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12466 if simduid is non-NULL.
12467 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12468 * passes.def (pass_simduid_cleanup): Add new pass after loop
12470 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12471 indirection from htab argument's type.
12472 (shrink_simd_arrays): New function.
12473 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12474 Don't call adjust_simduid_builtins if there are no loops.
12475 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12476 (pass_simduid_cleanup::execute): New method.
12477 (make_pass_simduid_cleanup): New function.
12479 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12481 * tree-core.h (tree_target_option): Make opts field a pointer to a
12482 cl_target_option instead of an instance of the struct.
12483 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12485 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12486 TARGET_OPTION_NODE.
12487 (copy_node_stat): Allocate and copy struct cl_target_option.
12489 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12491 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12492 Remove conditional exposure of prototypes.
12493 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12494 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12495 definitions in tree.h with functions.
12496 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12498 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12500 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12502 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12503 (*cmp<mode>_signed): ... this.
12504 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12505 (*cmp<mode>_unsigned): ... this. Remove %b.
12507 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12509 * coretypes.h: Include input.h and as-a.h.
12510 * rtl.h: Include input.h and as-a.h for generator files.
12511 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12512 * vec.c: Don't include diagnostic-core.h.
12513 * alias.c: Do not include input.h, line-map.h or is-a.h.
12514 * asan.c: Likewise.
12515 * attribs.c: Likewise.
12516 * auto-inc-dec.c: Likewise.
12517 * auto-profile.c: Likewise.
12518 * bb-reorder.c: Likewise.
12519 * bt-load.c: Likewise.
12520 * builtins.c: Likewise.
12521 * caller-save.c: Likewise.
12522 * calls.c: Likewise.
12523 * ccmp.c: Likewise.
12525 * cfganal.c: Likewise.
12526 * cfgbuild.c: Likewise.
12527 * cfgcleanup.c: Likewise.
12528 * cfgexpand.c: Likewise.
12529 * cfghooks.c: Likewise.
12530 * cfgloop.c: Likewise.
12531 * cfgloop.h: Likewise.
12532 * cfgloopanal.c: Likewise.
12533 * cfgloopmanip.c: Likewise.
12534 * cfgrtl.c: Likewise.
12535 * cgraph.c: Likewise.
12536 * cgraphbuild.c: Likewise.
12537 * cgraphclones.c: Likewise.
12538 * cgraphunit.c: Likewise.
12539 * cilk-common.c: Likewise.
12540 * combine-stack-adj.c: Likewise.
12541 * combine.c: Likewise.
12542 * compare-elim.c: Likewise.
12543 * convert.c: Likewise.
12544 * coverage.c: Likewise.
12545 * cppbuiltin.c: Likewise.
12546 * cprop.c: Likewise.
12548 * cselib.c: Likewise.
12549 * data-streamer-in.c: Likewise.
12550 * data-streamer-out.c: Likewise.
12551 * data-streamer.c: Likewise.
12552 * dbxout.c: Likewise.
12555 * debug.c: Likewise.
12556 * df-core.c: Likewise.
12557 * df-problems.c: Likewise.
12558 * df-scan.c: Likewise.
12561 * diagnostic-core.h: Likewise.
12562 * diagnostic.c: Likewise.
12563 * dojump.c: Likewise.
12564 * dominance.c: Likewise.
12565 * domwalk.c: Likewise.
12566 * double-int.c: Likewise.
12568 * dumpfile.c: Likewise.
12569 * dumpfile.h: Likewise.
12570 * dwarf2asm.c: Likewise.
12571 * dwarf2cfi.c: Likewise.
12572 * dwarf2out.c: Likewise.
12573 * emit-rtl.c: Likewise.
12574 * et-forest.c: Likewise.
12575 * except.c: Likewise.
12576 * explow.c: Likewise.
12577 * expmed.c: Likewise.
12578 * expr.c: Likewise.
12579 * final.c: Likewise.
12580 * fixed-value.c: Likewise.
12581 * fold-const.c: Likewise.
12582 * function.c: Likewise.
12583 * fwprop.c: Likewise.
12584 * gcc-plugin.h: Likewise.
12585 * gcse.c: Likewise.
12586 * generic-match-head.c: Likewise.
12587 * ggc-page.c: Likewise.
12588 * gimple-builder.c: Likewise.
12589 * gimple-expr.c: Likewise.
12590 * gimple-fold.c: Likewise.
12591 * gimple-iterator.c: Likewise.
12592 * gimple-low.c: Likewise.
12593 * gimple-match-head.c: Likewise.
12594 * gimple-pretty-print.c: Likewise.
12595 * gimple-ssa-isolate-paths.c: Likewise.
12596 * gimple-ssa-strength-reduction.c: Likewise.
12597 * gimple-streamer-in.c: Likewise.
12598 * gimple-streamer-out.c: Likewise.
12599 * gimple-streamer.h: Likewise.
12600 * gimple-walk.c: Likewise.
12601 * gimple.c: Likewise.
12602 * gimplify-me.c: Likewise.
12603 * gimplify.c: Likewise.
12604 * godump.c: Likewise.
12605 * graph.c: Likewise.
12606 * graphite-blocking.c: Likewise.
12607 * graphite-dependences.c: Likewise.
12608 * graphite-interchange.c: Likewise.
12609 * graphite-isl-ast-to-gimple.c: Likewise.
12610 * graphite-optimize-isl.c: Likewise.
12611 * graphite-poly.c: Likewise.
12612 * graphite-scop-detection.c: Likewise.
12613 * graphite-sese-to-poly.c: Likewise.
12614 * graphite.c: Likewise.
12615 * haifa-sched.c: Likewise.
12616 * hw-doloop.c: Likewise.
12617 * ifcvt.c: Likewise.
12618 * init-regs.c: Likewise.
12619 * input.c: Likewise.
12620 * internal-fn.c: Likewise.
12621 * ipa-chkp.c: Likewise.
12622 * ipa-comdats.c: Likewise.
12623 * ipa-cp.c: Likewise.
12624 * ipa-devirt.c: Likewise.
12625 * ipa-icf-gimple.c: Likewise.
12626 * ipa-icf.c: Likewise.
12627 * ipa-inline-analysis.c: Likewise.
12628 * ipa-inline-transform.c: Likewise.
12629 * ipa-inline.c: Likewise.
12630 * ipa-polymorphic-call.c: Likewise.
12631 * ipa-profile.c: Likewise.
12632 * ipa-prop.c: Likewise.
12633 * ipa-pure-const.c: Likewise.
12634 * ipa-ref.c: Likewise.
12635 * ipa-reference.c: Likewise.
12636 * ipa-split.c: Likewise.
12637 * ipa-utils.c: Likewise.
12638 * ipa-visibility.c: Likewise.
12640 * ira-build.c: Likewise.
12641 * ira-color.c: Likewise.
12642 * ira-conflicts.c: Likewise.
12643 * ira-costs.c: Likewise.
12644 * ira-emit.c: Likewise.
12645 * ira-lives.c: Likewise.
12647 * jump.c: Likewise.
12648 * langhooks.c: Likewise.
12650 * loop-doloop.c: Likewise.
12651 * loop-init.c: Likewise.
12652 * loop-invariant.c: Likewise.
12653 * loop-iv.c: Likewise.
12654 * loop-unroll.c: Likewise.
12655 * lower-subreg.c: Likewise.
12656 * lra-assigns.c: Likewise.
12657 * lra-coalesce.c: Likewise.
12658 * lra-constraints.c: Likewise.
12659 * lra-eliminations.c: Likewise.
12660 * lra-lives.c: Likewise.
12661 * lra-remat.c: Likewise.
12662 * lra-spills.c: Likewise.
12664 * lto-cgraph.c: Likewise.
12665 * lto-compress.c: Likewise.
12666 * lto-opts.c: Likewise.
12667 * lto-section-in.c: Likewise.
12668 * lto-section-out.c: Likewise.
12669 * lto-streamer-in.c: Likewise.
12670 * lto-streamer-out.c: Likewise.
12671 * lto-streamer.c: Likewise.
12673 * mode-switching.c: Likewise.
12674 * modulo-sched.c: Likewise.
12675 * omega.c: Likewise.
12676 * omp-low.c: Likewise.
12677 * optabs.c: Likewise.
12678 * opts-global.c: Likewise.
12679 * opts.h: Likewise.
12680 * passes.c: Likewise.
12681 * plugin.c: Likewise.
12682 * postreload-gcse.c: Likewise.
12683 * postreload.c: Likewise.
12684 * predict.c: Likewise.
12685 * pretty-print.h: Likewise.
12686 * print-rtl.c: Likewise.
12687 * print-tree.c: Likewise.
12688 * profile.c: Likewise.
12689 * real.c: Likewise.
12690 * realmpfr.c: Likewise.
12691 * recog.c: Likewise.
12693 * reg-stack.c: Likewise.
12694 * regcprop.c: Likewise.
12695 * reginfo.c: Likewise.
12696 * regrename.c: Likewise.
12697 * regstat.c: Likewise.
12698 * reload.c: Likewise.
12699 * reload1.c: Likewise.
12700 * reorg.c: Likewise.
12701 * resource.c: Likewise.
12702 * rtl-chkp.c: Likewise.
12703 * rtl-error.c: Likewise.
12704 * rtlanal.c: Likewise.
12705 * rtlhooks.c: Likewise.
12706 * sanopt.c: Likewise.
12707 * sched-deps.c: Likewise.
12708 * sched-ebb.c: Likewise.
12709 * sched-rgn.c: Likewise.
12710 * sched-vis.c: Likewise.
12711 * sdbout.c: Likewise.
12712 * sel-sched-dump.c: Likewise.
12713 * sel-sched-ir.c: Likewise.
12714 * sel-sched.c: Likewise.
12715 * sese.c: Likewise.
12716 * shrink-wrap.c: Likewise.
12717 * simplify-rtx.c: Likewise.
12718 * stack-ptr-mod.c: Likewise.
12719 * statistics.c: Likewise.
12720 * stmt.c: Likewise.
12721 * stor-layout.c: Likewise.
12722 * store-motion.c: Likewise.
12723 * streamer-hooks.c: Likewise.
12724 * stringpool.c: Likewise.
12725 * symtab.c: Likewise.
12726 * target-globals.c: Likewise.
12727 * targhooks.c: Likewise.
12728 * toplev.c: Likewise.
12729 * tracer.c: Likewise.
12730 * trans-mem.c: Likewise.
12731 * tree-affine.c: Likewise.
12732 * tree-browser.c: Likewise.
12733 * tree-call-cdce.c: Likewise.
12734 * tree-cfg.c: Likewise.
12735 * tree-cfgcleanup.c: Likewise.
12736 * tree-chkp-opt.c: Likewise.
12737 * tree-chkp.c: Likewise.
12738 * tree-chrec.c: Likewise.
12739 * tree-complex.c: Likewise.
12740 * tree-data-ref.c: Likewise.
12741 * tree-dfa.c: Likewise.
12742 * tree-diagnostic.c: Likewise.
12743 * tree-dump.c: Likewise.
12744 * tree-eh.c: Likewise.
12745 * tree-emutls.c: Likewise.
12746 * tree-if-conv.c: Likewise.
12747 * tree-inline.c: Likewise.
12748 * tree-into-ssa.c: Likewise.
12749 * tree-iterator.c: Likewise.
12750 * tree-loop-distribution.c: Likewise.
12751 * tree-nested.c: Likewise.
12752 * tree-nrv.c: Likewise.
12753 * tree-object-size.c: Likewise.
12754 * tree-outof-ssa.c: Likewise.
12755 * tree-parloops.c: Likewise.
12756 * tree-phinodes.c: Likewise.
12757 * tree-predcom.c: Likewise.
12758 * tree-pretty-print.c: Likewise.
12759 * tree-profile.c: Likewise.
12760 * tree-scalar-evolution.c: Likewise.
12761 * tree-sra.c: Likewise.
12762 * tree-ssa-address.c: Likewise.
12763 * tree-ssa-alias.c: Likewise.
12764 * tree-ssa-ccp.c: Likewise.
12765 * tree-ssa-coalesce.c: Likewise.
12766 * tree-ssa-copy.c: Likewise.
12767 * tree-ssa-copyrename.c: Likewise.
12768 * tree-ssa-dce.c: Likewise.
12769 * tree-ssa-dom.c: Likewise.
12770 * tree-ssa-dse.c: Likewise.
12771 * tree-ssa-forwprop.c: Likewise.
12772 * tree-ssa-ifcombine.c: Likewise.
12773 * tree-ssa-live.c: Likewise.
12774 * tree-ssa-loop-ch.c: Likewise.
12775 * tree-ssa-loop-im.c: Likewise.
12776 * tree-ssa-loop-ivcanon.c: Likewise.
12777 * tree-ssa-loop-ivopts.c: Likewise.
12778 * tree-ssa-loop-manip.c: Likewise.
12779 * tree-ssa-loop-niter.c: Likewise.
12780 * tree-ssa-loop-prefetch.c: Likewise.
12781 * tree-ssa-loop-unswitch.c: Likewise.
12782 * tree-ssa-loop.c: Likewise.
12783 * tree-ssa-math-opts.c: Likewise.
12784 * tree-ssa-operands.c: Likewise.
12785 * tree-ssa-phiopt.c: Likewise.
12786 * tree-ssa-phiprop.c: Likewise.
12787 * tree-ssa-pre.c: Likewise.
12788 * tree-ssa-propagate.c: Likewise.
12789 * tree-ssa-reassoc.c: Likewise.
12790 * tree-ssa-sccvn.c: Likewise.
12791 * tree-ssa-scopedtables.c: Likewise.
12792 * tree-ssa-sink.c: Likewise.
12793 * tree-ssa-strlen.c: Likewise.
12794 * tree-ssa-structalias.c: Likewise.
12795 * tree-ssa-tail-merge.c: Likewise.
12796 * tree-ssa-ter.c: Likewise.
12797 * tree-ssa-threadedge.c: Likewise.
12798 * tree-ssa-threadupdate.c: Likewise.
12799 * tree-ssa-uncprop.c: Likewise.
12800 * tree-ssa-uninit.c: Likewise.
12801 * tree-ssa.c: Likewise.
12802 * tree-ssanames.c: Likewise.
12803 * tree-stdarg.c: Likewise.
12804 * tree-streamer-in.c: Likewise.
12805 * tree-streamer-out.c: Likewise.
12806 * tree-streamer.c: Likewise.
12807 * tree-switch-conversion.c: Likewise.
12808 * tree-tailcall.c: Likewise.
12809 * tree-vect-data-refs.c: Likewise.
12810 * tree-vect-generic.c: Likewise.
12811 * tree-vect-loop-manip.c: Likewise.
12812 * tree-vect-loop.c: Likewise.
12813 * tree-vect-patterns.c: Likewise.
12814 * tree-vect-slp.c: Likewise.
12815 * tree-vect-stmts.c: Likewise.
12816 * tree-vectorizer.c: Likewise.
12817 * tree-vrp.c: Likewise.
12818 * tree.c: Likewise.
12819 * tsan.c: Likewise.
12820 * ubsan.c: Likewise.
12821 * valtrack.c: Likewise.
12822 * value-prof.c: Likewise.
12823 * var-tracking.c: Likewise.
12824 * varasm.c: Likewise.
12825 * varpool.c: Likewise.
12826 * vmsdbgout.c: Likewise.
12827 * vtable-verify.c: Likewise.
12829 * wide-int.cc: Likewise.
12830 * xcoffout.c: Likewise.
12831 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12832 * common/common-targhooks.c: Likewise.
12833 * config/aarch64/aarch64-builtins.c: Likewise.
12834 * config/aarch64/aarch64.c: Likewise.
12835 * config/alpha/alpha.c: Likewise.
12836 * config/arc/arc.c: Likewise.
12837 * config/arm/aarch-common.c: Likewise.
12838 * config/arm/arm-builtins.c: Likewise.
12839 * config/arm/arm-c.c: Likewise.
12840 * config/arm/arm.c: Likewise.
12841 * config/avr/avr-c.c: Likewise.
12842 * config/avr/avr-log.c: Likewise.
12843 * config/avr/avr.c: Likewise.
12844 * config/bfin/bfin.c: Likewise.
12845 * config/c6x/c6x.c: Likewise.
12846 * config/cr16/cr16.c: Likewise.
12847 * config/cris/cris.c: Likewise.
12848 * config/darwin-c.c: Likewise.
12849 * config/darwin.c: Likewise.
12850 * config/default-c.c: Likewise.
12851 * config/epiphany/epiphany.c: Likewise.
12852 * config/epiphany/mode-switch-use.c: Likewise.
12853 * config/epiphany/resolve-sw-modes.c: Likewise.
12854 * config/fr30/fr30.c: Likewise.
12855 * config/frv/frv.c: Likewise.
12856 * config/ft32/ft32.c: Likewise.
12857 * config/glibc-c.c: Likewise.
12858 * config/h8300/h8300.c: Likewise.
12859 * config/i386/i386-c.c: Likewise.
12860 * config/i386/i386.c: Likewise.
12861 * config/i386/msformat-c.c: Likewise.
12862 * config/i386/winnt-cxx.c: Likewise.
12863 * config/i386/winnt-stubs.c: Likewise.
12864 * config/i386/winnt.c: Likewise.
12865 * config/ia64/ia64-c.c: Likewise.
12866 * config/ia64/ia64.c: Likewise.
12867 * config/iq2000/iq2000.c: Likewise.
12868 * config/lm32/lm32.c: Likewise.
12869 * config/m32c/m32c-pragma.c: Likewise.
12870 * config/m32c/m32c.c: Likewise.
12871 * config/m32r/m32r.c: Likewise.
12872 * config/m68k/m68k.c: Likewise.
12873 * config/mcore/mcore.c: Likewise.
12874 * config/mep/mep-pragma.c: Likewise.
12875 * config/mep/mep.c: Likewise.
12876 * config/microblaze/microblaze-c.c: Likewise.
12877 * config/microblaze/microblaze.c: Likewise.
12878 * config/mips/mips.c: Likewise.
12879 * config/mmix/mmix.c: Likewise.
12880 * config/mn10300/mn10300.c: Likewise.
12881 * config/moxie/moxie.c: Likewise.
12882 * config/msp430/msp430-c.c: Likewise.
12883 * config/msp430/msp430.c: Likewise.
12884 * config/nds32/nds32-cost.c: Likewise.
12885 * config/nds32/nds32-fp-as-gp.c: Likewise.
12886 * config/nds32/nds32-intrinsic.c: Likewise.
12887 * config/nds32/nds32-isr.c: Likewise.
12888 * config/nds32/nds32-md-auxiliary.c: Likewise.
12889 * config/nds32/nds32-memory-manipulation.c: Likewise.
12890 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12891 * config/nds32/nds32-predicates.c: Likewise.
12892 * config/nds32/nds32.c: Likewise.
12893 * config/nios2/nios2.c: Likewise.
12894 * config/nvptx/nvptx.c: Likewise.
12895 * config/pa/pa.c: Likewise.
12896 * config/pdp11/pdp11.c: Likewise.
12897 * config/rl78/rl78-c.c: Likewise.
12898 * config/rl78/rl78.c: Likewise.
12899 * config/rs6000/rs6000-c.c: Likewise.
12900 * config/rs6000/rs6000.c: Likewise.
12901 * config/rx/rx.c: Likewise.
12902 * config/s390/s390-c.c: Likewise.
12903 * config/s390/s390.c: Likewise.
12904 * config/sh/sh-c.c: Likewise.
12905 * config/sh/sh-mem.cc: Likewise.
12906 * config/sh/sh.c: Likewise.
12907 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12908 * config/sh/sh_treg_combine.cc: Likewise.
12909 * config/sol2-c.c: Likewise.
12910 * config/sol2-cxx.c: Likewise.
12911 * config/sol2-stubs.c: Likewise.
12912 * config/sol2.c: Likewise.
12913 * config/sparc/sparc-c.c: Likewise.
12914 * config/sparc/sparc.c: Likewise.
12915 * config/spu/spu-c.c: Likewise.
12916 * config/spu/spu.c: Likewise.
12917 * config/stormy16/stormy16.c: Likewise.
12918 * config/tilegx/mul-tables.c: Likewise.
12919 * config/tilegx/tilegx-c.c: Likewise.
12920 * config/tilegx/tilegx.c: Likewise.
12921 * config/tilepro/mul-tables.c: Likewise.
12922 * config/tilepro/tilepro-c.c: Likewise.
12923 * config/tilepro/tilepro.c: Likewise.
12924 * config/v850/v850-c.c: Likewise.
12925 * config/v850/v850.c: Likewise.
12926 * config/vax/vax.c: Likewise.
12927 * config/visium/visium.c: Likewise.
12928 * config/vms/vms-c.c: Likewise.
12929 * config/vms/vms.c: Likewise.
12930 * config/vxworks.c: Likewise.
12931 * config/winnt-c.c: Likewise.
12932 * config/xtensa/xtensa.c: Likewise.
12934 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
12936 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12938 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12940 2015-06-17 Richard Biener <rguenther@suse.de>
12942 PR tree-optimization/66251
12943 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12944 stmts for SLP strided stores.
12947 2015-05-22 Richard Biener <rguenther@suse.de>
12949 PR tree-optimization/66251
12950 * tree-vect-stmts.c (vectorizable_conversion): Properly
12951 set STMT_VINFO_VEC_STMT even for the SLP case.
12953 2015-05-26 Michael Matz <matz@suse.de>
12955 PR middle-end/66251
12956 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12957 STMT_VINFO_VEC_STMT, also with SLP.
12959 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
12962 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12963 (*avx_addsubv4df3_1s): Ditto.
12964 (*sse3_addsubv2df3_1): Ditto.
12965 (*sse3_addsubv2df3_1s): Ditto.
12966 (*avx_addsubv8sf3_1): Ditto.
12967 (*avx_addsubv8sf3_1s): Ditto.
12968 (*sse3_addsubv4sf3_1): Ditto.
12969 (*sse3_addsubv4sf3_1s): Ditto.
12971 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
12973 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12974 (SYSROOT_SUFFIX_SPEC): Update.
12975 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12976 (STARTFILE_PREFIX_SPEC): Update.
12977 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12978 (MULTILIB_REQUIRED): New.
12979 (MULTILIB_OSDIRNAMES): New.
12980 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12981 (MULTILIB_REQUIRED): New.
12982 (MULTILIB_OSDIRNAMES): New.
12984 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
12986 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12987 * config/aarch64/aarch64-options-extensions.def: Update "fP",
12988 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
12989 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12990 (AARCH64_FL_PAN): New.
12991 (AARCH64_FL_LOR): New.
12992 (AARCH64_FL_RDMA): New.
12993 (AARCH64_FL_FOR_ARCH8_1): New.
12994 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12995 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12997 2015-06-16 Martin Liska <mliska@suse.cz>
12999 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13000 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13003 2015-06-16 Richard Biener <rguenther@suse.de>
13005 * tree-vect-stmts.c (vectorizable_store): Adjust.
13006 (vectorizable_load): Likewise.
13007 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13009 (vect_create_data_ref_ptr): Likewise.
13010 (bump_vector_ptr): Adjust.
13012 2015-06-16 Richard Biener <rguenther@suse.de>
13014 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13015 with the first element if this is grouped loads.
13017 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13019 * config/arm/arm-protos.h (struct tune_params): Rename
13020 log_op_non_sc to log_op_non_short_circuit, and rename enum
13021 values to expand SC to SHORT_CIRCUIT.
13022 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13023 to LOG_OP_NON_SHORT_CIRCUIT.
13024 (arm_fastmul_tune):Likewise
13025 (arm_strongarm_tune): Likewise.
13026 (arm_xscale_tune): Likewise.
13027 (arm_9e_tune): Likewise.
13028 (arm_marvell_pj4_tune): Likewise.
13029 (arm_v6t2_tune): Likewise.
13030 (arm_cortex_tune): Likewise.
13031 (arm_cortex_a8_tune): Likewise.
13032 (arm_cortex_a7_tune): Likewise.
13033 (arm_cortex_a15_tune): Likewise.
13034 (arm_cortex_a53_tune): Likewise.
13035 (arm_cortex_a57_tune): Likewise.
13036 (arm_xgene1_tune): Likewise.
13037 (arm_cortex_a5_tune): Likewise.
13038 (arm_cortex_a9_tune): Likewise.
13039 (arm_cortex_a12_tune): Likewise.
13040 (arm_v7m_tune): Likewise.
13041 (arm_cortex_m7_tune): Likewise.
13042 (arm_v6m_tune): Likewise.
13043 (arm_fa726te_tune): Likewise.
13045 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13047 * altivec.md: Delete UNSPEC_VMLADDUHM.
13048 (mulv4si3_p8): New pattern.
13049 (mulv4si3): Use it for POWER8.
13050 (mulv8hi3): Use vmladduhm with zero addend.
13051 (altivec_vmladduhm): Descriptive RTL.
13053 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13055 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13056 to use neon_move instead of mov_imm.
13057 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13058 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13060 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13061 aarch64_float_const_zero_rtx_p check before TFmode check.
13062 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13064 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13065 code and attributes to match. Change condition from register_operand
13066 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13067 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13070 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13073 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13074 there is no parent.
13076 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13078 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13079 HOST_WIDE_INT parameter.
13081 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13084 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13085 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13087 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13089 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13091 * rtl.h (classify_insn): Declare.
13092 * emit-rtl.c (classify_insn): Move to...
13093 * rtl.c: ...here and add generator support.
13094 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13095 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13096 * genemit.c (gen_emit_seq): New function.
13097 (gen_expand, gen_split): Use it.
13099 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13101 * tree.c (make_vector_stat): Fix comment to state that the
13102 function returns a VECTOR_CST.
13104 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13106 * gensupport.h (add_implicit_parallel): Declare.
13107 * genrecog.c (add_implicit_parallel): Move to...
13108 * gensupport.c (add_implicit_parallel): ...here.
13109 (process_one_cond_exec): Use it.
13110 * genemit.c (gen_insn): Likewise.
13112 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13115 * passes.c (rest_of_decl_compilation): Do not register globals for
13116 early debug if they are declared in built-ins.
13118 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13120 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13122 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13124 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13126 (noce_try_cmove_arith): Likewise.
13127 (noce_get_alt_condition): Likewise.
13129 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13131 * common/config/i386/i386-common.c
13132 (OPTION_MASK_ISA_MWAITX_SET): New.
13133 (ix86_handle_option): Handle mwaitx.
13134 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13135 (x86_64-*-*): Likewise.
13136 * config/i386/mwaitxintrin.h: New header.
13137 * config/i386/cpuid.h (bit_MWAITX): Define.
13138 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13140 * config/i386/i386.opt (mwaitx): New.
13141 * config/i386/i386-builtin-types.def
13142 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13143 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13144 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13146 (ix86_option_override_internal): Handle new option.
13147 (processor_alias_table): Added PTA_MWAITX.
13148 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13149 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13150 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13151 IX86_BUILTIN_MONITORX built-ins.
13152 * config/i386/i386.h (TARGET_MWAITX): New.
13153 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13155 (mwaitx): New pattern.
13156 (monitorx_<mode>): New pattern.
13157 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13158 * doc/extend.texi: Document monitorx and mwaitx builtins.
13159 * doc/invoke.texi: Document -mmwaitx option.
13161 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13163 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13164 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13166 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13168 * dbxout.c (xcoff_debug_hooks): Provide a function for
13169 register_main_translation_unit hook.
13171 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13173 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13174 variants cases from switch.
13175 (rs6000_post_atomic_barrier): Same.
13176 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13177 (rs6000_expand_atomic_exchange): Same.
13178 (rs6000_expand_atomic_op): Same.
13179 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13180 SYNC variants cases from switch.
13181 (atomic_load): Same.
13182 (atomic_store): Same.
13184 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13186 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13187 CONST_INT for goto.
13189 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13192 * dwarf2out.c (check_die): Check for common duplicate attributes.
13193 (add_location_or_const_value_attribute): Do not add duplicate
13195 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13197 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13198 (gen_type_die_with_usage): Call check_die.
13199 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13201 2015-06-11 Jason Merrill <jason@redhat.com>
13203 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13206 2015-06-11 Marek Polacek <polacek@redhat.com>
13208 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13210 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13213 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13214 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13215 (*addx_extend_sp32): Fix pasto.
13216 (*subx_extend): Rename into...
13217 (*subx_extend_sp32): ...this.
13218 (*adddi3_extend_sp32): Add earlyclobber.
13219 (*subdi3_insn_sp32): Likewise.
13220 (*subdi3_extend_sp32): Likewise.
13221 (*and_not_di_sp32): Likewise.
13222 (*or_not_di_sp32): Likewise.
13223 (*xor_not_di_sp32): Likewise.
13224 (*negdi2_sp32): Likewise.
13225 (*one_cmpldi2_sp32): Likewise.
13227 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13229 * debug.h (struct gcc_debug_hooks): Add a
13230 register_main_translation_unit hook.
13231 * debug.c (do_nothing_debug_hooks): Provide a function for this
13233 * dbxout.c (dbx_debug_hooks): Likewise.
13234 * sdbout.c (sdb_debug_hooks): Likewise.
13235 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13236 * dwarf2out.c (main_translation_unit): New global variable.
13237 (dwarf2out_register_main_translation_unit): New function
13238 implementing the new hook.
13239 (dwarf2_debug_hooks): Assign
13240 dwarf2out_register_main_translation_unit to this new hook.
13241 (dwarf2out_init): Associate any main translation unit to
13244 2015-06-11 Marek Polacek <polacek@redhat.com>
13246 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13248 2015-06-11 Marek Polacek <polacek@redhat.com>
13250 * match.pd: Use single_use throughout.
13252 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13254 * config/arm/arm.c (arm_option_params_internal): When optimising
13255 for speed set max_insns_skipped when arm_restrict_it.
13257 2015-06-11 Christian Bruel <christian.bruel@st.com>
13260 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13262 (arm_cpu_builtins): New function.
13263 (arm_pragma_target_parse): Call arm_cpu_builtins.
13264 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13265 (arm_register_target_pragmas): Likewise.
13266 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13267 Call arm_register_target_pragmas.
13268 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13269 (arm_pragma_target_parse): Likewise.
13271 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13273 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13274 of the second operand.
13276 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13279 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13280 to prepare mask operand for AVX512 modes.
13282 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13285 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13286 if you use a constraint that targets a VSX register, you must use
13287 %x<n> in the template.
13289 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13291 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13292 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13293 (define_insn "trap"): New definition.
13295 2015-06-10 Richard Biener <rguenther@suse.de>
13297 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13299 (vect_supported_load_permutation_p): ... here. Handle
13300 supportable permutations in reductions.
13301 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13302 for vectorizing strided group loads.
13304 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13307 * config/i386/i386.c (ix86_split_long_move): For collisions
13308 involving direct tls segment refs, move the UNSPEC_TP possibly
13309 wrapped in ZERO_EXTEND out of the address for lea, to each of
13312 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13314 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13315 dmb sy. Adjust tabs.
13317 2015-06-10 Tom de Vries <tom@codesourcery.com>
13319 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13321 2015-06-10 Martin Liska <mliska@suse.cz>
13324 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13325 all enum values in mem_alloc_origin.
13326 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13328 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13329 * bitmap.c (bitmap_register): Likewise.
13330 (dump_bitmap_statistics): Likewise.
13331 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13332 (ggc_record_overhead): Likewise.
13333 * hash-map.h: Likewise.
13334 * hash-set.h: Likewise.
13335 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13336 * hash-table.h: Likewise.
13337 * vec.c (vec_prefix::register_overhead): Likewise.
13338 (vec_prefix::release_overhead): Likewise.
13339 (dump_vec_loc_statistics): Likewise.
13341 2015-06-09 Christian Bruel <christian.bruel@st.com>
13344 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13345 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13346 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13347 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13348 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13349 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13350 (arm_valid_target_attribute_p): Likewise.
13351 (arm_set_current_function, arm_can_inline_p): Likewise.
13352 (arm_valid_target_attribute_rec): Likewise.
13353 (arm_previous_fndecl): New variable.
13354 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13355 (TARGET_CAN_INLINE_P): Define.
13356 (arm_asm_trampoline_template): Emit mode.
13357 (arm_file_start): Don't set unified syntax.
13358 (arm_declare_function_name): Set unified syntax and mode.
13359 (arm_option_override): Init target_option_default_node.
13360 and target_option_current_node.
13361 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13362 (*call_symbol): Likewise.
13363 * doc/extend.texi: Document ARM/Thumb target attribute.
13364 * doc/invoke.texi: Likewise.
13366 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13369 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13370 PR rtl-optimization/64164
13371 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13372 * tree-ssa-copyrename.c: Removed.
13373 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13374 -ftree-coalesce-vars.
13375 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13376 * common.opt (ftree-copyrename): Ignore.
13377 (ftree-coalesce-inlined-vars): Likewise.
13378 * doc/invoke.texi: Remove the ignored options above.
13379 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13380 * tree-ssa-coalesce.h: ... here.
13381 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13382 headers required by it.
13383 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13384 across variables when flag_tree_coalesce_vars. Check register
13385 use and promoted modes to allow coalescing. Moved to
13386 tree-ssa-coalesce.c.
13387 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13388 with its member functions to tree-ssa-coalesce.c.
13389 (var_map_base_init): Likewise. Renamed to
13390 compute_samebase_partition_bases.
13391 (partition_view_normal): Drop want_bases parameter.
13392 (partition_view_bitmap): Likewise.
13393 * tree-ssa-live.h: Adjust declarations.
13394 * tree-ssa-coalesce.c: Include explow.h.
13395 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13396 default defs at the entry point.
13397 (dump_part_var_map): New.
13398 (compute_optimized_partition_bases): New, called by...
13399 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13400 of compute_samebase_partition_bases. Adjust.
13401 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13402 * cfgexpand.c (leader_merge): New.
13403 (get_rtl_for_parm_ssa_default_def): New.
13404 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13405 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13406 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13407 redundant MEM attr setting.
13408 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13410 (expand_one_stack_var): ... this. New wrapper to check and
13411 skip already expanded SSA partitions.
13412 (record_alignment_for_reg_var): New, factored out of...
13413 (expand_one_var): ... this.
13414 (expand_one_ssa_partition): New.
13415 (adjust_one_expanded_partition_var): New.
13416 (expand_one_register_var): Check and skip already expanded SSA
13418 (expand_used_vars): Don't create DECLs for anonymous SSA
13419 names. Expand all SSA partitions, then adjust all SSA names.
13420 (pass::execute): Replace the loops that set
13421 SA.partition_to_pseudo from partition leaders and cleared
13422 DECL_RTL for multi-location variables, and that which used to
13423 rename vars and set attrs, with one that clears DECL_RTL and
13424 checks that PARMs and RESULTs default_defs match DECL_RTL.
13425 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13426 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13427 * explow.c (promote_ssa_mode): New.
13428 * explow.h (promote_ssa_mode): Declare.
13429 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13430 * function.c: Include cfgexpand.h.
13431 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13432 (use_register_for_parm_decl): Wrapper for the above to
13433 special-case the result_ptr.
13434 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13435 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13436 multiple locations.
13437 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13438 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13439 (assign_parm_setup_block): Prefer SSA-assigned location.
13440 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13441 if stack_parm is NULL.
13442 (assign_parm_setup_stack): Prefer SSA-assigned location.
13443 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13444 rtl before testing for pointer bounds. Special-case result_ptr.
13445 (expand_function_start): Maybe reset DECL_RTL of result.
13446 Prefer SSA-assigned location for result and static chain.
13447 Factor out DECL_RESULT and SET_DECL_RTL.
13448 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13449 anonymous SSA names. Use promote_ssa_mode.
13450 (get_temp_reg): Likewise.
13451 (remove_ssa_form): Adjust.
13452 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13453 and get its reg_usage for reg invalidation.
13454 (compute_bb_dataflow): Pass it insn.
13455 (emit_notes_in_bb): Likewise.
13456 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13457 fail assert on conversion between unsigned types.
13459 2015-06-09 Tom de Vries <tom@codesourcery.com>
13461 PR tree-optimization/65460
13462 * omp-low.c (expand_omp_target): Set parallelized_function on
13463 cgraph_node for child_fn.
13465 2015-06-09 Tom de Vries <tom@codesourcery.com>
13467 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13468 parallelized_function before add_new_function.
13470 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13472 * gcc-plugin.h: Move decls to plugin.h and include it.
13473 * plugin.h: Relocate decls from gcc-plugin.h
13474 * ggc-page.c: Include required header files.
13475 * passes.c: Likewise.
13476 * cgraphunit.c: Likewise.
13478 2015-06-09 Tom de Vries <tom@codesourcery.com>
13480 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13482 2015-06-09 Jason Merrill <jason@redhat.com>
13485 * toplev.c (check_global_declaration): Don't warn about a clone.
13487 2015-06-09 Marek Polacek <polacek@redhat.com>
13489 PR tree-optimization/66299
13490 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13491 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13494 2015-06-09 Richard Biener <rguenther@suse.de>
13496 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13497 (vect_analyze_slp_instance): Instead do not falsely drop
13500 2015-06-09 Richard Biener <rguenther@suse.de>
13502 PR middle-end/66423
13503 * match.pd: Handle A % (unsigned)(1 << B).
13505 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13507 * varasm.c (output_object_block_htab): Remove.
13508 (output_object_block_compare): New.
13509 (output_object_blocks): Sort named object_blocks before outputting
13512 2015-06-09 Richard Biener <rguenther@suse.de>
13514 PR tree-optimization/66419
13515 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13516 consider GROUP_GAP when detecting a perfect subchain.
13518 2015-06-09 Nick Clifton <nickc@redhat.com>
13520 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13521 place read only data in the .frodata section.
13523 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13525 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13526 (atomic_store<mode>): Likewise.
13528 2015-06-09 Richard Biener <rguenther@suse.de>
13530 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13532 2015-06-09 Richard Biener <rguenther@suse.de>
13534 PR middle-end/66413
13535 * tree-inline.c (insert_init_debug_bind): Unshare value.
13537 2015-06-09 Richard Biener <rguenther@suse.de>
13539 PR tree-optimization/66396
13540 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13541 Rename virtual operands.
13543 2015-06-09 Tom de Vries <tom@codesourcery.com>
13545 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13546 always return false.
13548 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13550 PR rtl-optimization/64164
13551 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13552 * tree-ssa-copyrename.c: Removed.
13553 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13554 -ftree-coalesce-vars.
13555 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13556 * common.opt (ftree-copyrename): Ignore.
13557 (ftree-coalesce-inlined-vars): Likewise.
13558 * doc/invoke.texi: Remove the ignored options above.
13559 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13560 * tree-ssa-coalesce.h: ... here.
13561 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13562 headers required by it.
13563 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13564 across variables when flag_tree_coalesce_vars. Check register
13565 use and promoted modes to allow coalescing. Moved to
13566 tree-ssa-coalesce.c.
13567 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13568 with its member functions to tree-ssa-coalesce.c.
13569 (var_map_base_init): Likewise. Renamed to
13570 compute_samebase_partition_bases.
13571 (partition_view_normal): Drop want_bases parameter.
13572 (partition_view_bitmap): Likewise.
13573 * tree-ssa-live.h: Adjust declarations.
13574 * tree-ssa-coalesce.c: Include explow.h.
13575 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13576 default defs at the entry point.
13577 (dump_part_var_map): New.
13578 (compute_optimized_partition_bases): New, called by...
13579 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13580 of compute_samebase_partition_bases. Adjust.
13581 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13582 * cfgexpand.c (leader_merge): New.
13583 (get_rtl_for_parm_ssa_default_def): New.
13584 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13585 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13586 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13587 redundant MEM attr setting.
13588 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13590 (expand_one_stack_var): ... this. New wrapper to check and
13591 skip already expanded SSA partitions.
13592 (record_alignment_for_reg_var): New, factored out of...
13593 (expand_one_var): ... this.
13594 (expand_one_ssa_partition): New.
13595 (adjust_one_expanded_partition_var): New.
13596 (expand_one_register_var): Check and skip already expanded SSA
13598 (expand_used_vars): Don't create DECLs for anonymous SSA
13599 names. Expand all SSA partitions, then adjust all SSA names.
13600 (pass::execute): Replace the loops that set
13601 SA.partition_to_pseudo from partition leaders and cleared
13602 DECL_RTL for multi-location variables, and that which used to
13603 rename vars and set attrs, with one that clears DECL_RTL and
13604 checks that PARMs and RESULTs default_defs match DECL_RTL.
13605 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13606 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13607 * explow.c (promote_ssa_mode): New.
13608 * explow.h (promote_ssa_mode): Declare.
13609 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13610 * function.c: Include cfgexpand.h.
13611 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13612 (use_register_for_parm_decl): Wrapper for the above to
13613 special-case the result_ptr.
13614 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13615 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13616 multiple locations.
13617 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13618 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13619 (assign_parm_setup_block): Prefer SSA-assigned location.
13620 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13621 if stack_parm is NULL.
13622 (assign_parm_setup_stack): Prefer SSA-assigned location.
13623 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13624 rtl before testing for pointer bounds. Special-case result_ptr.
13625 (expand_function_start): Maybe reset DECL_RTL of result.
13626 Prefer SSA-assigned location for result and static chain.
13627 Factor out DECL_RESULT and SET_DECL_RTL.
13628 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13629 anonymous SSA names. Use promote_ssa_mode.
13630 (get_temp_reg): Likewise.
13631 (remove_ssa_form): Adjust.
13632 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13633 and get its reg_usage for reg invalidation.
13634 (compute_bb_dataflow): Pass it insn.
13635 (emit_notes_in_bb): Likewise.
13636 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13637 fail assert on conversion between unsigned types.
13639 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13642 * tree-inline.c (reset_debug_binding): New.
13643 (reset_debug_bindings): Likewise.
13644 (expand_call_inline): Call it.
13646 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13648 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13651 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13653 * lto-streamer-out.c (lto_output_location): Stream
13654 reserved locations correctly.
13655 * lto-streamer-in.c (lto_output_location): Likewise.
13657 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13659 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13660 * ggc.h: Don't include statistics.h>
13661 * hash-map.h: Remove all includes.
13662 * hash-set.h: Likewise.
13663 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13664 the include list. Remove <new>.
13665 * inchash.h: Remove all includes.
13666 * mem-stats.h: Likewise.
13667 * vec.h: No special processing for generators or ggc.
13668 * alias.c : Adjust include files.
13669 * alloc-pool.c : Likewise.
13670 * alloc-pool.h : Likewise.
13671 * asan.c : Likewise.
13672 * attribs.c : Likewise.
13673 * auto-inc-dec.c : Likewise.
13674 * auto-profile.c : Likewise.
13675 * bb-reorder.c : Likewise.
13676 * bitmap.c : Likewise.
13677 * bitmap.h : Likewise.
13678 * bt-load.c : Likewise.
13679 * builtins.c : Likewise.
13680 * caller-save.c : Likewise.
13681 * calls.c : Likewise.
13682 * ccmp.c : Likewise.
13683 * cfg.c : Likewise.
13684 * cfganal.c : Likewise.
13685 * cfgbuild.c : Likewise.
13686 * cfgcleanup.c : Likewise.
13687 * cfgexpand.c : Likewise.
13688 * cfghooks.c : Likewise.
13689 * cfgloop.c : Likewise.
13690 * cfgloop.h : Likewise.
13691 * cfgloopanal.c : Likewise.
13692 * cfgloopmanip.c : Likewise.
13693 * cfgrtl.c : Likewise.
13694 * cgraph.c : Likewise.
13695 * cgraphbuild.c : Likewise.
13696 * cgraphclones.c : Likewise.
13697 * cgraphunit.c : Likewise.
13698 * cilk-common.c : Likewise.
13699 * combine-stack-adj.c : Likewise.
13700 * combine.c : Likewise.
13701 * compare-elim.c : Likewise.
13702 * context.c : Likewise.
13703 * convert.c : Likewise.
13704 * coverage.c : Likewise.
13705 * cppbuiltin.c : Likewise.
13706 * cprop.c : Likewise.
13707 * cse.c : Likewise.
13708 * cselib.c : Likewise.
13709 * data-streamer-in.c : Likewise.
13710 * data-streamer-out.c : Likewise.
13711 * data-streamer.c : Likewise.
13712 * data-streamer.h : Likewise.
13713 * dbxout.c : Likewise.
13714 * dce.c : Likewise.
13715 * ddg.c : Likewise.
13716 * debug.c : Likewise.
13717 * df-core.c : Likewise.
13718 * df-problems.c : Likewise.
13719 * df-scan.c : Likewise.
13721 * dfp.c : Likewise.
13722 * dojump.c : Likewise.
13723 * dominance.c : Likewise.
13724 * domwalk.c : Likewise.
13725 * double-int.c : Likewise.
13726 * dse.c : Likewise.
13727 * dumpfile.c : Likewise.
13728 * dwarf2asm.c : Likewise.
13729 * dwarf2cfi.c : Likewise.
13730 * dwarf2out.c : Likewise.
13731 * emit-rtl.c : Likewise.
13732 * et-forest.c : Likewise.
13733 * except.c : Likewise.
13734 * except.h : Likewise.
13735 * explow.c : Likewise.
13736 * expmed.c : Likewise.
13737 * expr.c : Likewise.
13738 * final.c : Likewise.
13739 * fixed-value.c : Likewise.
13740 * fold-const.c : Likewise.
13741 * function.c : Likewise.
13742 * fwprop.c : Likewise.
13743 * gcc-plugin.h : Likewise.
13744 * gcc.c : Likewise.
13745 * gcse-common.c : Likewise.
13746 * gcse.c : Likewise.
13747 * genattrtab.c : Likewise.
13748 * genautomata.c : Likewise.
13749 * genconditions.c : Likewise.
13750 * genemit.c : Likewise.
13751 * generic-match-head.c : Likewise.
13752 * genextract.c : Likewise.
13753 * gengtype-state.c : Likewise.
13754 * gengtype.c : Likewise.
13755 * genhooks.c : Likewise.
13756 * genmatch.c : Likewise.
13757 * genmodes.c : Likewise.
13758 * genrecog.c : Likewise.
13759 * gensupport.c : Likewise.
13760 * ggc-common.c : Likewise.
13761 * ggc-internal.h : Likewise.
13762 * ggc-none.c : Likewise.
13763 * ggc-page.c : Likewise.
13764 * gimple-builder.c : Likewise.
13765 * gimple-expr.c : Likewise.
13766 * gimple-fold.c : Likewise.
13767 * gimple-iterator.c : Likewise.
13768 * gimple-low.c : Likewise.
13769 * gimple-match-head.c : Likewise.
13770 * gimple-pretty-print.c : Likewise.
13771 * gimple-ssa-isolate-paths.c : Likewise.
13772 * gimple-ssa-strength-reduction.c : Likewise.
13773 * gimple-ssa.h : Likewise.
13774 * gimple-streamer-in.c : Likewise.
13775 * gimple-streamer-out.c : Likewise.
13776 * gimple-streamer.h : Likewise.
13777 * gimple-walk.c : Likewise.
13778 * gimple.c : Likewise.
13779 * gimplify-me.c : Likewise.
13780 * gimplify.c : Likewise.
13781 * godump.c : Likewise.
13782 * graph.c : Likewise.
13783 * graphds.c : Likewise.
13784 * graphite-blocking.c : Likewise.
13785 * graphite-dependences.c : Likewise.
13786 * graphite-interchange.c : Likewise.
13787 * graphite-isl-ast-to-gimple.c : Likewise.
13788 * graphite-optimize-isl.c : Likewise.
13789 * graphite-poly.c : Likewise.
13790 * graphite-scop-detection.c : Likewise.
13791 * graphite-sese-to-poly.c : Likewise.
13792 * graphite.c : Likewise.
13793 * haifa-sched.c : Likewise.
13794 * hard-reg-set.h : Likewise.
13795 * hw-doloop.c : Likewise.
13796 * ifcvt.c : Likewise.
13797 * inchash.c : Likewise.
13798 * incpath.c : Likewise.
13799 * init-regs.c : Likewise.
13800 * input.c : Likewise.
13801 * internal-fn.c : Likewise.
13802 * ipa-chkp.c : Likewise.
13803 * ipa-comdats.c : Likewise.
13804 * ipa-cp.c : Likewise.
13805 * ipa-devirt.c : Likewise.
13806 * ipa-icf-gimple.c : Likewise.
13807 * ipa-icf.c : Likewise.
13808 * ipa-inline-analysis.c : Likewise.
13809 * ipa-inline-transform.c : Likewise.
13810 * ipa-inline.c : Likewise.
13811 * ipa-polymorphic-call.c : Likewise.
13812 * ipa-profile.c : Likewise.
13813 * ipa-prop.c : Likewise.
13814 * ipa-pure-const.c : Likewise.
13815 * ipa-ref.c : Likewise.
13816 * ipa-reference.c : Likewise.
13817 * ipa-split.c : Likewise.
13818 * ipa-utils.c : Likewise.
13819 * ipa-visibility.c : Likewise.
13820 * ipa.c : Likewise.
13821 * ira-build.c : Likewise.
13822 * ira-color.c : Likewise.
13823 * ira-conflicts.c : Likewise.
13824 * ira-costs.c : Likewise.
13825 * ira-emit.c : Likewise.
13826 * ira-lives.c : Likewise.
13827 * ira.c : Likewise.
13828 * jump.c : Likewise.
13829 * langhooks.c : Likewise.
13830 * lcm.c : Likewise.
13831 * libfuncs.h : Likewise.
13832 * lists.c : Likewise.
13833 * loop-doloop.c : Likewise.
13834 * loop-init.c : Likewise.
13835 * loop-invariant.c : Likewise.
13836 * loop-iv.c : Likewise.
13837 * loop-unroll.c : Likewise.
13838 * lower-subreg.c : Likewise.
13839 * lra-assigns.c : Likewise.
13840 * lra-coalesce.c : Likewise.
13841 * lra-constraints.c : Likewise.
13842 * lra-eliminations.c : Likewise.
13843 * lra-lives.c : Likewise.
13844 * lra-remat.c : Likewise.
13845 * lra-spills.c : Likewise.
13846 * lra.c : Likewise.
13847 * lto-cgraph.c : Likewise.
13848 * lto-compress.c : Likewise.
13849 * lto-opts.c : Likewise.
13850 * lto-section-in.c : Likewise.
13851 * lto-section-out.c : Likewise.
13852 * lto-streamer-in.c : Likewise.
13853 * lto-streamer-out.c : Likewise.
13854 * lto-streamer.c : Likewise.
13855 * lto-streamer.h : Likewise.
13856 * mcf.c : Likewise.
13857 * mode-switching.c : Likewise.
13858 * modulo-sched.c : Likewise.
13859 * omega.c : Likewise.
13860 * omp-low.c : Likewise.
13861 * optabs.c : Likewise.
13862 * opts-global.c : Likewise.
13863 * opts.h : Likewise.
13864 * passes.c : Likewise.
13865 * plugin.c : Likewise.
13866 * postreload-gcse.c : Likewise.
13867 * postreload.c : Likewise.
13868 * predict.c : Likewise.
13869 * print-rtl.c : Likewise.
13870 * print-tree.c : Likewise.
13871 * profile.c : Likewise.
13872 * read-md.c : Likewise.
13873 * read-md.h : Likewise.
13874 * read-rtl.c : Likewise.
13875 * real.c : Likewise.
13876 * realmpfr.c : Likewise.
13877 * recog.c : Likewise.
13878 * ree.c : Likewise.
13879 * reg-stack.c : Likewise.
13880 * regcprop.c : Likewise.
13881 * reginfo.c : Likewise.
13882 * regrename.c : Likewise.
13883 * regstat.c : Likewise.
13884 * reload.c : Likewise.
13885 * reload1.c : Likewise.
13886 * reorg.c : Likewise.
13887 * resource.c : Likewise.
13888 * rtl-chkp.c : Likewise.
13889 * rtl.c : Likewise.
13890 * rtl.h : Likewise.
13891 * rtlanal.c : Likewise.
13892 * rtlhash.c : Likewise.
13893 * rtlhash.h : Likewise.
13894 * rtlhooks.c : Likewise.
13895 * sanopt.c : Likewise.
13896 * sched-deps.c : Likewise.
13897 * sched-ebb.c : Likewise.
13898 * sched-rgn.c : Likewise.
13899 * sched-vis.c : Likewise.
13900 * sdbout.c : Likewise.
13901 * sel-sched-dump.c : Likewise.
13902 * sel-sched-ir.c : Likewise.
13903 * sel-sched-ir.h : Likewise.
13904 * sel-sched.c : Likewise.
13905 * sese.c : Likewise.
13906 * shrink-wrap.c : Likewise.
13907 * shrink-wrap.h : Likewise.
13908 * simplify-rtx.c : Likewise.
13909 * stack-ptr-mod.c : Likewise.
13910 * statistics.c : Likewise.
13911 * stmt.c : Likewise.
13912 * stor-layout.c : Likewise.
13913 * store-motion.c : Likewise.
13914 * stringpool.c : Likewise.
13915 * symtab.c : Likewise.
13916 * target-globals.c : Likewise.
13917 * targhooks.c : Likewise.
13918 * tlink.c : Likewise.
13919 * toplev.c : Likewise.
13920 * tracer.c : Likewise.
13921 * trans-mem.c : Likewise.
13922 * tree-affine.c : Likewise.
13923 * tree-affine.h : Likewise.
13924 * tree-browser.c : Likewise.
13925 * tree-call-cdce.c : Likewise.
13926 * tree-cfg.c : Likewise.
13927 * tree-cfgcleanup.c : Likewise.
13928 * tree-chkp-opt.c : Likewise.
13929 * tree-chkp.c : Likewise.
13930 * tree-chrec.c : Likewise.
13931 * tree-complex.c : Likewise.
13932 * tree-data-ref.c : Likewise.
13933 * tree-dfa.c : Likewise.
13934 * tree-diagnostic.c : Likewise.
13935 * tree-dump.c : Likewise.
13936 * tree-eh.c : Likewise.
13937 * tree-eh.h : Likewise.
13938 * tree-emutls.c : Likewise.
13939 * tree-hasher.h : Likewise.
13940 * tree-if-conv.c : Likewise.
13941 * tree-inline.c : Likewise.
13942 * tree-inline.h : Likewise.
13943 * tree-into-ssa.c : Likewise.
13944 * tree-iterator.c : Likewise.
13945 * tree-loop-distribution.c : Likewise.
13946 * tree-nested.c : Likewise.
13947 * tree-nrv.c : Likewise.
13948 * tree-object-size.c : Likewise.
13949 * tree-outof-ssa.c : Likewise.
13950 * tree-parloops.c : Likewise.
13951 * tree-phinodes.c : Likewise.
13952 * tree-predcom.c : Likewise.
13953 * tree-pretty-print.c : Likewise.
13954 * tree-profile.c : Likewise.
13955 * tree-scalar-evolution.c : Likewise.
13956 * tree-sra.c : Likewise.
13957 * tree-ssa-address.c : Likewise.
13958 * tree-ssa-alias.c : Likewise.
13959 * tree-ssa-ccp.c : Likewise.
13960 * tree-ssa-coalesce.c : Likewise.
13961 * tree-ssa-copy.c : Likewise.
13962 * tree-ssa-copyrename.c : Likewise.
13963 * tree-ssa-dce.c : Likewise.
13964 * tree-ssa-dom.c : Likewise.
13965 * tree-ssa-dse.c : Likewise.
13966 * tree-ssa-forwprop.c : Likewise.
13967 * tree-ssa-ifcombine.c : Likewise.
13968 * tree-ssa-live.c : Likewise.
13969 * tree-ssa-loop-ch.c : Likewise.
13970 * tree-ssa-loop-im.c : Likewise.
13971 * tree-ssa-loop-ivcanon.c : Likewise.
13972 * tree-ssa-loop-ivopts.c : Likewise.
13973 * tree-ssa-loop-manip.c : Likewise.
13974 * tree-ssa-loop-niter.c : Likewise.
13975 * tree-ssa-loop-prefetch.c : Likewise.
13976 * tree-ssa-loop-unswitch.c : Likewise.
13977 * tree-ssa-loop.c : Likewise.
13978 * tree-ssa-math-opts.c : Likewise.
13979 * tree-ssa-operands.c : Likewise.
13980 * tree-ssa-phiopt.c : Likewise.
13981 * tree-ssa-phiprop.c : Likewise.
13982 * tree-ssa-pre.c : Likewise.
13983 * tree-ssa-propagate.c : Likewise.
13984 * tree-ssa-reassoc.c : Likewise.
13985 * tree-ssa-sccvn.c : Likewise.
13986 * tree-ssa-scopedtables.c : Likewise.
13987 * tree-ssa-sink.c : Likewise.
13988 * tree-ssa-strlen.c : Likewise.
13989 * tree-ssa-structalias.c : Likewise.
13990 * tree-ssa-tail-merge.c : Likewise.
13991 * tree-ssa-ter.c : Likewise.
13992 * tree-ssa-threadedge.c : Likewise.
13993 * tree-ssa-threadupdate.c : Likewise.
13994 * tree-ssa-uncprop.c : Likewise.
13995 * tree-ssa-uninit.c : Likewise.
13996 * tree-ssa.c : Likewise.
13997 * tree-ssanames.c : Likewise.
13998 * tree-stdarg.c : Likewise.
13999 * tree-streamer-in.c : Likewise.
14000 * tree-streamer-out.c : Likewise.
14001 * tree-streamer.c : Likewise.
14002 * tree-streamer.h : Likewise.
14003 * tree-switch-conversion.c : Likewise.
14004 * tree-tailcall.c : Likewise.
14005 * tree-vect-data-refs.c : Likewise.
14006 * tree-vect-generic.c : Likewise.
14007 * tree-vect-loop-manip.c : Likewise.
14008 * tree-vect-loop.c : Likewise.
14009 * tree-vect-patterns.c : Likewise.
14010 * tree-vect-slp.c : Likewise.
14011 * tree-vect-stmts.c : Likewise.
14012 * tree-vectorizer.c : Likewise.
14013 * tree-vectorizer.h : Likewise.
14014 * tree-vrp.c : Likewise.
14015 * tree.c : Likewise.
14016 * tsan.c : Likewise.
14017 * ubsan.c : Likewise.
14018 * valtrack.c : Likewise.
14019 * valtrack.h : Likewise.
14020 * value-prof.c : Likewise.
14021 * var-tracking.c : Likewise.
14022 * varasm.c : Likewise.
14023 * varpool.c : Likewise.
14025 * vmsdbgout.c : Likewise.
14026 * vtable-verify.c : Likewise.
14027 * vtable-verify.h : Likewise.
14028 * web.c : Likewise.
14029 * wide-int.cc : Likewise.
14030 * xcoffout.c : Likewise.
14031 * config/aarch64/aarch64-builtins.c : Likewise.
14032 * config/aarch64/aarch64.c : Likewise.
14033 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14034 * config/alpha/alpha.c : Likewise.
14035 * config/arc/arc.c : Likewise.
14036 * config/arm/aarch-common.c : Likewise.
14037 * config/arm/arm-builtins.c : Likewise.
14038 * config/arm/arm-c.c : Likewise.
14039 * config/arm/arm.c : Likewise.
14040 * config/avr/avr-c.c : Likewise.
14041 * config/avr/avr-log.c : Likewise.
14042 * config/avr/avr.c : Likewise.
14043 * config/bfin/bfin.c : Likewise.
14044 * config/c6x/c6x.c : Likewise.
14045 * config/cr16/cr16.c : Likewise.
14046 * config/cris/cris.c : Likewise.
14047 * config/darwin-c.c : Likewise.
14048 * config/darwin.c : Likewise.
14049 * config/default-c.c : Likewise.
14050 * config/epiphany/epiphany.c : Likewise.
14051 * config/epiphany/mode-switch-use.c : Likewise.
14052 * config/epiphany/resolve-sw-modes.c : Likewise.
14053 * config/fr30/fr30.c : Likewise.
14054 * config/frv/frv.c : Likewise.
14055 * config/ft32/ft32.c : Likewise.
14056 * config/glibc-c.c : Likewise.
14057 * config/h8300/h8300.c : Likewise.
14058 * config/i386/i386-c.c : Likewise.
14059 * config/i386/i386.c : Likewise.
14060 * config/i386/msformat-c.c : Likewise.
14061 * config/i386/winnt-cxx.c : Likewise.
14062 * config/i386/winnt-stubs.c : Likewise.
14063 * config/i386/winnt.c : Likewise.
14064 * config/ia64/ia64-c.c : Likewise.
14065 * config/ia64/ia64.c : Likewise.
14066 * config/iq2000/iq2000.c : Likewise.
14067 * config/lm32/lm32.c : Likewise.
14068 * config/m32c/m32c-pragma.c : Likewise.
14069 * config/m32c/m32c.c : Likewise.
14070 * config/m32r/m32r.c : Likewise.
14071 * config/m68k/m68k.c : Likewise.
14072 * config/mcore/mcore.c : Likewise.
14073 * config/mep/mep-pragma.c : Likewise.
14074 * config/mep/mep.c : Likewise.
14075 * config/microblaze/microblaze-c.c : Likewise.
14076 * config/microblaze/microblaze.c : Likewise.
14077 * config/mips/mips.c : Likewise.
14078 * config/mmix/mmix.c : Likewise.
14079 * config/mn10300/mn10300.c : Likewise.
14080 * config/moxie/moxie.c : Likewise.
14081 * config/msp430/msp430-c.c : Likewise.
14082 * config/msp430/msp430.c : Likewise.
14083 * config/nds32/nds32-cost.c : Likewise.
14084 * config/nds32/nds32-fp-as-gp.c : Likewise.
14085 * config/nds32/nds32-intrinsic.c : Likewise.
14086 * config/nds32/nds32-isr.c : Likewise.
14087 * config/nds32/nds32-md-auxiliary.c : Likewise.
14088 * config/nds32/nds32-memory-manipulation.c : Likewise.
14089 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14090 * config/nds32/nds32-predicates.c : Likewise.
14091 * config/nds32/nds32.c : Likewise.
14092 * config/nios2/nios2.c : Likewise.
14093 * config/nvptx/nvptx.c : Likewise.
14094 * config/pa/pa.c : Likewise.
14095 * config/pdp11/pdp11.c : Likewise.
14096 * config/rl78/rl78-c.c : Likewise.
14097 * config/rl78/rl78.c : Likewise.
14098 * config/rs6000/rs6000-c.c : Likewise.
14099 * config/rs6000/rs6000.c : Likewise.
14100 * config/rx/rx.c : Likewise.
14101 * config/s390/s390-c.c : Likewise.
14102 * config/s390/s390.c : Likewise.
14103 * config/sh/sh-c.c : Likewise.
14104 * config/sh/sh-mem.cc : Likewise.
14105 * config/sh/sh.c : Likewise.
14106 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14107 * config/sh/sh_treg_combine.cc : Likewise.
14108 * config/sol2-c.c : Likewise.
14109 * config/sol2-cxx.c : Likewise.
14110 * config/sol2-stubs.c : Likewise.
14111 * config/sol2.c : Likewise.
14112 * config/sparc/sparc-c.c : Likewise.
14113 * config/sparc/sparc.c : Likewise.
14114 * config/spu/spu-c.c : Likewise.
14115 * config/spu/spu.c : Likewise.
14116 * config/stormy16/stormy16.c : Likewise.
14117 * config/tilegx/mul-tables.c : Likewise.
14118 * config/tilegx/tilegx-c.c : Likewise.
14119 * config/tilegx/tilegx.c : Likewise.
14120 * config/tilepro/mul-tables.c : Likewise.
14121 * config/tilepro/tilepro-c.c : Likewise.
14122 * config/tilepro/tilepro.c : Likewise.
14123 * config/v850/v850-c.c : Likewise.
14124 * config/v850/v850.c : Likewise.
14125 * config/vax/vax.c : Likewise.
14126 * config/visium/visium.c : Likewise.
14127 * config/vms/vms-c.c : Likewise.
14128 * config/vms/vms.c : Likewise.
14129 * config/vxworks.c : Likewise.
14130 * config/winnt-c.c : Likewise.
14131 * config/xtensa/xtensa.c : Likewise.
14133 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14136 * ipa-utils.h (warn_types_mismatch): Update prototype.
14137 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14139 (type_mismatch_p): New function.
14140 (warn_types_mismatch): Reorg to work better on non-C++ types.
14141 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14142 (add_type_duplicate): Update.
14144 2015-06-08 Tom de Vries <tom@codesourcery.com>
14146 PR rtl-optimization/66444
14147 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14150 2015-06-08 Richard Biener <rguenther@suse.de>
14152 PR tree-optimization/66422
14153 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14154 block after inserted gcc_unreachable.
14156 2015-06-08 Nick Clifton <nickc@redhat.com>
14158 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14159 (rx_promote_function_mode): Likewise.
14160 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14162 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14164 * genattrtab.c (insn_alternatives): Change type from int *
14166 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14167 (get_attr_value): Change type of num_alt to uint64_t.
14168 (compute_alternative_mask): Change return type from
14169 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14170 (make_alternative_compare, mk_attr_alt): Change argument type
14171 from int to uint64_t.
14172 (simplify_test_exp): Change type of i from int to uint64_t.
14173 Shift ((uint64_t) 1) instead of 1 up.
14174 (main): Adjust oballocvec first argument from int to uint64_t.
14175 Shift ((uint64_t) 1) instead of 1 up.
14177 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14180 * gdbhooks.py: Import sys.
14181 (intptr): New function. Replace int(...) by intptr(...).
14183 2015-06-08 Richard Biener <rguenther@suse.de>
14185 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14186 adjustment for gaps at the end of a SLP load group properly.
14187 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14188 all permutations we can generate.
14189 (vect_transform_slp_perm_load): Use the correct group-size.
14191 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14193 * genmatch.c (expr::gen_transform): For conditions, guess the type
14194 from the second operand.
14196 2015-06-08 Tom de Vries <tom@codesourcery.com>
14198 PR tree-optimization/66442
14199 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14200 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14201 if the loop latch is not a singleton. Use
14202 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14204 2015-06-08 Marek Polacek <polacek@redhat.com>
14207 * toplev.c (check_global_declaration): Don't warn about artificial
14210 2015-06-08 Tom de Vries <tom@codesourcery.com>
14212 PR tree-optimization/66436
14213 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14215 * gimplify.c: Add tree-dump.h include.
14216 (gimplify_function_tree): Dump function to gimple dump file.
14217 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14220 2015-06-08 Tom de Vries <tom@codesourcery.com>
14222 PR tree-optimization/66435
14223 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14226 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14228 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14229 of ptr_type_node to not be ptr_to_node.
14230 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14231 TREE_TYPE of pointers.
14232 * gimple-expr.c (useless_type_conversion): Reorder the check for
14233 function pointers and TYPE_CANONICAL.
14235 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14238 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14239 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14240 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14242 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14243 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14244 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14245 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14246 and non iso if unix2003.
14248 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14250 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14252 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14254 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14255 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14256 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14257 except.c, final.c, function.c, gcse-common.c, genemit.c,
14258 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14259 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14260 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14261 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14264 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14266 * combine.c (combine_split_insns): Remove cast.
14267 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14268 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14269 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14270 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14271 * genemit.c (gen_split): Change return type of generated functions to
14273 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14274 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14275 gen_peephole2_* functions.
14276 (print_subroutine, main): Likewise.
14277 * recog.c (peephole2_optimize): Remove cast.
14278 (peep2_next_insn): Promote return type to rtx_insn.
14279 * recog.h (peep2_next_insn): Fix prototype.
14280 * rtl.h (try_split, split_insns): Likewise.
14282 2015-06-06 DJ Delorie <dj@redhat.com>
14284 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14285 and subtraction too.
14287 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14290 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14291 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14292 instead of Snd. Disparage Sid/z alternative with '^'.
14294 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14296 * dwarf2out.c: Remove deferred_locations*.
14297 (dwarf2_debug_hooks): Add early_finish hook.
14298 Remove global_decl hook.
14299 Add early_global_decl and late_global_decl hook.
14300 New global early_dwarf.
14301 New structure set_early_dwarf.
14302 (output_die): Indicate whether a DIE was generated early
14303 when generating assembly with -dA.
14304 (struct limbo_die_struct): Document created_for field.
14305 Remove file_table_last_lookup.
14306 (remove_AT): Return TRUE if successful.
14307 (remove_child_TAG): Clear die_parent.
14308 (reparent_child): New function abstracted from...
14309 (splice_child_die): ...here.
14310 (new_die): ICE if a DIE ends up in limbo too late.
14312 (defer_location): Remove.
14313 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14314 (fill_variable_array_bounds): New.
14315 (decl_start_label): Call fill_variable_array_bounds.
14316 (gen_formal_parameter_die): Rewrite to reuse previously generated
14318 (gen_subprogram_die): Same.
14319 (gen_variable_die): Same.
14320 (gen_const_die): Same.
14321 (gen_label_die): Same.
14322 (gen_lexical_block_die): Same.
14323 (decl_will_get_specification_p): New.
14324 (local_function_static): New.
14325 (gen_struct_or_union_type_die): Fill in variable-length fields.
14326 (gen_typedef_die): Fill in variable-length typedefs.
14327 (gen_tagged_type_die): Gracefully return on error_mark_node.
14328 Handle re-entrancy.
14329 (gen_type_die_with_usage): Handle variable-length types.
14330 Remove duplicate code for ARRAY_TYPE case.
14331 (process_scope_var): Only process imported modules during early
14333 (dwarf2out_early_global_decl): New.
14334 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14335 (dwarf2out_type_decl): Set early_dwarf while calling
14337 (dwarf2out_decl): Verify that we did not recreate a previously
14339 Do not return on DECL_EXTERNALs in VAR_DECLs.
14340 Abstract some code to local_function_static.
14341 (lookup_filename): Remove use of file_table_last_lookup.
14342 Gracefully exit on missing file_name.
14343 (dwarf2out_finish): Verify limbo list.
14344 Remove deferred_locations_list use.
14345 Move deferred_asm_name and limbo flushing to...
14346 (dwarf2out_early_finish): ...here. New.
14347 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14348 deferred_asm_name, and file_table_last_lookup.
14349 * cgraph.h (referred_to_p): Add default argument.
14350 * cgraphunit.c (referred_to_p): Add and handle include_self
14352 (analyze_functions): Add first_time argument.
14353 Call check_global_declaration for all symbols.
14354 Call late_global_decl for nodes for moribund nodes.
14355 (finalize_compilation_unit): Add new argument to
14357 Call early_global_decl for functions.
14358 Call early_finish debug hook.
14359 * dbxout.c (dbxout_early_global_decl): New.
14360 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14361 (dbx_debug_hooks): Add new hooks.
14362 (xcoff_debug_hooks): Same.
14363 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14364 Add early and late debug hooks.
14365 Remove global_decl hook.
14366 * debug.h (struct gcc_debug_hooks): Add early_finish,
14367 early_global_decl, and late_global_decl fields.
14368 Remove global_decl field.
14369 Document gcc_debug_hooks.
14370 * gengtype.c (output_typename): Remove.
14371 * godump.c (go_early_global_decl): New.
14372 (go_late_global_decl): New.
14373 (go_global_decl): Remove.
14374 (dump_go_spec_init): Remove global_decl. Add
14375 {early,late}_global_decl.
14376 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14377 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14378 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14379 (write_global_declarations): Remove.
14380 (global_decl_processing): New.
14381 * langhooks.h (struct lang_hooks_for_decls): Remove
14382 final_write_globals field.
14383 Add post_compilation_parsing_cleanups field.
14384 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14385 * sdbout.c: Add early and late_global_decl hooks. Remove
14386 sdbout_global_decl hook.
14387 Add early_finish field for sdb_debug_hooks.
14388 (sdbout_global_decl): Remove.
14389 (sdbout_early_global_decl): New.
14390 (sdbout_late_global_decl): New.
14391 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14392 * toplev.c (check_global_declaration): Rename from
14393 check_global_declaration_1.
14394 Adapt to use symtab infrastructure.
14395 (check_global_declarations): Remove.
14396 (emit_debug_global_declarations): Remove.
14397 (compile_file): Remove call to final_write_globals langhook.
14398 Run the actual compilation process.
14399 Perform any post compilation parser cleanups.
14400 Generate late debug info.
14401 * toplev.h (check_global_declaration): New.
14402 (check_global_declaration_1): Remove.
14403 (check_global_declarations): Remove.
14404 (write_global_declarations): Remove.
14405 (emit_debug_global_declarations): Remove.
14406 (global_decl_processing): New.
14407 * tree-core.h (struct tree_block): Add DIE field.
14408 * tree.h (BLOCK_DIE): New.
14409 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14411 (vmsdbgout_early_global_decl): New.
14412 (vmsdbgout_late_global_decl): New.
14413 Add early_finish debug hook field to vmsdbg_debug_hooks.
14414 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14415 Add early and late_global_decl debug hooks.
14417 2015-06-05 Julian Brown <julian@codesourcery.com>
14418 Sandra Loosemore <sandra@codesourcery.com>
14420 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14421 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14422 to print-sysroot-suffix.sh script.
14424 2015-06-05 Tom de Vries <tom@codesourcery.com>
14426 merge from gomp4 branch:
14427 2015-05-28 Tom de Vries <tom@codesourcery.com>
14429 PR tree-optimization/65443
14430 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14431 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14432 (try_transform_to_exit_first_loop_alt): New function.
14433 (transform_to_exit_first_loop): Use
14434 try_transform_to_exit_first_loop_alt.
14436 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14438 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14439 emit_cmp_and_jump_insns with the mode of target.
14441 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14443 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14445 2015-06-04 DJ Delorie <dj@redhat.com>
14447 * config/msp430/msp430.md (movsi_s): New. Special case for
14448 storing a 20-bit symbol into a 32-bit register.
14449 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14450 * config/msp430/predicates.md (msp430_symbol_operand): New.
14452 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14454 * c-family/c-common.c (noplt): New attribute.
14455 (handle_noplt_attribute): New handler.
14456 * calls.c (prepare_call_address): Check for noplt
14458 * config/i386/i386.c (ix86_expand_call): Check
14459 for noplt attribute.
14460 (ix86_nopic_noplt_attribute_p): New function.
14461 (ix86_output_call_insn): Output indirect call for non-pic
14463 * doc/extend.texi (noplt): Document new attribute.
14464 * doc/invoke.texi: Document new attribute.
14466 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14468 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14469 real.h, and fixed-value.h when included in host source files.
14470 * double-int.h: Remove redundant #includes listed above.
14471 * fixed-value.h: Likewise.
14472 * real.h: Likewise.
14473 * wide-int.h: Likewise.
14474 * inchash.h: Likewise.
14475 * rtl.h: Add some include files When included from a generator file.
14476 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14477 * internal-fn.h: Don't include coretypes.h.
14478 * alias.c: Adjust includes for restructured coretypes.h.
14479 * asan.c: Likewise.
14480 * attribs.c: Likewise.
14481 * auto-inc-dec.c: Likewise.
14482 * auto-profile.c: Likewise.
14483 * bb-reorder.c: Likewise.
14484 * bt-load.c: Likewise.
14485 * builtins.c: Likewise.
14486 * caller-save.c: Likewise.
14487 * calls.c: Likewise.
14488 * ccmp.c: Likewise.
14490 * cfganal.c: Likewise.
14491 * cfgbuild.c: Likewise.
14492 * cfgcleanup.c: Likewise.
14493 * cfgexpand.c: Likewise.
14494 * cfghooks.c: Likewise.
14495 * cfgloop.c: Likewise.
14496 * cfgloop.h: Likewise.
14497 * cfgloopanal.c: Likewise.
14498 * cfgloopmanip.c: Likewise.
14499 * cfgrtl.c: Likewise.
14500 * cgraph.c: Likewise.
14501 * cgraphbuild.c: Likewise.
14502 * cgraphclones.c: Likewise.
14503 * cgraphunit.c: Likewise.
14504 * cilk-common.c: Likewise.
14505 * combine-stack-adj.c: Likewise.
14506 * combine.c: Likewise.
14507 * compare-elim.c: Likewise.
14508 * convert.c: Likewise.
14509 * coverage.c: Likewise.
14510 * cppbuiltin.c: Likewise.
14511 * cprop.c: Likewise.
14513 * cselib.c: Likewise.
14514 * data-streamer-in.c: Likewise.
14515 * data-streamer-out.c: Likewise.
14516 * data-streamer.c: Likewise.
14517 * dbxout.c: Likewise.
14520 * debug.c: Likewise.
14521 * df-core.c: Likewise.
14522 * df-problems.c: Likewise.
14523 * df-scan.c: Likewise.
14526 * dojump.c: Likewise.
14527 * dominance.c: Likewise.
14528 * domwalk.c: Likewise.
14529 * double-int.c: Likewise.
14531 * dumpfile.c: Likewise.
14532 * dwarf2asm.c: Likewise.
14533 * dwarf2cfi.c: Likewise.
14534 * dwarf2out.c: Likewise.
14535 * dwarf2out.h: Likewise.
14536 * emit-rtl.c: Likewise.
14537 * et-forest.c: Likewise.
14538 * except.c: Likewise.
14539 * explow.c: Likewise.
14540 * expmed.c: Likewise.
14541 * expr.c: Likewise.
14542 * final.c: Likewise.
14543 * fixed-value.c: Likewise.
14544 * fold-const.c: Likewise.
14545 * function.c: Likewise.
14546 * fwprop.c: Likewise.
14547 * gcc-plugin.h: Likewise.
14548 * gcse.c: Likewise.
14549 * generic-match-head.c: Likewise.
14550 * ggc-page.c: Likewise.
14551 * gimple-builder.c: Likewise.
14552 * gimple-expr.c: Likewise.
14553 * gimple-fold.c: Likewise.
14554 * gimple-iterator.c: Likewise.
14555 * gimple-low.c: Likewise.
14556 * gimple-match-head.c: Likewise.
14557 * gimple-pretty-print.c: Likewise.
14558 * gimple-ssa-isolate-paths.c: Likewise.
14559 * gimple-ssa-strength-reduction.c: Likewise.
14560 * gimple-streamer-in.c: Likewise.
14561 * gimple-streamer-out.c: Likewise.
14562 * gimple-streamer.h: Likewise.
14563 * gimple-walk.c: Likewise.
14564 * gimple.c: Likewise.
14565 * gimplify-me.c: Likewise.
14566 * gimplify.c: Likewise.
14567 * godump.c: Likewise.
14568 * graph.c: Likewise.
14569 * graphite-blocking.c: Likewise.
14570 * graphite-dependences.c: Likewise.
14571 * graphite-interchange.c: Likewise.
14572 * graphite-isl-ast-to-gimple.c: Likewise.
14573 * graphite-optimize-isl.c: Likewise.
14574 * graphite-poly.c: Likewise.
14575 * graphite-scop-detection.c: Likewise.
14576 * graphite-sese-to-poly.c: Likewise.
14577 * graphite.c: Likewise.
14578 * haifa-sched.c: Likewise.
14579 * hooks.h: Likewise.
14580 * hw-doloop.c: Likewise.
14581 * ifcvt.c: Likewise.
14582 * incpath.c: Likewise.
14583 * init-regs.c: Likewise.
14584 * internal-fn.c: Likewise.
14585 * ipa-chkp.c: Likewise.
14586 * ipa-comdats.c: Likewise.
14587 * ipa-cp.c: Likewise.
14588 * ipa-devirt.c: Likewise.
14589 * ipa-icf-gimple.c: Likewise.
14590 * ipa-icf.c: Likewise.
14591 * ipa-inline-analysis.c: Likewise.
14592 * ipa-inline-transform.c: Likewise.
14593 * ipa-inline.c: Likewise.
14594 * ipa-polymorphic-call.c: Likewise.
14595 * ipa-profile.c: Likewise.
14596 * ipa-prop.c: Likewise.
14597 * ipa-pure-const.c: Likewise.
14598 * ipa-ref.c: Likewise.
14599 * ipa-reference.c: Likewise.
14600 * ipa-split.c: Likewise.
14601 * ipa-utils.c: Likewise.
14602 * ipa-visibility.c: Likewise.
14604 * ira-build.c: Likewise.
14605 * ira-color.c: Likewise.
14606 * ira-conflicts.c: Likewise.
14607 * ira-costs.c: Likewise.
14608 * ira-emit.c: Likewise.
14609 * ira-lives.c: Likewise.
14611 * jump.c: Likewise.
14612 * langhooks.c: Likewise.
14614 * loop-doloop.c: Likewise.
14615 * loop-init.c: Likewise.
14616 * loop-invariant.c: Likewise.
14617 * loop-iv.c: Likewise.
14618 * loop-unroll.c: Likewise.
14619 * lower-subreg.c: Likewise.
14620 * lra-assigns.c: Likewise.
14621 * lra-coalesce.c: Likewise.
14622 * lra-constraints.c: Likewise.
14623 * lra-eliminations.c: Likewise.
14624 * lra-lives.c: Likewise.
14625 * lra-remat.c: Likewise.
14626 * lra-spills.c: Likewise.
14628 * lto-cgraph.c: Likewise.
14629 * lto-compress.c: Likewise.
14630 * lto-opts.c: Likewise.
14631 * lto-section-in.c: Likewise.
14632 * lto-section-out.c: Likewise.
14633 * lto-streamer-in.c: Likewise.
14634 * lto-streamer-out.c: Likewise.
14635 * lto-streamer.c: Likewise.
14637 * mode-switching.c: Likewise.
14638 * modulo-sched.c: Likewise.
14639 * omega.c: Likewise.
14640 * omp-low.c: Likewise.
14641 * optabs.c: Likewise.
14642 * opts-global.c: Likewise.
14643 * passes.c: Likewise.
14644 * plugin.c: Likewise.
14645 * postreload-gcse.c: Likewise.
14646 * postreload.c: Likewise.
14647 * predict.c: Likewise.
14648 * print-rtl.c: Likewise.
14649 * print-tree.c: Likewise.
14650 * profile.c: Likewise.
14651 * real.c: Likewise.
14652 * realmpfr.c: Likewise.
14653 * realmpfr.h: Likewise.
14654 * recog.c: Likewise.
14656 * reg-stack.c: Likewise.
14657 * regcprop.c: Likewise.
14658 * reginfo.c: Likewise.
14659 * regrename.c: Likewise.
14660 * regs.h: Likewise.
14661 * regstat.c: Likewise.
14662 * reload.c: Likewise.
14663 * reload1.c: Likewise.
14664 * reorg.c: Likewise.
14665 * resource.c: Likewise.
14666 * rtl-chkp.c: Likewise.
14667 * rtlanal.c: Likewise.
14668 * rtlhooks.c: Likewise.
14669 * sanopt.c: Likewise.
14670 * sched-deps.c: Likewise.
14671 * sched-ebb.c: Likewise.
14672 * sched-rgn.c: Likewise.
14673 * sched-vis.c: Likewise.
14674 * sdbout.c: Likewise.
14675 * sel-sched-dump.c: Likewise.
14676 * sel-sched-ir.c: Likewise.
14677 * sel-sched.c: Likewise.
14678 * sese.c: Likewise.
14679 * shrink-wrap.c: Likewise.
14680 * shrink-wrap.h: Likewise.
14681 * simplify-rtx.c: Likewise.
14682 * stack-ptr-mod.c: Likewise.
14683 * statistics.c: Likewise.
14684 * stmt.c: Likewise.
14685 * stor-layout.c: Likewise.
14686 * store-motion.c: Likewise.
14687 * stringpool.c: Likewise.
14688 * symtab.c: Likewise.
14689 * target-globals.c: Likewise.
14690 * targhooks.c: Likewise.
14691 * toplev.c: Likewise.
14692 * tracer.c: Likewise.
14693 * trans-mem.c: Likewise.
14694 * tree-affine.c: Likewise.
14695 * tree-affine.h: Likewise.
14696 * tree-browser.c: Likewise.
14697 * tree-call-cdce.c: Likewise.
14698 * tree-cfg.c: Likewise.
14699 * tree-cfgcleanup.c: Likewise.
14700 * tree-chkp-opt.c: Likewise.
14701 * tree-chkp.c: Likewise.
14702 * tree-chrec.c: Likewise.
14703 * tree-complex.c: Likewise.
14704 * tree-data-ref.c: Likewise.
14705 * tree-dfa.c: Likewise.
14706 * tree-diagnostic.c: Likewise.
14707 * tree-dump.c: Likewise.
14708 * tree-eh.c: Likewise.
14709 * tree-emutls.c: Likewise.
14710 * tree-if-conv.c: Likewise.
14711 * tree-inline.c: Likewise.
14712 * tree-into-ssa.c: Likewise.
14713 * tree-iterator.c: Likewise.
14714 * tree-loop-distribution.c: Likewise.
14715 * tree-nested.c: Likewise.
14716 * tree-nrv.c: Likewise.
14717 * tree-object-size.c: Likewise.
14718 * tree-outof-ssa.c: Likewise.
14719 * tree-parloops.c: Likewise.
14720 * tree-phinodes.c: Likewise.
14721 * tree-predcom.c: Likewise.
14722 * tree-pretty-print.c: Likewise.
14723 * tree-pretty-print.h: Likewise.
14724 * tree-profile.c: Likewise.
14725 * tree-scalar-evolution.c: Likewise.
14726 * tree-sra.c: Likewise.
14727 * tree-ssa-address.c: Likewise.
14728 * tree-ssa-alias.c: Likewise.
14729 * tree-ssa-ccp.c: Likewise.
14730 * tree-ssa-coalesce.c: Likewise.
14731 * tree-ssa-copy.c: Likewise.
14732 * tree-ssa-copyrename.c: Likewise.
14733 * tree-ssa-dce.c: Likewise.
14734 * tree-ssa-dom.c: Likewise.
14735 * tree-ssa-dse.c: Likewise.
14736 * tree-ssa-forwprop.c: Likewise.
14737 * tree-ssa-ifcombine.c: Likewise.
14738 * tree-ssa-live.c: Likewise.
14739 * tree-ssa-loop-ch.c: Likewise.
14740 * tree-ssa-loop-im.c: Likewise.
14741 * tree-ssa-loop-ivcanon.c: Likewise.
14742 * tree-ssa-loop-ivopts.c: Likewise.
14743 * tree-ssa-loop-manip.c: Likewise.
14744 * tree-ssa-loop-niter.c: Likewise.
14745 * tree-ssa-loop-prefetch.c: Likewise.
14746 * tree-ssa-loop-unswitch.c: Likewise.
14747 * tree-ssa-loop.c: Likewise.
14748 * tree-ssa-loop.h: Likewise.
14749 * tree-ssa-math-opts.c: Likewise.
14750 * tree-ssa-operands.c: Likewise.
14751 * tree-ssa-phiopt.c: Likewise.
14752 * tree-ssa-phiprop.c: Likewise.
14753 * tree-ssa-pre.c: Likewise.
14754 * tree-ssa-propagate.c: Likewise.
14755 * tree-ssa-reassoc.c: Likewise.
14756 * tree-ssa-sccvn.c: Likewise.
14757 * tree-ssa-scopedtables.c: Likewise.
14758 * tree-ssa-sink.c: Likewise.
14759 * tree-ssa-strlen.c: Likewise.
14760 * tree-ssa-structalias.c: Likewise.
14761 * tree-ssa-tail-merge.c: Likewise.
14762 * tree-ssa-ter.c: Likewise.
14763 * tree-ssa-threadedge.c: Likewise.
14764 * tree-ssa-threadupdate.c: Likewise.
14765 * tree-ssa-uncprop.c: Likewise.
14766 * tree-ssa-uninit.c: Likewise.
14767 * tree-ssa.c: Likewise.
14768 * tree-ssanames.c: Likewise.
14769 * tree-stdarg.c: Likewise.
14770 * tree-streamer-in.c: Likewise.
14771 * tree-streamer-out.c: Likewise.
14772 * tree-streamer.c: Likewise.
14773 * tree-switch-conversion.c: Likewise.
14774 * tree-tailcall.c: Likewise.
14775 * tree-vect-data-refs.c: Likewise.
14776 * tree-vect-generic.c: Likewise.
14777 * tree-vect-loop-manip.c: Likewise.
14778 * tree-vect-loop.c: Likewise.
14779 * tree-vect-patterns.c: Likewise.
14780 * tree-vect-slp.c: Likewise.
14781 * tree-vect-stmts.c: Likewise.
14782 * tree-vectorizer.c: Likewise.
14783 * tree-vrp.c: Likewise.
14784 * tree.c: Likewise.
14785 * tsan.c: Likewise.
14786 * ubsan.c: Likewise.
14787 * valtrack.c: Likewise.
14788 * value-prof.c: Likewise.
14789 * var-tracking.c: Likewise.
14790 * varasm.c: Likewise.
14791 * varpool.c: Likewise.
14792 * vmsdbgout.c: Likewise.
14793 * vtable-verify.c: Likewise.
14795 * wide-int-print.cc: Likewise.
14796 * wide-int-print.h: Likewise.
14797 * wide-int.cc: Likewise.
14798 * xcoffout.c: Likewise.
14799 * config/aarch64/aarch64-builtins.c: Likewise.
14800 * config/aarch64/aarch64.c: Likewise.
14801 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14802 * config/alpha/alpha.c: Likewise.
14803 * config/arc/arc.c: Likewise.
14804 * config/arm/aarch-common.c: Likewise.
14805 * config/arm/arm-builtins.c: Likewise.
14806 * config/arm/arm-c.c: Likewise.
14807 * config/arm/arm.c: Likewise.
14808 * config/avr/avr-c.c: Likewise.
14809 * config/avr/avr-log.c: Likewise.
14810 * config/avr/avr.c: Likewise.
14811 * config/bfin/bfin.c: Likewise.
14812 * config/c6x/c6x.c: Likewise.
14813 * config/cr16/cr16.c: Likewise.
14814 * config/cris/cris.c: Likewise.
14815 * config/darwin-c.c: Likewise.
14816 * config/darwin.c: Likewise.
14817 * config/default-c.c: Likewise.
14818 * config/epiphany/epiphany.c: Likewise.
14819 * config/epiphany/mode-switch-use.c: Likewise.
14820 * config/epiphany/resolve-sw-modes.c: Likewise.
14821 * config/fr30/fr30.c: Likewise.
14822 * config/frv/frv.c: Likewise.
14823 * config/ft32/ft32.c: Likewise.
14824 * config/glibc-c.c: Likewise.
14825 * config/h8300/h8300.c: Likewise.
14826 * config/i386/i386-c.c: Likewise.
14827 * config/i386/i386.c: Likewise.
14828 * config/i386/msformat-c.c: Likewise.
14829 * config/i386/winnt-cxx.c: Likewise.
14830 * config/i386/winnt-stubs.c: Likewise.
14831 * config/i386/winnt.c: Likewise.
14832 * config/ia64/ia64-c.c: Likewise.
14833 * config/ia64/ia64.c: Likewise.
14834 * config/iq2000/iq2000.c: Likewise.
14835 * config/lm32/lm32.c: Likewise.
14836 * config/m32c/m32c-pragma.c: Likewise.
14837 * config/m32c/m32c.c: Likewise.
14838 * config/m32r/m32r.c: Likewise.
14839 * config/m68k/m68k.c: Likewise.
14840 * config/mcore/mcore.c: Likewise.
14841 * config/mep/mep-pragma.c: Likewise.
14842 * config/mep/mep.c: Likewise.
14843 * config/microblaze/microblaze-c.c: Likewise.
14844 * config/microblaze/microblaze.c: Likewise.
14845 * config/mips/mips.c: Likewise.
14846 * config/mmix/mmix.c: Likewise.
14847 * config/mn10300/mn10300.c: Likewise.
14848 * config/moxie/moxie.c: Likewise.
14849 * config/msp430/msp430-c.c: Likewise.
14850 * config/msp430/msp430.c: Likewise.
14851 * config/nds32/nds32-cost.c: Likewise.
14852 * config/nds32/nds32-fp-as-gp.c: Likewise.
14853 * config/nds32/nds32-intrinsic.c: Likewise.
14854 * config/nds32/nds32-isr.c: Likewise.
14855 * config/nds32/nds32-md-auxiliary.c: Likewise.
14856 * config/nds32/nds32-memory-manipulation.c: Likewise.
14857 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14858 * config/nds32/nds32-predicates.c: Likewise.
14859 * config/nds32/nds32.c: Likewise.
14860 * config/nios2/nios2.c: Likewise.
14861 * config/nvptx/nvptx.c: Likewise.
14862 * config/pa/pa.c: Likewise.
14863 * config/pdp11/pdp11.c: Likewise.
14864 * config/rl78/rl78-c.c: Likewise.
14865 * config/rl78/rl78.c: Likewise.
14866 * config/rs6000/rs6000-c.c: Likewise.
14867 * config/rs6000/rs6000.c: Likewise.
14868 * config/rx/rx.c: Likewise.
14869 * config/s390/s390-c.c: Likewise.
14870 * config/s390/s390.c: Likewise.
14871 * config/sh/sh-c.c: Likewise.
14872 * config/sh/sh-mem.cc: Likewise.
14873 * config/sh/sh.c: Likewise.
14874 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14875 * config/sh/sh_treg_combine.cc: Likewise.
14876 * config/sol2-c.c: Likewise.
14877 * config/sol2-cxx.c: Likewise.
14878 * config/sol2-stubs.c: Likewise.
14879 * config/sol2.c: Likewise.
14880 * config/sparc/sparc-c.c: Likewise.
14881 * config/sparc/sparc.c: Likewise.
14882 * config/spu/spu-c.c: Likewise.
14883 * config/spu/spu.c: Likewise.
14884 * config/stormy16/stormy16.c: Likewise.
14885 * config/tilegx/mul-tables.c: Likewise.
14886 * config/tilegx/tilegx-c.c: Likewise.
14887 * config/tilegx/tilegx.c: Likewise.
14888 * config/tilepro/mul-tables.c: Likewise.
14889 * config/tilepro/tilepro-c.c: Likewise.
14890 * config/tilepro/tilepro.c: Likewise.
14891 * config/v850/v850-c.c: Likewise.
14892 * config/v850/v850.c: Likewise.
14893 * config/vax/vax.c: Likewise.
14894 * config/visium/visium.c: Likewise.
14895 * config/vms/vms-c.c: Likewise.
14896 * config/vms/vms.c: Likewise.
14897 * config/vxworks.c: Likewise.
14898 * config/winnt-c.c: Likewise.
14899 * config/xtensa/xtensa.c: Likewise.
14900 * common/config/bfin/bfin-common.c: Likewise.
14902 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
14904 * tree.h (tree_code_for_canonical_type_merging): New function.
14905 * tree.c (gimple_canonical_types_compatible_p): Use
14906 tree_code_for_canonical_type_merging..
14908 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14912 * doc/tm.texi: Regenerate.
14913 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14914 * target.def (TARGET_RELAXED_ORDERING): Likewise.
14915 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14916 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14917 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14918 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14919 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14920 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14921 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14923 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14925 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14926 register fma steering pass.
14927 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14928 AARCH64_TUNE_FMA_STEERING.
14930 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
14932 * tree.c (verify_type_variant): Verify that type and variant is
14934 (gimple_canonical_types_compatible_p): Look for main variants.
14936 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14938 * config.gcc (powerpc*-*-*): Add support for a new configure
14939 option --with-advance-toolchain=<xxx> which overrides using the
14940 default header files, libraries and dynamic linker.
14942 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14943 specs to support the configure --with-advance-toolchain=<xxx>
14945 (INCLUDE_EXTRA_SPEC): Likewise.
14946 (LINK_OS_EXTRA_SPEC32): Likewise.
14947 (LINK_OK_EXTRA_SPEC64): Likewise.
14948 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14949 (DYNAMIC_LINKER_PREFIX): Likewise.
14950 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14952 (GLIBC_DYNAMIC_LINKER32): Likewise.
14953 (GLIBC_DYNAMIC_LINKER64): Likewise.
14954 (LINK_OS_LINUX_SPEC32): Likewise.
14955 (LINK_OS_LINUX_SPEC64): Likewise.
14957 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14958 configuration option.
14960 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
14963 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14964 to determine current function ABI.
14965 (ix86_function_value_regno_p): Ditto.
14967 2015-06-03 Martin Liska <mliska@suse.cz>
14969 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14970 * bitmap.h (struct bitmap_usage): Likewise.
14971 * ggc-common.c (struct ggc_usage): Likewise.
14972 * mem-stats.h (struct mem_location): Likewise.
14973 (struct mem_usage): Likewise.
14974 * vec.c (struct vec_usage): Likewise.
14976 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
14978 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14981 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
14983 * doc/plugins.texi (enum plugin_event): New event.
14984 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14985 and PLUGIN_FINISH_FUNCTION.
14986 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14987 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14989 2015-06-03 Richard Biener <rguenther@suse.de>
14991 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14992 compute GROUP_GAP for the first element.
14993 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14996 2015-06-03 Nick Clifton <nickc@redhat.com>
14998 * config/rl78/rl78-real.md: Add peepholes to avoid a register
14999 copy when calling a function.
15000 * config/rl78/rl78.c (need_to_save): Do not push the frame
15001 pointer in an interrupt handler prologue if it is never used.
15003 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15005 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15007 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15009 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15010 reference when cloning alias node.
15012 2015-06-03 Martin Liska <mliska@suse.cz>
15014 * alloc-pool.h (struct pool_usage): Correct space padding.
15015 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15016 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15017 * tree.c (dump_tree_statistics): Align columns in a report.
15019 2015-06-03 Martin Liska <mliska@suse.cz>
15021 * alloc-pool.c (allocate_pool_descriptor): Remove.
15022 (struct pool_output_info): Likewise.
15023 (print_alloc_pool_statistics): Likewise.
15024 (dump_alloc_pool_statistics): Likewise.
15025 * alloc-pool.h (struct pool_usage): New struct.
15026 (pool_allocator::initialize): Change usage of memory statistics
15027 to a new interface.
15028 (pool_allocator::release): Likewise.
15029 (pool_allocator::allocate): Likewise.
15030 (pool_allocator::remove): Likewise.
15031 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15032 for a pool allocator.
15033 * mem-stats.h (struct mem_location): Add new ctor.
15034 (struct mem_usage): Add counter for number of
15036 (mem_alloc_description::register_descriptor): New overload of
15037 * mem-stats.h (mem_location::to_string): New function.
15038 * bitmap.h (struct bitmap_usage): Use this new function.
15039 * ggc-common.c (struct ggc_usage): Likewise.
15042 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15044 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15045 of GCC_INSN_FLAGS_H block.
15047 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15049 * explow.c (plus_constant): Update check after force_const_mem call
15050 to see if the value returned is not a NULL_RTX.
15052 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15054 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15055 remove instumentation thunks calling reachable functions.
15056 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15057 * lto/lto-partition.c (privatize_symbol_name_1): New.
15058 (privatize_symbol_name): Privatize both decl and orig_decl
15059 names for instrumented functions.
15060 * cgraph.c (cgraph_node::verify_node): Add transparent
15061 alias chain check for instrumented node.
15063 2015-06-03 Marek Polacek <polacek@redhat.com>
15067 * tree.c (attribute_value_equal): Handle attribute format.
15068 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15070 2015-06-03 Richard Biener <rguenther@suse.de>
15072 PR tree-optimization/63916
15073 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15074 Forward-propagate non-invariant addresses by splicing their
15075 reference ops if the result isn't going to be used by PRE.
15076 (vn_reference_lookup_3): Remove pointless assert.
15078 2015-06-03 Richard Biener <rguenther@suse.de>
15080 PR tree-optimization/66375
15081 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15082 add to the evolution before following SSA edges.
15084 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15086 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15087 (dump_use, dump_cand, find_induction_variables): Pass new argument
15089 (record_use): Preserve the ssa name information in IV.
15091 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15093 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15095 (add_mode_tests): Don't add mode tests if the predicate only
15096 accepts scalar constant integers. Otherwise, allow the mode
15097 of "op" to be VOIDmode if the predicate does accept such integers.
15099 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15102 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15103 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15104 (aarch64_secondary_reload): Likewise
15105 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15107 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15110 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15111 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15114 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15116 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15118 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15119 provide access to the IBM extended double floating point mode if
15120 long double is IEEE 128-bit floating point.
15121 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15122 point if long double is the IBM extended double type.
15124 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15125 enable adding IEEE 128-bit floating point support.
15126 (-mfloat128-software): Likewise.
15127 (-mfloat128-sw): Likewise.
15129 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15130 128-bit floating point types to occupy any register if
15131 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15132 -mfloat128-software is enabled.
15133 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15135 (rs6000_option_override_internal): Add -mfloat128-* support.
15136 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15138 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15139 and float128 type nodes.
15140 (ieee128_float_type_node): Likewise.
15141 (ibm128_float_type_node): Likewise.
15143 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15146 * config/aarch64/geniterators.sh: Rewrite in awk.
15148 2015-06-02 Martin Liska <mliska@suse.cz>
15150 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15151 values to avoid -Wmaybe-uninitialized errors.
15153 2015-06-02 Richard Biener <rguenther@suse.de>
15156 * dwarf2out.c (lookup_context_die): New function.
15157 (resolve_addr): Avoid forcing a full DIE for the
15158 target of a DW_TAG_GNU_call_site during late compilation.
15159 Instead create a stub DIE without a type if we have a
15160 context DIE present.
15162 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15164 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15166 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15168 PR tree-optimization/48052
15169 * cfgloop.h (struct control_iv): New.
15170 (struct loop): New field control_ivs.
15171 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15172 (number_of_iterations_lt): Set no_overflow information.
15173 (number_of_iterations_exit): Init control iv in niter struct.
15174 (record_control_iv): New.
15175 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15176 (loop_exits_before_overflow): New. Interface factored out of
15177 scev_probably_wraps_p.
15178 (scev_probably_wraps_p): Factor loop niter related code into
15179 loop_exits_before_overflow.
15180 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15181 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15183 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15185 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15186 the target doesn't belong to the current function.
15188 2015-06-02 Marek Polacek <polacek@redhat.com>
15190 PR middle-end/66345
15191 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15192 get_maxval_strlen does not produce an INTEGER_CST.
15194 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15196 * config/arc/constraints.md: Use lower-case names in match_code.
15197 * config/mmix/constraints.md: Likewise.
15199 2015-06-02 Richard Biener <rguenther@suse.de>
15201 PR tree-optimization/65961
15202 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15203 check and clarify dump message.
15204 (vect_build_slp_tree): If all children are built up from scalars
15205 build up the parent from scalars instead.
15206 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15208 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15211 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15212 instead of print ... .
15214 2015-06-02 Alan Modra <amodra@gmail.com>
15216 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15219 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15221 PR tree-optimization/52563
15222 PR tree-optimization/62173
15223 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15224 (alloc_iv, set_iv): New parameter.
15225 (determine_biv_step): Delete.
15226 (find_bivs): Inline original determine_biv_step. Pass new
15227 argument to set_iv.
15228 (idx_find_step): Use no_overflow information for conversion.
15229 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15230 resolve_mixers handle folded_casts.
15231 (instantiate_scev_name): Change bool parameter to bool pointer.
15232 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15233 (instantiate_array_ref, instantiate_scev_not): Ditto.
15234 (instantiate_scev_3, instantiate_scev_2): Ditto.
15235 (instantiate_scev_1, instantiate_scev_r): Ditto.
15236 (instantiate_scev_convert, ): Change parameter. Pass argument
15237 to chrec_convert_aggressive.
15238 (instantiate_scev): Change argument.
15239 (resolve_mixers): New parameter and set it.
15240 (scev_const_prop): New argument.
15241 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15242 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15244 (chrec_convert): New parameter. Move definition below.
15245 (chrec_convert_aggressive): New parameter and set it. Call
15246 convert_affine_scev.
15247 * tree-chrec.h (chrec_convert): New parameter.
15248 (chrec_convert_aggressive): Ditto.
15250 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15252 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15253 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15254 the LHS of a no-return call if its type has variable size.
15255 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15256 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15258 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15260 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15261 * config.in: Regenerate.
15263 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15265 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15266 consecutive accesses within outer-loop with force_vectorize
15267 for references with zero step in inner-loop.
15269 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15271 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15272 rather than from gcc/build directory.
15274 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15277 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15278 for __sync memory models, emit initial loads and final barriers as
15281 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15284 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15285 (aarch64_split_atomic_op): Check for __sync memory models, emit
15286 appropriate initial loads and final barriers.
15288 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15290 * Makefile.in: Fix gcov dependencies that should
15291 not point to a build folder.
15293 2015-06-01 Richard Biener <rguenther@suse.de>
15296 2015-05-29 Richard Biener <rguenther@suse.de>
15298 PR tree-optimization/66314
15299 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15300 parameter that says which loop the new block belongs to.
15301 (ssa_create_duplicates): Blocks duplicated for the threaded
15302 path belong to the loop of the thread destination.
15304 2015-06-01 Martin Liska <mliska@suse.cz>
15306 * sched-deps.c: Include pool-alloc.h before
15307 cselib.h header file is included.
15309 2015-06-01 Richard Biener <rguenther@suse.de>
15311 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15314 2015-06-01 Martin Liska <mliska@suse.cz>
15316 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15317 a function local variable.
15319 2015-06-01 Martin Liska <mliska@suse.cz>
15321 * alloc-pool.c (create_alloc_pool): Remove.
15322 (empty_alloc_pool): Likewise.
15323 (free_alloc_pool): Likewise.
15324 (free_alloc_pool_if_empty): Likewise.
15325 (pool_alloc): Likewise.
15326 (pool_free): Likewise.
15327 * alloc-pool.h: Remove old declarations.
15329 2015-06-01 Martin Liska <mliska@suse.cz>
15331 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15332 (ira_create_object): Likewise.
15333 (ira_create_allocno): Likewise.
15334 (ira_create_live_range): Likewise.
15335 (copy_live_range): Likewise.
15336 (ira_finish_live_range): Likewise.
15337 (ira_free_allocno_costs): Likewise.
15338 (finish_allocno): Likewise.
15339 (finish_allocnos): Likewise.
15340 (initiate_prefs): Likewise.
15341 (ira_create_pref): Likewise.
15342 (finish_pref): Likewise.
15343 (finish_prefs): Likewise.
15344 (initiate_copies): Likewise.
15345 (ira_create_copy): Likewise.
15346 (finish_copy): Likewise.
15347 (finish_copies): Likewise.
15348 (finish_prefs): Likewise.
15350 2015-06-01 Martin Liska <mliska@suse.cz>
15352 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15353 (allocate_and_init_ipcp_value): Likewise.
15354 (ipcp_lattice::add_value): Likewise.
15355 (merge_agg_lats_step): Likewise.
15356 (ipcp_driver): Likewise.
15357 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15358 (ipa_free_all_structures_after_iinln): Likewise.
15359 * ipa-prop.h: Likewise.
15361 2015-06-01 Martin Liska <mliska@suse.cz>
15363 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15365 (set_hint_predicate): Likewise.
15366 (inline_summary_alloc): Likewise.
15367 (reset_inline_edge_summary): Likewise.
15368 (reset_inline_summary): Likewise.
15369 (set_cond_stmt_execution_predicate): Likewise.
15370 (set_switch_stmt_execution_predicate): Likewise.
15371 (compute_bb_predicates): Likewise.
15372 (estimate_function_body_sizes): Likewise.
15373 (inline_free_summary): Likewise.
15375 2015-06-01 Martin Liska <mliska@suse.cz>
15377 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15378 (ipa_edge_duplication_hook): Likewise.
15379 (ipa_free_all_structures_after_ipa_cp): Likewise.
15380 (ipa_free_all_structures_after_iinln): Likewise.
15382 2015-06-01 Martin Liska <mliska@suse.cz>
15384 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15385 (ipa_profile_generate_summary): Likewise.
15386 (ipa_profile_read_summary): Likewise.
15387 (ipa_profile): Likewise.
15389 2015-06-01 Martin Liska <mliska@suse.cz>
15391 * tree-ssa-structalias.c (new_var_info): Use new type-based
15393 (new_constraint): Likewise.
15394 (init_alias_vars): Likewise.
15395 (delete_points_to_sets): Likewise.
15397 2015-06-01 Martin Liska <mliska@suse.cz>
15399 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15400 (free_strinfo): Likewise.
15401 (pass_strlen::execute): Likewise.
15403 2015-06-01 Martin Liska <mliska@suse.cz>
15405 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15407 (vn_reference_insert_pieces): Likewise.
15408 (vn_phi_insert): Likewise.
15409 (visit_reference_op_call): Likewise.
15410 (copy_phi): Likewise.
15411 (copy_reference): Likewise.
15412 (process_scc): Likewise.
15413 (allocate_vn_table): Likewise.
15414 (free_vn_table): Likewise.
15416 2015-06-01 Martin Liska <mliska@suse.cz>
15418 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15420 (add_repeat_to_ops_vec): Likewise.
15421 (get_ops): Likewise.
15422 (maybe_optimize_range_tests): Likewise.
15423 (init_reassoc): Likewise.
15424 (fini_reassoc): Likewise.
15426 2015-06-01 Martin Liska <mliska@suse.cz>
15428 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15430 (bitmap_set_new): Likewise.
15431 (get_or_alloc_expr_for_constant): Likewise.
15432 (get_or_alloc_expr_for): Likewise.
15433 (phi_translate_1): Likewise.
15434 (compute_avail): Likewise.
15435 (init_pre): Likewise.
15436 (fini_pre): Likewise.
15438 2015-06-01 Martin Liska <mliska@suse.cz>
15440 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15441 (delete_dep_node): Likewise.
15442 (create_deps_list): Likewise.
15443 (free_deps_list): Likewise.
15444 (sched_deps_init): Likewise.
15445 (sched_deps_finish): Likewise.
15447 2015-06-01 Martin Liska <mliska@suse.cz>
15449 * regcprop.c (free_debug_insn_changes): Use new type-based
15451 (replace_oldest_value_reg): Likewise.
15452 (pass_cprop_hardreg::execute): Likewise.
15454 2015-06-01 Martin Liska <mliska@suse.cz>
15456 * ira-build.c (initiate_cost_vectors): Use new type-based
15458 (ira_allocate_cost_vector): Likewise.
15459 (ira_free_cost_vector): Likewise.
15460 (finish_cost_vectors): Likewise.
15462 2015-06-01 Martin Liska <mliska@suse.cz>
15464 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15466 (free_sched_pools): Likewise.
15467 * sel-sched-ir.h (_list_alloc): Likewise.
15468 (_list_remove): Likewise.
15470 2015-06-01 Martin Liska <mliska@suse.cz>
15472 * stmt.c (add_case_node): Use new type-based pool allocator.
15473 (expand_case): Likewise.
15474 (expand_sjlj_dispatch_table): Likewise.
15476 2015-06-01 Martin Liska <mliska@suse.cz>
15478 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15479 (free_bb): Likewise.
15480 (pass_cse_reciprocals::execute): Likewise.
15482 2015-06-01 Martin Liska <mliska@suse.cz>
15484 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15485 (sra_deinitialize) Likewise.
15486 (create_access_1) Likewise.
15487 (build_accesses_from_assign) Likewise.
15488 (create_artificial_child_access) Likewise.
15490 2015-06-01 Martin Liska <mliska@suse.cz>
15492 * dse.c (get_group_info):Use new type-based pool allocator.
15493 (dse_step0) Likewise.
15494 (free_store_info) Likewise.
15495 (delete_dead_store_insn) Likewise.
15496 (free_read_records) Likewise.
15497 (record_store) Likewise.
15498 (replace_read) Likewise.
15499 (check_mem_read_rtx) Likewise.
15500 (scan_insn) Likewise.
15501 (dse_step1) Likewise.
15502 (dse_step7) Likewise.
15504 2015-06-01 Martin Liska <mliska@suse.cz>
15506 * df-scan.c (struct df_scan_problem_data):Use new type-based
15508 (df_scan_free_internal) Likewise.
15509 (df_scan_alloc) Likewise.
15510 (df_grow_reg_info) Likewise.
15511 (df_free_ref) Likewise.
15512 (df_insn_create_insn_record) Likewise.
15513 (df_mw_hardreg_chain_delete) Likewise.
15514 (df_insn_info_delete) Likewise.
15515 (df_free_collection_rec) Likewise.
15516 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15517 (df_sort_and_compress_mws) Likewise.
15518 (df_ref_create_structure) Likewise.
15519 (df_ref_record) Likewise.
15521 2015-06-01 Martin Liska <mliska@suse.cz>
15523 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15524 (df_chain_unlink_1) Likewise.
15525 (df_chain_unlink) Likewise.
15526 (df_chain_remove_problem) Likewise.
15527 (df_chain_alloc) Likewise.
15528 (df_chain_free) Likewise.
15529 * df.h (struct dataflow) Likewise.
15531 2015-06-01 Martin Liska <mliska@suse.cz>
15533 * cselib.c (new_elt_list):Use new type-based pool allocator.
15534 (new_elt_loc_list) Likewise.
15535 (unchain_one_elt_list) Likewise.
15536 (unchain_one_elt_loc_list) Likewise.
15537 (unchain_one_value) Likewise.
15538 (new_cselib_val) Likewise.
15539 (cselib_init) Likewise.
15540 (cselib_finish) Likewise.
15542 2015-06-01 Martin Liska <mliska@suse.cz>
15544 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15545 (sh_reorg) Likewise.
15547 2015-06-01 Martin Liska <mliska@suse.cz>
15549 * cfg.c (initialize_original_copy_tables):Use new type-based
15551 (free_original_copy_tables) Likewise.
15552 (copy_original_table_clear) Likewise.
15553 (copy_original_table_set) Likewise.
15555 2015-06-01 Martin Liska <mliska@suse.cz>
15557 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15559 (asan_mem_ref_new) Likewise.
15560 (free_mem_ref_resources) Likewise.
15562 2015-06-01 Martin Liska <mliska@suse.cz>
15564 * var-tracking.c (variable_htab_free):Use new type-based
15566 (attrs_list_clear) Likewise.
15567 (attrs_list_insert) Likewise.
15568 (attrs_list_copy) Likewise.
15569 (shared_hash_unshare) Likewise.
15570 (shared_hash_destroy) Likewise.
15571 (unshare_variable) Likewise.
15572 (var_reg_delete_and_set) Likewise.
15573 (var_reg_delete) Likewise.
15574 (var_regno_delete) Likewise.
15575 (drop_overlapping_mem_locs) Likewise.
15576 (variable_union) Likewise.
15577 (insert_into_intersection) Likewise.
15578 (canonicalize_values_star) Likewise.
15579 (variable_merge_over_cur) Likewise.
15580 (dataflow_set_merge) Likewise.
15581 (remove_duplicate_values) Likewise.
15582 (variable_post_merge_new_vals) Likewise.
15583 (dataflow_set_preserve_mem_locs) Likewise.
15584 (dataflow_set_remove_mem_locs) Likewise.
15585 (variable_from_dropped) Likewise.
15586 (variable_was_changed) Likewise.
15587 (set_slot_part) Likewise.
15588 (clobber_slot_part) Likewise.
15589 (delete_slot_part) Likewise.
15590 (loc_exp_insert_dep) Likewise.
15591 (notify_dependents_of_changed_value) Likewise.
15592 (emit_notes_for_differences_1) Likewise.
15593 (vt_emit_notes) Likewise.
15594 (vt_initialize) Likewise.
15595 (vt_finalize) Likewise.
15597 2015-06-01 Martin Liska <mliska@suse.cz>
15599 * ira-color.c (init_update_cost_records):Use new type-based
15601 (get_update_cost_record) Likewise.
15602 (free_update_cost_record_list) Likewise.
15603 (finish_update_cost_records) Likewise.
15604 (initiate_cost_update) Likewise.
15606 2015-06-01 Martin Liska <mliska@suse.cz>
15608 * lra.c (init_insn_regs): Use new type-based pool allocator.
15609 (new_insn_reg) Likewise.
15610 (free_insn_reg) Likewise.
15611 (free_insn_regs) Likewise.
15612 (finish_insn_regs) Likewise.
15613 (init_insn_recog_data) Likewise.
15614 (init_reg_info) Likewise.
15615 (finish_reg_info) Likewise.
15616 (lra_free_copies) Likewise.
15617 (lra_create_copy) Likewise.
15618 (invalidate_insn_data_regno_info) Likewise.
15620 2015-06-01 Martin Liska <mliska@suse.cz>
15622 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15623 (free_live_range_list) Likewise.
15624 (create_live_range) Likewise.
15625 (copy_live_range) Likewise.
15626 (lra_merge_live_ranges) Likewise.
15627 (remove_some_program_points_and_update_live_ranges) Likewise.
15628 (lra_live_ranges_init) Likewise.
15629 (lra_live_ranges_finish) Likewise.
15631 2015-06-01 Martin Liska <mliska@suse.cz>
15633 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15634 (et_new_tree): Likewise.
15635 (et_free_tree): Likewise.
15636 (et_free_tree_force): Likewise.
15637 (et_free_pools): Likewise.
15638 (et_split): Likewise.
15640 2015-06-01 Martin Liska <mliska@suse.cz>
15642 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15644 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15645 (pool_allocator::release): Likewise.
15646 (inline pool_allocator::release_if_empty): Likewise.
15647 (inline pool_allocator::~pool_allocator): Likewise.
15648 (pool_allocator::allocate): Likewise.
15649 (pool_allocator::remove): Likewise.
15651 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15653 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15656 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15658 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15660 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15661 (arm_macro_fusion_p): Likewise.
15662 (arm_macro_fusion_pair_p): Likewise.
15664 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15666 * config/aarch64/aarch64-protos.h (tune_params): Rename
15667 fuseable_ops to fusible_ops.
15668 * config/aarch64/aarch64.c (generic_tunings): Rename
15669 fuseable_ops to fusible_ops.
15670 (cortexa53_tunings): Likewise.
15671 (cortexa57_tunings): Likewise.
15672 (thunderx_tunings): Likewise.
15673 (xgene1_tunings): Likewise.
15674 (aarch64_macro_fusion_p): Likewise.
15675 (aarch64_macro_fusion_pair_p): Likewise.
15677 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15679 * config/s390/driver-native.c: New file.
15680 * config/s390/x-native: New file.
15681 * config.host: Add new files for s390.
15682 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15684 * config.gcc: Likewise.
15685 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15686 * config/s390/s390-opts.h (enum processor_type): Ditto.
15687 * config/s390/s390.c (s390_option_override): Catch unhandled
15690 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15693 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15694 redirection for instrumented calls.
15695 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15696 (append_compiler_options): Append -fcheck-pointer-bounds.
15697 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15698 (chkp_redirect_edge): New.
15699 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15700 (chkp_redirect_edge): New.
15702 2015-06-01 Richard Biener <rguenther@suse.de>
15704 PR tree-optimization/66280
15705 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15708 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15710 * config/aarch64/aarch64.md
15711 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
15714 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15716 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
15717 Remove obsolete kludge.
15719 2015-06-01 Richard Biener <rguenther@suse.de>
15721 * tree-ssa-reassoc.c (get_rank): Simplify.
15723 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
15725 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
15726 * configure: Regenerated.
15728 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
15730 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
15731 issue (add space between string literal and macro).
15732 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
15734 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
15736 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
15737 implict or explicit -fPIE or -fpie.
15739 2015-05-30 Mike Frysinger <vapier@gentoo.org>
15741 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
15743 2015-05-28 DJ Delorie <dj@redhat.com>
15745 * expmed.c (extract_bit_field_1): Avoid clobbering a
15746 yet-to-be-used base/index register.
15748 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
15750 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
15751 (alias_stats): Add num_universal.
15752 (alias_set_subset_of): Special case pointers; be ready for NULL
15754 (alias_sets_conflict_p): Special case pointers; be ready for NULL
15756 (init_alias_set_entry): Break out from ...
15757 (record_alias_subset): ... here; propagate new fields;
15758 allocate children only when really needed.
15759 (get_alias_set): Do less generous pointer globbing.
15760 (dump_alias_stats_in_alias_c): Update statistics.
15762 2015-05-30 Alan Modra <amodra@gmail.com>
15764 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15765 correct block for use of r12.
15766 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15768 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15771 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15774 2015-05-29 Jakub Jelinek <jakub@redhat.com>
15776 PR tree-optimization/66142
15777 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15778 virtual phis that feed themselves.
15780 2015-05-29 Richard Biener <rguenther@suse.de>
15782 PR tree-optimization/66314
15783 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15784 parameter that says which loop the new block belongs to.
15785 (ssa_create_duplicates): Blocks duplicated for the threaded
15786 path belong to the loop of the thread destination.
15788 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15790 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
15791 to cleanup-saved-temps.
15792 * doc/sourcebuild.texi (Clean up generated test files): Expand
15794 (dg-keep-saved-temps): Document new proc.
15795 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
15796 cleanup-saved-temps): Remove.
15798 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
15800 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
15801 gcc_AC_CHECK_DECLS.
15802 * configure: Regenerate.
15804 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15806 * config/nios2/linux.h (CPP_SPEC): Define.
15808 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15810 * config/microblaze/linux.h (CPP_SPEC): Define.
15812 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15814 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15815 -pthread is specified.
15817 2015-05-28 Richard Biener <rguenther@suse.de>
15819 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15820 (vect_fixup_scalar_cycles_with_patterns): Likewise.
15821 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15822 after pattern recog.
15823 (vect_create_epilog_for_reduction): Properly handle reductions
15825 (vectorizable_reduction): Likewise.
15826 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15828 (vect_get_constant_vectors): Create the correct number of
15829 initial values for reductions.
15830 (vect_schedule_slp_instance): Handle reduction chains that are
15831 type changing properly.
15832 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15834 2015-05-28 Richard Biener <rguenther@suse.de>
15836 PR tree-optimization/66142
15837 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15838 values better in memcpy destination handling. Handle non-aliasing
15841 2015-05-28 Lawrence Velázquez <vq@larryv.me>
15844 * config/darwin-c.c (version_components): New global enum.
15845 (parse_version, version_as_legacy_macro)
15846 (version_as_modern_macro, macosx_version_as_macro): New functions.
15847 (version_as_macro): Remove.
15848 (darwin_cpp_builtins): Use new function.
15850 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
15852 * builtins.c (expand_builtin_acc_on_device): Mark parameters
15853 with ATTRIBUTE_UNUSED.
15855 2015-05-28 Julian Brown <julian@codesourcery.com>
15859 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15860 sequence for !ACCEL_COMPILER.
15862 2015-05-28 Nick Clifton <nickc@redhat.com>
15864 * config/rx/rx.c (push_regs): New function. Extracts code from...
15865 (rx_expand_prologue): ... here. Use push_regs to push even small
15866 spans of registers.
15867 (pop_regs): New function.
15868 (rx_expand_epilogue): Use pop_regs to pop even small spans of
15871 2015-05-28 Richard Biener <rguenther@suse.de>
15873 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15875 (SLP_INSTANCE_BODY_COST_VEC): Remove.
15876 (vect_update_slp_costs_according_to_vf): Likewise.
15877 (vect_slp_analyze_operations): Update prototype.
15878 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15879 vect_update_slp_costs_according_to_vf, adjust.
15880 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15881 (vect_analyze_slp_cost_1): Likewise.
15882 (vect_analyze_slp_cost): Likewise. Properly deal with
15883 widening reduction ops. Commit body costs.
15884 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
15885 cost for loops from here.
15886 (vect_slp_analyze_operations): But do it from here when
15887 the vectorization factor is known and stmts are analyzed.
15888 (vect_bb_vectorization_profitable_p): Simplify.
15889 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15890 (vect_update_slp_costs_according_to_vf): Remove.
15892 2015-05-27 Magnus Granberg <zorry@gentoo.org>
15893 H.J. Lu <hongjiu.lu@intel.com>
15895 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15896 (BUILD_CFLAGS): Likewise.
15897 (BUILD_CXXFLAGS): Likewise.
15898 (LINKER): Add @NO_PIE_FLAG@.
15899 (BUILD_LDFLAGS): Likewise.
15900 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15901 --enable-default-pie.
15902 * common.opt (fPIE): Initialize to -1.
15904 (no-pie): New option.
15905 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15906 * configure.ac: Add --enable-default-pie.
15907 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
15908 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
15909 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
15910 * gcc.c (NO_PIE_SPEC): New.
15911 (PIE_SPEC): Likewise.
15912 (NO_FPIE1_SPEC): Likewise.
15913 (FPIE1_SPEC): Likewise.
15914 (NO_FPIE2_SPEC): Likewise.
15915 (FPIE2_SPEC): Likewise.
15916 (NO_FPIE2_SPEC): Likewise.
15917 (FPIE_SPEC): Likewise.
15918 (NO_FPIE_SPEC): Likewise.
15919 (NO_FPIC1_SPEC): Likewise.
15920 (FPIC1_SPEC): Likewise.
15921 (NO_FPIC2_SPEC): Likewise.
15922 (FPIC2_SPEC): Likewise.
15923 (NO_FPIC2_SPEC): Likewise.
15924 (FPIC_SPEC): Likewise.
15925 (NO_FPIC_SPEC): Likewise.
15926 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15927 (FPIE1_OR_FPIC1_SPEC): Likewise.
15928 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15929 (FPIE2_OR_FPIC2_SPEC): Likewise.
15930 (NO_FPIE_AND_FPIC_SPEC): Likewise.
15931 (FPIE_OR_FPIC_SPEC): Likewise.
15932 (LD_PIE_SPEC): Likewise.
15933 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
15934 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15935 * config/darwin.h (PIE_SPEC): Renamed to ...
15936 (DARWIN_PIE_SPEC): This.
15937 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15938 * config/darwin9.h (PIE_SPEC): Renamed to ...
15939 (DARWIN_PIE_SPEC): This.
15940 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15941 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15942 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15943 FPIE2_OR_FPIC2_SPEC.
15944 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15945 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15946 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15947 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15948 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15949 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15950 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15951 * config/m32r/m32r.h (ASM_SPEC): Likewise.
15952 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15953 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15954 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15955 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15956 * config/sparc/linux.h (ASM_SPEC): Likewise.
15957 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15958 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15959 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15960 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15961 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15962 * config/sparc/sparc.h (ASM_SPEC): Likewise.
15963 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15964 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15965 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15966 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15967 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15968 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15969 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15970 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15971 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15972 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15973 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15974 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15975 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15976 * config/vax/linux.h (ASM_SPEC): Likewise.
15977 * doc/install.texi: Document --enable-default-pie.
15978 * doc/invoke.texi: Document -no-pie.
15979 * config.in: Regenerated.
15980 * configure: Likewise.
15982 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15984 PR rtl-optimization/66168
15985 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15986 can_move_invariant_reg.
15988 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
15991 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15992 REG_EQUAL note when doing insert.
15994 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15995 instead of "%d" for 'o' operand.
15997 2015-05-27 Nathan Sidwell <nathan@acm.org>
16000 * tree.c (build_pointer_type_for_mode): Canonical type does not
16001 inherit can_alias_all.
16002 (build_reference_type_for_mode): Likewise.
16004 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16006 * expr.h (array_at_struct_end_p): Move to...
16007 (array_ref_element_size): Likewise.
16008 (component_ref_field_offset): Likewise.
16009 * tree.h (array_ref_element_size): ...here.
16010 (array_at_struct_end_p): Likewise.
16011 (component_ref_field_offset): Likewise.
16012 * expr.c (array_ref_element_size): Move to...
16013 (array_ref_low_bound): Likewise.
16014 (array_at_struct_end_p): Likewise.
16015 (array_ref_up_bound): Likewise.
16016 (component_ref_field_offset): Likewise.
16017 * tree.c (array_ref_element_size): ...here.
16018 (array_ref_low_bound): Likewise.
16019 (array_ref_up_bound): Likewise.
16020 (array_at_struct_end_p): Likewise.
16021 (component_ref_field_offset): Likewise.
16023 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16024 Szabolcs Nagy <szabolcs.nagy@arm.com>
16026 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16028 2015-05-27 Jason Merrill <jason@redhat.com>
16031 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16032 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16033 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16035 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16037 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16040 * statistics.c (statistics_fini_pass): Print pass name.
16042 2015-05-27 Richard Biener <rguenther@suse.de>
16044 PR tree-optimization/66272
16046 2014-08-15 Richard Biener <rguenther@suse.de>
16048 PR tree-optimization/62031
16049 * tree-data-ref.c (dr_analyze_indices): Do not set
16050 DR_UNCONSTRAINED_BASE.
16051 (dr_may_alias_p): All indirect accesses have to go the
16052 formerly DR_UNCONSTRAINED_BASE path.
16053 * tree-data-ref.h (struct indices): Remove
16054 unconstrained_base member.
16055 (DR_UNCONSTRAINED_BASE): Remove.
16057 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16059 * dwarf2out.c: Remove block_map.
16060 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16061 (gen_lexical_block_die): Same.
16062 (dwarf2out_function_decl): Remove block_map use.
16063 (dwarf2out_c_finalize): Same.
16064 * tree-core.h (struct tree_block): Add die field.
16065 * tree.h (BLOCK_DIE): New.
16067 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16070 * expr.c (memory_load_overlap): New function.
16071 (emit_push_insn): When pushing partial args to the stack would
16072 clobber the register part load the overlapping part into a pseudo
16073 and put it into the hard reg after pushing. Change return type
16074 to bool. Add bool argument.
16075 * expr.h (emit_push_insn): Change return type to bool.
16077 * calls.c (expand_call): Cancel sibcall optimization when encountering
16078 partial argument on targets with ARGS_GROW_DOWNWARD and
16079 !STACK_GROWS_DOWNWARD.
16080 (emit_library_call_value_1): Update callsite of emit_push_insn.
16081 (store_one_arg): Likewise.
16083 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16085 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16087 2015-05-27 Martin Liska <mliska@suse.cz>
16089 * Makefile.in: Add additional dependencies related to memory report
16091 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16092 * bitmap.c (struct bitmap_descriptor_d): Remove.
16093 (struct loc): Likewise.
16094 (struct bitmap_desc_hasher): Likewise.
16095 (bitmap_desc_hasher::hash): Likewise.
16096 (bitmap_desc_hasher::equal): Likewise.
16097 (get_bitmap_descriptor): Likewise.
16098 (bitmap_register): User new memory descriptor API.
16099 (register_overhead): Likewise.
16100 (bitmap_find_bit): Register nsearches and search_iter statistics.
16101 (struct bitmap_output_info): Remove.
16102 (print_statistics): Likewise.
16103 (dump_bitmap_statistics): Use new memory descriptor.
16104 * bitmap.h (struct bitmap_usage): New class.
16105 * genmatch.c: Extend header file inclusion.
16106 * genpreds.c: Likewise.
16107 * ggc-common.c (struct ggc_usage): New class.
16108 (struct ggc_loc_desc_hasher): Remove.
16109 (ggc_loc_desc_hasher::hash): Likewise.
16110 (ggc_loc_desc_hasher::equal): Likewise.
16111 (struct ggc_ptr_hash_entry): Likewise.
16112 (struct ptr_hash_hasher): Likewise.
16113 (ptr_hash_hasher::hash): Likewise.
16114 (ptr_hash_hasher::equal): Likewise.
16115 (make_loc_descriptor): Likewise.
16116 (ggc_prune_ptr): Likewise.
16117 (dump_ggc_loc_statistics): Use new memory descriptor.
16118 (ggc_record_overhead): Likewise.
16119 (ggc_free_overhead): Likewise.
16120 (final_cmp_statistic): Remove.
16121 (cmp_statistic): Likewise.
16122 (ggc_add_statistics): Liekwise.
16123 (ggc_prune_overhead_list): Likewise.
16124 * hash-map-traits.h: New file.
16125 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16126 separate header file.
16127 * hash-set.h: Pass memory statistics info to ctor.
16128 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16129 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16130 (hash_table::~hash_table): Register memory release operation.
16131 (hash_table::alloc_entries): Handle memory allocation operation.
16132 (hash_table::expand): Likewise.
16133 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16135 (iterative_hash_host_wide_int): Likewise.
16136 * inchash.h (class hash): Likewise.
16137 * mem-stats-traits.h: New file.
16138 * mem-stats.h: New file.
16139 (mem_location): Add new class.
16140 (mem_usage): Likewise.
16141 (mem_alloc_description): Likewise.
16142 * sese.c: Add new header file inclusision.
16143 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16145 * tree-sra.c: Add new header file inclusision.
16146 * vec.c (struct vec_descriptor): Remove.
16147 (hash_descriptor): Likewise.
16148 (struct vec_usage): Likewise.
16149 (struct ptr_hash_entry): Likewise.
16150 (hash_ptr): Likewise.
16151 (eq_ptr): Likewise.
16152 (vec_prefix::register_overhead): Use new memory descriptor API.
16153 (vec_prefix::release_overhead): Likewise.
16154 (add_statistics): Remove.
16155 (dump_vec_loc_statistics): Use new memory descriptor API.
16156 * vec.h (struct vec_prefix): Likewise.
16157 (va_heap::reserve): Likewise.
16158 (va_heap::release): Likewise.
16159 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16161 2015-05-27 Richard Biener <rguenther@suse.de>
16163 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16164 earlier and remove ??? comment.
16165 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16166 and got called from loop analysis bail out. Always pass the SLP
16167 node to the vectorizable_* functions.
16168 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16169 the premature SLP check here.
16170 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16171 detected SLP stmts.
16172 (vect_detect_hybrid_slp_1): Likewise.
16174 2015-05-26 Jeff Law <law@redhat.com>
16176 * combine.c (find_split_point): Verify that the shift count is a
16177 constant when choosing (plus (ashift ...)) as a split point.
16179 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16180 No functional changes.
16182 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16184 * ipa-polymorphic-call.c
16185 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16186 case when call target is already known.
16188 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16191 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16192 take into account the case that operands[1] and operands[2]
16193 are the same register.
16195 2015-05-26 Michael Matz <matz@suse.de>
16197 PR middle-end/66251
16199 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16201 (vect_create_vectorized_demotion_stmts): Always set
16202 STMT_VINFO_VEC_STMT, also with SLP.
16203 (vectorizable_store): Handle strided group stores.
16205 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16208 * config/aarch64/aarch64.md
16209 (*adds_shift_imm_<mode>): New pattern.
16210 (*subs_shift_imm_<mode>): Likewise.
16211 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16212 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16213 (*add_uxt<mode>_shift2): Likewise.
16214 (*add_uxtsi_shift2_uxtw): Likewise.
16215 (*sub_uxt<mode>_shift2): Likewise.
16216 (*sub_uxtsi_shift2_uxtw): Likewise.
16218 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16220 * config/rs6000/constraints.md (Y, U): Use match_test.
16222 2015-05-26 Christian Bruel <christian.bruel@st.com>
16225 * config/arm/arm.c (arm_option_check_internal)
16226 (arm_option_params_internal): Check opts->target_flags to set macros.
16227 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16228 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16229 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16230 (builtin_define): Replaced with def_or_undef_macro.
16231 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16232 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16233 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16234 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16235 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16236 (TARGET_ARM_FEATURE_LDREX_P)
16237 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16238 * config/arm/arm-c.c (def_or_undef_macro): New function.
16239 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16241 2015-05-26 Christian Bruel <christian.bruel@st.com>
16243 * c-common.h (builtin_define_with_int_value)
16244 (builtin_define_type_sizeof): Declare.
16245 * c-cppbuiltin.c (builtin_define_with_int_value)
16246 (builtin_define_type_sizeof): Externalize.
16247 (builtin_define_std): Cleanup declaration.
16248 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16249 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16250 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16251 (builtin_define, builtin_assert): New macros.
16253 2015-05-26 Richard Biener <rguenther@suse.de>
16255 PR tree-optimization/66142
16256 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16257 MEM_REFs for the same base address.
16259 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16262 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16264 2015-05-26 Jason Merrill <jason@redhat.com>
16266 * configure.ac: Set CXXFLAGS for ISL test.
16267 * configure: Regenerate.
16269 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16270 strstr and basename.
16271 * configure: Regenerate.
16273 2015-05-26 Richard Biener <rguenther@suse.de>
16275 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16276 X % C -> X & (C - 1) for C being a power-of two to ...
16277 * match.pd: ... patterns.
16279 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16281 * match.pd (swapped_tcc_comparison): New operator list.
16282 (-A CMP -B): New simplification.
16283 * fold-const.c (fold_comparison): Remove corresponding code.
16285 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16287 * caller-save.c (init_caller_save): Base temporary register numbers
16288 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16289 * cfgloopanal.c (init_set_costs): Likewise.
16290 * dojump.c (prefer_and_bit_test): Likewise.
16291 * expr.c (init_expr_target): Likewise.
16292 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16293 * lower-subreg.c (init_lower_subreg): Likewise.
16294 * postreload.c (reload_cse_regs_1): Likewise.
16296 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16298 * gensupport.h (compute_test_codes): Declare.
16299 * gensupport.c (compute_predicate_codes): Rename to...
16300 (compute_test_codes): ...this. Generalize error message.
16301 (process_define_predicate): Update accordingly.
16302 * genpreds.c (compute_maybe_allows): Delete.
16303 (add_constraint): Use compute_test_codes to determine whether
16304 something can accept a SUBREG, REG or MEM.
16306 2015-05-26 Torvald Riegel <triegel@redhat.com>
16308 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16309 'memory model' to align with C++11; fix description of memory orders;
16312 2015-05-26 Richard Biener <rguenther@suse.de>
16314 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16315 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16316 detect whether we apply SLP. Remove call to
16317 vect_update_slp_costs_according_to_vf.
16318 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16319 vect_update_slp_costs_according_to_vf from here. Dispatch
16320 to vect_slp_analyze_operations to analyze SLP stmts.
16321 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16322 unused bb_vec_info parameter, adjust assert.
16323 (vect_slp_analyze_operations): Pass in the slp instance tree
16324 instead of bb_vec_info.
16325 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16326 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16328 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16330 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16331 Q_REGS. Expand comment.
16332 (REG_CLASS_NAMES): Ditto.
16333 (REG_CLASS_CONTENTS): Ditto.
16335 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16338 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16339 when LEGACY_INT_REGNO_P is processed.
16341 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16343 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16345 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16347 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16348 register if not marked dead/unused, before return.
16350 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16353 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16354 is set; check for assembler name at LTO time.
16355 (type_in_anonymous_namespace): Remove hacks, check that all
16356 anonymous types are called "<anon>"
16357 (odr_type_p): Simplify; add check for "<anon>"
16358 (odr_subtypes_equivalent): Add odr_type_p check.
16359 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16362 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16364 * ipa-utils.h (method_class_type): Remove.
16365 * cgraphunit.c (walk_polymorphic_call_targets): Use
16366 TYPE_METHOD_BASETYPE.
16367 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16368 on main variants only.
16369 (method_class_type): Remove.
16370 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16371 (build_type_inheritance_graph): Likewise.
16372 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16373 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16374 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16376 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16378 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16379 is_typedef_decl, typedef_variant_p): Constify.
16380 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16381 is_typedef_decl, typedef_variant_p): Constify.
16383 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16385 * defaults.h (gen_tablejump): New function.
16386 (HAVE_tablejump): Add default value.
16388 * stmt.c: Likewise.
16390 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16392 * defaults.h (gen_store_multiple): New function.
16393 (HAVE_store_multiple): Add default value.
16394 * expr.c (move_block_from_reg): Adjust.
16396 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16398 * defaults.h (gen_load_multiple): New function.
16399 (HAVE_load_multiple): Add default value.
16400 * expr.c (move_block_to_reg): Adjust.
16402 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16404 * defaults.h (gen_mem_signal_fence): New function.
16405 (HAVE_mem_signal_fence): Add default value.
16406 * optabs.c: Adjust.
16408 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16410 * defaults.h (gen_memory_barrier): New function.
16411 (HAVE_memory_barrier): Add default value.
16412 * optabs.c: Adjust.
16414 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16416 * defaults.h (gen_mem_thread_fence): New function.
16417 (HAVE_mem_thread_fence): Add default definition.
16418 * optabs.c: Adjust.
16420 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16422 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16423 instead of if it is defined.
16424 (combine_simplify_rtx): Likewise.
16425 * lra-constraints.c (process_address_1): Likewise.
16426 * config/darwin.c: Adjust.
16427 * genconfig.c (main): Always define HAVE_lo_sum.
16429 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16431 * genmatch.c (parser::parse_operation): Reject expanding
16432 operator-list inside 'for'.
16434 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16436 * genmatch.c (parser::parse_for): Reject iterator if used as
16439 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16441 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16442 after end of id-list.
16444 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16446 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16447 we do not try to compute canonical type for type that does not need
16449 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16451 * tree.h (type_with_alias_set_p): New.
16453 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16455 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16456 function attributes.
16457 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16459 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16461 * Makefile.in (check_gcc_parallelize): Delete.
16462 (lang_checks_parallelized): Update comment.
16464 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16466 PR rtl-optimization/66237
16467 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16468 location of an "as_a" cast.
16470 2015-05-22 Jeff Law <law@redhat.com>
16472 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16473 (peepholes with non-canonical RTL sources): Remove.
16474 (peepholes for indexed stores of FP regs in integer modes): Match and
16475 generate canonical RTL.
16477 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16479 PR tree-optimization/63387
16480 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16481 ((x ord x) & (y ord y) -> (x ord y),
16482 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16483 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16484 vectors like scalars.
16486 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16488 * convert.c (convert_to_integer, convert_to_vector): Include the
16489 types in the error message.
16491 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16493 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16496 2015-05-22 Jeff Law <law@redhat.com>
16498 * config/pa/pa.md (integer_indexed_store splitters): Use
16499 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16500 insns -- adjusting the constant 2nd operand accordingly.
16502 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16503 (plus (ashift X log2) Y) if it is a split point.
16505 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16506 out of hppa_legitimize_address to handle both forms of a multiply
16508 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16509 Always generate the ASHIFT variant as the result is not directly
16510 used in a MEM. Update comments and refactor slightly to improve
16513 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16516 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16517 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16518 (aarch64_composite_type_p): Return false if given type and mode are
16519 for a short vector.
16521 2015-05-22 Richard Biener <rguenther@suse.de>
16523 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16525 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16526 patterns when determining whether SLP is pure.
16527 (vect_is_slp_reduction): Remove check for pattern stmts.
16528 (vect_is_simple_reduction_1): Remove dead code.
16529 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16530 (vect_get_and_check_slp_defs): Pass in the stmt number.
16531 Allow the first def in a reduction to be not a pattern stmt when
16532 the rest of the stmts def are patterns.
16533 (vect_build_slp_tree_1): Allow tcc_expression codes like
16534 SAD_EXPR and DOT_PROD_EXPR.
16535 (vect_build_slp_tree): Adjust.
16536 (vect_analyze_slp): Refactor and move BB vect error message ...
16537 (vect_slp_analyze_bb_1): ... here.
16539 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16541 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16542 for CSWTCH temporary.
16544 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16546 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16547 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16550 2015-05-22 Richard Biener <rguenther@suse.de>
16552 PR tree-optimization/66251
16553 * tree-vect-stmts.c (vectorizable_conversion): Properly
16554 set STMT_VINFO_VEC_STMT even for the SLP case.
16556 2015-05-22 Marek Polacek <polacek@redhat.com>
16558 * doc/extend.texi: Use @pxref instead of @xref.
16560 2015-05-22 hiraditya <hiraditya@msn.com>
16562 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16565 2015-05-22 Richard Biener <rguenther@suse.de>
16567 PR tree-optimization/65701
16568 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16569 Move peeling cost models into one place. Peel for alignment
16570 for single loads only if an aligned load is cheaper than
16573 2015-05-22 Marek Polacek <polacek@redhat.com>
16576 * doc/extend.texi (Enumerator Attributes): New section.
16577 Document syntax of enumerator attributes.
16579 2015-05-22 Richard Biener <rguenther@suse.de>
16581 * tree-vect-loop.c (get_reduction_op): New function.
16582 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16583 Make ready for BB reductions.
16584 (vect_create_epilog_for_reduction): Use get_reduction_op.
16585 (vectorizable_reduction): Init reduc_index to a valid value.
16586 Adjust vect_model_reduction_cost call.
16587 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16588 operand for reduction defaults. Add SAD_EXPR support.
16589 Assert we have a neutral op for SLP reductions.
16590 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16591 walking pattern stmt ops only recurse to SSA names.
16593 2015-05-22 Richard Biener <rguenther@suse.de>
16595 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16596 assert with guard, remove check on detected reduction.
16597 (vect_recog_sad_pattern): Likewise.
16598 (vect_recog_widen_sum_pattern): Likewise.
16600 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16602 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16603 __always_inline__ attribute.
16604 (vaesdq_u8): Likewise.
16605 (vaesmcq_u8): Likewise.
16606 (vaesimcq_u8): Likewise.
16607 (vsha1cq_u32): Likewise.
16608 (vsha1mq_u32): Likewise.
16609 (vsha1pq_u32): Likewise.
16610 (vsha1h_u32): Likewise.
16611 (vsha1su0q_u32): Likewise.
16612 (vsha1su1q_u32): Likewise.
16613 (vsha256hq_u32): Likewise.
16614 (vsha256h2q_u32): Likewise.
16615 (vsha256su0q_u32): Likewise.
16616 (vsha256su1q_u32): Likewise.
16617 (vmull_p64): Likewise.
16618 (vmull_high_p64): Likewise.
16620 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16622 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16624 * output.h: Likewise.
16625 * genconfig.c (main): Alwways define HAVE_peephole.
16626 * genpeep.c: Don't emit checks of HAVE_peephole.
16628 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16630 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16631 check HAVE_conditional_move with the preprocessor.
16633 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16635 * genconfig.c (main): Always define HAVE_conditional_move.
16636 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16637 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16640 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16642 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16643 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16644 and FRAME_POINTER_REGNUM with the preprocessor.
16646 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16648 * defaults.h: Add default for STACK_PUSH_CODE.
16649 * expr.c: Don't redefine STACK_PUSH_CODE.
16650 * recog.c: Likewise.
16652 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16654 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16655 sched-deps.c: Use if instead of preprocessor checks with
16656 STACK_GROWS_DOWNWARD.
16658 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16660 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16662 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16663 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16664 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16665 * doc/tm.texi: Regenerate.
16667 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16670 * config/i386/constraints.md (Bg): New constraint for GOT memory
16672 * config/i386/i386.md (*call_got_x32): New pattern.
16673 (*call_value_got_x32): Likewise.
16674 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16676 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16678 PR tree-optimization/66233
16679 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16682 2015-05-21 Jeff Law <law@redhat.com>
16684 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16685 than MULT for shadd sequences.
16687 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16689 * alias.c (alias_stats): New static var.
16690 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16691 (dump_alias_stats_in_alias_c): New function.
16692 * alias.h (dump_alias_stats_in_alias_c): Declare.
16693 * tree-ssa-alias.c (dump_alias_stats): Call it.
16695 2015-05-08 Michael Matz <matz@suse.de>
16697 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16699 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16700 (STMT_VINFO_STRIDED_P): ... this.
16701 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16702 (vect_verify_datarefs_alignment): Likewise.
16703 (vect_enhance_data_refs_alignment): Likewise.
16704 (vect_analyze_data_ref_access): Likewise.
16705 (vect_analyze_data_refs): Accept strided stores.
16706 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16707 (vect_model_load_cost): Adjust for macro rename.
16708 (vectorizable_mask_load_store): Likewise.
16709 (vectorizable_load): Likewise.
16710 (vectorizable_store): Open code strided stores.
16712 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16714 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
16715 Document sqrt_insn.
16717 2015-05-21 Richard Biener <rguenther@suse.de>
16720 * match.pd: Guard pattern optimzing (int)(float)int
16721 conversions to apply only on GIMPLE.
16723 2015-05-21 Jeff Law <law@redhat.com>
16725 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
16726 multiply-accumulate/shift-add insn generation.
16728 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16731 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
16732 operands[1] are the same.
16734 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
16736 PR middle-end/66221
16737 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
16738 build_distinct_type_copy to copy bounds.
16740 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
16742 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
16743 Change to unsigned int.
16745 2015-05-20 Jeff Law <law@redhat.com>
16747 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
16748 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
16749 (pa_shadd_constant_p): Allow constants for shadd insns rather
16750 than valid scaling constants for memory addresses.
16751 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
16752 * config/pa/predicates.md (mem_shadd_operand): New predicate.
16753 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
16754 (shift-add insns using ASHIFT): New patterns.
16756 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
16758 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16760 (fix_up_fall_thru_edges): Likewise.
16761 (fix_crossing_conditional_branches): Likewise. Promote jump targets
16762 from to rtx_insn to rtx_code_label where feasible.
16763 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16764 gen_move_insn (returned type changed to rtx_insn).
16765 * builtins.c (expand_errno_check): Fix arguments of
16766 do_compare_rtx_and_jump (now expects rtx_code_label).
16767 (expand_builtin_acc_on_device): Likewise.
16768 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16769 invert_jump (now exprects rtx_jump_insn).
16770 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16771 (construct_init_block): Use rtx_code_label.
16772 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16773 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16774 calling redirect_jump.
16775 (patch_jump_insn): Likewise.
16776 (redirect_branch_edge): Likewise.
16777 (force_nonfallthru_and_redirect): Likewise.
16778 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16780 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16781 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16782 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16783 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16784 to store the value retured by gen_label_rtx.
16785 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
16787 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
16788 (split_branches): Fix calls of redirect_jump.
16789 * dojump.c (jumpifnot): Promote argument type from rtx to
16791 (jumpifnot_1): Likewise.
16792 (jumpif): Likewise.
16793 (jumpif_1): Likewise.
16794 (do_jump_1): Likewise.
16795 (do_jump): Likewise. Use rtx_code_label when feasible.
16796 (do_jump_by_parts_greater_rtx): Likewise.
16797 (do_jump_by_parts_zero_rtx): Likewise.
16798 (do_jump_by_parts_equality_rtx): Likewise.
16799 (do_compare_rtx_and_jump): Likewise.
16800 * dojump.h: Update function prototypes.
16801 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
16803 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
16805 (emit_label_before): Likewise.
16806 (emit_jump_insn_after_noloc): Likewise.
16807 (emit_jump_insn_after_setloc): Likewise.
16808 (emit_jump_insn_after): Likewise
16809 (emit_jump_insn_before_setloc): Likewise.
16810 (emit_jump_insn_before): Likewise.
16811 (emit_label_before): Promote return type to rtx_code_label.
16812 (emit_label): Likewise.
16813 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16814 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16816 (emit_stack_restore): Likewise.
16817 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16818 (do_cmp_and_jump): Likewise.
16819 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16820 from rtx to rtx_code_label.
16821 (gen_move_insn_uncast): New function.
16822 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16823 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16824 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16825 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16826 invert_jump_1 and redirect_jump_1.
16827 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16828 do_compare_rtx_and_jump.
16829 (expand_addsub_overflow): Likewise.
16830 (expand_neg_overflow): Likewise.
16831 (expand_mul_overflow): Likewise.
16832 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16833 return value of gen_move_insn.
16834 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16835 * loop-doloop.c (add_test): Use rtx_code_label.
16836 (doloop_modify): Likewise.
16837 (doloop_optimize): Likewise.
16838 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16839 * lra-constraints.c (emit_spill_move): Remove cast of value returned
16841 (inherit_reload_reg): Add cast when calling dump_insn_slim.
16842 (split_reg): Likewise.
16843 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16845 * optabs.c (expand_binop_directly): Remove casts of values returned by
16847 (expand_unop_direct): Likewise.
16848 (expand_abs): Likewise.
16849 (maybe_emit_unop_insn): Likewise.
16850 (maybe_gen_insn): Promote return type to rtx_insn.
16851 * optabs.h: Update prototype of maybe_gen_insn.
16852 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16854 * recog.c (struct peep2_insn_data): Promote type of insn field to
16856 (peep2_reinit_state): Use NULL instead of NULL_RTX.
16857 (peep2_attempt): Remove casts of insn in peep2_insn_data.
16858 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16859 * recog.h (struct insn_gen_fn): Promote return types of function
16860 pointers and operator ().from rtx to rtx_insn.
16861 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16862 (fill_eager_delay_slots): Likewise.
16863 (relax_delay_slots): Likewise.
16864 (make_return_insns): Likewise.
16865 (dbr_schedule): Likewise.
16866 (optimize_skips): Likewise.
16867 (reorg_redirect_jump): Likewise.
16868 (fill_slots_from_thread): Likewise.
16869 * reorg.h: Update prototypes.
16870 * resource.c (find_dead_or_set_registers): Use dyn_cast to
16871 rtx_jump_insn instead of check. Use it's jump_target method.
16872 * rtl.h (rtx_jump_insn::jump_label): Define new method.
16873 (rtx_jump_insn::jump_target): Define new method.
16874 (rtx_jump_insn::set_jump_target): Define new method.
16875 * rtlanal.c (tablejump_p): Promote type of one local variable.
16876 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16877 (sched_analyze_insn): Likewise.
16878 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16879 (print_insn): Likewise.
16880 * stmt.c (label_rtx): Promote return type to rtx_insn.
16881 (force_label_rtx): Likewise.
16882 (jump_target_rtx): Define new function.
16883 (expand_label): Use it, get rid of one cast.
16884 (expand_naked_return): Promote rtx to rtx_code_label.
16885 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16886 (expand_case): Use rtx_code_label instread of rtx where feasible.
16887 (expand_sjlj_dispatch_table): Likewise.
16888 (emit_case_nodes): Likewise.
16889 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
16890 * store-motion.c (insert_store): Make use of new return type of
16891 gen_move_insn and remove a cast.
16892 (replace_store_insn): Likewise.
16894 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
16896 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16897 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16899 2015-05-20 Jeff Law <law@redhat.com>
16901 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16902 dispose of the jump thread path when the jump threading
16903 opportunity is cancelled.
16905 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16907 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16908 when printing the caret character.
16910 2015-05-20 Marek Polacek <polacek@redhat.com>
16912 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16914 2015-05-20 Marek Polacek <polacek@redhat.com>
16916 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16917 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16918 * gimple-fold.c (canonicalize_bool): Likewise.
16919 (same_bool_result_p): Likewise.
16920 * tree-if-conv.c (parse_predicate): Likewise.
16922 2015-05-20 Marek Polacek <polacek@redhat.com>
16924 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16925 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16927 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16929 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16930 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16933 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
16935 * config/mips/mips.h (micromips_globals): Declare.
16937 2015-05-20 David Malcolm <dmalcolm@redhat.com>
16939 * timevar.def (TV_INITIALIZE_RTL): New.
16940 * toplev.c (initialize_rtl): Use an auto_timevar to account this
16941 function's time to TV_INITIALIZE_RTL.
16943 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16945 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16946 gimple_build_nop calls.
16947 (chkp_find_bounds_for_elem): Likewise.
16948 (chkp_get_zero_bounds): Likewise.
16949 (chkp_get_none_bounds): Likewise.
16950 (chkp_get_bounds_by_definition): Likewise.
16951 (chkp_generate_extern_var_bounds): Likewise.
16952 (chkp_get_bounds_for_decl_addr): Likewise.
16953 (chkp_get_bounds_for_string_cst): Likewise.
16955 2015-05-20 Bin Cheng <bin.cheng@arm.com>
16957 PR tree-optimization/65447
16958 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16959 (dump_use, dump_uses): Support to dump sub use.
16960 (record_use): New parameters to support sub use. Remove call to
16962 (record_sub_use, record_group_use): New functions.
16963 (compute_max_addr_offset, split_all_small_groups): New functions.
16964 (group_address_uses, rewrite_use_address): New functions.
16965 (strip_offset): New declaration.
16966 (find_interesting_uses_address): Call record_group_use.
16967 (add_candidate): New assertion.
16968 (infinite_cost_p): Move definition forward.
16969 (add_costs): Check INFTY cost and return immediately.
16970 (get_computation_cost_at): Clear setup cost and dependent bitmap
16972 (determine_use_iv_cost_address): Compute cost for sub uses.
16973 (rewrite_use_address_1): Rename from old rewrite_use_address.
16974 (free_loop_data): Free sub uses.
16975 (tree_ssa_iv_optimize_loop): Call group_address_uses.
16977 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16978 Jim Wilson <jim.wilson@linaro.org>
16980 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16981 new fields loadv and storev.
16982 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16983 Initialize loadv and storev.
16984 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16985 (cortexa53_extra_costs): Likewise.
16986 (cortexa57_extra_costs): Likewise.
16987 (xgene1_extra_costs): Likewise.
16988 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16991 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16993 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16995 (cortexa8_extra_costs): Likewise.
16996 (cortexa5_extra_costs): Likewise.
16997 (cortexa7_extra_costs): Likewise.
16998 (cortexa12_extra_costs): Likewise.
16999 (cortexa15_extra_costs): Likewise.
17000 (v7m_extra_costs): Likewise.
17002 2015-05-20 Jeff Law <law@redhat.com>
17004 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17005 instead of open-coded version. Also delete the jump thread created
17006 within this function.
17008 2015-05-20 Alan Modra <amodra@gmail.com>
17010 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17011 stack adjusting insn. Formatting.
17012 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17013 r12. If possible, emit first -fsplit-stack arg pointer insn
17014 before stack adjust. Don't use r12 to save cr if split-stack.
17016 2015-05-20 Alan Modra <amodra@gmail.com>
17018 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17020 (rs6000_supports_split_stack): New function.
17021 * gcc/config/rs6000/rs6000.c (machine_function): Add
17022 split_stack_arg_pointer.
17023 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17024 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17025 rather than virtual_incoming_args_rtx.
17026 (rs6000_va_start): Likewise.
17027 (split_stack_arg_pointer_used_p): New function.
17028 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17029 (morestack_ref): New var.
17030 (gen_add3_const, rs6000_expand_split_stack_prologue,
17031 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17032 rs6000_split_stack_space_check): New functions.
17033 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17034 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17035 (UNSPECV_SPLIT_STACK_RETURN): Define.
17036 (split_stack_prologue, load_split_stack_limit,
17037 load_split_stack_limit_di, load_split_stack_limit_si,
17038 split_stack_return, split_stack_space_check): New expands and insns.
17039 * gcc/config/rs6000/rs6000-protos.h
17040 (rs6000_expand_split_stack_prologue): Declare.
17041 (rs6000_split_stack_space_check): Declare.
17043 2015-05-20 Alan Modra <amodra@gmail.com>
17045 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17046 (direct_return): Test vrsave_size rather than vrsave_mask.
17047 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17048 (rs6000_emit_epilogue): Likewise.
17050 2015-05-20 Alan Modra <amodra@gmail.com>
17052 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17053 when not saving registers.
17054 (debug_stack_info): Adjust to omit printing unused offsets,
17056 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17059 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17062 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17063 value_type to const char *.
17065 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17067 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17068 to build a biarch toolchain again.
17070 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17072 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17073 or implicit declarations.
17074 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17076 (get_odr_type): Check type has linkage before adding bases.
17077 (register_odr_type): Check that type has linkage before adding it.
17078 (type_known_to_have_no_deriavations_p): Rename to ..
17079 (type_known_to_have_no_derivations_p): This one.
17080 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17081 (type_known_to_have_no_derivations_p): This one.
17082 * ipa-polymorphic-call.c
17083 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17086 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17088 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17089 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17091 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17093 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17094 (s390_invalid_binary_op): New function.
17095 (TARGET_INVALID_BINARY_OP): Define macro.
17097 2015-05-19 David Sherwood <david.sherwood@arm.com>
17099 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17100 if mode is not a scalar integer.
17101 (get_inv_cost): Increase computational cost for unused invariants.
17103 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17105 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17106 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17107 * config/s390/s390-builtin-types.def: New file.
17108 * config/s390/s390-builtins.def: New file.
17109 * config/s390/s390-builtins.h: New file.
17110 * config/s390/s390-c.c: New file.
17111 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17112 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17113 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17114 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17116 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17118 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17119 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17120 variable definitions.
17121 (s390_const_operand_ok): New function.
17122 (s390_expand_builtin): Rewrite.
17123 (s390_init_builtins): New function.
17124 (s390_handle_vectorbool_attribute): New function.
17125 (s390_attribute_table): Add s390_vector_bool attribute.
17126 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17127 (s390_branch_condition_mask): Generate masks for new modes.
17128 (s390_expand_vec_compare_cc): New function.
17129 (s390_mangle_type): Add mangling for vector bool types.
17130 (enum s390_builtin): Remove.
17131 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17133 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17134 s390_cpu_cpp_builtins.
17135 (REGISTER_TARGET_PRAGMAS): New macro.
17136 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17137 (insn_cmp mode attribute): Add new CC modes.
17138 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17139 (lcbb): New pattern definition.
17140 * config/s390/s390intrin.h: Include vecintrin.h.
17141 * config/s390/t-s390: New file.
17142 * config/s390/vecintrin.h: New file.
17143 * config/s390/vector.md: Include vx-builtins.md.
17144 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17147 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17149 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17151 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17152 (s390_select_ccmode): Likewise.
17153 (s390_canonicalize_comparison): Swap operands if necessary.
17154 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17155 single element vector instructions.
17156 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17157 (s390_branch_condition_mask): Generate CC masks for the new modes.
17158 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17159 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17160 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17161 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17162 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17163 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17164 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17165 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17166 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17167 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17168 (sqrt<mode>2): Add vector instruction.
17170 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17172 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17174 * config/s390/predicates.md (const0_operand, constm1_operand)
17175 (constable_operand): Accept vector operands.
17176 * config/s390/s390-modes.def: Add supported vector modes.
17177 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17178 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17179 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17180 (s390_expand_vec_compare, s390_expand_vcond)
17181 (s390_expand_vec_init): Add prototypes.
17182 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17183 (s390_vector_mode_supported_p): New function.
17184 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17185 (s390_contiguous_bitmask_vector_p): New function.
17186 (s390_bytemask_vector_p): New function.
17187 (s390_split_ok_p): Vector regs don't work either.
17188 (regclass_map): Add VEC_REGS.
17189 (s390_legitimate_constant_p): Handle vector constants.
17190 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17191 (legitimate_reload_vector_constant_p): New function.
17192 (s390_preferred_reload_class): Handle CONST_VECTOR.
17193 (s390_reload_symref_address): Likewise.
17194 (s390_secondary_reload): Vector memory instructions only support
17195 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17196 (s390_emit_ccraw_jump): New function.
17197 (s390_expand_vec_strlen): New function.
17198 (s390_expand_vec_compare): New function.
17199 (s390_expand_vcond): New function.
17200 (s390_expand_vec_init): New function.
17201 (s390_dwarf_frame_reg_mode): New function.
17202 (print_operand): Handle addresses with 'O' and 'R' constraints.
17203 (NR_C_MODES, constant_modes): Add vector modes.
17204 (s390_output_pool_entry): Handle vector constants.
17205 (s390_hard_regno_mode_ok): Handle vector registers.
17206 (s390_class_max_nregs): Likewise.
17207 (s390_cannot_change_mode_class): New function.
17208 (s390_invalid_arg_for_unprototyped_fn): New function.
17209 (s390_function_arg_vector): New function.
17210 (s390_function_arg_float): Remove size variable.
17211 (s390_pass_by_reference): Handle vector arguments.
17212 (s390_function_arg_advance): Likewise.
17213 (s390_function_arg): Likewise.
17214 (s390_return_in_memory): Vector values are returned in a VR if
17216 (s390_function_and_libcall_value): Handle vector arguments.
17217 (s390_gimplify_va_arg): Likewise.
17218 (s390_call_saved_register_used): Consider the arguments named.
17219 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17221 (s390_preferred_simd_mode): New function.
17222 (s390_support_vector_misalignment): New function.
17223 (s390_vector_alignment): New function.
17224 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17225 (TARGET_VECTOR_MODE_SUPPORTED_P)
17226 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17227 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17228 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17229 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17230 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17231 (FIRST_PSEUDO_REGISTER): Increase value.
17232 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17233 (VECTOR_REG_P): Define macros.
17234 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17235 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17236 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17237 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17238 Add vector registers.
17239 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17240 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17241 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17243 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17244 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17245 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17246 (VR*_REGNUM): New constants.
17247 (ALL): New mode iterator.
17248 (INTALL): Remove mode iterator.
17250 (movti): Implement TImode moves for VRs.
17251 Disable TImode splitter for VR targets.
17252 Implement splitting TImode GPR<->VR moves.
17253 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17254 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17255 reload<mode>_la_in, reload<mode>_la_out.
17256 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17257 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17258 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17259 (mov<mode> SF SD): Prefer lder, lde for loading.
17260 Add lrl and strl instructions.
17261 Add vector instructions.
17262 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17263 Call s390_expand_vec_strlen on z13.
17264 (*cc_to_int): Change predicate to nonimmediate_operand.
17265 (addti3): Rename to *addti3. New expander.
17266 (subti3): Rename to *subti3. New expander.
17267 * config/s390/vector.md: New file.
17269 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17271 * common/config/s390/s390-common.c (processor_flags_table): Add
17273 * config.gcc: Add z13.
17274 * config/s390/s390-opts.h (enum processor_type): Add
17275 PROCESSOR_2964_Z13.
17276 * config/s390/s390.c (s390_adjust_priority): Check for
17277 PROCESSOR_2964_Z13.
17278 (s390_reorg): Likewise.
17279 (s390_sched_reorder): Likewise.
17280 (s390_sched_variable_issue): Likewise.
17281 (s390_loop_unroll_adjust): Likewise.
17282 (s390_option_override): Likewise. Default to -mvx when available.
17283 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17284 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17285 (TARGET_VX_ABI): Define macros.
17287 (TARGET_DEFAULT): Add MASK_OPT_VX.
17288 * config/s390/s390.md ("cpu" attribute): Add z13.
17289 ("cpu_facility" attribute): Add vec.
17290 * config/s390/s390.opt (processor_type): Add z13.
17291 (mvx): New options.
17292 * doc/invoke.texi: Add z13 option for -march.
17294 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17296 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17297 mode check to make sure that only scalar integer values are
17300 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17302 * tree.c (verify_type_variant): Fix #undef.
17303 (gimple_canonical_types_compatible_p): Move here from lto.c
17304 (verify_type): Verify TYPE_CANONICAL compatibility.
17305 * tree.h (gimple_canonical_types_compatible_p): Declare.
17307 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17309 PR middle-end/66199
17310 * tree.h (OMP_TEAMS_COMBINED): Define.
17311 * gimplify.c (enum gimplify_omp_var_data): Add
17312 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17313 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17314 (omp_notice_variable): Accept both ORT_TEAMS
17315 and ORT_COMBINED_TEAMS. Don't recurse if
17316 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17317 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17319 (omp_no_lastprivate): New function.
17320 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17321 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17322 notice_outer and set appropriate bits, otherwise make
17323 sure default(none) combined constructs won't complain.
17324 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17325 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17326 omp_no_lastprivate either remove the clause or turn it
17327 into OMP_CLAUSE_PRIVATE.
17328 (gimplify_omp_for): Fix up handling of implicit
17329 lastprivate or linear iterators.
17330 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17331 ORT_COMBINED_TEAMS.
17332 * omp-low.c (lower_omp_for_lastprivate): For combined
17333 for simd use fd.loop.n2 from the for rather than simd.
17335 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17337 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17338 instead of gen_rtx_raw_REG.
17339 (cris_expand_epilogue): Likewise.
17340 * config/microblaze/microblaze.c (microblaze_classify_address):
17342 * config/sparc/sparc.md: Likewise.
17344 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17346 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17347 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17348 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17349 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17350 Use CASE_CONST_SCALAR_INT.
17351 (print_operand) <case 'M'>: Use mode_width_operand to check the
17352 value of the constant.
17353 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17354 * config/alpha/predicates.md (input_operand): Use general_operand
17355 instead of match_code as operand check.
17356 (symbolic_operand): Use match_code with subexpression digits.
17357 * config/alpha/constraints.md (Q): Ditto.
17359 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17361 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17363 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17365 * config/s390/s390.c (s390_secondary_reload): Fix check for
17366 load/store relative.
17368 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17370 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17371 alternative_mask to uint64_t.
17373 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17375 PR tree-optimization/66187
17376 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17377 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17378 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17380 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17382 * diagnostic.c (diagnostic_report_current_module): Strengthen
17383 local "new_map" from const line_map * to
17384 const line_map_ordinary *.
17385 * genmatch.c (error_cb): Likewise for local "map".
17386 (output_line_directive): Likewise for local "map".
17387 * input.c (expand_location_1): Likewise for local "map".
17388 Pass NULL rather than &map to
17389 linemap_unwind_to_first_non_reserved_loc, since the value is never
17390 read from there, and the value written back not read from here.
17391 (is_location_from_builtin_token): Strengthen local "map" from
17392 const line_map * to const line_map_ordinary *.
17393 (dump_location_info): Strengthen locals "map" from
17394 line_map *, one to const line_map_ordinary *, the other
17395 to const line_map_macro *.
17396 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17397 const line_map * to const line_map_macro *.
17398 (maybe_unwind_expanded_macro_loc): Add a call to
17399 linemap_check_macro when writing to the "map" field of the
17401 Introduce local const line_map_ordinary * "ord_map", using it in
17402 place of "map" in the part of the function where we know we have
17403 an ordinary map. Strengthen local "m" from const line_map * to
17404 const line_map_ordinary *.
17406 2015-05-19 Nick Clifton <nickc@redhat.com>
17409 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17410 separate source and destination registers.
17412 2015-05-19 Richard Biener <rguenther@suse.de>
17414 PR tree-optimization/66165
17415 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17416 for no load permutation.
17418 PR tree-optimization/66185
17419 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17420 when building the SLP node from scalars.
17422 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17423 Tristan Gingold <gingold@adacore.com>
17425 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17426 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17427 (expand_stack_restore): Call record_new_stack_level.
17428 (expand_stack_save): Do not call do_pending_stack_adjust.
17429 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17430 * calls.c (expand_call): Call record_new_stack_level for alloca.
17431 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17432 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17433 (update_sjlj_context): New global function.
17434 * except.h (update_sjlj_context): Declare.
17435 * explow.c (record_new_stack_level): New global function.
17436 (allocate_dynamic_stack_space): Call record_new_stack_level.
17437 * explow.h (record_new_stack_level): Declare.
17438 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17439 * cfgrtl.c (duplicate_insn_chain): Likewise.
17441 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17443 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17444 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17445 STACK_GROWS_DOWNWARD as normal if.
17446 (expand_call): Likewise.
17448 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17451 * config/sh/sh.md (*round_int_even): New insn_and_split and
17452 accompanying new unnamed split.
17454 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17456 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17457 (bitmap_clear_range): Likewise.
17458 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17459 bitmap_set_range unconditionally.
17460 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17461 * df-scan.c (df_mark_reg): Likewise.
17462 * haifa-sched.c (setup_ref_regs): Likewise.
17463 * sched-rgn.c (update_live_1): Likewise.
17465 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17467 * regs.h (END_HARD_REGNO): Delete.
17468 (END_REGNO): Move to...
17470 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17471 * caller-save.c (mark_set_regs): Likewise.
17472 * combine.c (move_deaths, distribute_notes): Likewise.
17473 * cse.c (invalidate, invalidate_for_call): Likewise.
17474 * df-scan.c (df_ref_record): Likewise.
17475 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17476 (record_last_reg_set_info): Likewise.
17477 * reg-stack.c (convert_regs_exit): Likewise.
17478 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17479 * resource.c (update_live_status): Likewise.
17480 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17482 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17484 * rtl.h (reg_info): Add an nregs field.
17485 (REG_NREGS): Use it.
17486 (SET_REGNO_RAW): Delete.
17487 (set_regno_raw): New function.
17488 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17489 (END_REGNO): Redefine in terms of REG_NREGS.
17490 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17492 * emit-rtl.c (set_mode_and_regno): Likewise.
17493 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17494 instead of SET_REGNO_RAW.
17496 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17498 * rtl.h (PUT_MODE_RAW): New macro.
17499 (PUT_REG_NOTE_KIND): Use it.
17500 (set_mode_and_regno): Declare.
17501 (gen_raw_REG): Change regno to "unsigned int".
17502 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17503 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17504 use set_mode_and_regno to change the mode of registers.
17505 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17506 * emit-rtl.c (set_mode_and_regno): New function.
17507 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17508 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17509 * expr.c (init_expr_target): Likewise.
17510 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17511 * postreload.c (reload_cse_simplify_operands): Likewise.
17513 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17515 * caller-save.c (init_caller_save): Use word_mode and
17516 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17517 * expr.c (init_expr_target): Likewise.
17518 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17519 * postreload.c (reload_cse_regs_1): Likewise.
17521 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17523 * rtl.def (REG): Change format to "r".
17524 * rtl.h (rtunion): Remove rt_reg.
17525 (reg_info): New structure.
17526 (rtx_def): Add reg field to main union.
17527 (X0REGATTR): Delete.
17528 (REG_CHECK): New macro.
17529 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17530 * rtl.c (rtx_format): Document "r".
17531 (rtx_code_size): Handle REG specially.
17532 * gengenrtl.c (special_format): Return true for formats
17534 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17535 Deal with REG_ATTRS after the field loop.
17536 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17537 * expmed.c (init_expmed): Call gen_raw_REG instead of
17539 * expr.c (init_expr_target): Likewise.
17540 * regcprop.c (maybe_mode_change): Likewise.
17541 * varasm.c (make_decl_rtl): Likewise.
17542 * final.c (leaf_renumber_regs_insn): Return early after
17544 * genemit.c (gen_exp): Handle 'r' fields.
17545 * genpeep.c (match_rtx): Likewise.
17546 * gensupport.c (subst_pattern_match): Likewise.
17547 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17548 (alter_constraints, subst_dup): Likewise.
17549 * read-rtl.c (read_rtx_code): Likewise.
17550 * print-rtl.c (print_rtx): Likewise.
17551 * genrecog.c (find_operand, find_matching_operand): Likewise.
17552 (validate_pattern, match_pattern_2): Likewise.
17553 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17554 (rtx_test::regno_field): New function.
17555 (operator ==, safe_to_hoist_p, transition_parameter_type)
17556 (parameter_type_string, print_parameter_value)
17557 (print_nonbool_test, print_test): Handle new enum values.
17558 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17559 * lra-constraints.c (operands_match_p): Likewise.
17561 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17563 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17564 Change type of new_regno to unsigned int.
17565 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17566 new_regno to unsigned int.
17567 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17568 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17569 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17570 (SET_REGNO_RAW): Add space after ",".
17572 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17574 * rtl.h (REG_NREGS): New macro
17575 * alias.c (record_set): Use it.
17576 * cfgcleanup.c (mark_effect): Likewise.
17577 * combine.c (likely_spilled_retval_1): Likewise.
17578 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17579 (move_deaths, distribute_notes): Likewise.
17580 * cselib.c (cselib_record_set): Likewise.
17581 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17582 * df-scan.c (df_mark_reg): Likewise.
17583 * dse.c (look_for_hardregs): Likewise.
17584 * dwarf2out.c (reg_loc_descriptor): Likewise.
17585 (multiple_reg_loc_descriptor): Likewise.
17586 * expr.c (write_complex_part, read_complex_part): Likewise.
17587 (emit_move_complex): Likewise.
17588 * haifa-sched.c (setup_ref_regs): Likewise.
17589 * ira-lives.c (mark_hard_reg_live): Likewise.
17590 * lra.c (lra_set_insn_recog_data): Likewise.
17591 * mode-switching.c (create_pre_exit): Likewise.
17592 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17593 (reload_combine_recognize_pattern): Likewise.
17594 (reload_combine_note_use, move2add_record_mode): Likewise.
17595 (reload_cse_move2add): Likewise.
17596 * reg-stack.c (subst_stack_regs_pat): Likewise.
17597 * regcprop.c (kill_value, copy_value): Likewise.
17598 (copyprop_hardreg_forward_1): Likewise.
17599 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17600 (build_def_use): Likewise.
17601 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17602 (deps_analyze_insn): Likewise.
17603 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17604 * sel-sched.c (count_occurrences_equiv): Likewise.
17605 * valtrack.c (dead_debug_insert_temp): Likewise.
17607 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17609 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17610 * dse.c (note_add_store): Likewise.
17611 * ira-lives.c (mark_hard_reg_dead): Likewise.
17612 * loop-invariant.c (mark_reg_store): Likewise.
17613 (mark_reg_death): Likewise.
17614 * postreload.c (reload_combine): Likewise.
17615 (reload_combine_note_store): Likewise.
17616 (reload_combine_note_use): Likewise.
17617 * recog.c (peep2_reg_dead_p): Likewise.
17619 2015-05-19 Alan Modra <amodra@gmail.com>
17621 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17622 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17623 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17625 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17626 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17627 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17628 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17630 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17632 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17633 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17634 (join2_loadhi): Likewise.
17635 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17636 load-load and store-stores.
17637 * config/mips/mips.opt (mload-store-pairs): New option.
17638 (TARGET_LOAD_STORE_PAIRS): New macro.
17639 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17640 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17641 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17643 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17645 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17647 * dojump.c (do_compare_rtx_and_jump): Likewise.
17648 * expmed.c (emit_store_flag_1): Likewise.
17649 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17650 * final.c (sprint_ul): Use std::reverse for reversing a string.
17651 * fold-const.c (extract_muldiv_1): Use std::swap.
17652 * genmodes.c (emit_mode_int_n): Likewise.
17653 * ifcvt.c (dead_or_predicable): Likewise.
17654 * ira-build.c (ira_merge_live_ranges): Likewise.
17655 (swap_allocno_copy_ends_if_necessary): Likewise.
17656 * ira.c (ira_setup_alts): Likewise.
17657 * loop-iv.c (iv_analyze_expr): Likewise.
17658 (implies_p): Likewise.
17659 (canon_condition): Likewise.
17660 * lra-constraints.c (swap_operands): Likewise.
17661 * lra-lives.c (lra_merge_live_ranges): Likewise.
17662 * omega.c (swap): Remove.
17664 (omega_unprotect_1): Use std::swap.
17665 (omega_solve_geq): Likewise.
17666 * optabs.c (expand_binop_directly): Likewise.
17667 (expand_binop): Likewise.
17668 (emit_conditional_move): Likewise.
17669 (emit_conditional_add): Likewise.
17670 * postreload.c (reload_cse_simplify_operands): Likewise.
17671 * reg-stack.c (emit_swap_insn): Likewise.
17672 (swap_to_top): Likewise.
17673 (compare_for_stack_reg): Likewise.
17674 (subst_asm_stack_regs): Likewise.
17675 * reload.c (find_reloads): Likewise.
17676 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17677 * sel-sched.c (invoke_reorder_hooks): Likewise.
17678 (create_block_for_bookkeeping): Likewise.
17679 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17680 (lambda_matrix_right_hermite): Use std::swap.
17681 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17682 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17683 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17684 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17685 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17686 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17687 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17688 * tree-vrp.c (compare_ranges): Likewise.
17689 * var-tracking.c (add_with_sets): Likewise.
17690 (vt_find_locations): Likewise.
17692 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17694 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17696 (FBSD_ENDFILE_SPEC): Likewise.
17697 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17698 config/freebsd-spec.h.
17699 (ENDFILE_SPEC): Likewise.
17701 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17702 Richard Henderson <rth@redhat.com>
17705 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17706 Check for a memory location that is not a reference (using an AND)
17707 to an unaligned location here.
17708 * config/alpha/predicates.md (normal_memory_operand): Remove.
17710 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
17712 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
17713 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
17715 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
17717 * config/mips/mips.c (micromips_globals): New variable.
17718 (mips_set_compression_mode): Save and reinitialize target-dependent
17719 state for microMIPS.
17721 2015-05-18 Martin Liska <mliska@suse.cz>
17723 * dbgcnt.def: Add new counter.
17724 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
17726 2015-05-18 Martin Liska <mliska@suse.cz>
17728 * dbgcnt.def: Sort counters.
17729 * opts.c (common_handle_option): Do not compile if
17730 -fdbg-cnt-list is enabled.
17732 2015-05-18 Tom de Vries <tom@codesourcery.com>
17734 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
17735 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
17736 address operator to va_list operand.
17737 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
17739 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
17741 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
17742 * config/s390/s390.c (s390_gimplify_va_arg): Same.
17743 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
17745 2015-05-18 Tom de Vries <tom@codesourcery.com>
17747 * tree-ssa-tail-merge.c: Fix whitespace.
17749 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
17751 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
17752 cortex-a17, and cortex-a17.cortex-a7.
17754 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
17757 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17759 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
17762 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17763 QImode inner modes for TARGET_AVX512BW. Force mask operand
17764 to a register for AVX512F modes.
17766 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17768 * toplev.c (emit_debug_global_declarations): Do not output debug info
17769 when doing slim LTO objects.
17771 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17773 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17774 odr_types_equivalent_p): Declare.
17775 (odr_type_p): Use gcc_checking_assert.
17776 (type_in_anonymous_namespace_p) Declare.
17777 (type_with_linkage_p): Declare.
17778 * common.opt (Wlto-type-mismatch): New warning.
17779 * ipa-devirt.c (compound_type_base): New function.
17780 (odr_or_derived_type_p): New function.
17781 (odr_types_equivalent_p): New function.
17782 (add_type_duplicate): Simplify.
17783 (type_with_linkage_p): Add hack to prevent false positives on C types
17784 (type_in_anonymous_namespace_p): Likewise.
17785 * tree.c (need_assembler_name_p): Use type_with_linkage.
17786 * tree.h (type_in_anonymous_namespace_p): Remove.
17787 * doc/invoke.texi (-Wlto-type-mismatch): Document
17789 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17791 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
17792 (verify_type): Verify STRING_FLAG.
17794 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
17797 * tree-pretty-print.c (percent_K_format): Replace locus pointer
17798 with accessor function.
17799 * tree-diagnostic.c (diagnostic_report_current_function): Use
17800 diagnostic_location function.
17801 (maybe_unwind_expanded_macro_loc): Likewise.
17802 (virt_loc_aware_diagnostic_finalizer): Likewise.
17803 (default_tree_printer): Replace locus pointer with accessor function.
17804 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
17805 (diagnostic_set_info_translated): Initialize second location.
17806 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17807 (diagnostic_show_locus): Handle two locations. Call
17808 diagnostic_print_caret_line.
17809 (diagnostic_print_caret_line): New.
17810 (default_diagnostic_starter): Use diagnostic_location function.
17811 (diagnostic_report_diagnostic): Use diagnostic_location function.
17812 (verbatim): Do not set text.locus.
17813 * diagnostic.h (struct diagnostic_info): Remove location field.
17814 (struct diagnostic_context): Make caret_chars an array of two.
17815 (diagnostic_location): New inline.
17816 (diagnostic_expand_location): Handle two locations.
17817 (diagnostic_same_line): New inline.
17818 (diagnostic_print_caret_line): Declare.
17819 (CARET_LINE_MARGIN): New constant.
17820 * pretty-print.c (pp_printf): Do not set text.locus.
17821 (pp_verbatim): Do not set text.locus.
17822 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17823 (struct text_info): Replace locus pointer with locations
17824 array. Add accessor functions.
17826 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
17827 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17830 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17831 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17832 large constants in register instead of splitting them.
17834 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
17837 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17838 replacements in memory addresses.
17839 (get_unaligned_address): Ditto.
17841 2015-05-16 James Bowman <james.bowman@ftdichip.com>
17843 * config/ft32/*: New files for FT32 port.
17844 * doc/install.texi: Add FT32 information.
17845 * doc/invoke.texi: Add FT32 information.
17846 * doc/md.texi: Add FT32 information.
17847 * doc/contrib.texi: Self added.
17849 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
17851 PR tree-optimization/64454
17852 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17853 (-1 - A -> ~A): Remove unnecessary condition.
17855 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
17857 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17858 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17859 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17861 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
17863 * ipa-chkp.h (chkp_wrap_function): New.
17864 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17865 (chkp_wrap_function_name): New.
17866 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17867 to get wrapper name.
17868 * lto-cgraph.c: Include ipa-chkp.h.
17869 (input_cgraph_1): Avoid alias chain for wrappers.
17871 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17873 PR middle-end/66134
17874 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17875 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17877 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17879 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17880 (AARCH64_FL_SLOWMUL): Delete.
17881 (AARCH64_FL_CRC): Redefine to 1<<3.
17882 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17884 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17886 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17889 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17891 * config/alpha/alpha.md (extendqidi2): Use general_operand
17892 instead of some_operand for operand[1] predicate.
17893 (extendhidi2): Ditto.
17894 (cbranchdi4): Use general_operand instead of some_operand
17895 for operand[1] and operands[2] predicates.
17896 (cstoredi4): Ditto.
17897 * config/alpha/predicates.md (some_operand): Remove unused predicate.
17898 (some_ni_operand): Ditto.
17900 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17902 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17903 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
17904 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17905 low part of the constant using alpha_emit_set_const_1.
17906 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17908 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
17910 * varasm.c (output_constant_pool_1): Pass down alignment from
17911 constant pool entry's descriptor to output_constant_pool_2.
17912 (output_object_block): Add comment prior to call to
17913 output_constant_pool_1.
17915 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
17917 PR rtl-optimization/65862
17918 * target.def (ira_change_pseudo_allocno_class): New hook.
17919 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17921 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17922 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17924 * ira-costs.c (find_costs_and_classes): Call the hook and change
17925 classes when it is necessary.
17926 * doc/tm.texi: Update.
17928 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
17930 * config/i386/i386.md (sibcall_memory): Check that register with
17931 callee address is not also used as one of the arguments, instead
17932 of checking that it is not live after the sibcall.
17933 (sibcall_pop_memory): Ditto.
17934 (sibcall_value_memory): Ditto.
17935 (sibcall_value_pop_memory): Ditto.
17937 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
17939 * generic-match-head.c (types_match): Handle non-types.
17940 * gimple-match-head.c (types_match): Likewise.
17941 * match.pd: Remove unnecessary TREE_TYPE for types_match.
17943 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
17945 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17946 (csneg3<mode>_insn): Enable expansion of pattern.
17948 2015-05-14 Nick Clifton <nickc@redhat.com>
17950 * config/rl78/rl78.c (rl78_select_section): Select the correct
17951 default section based upon the category of the decl.
17953 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17955 PR rtl-optimization/30967
17956 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17957 destination mode for the cost of scc patterns.
17959 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17961 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17962 using SWIM248 mode iterator.
17963 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17964 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
17965 for operand[2] constraint.
17966 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17968 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17970 PR middle-end/66133
17971 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17972 make sure it is never noreturn, even when the task body does not
17974 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17975 right before GIMPLE_OMP_RETURN.
17976 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17977 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
17978 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17980 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17982 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17983 * tree-ssa-math-opts.c: Include params.h
17984 (pow_synth_sqrt_info): New struct.
17985 (representable_as_half_series_p): New function.
17986 (get_fn_chain): Likewise.
17987 (print_nested_fn): Likewise.
17988 (dump_fractional_sqrt_sequence): Likewise.
17989 (dump_integer_part): Likewise.
17990 (expand_pow_as_sqrts): Likewise.
17991 (gimple_expand_builtin_pow): Use above to attempt to expand
17992 pow as series of square roots. Removed now unused variables.
17994 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17996 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17997 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17998 Remove *p0 and *p1 arguments. Rewrite function.
17999 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18000 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18001 alpha_emit_set_long_const.
18002 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18003 (alpha_output_mi_thunk_osf): Ditto.
18004 * config/alpha/alpha.md (movti): Do not check operands[1]
18007 2015-05-13 Richard Biener <rguenther@suse.de>
18009 PR tree-optimization/66129
18010 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18012 (vect_schedule_slp_instance): Fix typo.
18014 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18016 * common.opt (fdump-internal-locations): New option.
18017 * input.c: Include diagnostic-core.h.
18018 (get_end_location): New function.
18019 (write_digit): New function.
18020 (write_digit_row): New function.
18021 (dump_location_range): New function.
18022 (dump_labelled_location_range): New function.
18023 (dump_location_info): New function.
18024 * input.h (dump_location_info): New prototype.
18025 * toplev.c (compile_file): Handle flag_dump_locations.
18027 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18029 * gimple-expr.h (is_gimple_constant): Reorder.
18030 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18032 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18034 * combine.c (simplify_set): When generating a CC set, if the
18035 source already is in the correct mode, do not wrap it in a
18036 compare. Simplify the rest of that code.
18038 2015-05-13 Richard Biener <rguenther@suse.de>
18040 PR tree-optimization/66123
18041 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18044 2015-05-13 Richard Biener <rguenther@suse.de>
18046 PR middle-end/66110
18047 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18049 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18051 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18053 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18054 * aclocal.m4: Regenerated with automake-1.11.6.
18056 2015-05-13 Tom de Vries <tom@codesourcery.com>
18058 PR tree-optimization/66010
18059 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18060 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18061 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18062 and rval based on do_deref.
18064 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18067 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18068 link time constants into adress expressions and therefore set
18071 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18074 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18075 Use SWI248 iterator instead of SWI.
18076 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18077 Use eq_attr "alternative" "0" instead of match_test in
18078 length_immediate attribute computation.
18079 (*mulvhi4, *mulvhi4_1): New define_insns.
18082 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18083 SIGNED to get precision of non-negative value.
18085 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18088 * function.c (diddle_return_value_1): Process bounds first.
18089 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18092 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18094 PR rtl-optimization/64616
18095 * loop-invariant.c (can_move_invariant_reg): New.
18096 (move_invariant_reg): Call above new function to decide whether
18097 instruction can just be moved, skipping creation of temporary
18100 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18102 PR target/pr66047.c
18103 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18104 with implied regparm is called from -mno-sse function.
18105 (init_cumulative_args): Output error if ix86_function_sseregparm
18106 return -1 and SSE register would be needed.
18107 (function_arg_advance_32): Likewise.
18108 (function_arg_32): Likewise.
18109 * i386.h (ix86_args): Add decl field.
18111 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18114 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18115 inlines across optimization boundary.
18117 2015-05-12 Jason Merrill <jason@redhat.com>
18119 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18120 string literal and macro name.
18122 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18124 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18125 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18126 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18128 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18130 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18131 (-Wmisleading-indentation): New option.
18132 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18134 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18136 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18137 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18138 (alpha_extract_integer): Ditto.
18139 (alpha_legitimate_constant_p): Ditto.
18140 (alpha_split_tmode_pair): Ditto.
18141 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18142 (alpha_expand_mov): Ditto.
18143 (print_operand): Remove handling of 'H' modifier.
18144 <case 'm'>: Remove CONST_DOUBLE handling.
18145 (summarize_insn): Handle CONST_WIDE_INT.
18146 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18148 (movti): Handle CONST_WIDE_INT.
18149 * config/alpha/constraints.md ('H'): Remove constraint definition.
18150 ('G'): Do not match MODE_FLOAT class.
18151 * config/alpha/predicates.md (const0_operand): Also match
18153 (non_add_const_operand): Ditto.
18154 (non_zero_const_operand): Ditto.
18155 (some_operand): Ditto.
18156 (input_operand): Ditto. Handle CONST_WIDE_INT.
18157 (and_operand): Do not match const_double.
18158 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18160 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18163 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18164 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18165 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18166 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18167 is_mm_seq_cst, is_mm_sync): New accessor functions.
18168 * builtins.c (expand_builtin_sync_operation,
18169 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18170 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18171 (get_memmodel, expand_builtin_atomic_compare_exchange,
18172 expand_builtin_atomic_load, expand_builtin_atomic_store,
18173 expand_builtin_atomic_clear): Use new accessor routines.
18174 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18175 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18176 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18177 MEMMODEL_SYNC_ACQUIRE.
18178 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18179 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18180 expand_atomic_store): Use new accessors.
18181 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18182 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18183 final enum to use MEMMODEL_LAST.
18184 * c-family/c-common.c: Use new accessor for memmodel_base.
18185 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18187 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18188 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18189 mem_thread_fence, *dmb): Likewise.
18190 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18191 alpha_split_compare_and_swap_12): Likewise.
18192 * config/arm/arm.c (arm_expand_compare_and_swap,
18193 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18194 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18195 atomic_loaddi): Likewise.
18196 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18198 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18199 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18201 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18202 atomic_store<mode>, atomic_compare_and_swap<mode>,
18203 atomic_exchange<mode>): Use new accessors.
18204 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18205 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18206 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18207 rs6000_post_atomic_barrier): Add new cases.
18208 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18209 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18210 (atomic_load<mode>): Add new cases and use new accessors.
18211 (store_quadpti): Add new cases.
18212 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18214 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18215 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18218 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18220 * ipa-devirt.c (type_with_linkage_p): New function.
18221 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18223 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18224 (can_be_name_hashed_p): Simplify.
18225 (hash_odr_name): Check that type has linkage before checking if it is
18227 (types_same_for_odr): Likewise.
18228 (odr_name_hasher::equal): Likewise.
18229 (odr_subtypes_equivalent_p): Likewise.
18230 (warn_types_mismatch): Likewise.
18231 (get_odr_type): Likewise.
18232 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18233 * ipa-utils.h (odr_type_p): Move offline.
18234 * tree.c (need_assembler_name_p): Fix handling of types
18236 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18238 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18240 * timevar.c (timevar_enable): Delete in favor of...
18241 (g_timer): New global.
18242 (struct timevar_def): Move to timevar.h inside class timer.
18243 (struct timevar_stack_def): Likewise.
18244 (timevars): Delete global in favor of field "m_timevars" within
18245 class timer in timevar.h
18246 (stack): Likewise, in favor of field "m_stack".
18247 (unused_stack_instances): Likewise, in favor of field
18248 "m_unused_stack_instances".
18249 (start_time): Likewise, in favor of field "m_start_time".
18250 (get_time): Eliminate check for timevar_enable.
18251 (timer::timer): New function, built from part of timevar_init.
18252 (timevar_init): Rewrite idempotency test from using
18253 "timevar_enable" bool to using dynamic allocation of "g_timer".
18254 Move rest of implementation into timer's constructor.
18255 (timevar_push_1): Rename to...
18256 (timer::push): ...this, adding "m_" prefixes to variables that
18257 are now fields of timer.
18258 (timevar_pop_1): Likewise, rename to...
18259 (timer::pop): ...this, and add "m_" prefixes.
18260 (timevar_start): Replace test for "timevar_enable" with one for
18261 "g_timer", and move bulk of implementation to...
18262 (timer::start): ...here, adding "m_" prefixes.
18263 (timevar_stop): Likewise, from here...
18264 (timer::stop): ...to here.
18265 (timevar_cond_start): Likewise, from here...
18266 (timer::cond_start): ...to here.
18267 (timevar_cond_stop): Likewise, from here...
18268 (timer::cond_stop): ...to here.
18269 (validate_phases): Rename to...
18270 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18271 locals "total" and "tv" const.
18272 (timevar_print): Rename to...
18273 (timer::print): ...this, and add "m_" prefixes. Make locals
18274 "total" and "tv" const. Eliminate test for timevar_enable.
18275 * timevar.h (timevar_enable): Eliminate.
18276 (g_timer): New declaration.
18277 (timevar_push_1): Eliminate.
18278 (timevar_pop_1): Eliminate.
18279 (timevar_print): Eliminate.
18280 (class timer): New class.
18281 (timevar_push): Rewrite to use g_timer.
18282 (timevar_pop): Likewise.
18283 * toplev.c (toplev::~toplev): Likewise.
18285 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18287 * arm-protos.h (arm_sched_autopref): Delete.
18288 (tune_params): Re-organize, use enums for flag values.
18289 (FUSE_OPS): New macro.
18290 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18291 (ARM_PREFETCH_BENEFICIAL): Likewise.
18292 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18293 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18294 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18295 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18296 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18297 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18298 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18299 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18301 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18302 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18303 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18305 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18307 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18310 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18311 Sandra Loosemore <sandra@codesourcery.com>
18313 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18315 (REG_CLASS_NAMES): Add "IJMP_REGS".
18316 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18317 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18318 use new "c" register constraint.
18319 * config/nios2/constraint.md (c): New register constraint
18320 corresponding to IJMP_REGS.
18322 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18324 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18325 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18326 define_splits): Delete, revamp, transmogrify into ...
18327 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18328 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18329 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18332 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18334 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18335 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18337 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18339 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18340 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18341 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18342 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18343 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18344 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18345 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18346 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18347 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18348 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18349 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18350 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18351 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18352 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18353 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18354 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18355 and 30 corresponding splitters): Delete.
18357 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18359 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18362 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18364 * combine.c (recog_for_combine_1): New function, factored out
18365 from recog_for_combine.
18366 (change_zero_ext): New function.
18367 (recog_for_combine): If recog fails, try again with the pattern
18368 modified by change_zero_ext; if that still fails, restore the
18371 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18373 * combine.c (get_undo_marker): New function.
18374 (undo_to_marker): New function, largely factored out from ...
18375 (undo_all): ... this. Adjust.
18377 2015-05-12 Richard Biener <rguenther@suse.de>
18379 PR tree-optimization/66101
18380 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18381 fixup if we turn a loop exit edge to a fallthru edge.
18383 2015-05-12 Richard Biener <rguenther@suse.de>
18385 PR tree-optimization/37021
18386 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18387 (SLP_TREE_TWO_OPERATORS): New define.
18388 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18389 SLP_TREE_TWO_OPERATORS.
18390 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18392 (vect_build_slp_tree): Adjust.
18393 (vect_analyze_slp_cost_1): Likewise.
18394 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18395 emitting two vector stmts and mixing the results.
18397 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18399 * call.c (print_z_candidates): Remove dead code.
18401 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18403 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18404 and zEC12_simple_fp.
18405 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18408 2015-05-12 Tom de Vries <tom@codesourcery.com>
18410 PR tree-optimization/66010
18411 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18413 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18414 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18415 va_lists are passed, and remove corresponding handling.
18416 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18417 do_deref argument to ifn_va_arg.
18418 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18421 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18424 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18425 REG before taking its REGNO.
18427 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18429 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18430 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18431 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18432 present to get more accurate information about the number of sign bit
18433 copies and non zero bits.
18435 2015-05-12 Richard Biener <rguenther@suse.de>
18437 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18438 do not allow unrolling.
18440 2015-05-11 Richard Henderson <rth@redhat.com>
18442 * config/i386/i386-modes.def (CCP): New.
18443 * config/i386/i386.c (put_condition_code): Handle it.
18444 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18446 2015-05-11 Richard Henderson <rth@redhat.com>
18448 * target.def (md_asm_clobbers): Replace with...
18449 (md_asm_adjust): this.
18450 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18451 (TARGET_MD_ASM_ADJUST): New.
18452 * tm.texi: Rebuild.
18453 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18454 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18455 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18457 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18458 constraints instead of lists of outputs and inputs.
18459 (expand_asm_stmt): Save and restore input_location around the
18460 body of the function. Move asm data into vectors instead of
18461 building tree lists. Generate cleanup sequences as needed,
18462 rather than waiting til the end. Use new md_asm_adjust hook.
18464 * config/vxworks.c: Include vec.h before target.h.
18465 * gimple.c: Likewise.
18466 * incpath.c: Likewise.
18467 * mode-switching.c: Likewise.
18469 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18470 (cris_md_asm_adjust): this.
18471 (TARGET_MD_ASM_CLOBBERS): Remove.
18472 (TARGET_MD_ASM_ADJUST): New.
18473 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18474 (ix86_md_asm_adjust): this.
18475 (TARGET_MD_ASM_CLOBBERS): Remove.
18476 (TARGET_MD_ASM_ADJUST): New.
18477 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18478 (mn10300_md_asm_adjust): this.
18479 (TARGET_MD_ASM_CLOBBERS): Remove.
18480 (TARGET_MD_ASM_ADJUST): New.
18481 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18482 (rs6000_md_asm_adjust): this.
18483 (TARGET_MD_ASM_CLOBBERS): Remove.
18484 (TARGET_MD_ASM_ADJUST): New.
18485 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18486 (visium_md_asm_adjust): this.
18487 (TARGET_MD_ASM_CLOBBERS): Remove.
18488 (TARGET_MD_ASM_ADJUST): New.
18490 2015-05-11 Richard Henderson <rth@redhat.com>
18492 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18493 if noutputs is zero.
18494 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18496 * cfgexpand.c (expand_asm_operands): Merge into...
18497 (expand_asm_stmt): ... here.
18499 * cfgexpand.c (expand_asm_operands): Don't call
18500 resolve_asm_operand_names.
18501 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18503 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18505 * dwarf2out.c (gen_member_die): Sanity check that we access
18506 TYPE_MAIN_VARIANT for TYPE_METHODS.
18507 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18508 checking TYPE_METHODS.
18509 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18511 (build_distinct_type_copy): Clear TYPE_METHODS.
18512 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18513 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18514 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18516 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18518 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18519 (emit_pattern_before_setloc): Likewise.
18521 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18523 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18524 for define_peephole2s.
18525 (get_peephole2_pattern): New function.
18526 (main): Use it. Call validate_pattern.
18528 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18530 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18531 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18532 (Last callee saved reg is different for AVR_TINY architecture)
18534 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18536 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18537 when looking for memory references.
18539 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18542 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18543 via function pointers.
18545 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18547 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18548 indirect call by forcing address into a pseudo with -fno-plt.
18549 * common.opt (flag_plt): New option.
18550 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18551 ([-fno-plt]): Document.
18553 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18556 * config/rs6000/option-defaults.h: Add space between string literal
18559 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18561 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18562 accross ARM targets.
18564 2015-05-11 Christian Bruel <christian.bruel@st.com>
18566 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18567 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18569 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18571 PR rtl-optimization/66076
18572 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18573 Don't grow the heap array if it is already big enough from a
18574 previous iteration.
18576 2015-05-11 Christian Bruel <christian.bruel@st.com>
18578 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18579 (is_called_in_ARM_mode): Remove.
18580 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18581 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18582 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18583 arm_declare_function_name.
18585 2015-05-11 Christian Bruel <christian.bruel@st.com>
18587 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18588 (arm_option_params_internal); New function.
18589 (arm_option_check_internal): New function.
18590 (arm_option_override_internal): New function.
18591 (thumb_code, thumb1_code): Remove.
18592 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18593 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18594 (thumb_code, thumb1_code): Remove.
18595 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18597 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18599 * config/alpha/alpha.c (alpha_emit_set_const_1)
18600 (alpha_emit_set_long_const, alpha_extract_integer)
18601 (alpha_legitimate_constant_p, alpha_split_const_mov)
18602 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18603 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18604 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18606 * config/alpha/predicates.md (mode_mask_operand): Do not match
18608 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18609 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18610 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18611 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18612 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18614 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18617 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18618 default_binds_local_p_2.
18619 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18620 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18622 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18624 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18626 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18628 Patch by Richard Biener
18629 * coverage.c (coverage_obj_init): Delay building of type variant
18630 until the type is finished.
18632 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18634 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18635 mismatch between C and C++ type; compoare correctly ARG_TYPES
18636 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18637 (odr_types_equivalent_p): Fix wording of warning about attributes;
18638 it is OK to match prototype and non-prototype.
18640 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18642 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18643 TYPE_ARG_TYPES list.
18644 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18645 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18647 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18649 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18650 * tree.h (is_lang_specific): Constify.
18652 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18654 PR tree-optimization/64454
18655 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18658 2015-05-08 Jason Merrill <jason@redhat.com>
18660 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18661 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18662 config/darwin.h, config/darwin9.h, config/elfos.h,
18663 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18664 config/microblaze/microblaze.h, config/mips/mips.h,
18665 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18666 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18667 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18668 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18669 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18670 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18671 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18672 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18673 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18674 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18675 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18676 between string literal and macro name.
18678 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18680 * jump.c: Change argument types to rtx_insn *.
18683 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18685 * lra-constraints.c: Change argument type to rtx_insn *.
18687 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18689 * df-problems.c: Change argument type to rtx_insn *.
18691 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18693 * combine.c: Change argument type to rtx_insn *.
18695 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18698 * rtlanal.c: Change argument type to rtx_insn *.
18700 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18702 * sched-deps.c: Change argument types to rtx_insn *.
18703 * sched-int.h: Adjust.
18705 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18707 * dwarf2cfi.c: Change argument type to rtx_insn *.
18709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18711 * ira.c (decrease_live_ranges_number): Changetype of local
18712 variable to rtx_insn *.
18713 * recog.c: Change argument types to rtx_insn *.
18716 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18718 * reorg.c: Change argument types to rtx_insn *.
18720 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18722 * ira-color.c: Change argument types to rtx_insn *.
18723 * lra-eliminations.c: Likewise.
18726 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18728 * gcse.c: Change argument types to rtx_insn *.
18730 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18732 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
18734 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18736 * emit-rtl.c (emit_debug_insn_before): Change argument type to
18740 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18742 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
18745 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18747 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
18750 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18752 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
18755 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18757 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18760 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18762 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18766 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18768 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18772 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18774 * except.c (can_nonlocal_goto): Change type of argument to
18778 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18780 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18783 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18785 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
18786 * cfgrtl.c (can_delete_label_p): Adjust.
18789 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18791 * reorg.c (stop_search_p): Change argument to rtx_insn *.
18793 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18795 * except.c (make_reg_eh_region_note): Change argument to
18797 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
18798 * except.h: Adjust.
18800 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18802 * mode-switching.c (commit_mode_sets): Change type of local
18803 variable from rtx to rtx_insn *.
18805 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
18807 * doc/install.texi (--enable-languages): Add missing jit and lto info.
18808 Add ^ to grep command.
18809 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18810 arg to last gimple_simplify declaration. Add missing gimple_build
18811 declaration for built-in function case with four tree args.
18813 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18814 Szabolcs Nagy <szabolcs.nagy@arm.com>
18816 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18817 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18818 (GNU_USER_DYNAMIC_LINKERN32): Update.
18820 2015-05-08 Richard Biener <rguenther@suse.de>
18822 PR tree-optimization/66036
18823 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18824 Handle strided group loads.
18825 (vect_verify_datarefs_alignment): Likewise.
18826 (vect_enhance_data_refs_alignment): Likewise.
18827 (vect_analyze_group_access): Likewise.
18828 (vect_analyze_data_ref_access): Likewise.
18829 (vect_analyze_data_ref_accesses): Likewise.
18830 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18831 (vectorizable_load): Likewise.
18833 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
18835 * config/rs6000/rs6000.md: Require operand inequality in one
18838 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
18839 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18841 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18843 * config/rx/rx.md (movdi, movdf): Likewise.
18844 Likewise for define_peephole2s.
18846 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18848 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18849 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18850 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18851 vtst_u64): Rewrite using gcc vector extensions.
18853 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18855 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18856 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18858 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18860 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18862 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18864 * config/glibc-stdint.h (OPTION_MUSL): Define.
18865 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18866 Change the definition based on OPTION_MUSL for 64 bit targets.
18867 * config/linux.h (OPTION_MUSL): Redefine.
18868 * config/alpha/linux.h (OPTION_MUSL): Redefine.
18869 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18870 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18872 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18873 Szabolcs Nagy <szabolcs.nagy@arm.com>
18875 * config.gcc (LIBC_MUSL): New tm_defines macro.
18876 * config/linux.h (OPTION_MUSL): Define.
18877 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18878 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18879 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18880 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18881 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18882 * config/linux.opt (mmusl): New option.
18883 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18884 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18885 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18886 * configure: Regenerate.
18888 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
18889 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18892 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18893 * config/i386/knetbsd-gnu64.h: New file.
18895 2015-05-08 Marek Polacek <polacek@redhat.com>
18898 * doc/invoke.texi: Document -Woverride-init-side-effects.
18900 2015-05-07 Marek Polacek <polacek@redhat.com>
18903 * doc/invoke.texi: Document -Wshift-negative-value.
18905 2015-05-06 Aditya Kumar <hiraditya@msn.com>
18907 * gcov-tool.c (do_merge): Refactore to remove int ret.
18908 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18909 !type == FUNC to type != FUNC.
18910 * reload.h (struct target_reload): Changee to type of
18911 x_spill_indirect_levels from bool to unsigned char.
18913 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
18915 * rtl.h (always_void_p): New function.
18916 * gengenrtl.c (always_void_p): Likewise.
18917 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18918 with code foo are always VOIDmode.
18919 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18920 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18921 compare-elim.c, config/aarch64/aarch64.c,
18922 config/aarch64/aarch64.md, config/alpha/alpha.c,
18923 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18924 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18925 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18926 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18927 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18928 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18929 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18930 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18931 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18932 config/ia64/vect.md, config/iq2000/iq2000.c,
18933 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18934 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18935 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18936 config/mep/mep.c, config/microblaze/microblaze.c,
18937 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18938 config/mn10300/mn10300.c, config/msp430/msp430.c,
18939 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18940 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18941 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18942 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18943 config/rs6000/rs6000.md, config/rs6000/vector.md,
18944 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18945 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18946 config/sh/sh.md, config/sh/sh_treg_combine.cc,
18947 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18948 config/spu/spu.md, config/stormy16/stormy16.c,
18949 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18950 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18951 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18952 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18953 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18954 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18955 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18956 var-tracking.c: Update calls accordingly.
18958 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18961 PR middle-end/54303
18962 * varasm.c (function_mergeable_rodata_prefix): New function.
18963 (mergeable_string_section): Use it.
18964 (mergeable_constant_section): Use it.
18966 2015-05-07 Jeff Law <law@redhat.com>
18969 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18970 simplifier to narrow arithmetic.
18971 * generic-match-head.c: (types_match, single_use): New functions.
18972 * gimple-match-head.c: (types_match, single_use): New functions.
18974 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18976 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18979 2015-05-07 Richard Biener <rguenther@suse.de>
18981 PR tree-optimization/66002
18982 * passes.def: Schedule another pass_merge_phi after ifcombine, right
18985 2015-05-07 Marek Polacek <polacek@redhat.com>
18986 Martin Uecker <uecker@eecs.berkeley.edu>
18988 * doc/invoke.texi: Document -fsanitize=bounds-strict.
18989 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18990 into SANITIZE_NONDEFAULT.
18991 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18993 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
18996 * config/alpha/alpha.c (alpha_override_options_after_change): New.
18997 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18998 (alpha_override_options): Move align_loops, align_jumps and
18999 align_functions handling into alpha_override_options_after_change.
19001 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19002 Chris Jones <chrisj@nvidia.com>
19003 Joshua Conner <jconner@nvidia.com>
19005 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19006 linking of crtfastmath.o.
19007 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19009 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19011 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19012 (cstore<mode>4_unsigned_imm): New expander.
19013 (cstore<mode>4): Remove empty constraint strings. Use the new
19016 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19019 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19022 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19024 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19026 2015-05-06 Alan Modra <amodra@gmail.com>
19029 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19030 (UNSPEC_NOP): Define.
19031 (reload_vsx_from_gpr<mode>): Add missing DONE.
19032 (reload_gpr_from_vsx<mode>): Likewise.
19033 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19034 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19036 2015-05-06 Christian Bruel <christian.bruel@st.com>
19039 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19040 align_jumps, align_functions into aarch64_override_options_after_change.
19042 2015-05-06 Richard Biener <rguenther@suse.de>
19044 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19045 vect_transform_slp_perm_load to check if we support a permutation
19046 for basic-block vectorization.
19048 2015-05-06 Nick Clifton <nickc@redhat.com>
19050 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19051 used, even if it is not being used as a frame pointer.
19053 2015-05-05 Jason Merrill <jason@redhat.com>
19055 * dwarf2out.c (gen_member_die): Don't emit anything for an
19056 anonymous class constructor.
19058 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19060 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19061 that it reflects the block structure.
19062 (afdo_propagate_edge): Likewise.
19063 (afdo_calculate_branch_prob): Likewise.
19064 (afdo_annotate_cfg): Likewise.
19065 * cfgcleanup.c (equal_different_set_p): Likewise.
19066 (try_crossjump_to_edge): Likewise.
19067 * cgraph.c (cgraph_node::verify_node): Likewise.
19068 * cgraphunit.c (expand_all_functions): Likewise.
19069 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19070 (exact_dependency_1): Likewise.
19071 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19072 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19073 * gensupport.c (process_define_subst): Likewise.
19074 * lto-wrapper.c (merge_and_complain): Likewise.
19075 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19076 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19077 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19078 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19079 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19080 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19081 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19082 * tree-vrp.c (vrp_finalize): Likewise.
19083 * tree.c (variably_modified_type_p): Likewise.
19085 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19087 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19088 on darwin12 and later.
19089 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19090 file to pass -rdynamic on darwin12 and later.
19091 * config/darwin.opt (rdynamic): Add.
19093 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19095 * doc/extend.texi (C Extensions): Update menu for moved Variable
19096 Attributes and Type Attributes sections.
19098 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19101 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19102 if rep_8byte stringop strategy was specified for 32-bit target.
19104 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19107 * config/i386/i386.md (vector convert to float spltiter): Check for
19108 xmm16+, when splitting scalar float conversion.
19109 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19111 2015-05-05 Nick Clifton <nickc@redhat.com>
19113 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19114 * config/msp430/msp430.c (msp430_override_options): Complain if
19115 -mcode-region or -mdata-region is used on a non MSP430X.
19116 (msp430_section_attr): New function. Checks lower, upper and
19118 (msp430_attribute_table): Add lower, upper and either.
19119 (gen_prefix): New function. Generates a prefix for a section
19121 (msp430_select_section): New function - handles the choice of
19122 section for an object. Takes into account memory region
19123 attributes and options.
19124 (msp430_function_section): Use gen_prefix.
19125 (TARGET_SECTION_TYPE_FLAGS): Define.
19126 (msp430_section_type_flags): New function.
19127 (TARGET_ASM_UNIQUE_SECTION): Define.
19128 (msp430_unique_section): New function.
19129 (msp430_output_aligned_decl_common): New function.
19130 (msp430_do_not_relax_short_jumps): New function.
19131 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19133 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19134 * config/msp430/msp430-protos.h
19135 (msp430_do_not_relax_short_jumps): New prototype.
19136 (msp430_output_aligned_decl_common): New prototype.
19137 * config/msp430/msp430.md (length): New attribute.
19138 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19139 then use a long code sequence for short jumps.
19140 * config/msp430/msp430.opt (mcode-region): New.
19141 (mdata-region): New.
19142 * doc/invoke.texi: Document new options.
19143 * doc/extend.texi: Document new attributes.
19145 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19147 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19148 (tune_params): Add field branch_costs.
19149 (aarch64_branch_cost): Declare.
19150 * gcc/config/aarch64.c (generic_branch_cost): New.
19151 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19152 (cortexa53_tunings): Likewise.
19153 (cortexa57_tunings): Likewise.
19154 (thunderx_tunings): Likewise.
19155 (xgene1_tunings): Likewise.
19156 (aarch64_branch_cost): Define.
19157 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19159 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19161 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19162 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19163 * config/i386/i386.md: Ditto.
19164 * config/i386/winnt.c: Ditto.
19166 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19168 * doc/extend.texi (__atomic Builtins): Move implementation details
19169 to the end of the description, rewrite opening paragraphs, state
19170 difference with __sync builtins, state C11/C++11 assumptions,
19171 weaken itemized descriptions, add explanation of memory model
19172 behaviour, expand description of compare-exchange, simplify text.
19174 2015-05-05 Renlin Li <renlin.li@arm.com>
19176 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19178 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19180 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19181 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19182 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19183 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19184 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19185 * configure: Regenerate.
19186 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19187 * doc/install.texi (aarch64*-*-*): Document new
19188 --enable-fix-cortex-a53-843419 option.
19189 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19190 and -mno-fix-cortex-a53-843419 options.
19192 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19195 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19197 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19199 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19200 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19201 compatibility problems.
19203 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19205 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19207 (cbranchsi4_reg): New.
19208 * config/microblaze/microblaze.c
19209 (microblaze_expand_conditional_branch_reg): New.
19210 * config/microblaze/microblaze-protos.h
19211 (microblaze_expand_conditional_branch_reg): New prototype.
19213 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19215 * config/microblaze/microblaze.md (peephole2): New.
19217 2015-05-04 Jeff Law <law@redhat.com>
19220 2015-05-04 Jeff Law <law@redhat.com>
19222 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19223 simplifier to narrow arithmetic.
19224 * generic-match-head.c: (types_match, single_use): New functions.
19225 * gimple-match-head.c: (types_match, single_use): New functions.
19227 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19230 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19231 (split_branches): Likewise.
19233 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19235 * common.opt (fdelete-null-pointer-checks): Init to -1.
19236 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19237 override flag_delete_null_pointer_checks default.
19238 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19239 behavior re address zero. Better document target-specific behavior.
19240 (-fisolate-errneous-paths-dereference): Mention relationship to
19241 -fdelete-null-pointer-checks.
19243 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19245 PR tree-optimization/65984
19246 * ubsan.c: Include tree-cfg.h.
19247 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19248 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19250 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19252 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19253 to CONST_DOUBLE_P predicate.
19254 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19255 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19256 allow only operands that satisfy standard_sse_constant_p predicate.
19257 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19258 to CONST_DOUBLE_P predicate.
19260 2015-05-04 Jeff Law <law@redhat.com>
19262 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19263 simplifier to narrow arithmetic.
19264 * generic-match-head.c: (types_match, single_use): New functions.
19265 * gimple-match-head.c: (types_match, single_use): New functions.
19267 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19269 * config/arm/arm.c: Restore bootstrap.
19271 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19273 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19274 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19275 as CONST_WIDE_INT, not CONST_DOUBLE.
19276 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19277 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19278 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19279 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19280 (ix86_build_signbit_mask): Rewrite using wide ints.
19281 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19282 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19283 (find_constant): Ditto.
19284 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19285 using gen_int_mode.
19286 * config/i386/predicates.md (x86_64_immediate_operand)
19287 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19288 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19289 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19290 (const0_operand): Also match const_wide_int.
19291 (constm1_operand): Ditto.
19292 (const1_operand): Ditto.
19294 2015-05-04 Richard Biener <rguenther@suse.de>
19296 PR tree-optimization/65965
19297 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19298 store groups at gaps.
19300 2015-05-04 Richard Biener <rguenther@suse.de>
19302 PR tree-optimization/65935
19303 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19304 then make sure to apply that swapping to the IL.
19306 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19308 * Makefile.in (PATCHLEVEL_c): New variable.
19309 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19310 expand the same way as if DEVPHASE_c was non-empty.
19312 2015-05-04 Kai Tietz <ktietz@redhat.com>
19315 * lto-wrapper.c (run_gcc): Open filename
19318 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19320 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19321 sections up in file, to immediately after the Function Attributes
19324 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19326 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19328 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19330 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19331 (insert_partition_copy_on_edge): Adjust.
19332 (insert_rtx_to_part_on_edge): Likewise.
19333 (insert_part_to_rtx_on_edge): Likewise.
19335 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19337 * function.c (set_return_jump_label): Change type of argument to
19339 * function.h (set_return_jump_label): Adjust.
19341 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19343 * reload.h (struct reg_equivs_t): Change type of init to
19345 * ira.c (fix_reg_equiv_init): Adjust.
19346 * reload1.c (eliminate_regs_1): Likewise.
19347 (init_eliminable_invariants): Likewise.
19349 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19351 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19352 * cselib.h (fp_setter_insn): Adjust.
19354 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19356 * recog.c (struct validate_replace_src_data): Change type of
19357 insn field to rtx_insn *.
19358 (validate_replace_src_group): Change type of argument to rtx_insn *.
19359 * recog.h (validate_replace_src_group): Adjust.
19361 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19363 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19364 * sched-deps.c: Likewise.
19365 * sched-int.h: Likewise.
19366 * sched-rgn.c: Likewise.
19367 * sel-sched.c: Likewise.
19369 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19372 * config/i386/i386.c: Change the type of some arguments to
19374 * config/arm/arm.c: Likewise.
19376 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19378 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19380 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19382 * regcprop.c (kill_autoinc_value): Change type of argument to
19385 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19387 * genrecog.c (print_subroutine): Adjust.
19388 * recog.c (get_bool_attr_mask_uncached): Likewise.
19389 * recog.h (struct recog_data_d): Change the type of insn to
19392 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19394 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19396 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19398 * df-problems.c (df_set_note): Change type of argument to
19401 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19403 * builtins.c (expand_builtin_trap): Change type of local
19404 variable to rtx_insn *.
19405 (add_sched_insns_for_speculation): Likewise.
19406 (ix86_emit_save_regs): Likewise.
19407 (get_scratch_register_on_entry): Likewise.
19408 (ix86_emit_restore_reg_using_pop): Likewise.
19409 (ix86_emit_leave): Likewise.
19410 (ix86_emit_restore_regs_using_mov): Likewise.
19411 (ix86_expand_epilogue): Likewise.
19413 (rl78_alloc_physical_registers_umul): Likewise.
19414 * cselib.c (discard_useless_locs): Likewise.
19415 (cselib_invalidate_regno): Likewise.
19416 (cselib_invalidate_mem): Likewise.
19417 * function.c (expand_function_start): Likewise.
19418 (emit_use_return_register_into_block): Likewise.
19419 * gcse.c: Likewise.
19420 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19421 * ifcvt.c (noce_get_alt_condition): Likewise.
19422 * loop-doloop.c (doloop_condition_get): Likewise.
19423 * lra-constraints.c (inherit_in_ebb): Likewise.
19424 * modulo-sched.c (sms_schedule_by_order): Likewise.
19425 * recog.c (next_insn_tests_no_inequality): Likewise.
19426 * reorg.c (emit_delay_sequence): Likewise.
19427 (update_reg_dead_notes): Likewise.
19428 (fix_reg_dead_note): Likewise.
19429 (fill_slots_from_thread): Likewise.
19430 (delete_computation): Likewise.
19432 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19434 * doc/extend.texi (Variable Attributes): Add menu and proper
19435 @nodes to subsections. Move Microsoft Windows attributes to
19436 their own subsection.
19437 (Type Attributes): Reorganize introduction to remove duplicate
19438 list of attributes. Add menu and proper @nodes to subsections.
19439 Alphabetize the main table of common attributes.
19441 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19443 * match.pd: New simplification patterns.
19444 (x + (x & 1)) -> ((x + 1) & ~1)
19445 (x & ~(x & y)) -> ((x & ~y))
19446 (x | ~(x | y)) -> ((x | ~y))
19448 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19450 * target.def (attribute_table): Mention that struct attribute_spec
19451 is defined in tree-core.h rather than tree.h
19452 * doc/tm.texi: Regenerate.
19454 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19456 * genrecog.c (test): Rename to rtx_test. Update rest of file
19459 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19461 PR translation/65959
19462 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19464 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19466 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19467 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19468 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19469 Return value depending on target.
19470 (generic_tunings): Initialize new target settings.
19471 (cortexa53_tunings): Likewise.
19472 (cortexa57_tunings): Likewise.
19473 (thunderx_tunings): Likewise.
19474 (xgene1_tunings): Likewise.
19476 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19478 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19479 Make Cortex-A53 shift costs more accurate.
19481 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19483 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19486 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19488 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19489 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19491 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19493 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19494 Add cost of op0 in the compare-with-fpzero case.
19496 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19498 * builtins.c (fold_builtin_1): Remove spurious second
19500 * cgraph.h (symtab_node::get_availability): Likewise.
19501 * opts.c (common_handle_option): Remove spurious second semicolon.
19502 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19503 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19505 2015-04-30 Caroline Tice <cmtice@google.com>
19507 PR gcov-profile/65929
19508 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19509 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19510 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19511 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19512 * doc/tm.texi: Regenerate.
19513 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19514 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19515 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19516 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19518 2015-04-30 Marek Polacek <polacek@redhat.com>
19520 * varasm.c (handle_cache_entry): Fix logic.
19522 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19524 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19525 (*extrsi5_insn_uxtw_alt): Likewise.
19526 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19527 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19530 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19532 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19535 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19537 * config/aarch64/aarch64.md
19538 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19539 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19540 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19541 appropriately. Handle alternative EON form.
19543 2015-04-30 Renlin Li <renlin.li@arm.com>
19545 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19546 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19548 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19551 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19552 -fstrict-aliasing boundaries.
19554 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19556 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19557 and [SU]MNEGL patterns.
19559 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19561 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19562 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19563 combined arithmetic-shift ops. Properly handle all shift and extend
19564 operations that can occur in combination with PLUS/MINUS.
19565 Rename maybe_fma to compound_p.
19566 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19567 arithmetic and shift operations.
19569 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19571 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19572 rather than arith_shift cost when costing ADD/MINUS of an
19575 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19578 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19581 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19583 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19584 are for the same position.
19586 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19588 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19590 (vectorize_loops): Use it.
19592 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19594 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19595 for aggregate types.
19596 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19597 type to be non_ODR.
19598 * tree.c (need_assembler_name_p): Compute mangled name for
19599 non-fundamental types and integer types.
19601 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19603 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19605 * expr.c (expand_expr_real_2): Likewise.
19607 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19609 * tree.c (build_common_builtin_nodes): Do not build
19610 __builtin_alloca_with_align as equivalent of library alloca.
19612 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19614 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19615 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19617 * tree.c: Include print-tree.h and ipa-utils.h
19618 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19619 (free_lang_data_in_cgraph): Call verify_type.
19620 (verify_type_variant): New function.
19621 (verify_type): New function.
19622 * tree.h (verify_type): Declare.
19624 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19626 * config/mips/mips-cpus.def: (mips4): Change default processor
19627 from PROCESSOR_R8000 to PROCESSOR_R10000.
19629 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19631 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19632 la/jalr instead of jal.
19634 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19637 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19638 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19639 (setcc+movzbl peephole2): Check also clobbered reg.
19640 (setcc+andl peephole2): Ditto.
19642 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19645 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19646 (main): Set it depending on "-foffload-abi=[...]".
19647 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19650 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19653 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19654 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19655 Flip lane index back at assembly time for bigendian.
19657 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19659 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19660 * gimplify.c (gimplify_omp_workshare): Use it.
19662 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19664 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19665 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19667 * genrecog.c: Rewrite most of the code except for the third page.
19669 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19671 * inchash.h, inchash.c: Include bconfig.h for build objects.
19672 * Makefile.in (build/inchash.o): New rule.
19674 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19677 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19678 number in type attribute expression.
19680 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19682 * loop-iv.c (canon_condition): Generalize to all types of integer
19685 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19687 * gimple-walk.c: Prune duplicate or unneeded includes.
19688 (walk_gimple_asm): Only call parse_input_constraint or
19689 parse_output_constraint if their findings are used.
19690 Honour parse_input_constraint and parse_output_constraint
19693 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19695 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19697 2015-04-29 Tom de Vries <tom@codesourcery.com>
19699 PR tree-optimization/65893
19700 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19703 2015-04-29 Richard Biener <rguenther@suse.de>
19705 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19706 compute GROUP_SIZE for basic-block SLP.
19707 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19708 take into account gaps.
19709 (vect_get_mask_element): Properly reject references to previous
19711 (vect_transform_slp_perm_load): Likewise.
19713 2015-04-29 Christian Bruel <christian.bruel@st.com>
19716 * config/i386/i386.c (ix86_default_align): New function.
19717 (ix86_override_options_after_change): Call ix86_default_align.
19718 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
19719 (ix86_override_options_after_change): New function.
19721 2015-04-28 Jeff Law <law@redhat.com>
19723 * tree-ssa-dom.c (record_equality); Fix comment typos.
19725 2015-04-28 Tom de Vries <tom@codesourcery.com>
19727 PR tree-optimization/65887
19728 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
19730 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
19732 * doc/extend.texi (Declaring Attributes of Functions): Split into
19733 subsections by target. Alphabetize the table of common attributes.
19734 Rewrite some of the introductory text to reflect the new structure.
19735 Update some cross-references to point to the new subsections.
19736 (Attribute Syntax): Put paragraph about "__" naming here. Remove
19737 duplicate copies in the discussion of function, label, and type
19740 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
19743 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
19745 2015-04-28 Jason Merrill <jason@redhat.com>
19748 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
19749 (finalize_type_size): Respect TYPE_USER_ALIGN.
19750 (layout_type) [ARRAY_TYPE]: Likewise.
19752 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
19754 * config/arm/arm.md (*arm_movt): Fix type attribute.
19755 (*cmpsi_shiftsi): Likewise.
19756 (*cmpsi_shiftsi_swp): Likewise.
19757 (*movsicc_insn): Likewise.
19758 (*cond_move): Likewise.
19759 (*if_plus_move): Likewise.
19760 (*if_move_plus): Likewise.
19761 (*if_arith_move): Likewise.
19762 (*if_move_arith): Likewise.
19763 (*if_shift_move): Likewise.
19764 (*if_move_shift): Likewise.
19765 (*arm_movtas_ze): Likewise.
19766 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19767 redundancy and type attribute.
19768 (*thumb2_movsi_insn): Fix type attribute.
19769 (*thumb2_addsi_short): Likewise.
19770 (thumb2_addsi3_compare0): Likewise.
19771 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19772 attributes accordingly.
19774 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19777 * function.c (pad_to_arg_alignment): Add parentheses.
19779 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
19781 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19782 libgcc/config/frv/elf-lib.h.
19784 2015-04-28 Tom de Vries <tom@codesourcery.com>
19786 * tree-call-cdce.c: Fix example in header comment.
19788 2015-04-28 Richard Biener <rguenther@suse.de>
19790 PR tree-optimization/62283
19791 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
19792 fails fatally and we are vectorizing a basic-block simply
19793 cause the child to be constructed piecewise.
19794 (vect_analyze_slp_cost_1): Adjust.
19795 (vect_detect_hybrid_slp_stmts): Likewise.
19796 (vect_bb_slp_scalar_cost): Likewise.
19797 (vect_get_constant_vectors): For piecewise constructed
19798 constants place them after the last def.
19799 (vect_get_slp_defs): Adjust.
19800 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
19801 externals for basic-block vectorization.
19803 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19806 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19808 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19809 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19810 (AARCH64_TUNE_FMA_STEERING): Likewise.
19811 * config/aarch64/aarch64-cores.def: Set
19812 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19813 FMUL/FMADD instructions.
19814 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19815 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
19816 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19817 * config/aarch64/cortex-a57-fma-steering.h: New file.
19818 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19820 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
19822 * gensupport.c (std_preds): Add missing codes to address_operand entry.
19824 2015-04-28 Richard Biener <rguenther@suse.de>
19826 PR tree-optimization/65851
19827 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19828 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
19829 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
19830 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19831 (ccp_visit_phi_node): Adjust.
19832 (evaluate_stmt): For simplifications to SSA names return its
19833 lattice value if that isn't VARYING. Return immediately when
19834 simplified to a constant.
19835 (visit_assignment): Adjust.
19836 (ccp_visit_stmt): Likewise.
19838 2015-04-28 Tom de Vries <tom@codesourcery.com>
19840 PR tree-optimization/65818
19841 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19844 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19846 * calls.c (save_fixed_argument_area): Don't check
19847 ARGS_GROW_DOWNWARD with the preprocessor.
19848 (restore_fixed_argument_area): Likewise.
19849 (mem_overlaps_already_clobbered_arg_p): Likewise.
19850 (check_sibcall_argument_overlap): Likewise.
19851 (expand_call): Likewise.
19852 (emit_library_call_value_1): Likewise.
19853 (store_one_arg): Likewise.
19854 * function.c (assign_parms): Likewise.
19855 (locate_and_pad_parm): Likewise.
19856 (pad_to_arg_alignment): Likewise.
19857 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19859 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19861 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19862 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19863 * calls.c (save_fixed_argument_area): Don't chekc if
19864 ARGS_GROW_DOWNWARD is defined.
19865 (restore_fixed_argument_area): Likewise.
19866 (mem_overlaps_already_clobbered_arg_p): Likewise.
19867 (check_sibcall_argument_overlap): Likewise.
19868 (expand_call): Likewise.
19869 (emit_library_call_value_1): Likewise.
19870 (store_one_arg): Likewise.
19871 * function.c (assign_parms): Likewise.
19872 (locate_and_pad_parm): Likewise.
19873 (pad_to_arg_alignment): Likewise.
19874 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19876 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19878 * defaults.h (gen_epilogue): New function.
19879 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19881 * cfgrtl.c (cfg_layout_finalize): Likewise.
19882 * df-scan.c: Likewise.
19883 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19884 (reposition_prologue_and_epilogue_notes): Likewise.
19885 * reorg.c (find_end_label): Likewise.
19886 * toplev.c: Likewise.
19888 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19890 * bb-reorder.c (HAVE_return): Don't check if its undefined.
19891 * defaults.h (gen_simple_return): New function.
19892 (gen_simple_return): Likewise.
19893 (HAVE_return): Add default definition to false.
19894 (HAVE_simple_return): Likewise.
19895 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19896 HAVE_return and HAVE_simple_return are defined.
19897 * function.c (gen_return_pattern): Likewise.
19898 (convert_jumps_to_returns): Likewise.
19899 (thread_prologue_and_epilogue_insns): Likewise.
19900 * reorg.c (find_end_label): Likewise.
19901 (dbr_schedule): Likewise.
19902 * shrink-wrap.c: Likewise.
19903 * shrink-wrap.h: Likewise.
19905 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19907 * defaults.h (EPILOGUE_USES): Add default definition of false.
19908 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19909 * resource.c (init_resource_info): Likewise.
19911 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19913 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19915 * dwarf2out.c (field_byte_offset): REmove check if
19916 PCC_BITFIELD_TYPE_MATTERS is defined.
19917 * stor-layout.c (layout_decl): Likewise.
19918 (update_alignment_for_field): Likewise.
19919 (place_field): Likewise.
19921 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19923 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19925 * regrename.c (check_new_reg_p): Remove check if
19926 HARD_REGNO_RENAME_OK is defined.
19927 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19929 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19931 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19932 * cse.c (fold_rtx): Likewise.
19933 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19934 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19935 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19936 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19937 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19938 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19939 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19940 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19941 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19942 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19944 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19945 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19946 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19947 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19948 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19949 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19950 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19951 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19952 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19953 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19954 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19955 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19956 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19957 * doc/tm.texi: Regenerate.
19958 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19959 either true or false.
19961 2015-04-27 Jeff Law <law@redhat.com>
19963 PR tree-optimization/65217
19964 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19965 of them has a single use, make sure it is the LHS of the implied
19968 2015-04-28 Alan Modra <amodra@gmail.com>
19971 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19972 (offsettable_ok_by_alignment): Use minimum of decl and toc
19973 pointer alignment. Replace dead code with assertion.
19974 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
19975 case if size exceeds toc pointer alignment.
19976 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19977 (rs6000_emit_move): Likewise.
19978 * configure.ac: Add linker toc pointer alignment check.
19979 * configure: Regenerate.
19980 * config.in: Regenerate.
19982 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
19984 * config.gcc: Add h8300-*-linux.
19985 * config/h8300/linux.h: New.
19986 * config/h8300/t-linux: New.
19987 * config/h8300/h8300.c (h8300_option_override): Normal mode
19988 is not supported for h8300-*-linux.
19989 (h8300_file_start): Target priority change.
19990 (get_shift_alg): Likewise.
19991 (h8300_shift_need_scratch_p): Likewise.
19992 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19993 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19995 2015-04-27 Caroline Tice <cmtice@google.com>
19997 * final.c (final_scan_insn): Output cold_function_name as function
19999 * varasm.c (cold_function_name): Make global.
20000 (assemble_start_function): Re-set cold_function_name.
20001 (assemble_end_function): Output cold partition size.
20002 * varasm.h (cold_function_name): Declare global.
20004 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20006 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20007 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20009 (*movxi_internal_avx512f): Ditto.
20010 (define_split): Check for xmm16+, when splitting scalar float_extend.
20011 (*extendsfdf2_mixed): Use "v" constraint.
20012 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20013 (*truncdfsf_fast_sse): Use "v" constraint.
20014 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20015 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20016 (define_peephole2): Check for xmm16+, when converting scalar
20018 (define_peephole2): Check for xmm16+, when converting scalar
20020 (*fop_<mode>_comm_mixed): Use "v" constraint.
20021 (*fop_<mode>_comm_sse): Ditto.
20022 (*fop_<mode>_1_mixed): Ditto.
20023 (*sqrt<mode>2_sse): Ditto.
20024 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20026 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20028 * combine.c (simplify_if_then_else): Use std::swap instead
20029 of manually swapping.
20030 (known_cond): Likewise.
20031 (simplify_comparison): Likewise.
20033 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20036 * config/rs6000/htm.md: Remove all define_expands.
20037 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20038 UNSPECV_HTM_TABORTWCI): Remove.
20039 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20040 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20041 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20042 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20043 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20044 tabortwci_internal): Remove define_insns.
20045 (tabort<wd>c, tabort<wd>ci): New define_insns.
20046 (tabort): Use gpc_reg_operand.
20047 (tcheck): Remove operand.
20048 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20049 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20051 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20052 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20053 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20054 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20055 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20056 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20057 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20058 (tcheck): Remove builtin argument.
20059 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20061 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20062 tabortdc and tabortdci builtins when not in 64-bit mode.
20063 Modify code to handle the loss of the HTM define_expands.
20064 Emit code to copy the CR register to TARGET.
20065 (htm_init_builtins): Modify code to handle the loss of the HTM
20067 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20068 (RS6000_BTC_64BIT): Likewise.
20069 (RS6000_BTC_CR): New macro.
20070 * doc/extend.texi: Update documentation for htm builtins.
20072 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20074 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20075 of manually swapping.
20076 (simplify_associative_operation): Likewise.
20077 (simplify_binary_operation): Likewise.
20078 (simplify_plus_minus): Likewise.
20079 (simplify_relational_operation): Likewise.
20080 (simplify_ternary_operation): Likewise.
20082 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20084 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20085 (xs_hi_nonmemory_operand): Remove error.
20086 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20087 general_operand rather than xs_hi_general_operand.
20089 2015-04-27 Richard Biener <rguenther@suse.de>
20091 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20092 (record_equivalences_from_stmt): Valueize rhs.
20093 (record_equality): Canonicalize x and y order via
20094 tree_swap_operands_p. Do not swap operands for same loop depth.
20096 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20100 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20101 Add hint how to use own spec file.
20103 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20105 PR tree-optimization/65875
20106 * tree-vrp.c (update_value_range): If in is_new case setting
20107 old_vr to VR_VARYING, also set new_vr to it. Remove
20108 old_vr->type == VR_VARYING test.
20109 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20110 SSA_PROP_INTERESTING if update_value_range returned true,
20111 but new range is VR_VARYING.
20113 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20115 * combine.c (sign_extend_short_imm): New.
20116 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20117 extension of src short immediate.
20118 (reg_nonzero_bits_for_combine): Likewise for tem.
20120 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20122 * stor-layout.c (self_referential_component_ref_p): New predicate.
20123 (copy_self_referential_tree_r): Use it.
20124 (self_referential_size): Punt for simple operations directly involving
20125 self-referential component references.
20126 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20128 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20130 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20132 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20134 * vec.h (vec): Make splice arguments const. Update definitions
20137 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20139 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20142 2015-04-26 Tom de Vries <tom@codesourcery.com>
20144 PR tree-optimization/65826
20145 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20147 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20149 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20150 (*madd3<mode>): Ditto.
20151 (*msub4<mode>): Ditto.
20152 (*msub3<mode>): Ditto.
20153 (*nmadd4<mode>): Ditto.
20154 (*nmadd3<mode>): Ditto.
20155 (*nmadd4<mode>_fastmath): Ditto.
20156 (*nmadd3<mode>_fastmath): Ditto.
20157 (*nmsub4<mode>): Ditto.
20158 (*nmsub3<mode>): Ditto.
20159 (*nmsub4<mode>_fastmath): Ditto.
20160 (*nmsub3<mode>_fastmath): Ditto.
20162 2015-04-24 Jason Merrill <jason@redhat.com>
20165 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20166 down when building TYPE_CANONICAL.
20167 (build_pointer_type_for_mode): Likewise.
20169 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20171 * genrecog.c (validate_pattern): Check matching constraint refers
20172 to a lower numbered operand.
20174 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20177 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20178 save to independent variables use the Save attribute. This will
20179 allow these options to be modified with the #pragma/attribute
20181 (-mallow-movmisalign): Likewise.
20182 (-mallow-df-permute): Likewise.
20183 (-msched-groups): Likewise.
20184 (-malways-hint): Likewise.
20185 (-malign-branch-targets): Likewise.
20186 (-mvectorize-builtins): Likewise.
20187 (-msave-toc-indirect): Likewise.
20189 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20190 can be set via the #pragma/attribute target support.
20191 (rs6000_opt_vars): Likewise.
20192 (rs6000_inner_target_options): If VSX was set, also set
20193 -mno-avoid-indexed-addresses.
20195 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20197 * config/arm/iterators.md (shiftable_ops): Rename to...
20198 (SHIFTABLE_OPS): ... This. Update use in comments.
20199 (ior_xor): Rename to...
20200 (IOR_XOR): ... This.
20201 (vqh_ops): Rename to...
20202 (VQH_OPS): ... This.
20203 (vqhs_ops): Rename to...
20204 (VQHS_OPS): ... This.
20205 (rshifts): Rename to...
20206 (RSHIFTS): ... This.
20207 (returns): Rename to...
20208 (RETURNS): ... This.
20209 * config/arm/arm.md: Update uses of the above.
20210 * config/arm/neon.md: Likewise.
20212 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20214 * config.host (case ${host}): Add aarch64*-*-linux case.
20215 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20216 fields to all the cores.
20217 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20218 Add MCPU_MTUNE_NATIVE_SPECS.
20219 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20220 field to all extensions.
20221 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20222 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20223 Adjust definition of AARCH64_OPT_EXTENSION.
20224 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20225 (MCPU_MTUNE_NATIVE_SPECS): Define.
20226 * config/aarch64/driver-aarch64.c: New file.
20227 * config/aarch64/x-arch64: New file.
20228 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20231 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20232 Wei Mi <wmi@google.com>
20234 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20235 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20236 (ix86_operands_ok_for_move_multiple): Ditto.
20237 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20238 (movlpd/movhpd to movupd peephole2): Ditto.
20240 2015-04-24 Marek Polacek <polacek@redhat.com>
20243 * input.h (from_macro_expansion_at): Define.
20246 * doc/invoke.texi: Update description of -Wlogical-op.
20248 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20250 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20251 ternary operator in fprintf and harmonize spacing.
20253 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20255 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20256 Mark operand1 commutative.
20258 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20260 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20261 input operands in memory.
20262 (*vec_concatv2si_sse4_1): Ditto.
20263 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20264 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20266 (vec_extract_hi_v32hi): Ditto.
20267 (vec_extract_hi_v64hi): Ditto.
20268 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20270 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20271 Steven Bosscher <steven@gcc.gnu.org>
20273 PR rtl-optimization/34503
20274 * cprop.c (cprop_reg_p): New.
20275 (hash_scan_set): Use above function to check if register can be
20277 (find_avail_set): Return up to two sets, one whose source is a
20278 register and one whose source is a constant. Sets are returned in an
20279 array passed as parameter rather than as a return value.
20280 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20281 sets returned by find_avail_set, starting with the one whose source is
20282 a constant. Use cprop_reg_p to check if register can be propagated.
20283 (do_local_cprop): Use cprop_reg_p to check if register can be
20285 (implicit_set_cond_p): Likewise.
20287 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20289 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20290 (sem_function::equals): IGNORED_NODES parameter is now unused;
20291 update call of equals_private.
20292 (sem_function::equals_private): Do not call equals_wpa; skip
20293 gimple body matching if there is no body.
20294 (sem_function::init): Add logic to hash tthunk info.
20295 (sem_function::parse): Also parse thunks.
20296 * ipa-icf.h (equals_private): Update declaration.
20298 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20300 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20301 asterisk from name so this can be generated directly.
20302 (*altivec_stvx_<mode>_internal): Likewise.
20303 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20304 that this is never called during or after reload/lra.
20305 (rs6000_frame_related): Remove split_reg
20306 argument and logic that references it.
20307 (emit_frame_save): Remove last parameter from call to
20308 rs6000_frame_related.
20309 (rs6000_emit_prologue): Remove last parameter from eight calls to
20310 rs6000_frame_related. Force generation of stvx instruction for
20311 Altivec register saves. Remove split_reg handling, which is no
20313 (rs6000_emit_epilogue): Force generation of lvx instruction for
20314 Altivec register restores.
20316 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20318 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20319 match category changes in ISA 2.07B.
20321 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20323 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20325 (cmp_op, cmp_type): New code attributes.
20326 (NEON_VCMP, NEON_VACMP): New int iterators.
20327 (cmp_op_unsp): New int attribute.
20328 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20329 (neon_vceq<mode>): Delete.
20330 (neon_vc<cmp_op><mode>_insn): New pattern.
20331 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20332 (neon_vcgeu<mode>): Delete.
20333 (neon_vcle<mode>): Likewise.
20334 (neon_vclt<mode>: Likewise.
20335 (neon_vcage<mode>): Likewise.
20336 (neon_vcagt<mode>): Likewise.
20337 (neon_vca<cmp_op><mode>): New define_expand.
20338 (neon_vca<cmp_op><mode>_insn): New pattern.
20339 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20341 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20343 * tree.h (attribute_value_equal): Declare.
20344 * tree.c (attribute_value_equal): Export.
20346 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20348 * ipa-icf.c (sem_item::compare_attributes): New function.
20349 (sem_item::compare_referenced_symbol_properties): Compare variable
20351 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20352 (sem_function::param_used_p): New function.
20353 (sem_function::equals_wpa): Fix attribute comparsion; match
20354 parameter type codes; do not compare paremter flags when
20355 they are not used; compare edge flags; compare indirect calls.
20356 (sem_item::update_hash_by_addr_refs): Hash reference type.
20357 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20358 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20359 reference use type.
20360 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20361 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20363 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20365 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20367 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20368 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20369 (sem_item::compare_referenced_symbol_properties): New.
20370 (sem_item::hash_referenced_symbol_properties): New.
20371 (sem_item::compare_cgraph_references): Rename to ...
20372 (sem_item::compare_symbol_references): ... this one; use
20373 compare_referenced_symbol_properties.
20374 (sem_function::equals_wpa): Do not compare
20375 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20376 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20377 (sem_item::update_hash_by_addr_refs): Call
20378 hash_referenced_symbol_properties.
20379 (sem_item::update_hash_by_local_refs): Cleanup.
20380 (sem_function::merge): Do not mix up symbol properties.
20381 (sem_variable::equals_wpa): Use compare_symbol_references.
20382 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20383 (sem_item::hash_referenced_symbol_properties): New.
20384 (sem_item::compare_symbol_references): New.
20385 (sem_item::compare_cgraph_references): Remove.
20387 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20390 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20391 Emit size of local.
20393 2015-04-23 Nick Clifton <nickc@redhat.com>
20395 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20396 ATTRIBUTE_UNUSED to x parameter.
20397 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20399 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20401 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20402 TARGET_CRYPTO to TARGET_P8_VECTOR>
20403 (crypto_vpermxor_<mode>): Likewise.
20404 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20405 (BU_CRYPTO_3A): Likewise.
20406 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20407 (BU_CRYPTO_OVERLOAD_3A): New #define.
20408 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20409 (VPMSUMH): Likewise.
20410 (VPMSUMW): Likewise.
20411 (VPMSUMD): Likewise.
20412 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20413 (VPERMXOR_V4SI): Likewise.
20414 (VPERMXOR_V8HI): Likewise.
20415 (VPERMXOR_V16QI): Likewise.
20416 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20417 BU_CRYPTO_OVERLOAD_2A.
20418 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20419 BU_CRYPTO_OVERLOAD_3A.
20420 * config/rs6000/rs6000.opt (mcrypto): Change description of
20423 2015-04-23 Richard Biener <rguenther@suse.de>
20425 * passes.def: Remove copy propagation passes run directly after CCP.
20426 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20428 (ccp_visit_phi_node): Rework to handle first executable edge
20431 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20433 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20434 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20435 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20436 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20437 (thumb_legimitimize_reload_address): Remove.
20438 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20440 (thumb_legimitimize_reload_address): Remove.
20442 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20444 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20446 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20448 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20450 (store_multiple): Likewise.
20452 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20454 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20455 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20456 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20457 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20458 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20459 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20460 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20461 Specify issue_rate value.
20462 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20463 large switch statement.
20464 (arm_marvell_pj4_tune): New struct.
20465 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20468 2015-04-23 Richard Biener <rguenther@suse.de>
20470 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20471 (vect_find_last_store_in_slp_instance): Rename to ...
20472 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20473 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20474 and vec_construct for external defs when estimating prologue cost.
20475 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20476 Compute costs here only when vectorizing loops.
20477 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20478 have been determined.
20479 (vect_schedule_slp_instance): Simplify vectorized code placement
20480 and prepare for in-BB external defs.
20481 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20482 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20483 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20485 (vect_model_load_cost): Likewise.
20486 (vectorizable_store): Instead add it here.
20487 (vectorizable_load): Likewise.
20488 (vect_is_simple_use): Dump def type textually.
20490 2015-04-23 Richard Biener <rguenther@suse.de>
20492 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20493 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20494 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20495 instead of get_eh_region_from_lp_number.
20496 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20499 2015-04-23 Anton Blanchard <anton@samba.org>
20501 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20502 need for -mprofile-kernel to save LR to stack.
20504 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20506 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20508 (insn_is_swappable_p): Return 1 for a convert from double to
20509 single precision when all of its uses are splats of BE element
20512 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20514 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20516 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20519 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20520 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20521 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20523 (rs6000_builtin_mask_for_load): Return 0 for targets with
20524 efficient unaligned VSX accesses so that the vectorizer will use
20525 direct unaligned loads.
20526 (rs6000_builtin_support_vector_misalignment): Always return true
20527 for targets with efficient unaligned VSX accesses.
20528 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20529 stores on targets with efficient unaligned VSX accesses is almost
20530 always the same as the cost of an aligned load or store, so model
20532 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20533 unaligned vectors if we have efficient unaligned VSX accesses.
20534 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20535 undocumented option.
20537 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20540 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20542 * config.gcc (LIBC_MUSL): New tm_defines macro.
20543 * config/linux.h (OPTION_MUSL): Define.
20544 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20545 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20546 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20548 * config/linux.opt (mmusl): New option.
20549 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20550 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20552 * configure: Regenerate.
20554 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20556 * config.gcc (LIBC_MUSL): New tm_defines macro.
20557 * config/linux.h (OPTION_MUSL): Define.
20558 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20559 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20560 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20562 * config/linux.opt (mmusl): New option.
20563 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20564 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20566 * configure: Regenerate.
20568 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20570 * doc/invoke.texi (-fsanitize-sections): Update description.
20571 * asan.c (set_sanitized_sections): Parse incoming arg.
20572 (section_sanitized_p): Support wildcards.
20574 2015-04-22 Tom de Vries <tom@codesourcery.com>
20576 PR tree-optimization/65823
20577 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20578 equality between ap_copy and ap.
20580 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20583 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20585 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20588 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20590 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20593 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20594 remove already contained t-files.
20596 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20598 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20599 Remove unneeded forward declarations.
20600 (suitable_for_tail_call_opt_p): Commentary typo fix.
20602 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20604 * varasm.c (emit_bss): Remove redundant guard.
20606 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20608 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20610 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20612 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20614 2015-04-22 Hale Wang <hale.wang@arm.com>
20615 Terry Guo <terry.guo@arm.com>
20617 PR rtl-optimization/64818
20618 * combine.c (can_combine_p): Don't combine user-specified
20619 register if it is in an asm input.
20621 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20624 * passes.def (early_optimizations): Add pass_dse.
20626 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20628 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20629 * reorg.c (redundant_insn): Remove ifdef
20630 INSN_REFERENCES_ARE_DELAYED.
20631 * resource.c (mark_referenced_resources): Likewise.
20633 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20635 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20636 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20637 * resource.c (mark_set_resources): Likewise.
20639 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20641 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20642 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20643 (flow_find_head_matching_sequence): Likewise.
20644 (try_head_merge_bb): Likewise.
20645 * combine.c (can_combine_p): Likewise.
20646 (try_combine): Likewise.
20647 (distribute_notes): Likewise.
20648 * df-problems.c (can_move_insns_across): Likewise.
20649 * final.c (final): Likewise.
20650 * gcse.c (insert_insn_end_basic_block): Likewise.
20651 * ira.c (find_moveable_pseudos): Likewise.
20652 * reorg.c (try_merge_delay_insns): Likewise.
20653 (fill_simple_delay_slots): Likewise.
20654 (fill_slots_from_thread): Likewise.
20655 * sched-deps.c (sched_analyze_2): Likewise.
20657 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20659 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20660 PIC_OFFSET_TABLE_REGNUM.
20662 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20664 * alias.c (init_alias_target): Remove ifdef
20665 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20666 * df-scan.c (df_insn_refs_collect): Likewise.
20667 (df_get_regular_block_artificial_uses): Likewise.
20668 (df_get_eh_block_artificial_uses): Likewise.
20669 (df_get_entry_block_def_set): Likewise.
20670 (df_get_exit_block_use_set): Likewise.
20671 * emit-rtl.c (gen_rtx_REG): Likewise.
20672 * ira.c (ira_setup_eliminable_regset): Likewise.
20673 * reginfo.c (init_reg_sets_1): Likewise.
20674 * regrename.c (rename_chains): Likewise.
20675 * reload1.c (reload): Likewise.
20676 (eliminate_regs_in_insn): Likewise.
20677 * resource.c (mark_referenced_resources): Likewise.
20678 (init_resource_info): Likewise.
20680 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20682 * defaults.h (MASK_RETURN_ADDR): New definition.
20683 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20686 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20688 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20689 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20690 RETURN_ADDR_OFFSET.
20691 (expand_builtin_frob_return_addr): Likewise.
20693 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20695 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20696 (try_redirect_by_replacing_jump): Likewise.
20697 (rtl_tidy_fallthru_edge): Likewise.
20698 * combine.c (insn_a_feeds_b): Likewise.
20699 (find_split_point): Likewise.
20700 (simplify_set): Likewise.
20701 * cprop.c (cprop_jump): Likewise.
20702 * cse.c (cse_extended_basic_block): Likewise.
20703 * df-problems.c (can_move_insns_across): Likewise.
20704 * function.c (emit_use_return_register_into_block): Likewise.
20705 * haifa-sched.c (sched_init): Likewise.
20706 * ira.c (find_moveable_pseudos): Likewise.
20707 * loop-invariant.c (find_invariant_insn): Likewise.
20708 * lra-constraints.c (curr_insn_transform): Likewise.
20709 * postreload.c (reload_combine_recognize_const_pattern):
20711 * reload.c (find_reloads): Likewise.
20712 * reorg.c (delete_scheduled_jump): Likewise.
20713 (steal_delay_list_from_target): Likewise.
20714 (steal_delay_list_from_fallthrough): Likewise.
20715 (redundant_insn): Likewise.
20716 (fill_simple_delay_slots): Likewise.
20717 (fill_slots_from_thread): Likewise.
20718 (delete_computation): Likewise.
20719 * sched-rgn.c (add_branch_dependences): Likewise.
20721 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20723 * genconfig.c (main): Always define HAVE_cc0.
20724 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
20726 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20727 (flow_find_head_matching_sequence): Likewise.
20728 (try_head_merge_bb): Likewise.
20729 * cfgrtl.c (rtl_merge_blocks): Likewise.
20730 (try_redirect_by_replacing_jump): Likewise.
20731 (rtl_tidy_fallthru_edge): Likewise.
20732 * combine.c (do_SUBST_MODE): Likewise.
20733 (insn_a_feeds_b): Likewise.
20734 (combine_instructions): Likewise.
20735 (can_combine_p): Likewise.
20736 (try_combine): Likewise.
20737 (find_split_point): Likewise.
20739 (simplify_set): Likewise.
20740 (distribute_notes): Likewise.
20741 * cprop.c (cprop_jump): Likewise.
20742 * cse.c (cse_extended_basic_block): Likewise.
20743 * df-problems.c (can_move_insns_across): Likewise.
20744 * final.c (final): Likewise.
20745 (final_scan_insn): Likewise.
20746 * function.c (emit_use_return_register_into_block): Likewise.
20747 * gcse.c (insert_insn_end_basic_block): Likewise.
20748 * haifa-sched.c (sched_init): Likewise.
20749 * ira.c (find_moveable_pseudos): Likewise.
20750 * loop-invariant.c (find_invariant_insn): Likewise.
20751 * lra-constraints.c (curr_insn_transform): Likewise.
20752 * optabs.c (prepare_cmp_insn): Likewise.
20753 * postreload.c (reload_combine_recognize_const_pattern):
20755 * reload.c (find_reloads): Likewise.
20756 (find_reloads_address_1): Likewise.
20757 * reorg.c (delete_scheduled_jump): Likewise.
20758 (steal_delay_list_from_target): Likewise.
20759 (steal_delay_list_from_fallthrough): Likewise.
20760 (try_merge_delay_insns): Likewise.
20761 (redundant_insn): Likewise.
20762 (fill_simple_delay_slots): Likewise.
20763 (fill_slots_from_thread): Likewise.
20764 (delete_computation): Likewise.
20765 (relax_delay_slots): Likewise.
20766 * sched-deps.c (sched_analyze_2): Likewise.
20767 * sched-rgn.c (add_branch_dependences): Likewise.
20769 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20771 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20772 that is trivially ded on non cc0 targets.
20773 (simplify_set): Likewise.
20774 (mark_used_regs_combine): Likewise.
20775 * cse.c (new_basic_block): Likewise.
20776 (fold_rtx): Likewise.
20777 (cse_insn): Likewise.
20778 (cse_extended_basic_block): Likewise.
20779 (set_live_p): Likewise.
20780 * rtlanal.c (canonicalize_condition): Likewise.
20781 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20783 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20785 * conditions.h: Define macros even if HAVE_cc0 is undefined.
20786 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
20787 * final.c: Likewise.
20788 * jump.c: Likewise.
20789 * recog.c: Likewise.
20790 * recog.h: Declare functions even when HAVE_cc0 is undefined.
20791 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
20793 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20795 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
20796 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
20797 * builtins.c (expand_builtin): Remove check if
20798 EH_RETURN_DATA_REGNO is defined.
20799 * df-scan.c (df_bb_refs_collect): Likewise.
20800 (df_get_exit_block_use_set): Likewise.
20801 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20802 * ira-lives.c (process_bb_node_lives): Likewise.
20803 * lra-lives.c (process_bb_lives): Likewise.
20805 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20807 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20808 FIRST_PSEUDO_REG): New.
20809 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20810 (ARG_POINTER_REGNUM): Define to ARGP_REG.
20811 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20812 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20813 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20814 (FIRST_INT_REG): New.
20815 (LAST_INT_REG): New.
20816 (FIRST_*_REG): Define using *_REG.
20817 (LAST_*_REG): Ditto.
20818 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20819 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20820 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20822 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20824 * expmed.c: (synth_mult): Only assume overlapping
20825 shift with previous steps in alg_sub_t_m2 case.
20827 2015-04-21 Richard Biener <rguenther@suse.de>
20829 PR tree-optimization/65650
20830 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20831 transitions involving copies.
20832 (set_lattice_value): Adjust for copy lattice state.
20833 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20834 if that doesn't dominate the merge point.
20835 (bit_value_unop): Adjust what we treat as varying mask.
20836 (bit_value_binop): Likewise.
20837 (bit_value_assume_aligned): Likewise.
20838 (evaluate_stmt): When we simplified to a SSA name record a copy
20839 instead of dropping to varying.
20840 (visit_assignment): Simplify.
20842 * gimple-match.h (gimple_simplify): Add another callback.
20843 * gimple-fold.c (fold_stmt_1): Adjust caller.
20844 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20845 for the 2nd callback.
20846 * gimple-match-head.c (gimple_simplify): Add a callback that is
20847 used to valueize the stmt operands and use it that way.
20849 2015-04-21 Richard Biener <rguenther@suse.de>
20851 PR tree-optimization/65788
20852 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20854 2015-04-21 Richard Biener <rguenther@suse.de>
20856 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20857 vec_construct cost by vec_stmt_cost.
20859 2015-04-21 Richard Biener <rguenther@suse.de>
20861 * cfghooks.h (create_basic_block): Replace with two overloads
20862 for RTL and GIMPLE.
20863 (split_block): Likewise.
20864 * cfghooks.c (split_block): Rename to ...
20865 (split_block_1): ... this.
20866 (split_block): Add two type-safe overloads for RTL and GIMPLE.
20867 (split_block_after_labels): Call split_block_1.
20868 (create_basic_block): Rename to ...
20869 (create_basic_block_1): ... this.
20870 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20871 (create_empty_bb): Call create_basic_block_1.
20872 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20873 split_block_after_labels.
20874 * omp-low.c (expand_parallel_call): Likewise.
20875 (expand_omp_target): Likewise.
20876 (simd_clone_adjust): Likewise.
20877 * tree-chkp.c (chkp_get_entry_block): Likewise.
20878 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20879 create_basic_block overload.
20880 (cgraph_node::expand_thunk): Likewise.
20881 * tree-cfg.c (make_blocks): Likewise.
20882 (handle_abnormal_edges): Likewise.
20883 * tree-inline.c (copy_bb): Likewise.
20885 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20887 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20889 (*xor_one_cmplsidi3_ze): Likewise.
20891 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20893 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20894 use df_remove_problem rather than manually removing problems, leaving
20895 holes in df->problems_in_order[].
20897 2015-04-21 Tom de Vries <tom@codesourcery.com>
20899 PR tree-optimization/65802
20900 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20902 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20904 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20906 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20907 at '.'. Assert that there's enough space for everything.
20909 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20911 PR tree-optimization/64950
20913 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
20916 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20919 2015-04-20 Shiva Chen <shiva0217@gmail.com>
20921 PR rtl-optimization/64916
20922 * cfgcleanup.c (values_equal_p): New function.
20923 (can_replace_by): Use it.
20925 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
20928 * doc/invoke.texi ([-Wnarrowing]): Update.
20930 2015-04-20 Jeff Law <law@redhat.com>
20932 PR tree-optimization/65658
20933 * tree-ssa-threadupdate.c (redirection_block_p): Remove
20934 redundant test for GIMPLE_ASSIGN in last change.
20936 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
20938 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20939 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20940 (legitimize_tls_address): Ditto.
20941 (ix86_expand_move): Ditto.
20942 (ix86_expand_binary_operator): Remove reload_in_progress checks.
20943 (ix86_expand_unary_operator): Ditto.
20944 * config/i386/predicates.md (index_register_operand): Ditto.
20946 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
20948 * reorg.c (try_merge_delay_insns): Improve correctness checking
20949 for targets with multiple delay slots.
20951 2015-04-20 Jeff Law <law@redhat.com>
20953 PR tree-optimization/65658
20954 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20957 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20959 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20960 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20963 2015-04-20 Jakub Jelinek <jakub@redhat.com>
20966 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20968 2015-04-20 Richard Biener <rguenther@suse.de>
20970 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20971 * gimple-fold.c (gimple_build_valueize): New function.
20972 (gimple_build): Always use gimple_build_valueize as valueize hook.
20974 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20977 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20978 and overwrite variable parts if <= 1/2 the elements are variable.
20980 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
20982 PR rtl-optimization/65805
20983 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20984 Don't use difference of offset and previous offset if
20985 update_sp_offset is non-zero.
20986 (eliminate_regs_in_insn): Ditto.
20987 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20988 lra_eliminate_regs_1 call.
20989 * lra-constraints.c (get_equiv_with_elimination): Ditto.
20991 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
20993 * hash-table.h: Remove version of hash_table that stored value_type *.
20994 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20995 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20996 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20997 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20998 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20999 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21000 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21001 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21002 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21003 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21004 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21005 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21006 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21007 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21008 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21009 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21011 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21012 Jakub Jelinek <jakub@redhat.com>
21015 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21016 subsequent SH_NONE operand does not overwrite an existing *special
21018 (adjust_extract): Handle case where a vec_extract operation is
21019 wrapped in a PARALLEL.
21021 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21024 * config/i386/i386.c (ix86_binds_local_p): Define only if
21025 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21027 2015-04-17 Jeff Law <law@redhat.com>
21029 PR tree-optimization/47679
21030 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21031 * tree-ssa-scopedtables.c: New file.
21032 * tree-ssa-scopedtables.h: New file.
21033 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21034 (const_and_copies): Change name/type.
21035 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21036 (record_const_or_copy_1): Similarly.
21037 (restore_vars_to_original_value): Similarly.
21038 (pass_dominator::execute): Create and destroy const_and_copies table.
21039 (thread_across_edge): Update passing of const_and_copies.
21040 (record_temporary_equivalence): Use method calls rather than
21041 manipulating const_and_copies directly.
21042 (record_equality, cprop_into_successor_phis): Similarly.
21043 (dom_opt_dom_walker::before_dom_children): Similarly.
21044 (dom_opt_dom_walker::after_dom_children): Similarly.
21045 (eliminate_redundant_computations): Similarly.
21046 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21047 (record_temporary_equivalence): Likewise.
21048 (invalidate_equivalences): Likewise.
21049 (record_temporary_equivalences_from_phis): Update due to type
21050 change of const_and_copies. Use method calls rather than
21051 manipulating the stack directly.
21052 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21053 (thread_through_normal_block, thread_across_edge): Likewise.
21054 (thread_across_edge): Likewise.
21055 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21056 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21058 (identify_jump_threads): Update due to type change of equiv_stack.
21059 (finalize_jump_threads): Delete the equiv_stack when complete.
21061 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21063 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21064 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21065 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21067 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21070 * config.gcc: Exit with a comment when we do not have a major version
21071 number for the FreeBSD target.
21073 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21076 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21077 maybe_allows_mem bitfields.
21078 (maybe_allows_none_start, maybe_allows_none_end,
21079 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21080 maybe_allows_mem_end): New variables.
21081 (compute_maybe_allows): New function.
21082 (add_constraint): Use it to initialize maybe_allows_reg and
21083 maybe_allows_mem fields.
21084 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21085 is_address constraints such that those that allow neither mem nor
21086 reg come first, then those that only allow reg but not mem, then
21087 those that only allow mem but not reg, then the rest.
21088 (write_allows_reg_mem_function): New function.
21089 (write_tm_preds_h): Call it.
21090 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21091 the generated insn_extra_constraint_allows_reg_mem function
21092 instead of always setting *allows_reg = true; *allows_mem = true;
21093 for unknown extra constraints.
21095 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21098 * output.h (default_binds_local_p_3): New.
21099 * varasm.c (default_binds_local_p_3): Make it public. Take an
21100 argument to indicate if common symbol may be local. If common
21101 symbol may be local, treat non-external variable as defined
21103 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21104 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21105 * config/i386/i386.c (ix86_binds_local_p): New.
21106 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21107 ix86_binds_local_p.
21109 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21112 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21113 trying mem_loc_descriptor on XEXP (rtl, 0).
21115 2015-04-17 Martin Liska <mliska@suse.cz>
21117 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21118 Release symbol_compare_collection.
21119 * ipa-reference.c: Add TODO that a vector should be released.
21121 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21124 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21125 to new AVR-LibC file layout (bug #44574).
21126 (*avrlibc_devicelib): Same.
21127 * config/avr/avr-mcus.def: Adjust comments.
21128 * config/avr/avr.opt (nodevicelib): Adjust help.
21130 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21132 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21134 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21137 * gimplify.c (gimplify_init_constructor): Always emit a
21138 side-effecting constructor.
21140 2015-04-17 Tom de Vries <tom@codesourcery.com>
21142 PR tree-optimization/64950
21143 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21144 in cfun->curr_properties.
21145 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21146 if we generate an IFN_VA_ARG.
21147 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21148 function if PROP_gimple_lva is not set in src function.
21150 2015-04-17 Tom de Vries <tom@codesourcery.com>
21151 Michael Matz <matz@suse.de>
21153 PR tree-optimization/64950
21154 * gimple-iterator.c (update_modified_stmts): Remove static.
21155 * gimple-iterator.h (update_modified_stmts): Declare.
21156 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21157 (gimplify_va_arg_internal): New function.
21158 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21159 * gimplify.h (gimplify_va_arg_internal): Declare.
21160 * internal-fn.c (expand_VA_ARG): New unreachable function.
21161 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21162 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21163 (expand_ifn_va_arg): New function.
21164 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21165 (pass_stdarg::execute): Call expand_ifn_va_arg.
21166 (pass_data_lower_vaarg): New pass_data.
21167 (pass_lower_vaarg): New gimple_opt_pass.
21168 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21169 (make_pass_lower_vaarg): New function.
21170 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21171 properties_required field.
21172 * passes.def (all_passes): Add pass_lower_vaarg.
21173 * tree-pass.h (PROP_gimple_lva): Add define.
21174 (make_pass_lower_vaarg): Declare.
21176 2015-04-17 Tom de Vries <tom@codesourcery.com>
21178 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21179 * calls.c (call_expr_flags): Same.
21181 2015-04-17 Tom de Vries <tom@codesourcery.com>
21183 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21184 (pass_stdarg::execute): ... here.
21186 2015-04-17 Tom de Vries <tom@codesourcery.com>
21187 Michael Matz <matz@suse.de>
21189 * tree-cfg.c (make_blocks_1): Factor out of ...
21190 (make_blocks): ... here.
21191 (make_edges_bb): Factor out of ...
21192 (make_edges): ... here.
21193 (gimple_find_sub_bbs): New function.
21194 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21196 2015-04-17 Tom de Vries <tom@codesourcery.com>
21198 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21200 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21202 * asan.c (set_sanitized_sections): New function.
21203 (section_sanitized_p): Ditto.
21204 (asan_protect_global): Optionally sanitize user-defined
21206 * asan.h (set_sanitized_sections): Declare new function.
21207 * common.opt (fsanitize-sections): New option.
21208 * doc/invoke.texi (-fsanitize-sections): Document new option.
21209 * opts-global.c (handle_common_deferred_options): Handle new
21212 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21215 * dwarf2out.c (loc_list_from_tree): Return NULL
21216 for DEBUG_EXPR_DECL.
21218 2015-04-17 Christian Bruel <christian.bruel@st.com>
21220 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21223 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21225 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21226 node itself when computing left conflict subnode size.
21228 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21230 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21231 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21232 *fop_<mode>_1_sse using enabled attribute. Use
21233 register_mixssei387nonimm_operand operand 1 predicate. Change
21234 alternative 3 constraints from "x" to "v".
21236 2015-04-16 Richard Biener <rguenther@suse.de>
21238 PR tree-optimization/65774
21239 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21240 bit-value tracking on.
21242 2015-04-16 Richard Biener <rguenther@suse.de>
21244 PR tree-optimization/64277
21245 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21246 simplify upper bound handling.
21247 (search_for_addr_array): Simplify.
21248 (check_array_bounds): Handle ADDR_EXPRs here.
21249 (check_all_array_refs): Simplify.
21251 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21253 * config/i386/i386.c (print_reg): Rewrite function.
21255 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21257 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21258 Invert the condition.
21260 2015-04-16 Renlin Li <renlin.li@arm.com>
21262 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21263 simplifications for UNSIGNED_FLOAT.
21265 2015-04-16 Nick Clifton <nickc@redhat.com>
21267 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21269 (enum rl78_cpu_type): New.
21270 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21271 (umulhi3_shift_virt): Remove m constraint from operand 1.
21272 (umulqihi3_virt): Likewise.
21273 * config/rl78/rl78.c (rl78_option_override): Add code to process
21274 -mcpu and -mmul options.
21275 (rl78_alloc_physical_registers): Add code to handle divhi and
21276 divsi valloc attributes.
21277 (set_origin): Likewise.
21278 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21279 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21280 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21282 (ASM_SPEC): Pass -mcpu on to assembler.
21283 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21284 (mulqi3_rl78): Likewise.
21285 (mulhi3_g13): Likewise.
21286 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21287 (mulsi3): Likewise.
21288 (mulhi3_g14): Add clobbers of AX and BC.
21289 (mulsi3_g14): Likewise.
21290 (mulsi3_g13): Likewise.
21291 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21292 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21293 * config/rl78/rl78.opt (mmul): Initialise value to
21295 (mcpu): New option.
21296 (m13, m14, mrl78): New option aliases.
21297 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21298 (MULTILIB_DIRNAMES): Add g13 and g14.
21299 * doc/invoke.texi: Document -mcpu and -mmul options.
21301 2015-04-16 Richard Biener <rguenther@suse.de>
21303 * tree-ssa-ccp.c (likely_value): See if we have operands that
21304 are marked as never simulate again and return CONSTANT in this
21306 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21307 not have any operands that will be simulated again as
21308 not being simulated again.
21310 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21312 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21313 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21314 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21316 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21318 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21319 *float<SWI48:mode><MODEF:mode>2_sse.
21320 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21322 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21325 2015-04-15 Tom de Vries <tom@codesourcery.com>
21328 * function.c (push_dummy_function): New function.
21329 (init_dummy_function_start): Use push_dummy_function.
21330 (pop_dummy_function): New function. Factored out of ...
21331 (expand_dummy_function_end): ... here.
21332 * function.h (push_dummy_function, pop_dummy_function): Declare.
21333 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21334 pop_dummy_function.
21335 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21337 2015-04-15 Jeff Law <law@redhat.com>
21339 PR tree-optimization/47679
21340 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21341 need for forward declaration in upcoming changes.
21342 (record_conditions, record_edge_info): Likewise.
21344 PR rtl-optimization/42522
21345 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21346 SIGN_EXTRACT as a whole object rather than simplifying
21349 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21352 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21353 and GIMPLE_PREDICT use break instead of return true. For
21354 GIMPLE_EH_DISPATCH, compare dispatch region.
21356 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21358 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21359 details about the implementation. Make clear preference for
21360 __atomic builtins. Reduce possibility of future change.
21362 2015-04-15 Nick Clifton <nickc@redhat.com>
21364 * config/rx/rx.opt (mallow-string-insns): New option.
21365 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21366 builtin if string instructions are denied.
21367 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21368 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21370 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21371 * config/rx/rx.md (movstr): Enable pattern only if string
21372 instructions are allowed.
21373 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21374 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21375 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21376 (MULTILIB_DIRNAMES): Add no-strings.
21377 * doc/invoke.texi: Document -mno-allow-string-insns.
21379 2015-04-15 Alan Modra <amodra@gmail.com>
21383 PR middle-end/36043
21384 * calls.c (load_register_parameters): Don't load past end of
21385 mem unless suitably aligned.
21387 2015-04-15 Nick Clifton <nickc@redhat.com>
21389 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21390 decrement instruction as being frame related.
21391 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21393 If zero extending a function address enclose the operation in
21395 (rl78_preferred_reload_class): New function.
21396 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21397 * config/rl78/rl78.md: Remove useless constraints in expanders.
21398 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21399 (mulhi3_rl78): Likewise.
21400 (mulhi3_g13): Likewise.
21401 (mulsi3_rl78): Likewise.
21402 (es_addr): Move to before the multiply patterns.
21404 2015-04-15 Alan Modra <amodra@gmail.com>
21406 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21407 and sequence_stack. Add seq.
21408 (seq_stack): Delete.
21409 * function.c (prepare_function_start): Don't access x_last_insn.
21410 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21411 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21412 * emit_rtl.c (start_sequence, push_topmost_sequence,
21413 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21414 sequence accessors.
21415 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21416 remove_insn): Likewise. Simplify.
21417 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21418 and pop_topmost_sequence.
21419 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21421 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21423 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21426 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21429 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21431 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21432 (LEGACY_INT_REGNO_P): Ditto.
21433 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21434 (ANY_MASK_REG_P): Remove.
21435 (BND_REG_P): Rename from ANY_BND_REG_P.
21436 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21437 legacy integer registers. Do not handle MMX_REG_P in a special way.
21438 Merge 64byte and 32byte SSE handling.
21440 2015-04-14 Nick Clifton <nickc@redhat.com>
21442 * expr.c (expand_assignment): Force an address offset computation
21443 into a register before changing its mode.
21444 (expand_expr_real_1): Likewise.
21446 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21448 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21449 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21450 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21451 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21452 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21453 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21454 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21455 and __aarch64_vget_lane_any.
21457 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21459 PR rtl-optimization/65761
21460 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21461 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21463 2015-04-14 Richard Biener <rguenther@suse.de>
21465 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21466 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21468 2015-04-14 Richard Biener <rguenther@suse.de>
21470 PR tree-optimization/65758
21471 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21473 (ccp_lattice_meet): Likewise.
21474 (bit_value_unop): Likewise.
21475 (bit_value_binop): Likewise.
21476 (bit_value_assume_aligned): Likewise.
21478 2015-04-14 Christian Bruel <christian.bruel@st.com>
21480 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21483 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21485 PR tree-optimization/63387
21486 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21487 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21489 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21491 * config/i386/predicates.md (any_QIreg_operand): Rename from
21492 q_regs_operand. Do not process subregs.
21493 (QIreg_operand): Use QI_REGNO_P predicate.
21494 (ext_QIreg_operand): Ditto.
21495 (ext_register_operand): Ditto.
21496 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21497 (AND splitters): Ditto.
21498 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21499 (AND with -256 splitter): Use any_QIreg_operand predicate and
21500 SWI248 mode for operand 0.
21501 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21502 mode for operand 0.
21503 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21505 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21507 * doc/plugins.texi: Rewrite first introductory paragraph.
21509 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21511 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21512 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21514 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21516 * ipa-profie.c (ipa_profile): Check number of parameters
21517 and possible polymorphic call targets before
21520 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21522 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21523 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21525 2015-04-13 Richard Biener <rguenther@suse.de>
21527 PR tree-optimization/65204
21528 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21529 takens for bit-CCP.
21531 2015-04-13 Richard Biener <rguenther@suse.de>
21534 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21535 and cond_not_taken_branch_cost to 4 and 2.
21536 (bdver2_cost): Likewise.
21537 (bdver3_cost): Likewise.
21538 (bdver4_cost): Likewise.
21540 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21542 * hash-table.h (hash_table constructor): Add mem stats.
21543 (alloc_entries): Likewise.
21545 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21547 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21548 * passes.c (execute_one_pass): Only add transform if pass has one.
21550 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21552 * config/i386/i386.c (ix86_option_override_internal): Don't set
21553 -fprefetch-loop-arrays if optimizing for size.
21555 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21556 Gerald Pfeifer <gerald@pfeifer.com>
21558 * doc/contrib.texi (Contributors): Add Martin Jambor and
21561 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21563 * BASE-VER: Set to 6.0.0.
21565 PR tree-optimization/65747
21566 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21567 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21569 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21571 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21572 sentence. Improve grammar.
21574 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21576 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21578 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21581 * ipa-inline-transform.c (speculation_removed): Remove static var.
21582 (check_speculations): New function.
21583 (clone_inlined_nodes): Do not check spculations.
21584 (inline_call): Call check_speculations.
21585 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21586 consider non-invariants.
21588 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21589 Martin Liska <mliska@suse.cz>
21592 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21593 variable can not match.
21594 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21595 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21597 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21599 PR tree-optimization/65735
21600 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21601 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21602 same bb rather than just into the same phi node.
21603 (thread_through_normal_block): Adjust caller.
21605 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21607 * doc/contrib.texi (Contributors): Add Ira Rosen.
21609 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21611 * gcov.c (find_source): Fix miswording in error message.
21612 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21613 (ix86_expand_sse_comi_round): Fix typo in error message.
21615 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21617 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21619 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21621 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21623 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21626 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21627 Print bad_spills_num and insn_pseudos_num.
21629 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21632 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21633 when creating +1 values for SImode.
21635 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21638 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21641 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21642 Iain Sandoe <iain@codesourcery.com>
21645 * configure: Regenerate.
21647 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21650 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21652 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21654 * doc/contrib.texi (Contributors): Add John Marino.
21656 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21658 PR tree-optimization/65709
21659 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21660 TREE_TYPE (TREE_TYPE (t)).
21662 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21665 * lra-int.h (lra_bad_spill_regno_start): New.
21666 * lra.c (lra_bad_spill_regno_start): New.
21667 (lra): Set up lra_bad_spill_regno_start. Set up
21668 lra_constraint_new_regno_start unconditionally.
21669 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21672 2015-04-09 Marek Polacek <polacek@redhat.com>
21673 Jakub Jelinek <jakub@redhat.com>
21675 PR middle-end/65554
21676 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21677 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21680 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21682 PR rtl-optimization/65693
21683 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21686 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21689 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21690 device specs file if "device-specs%s" didn't resolve to a path.
21692 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21695 * config/i386/i386.c (fixup_modeless_constant): New.
21696 (ix86_expand_args_builtin): Fixup modeless constant operand.
21697 (ix86_expand_round_builtin): Ditto.
21698 (ix86_expand_special_args_builtin): Ditto.
21699 (ix86_expand_builtin): Ditto.
21701 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21704 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21705 any pow2 integer in between 2 and 0x80000000U inclusive.
21707 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
21709 PR rtl-optimization/65693
21710 * combine.c (is_parallel_of_n_reg_sets): Change first argument
21711 from an rtx_insn * to an rtx.
21712 (try_combine): Adjust both callers. Use it once more.
21714 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21716 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
21717 (chkp_make_static_const_bounds): Search existing
21718 symbol by assembler name. Use make_decl_one_only.
21719 (chkp_get_zero_bounds_var): Remove node search which
21720 is now performed in chkp_make_static_const_bounds.
21721 (chkp_get_none_bounds_var): Likewise.
21723 2015-04-08 Michael Witten <mfwitten@gmail.com>
21725 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
21728 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21730 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
21732 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21734 * doc/extend.texi (__sync Builtins): Fix grammar.
21736 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21738 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
21740 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21742 * varasm.c (emit_local): Move definition of align.
21744 2015-04-08 Julian Brown <julian@codesourcery.com>
21746 * config/nvptx/mkoffload.c (process): Support variable mapping.
21748 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
21750 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
21752 (alpha_write_one_linkage): Correct typo.
21754 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21756 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21758 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21760 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21762 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21764 * tree-chkp.h (chkp_insert_retbnd_call): New.
21765 * tree-chkp.c (chkp_insert_retbnd_call): New.
21766 * ipa-split.c (insert_bndret_call_after): Remove.
21767 (split_function): Use chkp_insert_retbnd_call.
21768 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21769 bounds for instrumented functions.
21771 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
21774 * calls.c (initialize_argument_information): When producing tail
21775 call also turn SSA_NAMES passed by references to original PARM_DECLs
21777 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
21780 * lra-remat.c (do_remat): Process input and non-input insn
21781 registers separately.
21783 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21786 * valtrack.c (debug_lowpart_subreg): New function.
21787 (dead_debug_insert_temp): Use it.
21789 PR middle-end/65680
21790 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
21791 into signed HOST_WIDE_INT the same as negative bit_offset.
21793 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
21795 * ipa-comdats.c (ipa_comdats): Visit all thunks
21796 to set proper comdat group.
21798 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21801 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
21802 on constants for NEON VSTRUCT modes.
21804 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21805 Iain Sandoe <iain@codesourcery.com>
21808 * configure: Regenerate.
21810 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21813 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21814 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21815 that LFD is used to load double constants instead of LFS. Add
21816 defaults for all costs structures. Add comments for missing
21817 initialization fields.
21818 (size32_cost): Likewise.
21819 (size64_cost): Likewise.
21820 (rs64a_cost): Likewise.
21821 (mpccore_cost): Likewise.
21822 (ppc403_cost): Likewise.
21823 (ppc405_cost): Likewise.
21824 (ppc440_cost): Likewise.
21825 (ppc476_cost): Likewise.
21826 (ppc601_cost): Likewise.
21827 (ppc603_cost): Likewise.
21828 (ppc604_cost): Likewise.
21829 (ppc604e_cost): Likewise.
21830 (ppc620_cost): Likewise.
21831 (ppc630_cost): Likewise.
21832 (ppccell_cost): Likewise.
21833 (ppc750_cost): Likewise.
21834 (ppc7450_cost): Likewise.
21835 (ppc8540_cost): Likewise.
21836 (ppce300c2c3_cost): Likewise.
21837 (ppce500mc_cost): Likewise.
21838 (ppce500mc64_cost): Likewise.
21839 (ppce5500_cost): Likewise.
21840 (ppce6500_cost): Likewise.
21841 (titan_cost): Likewise.
21842 (power4_cost): Likewise.
21843 (power6_cost): Likewise.
21844 (power7_cost): Likewise.
21845 (power8_cost): Likewise.
21846 (ppca2_cost): Likewise.
21847 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21849 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21850 instead of XXLOR to copy SFmode to clear out dirty bits created
21851 when SFmode denormals are generated.
21852 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21853 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21855 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21857 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21858 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21859 * config/aarch64/aarch64-tune.md: Regenerate.
21861 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21863 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21864 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21865 * config/arm/arm-cores.def (exynos-m1): New core.
21866 * config/arm/arm-tune.md: Regenerate.
21867 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21868 * config/arm/bpabi.h: Likewise.
21870 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21872 * ipa-cp (set_single_call_flag): Remove too
21873 restrictive assert.
21875 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
21877 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21878 GOMP_offload_unregister from the destructor.
21880 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21882 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21883 flags for instrumentation thunk.
21884 (chkp_produce_thunks): Likewise.
21886 2015-04-05 Martin Liska <mliska@suse.cz>
21889 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21890 has computed data structure.
21891 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21893 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
21895 * invoke.texi (inline-unit-growth): Increase growth to 20%
21896 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21898 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
21901 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
21903 (lra_rematerialization_iter): New.
21904 * lra.c (lra): Initialize lra_rematerialization_iter.
21905 Stop updating lra_constraint_new_regno_start after switching of
21906 inheritance and rematerialization.
21907 * lra-remat.c (lra_rematerialization_iter): New.
21908 (lra_remat): Add printing pass iteration. Do rematerialization
21909 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21911 2015-04-04 Richard Biener <rguenther@suse.de>
21913 PR tree-optimization/64909
21914 PR tree-optimization/65660
21915 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21916 to take a cost vector for scalar iteration cost.
21917 (vect_get_single_scalar_iteration_cost): Likewise.
21918 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21919 Compute the scalar iteration cost into a cost vector.
21920 (vect_get_known_peeling_cost): Use the scalar cost vector to
21921 account for the cost of the peeled iterations.
21922 (vect_estimate_min_profitable_iters): Likewise.
21923 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21926 2015-04-04 Alan Modra <amodra@gmail.com>
21930 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21931 0.0 constant unless TARGET_VSX.
21932 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21935 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21938 * ipa-inline-transform.c (inline_call): Skip sanity check to work
21941 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21944 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21945 speculative indirect edges to avoid ordering issue.
21947 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21950 * ipa-inline.c (edge_badness): Add combined size to the denominator.
21952 2015-04-03 Jakub Jelinek <jakub@redhat.com>
21954 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21955 TYPE_ARTIFICIAL on the .omp_data* types.
21957 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21959 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21960 instrumentation thunks.
21962 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21964 * config/i386/i386.c (ix86_expand_call): Avoid nested
21965 PARALLEL in returned call value.
21967 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21969 * lto-cgraph.c (input_cgraph_1): Always link instrumented
21970 assembler name with original one.
21972 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21974 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21976 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21978 Revert parts of r216820.
21979 * config/i386/i386.md (movqi_internal): Correct type calculation
21980 for alternatives 3 and 5.
21982 2015-04-02 Jakub Jelinek <jakub@redhat.com>
21984 PR preprocessor/61977
21985 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21986 predefine __vector/__bool/__pixel macros nor context sensitive
21987 macros for CLK_ASM.
21988 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21990 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
21992 * config/pa/pa.c (pa_output_move_double): Directly handle register
21993 indexed memory operand. Simplify handling of scaled register indexed
21996 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21999 * config/i386/linux-common.h (MPX_SPEC): New.
22000 (CHKP_SPEC): Add MPX_SPEC.
22001 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22002 possible issues with '-z bndplt' support in linker.
22004 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22006 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22007 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22008 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22009 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22010 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22012 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22014 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22015 (atomic_load<mode>): Change operand 0 predicate to
22016 nonimmediate_operand and fix up the destination when needed.
22018 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22019 (atomic_store<mode>): Change operand 1 predicate to
22020 nonimmendate_operand and move the source to register when needed.
22022 (atomic_store<mode>_1): Use UNSPEC_STA.
22023 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22024 Fix moves from memory operand. Use UNSPEC_STA.
22026 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22028 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22029 not cross a MODESIZE boundary.
22030 (store_bit_field, extract_bit_field): Added assertions in the
22031 strict volatile bitfields code path.
22033 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22036 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22037 Increase args array size by one to avoid buffer overflow.
22039 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22041 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22043 * ipa-inline.c (edge_badness): Add wrapper penalty.
22044 (sum_callers): Move up.
22045 (inline_small_functions): Set single_caller.
22046 * ipa-inline.h (inline_summary): Add single_caller.
22047 * ipa-split.c (split_function): Set split_part.
22048 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22049 * cgraph.h (cgraph_node): Add split_part.
22051 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22054 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22055 Do not split operands 0 and operands 2 to halfmode.
22056 (atomic_compare_and_swap<mode>): Update for
22057 atomic_compare_and_swap<dwi>_doubleword changes.
22059 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22061 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22062 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22063 no caching is done.
22065 2015-03-31 Martin Liska <mliska@suse.cz>
22068 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22069 has already filled up function summary.
22070 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22072 2015-03-31 Richard Biener <rguenther@suse.de>
22074 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22077 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22079 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22081 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22082 (s390_asm_output_function_label): Adapt to new signature of
22083 s390_function_num_hotpatch_hw
22084 Optimise the code generating assembler output.
22085 Add comments to assembler file.
22087 2015-03-31 Richard Biener <rguenther@suse.de>
22089 PR middle-end/65626
22090 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22091 of the noreturn call so it is last and cleanup_control_flow_bb
22092 can do the CFG part.
22094 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22097 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22098 same_comdat_group for external symbols.
22099 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22100 infinite same_comdat_group traversal loop.
22102 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22105 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22106 automatically to $headers.
22108 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22111 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22112 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22114 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22116 * ipa-prop.c (param_type_may_change_p): Likewise.
22117 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22118 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22119 argument. Before inlining, preserve
22120 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22121 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22123 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22125 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22128 * ipa-inline.c (edge_badness): Base denominator on callee's
22131 2015-03-27 Martin Jambor <mjambor@suse.cz>
22134 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22135 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22136 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22137 node_calling_single_call.
22138 * ipa-cp.c (count_callers): New function.
22139 (set_single_call_flag): Likewise.
22140 (initialize_node_lattices): Count callers and set single_flag_call if
22142 (incorporate_penalties): New function.
22143 (good_cloning_opportunity_p): Use it, dump new flags.
22144 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22145 * doc/invoke.texi (ipa-cp-recursion-penalty,
22146 ipa-cp-single-call-pentalty): Document.
22148 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22151 * symtab.c (symtab_node::get_partitioning_class): Register vars
22153 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22154 decls for non-symbols.
22156 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22159 * output.h (default_binds_local_p_2): New.
22160 * varasm.c (default_binds_local_p_2): Renamed to ...
22161 (default_binds_local_p_3): This. Don't return true on protected
22162 data symbol if protected data may be external.
22163 (default_binds_local_p): Use default_binds_local_p_3.
22164 (default_binds_local_p_1): Likewise.
22165 (default_binds_local_p_2): New.
22166 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22167 default_binds_local_p_2 if TARGET_MACHO is undefined.
22169 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22172 * config/i386/i386.c (legitimize_pic_address): If base
22173 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22174 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22176 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22179 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22182 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22185 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22186 of optimized out indirect call.
22187 (redirect_to_unreachable): Always build symbol table node for
22188 BUILT_IN_UNREACHABLE
22190 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22193 * ira-costs.c (record_reg_classes): Process all constraint string
22196 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22198 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22202 * config/c6x/constraints.md (S3): New constraint.
22203 * config/c6x/c6x.md (real_jump): Use it.
22205 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22207 PR middle-end/65595
22208 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22209 do redirection if the call is not optimized out.
22211 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22214 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22215 (fchkp-check-incomplete-type): Add LTO.
22216 (fchkp-zero-input-bounds-for-main): Likewise.
22217 (fchkp-first-field-has-own-bounds): Likewise.
22218 (fchkp-narrow-bounds): Likewise.
22219 (fchkp-narrow-to-innermost-array): Likewise.
22220 (fchkp-use-static-bounds): Likewise.
22221 (fchkp-use-static-const-bounds): Likewise.
22222 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22224 2015-03-27 Marek Polacek <polacek@redhat.com>
22226 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22228 2015-03-27 Marek Polacek <polacek@redhat.com>
22231 * ubsan.c (ubsan_create_edge): New function.
22232 (instrument_bool_enum_load): Call it.
22233 (instrument_nonnull_arg): Likewise.
22234 (instrument_nonnull_return): Likewise.
22235 (instrument_object_size): Likewise.
22237 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22239 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22242 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22245 * lto-streamer.h (class lto_location_cache): New.
22246 (struct data_in): Add location_cache.
22247 (lto_input_location): Update prototype.
22248 (stream_input_location_now): New.
22249 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22250 pointer to location.
22251 (stream_input_location): Update.
22252 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22253 (warn_odr): Apply location cache before warning.
22254 (lto_input_location): Update prototype.
22255 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22256 Use stream_input_location_now.
22257 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22259 (lto_location_cache::cmp_loc): New function.
22260 (lto_location_cache::apply_location_cache): New function.
22261 (lto_location_cache::accept_location_cache): New function.
22262 (lto_location_cache::revert_location_cache): New function.
22263 (lto_location_cache::input_location): New function.
22264 (lto_input_location): Do location caching.
22265 (stream_input_location_now): New function.
22266 (input_eh_region, input_struct_function_base): Use
22267 stream_input_location_now.
22268 (lto_data_in_create): use new.
22269 (lto_data_in_delete): Use delete.
22270 * tree-streamer-in.c (unpack_ts_block_value_fields,
22271 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22272 lto_input_ts_exp_tree_pointers): Update for cached location api.
22274 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22277 * passes.def: Add pass_nothrow.
22278 * ipa-pure-const.c: (pass_data_nothrow): New.
22279 (pass_nothrow): New.
22280 (pass_nothrow::execute): New.
22281 (make_pass_nothrow): New.
22282 * tree-pass.h (make_pass_nothrow): Declare.
22284 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22286 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22287 edge to change by speculation resolution or redirection.
22288 (edge_set_predicate): Likewise.
22289 (inline_summary_t::duplicate): Likewise.
22290 (remap_edge_summaries): Likewise.
22292 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22294 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22296 (can_inline_edge_p): Relax option matching for always inline functions.
22298 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22301 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22302 Check operand 4 and operand 0 for equality.
22303 (avx512f_vextract<shuffletype>32x4_1_maskm):
22304 Check operand 6 and operand 0 for equality.
22305 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22307 (vec_extract_hi_<mode>_maskm): Ditto.
22309 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22311 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22312 dead calls back to live.
22313 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22315 (cgraph_node::verify_node): ... here; verify only callee edges,
22317 * cif-code.def (CILK_SPAWN): New code.
22319 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22321 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22322 (edge_set_predicate): Use it to mark unreachable edges.
22323 (inline_summary_t::duplicate): Remove unnecesary code.
22324 (remap_edge_summaries): Likewise.
22325 (dump_inline_summary): Report contains_cilk_spawn.
22326 (compute_inline_parameters): Compute contains_cilk_spawn.
22327 (inline_read_section, inline_write_summary): Stream
22328 contains_cilk_spawn.
22329 * ipa-inline.c (can_inline_edge_p): Do not touch
22330 DECL_STRUCT_FUNCTION that may not be available;
22331 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22332 remove check for callee_fun->can_throw_non_call_exceptions and
22333 replace it by optimization attribute check; check for flag_exceptions.
22334 * ipa-inline-transform.c (inline_call): Maintain
22335 DECL_FUNCTION_PERSONALITY
22336 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22338 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22340 PR tree-optimization/65551
22341 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22342 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22344 2015-03-26 Richard Biener <rguenther@suse.de>
22346 PR middle-end/65555
22347 * tree-cfg.c (verify_gimple_call): Do not require a call to
22348 have no LHS if it wasn't recognized as control altering yet.
22350 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22352 PR tree-optimization/64715
22353 * passes.def: Add another instance of pass_object_sizes before ccp1.
22354 * tree-object-size.c (pass_object_sizes::execute): In
22355 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22356 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22357 __bos result and the computed constant. Remove redundant
22358 checks, obsoleted by gimple_call_builtin_p test.
22360 * var-tracking.c (variable_tracking_main_1): Don't track
22361 variables for targetm.no_register_allocation targets.
22363 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22365 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22366 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22368 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22371 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22372 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22373 0.0 is correctly setup.
22374 (extenddftf2_internal): Likewise.
22376 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22378 PR tree-optimization/65177
22379 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22381 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22382 edges not adjacent on the path to the original code.
22384 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22387 * doc/install.texi (Building a native compiler): Document new
22388 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22389 configuration assumes that the host supports the linker plugin.
22391 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22394 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22395 chain for generated call.
22397 2015-03-25 Richard Biener <rguenther@suse.de>
22399 * passes.c (pass_manager::execute_early_local_passes): Guard
22400 execution of pass_chkp_instrumentation_passes with
22401 flag_check_pointer_bounds.
22402 (pass_chkp_instrumentation_passes::gate): Likewise.
22404 2015-03-25 Martin Liska <mliska@suse.cz>
22406 PR tree-optimization/65538
22407 * symbol-summary.h (function_summary::~function_summary):
22408 Relese memory for allocated summaries.
22409 (function_summary::release): New function.
22411 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22414 * lto-streamer-out.c (DFS::worklist): New struct.
22415 (DFS::worklist_vec): New data member.
22416 (DFS::next_dfs_num): Remove.
22417 (DFS::DFS): Rewritten using worklist instead of recursion,
22418 using most of code from DFS::DFS_write_tree.
22419 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22420 pass it to DFS_write_tree calls.
22421 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22422 quick initial checks push it into worklist_vec and return.
22424 2015-03-25 Richard Biener <rguenther@suse.de>
22426 PR middle-end/65519
22427 * genmatch.c (expr::gen_transform): Re-write to avoid
22428 using gimple_build.
22430 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22432 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22434 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22436 * config/arm/arm.opt (print_tune_info): New option.
22437 * config/arm/arm.c (arm_print_tune_info): New function.
22438 (arm_file_start): Call arm_print_tune_info.
22439 * config/arm/arm-protos.h (struct tune_params): Add comment.
22440 * doc/invoke.texi (@item -mprint-tune-info): New item.
22441 (-mtune): mention it in ARM Option Summary.
22443 2015-03-25 DJ Delorie <dj@redhat.com>
22445 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22448 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22449 Martin Liska <mliska@suse.cz>
22451 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22452 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22453 (sem_item::add_type): New function.
22454 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22455 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22456 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22457 (sem_function::equals_wpa): Fix typo.
22458 * ipa-icf.h (sem_item::add_type): New function.
22459 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22462 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22464 PR tree-optimization/65533
22465 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22466 with swapped operands, call vect_free_slp_tree on
22467 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22470 2015-03-24 Richard Biener <rguenther@suse.de>
22472 PR middle-end/65517
22473 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22474 for fixup if necessary.
22476 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22478 * doc/extend.texi (Function Attributes): Add @cindex entries
22479 for all attributes and regularize their format. Delete text
22480 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22481 information about "eightbit_data", "tiny_data", and "model"
22482 variable attributes to the Variable Attributes section. Fix
22483 some obvious typos and copy-editing issues.
22484 (Variable Attributes, Type Attributes): Likewise add/fix
22485 @cindex entries for all attributes.
22487 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22490 * tree-chkp.c (chkp_build_returned_bound): Ignore
22491 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22493 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22496 * config/sh/predicates.md (simple_mem_operand,
22497 displacement_mem_operand): Add test for reg.
22498 (short_displacement_mem_operand): Test for displacement_mem_operand
22499 before invoking sh_disp_addr_displacement.
22500 * config/sh/constraints.md (Sdd, Sra): Simplify.
22501 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22502 Remove redundant displacement_mem_operand tests.
22504 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22507 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22508 the same -mmcu=MCU more than once.
22510 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22513 * ipa-devirt.c: Remove duplicate demangle.h include.
22516 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22518 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22519 REG_POINTER on *destptr after adjusting it for prologue size.
22522 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22523 ultimate_alias_target ()->order ints instead of
22524 ultimate_alias_target () pointers.
22526 2015-03-23 Richard Biener <rguenther@suse.de>
22528 PR tree-optimization/65518
22529 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22530 interleaving cases we generate absymal code for.
22532 2015-03-23 Richard Biener <rguenther@suse.de>
22534 PR tree-optimization/65494
22535 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22537 (vect_analyze_slp_instance): But do that here, always and once.
22539 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22541 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22542 adding T or multiplying by T+1 and subracting T.
22544 2015-03-22 Jeff Law <law@redhat.com>
22546 PR rtl-optimization/64317
22547 * Makefile.in (OBJS): Add gcse-common.c
22548 * gcse.c: Include gcse-common.h
22549 (struct modify_pair_s): Move structure definition to gcse-common.h
22550 (compute_transp): Move function to gcse-common.c.
22551 (canon_list_insert): Similarly.
22552 (record_last_mem_set_info): Break out some code and put it into
22553 gcse-common.c. Call into the new common code.
22554 (compute_local_properties): Pass additional arguments to compute_transp.
22555 * postreload-gcse.c: Include gcse-common.h and df.h
22556 (modify_mem_list_set, blocks_with_calls): New variables.
22557 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22558 (get_bb_avail_insn): Pass in the expression index too.
22559 (alloc_mem): Allocate memory for the new bitmaps and lists.
22560 (free_mem): Free memory for the new bitmaps and lists.
22561 (insert_expr_in_table): Record a bitmap index for each entry we
22563 (record_last_mem_set_info): Call into common code in gcse-common.c.
22564 (get_bb_avail_insn): If no available insn was found in the requested
22565 BB. If BB has a single predecessor, see if the expression is
22566 transparent in BB and available in that single predecessor.
22567 (compute_expr_transp): New wrapper for compute_transp.
22568 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22569 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22570 (gcse_after_reload_main): If there are elements in the hash table,
22571 then compute transparency for all the elements in the hash table.
22572 * gcse-common.h: New file.
22573 * gcse-common.c: New file.
22575 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22577 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22579 (System Headers): Likewise.
22581 (Traditional macros): Likewise.
22582 (Invocation): Likewise.
22583 (Option Index): Likewise.
22584 * doc/cppopts.texi (-M): Likewise.
22585 (-finput-charset): Likewise.
22586 (--help): Likewise.
22587 * doc.invoke.texi (AVR Options): Likewise.
22588 (V850 Options): Likewise.
22590 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22593 * ipa-devirt.c: Include demangle.h
22594 (odr_type_d): Add field rtti_broken.
22595 (odr_subtypes_equivalent_p): Do not require name to match.
22596 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22597 bypass the tests; be ready for function referneces in vtables that are
22598 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22599 (warn_odr): Give up for nameless types.
22600 (warn_types_mismatch): Report mismatch in mangled names;
22601 report mismatch in anonymous namespaces; look into component types to
22602 give useful error; report when mismatch is dragged in from other ODR
22604 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22605 duplicated diagnostics.
22606 (add_type_duplicate): Reorder checks so more informative ones come
22607 first; fix typo; do not output "the extra base is defined here" when
22609 (BINFO_N_BASE_BINFOS): Relax sanity check.
22611 2015-03-22 Martin Liska <mliska@suse.cz>
22612 Jakub Jelinek <jakub@redhat.com>
22614 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22615 masks that can potentially include a builtin.
22616 (ix86_add_new_builtins): Introduce fast filter for isa values
22617 that cannot trigger builtin inclusion.
22619 2015-03-22 Martin Liska <mliska@suse.cz>
22621 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22622 (sem_item::update_hash_by_local_refs): Likewise.
22623 (sem_variable::get_hash): Empty line is fixed.
22624 (sem_item_optimizer::execute): Include adding of hash references.
22625 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22626 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22627 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22628 (sem_item::update_hash_by_local_refs): Likewise.
22630 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22633 * ipa-comdats.c (enqueue_references): Walk through thunks.
22634 (ipa_comdats): Likewise.
22635 (set_comdat_group_1): New function.
22637 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22640 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22643 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22644 Gerald Pfeifer <gerald@pfeifer.com>
22646 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22648 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22649 Sandra Loosemore <sandra@codesourcery.com>
22651 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22652 function parameter declaration.
22653 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22654 Update arguments to nios2_adjust_call_address().
22655 (sibcall_internal): Rename from *sibcall.
22656 (sibcall_value_internal): Rename from *sibcall_value.
22657 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22658 (nios2_large_got_address): Add target temp reg parameter.
22659 (nios2_got_address): Adjust call to nios2_large_got_address, add
22660 force_reg around it.
22661 (nios2_load_pic_address): Add target temp reg parameter, replace call
22662 to nios2_got_address with corresponding code.
22663 (nios2_legitimize_constant_address): Update call to
22664 nios2_load_pic_address.
22665 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22666 to use temp reg for PIC loading purposes.
22667 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22668 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22669 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22671 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22673 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22674 usage of "the @option{...}".
22675 (-Wopenmp-simd): Likewise.
22676 (-fsanitize-recover): Likewise.
22677 (-fsanitize-undefined-trap-on-error): Likewise.
22679 (tracer-dynamic-coverage-feedback): Likewise.
22680 (reorder-block-duplicate-feedback): Likewise.
22681 (loop-unroll-jam-size): Likewise.
22684 (-mabs=legacy): Likewise.
22685 (-mupper-regs-df): Likewise.
22686 (-mupper-regs-sf): Likewise.
22687 (-mpointers-to-nested-functions): Likewise.
22689 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22691 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22693 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22695 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22696 additional index entries and cross-references.
22697 (-fchkp-check-incomplete-type): Likewise.
22698 (-fchkp-first-field-has-own-bounds): Likewise.
22699 (-fchkp-narrow-to-innermost-array): Likewise.
22700 (-fchkp-use-fast-string-functions): Likewise.
22701 (-fchkp-use-nochk-string-functions): Likewise.
22702 (-fchkp-use-static-const-bounds): Likewise.
22703 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22704 (-fchkp-instrument-marked-only): Likewise.
22705 (-fchkp-use-wrappers): Likewise.
22706 (-static-libmpx): Likewise.
22707 (-static-libmpxwrappers): Likewise.
22708 * doc/extend.texi (bnd_legacy): Likewise.
22709 (bnd_instrument): Likewise.
22710 (bnd_variable_size): Likewise.
22711 (Pointer Bounds Checker builtins): Likewise.
22713 2015-03-21 Tom de Vries <tom@codesourcery.com>
22715 PR tree-optimization/65458
22716 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
22717 * cgraph.h (cgraph_node): Add parallelized_function field.
22718 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
22719 (input_overwrite_node): Read parallelized_function field.
22720 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
22721 parallelized_function on cgraph_node for child_fn.
22722 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
22723 Remove include of gt-tree-parloops.h.
22724 (parallelized_functions): Remove static variable.
22725 (parallelized_function_p): Rewrite using parallelized_function field of
22727 (create_loop_fn): Remove adding to parallelized_functions.
22728 * Makefile.in (GTFILES): Remove tree-parloops.c
22730 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
22732 PR rtl-optimization/64366
22733 * lra.c (lra_update_insn_regno_info): Consider regs in
22734 CALL_INSN_FUNCTION_USAGE memory.
22736 2015-03-20 Richard Biener <rguenther@suse.de>
22738 PR middle-end/64715
22739 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
22740 for type comparison and gcc_checking_assert.
22741 (chrec_fold_plus_poly_poly): Likewise.
22742 (chrec_fold_multiply_poly_poly): Likewise.
22743 (chrec_convert_1): Likewise.
22744 * gimplify.c (gimplify_expr): Remove premature folding of
22745 &X + CST to &MEM[&X, CST].
22747 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22749 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
22751 (ipa_inline): Recompute inline_failed codes.
22752 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22753 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22756 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
22758 PR rtl-optimization/60851
22759 * recog.c (constrain_operands): Accept a pseudo register before reload
22760 for LRA enabled targets.
22762 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
22765 * config/rs6000/predicates.md (easy_fp_constant): Remove special
22766 -ffast-math handling that kept non-0 constants live in the RTL
22767 until reload. Remove logic testing the number of instructions it
22768 took to create a constant in a GPR that was never used, due to a
22769 test for soft-float earlier.
22770 (memory_fp_constant): Delete, no longer used.
22772 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22773 alternatives for loading non-0 constants into GPRs for hard
22774 floating point that is no longer needed due to changes in
22775 easy_fp_constant. Add support for loading 0.0 into GPRs.
22776 (mov<mode>_hardfloat32): Likewise.
22777 (mov<mode>_hardfloat64): Likewise.
22778 (mov<mode>_64bit_dm): Likewise.
22779 (movtd_64bit_nodm): Likewise.
22780 (pre-reload move FP constant define_split): Delete define_split,
22781 since it is no longer used.
22782 (extenddftf2_internal): Remove GHF constraints that are not valid
22785 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
22787 PR rtl-optimization/63491
22788 * lra-constraints.c (check_and_process_move): Use src instead of
22789 sreg. Remove some dead code.
22791 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
22794 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
22795 (sem_variable::merge): Likewise.
22797 2015-03-19 Martin Liska <mliska@suse.cz>
22800 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
22801 all fields of cgraph_thunk_info.
22803 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
22805 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22806 clone instrumented thunks.
22808 2015-03-19 Richard Biener <rguenther@suse.de>
22811 2015-03-10 Richard Biener <rguenther@suse.de>
22813 PR middle-end/63155
22814 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22815 * tree-ssa-coalesce.c: Include timevar.h.
22816 (attempt_coalesce): Handle graph being NULL.
22817 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22818 Split out abnormal coalescing to ...
22819 (perform_abnormal_coalescing): ... this function.
22820 (coalesce_ssa_name): Perform abnormal coalescing without computing
22822 (verify_ssa_coalescing_worker): New function.
22823 (verify_ssa_coalescing): Likewise.
22825 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
22826 Jakub Jelinek <jakub@redhat.com>
22829 * tsan.c (instrument_gimple): Clear tail call flag on
22832 2015-03-19 Jakub Jelinek <jakub@redhat.com>
22835 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22836 call in the return bb.
22837 (find_split_points): Add RETURN_BB argument, don't call
22839 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
22840 if true append TSAN_FUNC_EXIT internal call after the call to
22841 the split off function.
22842 (execute_split_functions): Call find_return_bb here.
22843 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22844 Adjust find_split_points and split_function calls.
22846 2015-03-18 DJ Delorie <dj@redhat.com>
22848 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22849 (iorqi3_virt): Likewise.
22851 2015-03-18 Tom de Vries <tom@codesourcery.com>
22853 * tree-parloops.c (parallelize_loops): Make static.
22854 * tree-parloops.h (parallelize_loops): Remove extern declaration.
22856 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
22858 PR middle-end/64491
22860 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
22862 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22863 condition would be removed due to undefined behaviour.
22865 2015-03-18 Martin Liska <mliska@suse.cz>
22868 * cgraph.c (cgraph_node::get_create): Remove unnecessary
22869 xstrdup_for_dump wrapper.
22870 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22872 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22873 with xstrdup_for_dump.
22874 (sem_variable::equals): Likewise.
22875 (sem_item_optimizer::read_section): Use symtab_node::name instead of
22877 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22878 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22879 symtab_node::asm_name with xstrdup_for_dump.
22880 (congruence_class::dump): Use symtab_node::name instead of
22882 * ipa-icf.h (symtab_node::name): Remove.
22883 (symtab_node::asm_name): Likewise.
22885 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22887 PR tree-optimization/65450
22888 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22890 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22891 it instead of duplicate_ssa_name_ptr_info.
22894 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22896 2015-03-18 Richard Biener <rguenther@suse.de>
22898 * tree-data-ref.h (struct access_matrix): Remove.
22899 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22900 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22901 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22902 (am_vector_index_for_loop): Likewise.
22903 (struct data_reference): Remove access_matrix member.
22904 (DR_ACCESS_MATRIX): Remove.
22905 (lambda_vector_new): Add comment.
22906 (lambda_matrix_new): Use XOBNEWVEC.
22908 2015-03-18 Richard Biener <rguenther@suse.de>
22910 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22911 (pass_ch::execute): Cleanup the CFG only if we did sth.
22912 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22914 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22916 * expmed.c (synth_mult): Use std::swap instead of manually
22917 swapping algorithms.
22919 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22922 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22924 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
22927 * config/avr/avr.opt (-nodevicelib): New option.
22928 * doc/invoke.texi (AVR Options): Document it.
22929 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22930 libgcc.a, libc.a, libm.a.
22931 * config/avr/specs.h: Same.
22932 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22933 which don't (directly) depend on the device. Print more help.
22934 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22935 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22936 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22938 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22939 for specs file name.
22940 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22941 * config/avr/avr-mcus.def: Adjust initializers and comments.
22943 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
22945 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22946 DECL_ONE_ONLY to check if decl is one only.
22947 * ipa-split.c (consider_split): Limit splitt of one only functions.
22949 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22951 PR tree-optimization/65427
22952 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22954 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22956 2015-03-16 Marek Polacek <polacek@redhat.com>
22958 * cgraph.h (add_new_static_var): Remove declaration.
22959 * varpool.c (add_new_static_var): Remove function.
22961 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22963 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22964 instead of vec<tree> * with vec_alloc and release for args.
22967 PR middle-end/65431
22968 * omp-low.c (delete_omp_context): Only splay_tree_delete
22969 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22970 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
22972 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
22975 * cfgexpand.c (align_base): New function.
22976 (alloc_stack_frame_space): Call it.
22977 (expand_stack_vars): Align prev_frame to be sure
22978 data->asan_vec elements aligned properly.
22980 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
22982 PR middle-end/65409
22983 * expr.c (store_field): Do not do a direct block copy if the source is
22984 a PARALLEL with BLKmode.
22986 2015-03-16 Tom de Vries <tom@codesourcery.com>
22988 PR middle-end/65414
22990 2015-03-12 Tom de Vries <tom@codesourcery.com>
22992 PR rtl-optimization/64895
22993 * lra-lives.c (check_pseudos_live_through_calls): Use
22994 actual_call_used_reg_set instead of call_used_reg_set, if available.
22996 2015-03-16 Alan Modra <amodra@gmail.com>
22999 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23000 Modify Z->r bswapdi splitter to use dest in place of scratch.
23001 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23002 to word1, word2 and rearrange logic to suit.
23003 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23004 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23005 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23006 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23009 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23011 PR tree-optimization/65369
23012 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23013 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23014 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23016 PR tree-optimization/65418
23017 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23018 are casts in the first PLUS_EXPR operand, ensure tbias and
23019 *totallowp are in the inner type.
23021 PR rtl-optimization/65401
23022 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23023 argument. If true, adjust_address_nv of x with big-endian
23024 correction for the mode widening to GET_MODE (y).
23025 (make_field_assignment): Don't do MEM mode widening here.
23026 Use MEM_P instead of GET_CODE == MEM.
23028 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23030 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23031 the external decls.
23033 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23036 * config/arm/arm.c (arm_gen_constant, AND case): Use
23037 ARM_SIGN_EXTEND when constructing AND mask.
23039 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23041 * graph.c (print_graph_cfg): Make function names visible and append
23042 parenthesis to it. Also make groups of basic blocks belonging to the
23043 same function visible.
23045 2015-03-12 Richard Biener <rguenther@suse.de>
23047 PR middle-end/44563
23048 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23049 to avoid quadratic behavior with inline expansion splitting blocks.
23050 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23051 with the successor if the predecessor will be merged with it.
23052 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23053 entry block with its successor.
23055 2015-03-13 Richard Biener <rguenther@suse.de>
23057 PR middle-end/44563
23058 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23059 (cleanup_tree_cfg_1): Do not call it.
23060 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23061 (fixup_noreturn_call): Mark the stmt as control altering.
23062 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23064 (pass_data_fixup_cfg): Produce a dump file.
23065 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23066 (need_noreturn_fixup): New global.
23067 (pass_dominator::execute): Fixup queued noreturn calls.
23068 (optimize_stmt): Queue calls that became noreturn for fixup.
23069 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23070 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23071 (el_to_fixup): New global.
23072 (eliminate_dom_walker::before_dom_childre): Queue calls that
23073 became noreturn for fixup.
23074 (eliminate): Fixup queued noreturn calls.
23075 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23076 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23077 (substitute_and_fold_dom_walker::before_dom_children): Queue
23078 alls that became noreturn for fixup.
23079 (substitute_and_fold): Fixup queued noreturn calls.
23081 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23083 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23084 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23085 are building; for methods check ODR type of class they belong to if
23086 they may lead to a polymorphic call.
23087 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23088 when function may lead to a polymorphic call.
23089 (sem_function::compare_type_list): Remove.
23090 (sem_variable::equals): Update use of compatible_types_p.
23091 (sem_variable::parse_tree_refs): Remove.
23092 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23094 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23096 (func_checker::compatible_polymorphic_types_p): Break out from ...
23097 (unc_checker::compatible_types_p): ... here.
23098 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23100 (unc_checker::compatible_types_p): Update.
23101 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23104 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23106 PR rtl-optimization/65235
23107 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23108 When first element of vec_concat is const_int, calculate its size
23109 using second element.
23111 2015-03-12 Richard Biener <rguenther@suse.de>
23113 PR middle-end/65270
23114 * fold-const.c (operand_equal_p): Fix ordering of resetting
23115 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23117 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23119 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23121 (s390_asm_output_function_label): Likewise.
23122 * config/s390/s390.c (s390_asm_output_function_label):
23123 Fix function label alignment with -mhtopatch.
23124 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23125 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23126 ("nop_2_byte"): New define_insn.
23127 ("nop_4_byte"): Likewise.
23128 ("nop_6_byte"): Likewise.
23129 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23130 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23132 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23135 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23138 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23141 * toplev.c (process_options): Restrict Pointer Bounds Checker
23142 usage with Address Sanitizer.
23144 2015-03-12 Richard Biener <rguenther@suse.de>
23146 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23148 * omp-low.c (expand_omp_taskreg): Split block before removing
23150 (expand_omp_target): Likewise.
23151 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23152 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23153 stmt to split_block.
23155 2015-03-12 Tom de Vries <tom@codesourcery.com>
23157 PR rtl-optimization/64895
23158 * lra-lives.c (check_pseudos_live_through_calls): Use
23159 actual_call_used_reg_set instead of call_used_reg_set, if available.
23161 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23163 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23164 (cgraph_node::remove): Likewise.
23165 (cgraph_node::get_untransformed_body): Likewise.
23166 * varpool.c (varpool_node::remove): Likewise.
23167 (varpool_node::get_constructor): Add sanity check.
23169 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23171 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23173 (-fabi-compat-version): Likewise.
23174 (-ffriend-injection): Likewise.
23175 (-Wdeclaration-after-statement): Likewise.
23176 (-fomit-frame-pointer): Likewise.
23177 (-ftree-coalesce-inlined-vars): Likewise.
23178 (-fvisibility=): Likewise.
23179 * doc/extend.texi (Typeof): Likewise.
23180 (Zero Length): Likewise.
23181 (Escaped Newlines): Likewise.
23182 (Compound Literals): Likewise.
23183 (Function Attributes): Likewise.
23184 (Label Attributes): Likewise.
23185 (Type Attributes): Likewise.
23186 (Function Names): Likewise.
23187 (Other Builtins): Likewise.
23188 (Function Specific Option Pragmas): Likewise.
23189 (C++ Interface): Likewise.
23191 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23193 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23195 2015-03-11 Marek Polacek <polacek@redhat.com>
23197 PR tree-optimization/65388
23198 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23200 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23203 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23204 * configure: Regenerate.
23205 * config.in: Regenerate.
23206 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23207 [-mn-flash]: Document it.
23208 [__AVR_ARCH__]: Document avrtiny.
23210 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23211 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23212 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23214 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23216 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23218 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23221 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23222 allow reloads of PLUS in floating point/VSX registers.
23224 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23226 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23227 crypto_sha256_fast.
23228 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23230 2015-03-11 Richard Biener <rguenther@suse.de>
23232 PR tree-optimization/65310
23233 * tree-sra.c (build_ref_for_offset): Also preserve larger
23236 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23238 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23240 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23243 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23245 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23247 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23249 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23250 (sem_function::equals_wpa): ... here.
23252 2015-03-10 Marek Polacek <polacek@redhat.com>
23253 Jakub Jelinek <jakub@redhat.com>
23256 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23257 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23260 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23263 * config/rs6000/t-linux: For powerpc64* target set
23264 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23266 2015-03-10 Richard Biener <rguenther@suse.de>
23268 PR middle-end/44563
23269 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23270 for redirect_all_calls.
23272 2015-03-10 Marek Polacek <polacek@redhat.com>
23274 * gdbinit.in (pcfun): Define and document.
23276 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23278 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23279 of libgomp-plugin.h.
23280 (find_target_compiler): Support a case when the path to gcc is
23281 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23282 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23283 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23285 (main): Use GCC_INSTALL_NAME as target_driver_name.
23286 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23288 (mkoffload.o): Remove obsolete include path and defines.
23289 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23291 2015-03-10 Richard Biener <rguenther@suse.de>
23293 PR middle-end/63155
23294 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23295 * tree-ssa-coalesce.c: Include timevar.h.
23296 (attempt_coalesce): Handle graph being NULL.
23297 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23298 Split out abnormal coalescing to ...
23299 (perform_abnormal_coalescing): ... this function.
23300 (coalesce_ssa_name): Perform abnormal coalescing without computing
23302 (verify_ssa_coalescing_worker): New function.
23303 (verify_ssa_coalescing): Likewise.
23305 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23308 * config.gcc (extra_options) [avr]: Remove.
23309 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23310 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23311 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23313 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23314 (-mmcu=): Add Var and MissingArgError properties.
23316 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23317 * config/avr/t-multilib: Regenerate.
23318 * config/avr/specs.h: New file.
23319 * config/avr/driver-avr.c: New file.
23320 * config/avr/genopt.sh: Remove file.
23321 * config/avr/avr-tables.opt: Remove file.
23322 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23323 * config/avr/avr-c.c: Same.
23324 * avr-arch.h: Same.
23325 (avr_current_device): Remove proto.
23326 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23327 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23328 (EXTRA_SPEC_FUNCTIONS): Define.
23329 (avr_devicespecs_file): New specs function proto.
23330 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23331 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23332 (avr_current_device): Remove definition and usage.
23333 (avr_set_core_architecture): New static function.
23334 (avr_option_override): Use it.
23335 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23336 (mcu_name): New static array.
23337 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23338 (avr_inform_devices, avr_inform_core_architectures): New functions.
23339 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23340 (avrlibc.h) [WITH_AVRLIBC]: Include.
23341 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23342 (print_mcu): Rewrite from scratch.
23343 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23344 Forward to avr-specific specs defined in device-specs file.
23345 * config/avr/t-avr (driver-avr.o): New rule.
23346 (avr-devices.o): Depend on avr-arch.h.
23347 (avr-mcus): No more depend on avr-tables.opt.
23348 (avr-tables.opt): Remove rule.
23349 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23351 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23353 * c-family/c.opt (fchkp-use-wrappers): New.
23354 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23355 (chkp_wrap_function): New.
23356 (chkp_build_instrumented_fndecl): Support wrapped
23358 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23359 (-fchkp-check-incomplete-type): New.
23360 (-fchkp-first-field-has-own-bounds): New.
23361 (-fchkp-narrow-bounds): New.
23362 (-fchkp-narrow-to-innermost-array): New.
23363 (-fchkp-optimize): New.
23364 (-fchkp-use-fast-string-functions): New.
23365 (-fchkp-use-nochk-string-functions): New.
23366 (-fchkp-use-static-bounds): New.
23367 (-fchkp-use-static-const-bounds): New.
23368 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23369 (-fchkp-check-read): New.
23370 (-fchkp-check-write): New.
23371 (-fchkp-store-bounds): New.
23372 (-fchkp-instrument-calls): New.
23373 (-fchkp-instrument-marked-only): New.
23374 (-fchkp-use-wrappers): New.
23375 (-static-libmpx): New.
23376 (-static-libmpxwrappers): New.
23378 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23380 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23381 (CHKP_SPEC): Add wrappers library.
23382 * c-family/c.opt (static-libmpxwrappers): New.
23384 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23386 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23387 (LIBMPX_SPEC): New.
23389 * gcc.c (CHKP_SPEC): New.
23390 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23391 * c-family/c.opt (static-libmpx): New.
23393 2015-03-10 Richard Biener <rguenther@suse.de>
23395 PR middle-end/44563
23396 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23398 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23399 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23400 (cgraph_add_edge_to_call_site_hash): Likewise.
23401 (cgraph_node::get_edge): Likewise.
23402 (cgraph_edge::set_call_stmt): Likewise.
23403 (cgraph_edge::remove_caller): Likewise.
23405 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23407 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23408 (callee_saved_gpr_regs_size): ... this.
23409 (callee_saved_regs_first_regno): Rename to ...
23410 (callee_saved_first_gpr_regno): ... this.
23411 (callee_saved_regs_last_regno) Rename to ...
23412 (callee_saved_last_gpr_regno): ... this.
23413 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23415 (nds32_initial_elimination_offset): Likewise.
23416 (nds32_expand_prologue): Likewise.
23417 (nds32_expand_epilogue): Likewise.
23418 (nds32_expand_prologue_v3push): Likewise.
23419 (nds32_expand_epilogue_v3pop): Likewise.
23420 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23421 Adjust renamed variables.
23422 (nds32_output_stack_pop): Likewise.
23424 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23426 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23429 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23431 PR rtl-optimization/65321
23432 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23434 * var-tracking.c (use_narrower_mode): Likewise.
23436 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23438 PR tree-optimization/65355
23439 * varasm.c (notice_global_symbol): Do not produce RTL.
23440 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23442 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23443 check for section anchors.
23445 2015-03-10 Alan Modra <amodra@gmail.com>
23448 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23449 to be single-arch by default. Set cpu_is_64bit for powerpc64
23450 given --with-cpu=native.
23451 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23452 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23454 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23455 rs6000_isa_flags rather than TARGET_64BIT.
23457 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23458 Kaz Kojima <kkojima@gcc.gnu.org>
23460 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23462 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23465 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23466 on a TREE_BINFO, instead use BINFO_TYPE.
23468 2015-03-09 Richard Biener <rguenther@suse.de>
23470 PR middle-end/65270
23471 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23472 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23473 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23474 of that. When comparing dereferences compare alignment.
23475 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23477 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23479 * ipa-inline-analysis.c (check_callers): Check
23480 node->can_remove_if_no_direct_calls_and_refs_p.
23481 (growth_likely_positive): Reorganize to call
23482 can_remove_if_no_direct_calls_p later.
23483 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23484 will_be_removed_from_program_if_no_direct_calls_p): Add
23485 will_inline parameter.
23486 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23487 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23488 Handle inliner case correctly.
23490 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23492 PR tree-optimization/63743
23493 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23494 had its definition forwarded by TER.
23496 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23499 * ipa-utils.h (types_odr_comparable): Add strict argument.
23500 * ipa-devirt.c: Fix whitespace;
23501 (odr_hasher): Remove.
23502 (odr_name_hasher, odr_vtable_hasher): New hashers.
23503 (can_be_name_hashed_p): New predicate.
23504 (hash_type_name): remove.
23505 (hash_odr_name): New.
23506 (odr_name_hasher::hash): new.
23507 (can_be_vtable_hashed_p): New.
23508 (hash_odr_vtable): New.
23509 (odr_vtable_hasher::hash): New.
23510 (types_same_for_odr): Add strict parameter.
23511 (types_odr_comparable): Likewise.
23512 (odr_name_hasher::equal): New.
23513 (odr_vtable_hasher::equal): New.
23514 (odr_name_hasher::remove): New.
23515 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23516 (odr_vtable_hash_type): New.
23517 (odr_vtable_hash): New.
23518 (odr_subtypes_equivalent_p): Do strict comparsion.
23519 (add_type_duplicate): Merge type names; cleanup; avoid type
23521 (register_odr_type): Initialize vtable hash.
23522 (build_type_inheritance_graph): Likewise
23523 (get_odr_type): Reorg to use two hashes.
23524 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23526 (ipa_devirt): Dump type_inheritance_graph.
23527 (types_same_for_odr): Add strict mode.
23529 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23532 * cgraph.h (symtab_node): Add definition_alignment,
23533 can_increase_alignment_p and increase_alignment.
23534 * symtab.c (symtab_node::can_increase_alignment_p,
23535 increase_alignment_1, symtab_node::increase_alignment,
23536 symtab_node::definition_alignment): New.
23537 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23538 can_increase_alignment_p.
23539 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23540 * tree-vect-stmts.c (ensure_base_align): Likewise.
23541 * varasm.c (function_section_1): Use definition_alignment.
23542 (assemble_start_function): Likewise.
23543 (emit_local): likewise.
23544 (build_constant_desc): Likewsie.
23545 (output_constant_def_contents): Likewise.
23546 (place_block_symbol): Likewise.
23547 (output_object_block): Likewise.
23549 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23552 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23553 when outputting debug.
23555 2015-03-07 Marek Polacek <polacek@redhat.com>
23556 Martin Uecker <uecker@eecs.berkeley.edu>
23559 * doc/invoke.texi: Update description of -fsanitize=bounds.
23561 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23563 * tree-ssa-phiopt.c (neg_replacement): Remove.
23564 (tree_ssa_phiopt_worker): Remove negate optimization.
23566 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23569 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23571 2015-03-06 Richard Biener <rguenther@suse.de>
23573 PR middle-end/64928
23574 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23575 and liveout_obstack members.
23576 (calculate_live_on_exit): Remove.
23577 (calculate_live_ranges): Change declaration.
23578 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23579 (new_tree_live_info): Adjust.
23580 (calculate_live_ranges): Delete livein when not wanted.
23581 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23582 Deal with partly deleted live info.
23583 (loe_visit_block): Remove temporary bitmap by using
23584 bitmap_ior_and_compl_into.
23585 (live_worklist): Adjust accordingly.
23586 (calculate_live_on_exit): Make static.
23587 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23588 we do not need livein.
23590 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23592 * real.c (real_from_string): Fix typo in assertion.
23594 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23596 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23599 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23601 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23603 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23606 * lra-assigns.c (find_hard_regno_for): Rename to
23607 find_hard_regno_for_1. Add a new parameter.
23608 (find_hard_regno_for): New function using find_hard_regno_for_1.
23610 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23612 PR rtl-optimization/65067
23613 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23614 strict volatile bitfield handling.
23616 2015-03-05 Martin Liska <mliska@suse.cz>
23619 * ipa-icf.c (sem_variable::equals): Compare variables types.
23621 2015-03-05 Richard Henderson <rth@redhat.com>
23624 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23625 correctly check weak symbol binding.
23627 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23629 PR middle-end/65315
23630 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23633 2015-03-05 Martin Liska <mliska@suse.cz>
23635 * ipa-inline.c (inline_small_functions): Set default value to
23636 prevent warning during bootstrap.
23637 * tree.h: Add pragma guard that ignores false positives during
23640 2015-03-05 Richard Biener <rguenther@suse.de>
23642 PR tree-optimization/65310
23643 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23644 Properly preserve alignment of the base of the access.
23646 2015-03-05 Richard Biener <rguenther@suse.de>
23649 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23650 Compare dependence info.
23652 2015-03-05 Richard Biener <rguenther@suse.de>
23654 PR middle-end/65233
23655 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23657 (walk_ssa_copies): Revert last chage. Instead do not walk
23658 SSA names registered for SSA update.
23660 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23663 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23664 vtable references for their containing type.
23665 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23666 and type attributes.
23668 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23670 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23671 before negating it.
23672 * stor-layout.c (finalize_record_size): Revert latest change.
23674 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23676 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23678 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23680 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23681 for correct comdat handling.
23682 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23684 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23685 (used_from_object_file_p_worker): Remove.
23686 (cgraph_node::only_called_directly_or_alised): Add
23687 used_from_object_file_p.
23688 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23689 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23690 can_remove_if_no_direct_calls_and_refs_p.
23692 2015-03-04 Nick Clifton <nickc@redhat.com>
23694 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23695 General register class.
23696 * config/rl78/rl78-real.md: Replace general register constraints
23697 with real+virtual register constraints.
23699 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23701 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23702 from checking for -mhtm option.
23704 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23706 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23707 (struct ipa_sra_check_caller_data): Add has_thunk field.
23708 (ipa_sra_check_caller): Check for thunk.
23709 (ipa_sra_preliminary_function_checks): Give up on function with
23711 (ipa_early_sra): Use call_for_symbol_and_aliases.
23713 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
23716 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
23717 called for __stack_chk_guard symbol.
23719 2015-03-03 DJ Delorie <dj@redhat.com>
23721 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
23723 (*addhi3_real): Likewise.
23724 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
23725 pattern to match incrementing memory.
23726 * config/rl78/predicates.md (rl78_1_2_operand): New.
23727 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
23728 it's the same and only mem.
23729 (rl78_alloc_physical_registers_op2): If there's effectively only
23730 one MEM, transcode it into HL.
23731 (rl78_far_p): Reject addresses that aren't legitimate.
23733 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23735 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
23738 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
23740 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23742 Implement call0 ABI for xtensa
23743 * config/xtensa/constraints.md ("a" constraint): Include stack
23744 pointer in case of call0 ABI.
23745 ("q" constraint): Make empty in case of call0 ABI.
23746 ("D" constraint): Include stack pointer in case of call0 ABI.
23747 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
23748 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
23750 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
23752 (xtensa_regno_to_class): Make it a local variable in the
23753 function xtensa_regno_to_class.
23754 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
23755 macro, function prototype and implementation.
23756 (reg_nonleaf_alloc_order): Make it a local variable in the
23757 function order_regs_for_local_alloc.
23758 (xtensa_conditional_register_usage): New function.
23759 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23760 (xtensa_valid_move): Allow direct moves to stack pointer
23761 register in call0 ABI.
23762 (xtensa_setup_frame_addresses): Only spill register windows in
23764 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23765 call0 ABI respectively.
23766 (xtensa_function_arg_1): Only mark a7 register for copying in
23768 (xtensa_call_save_reg): New function.
23769 (compute_frame_size): Add space for callee saved register
23770 storage to the frame size in call0 ABI.
23771 (xtensa_expand_prologue): Generate code to set up stack frame
23772 and save callee-saved registers in call0 ABI.
23773 (xtensa_expand_epilogue): New function.
23774 (xtensa_set_return_address): New function.
23775 (xtensa_return_addr): Calculate return address in call0 ABI.
23776 (xtensa_builtin_saveregs): Only mark a7 register for copying and
23777 emit copying code in windowed ABI.
23778 (order_regs_for_local_alloc): Add preferred register allocation
23779 order for non-leaf function in call0 ABI.
23780 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23781 (xtensa_asm_trampoline_template): Add trampoline generation for
23783 (xtensa_trampoline_init): Add trampoline initialization for
23785 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
23787 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
23788 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
23789 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
23790 ABI call-used registers.
23791 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
23792 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
23794 (REG_CLASS_CONTENTS): Include all registers into the preferred
23795 reload registers set, adjust the set in the
23796 xtensa_conditional_register_usage.
23797 (xtensa_regno_to_class): Drop variable declaration.
23798 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
23800 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
23802 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
23803 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
23804 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
23805 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23806 location in call0 ABI.
23807 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23808 stack adjustment size when handling exception.
23809 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23810 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23812 ("return" pattern): Generate ret.n/ret in call0 ABI.
23813 ("epilogue" pattern): Expand epilogue.
23814 ("nonlocal_goto" pattern): Use default in call0 ABI.
23815 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23816 emit eh_set_a0_* depending on ABI.
23817 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23818 ("eh_set_a0_call0", "blockage"): New patterns.
23820 2015-03-03 Martin Liska <mliska@suse.cz>
23823 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23825 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23828 * config/rs6000/rs6000-tables.opt: Regenerate table.
23830 2015-03-03 Renlin Li <renlin.li@arm.com>
23832 * doc/md.texi (@item ^): Change ? into ^.
23834 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
23836 * doc/tm.texi: Regenerated.
23838 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23840 * builtins.c (expand_builtin_return_addr): Add
23841 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23842 surrounding #ifdef.
23843 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23845 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23847 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23849 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23852 2015-03-03 Martin Jambor <mjambor@suse.cz>
23853 Eric Botcazou <ebotcazou@adacore.com>
23855 * tree-sra.c (ipa_sra_check_caller_data): New type.
23856 (has_caller_p): Removed.
23857 (ipa_sra_check_caller): New function.
23858 (ipa_sra_preliminary_function_checks): Use it.
23860 2015-03-03 Martin Liska <mliska@suse.cz>
23862 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23863 instead of if branch.
23865 2015-03-03 Martin Liska <mliska@suse.cz>
23868 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23870 2015-03-23 Jeff Law <law@redhat.com>
23872 PR tree-optimization/65241
23873 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23874 hash table if INSERT is true.
23876 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23879 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23881 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23884 * config/avr/avr.c (context.h, tree-pass.h): Include them.
23885 (avr_pass_data_recompute_notes): New static variable.
23886 (avr_pass_recompute_notes): New class.
23887 (avr_register_passes): New static function.
23888 (avr_option_override): Call it.
23890 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23892 Fix various problems with specs file generation.
23895 * config.gcc (extra_gcc_objs) [avr]: Remove.
23896 * config/avr/driver-avr.c: Remove file.
23897 * config/avr/t-avr (driver-avr.o): Remove rule.
23898 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23899 INCLUDES to build. Depend on TM_H.
23900 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
23901 build warnings. Fix non-matching types and non-existing %-codes.
23903 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23904 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23905 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23906 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23907 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23908 (LIBGCC_SPEC): Remove definitions.
23910 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23912 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23913 to create a register in testing mode.
23915 2015-03-03 Martin Liska <mliska@suse.cz>
23916 Jan Hubicka <hubicka@ucw.cz>
23919 * cgraph.c (cgraph_node::has_thunk_p): New function.
23920 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23921 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23922 (sem_function::merge): Assert is changed.
23924 2015-03-03 Martin Liska <mliska@suse.cz>
23925 Martin Jambor <mjambor@suse.cz>
23928 * ipa-icf.c (sem_item_optimizer::execute): Change function
23929 return value to boolean.
23930 (sem_item_optimizer::merge_classes): Likewise.
23931 (ipa_icf_driver): Return TODO_remove_functions in case there's
23932 a merge operation processed.
23933 * ipa-icf.h: Change function return value to boolean.
23935 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23938 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23939 processor type for 64-bit little endian PowerPC.
23941 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23942 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
23943 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
23944 printing built-in mask so it does not pass NULL pointers.
23946 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23949 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
23952 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23953 !ISA_HAS_FP_CONDMOVE.
23955 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
23957 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23960 2015-03-02 Ulrich Drepper <drepper@gmail.com>
23962 * doc/invoke.texi (Options for Code Generation Conventions):
23963 Fix URL of DSO paper.
23965 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23968 * ipa-inline.c (check_callers): Looks for recursion.
23969 (inline_to_all_callers): Give up on uninlinable or recursive edges.
23970 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23971 summary of inline clones.
23972 (do_estimate_growth_1): Fix recursion check.
23974 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23977 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23980 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23981 Aldy Hernandez <aldyh@redhat.com>
23984 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23985 when checking TYPE_BINFO.
23987 2015-03-02 Richard Biener <rguenther@suse.de>
23990 * ipa-icf-gimple.c: Include builtins.h.
23991 (func_checker::compare_memory_operand): Compare base alignment.
23993 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23996 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23997 are never passed by reference.
23999 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24002 * tree-chkp.c (chkp_check_lower): Don't check against
24003 zero bounds for already instrumented functions.
24004 (chkp_check_upper): Likewise.
24005 (chkp_fini): Clean pass local data to avoid wrong reusage.
24007 2015-02-28 Martin Liska <mliska@suse.cz>
24008 Jan Hubicka <hubicka@ucw.cz>
24010 * ipa-icf.c (sem_variable::equals): Improve debug output;
24011 get variable constructor.
24012 (sem_variable::parse): Do not filter out too early; give up on
24013 volatile and register vars.
24014 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24016 * ipa-icf.h (sem_variable::init): Do not set ctor.
24017 (sem_variable::ctor): Remove.
24019 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24021 PR middle-end/65233
24022 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24024 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24026 * ipa-icf.c: Include stor-layout.h
24027 (sem_function::compare_cgraph_references): Rename to ...
24028 (sem_item::compare_cgraph_references): ... this one.
24029 (sem_variable::equals_wpa): New function
24030 (sem_variable::equals): Do not check stuff already verified by
24032 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24033 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24034 (sem_function): Remove compare_cgraph_references.
24035 (sem_variable): Turns equals_wpa into non-inline.
24037 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24039 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24040 (sem_item::add_expr): New function.
24041 (sem_function::hash_stmt): Handle operands of most statements.
24042 (sem_variable::get_hash): Hash the actual constructor.
24043 * ipa-icf.h (sem_item): Add add_expr.
24044 (sem_function): Update prototype of hash_stmt
24046 2015-02-28 Martin Liska <mliska@suse.cz>
24047 Jan Hubicka <hubicka@ucw.cz>
24050 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24052 (func_checker::compare_variable_decl): Skip symtab vars.
24053 (func_checker::compare_cst_or_decl): Update.
24054 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24055 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24056 use correct symtab predicates.
24057 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24058 (sem_variable::parse): Update comment.
24059 (sem_item_optimizer::build_graph): Consider ultimate aliases
24062 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24064 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24067 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24069 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24070 (sem_variable::merge) Likewise.
24072 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24074 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24075 target; also match flag_ipa_devirt.
24077 2015-03-01 Martin Liska <mliska@suse.cz>
24078 Jan Hubicka <hubicka@ucw.cz>
24080 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24081 Validate variable alignment.
24082 * ipa-icf.c (sem_function::equals_private): Be more precise
24083 about non-common function attributes.
24084 (sem_variable::equals): Likewise.
24086 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24089 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24090 across COMDAT group boundary.
24092 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24095 * ipa-icf.c (clear_decl_rtl): New function.
24096 (sem_function::merge): Clear RTL before forming alias.
24097 (sem_variable::merge): Clear RTL before forming alias.
24099 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24102 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24104 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24106 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24109 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24111 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24112 a typo in the description.
24114 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24117 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24118 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24119 * lra-constraints.c: Include "params.h".
24120 (EBB_PROBABILITY_CUTOFF): Use
24121 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24122 (lra_inheritance): Use '<' instead of '<=' for
24123 EBB_PROBABILITY_CUTOFF.
24124 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24127 2015-02-27 Martin Liska <mliska@suse.cz>
24129 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24130 vector length condition.
24132 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24134 * doc/extend.texi (x86 transactional memory intrinsics):
24135 Reorganize discussion of _xbegin. Clarify that the return
24136 value is a bit mask. Expand example and move to end of section.
24138 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24139 Aldy Hernandez <aldyh@redhat.com>
24141 PR rtl-optimization/65220
24142 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24144 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24147 * lra-remat.c (update_scratch_ops): New.
24148 (do_remat): Call it.
24149 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24150 (remove_scratches): ... here.
24151 * lra-int.h (lra_register_new_scratch_op): New prototype.
24153 2015-02-27 Marek Polacek <polacek@redhat.com>
24156 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24157 -Wformat-signedness anymore.
24159 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24161 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24163 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24165 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24167 * config/s390/s390.c (enum s390_builtin):
24168 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24169 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24170 (s390_init_builtins): Generate new builtin functions.
24171 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24172 (s390_sfpc, s390_efpc): New pattern definitions.
24174 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24176 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24177 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24178 (s390_builtin_decls): New array.
24179 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24180 (s390_builtin_decl): New function.
24181 (TARGET_BUILTIN_DECL): Define macro.
24183 2015-02-27 Richard Biener <rguenther@suse.de>
24185 PR middle-end/63175
24186 * builtins.c (get_object_alignment_2): Make sure to re-apply
24187 the ANDed mask after recursing to its operand gets us a new
24188 misalignment bit position.
24190 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24191 Martin Liska <mliska@suse.cz>
24194 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24195 Use address_matters_p.
24196 (redirect_all_callers, set_addressable): New functions.
24197 (sem_function::merge): Reorganize and fix merging issues.
24198 (sem_variable::merge): Likewise.
24199 (sem_variable::compare_sections): Remove.
24200 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24202 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24204 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24206 (address_matters_1): New function.
24207 (symtab_node::address_matters_p): New function.
24208 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24209 check for merged flag.
24210 * cgraph.h (address_matters_p): Declare.
24211 (symtab_node::address_taken_from_non_vtable_p): Remove.
24212 (symtab_node::address_can_be_compared_p): New method.
24213 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24214 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24216 (comdat_can_be_unshared_p_1) Use address_matters_p.
24217 (update_vtable_references): Fix formating.
24218 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24219 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24220 * cgraphclones.c: Preserve merged and icf_merged flags.
24222 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24224 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24225 (Label Attributes): Likewise.
24226 (Cilk Plus Builtins): Likewise.
24227 (ARC SIMD Built-in Functions): Likewise.
24228 (ARM C Language Extensions (ACLE)): Likewise.
24229 (PowerPC Built-in Functions): Likewise.
24230 (PowerPC Hardware Transactional Memory Built-in Functions):
24233 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24235 PR tree-optimization/65216
24236 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24237 new stmt and new SSA_NAME for lhs whenever the arguments have
24238 changed and weren't just swapped. Fix comment typo.
24240 PR tree-optimization/65215
24241 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24242 for PDP endian targets.
24243 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24244 Fix up formatting issues.
24245 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24246 size is smaller than the original, adjust MEM_REF offset by the
24247 difference of sizes. Use is_gimple_mem_ref_addr instead of
24248 is_gimple_min_invariant test to avoid adding address temporaries.
24250 2015-02-26 Martin Liska <mliska@suse.cz>
24251 Jan Hubicka <hubicka@ucw.cz>
24254 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24255 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24256 (sem_item_optimizer::process_cong_reduction): Include division by
24257 sensitive references.
24258 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24259 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24260 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24262 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24265 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24267 * config/avr/avr.c: Same.
24268 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24269 Refuse any constant address not in 0..0xbf.
24270 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24271 tiny_valid_direct_memory_access_range from insn conditions.
24272 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24274 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24277 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24278 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24279 * config/sh/predicates.md (const_logical_operand): New predicate.
24280 * config/sh/sh.md: Add new peephole2 patterns.
24282 2015-02-26 Marek Polacek <polacek@redhat.com>
24285 * ipa-inline.c (early_inliner): Recompute inline parameters.
24287 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24290 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24291 instructions with TImode operands are included in the analysis.
24293 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24295 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24296 of an EDGE_FSM_THREAD.
24298 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24300 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24302 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24305 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24307 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24309 PR tree-optimization/65048
24310 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24311 (thread_through_all_blocks): Call valid_jump_thread_path.
24312 Remove invalid FSM jump-thread paths.
24314 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24316 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24317 (ipa_write_optimization_summaries): Likewise.
24318 * tree-streamer.h: Include data-streamer.h.
24319 (streamer_mode_table): Declare extern variable.
24320 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24321 * lto-streamer-out.c (lto_output_init_mode_table,
24322 lto_write_mode_table): New functions.
24323 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24325 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24326 (lto_create_simple_input_block): Add mode_table argument to the
24327 lto_input_block constructors.
24328 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24330 * data-streamer-in.c (string_for_index): Likewise.
24331 * ipa-inline-analysis.c (inline_read_section): Likewise.
24332 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24333 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24334 * lto-streamer-in.c (lto_read_body_or_constructor,
24335 lto_input_toplevel_asms): Likewise.
24336 (lto_input_mode_table): New function.
24337 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24338 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24339 Use bp_pack_machine_mode.
24340 * real.h (struct real_format): Add name field.
24341 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24342 (class lto_input_block): Add mode_table member.
24343 (lto_input_block::lto_input_block): Add mode_table_ argument,
24344 initialize mode_table.
24345 (struct lto_file_decl_data): Add mode_table field.
24346 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24347 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24348 unpack_ts_decl_common_value_fields,
24349 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24350 * tree-streamer.c (streamer_mode_table): New variable.
24351 * real.c (ieee_single_format, mips_single_format,
24352 motorola_single_format, spu_single_format, ieee_double_format,
24353 mips_double_format, motorola_double_format,
24354 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24355 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24356 ibm_extended_format, mips_extended_format, ieee_quad_format,
24357 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24358 decimal_single_format, decimal_double_format, decimal_quad_format,
24359 ieee_half_format, arm_half_format, real_internal_format): Add name
24361 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24363 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24366 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24367 reordering for selective scheduling.
24369 2015-02-26 Terry Guo <terry.guo@arm.com>
24371 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24372 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24373 (arm_arch_no_volatile_ce): Declare new global variable.
24374 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24375 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24376 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24377 (TARGET_NO_VOLATILE_CE): New macro.
24378 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24379 volatile memory access in IT block
24381 2015-02-25 Kai Tietz <ktietz@redhat.com>
24383 PR tree-optimization/61917
24384 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24385 that reduc_def_stmt is null.
24387 2015-02-25 Martin Liska <mliska@suse.cz>
24389 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24390 hard register variables.
24392 2015-02-25 Kai Tietz <ktietz@redhat.com>
24395 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24396 (symtab::noninterposable_alias): Likewise.
24398 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24401 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24403 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24405 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24408 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24409 as split condition; force split via '#' in output pattern.
24411 2015-02-25 Richard Biener <rguenther@suse.de>
24412 Kai Tietz <ktietz@redhat.com>
24414 PR tree-optimization/61917
24415 * tree-vect-loop.c (vectorizable_reduction): Allow
24416 vect_internal_def without reduction to exit graceful.
24418 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24421 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24422 only with NONDEBUG_INSN_P.
24424 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24426 Use variadic macros with avr-log.c.
24428 * config/avr/avr-protos.h (avr_vdump): New prototype.
24429 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24430 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24431 * config/avr/avr-log.c: Adjust comments.
24432 (avr_vdump): New function.
24433 (avr_vadump): Pass caller as 2nd argument instead of format string.
24434 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24435 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24437 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24440 * target.def (target_option_stream_in): New target hook.
24441 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24442 targetm.target_option.post_stream_in if non-NULL.
24443 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24444 * doc/tm.texi: Updated.
24445 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24447 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24449 2015-02-24 Jeff Law <law@redhat.com>
24452 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24453 of operand 0 and operand 2.
24454 (zero_cost_loop_end, loop_end): Similarly.
24456 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24458 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24461 2015-02-24 DJ Delorie <dj@redhat.com>
24463 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24464 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24465 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24466 instead of hardcoding SImode.
24468 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24470 * omp-low.c (create_omp_child_function): Tag entrypoint
24471 functions with a special attribute.
24473 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24476 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24478 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24480 PR rtl-optimization/65123
24481 * lra-remat.c (operand_to_remat): Check hard regs in insn
24484 2015-02-24 Nick Clifton <nickc@redhat.com>
24486 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24489 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24492 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24493 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24494 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24495 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24496 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24497 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24498 (BUILT_IN_GOACC_PARALLEL): Specify as
24499 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24500 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24501 * builtin-types.def
24502 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24503 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24504 Remove function types.
24505 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24506 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24507 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24508 New function types.
24510 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24512 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24514 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24516 PR tree-optimization/65170
24517 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24518 if val[1] < 0, clear also val[2] and return 3.
24520 2015-02-24 Alan Modra <amodra@gmail.com>
24523 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24524 when *base is a reg. Handle nested plus addresses. Simplify
24527 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24529 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24530 use natural alignment when optimizing for size.
24532 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24535 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24536 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24537 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24539 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24542 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24543 too big for a wide_int. Implement missing wrapping operation.
24545 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24548 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24549 instead of const_int 4294901760.
24551 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24553 * config/avr/t-avr: Fix typo in comment.
24555 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24557 * doc/rtl.texi (fma): Clarify documentation.
24559 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24562 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24563 over input_location.
24565 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24567 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24568 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24569 restrict alignments to absolute_biggest_alignment.
24570 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24572 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24573 * doc/tm.texi: Regenerate.
24574 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24576 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24579 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24581 2015-02-20 Richard Biener <rguenther@suse.de>
24583 PR tree-optimization/65136
24584 * tree-ssa-propagate.c: Include cfgloop.h.
24585 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24586 arguments with constants.
24588 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24589 Martin Liska <mliska@suse.cz>
24592 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24593 don't try to create_thunk if stdarg_p. If
24594 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24595 redirect_callers if possible.
24596 (sem_item_optimizer::execute): Call unregister_hooks here...
24597 (ipa_icf_driver): ... instead of here.
24599 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24601 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24602 Mark operand 0 as earlyclobber in 2nd alternative.
24603 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24604 Write negated shift amount into QI lowpart operand 0 and use it
24606 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24608 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24610 * cgraph.h (clone_function_name_1): Declare.
24611 * cgraphclones.c (clone_function_name_1): New function.
24612 (clone_function_name): Use it.
24613 * lto-partition.c: Include "stringpool.h".
24614 (must_not_rename, maybe_rewrite_identifier)
24615 (validize_symbol_for_target): New static functions.
24616 (privatize_symbol_name): Use must_not_rename.
24617 (promote_symbol): Call validize_symbol_for_target.
24618 (lto_promote_cross_file_statics): Likewise.
24619 (lto_promote_statics_nonwpa): Likewise.
24621 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24624 * config/avr/avr.md (pushhi_insn): New insn.
24625 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24627 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24628 Jakub Jelinek <jakub@redhat.com>
24630 * tree-streamer.c (preload_common_nodes): Don't preload
24631 TI_VA_LIST* for offloading.
24632 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24635 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24637 * config/pa/pa.c (pa_emit_move_sequence): Always force
24638 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24641 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24642 (TARGET_ASM_RELOC_RW_MASK): Define.
24643 (pa_cannot_force_const_mem): Revert previous change.
24645 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24646 Jan Hubicka <hubicka@ucw.cz>
24649 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24650 across jump functions.
24652 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24654 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24656 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24658 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24660 2015-02-19 Richard Henderson <rth@redhat.com>
24662 PR middle-end/65074
24663 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24664 test DECL_EXTERNAL independent of symtab_node.
24666 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24669 * varpool.c (varpool_node::get_constructor): Return early
24670 if this->lto_file_data is NULL.
24672 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24674 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24675 (rank_for_schedule_debug): Update.
24676 (ready_sort): Make static. Move sorting logic to ...
24677 (ready_sort_debug, ready_sort_real): New static functions.
24678 (schedule_block): Sort both debug insns and real insns in preparation
24679 for ready list trimming. Improve debug output.
24680 * sched-int.h (ready_sort): Remove global declaration.
24682 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24684 * ipa-icf.c (sem_function::equals_private): Adjust.
24685 (sem_function::bb_dict_test): Take a vec<int> * instead of
24687 * ipa-icf.h (bb_dict_test): Likewise.
24689 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24691 PR gcov-profile/64634
24692 * tree-eh.c (frob_into_branch_around): Fix up typos
24693 in function comment.
24694 (lower_catch): Put eh_seq resulting from EH lowering of
24695 the cleanup sequence after the cleanup rather than before it.
24697 2015-02-18 Tom de Vries <tom@codesourcery.com>
24699 * common.opt (fstdarg-opt): New option.
24700 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24701 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24702 (@item -fstdarg-opt): New item.
24704 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
24707 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24708 for common symbols.
24710 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24712 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
24714 (ALL_HOST_OBJS): Add mkoffload.o.
24715 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
24717 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
24719 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
24720 (compare_virtual_tables): Be smarter about skipping typeinfos;
24721 do sane output on virtual table table mismatch.
24722 (warn_odr): Be ready for forward declarations of enums;
24723 output sane info on base mismatch and virtual table mismatch.
24724 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
24725 when only one type is polymorphic.
24726 (get_odr_type): Fix hashtable corruption.
24727 (dump_odr_type): Dump mangled names.
24729 2015-02-18 Richard Biener <rguenther@suse.de>
24731 PR tree-optimization/65063
24732 * tree-predcom.c (determine_unroll_factor): Return 1 if we
24733 have replaced looparound PHIs.
24735 2015-02-18 Martin Liska <mliska@suse.cz>
24737 * lto-streamer.c (lto_streamer_init): Encapsulate
24738 streamer_check_handled_ts_structures with checking macro.
24740 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24743 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
24744 section if !implicit_section.
24745 (cgraph_node::create_version_clone_with_body): Likewise.
24746 * trans-mem.c (ipa_tm_create_version): Likewise.
24748 2015-02-18 Richard Biener <rguenther@suse.de>
24750 PR tree-optimization/62217
24751 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
24754 2015-02-18 Marek Polacek <polacek@redhat.com>
24757 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24758 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24759 is in range [-16K, -1]. Don't issue run-time error if
24760 (ptr > ptr + offset).
24762 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
24764 * doc/install.texi (nvptx-*-none): New section.
24765 * doc/invoke.texi (Nvidia PTX Options): Likewise.
24766 * config/nvptx/nvptx.opt: Update.
24768 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24769 (access_check): New functions, copied from
24770 config/i386/intelmic-mkoffload.c.
24771 (main): For non-installed testing, look in all COMPILER_PATHs for
24774 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24776 2015-02-18 Andrew Pinski <apinski@cavium.com>
24777 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24779 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24780 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24782 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24784 * ipa-visibility.c (function_and_variable_visibility): Only
24785 check locality if node is not already local.
24786 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24787 call_for_symbol_and_aliases instead of
24788 call_for_symbol_thunks_and_aliases.
24789 (ipa_inline): Likewise.
24790 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24791 first walk aliases.
24792 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24793 call_for_symbol_and_aliases.
24794 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24795 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24796 (ipa_propagate_frequency): Update.
24797 (ipa_profile): Add opt_for_fn gueards.
24799 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24801 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
24802 * doc/invoke.texi (SH options): Document it.
24803 * config/sh/sh.c (sh_insn_length_adjustment): Check
24804 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24806 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
24808 * common.opt (fipa-cp-alignment): New.
24809 * ipa-cp.c (ipcp_store_alignment_results): Check
24810 flag_ipa_cp_alignment.
24811 * opts.c (default_options_table): Enable -fipa-cp-alignment for
24813 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24814 * doc/invoke.texi: Document -fipa-cp-alignment.
24816 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24819 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24820 to nil. Adjust comments.
24822 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24824 * ipa-visibility.c (function_and_variable_visibility): Only
24825 check locality if node is not already local.
24826 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24827 call_for_symbol_and_aliases instead of
24828 call_for_symbol_thunks_and_aliases.
24829 (ipa_inline): Likewise.
24830 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24831 first walk aliases.
24832 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24833 call_for_symbol_and_aliases.
24834 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24835 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24836 (ipa_propagate_frequency): Update.
24837 (ipa_profile): Add opt_for_fn guards.
24839 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
24841 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24842 skipping of "strange" tokens.
24844 2015-02-17 Jeff Law <law@redhat.com>
24846 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
24849 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
24851 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24852 as forcing a HARD_DEP between instructions, thereby
24853 disallowing rewriting to break dependencies.
24855 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24857 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24858 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24859 variables in boundary that have no inlitalizer encoded and are
24861 * varasm.c (default_binds_local_p_2): External definitions do not
24862 count as definitions here.
24864 2015-02-16 Jeff Law <law@redhat.com>
24866 PR tree-optimization/64823
24867 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24869 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24870 threading through blocks with PHIs, but no statements.
24871 (thread_through_normal_block): Distinguish between blocks where
24872 we did not process all the statements and blocks with no statements.
24874 2015-02-16 Jakub Jelinek <jakub@redhat.com>
24875 James Greenhalgh <james.greenhalgh@arm.com>
24878 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24879 section if not linkonce. Fix up formatting.
24880 (cgraph_node::create_version_clone_with_body): Copy section.
24881 * trans-mem.c (ipa_tm_create_version): Likewise.
24883 2015-02-16 Richard Biener <rguenther@suse.de>
24885 PR tree-optimization/65077
24886 * tree-ssa-structalias.c (get_constraint_for_1): Handle
24887 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24888 (find_func_aliases): Allow float values to carry pointers again.
24890 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24892 * doc/install.texi (Specific): Reorder targets list to put
24893 aarch64 in alphabetical order. Add a link to aarch64*-*-*
24896 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24897 David Edelsohn <dje.gcc@gmail.com>
24900 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24901 mapping class to external variable or function reference.
24902 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24905 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
24908 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24909 ASM_WEAKEN_DECL if defined.
24911 2015-02-16 Richard Biener <rguenther@suse.de>
24914 * varasm.c (default_file_start): For LTO produced units
24915 emit <artificial> as file directive.
24917 2015-02-16 Richard Biener <rguenther@suse.de>
24919 PR tree-optimization/63593
24920 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24921 stmts and releasing SSA names until...
24922 (execute_pred_commoning): ... after processing all chains.
24924 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24927 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24928 external functions.
24930 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
24932 * doc/bugreport.texi: Adjust section titles throughout the file
24933 to use "Title Case".
24934 * doc/extend.texi: Likewise.
24935 * doc/gcov.texi: Likewise.
24936 * doc/implement-c.texi: Likewise.
24937 * doc/implement-cxx.texi: Likewise.
24938 * doc/invoke.texi: Likewise.
24939 * doc/objc.texi: Likewise.
24940 * doc/standards.texi: Likewise.
24941 * doc/trouble.texi: Likewise.
24943 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
24945 * cgraph.h (symtab_node::has_aliases_p): Simplify.
24946 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24947 * tree.c (lookup_binfo_at_offset): Make static.
24948 (get_binfo_at_offset): Do not shadow offset; add explanatory
24951 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
24953 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24954 for all floading point loads and stores except those using a register
24956 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24959 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24961 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24962 (do_estimate_growth_1): Record if any uninlinable edge was seen.
24963 (estimate_growth): Handle uninlinable edges correctly.
24964 (check_callers): New.
24965 (growth_likely_positive): Handle aliases correctly.
24967 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24969 * ipa-chkp.c: Use iterate_direct_aliases.
24970 * symtab.c (resolution_used_from_other_file_p): Move inline.
24971 (symtab_node::create_reference): Fix formating.
24972 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24973 (symtab_node::iterate_reference): Move inline.
24974 (symtab_node::iterate_referring): Move inline.
24975 (symtab_node::iterate_direct_aliases): Move inline.
24976 (symtab_node::used_from_object_file_p_worker): Inline into ...
24977 (symtab_node::used_from_object_file_p): ... this one; move inline.
24978 (symtab_node::call_for_symbol_and_aliases): Move inline;
24979 use iterate_direct_aliases.
24980 (symtab_node::call_for_symbol_and_aliases_1): New method.
24981 (cgraph_node::call_for_symbol_and_aliases): Move inline;
24982 use iterate_direct_aliases.
24983 (cgraph_node::call_for_symbol_and_aliases_1): New method.
24984 (varpool_node::call_for_node_and_aliases): Rename to ...
24985 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24986 use iterate_direct_aliases.
24987 (varpool_node::call_for_symbol_and_aliases_1): New method.
24988 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24989 (ipa_discover_readonly_nonaddressable_var): Update.
24990 * ipa-devirt.c: Fix formating.
24991 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24993 (cgraph_node::call_for_symbol_and_aliases): Move inline.
24994 (cgraph_node::call_for_symbol_and_aliases_1): New function..
24995 * cgraph.h (used_from_object_file_p_worker): Remove.
24996 (resolution_used_from_other_file_p): Move inline.
24997 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24998 (symtab_node::iterate_reference): Move inline.
24999 (symtab_node::iterate_referring): Move inline.
25000 (symtab_node::iterate_direct_aliases): Move inline.
25001 (symtab_node::used_from_object_file_p_worker): Inline into ...
25002 (symtab_node::used_from_object_file_p): Move inline.
25003 * tree-emutls.c (ipa_lower_emutls): Update.
25004 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25005 (varpool_node::call_for_node_and_aliases): Remove.
25007 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25009 PR tree-optimization/62209
25010 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25011 op == range->exp, insert seq and gimplified code after labels
25012 instead of after the phi.
25014 2015-02-13 Jeff Law <law@redhat.com>
25017 Revert my change for tree-optimization/64823.
25019 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25021 PR tree-optimization/65053
25022 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25023 cond, either reset VR on lhs or set it to phi result VR.
25025 2015-02-13 Jeff Law <law@redhat.com>
25027 PR tree-optimization/64823
25028 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25029 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25030 threading through blocks with PHIs, but no statements.
25031 (thread_through_normal_block): Distinguish between blocks where
25032 we did not process all the statements and blocks with no statements.
25034 PR rtl-optimization/47477
25035 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25036 simplifier to narrow arithmetic.
25038 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25041 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25042 polymorphic call info when type is not known to be preserved.
25044 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25047 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25048 (inline_call): Use it.
25050 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25052 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25053 GOMP_DEVICE_NVIDIA_PTX.
25055 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25058 * stmt.c (emit_case_nodes): Use void_type_node instead of
25059 NULL_TREE as LABEL_DECL type.
25061 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25063 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25065 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25066 symbolic references to data to be forced to constant memory on the
25069 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25071 PR tree-optimization/65002
25072 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25074 * tree-sra.c (some_callers_have_no_vuse_p): New.
25075 (ipa_early_sra): Reject functions whose callers
25076 assume function is read only.
25078 2015-02-13 Richard Biener <rguenther@suse.de>
25081 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25082 for LTO produced CUs.
25084 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25086 PR tree-optimization/64705
25087 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25088 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25089 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25090 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25091 expand_simple_operations.
25093 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25094 Richard Henderson <rth@redhat.com>
25097 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25098 before notice_global_symbol.
25099 (varpool_node::finalize_decl): Likewise.
25100 * varasm.c (default_binds_local_p_2): Rename from
25101 default_binds_local_p_1, add weak_dominate argument. Use direct
25102 returns instead of assigning to local variable. Unify varpool and
25103 cgraph paths via symtab_node. Reject undef weak variables before
25104 testing visibility. Reorder tests for simplicity.
25105 (default_binds_local_p): Use default_binds_local_p_2.
25106 (default_binds_local_p_1): Likewise.
25107 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25109 (default_elf_asm_output_external): Emit visibility when specified.
25111 2015-02-13 Alan Modra <amodra@gmail.com>
25113 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25114 code setting up r11 for out-of-line fp restore.
25116 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25118 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25119 (muser-mode): Likewise.
25121 2015-02-13 Alan Modra <amodra@gmail.com>
25123 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25124 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25126 2015-02-12 David Howells <dhowells@redhat.com>
25128 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25130 * tree-ssa-uninit.c (dump_predicates): Likewise.
25131 * opts.c (print_filtered_help): Likewise.
25133 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25135 * dwarf2out.c (output_die): Use "%s", name instead of name to
25136 avoid -Wformat-security warning.
25138 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25139 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25140 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25141 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25143 2015-02-12 Jason Merrill <jason@redhat.com>
25145 * common.opt (-flifetime-dse): New.
25147 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25150 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25152 PR tree-optimization/65014
25153 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25154 use original second operand of arg0 or arg1 instead of
25155 that adjusted by STRIP_NOPS.
25157 2015-02-11 Jeff Law <law@redhat.com>
25160 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25161 that needs to be queued, just queue it for a single cycle.
25163 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25165 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25166 bodies of thunks; comment on why.
25167 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25168 symbols are extern.
25170 2015-02-11 Richard Henderson <rth@redhat.com>
25173 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25174 regions of __builtin_eh_copy_values.
25176 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25178 PR middle-end/65003
25179 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25180 ultimate alias is MEM with SYMBOL_REF satisfying
25181 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25182 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25184 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25186 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25187 "diagnostic-core.h".
25188 (main): Initialize progname, and call diagnostic_initialize.
25190 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25191 instead of __OPENMP_TARGET__.
25193 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25194 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25195 hard-coding PTX_ID.
25197 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25199 * doc/sourcebuild.texi (pie_enabled): Document.
25201 2015-02-11 Martin Liska <mliska@suse.cz>
25204 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25205 a return value for call to a function that is noreturn.
25207 2015-02-11 Richard Biener <rguenther@suse.de>
25210 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25213 2015-02-11 Andrew Pinski <apinski@cavium.com>
25216 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25217 Change the first argument type to size_type_node and add another
25219 (aarch64_simd_expand_builtin): Handle the new argument to
25220 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25221 print an out when the first two arguments are not
25222 nonzero integer constants.
25223 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25224 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25226 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25229 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25230 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25231 (ix86_set_current_function): Rewritten.
25232 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25233 when creating builtin fndecls.
25235 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25238 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25240 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25241 have no comdat group.
25242 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25243 (lto_output_varpool_node): Always output alias info.
25244 (output_refs): Output refs of boundary aliases, too.
25245 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25246 (output_symtab): Output call eges in thunks in boundary.
25247 (get_alias_symbol): Remove.
25248 (input_node, input_varpool_node): Do not special case weakrefs.
25249 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25250 alias and thunks targets in the boundary; do not take removed symbols
25251 from their comdat groups.
25252 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25253 (cgraph_node::global_info): Remove.
25254 (cgraph_node::rtl_info): Look through aliases and thunks.
25255 * cgrpah.h (global_info): Remove.
25256 (non_local_p): Remove.
25258 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25259 Sandra Loosemore <sandra@codesourcery.com>
25261 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25262 to inline asm. List dialects in proper order.
25264 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25265 Sandra Loosemore <sandra@codesourcery.com>
25267 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25269 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25271 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25272 modified) reference to Solaris.
25274 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25276 * doc/extend.texi (Extended Asm): Fix typos.
25278 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25281 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25283 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25286 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25287 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25288 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25289 * config/sh/constraints.md (Ara, Add): New constraints.
25290 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25292 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25293 atomic_mem_operand_0. Don't use force_reg on the memory address.
25294 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25295 Sra constraint. Convert to insn_and_split. Add workaround for
25297 (atomic_compare_and_swap<mode>_hard): Copy to
25298 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25299 Use atomic_mem_operand_0 predicate.
25300 (atomic_compare_and_swap<mode>_soft_gusa,
25301 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25302 AraAdd constraints.
25303 (atomic_compare_and_swap<mode>_soft_tcb,
25304 atomic_compare_and_swap<mode>_soft_imask,
25305 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25306 atomic_mem_operand_0 predicate and SraSdd constraints.
25307 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25309 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25310 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25311 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25312 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25313 force_reg on the memory address.
25314 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25315 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25316 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25317 atomic_mem_operand_1 predicate and Sra constraint.
25318 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25319 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25320 Use atomic_mem_operand_1 predicate.
25321 (atomic_<fetchop_name><mode>_hard): Copy to
25322 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25323 Use atomic_mem_operand_1 predicate.
25324 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25325 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25326 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25327 insn_and_split. Use atomic_mem_operand_1 predicate.
25328 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25329 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25330 Use atomic_mem_operand_1 predicate.
25331 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25332 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25333 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25334 in generated insn with original mem operand before emitting the insn.
25335 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25336 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25337 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25338 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25339 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25340 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25341 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25342 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25343 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25344 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25345 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25346 atomic_not_fetch<mode>_soft_tcb,
25347 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25348 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25349 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25350 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25352 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25354 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25355 and 3 earlyclobber operands.
25357 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25359 * common.opt (fstack-reuse): Mark as optimization.
25361 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25364 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25366 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25368 PR tree-optimization/64326
25369 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25371 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25373 PR gcov-profile/61889
25374 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25376 2015-02-10 Richard Biener <rguenther@suse.de>
25378 PR tree-optimization/64995
25379 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25380 value we use is final.
25381 (visit_reference_op_store): Always valueize op.
25382 (visit_use): Properly valueize vuses.
25384 2015-02-10 Richard Biener <rguenther@suse.de>
25386 PR tree-optimization/64909
25387 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25388 pass a scalar-stmt count estimate to the cost model.
25389 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25391 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25393 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25394 enabled by default together with var-tracking.
25396 2015-02-10 Nick Clifton <nickc@redhat.com>
25398 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25399 included in previous rl78 commit.
25401 2015-02-10 Richard Biener <rguenther@suse.de>
25403 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25404 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25405 return the bitpack.
25407 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25409 PR gcov-profile/61889
25410 * config.in: regenerate.
25411 * configure.in: Likewise.
25412 * configure.ac: Check for ftw.h.
25413 * gcov-tool.c: Check for ftw.h before using nftw.
25415 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25418 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25419 assert when not in lto mode.
25421 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25423 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25424 initialization/assignment of conflict_size.
25426 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25429 * ipa-cp.c (gather_caller_stats): Skip thunks.
25430 (propagate_constants_topo): Skip aliases.
25432 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25435 * config/sh/sh.c (sh_option_override): Don't change
25436 -freorder-blocks-and-partition to -freorder-blocks even when
25437 unwinding is enabled.
25438 (sh_can_follow_jump): Return false if the followee jump is
25439 a crossing jump when -freorder-blocks-and-partition is specified.
25440 * config/sh/sh.md (*jump_compact_crossing): New insn.
25442 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25443 Kaz Kojima <kkojima@gcc.gnu.org>
25446 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25447 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25448 (sh_can_redirect_branch): Rename to ...
25449 (sh_can_follow_jump): ... this. Constify argument types.
25450 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25451 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25452 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25453 * doc/tm.texi: Regenerate.
25455 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25458 * builtins.c (expand_builtin): Call targetm.expand_builtin
25459 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25461 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25464 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25466 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25469 * ipa-icf.c (set_local): New function.
25470 (sem_function::merge): Use it.
25472 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25474 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25475 (add_type_duplicate): Fix comparison of BINFOs.
25477 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25479 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25480 on getting VOID pointer.
25482 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25485 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25488 2015-02-09 Richard Biener <rguenther@suse.de>
25490 * genmatch.c (replace_id): Copy expr_type.
25492 2015-02-09 Richard Biener <rguenther@suse.de>
25494 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25495 (streamer_write_tree_bitfields): Declare.
25496 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25497 properly unpack padding.
25498 (unpack_value_fields): Inline ...
25499 (streamer_read_tree_bitfields): ... here.
25500 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25501 and properly add padding bits.
25502 (streamer_pack_tree_bitfields): Fold into ...
25503 (streamer_write_tree_bitfields): ... this new function,
25504 exposing the bitpack object.
25505 * lto-streamer-out.c (lto_write_tree_1): Call
25506 streamer_write_tree_bitfields.
25508 2015-02-09 Richard Biener <rguenther@suse.de>
25510 PR tree-optimization/54000
25511 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25512 (struct ivopts_data): Add loop_loc member.
25513 (tree_ssa_iv_optimize_loop): Dump loop location.
25514 (create_new_ivs): Likewise, also dump number of IVs generated.
25516 2015-02-09 Martin Liska <mliska@suse.cz>
25518 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25519 just if not yet registered.
25520 (ipa_icf_generate_summary): Register callgraph hooks.
25522 2015-02-08 Andrew Pinski <apinski@cavium.com>
25524 * config/aarch64/aarch64.c (gty_dummy): Delete.
25526 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25529 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25530 (cgraph_node::local_p): Remove thunk related FIXME.
25532 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25535 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25536 is local and optimized.
25537 (ix86_function_sseregparm): Likewise; also use target's SSE math
25538 settings; error out instead of silently generating wrong code
25540 (init_cumulative_args): Look through aliases.
25542 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25545 * ipa-split.c (execute_split_functions): Split if function has aliases.
25547 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25550 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25551 aliases before trying to expand it.
25552 (cgraph_node::expand_thunk): Fix formating.
25554 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25556 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25557 (Using Assembly Language with C): Expand introduction.
25558 (Basic Asm): Copy-edit. Add more information about uses of
25560 (Extended Asm): Copy-edit. Document new escape syntax and
25562 (Global Reg Vars): Copy-edit.
25563 (Local Reg Vars): Likewise.
25565 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25569 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25570 (DBX_CONTIN_CHAR): Define.
25572 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25573 Brian Rzycki <b.rzycki@samsung.com>
25575 PR tree-optimization/64878
25576 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25577 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25578 Stop recursion at loop phi nodes after having visited a loop phi node.
25580 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25582 * toplev.c (process_options): Change flag_ipa_ra before creating
25583 optimization_{default,current}_node.
25586 * cgraphunit.c (cgraph_node::expand_thunk): If
25587 restype is not is_gimple_reg_type nor the thunk_fndecl
25588 returns aggregate_value_p, set restmp to a temporary variable
25589 instead of resdecl.
25591 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25593 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25595 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25598 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25599 add a general secondary reload handler for SDmode, unless we have
25600 both read/write support for SDmode.
25602 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25604 PR middle-end/64937
25605 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25606 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25607 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25608 1 before, push it to abstract_vec.
25609 (dwarf2out_abstract_function): Adjust caller. Don't call
25610 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25611 DECL_ABSTRACT_P flags for all abstract_vec elts.
25613 2015-02-06 Renlin Li <renlin.li@arm.com>
25615 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25617 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25619 2015-02-06 Jeff Law <law@redhat.com>
25622 * config/h8300/h8300.c (push): New argument "in_prologue".
25623 Pass "in_prologue" along to "F".
25624 (h8300_push_pop): Corresponding changes.
25625 (h8300_expand_prologue): Likewise.
25626 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25628 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25630 PR rtl-optimization/64957
25632 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25633 IOR rather than for AND.
25635 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25638 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25639 of shift-add and (add + shift) operations. Rename local variable.
25641 2015-02-05 Jeff Law <law@redhat.com>
25644 * config/h8300/constraints.md (U): Correctly dectect
25645 "eightbit_data" memory addresses.
25646 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25647 handle (const (plus (symbol_ref (x)))) where x is declared
25648 as an 8-bit data memory address.
25649 * config/h8300/h8300.md (call, call_value): Correctly detect
25650 "funcvec" functions.
25653 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25654 24 to 28 bits for the H8/300.
25656 2015-02-06 Alan Modra <amodra@gmail.com>
25659 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25660 (rs6000_call_aix): Use it.
25662 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25664 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25667 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25669 * config/h8300/constraints.md ("U" constraint): Use strict
25670 variant of REG_OK_FOR_BASE_P after reload has started.
25672 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25674 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25675 define to zero if !TARGET_NEON.
25676 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25678 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25679 Trevor Saunders <tsaunders@mozilla.com>
25682 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25684 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25687 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25688 when removing varpool nodes.
25690 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25693 * varpool.c (varpool_node::remove): Fix order of variables.
25695 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25698 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25699 speculation resolution and key updates.
25701 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25703 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25704 about not letting any speculative edges unupdated.
25706 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25709 * gcov-io.c (gcov_var): Export.
25711 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25713 PR middle-end/64922
25714 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
25715 edges that become speculative.
25717 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25719 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
25720 or DW_LANG_Fortran08.
25721 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
25723 (gen_compile_unit_die): Handle "GNU Fortran2003" and
25724 "GNU Fortran2008" language strings.
25725 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
25726 * langhooks.h (lang_GNU_Fortran): New prototype.
25727 * langhooks.c (lang_GNU_Fortran): New function.
25728 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
25731 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25733 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
25734 (RTX_OK_FOR_OLO10_P): Likewise.
25736 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25738 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
25740 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25742 PR middle-end/64922
25743 * gimple.c: Include gimple-ssa.h.
25744 (maybe_remove_unused_call_args): New function.
25745 * gimple.h (maybe_remove_unused_call_args): Declare.
25746 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
25747 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25748 * gimple-fold.c (gimple_fold_call): Likewise.
25750 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
25752 PR rtl-optimization/64905
25753 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
25754 pointer alignment if it isn't needed.
25756 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25758 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25759 cortex-a72.cortex-a53.
25760 * config/aarch64/aarch64-tune.md: Regenerate.
25761 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25763 2015-02-04 Nick Clifton <nickc@redhat.com>
25765 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25768 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25770 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25771 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25772 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25774 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25775 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25776 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25777 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25778 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25779 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25780 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25781 * tree-core.h (enum built_in_function): In between
25782 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25783 for builtins that use DEF_BUILTIN_CHKP macro.
25785 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
25788 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
25789 operands for tcc_comparison exprs. Fix typos.
25792 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
25793 of two XORs that have an intervening AND or IOR.
25796 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
25797 simplification of XOR of AND to not allocate new rtx before
25798 committing to a simplification.
25800 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25802 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
25803 manual swaps in all peepholes.
25805 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25807 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25808 of manual swapping implementation.
25809 (aarch64_expand_vec_perm_const_1): Likewise.
25811 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
25813 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25814 (generic_addrcost_table): Remove NAMED_PARAM.
25815 (cortexa57_addrcost_table): Likewise.
25816 (xgene1_addrcost_table): Likewise.
25817 (generic_regmove_table): Likewise.
25818 (cortexa53_regmove_table): Likewise.
25819 (xgene1_regmove_table): Likewise.
25820 (generic_vector_table): Likewise.
25821 (cortexa57_vector_table): Likewise.
25822 (xgene1_vector_table): Likewise.
25823 (generic_tunings): Likewise.
25824 (cortexa53_tunings): Likewise.
25825 (cortexa57_tunings): Likewise.
25826 (xgene1_tunings): Likewise.
25828 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25830 * config/arm/arm-cores.def: Add cortex-a72 and
25831 cortex-a72.cortex-a53.
25832 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25833 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25834 * config/arm/arm-tune.md: Regenerate.
25835 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25836 "cortex-a72.cortex-a53".
25837 * doc/invoke.texi (ARM Options/-mtune): Likewise.
25839 2015-02-04 Nick Clifton <nickc@redhat.com>
25842 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25844 (nonimmediate_di_operand): Likewise.
25846 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25847 prefixes of known F5 using MSP430 MCUs.
25849 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25851 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25852 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25853 instead of __builtin_sqrt.
25855 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
25857 * varasm.c (do_assemble_alias): Follow transparent alias
25859 (default_assemble_visibility): Follow transparent alias
25860 chain for decl name.
25862 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25864 PR middle-end/62103
25865 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25866 to compute size of referenced value in the constant case.
25868 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25870 PR rtl-optimization/64756
25871 * cse.c (invalidate_dest): New function.
25872 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
25873 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25874 invalidate and do not record it.
25876 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25879 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25880 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25881 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25882 atomic_nand<mode>_soft_tcb): New insns.
25883 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25884 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25885 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25886 Split into atomic_not_fetchsi_hard if operands[0] is unused.
25887 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25888 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25889 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
25890 atomic_not<mode>_hard if operands[0] is unused.
25891 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25892 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25893 if operands[0] is unused.
25894 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
25895 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25896 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25897 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25899 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
25900 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25901 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25902 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25903 if operands[0] is unused.
25904 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
25905 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25906 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
25907 atomic_nand_fetchsi_hard if operands[0] is unused.
25908 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
25909 atomic_nand<mode>_hard if operands[0] is unused.
25910 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
25911 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25912 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
25913 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25914 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
25915 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25916 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25917 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25918 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
25919 atomic_not<mode>_hard if operands[0] is unused.
25920 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25921 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25923 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25924 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25925 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
25926 atomic_nand<mode>_hard if operands[0] is unused.
25927 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25928 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25930 2015-02-03 David Malcolm <dmalcolm@redhat.com>
25933 * Makefile.in (GCC_OBJS): Add gcc-main.o.
25934 * gcc-main.c: New file, containing "main" taken from gcc.c.
25935 * gcc.c (do_self_spec): Free decoded_options.
25936 (class driver): Move declaration to gcc.h.
25937 (main): Move declaration and implementation to new file
25939 (driver_get_configure_time_options): New function.
25940 * gcc.h (class driver): Move this declaration here, from
25942 (driver_get_configure_time_options): New declaration.
25944 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
25946 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25947 cross-module inlining.
25948 * cgraph.h (cgraph_node): Add flag merged.
25949 * ipa-icf.c (sem_function::merge): Maintain it.
25951 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
25953 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25954 instead of OBJECT_P.
25956 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
25959 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25960 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25961 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25962 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25964 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25967 * combine.c (reg_n_sets_max): New variable.
25968 (can_change_dest_mode, reg_nonzero_bits_for_combine,
25969 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25970 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25971 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25972 (rest_of_handle_combine): Initialize reg_n_sets_max.
25974 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
25976 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25977 if some always_inline was inlined, apply changes before inlining
25980 2015-02-02 David Malcolm <dmalcolm@redhat.com>
25983 * config/arm/arm.c (arm_option_override): Set
25984 arm_selected_arch/cpu/tune to NULL on entry.
25986 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
25987 Andrew Pinski <pinskia@gcc.gnu.org>
25988 Jakub Jelinek <jakub@gcc.gnu.org>
25991 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25992 integer typing for small model. Use IN_RANGE.
25994 2015-02-02 Richard Biener <rguenther@suse.de>
25996 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25997 * tree-vrp.c (vrp_valueize_1): Likewise.
25999 2015-02-02 Alan Modra <amodra@gmail.com>
26001 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26002 than mem for toc_restore.
26003 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26004 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26005 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26007 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26010 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26011 explicit default options.
26013 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26016 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26017 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26018 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26020 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26023 * cfgexpand.c (deep_ter_debug_map): New variable.
26024 (avoid_deep_ter_for_debug): New function.
26025 (expand_debug_expr): If TERed SSA_NAME is in
26026 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26027 instead of trying to expand SSA_NAME's def stmt.
26028 (expand_debug_locations): When expanding debug bind
26029 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26030 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26032 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26033 all debug bind stmts. Delete deep_ter_debug_map after
26034 expand_debug_location if non-NULL and clear it.
26036 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26039 * config/sh/sync.md (atomic_fetch_notsi_hard,
26040 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26041 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26042 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26043 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26044 atomic_not_fetch<mode>_soft_imask): New insns.
26046 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26048 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26049 (rank_for_schedule_debug): Split from ...
26050 (rank_for_schedule): ... this.
26051 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26052 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26054 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26056 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26057 * doc/extend.texi (x86 Variable Attributes): Move section to
26058 correct alphabetization after renaming.
26059 (x86 Type Attributes): Likewise.
26060 (Target Builtins): Re-alphabetize menu.
26061 (x86 Built-in Functions): Move section to correct alphabetization
26063 (x86 transactional memory intrinsics): Likewise.
26064 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26065 and x86 Windows Options in table and menu.
26066 (x86 Options): Move section to correct alphabetization after
26068 (x86 Windows Options): Likewise.
26070 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26072 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26073 preferred names of the architecture and its 32- and 64-bit
26075 * doc/invoke.texi: Likewise.
26076 * doc/md.texi: Likewise.
26078 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26081 * config/i386/predicates.md (address_no_seg_operand): Reject
26082 non-CONST_INT_P operands in invalid mode.
26084 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26086 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26087 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26088 * config/i386/predicates.md (address_no_seg_operand): Call
26089 address_operand with VOIDmode.
26090 (vsib_address_operand): Ditto.
26091 (address_mpx_no_base_operand): Ditto.
26092 (address_mpx_no_index_operand): Ditto.
26094 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26097 * lra-constraints.c (original_subreg_reg_mode): New.
26098 (simplify_operand_subreg): Try to simplify subreg of const. Use
26099 original_subreg_reg_mode for it.
26100 (swap_operands): Update original_subreg_reg_mode.
26101 (curr_insn_transform): Set up original_subreg_reg_mode.
26103 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26106 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26108 (process_alt_operands): Use it.
26109 (curr_insn_transform): Check the optional reload pseudo class is
26112 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26114 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26115 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26117 * toplev.h (init_asm_output): Update comment on use of
26118 UNKNOWN_LOCATION with fatal_error.
26119 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26120 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26121 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26122 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26123 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26124 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26125 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26126 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26127 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26128 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26129 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26130 fatal_error changed to pass input_location as first argument.
26132 2015-01-30 Martin Liska <mliska@suse.cz>
26134 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26135 in #pragma GCC diagnostic guards.
26137 2015-01-30 Richard Biener <rguenther@suse.de>
26139 PR tree-optimization/64829
26140 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26141 not add a widening conversion pattern but hand off extra
26142 widenings to callers.
26143 (vect_recog_widen_mult_pattern): Handle extra widening produced
26144 by vect_handle_widen_op_by_const.
26145 (vect_recog_widen_shift_pattern): Likewise.
26146 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26147 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26148 (vect_init_vector_1): Likewise.
26149 (vect_get_vec_def_for_operand): Likewise.
26150 (vect_finish_stmt_generation): Likewise.
26151 (vectorizable_load): Likewise.
26152 (vect_analyze_stmt): Likewise.
26153 (vect_is_simple_use): Likewise.
26155 2015-01-29 Jeff Law <law@redhat.com>
26157 * combine.c (try_combine): Fix typo in comment.
26159 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26162 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26163 (rs6000_stack_info): Add assert.
26164 (rs6000_output_savres_externs): New function, split off from...
26165 (rs6000_output_function_prologue): ... here. Do not call it for
26168 2015-01-29 Jeff Law <law@redhat.com>
26171 * combine.c (try_combine): If I0 is a memory load and I3 a store
26172 to a related address, increase the "goodness" of doing a 4-insn
26173 combination with I0-I3.
26174 (make_field_assignment): Handle SUBREGs in the ior+and case.
26176 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26178 PR tree-optimization/64746
26179 * tree-if-conv.c (mask_exists): New function.
26180 (predicate_mem_writes): Save created mask with given size for further
26182 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26183 (ifcvt_repair_bool_pattern): Collect all statements that are root
26184 of bool pattern and use iterative algorithm to remove multiple uses
26185 of predicates, display number of required iterations.
26187 2015-01-29 Richard Biener <rguenther@suse.de>
26189 PR tree-optimization/64853
26190 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26191 stmt will get simulated again.
26192 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26194 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26196 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26197 return_in_pc. Remove redundant assignments.
26198 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26199 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26201 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26203 * config/i386/i386.c (ix86_mode_after): Make static.
26205 2015-01-29 Richard Biener <rguenther@suse.de>
26207 PR tree-optimization/64844
26208 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26209 dump cost model analysis.
26210 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26211 Do not register adjusted load/store costs here.
26213 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26214 Uros Bizjak <ubizjak@gmail.com>
26216 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26217 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26218 using x86_use_pseudo_pic_reg.
26219 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26220 support for fixed PIC register.
26221 (ix86_use_pseudo_pic_reg): Not static any more.
26223 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26225 PR middle-end/64805
26226 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26227 to avoid error in cgraph node verification.
26229 2015-01-29 Marek Polacek <polacek@redhat.com>
26231 * doc/standards.texi: Reflect that the default for C is gnu11.
26233 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26236 * reorg.c (switch_text_sections_between_p): New function.
26237 (relax_delay_slots): Call it when testing if the jump insn
26238 is removable. Use targetm.can_follow_jump when testing if
26239 the conditional branch can follow an unconditional jump.
26241 2015-01-27 Caroline Tice <cmtice@google.com>
26243 Committing VTV Cywin/Ming patch for Patrick Wollgast
26244 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26245 if -fvtable-verify=preinit/std is used.
26246 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26247 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26248 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26249 if -fvtable-verify=preinit/std is used.
26250 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26251 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26252 if -fvtable-verify=preinit/std is used.
26253 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26254 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26255 * varasm.c (assemble_variable): Add code to properly set the comdat
26256 section and name for the .vtable_map_vars section in case the
26257 target is PE or COFF.
26259 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26262 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26263 make sane BB profile.
26264 (cgraph_node::expand_thunk): Make sane BB profile.
26265 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26266 * cgraph.h (init_lowered_empty_function): Update prototype.
26267 * config/i386/i386.c (make_resolver_func): Update call.
26268 * predict.c (gate): Disable branch prediction pass if
26269 profile is already there.
26271 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26273 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26274 * opth-gen.awk: Likewise.
26275 * common.opt: Mark flag_fp_contract_mode as Optimization.
26277 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26279 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26280 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26282 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26285 * config/sh/predicates.md (atomic_arith_operand,
26286 atomic_logical_operand): Remove.
26287 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26288 (atomic_arith_operand_0): New predicate.
26289 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26290 Use atomic_arith_operand_0 for input values.
26291 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26292 atomic_compare_and_swap<mode>_soft_gusa,
26293 atomic_compare_and_swap<mode>_soft_tcb,
26294 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26295 arith_reg_operand instead of register_operand.
26296 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26297 atomic_arith_operand_0 for newval input.
26298 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26299 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26300 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26301 arith_reg_operand instead of register_operand.
26302 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26303 fetchop_predicate_1, fetchop_constraint_1_llcs,
26304 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26305 fetchop_constraint_1_imask): New code iterator attributes.
26306 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26307 register_operand. Use fetchop_predicate_1.
26308 (atomic_fetch_<fetchop_name>si_hard,
26309 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26310 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26311 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26312 and arith_reg_operand instead of register_operand. Use
26313 fetchop_predicate_1, fetchop_constraint_1_gusa.
26314 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26315 and arith_reg_operand instead of register_operand. Use
26316 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26318 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26319 and arith_reg_operand instead of register_operand. Use
26320 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26322 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26323 register_operand. Use atomic_logical_operand_1.
26324 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26325 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26326 arith_reg_operand instead of register_operand.
26327 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26328 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26329 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26330 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26331 register_operand. Use fetchop_predicate_1.
26332 (atomic_<fetchop_name>_fetchsi_hard,
26333 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26334 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26335 fetchop_constraint_1_llcs.
26336 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26337 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26338 fetchop_constraint_1_gusa.
26339 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26340 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26341 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26342 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26343 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26344 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26345 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26346 register_operand. Use atomic_logical_operand_1.
26347 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26348 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26349 arith_reg_operand instead of register_operand.
26350 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26351 arith_reg_operand instead of register_operand. Use logical_operand
26352 and K08. Adjust asm sequence to allow R0 usage.
26353 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26354 arith_reg_operand instead of register_operand. Use logical_operand
26357 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26360 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26361 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26362 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26363 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26364 all bits in *val_wide.
26366 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26368 * varpool.c (tls_model_names): Fix names.
26369 (varpool_node::dump): Dump tls- prefix for tls models.
26371 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26372 Bernd Schmidt <bernds@codesourcery.com>
26373 Nathan Sidwell <nathan@codesourcery.com>
26375 * config/nvptx/mkoffload.c: New file.
26376 * config/nvptx/t-nvptx: Add build rules for it.
26377 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26378 (extra_programs): Add mkoffload.
26379 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26381 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26383 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26385 PR middle-end/64809
26386 * cfgexpand.c (reorder_operands): Skip debug gimples.
26388 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26390 PR tree-optimization/64277
26391 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26392 range info when possible to refine estimation.
26394 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26396 PR tree-optimization/64718
26397 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26398 be a 16bit unsigned integer when n->range is 16.
26399 (bswap_replace): Convert src to that type if necessary for all bswap
26400 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26401 set in pass_optimize_bswap::execute ().
26403 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26405 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26406 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26407 integer and floating point variants.
26408 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26410 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26412 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26413 for all vector modes.
26415 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26418 * doc/sourcebuild.texi (comdat_group): Document.
26420 2015-01-28 Terry Guo <terry.guo@arm.com>
26422 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26424 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26426 * toplev.c (print_version): Add param "show_global_state", and
26427 only print GGC and plugin information if it is true.
26428 (init_asm_output): Pass in "true" for the new param when calling
26430 (process_options): Likewise.
26431 (toplev::main): Likewise.
26432 * toplev.h (print_version): Add new param to decl.
26434 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26438 * tree.c (lookup_binfo_at_offset): New function.
26439 (get_binfo_at_offset): Use it.
26441 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26444 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26445 on vtable being vtable.
26447 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26449 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26450 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26451 -mhotpatch= option.
26452 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26453 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26454 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26456 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26457 (s390_hotpatch_hw_max): New name.
26458 (s390_hotpatch_trampoline_halfwords): Renamed.
26459 (s390_hotpatch_hw_before_label): New name.
26460 (get_hotpatch_attribute): Removed.
26461 (s390_hotpatch_hw_after_label): New name.
26462 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26464 (s390_attribute_table): Ditto.
26465 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26466 (s390_function_num_hotpatch_hw): New name.
26467 Remove special handling of inline functions and hotpatching.
26468 Return number of nops before and after the function label.
26469 (s390_can_inline_p): Removed.
26470 (s390_asm_output_function_label): Emit a configurable number of nops
26471 after the function label.
26472 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26473 (TARGET_CAN_INLINE_P) Removed.
26474 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26476 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26477 Jiong Wang <jiong.wang@arm.com>
26479 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26481 (cb<optab><mode>1): Likewise.
26482 * config/aarch64/iterators.md (bcond): New define_code_attr.
26484 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26486 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26489 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26491 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26494 2015-01-27 Richard Biener <rguenther@suse.de>
26496 * tree-vrp.c (update_value_range): Intersect the range with
26497 old recorded SSA name range information.
26499 2015-01-27 Nick Clifton <nickc@redhat.com>
26501 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26502 BC, DE and HL registers directly, not via AX.
26503 When decrementing the stack pointer by a large amount, transfer SP
26504 into AX and perform the subtraction there.
26505 (rl78_expand_epilogue): Perform the inverse of the above
26508 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26510 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26512 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26513 Yury Gribov <y.gribov@samsung.com>
26516 * ubsan.c (ubsan_source_location): Refactor code.
26517 (ubsan_type_descriptor): Update type size. Refactor code.
26519 2015-01-27 Richard Biener <rguenther@suse.de>
26521 PR tree-optimization/56273
26522 PR tree-optimization/59124
26523 PR tree-optimization/64277
26524 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26525 from the first VRP pass.
26527 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26530 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26531 handle the first argument in the same loop as all the other arguments.
26533 PR rtl-optimization/61058
26534 * jump.c (cleanup_barriers): Update basic block boundaries
26535 if BLOCK_FOR_INSN is non-NULL on PREV.
26537 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26539 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26540 bounds narrowing, already instrumented calls and calls to
26541 not instrumentable functions.
26543 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26545 PR tree-optimization/64807
26546 * wide-int.cc (wi::divmod_internal): Clear
26547 b_dividend[dividend_blocks_needed].
26549 2015-01-26 DJ Delorie <dj@redhat.com>
26551 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26552 volatile memory references.
26554 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26557 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26559 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26560 shifts if it already fits into K08.
26562 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26565 * ipa-inline.c (inline_small_functions): Print "unknown" even
26566 if edge->call_stmt is non-NULL, but has builtins or unknown
26569 PR middle-end/64421
26570 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26571 with asterisk, skip the first character.
26573 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26576 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26579 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26582 * config/i386/i386.md (*movdi_internal): Also check operand 0
26583 to determine TYPE_LEA operand.
26584 (*movsi_internal): Ditto.
26586 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26588 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26589 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26591 2015-01-26 Renlin Li <renlin.li@arm.com>
26593 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26595 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26598 2015-01-26 Richard Biener <rguenther@suse.de>
26600 PR middle-end/64764
26601 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26602 combining two BIT_AND_EXPR predicates.
26604 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26607 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26609 2015-01-26 Terry Guo <terry.guo@arm.com>
26611 * config/arm/arm.c (arm_file_start): Update the assignment of
26612 Tag_ABI_HardFP_use.
26614 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26616 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26618 config/arm/arm.md: Include the new Cortex-A57 model.
26619 (generic_sched): Don't use generic_sched when tuning for
26622 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26623 Uros Bizjak <ubizjak@gmail.com>
26625 * config/i386/i386.c (get_builtin_code_for_version): Add
26626 support for BMI and BMI2 multiversion functions.
26628 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26630 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26631 (extract_bit_field): Likewise.
26632 (extract_low_bits): Likewise.
26633 (expand_mult): Likewise.
26634 (expand_mult_highpart_adjust): Likewise.
26636 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26638 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26639 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26640 * config/i386/i386.c (processor_model): Add
26641 M_INTEL_COREI7_BROADWELL.
26642 (arch_names_table): Add "broadwell".
26644 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26653 * config/sh/sh-protos.h
26654 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26655 sh_extending_set_of_reg::use_as_unextended_reg,
26656 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26657 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26658 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26659 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26660 (sh_treg_insns): New class.
26661 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26662 (scope_counter): New class.
26663 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26664 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26665 sh_extending_set_of_reg::can_use_as_unextended_reg,
26666 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26667 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26668 sh_split_treg_set_expr): New functions.
26669 (addsubcosts): Handle treg_set_expr.
26670 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26671 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26672 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26673 (sh_insn_operands_modified_between_p): Make non-static.
26674 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26675 simple_mem_operand in addition to displacement_mem_operand.
26676 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26677 (treg_set_expr, treg_set_expr_not_const01,
26678 arith_reg_or_treg_set_expr): New predicates.
26679 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26680 arith_or_int_operand instead of logical_operand. Convert to
26681 insn_and_split. Try to optimize constant operand in splitter.
26682 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26683 (*tstqi_t_zero): Delete.
26684 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26685 (tstsi_t_and_not): Delete.
26686 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26687 Convert to insn_and_split.
26688 (unnamed split, tstsi_t_zero_extract_xor,
26689 tstsi_t_zero_extract_subreg_xor_little,
26690 tstsi_t_zero_extract_subreg_xor_big): Delete.
26691 (*tstsi_t_shift_mask): New insn_and_split.
26692 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26693 to recombine with surrounding insns when splitting.
26694 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26695 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26696 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26697 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26698 (*cbranch_div0s: Delete.
26699 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26700 Try to recombine with surrounding insns when splitting. Add operand
26702 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26703 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26704 *addc_r_r_msb, *addc_2r_msb): Delete.
26705 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
26707 (*addc_negreg_t): New insn_and_split.
26708 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26709 Try to recombine with surrounding insns when splitting.
26710 Add operand order variants.
26711 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
26712 insn_and_split patterns.
26713 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
26714 surrounding insns when splitting.
26715 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
26716 (*rotcl): Likewise. Add zero_extract variant.
26717 (*ashrsi2_31): New insn_and_split.
26718 (*negc): Convert to insn_and_split. Use treg_set_expr.
26719 (*zero_extend<mode>si2_disp_mem): Update comment.
26720 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
26722 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
26723 with surrounding insns when splitting.
26724 (any_treg_expr_to_reg): New insn_and_split.
26725 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
26726 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
26727 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
26728 *zero_extract_2): New single bit zero extract patterns.
26729 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
26730 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
26731 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
26732 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
26734 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
26735 register_operand for set source.
26737 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
26739 * i386.opt (prefetch_sse): New targetsave.
26740 * i386.c (ix86_function_specific_save): Save prefetch_sse.
26741 (ix86_function_specific_restore): Restore prefetch_sse and initialize
26742 ix86_cost/ix86_tune_cost.
26744 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26746 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
26747 Support the JIT by using 0 as the language type.
26749 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
26752 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
26753 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
26754 (mark_regno_live, process_bb_lives): Pass new parameter value to
26755 make_hard_regno_born.
26757 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26759 PR rtl-optimization/63637
26760 PR rtl-optimization/60663
26761 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26762 if elt->cost is MAX_COST for ASM_OPERANDS.
26763 (find_sets_in_insn): Fix up comment typo.
26764 (cse_insn): Don't set src_volatile for all non-volatile
26765 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26766 or with "memory" clobber. Set elt->cost to MAX_COST
26767 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
26768 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26770 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26772 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26775 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26777 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26778 libgcc/config/i386/elf-lib.h.
26780 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26783 * gcc.c (print_configuration): Don't print a blank line at the end
26785 (run_attempt): ... but here unstead.
26787 PR middle-end/64734
26788 * omp-low.c (scan_sharing_clauses): Don't ignore
26789 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
26790 on target data/update constructs.
26792 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
26795 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
26796 (DEBUG_RELOAD): Removed define.
26797 (m32c_limit_reload_class): Enable traces with if DEBUG0.
26798 (m32c_function_arg): Added a type cast.
26799 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
26800 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
26801 * config/m32c/bitops.md (andqi3_16): Likewise.
26802 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
26803 (push_a01_l): Likewise.
26805 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26808 * main.c (main): Construct toplev instances with init_signals=true.
26809 * toplev.c (general_init): Add param "init_signals", and use it to
26810 conditionalize the calls to signal and host_hooks.extra_signals.
26811 (toplev::toplev): Add param "init_signals".
26812 (toplev::main): When invoking general_init, pass m_init_signals
26813 to control whether signal-handlers are installed.
26814 * toplev.h (toplev::toplev): Add param "init_signals".
26815 (toplev::m_init_signals): New field.
26817 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26820 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26821 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26822 latter may be affected by the former (e.g. on i686).
26824 2015-01-23 Martin Liska <mliska@suse.cz>
26826 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26827 false positive during profiledbootstrap.
26829 2015-01-23 Tom de Vries <tom@codesourcery.com>
26832 * lto-opts.c (lto_write_options): Output non-explicit conservative
26834 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26835 (append_compiler_options): Pass -fopenacc through.
26837 2015-01-23 Tom de Vries <tom@codesourcery.com>
26840 * lto-opts.c (lto_write_options): Output non-explicit conservative
26842 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26843 (append_compiler_options): Pass -fopenmp through.
26845 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26848 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26851 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26852 * diagnostic.def (DK_ICE_NOBT): New kind.
26853 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26854 like DK_ICE, but never print backtrace.
26855 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26856 (internal_error_no_backtrace): New function.
26857 * gcc.c (execute): Use internal_error_no_backtrace instead of
26860 2015-01-22 Jeff Law <law@redhat.com>
26863 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26864 improve code density for small immediate to memory case.
26865 (insv): Better handle bitfield assignments when the field is
26866 being set to all ones.
26867 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26870 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26871 Jakub Jelinek <jakub@redhat.com>
26873 PR middle-end/64729
26874 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26875 for !TARGET_LIBC_PROVIDES_SSP version and
26876 -fstack-protector-{all,strong,explicit} otherwise.
26877 * config/freebsd.h (LINK_SSP_SPEC): Handle
26878 -fstack-protector-{strong,explicit}.
26880 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
26881 H.J. Lu <hongjiu.lu@intel.com>
26884 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26887 2015-01-22 Wei Mi <wmi@google.com>
26889 PR rtl-optimization/64557
26890 * dse.c (record_store): Call get_addr for mem_addr.
26891 (check_mem_read_rtx): Likewise.
26893 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
26895 * fold-const.c (const_binop): Add early return for non-tcc_binary.
26897 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
26899 * toplev.c (init_local_tick): Process the failure when read
26900 fails for random_seed.
26902 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26903 'pretty_name' to avoid memory overflow.
26905 2015-01-22 Richard Biener <rguenther@suse.de>
26907 PR middle-end/64728
26908 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26909 abnormal coalescing on undefined SSA names.
26911 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
26915 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26917 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26919 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
26921 PR middle-end/63325
26922 * fold-const.c (fold_checksum_tree): Don't include value of
26923 expr->decl_with_vis.symtab_node in the checksum.
26925 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26927 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26929 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
26932 * gcc.c (insert_comments): New function.
26933 (try_generate_repro): Call it.
26934 (append_text): Removed.
26936 2015-01-22 Richard Biener <rguenther@suse.de>
26938 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26939 with IL incompatible options. Properly honor user optimize
26942 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
26944 PR rtl-optimization/64682
26945 * combine.c (distribute_notes): When moving a death note for
26946 a register that is set in the new I2, make sure to put it
26947 before that new I2.
26949 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
26951 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26952 not TARGET_DEFAULT.
26954 2015-01-21 Jakub Jelinek <jakub@redhat.com>
26957 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26958 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26959 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26962 * doc/invoke.texi (-fsanitize=vptr): Document.
26964 PR rtl-optimization/62078
26965 * dse.c: Include cfgcleanup.h.
26966 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26967 anything call purge_all_dead_edges and cleanup_cfg at the end
26970 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
26972 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26975 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26977 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26980 2015-01-21 David Sherwood <david.sherwood@arm.com>
26981 Tejas Belagod <Tejas.Belagod@arm.com>
26983 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26984 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26985 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26988 2015-01-21 David Sherwood <david.sherwood@arm.com>
26989 Tejas Belagod <Tejas.Belagod@arm.com>
26991 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26992 (aarch64_reverse_mask): New decls.
26993 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26994 (insn_count): New mode_attr.
26995 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26996 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26997 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26998 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26999 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27000 (aarch64_simd_st4): New patterns.
27001 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27002 (aarch64_reverse_mask): New functions.
27004 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27006 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27008 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27009 addressing modes for BE.
27010 (aarch64_print_operand): Add 'R' specifier.
27011 (aarch64_simd_disambiguate_copy): Delete.
27012 (aarch64_simd_emit_reg_reg_move): New function.
27013 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27014 in define_splits for structural moves.
27015 (mov<mode>): Use less restrictive predicates.
27016 (*aarch64_mov<mode>): Simplify and only allow for LE.
27017 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27019 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27021 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27023 2015-01-21 Richard Henderson <rth@redhat.com>
27026 * ccmp.c (used_in_cond_stmt_p): Remove.
27027 (expand_ccmp_expr): Don't use it.
27029 2015-01-21 Nick Clifton <nickc@redhat.com>
27031 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27034 2015-01-21 Richard Biener <rguenther@suse.de>
27036 PR middle-end/64313
27037 * tree-core.h (builtin_info, builtin_info_type): Turn from
27038 an object with two arrays into an array of an object with
27039 decl and two flags, implicit_p and declared_p.
27040 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27041 set_builtin_decl, set_builtin_decl_implicit_p,
27042 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27043 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27044 * builtins.c (builtin_info): Adjust.
27045 * gimplify.c (gimplify_addr_expr): References to builtins
27046 that have been declared by the user makes them eligible for
27047 use by the compiler. Call set_builtin_decl_implicit_p on them.
27049 2015-01-20 Jeff Law <law@redhat.com>
27052 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27053 allow pc-relative addresses in operand predicates or constraints.
27055 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27057 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27058 neon on aarch32 processors for stringops.
27060 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27063 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27065 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27068 * ipa-inline.c: Include lto-streamer.h
27069 (report_inline_failed_reason): Output source file differences and
27070 flags on optimization/target node mismatch.
27071 (can_inline_edge_p): Consider caller to be the outer inline function;
27072 be less restrictive about matching opimize and optimize_size attributes.
27073 (inline_account_function_p): Break out from ...
27074 (inline_small_functions): ... here.
27075 * ipa-inline-transform.c (clone_inlined_nodes): Use
27076 inline_account_function_p.
27077 (inline_call): Use optimize attribution; use inline_account_function_p.
27078 (inline_transform): Use opt_for_fn.
27079 * ipa-inline.h (inline_account_function_p): Declare.
27081 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27084 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27085 mode if bitsize <= 0.
27086 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27087 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27088 sizes and positions.
27090 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27092 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27093 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27095 (TARGET_ASM_FILE_END): Define.
27097 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27099 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27100 (struct tune_params): Use the enum.
27101 * arm.c (arm_*_tune): Update.
27102 (arm_option_override): Update.
27104 2015-01-20 Richard Biener <rguenther@suse.de>
27107 * ipa-reference.c (add_static_var): Inline ...
27108 (analyze_function): ... here after splitting out from ...
27109 (is_proper_for_analysis): ... this.
27111 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27114 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27115 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27116 replace the conditional with it's true branch.
27117 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27118 (arm_lra_p): Remove.
27120 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27122 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27124 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27126 * config/tilegx/mul-tables.c: Move symtab.h include after
27127 coretypes.h include.
27128 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27129 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27130 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27131 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27132 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27134 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27138 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27140 PR rtl-optimization/64081
27141 * loop-iv.c (def_pred_latch_p): New function.
27142 (latch_dominating_def): Allow specific cases with non-single
27144 (iv_get_reaching_def): Likewise.
27145 (check_complex_exit_p): New function.
27146 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27147 with exits not executing on any iteration.
27149 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27152 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27153 to set branch cost.
27155 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27158 * i386.c (gate): Check flag_expensive_optimizations and
27160 (ix86_option_override_internal): Drop optimize_size condition
27161 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27162 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27163 MASK_PREFER_AVX128.
27164 (ix86_avx256_split_vector_move_misalign,
27165 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27166 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27167 optimize_insn_for_speed_p check.
27169 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27171 * config/mips/mips.h (FP_ASM_SPEC): New define.
27172 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27175 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27178 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27179 nullptr for insn when reaching the first insn.
27180 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27181 (sh_insn_operands_modified_between_p): Add nullptr check.
27182 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27183 sign extending mem load if the insn contains any UNSPEC or
27186 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27188 * params.def (inline-unit-growth): Drop to 15%.
27189 * invoke.texi (inline-unit-growth): Document change.
27191 2015-01-19 Martin Liska <mliska@suse.cz>
27194 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27195 function for second argument of OBJ_TYPE_REF.
27197 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27200 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27201 whether function is an alias.
27203 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27205 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27208 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27210 PR rtl-optimization/64671
27211 * lra-remat.c (operand_to_remat): Don't consider jump and call
27214 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27217 * config/rs6000/default64.h: Include rs6000-cpus.def.
27218 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27219 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27220 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27222 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27224 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27225 pseudo-op to specify assembler dialect.
27227 2015-01-19 Martin Liska <mliska@suse.cz>
27230 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27231 Handle safe potentially removed nodes during filtering.
27233 2015-01-19 Martin Liska <mliska@suse.cz>
27235 * doc/extend.texi (no_icf): Add new attribute description.
27236 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27237 where the pass attempts to merge a function with no_icf attribute.
27239 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27242 * doc/md.texi (ARM Options): Document register constraints.
27244 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27245 Andrew Pinski <apinski@cavium.com>
27248 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27249 (ashl<mode>3): Don't expand if operands[2] is not constant.
27251 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27254 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27255 Match xor-and-xor RTL pattern.
27257 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27259 PR rtl-optimization/64081
27260 * loop-iv.c (def_pred_latch_p): New function.
27261 (latch_dominating_def): Allow specific cases with non-single
27263 (iv_get_reaching_def): Likewise.
27264 (check_complex_exit_p): New function.
27265 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27266 with exits not executing on any iteration.
27268 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27270 * common.opt (fgraphite): Fix a typo.
27272 2015-01-19 Felix Yang <felix.yang@huawei.com>
27274 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27276 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27277 uminp, smax_nanp, smin_nanp): New builtins.
27278 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27279 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27280 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27281 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27282 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27283 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27284 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27285 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27286 vpminnms_f32): Rewrite using builtin functions.
27288 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27291 * omp-low.c (offload_symbol_decl): Remove variable.
27292 (get_offload_symbol_decl): Remove function.
27293 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27294 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27295 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27296 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27297 BUILT_IN_GOACC_UPDATE don't pass it at all.
27299 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27301 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27304 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27306 * ipa-chkp.c (chkp_produce_thunks): Add early param
27307 to split thunks production into two passes. Keep
27308 'always_inline' function bodies after the first pass.
27309 (pass_data_ipa_chkp_early_produce_thunks): New.
27310 (pass_ipa_chkp_early_produce_thunks): New.
27311 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27312 chkp_produce_thunks signature.
27313 (make_pass_ipa_chkp_early_produce_thunks): New.
27314 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27315 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27316 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27318 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27320 * cgraph.c (cgraph_node::dump): Dump profile flags.
27322 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27325 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27326 reg appear first in the parallel.
27328 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27330 * ipa-reference.c (set_reference_optimization_summary,
27331 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27333 (ignore_module_statics): New static var.
27334 (propagate_bits): If ipa-reference is disabled, do not look into local
27336 (analyze_function): Disable analysis when ipa_reference is disabled.
27337 (generate_summary): Do not dump when reference is disabled;
27338 collect vars accessed from functions with ipa-reference disabled.
27339 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27341 (gate): Enable for LTO.
27342 (ignore_edge_p): New function.
27343 (propagate): Skip functions w/o ipa-reference analysis.
27344 * optc-save-gen.awk: Handle optimize_debug correctly.
27345 * opth-gen.awk: Likewise.
27346 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27347 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27348 fira-share-save-slots, fira-share-spill-slots,
27349 fmodulo-sched-allow-regmoves, fpartial-inlining,
27350 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27351 ftracer, ftree-parallelize-loops, fassociative-math,
27352 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27354 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27355 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27357 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27360 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27363 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27365 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27367 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27369 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27370 Remove duplicate option listings.
27372 2015-01-18 Felix Yang <felix.yang@huawei.com>
27374 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27375 (autofdo_source_profile::get_callsite_total_count,
27376 function_instance::get_function_instance_by_decl,
27377 string_table::get_index, string_table::get_index_by_decl,
27378 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27379 Fix comment typos. Reformatting and minor code rearrangement.
27381 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27383 * config/rs6000/rs6000.md (probe_stack): Delete.
27384 (probe_stack_address): New.
27386 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27388 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27389 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27391 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27393 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27394 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27395 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27397 (rs6000_libcall_value): Use the new function.
27399 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27401 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27403 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27405 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27406 implement a more precise life analysis for it during backward scan.
27408 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27410 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27412 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27414 PR rtl-optimization/52773
27415 * calls.c (emit_library_call_value): When pushing arguments use
27416 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27417 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27418 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27420 2015-01-17 Jeff Law <law@redhat.com>
27422 PR rtl-optimization/32790
27423 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27424 not ZERO_EXTEND in SET_DESTs.
27426 2015-01-17 Alan Modra <amodra@gmail.com>
27428 * cprop.c (do_local_cprop): Revert last change.
27430 2015-01-16 DJ Delorie <dj@redhat.com>
27431 Nick Clifton <nickc@redhat.com>
27433 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27434 (addhi3_real): Likewise. Fix [HL+0] syntax.
27435 (subqi3_real): Likewise.
27436 (subhi3_real): Likewise.
27437 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27438 (cbranchhi4_real): Likewise.
27439 (cbranchhi4_real_inverted): Likewise.
27440 (cbranchsi4_real_lt): Likewise.
27441 (cbranchsi4_real_ge): Likewise.
27442 (cbranchsi4_real_ge): Likewise.
27443 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27444 (sub<mode>3_virt): Likewise.
27445 (cbranchqi4_virt): Likewise.
27446 (cbranchhi4_virt): Likewise.
27447 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27448 always use '[reg+imm]' even when imm is zero.
27449 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27450 (rl78_general_operand): New.
27451 (rl78_nonimmediate_operand): New.
27452 (rl78_nonfar_operand): Use them.
27453 (rl78_nonfar_nonimm_operand): Likewise.
27454 (rl78_stack_based_mem): Fix.
27455 * config/rl78/constraints.md (Ibqi): New.
27460 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27461 (iorqi3): Likewise.
27462 (xorqi3): Likewise.
27463 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27465 * config/rl78/constrains (Qs8): New constraint.
27466 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27467 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27468 * config/rl78/rl78-real.md (update_Z): New attribute.
27469 Update patterns to set it.
27470 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27471 shorter compare and branch sequence can be used.
27472 (cbranchhi4_real): Likewise.
27473 (cbranchhi4_real_inverted): Likewise.
27475 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27476 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27478 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27479 (rl78_option_override): Allow -mes0 only if C.
27480 (characterize_address): Support subregs of symbol_refs.
27481 (rl78_addr_space_address_mode): Move. Add __near.
27482 (rl78_far_p): Likewise.
27483 (rl78_addr_space_pointer_mode): Likewise.
27484 (rl78_as_legitimate_address): Likewise.
27485 (rl78_addr_space_subset_p): Likewise.
27486 (rl78_addr_space_convert): Likewise.
27487 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27488 symbols with -mes0.
27489 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27491 (rl78_alloc_physical_registers_op1): Change logic to prefer
27492 symbol[BC] addressing.
27493 (frodata_section): New.
27494 (rl78_asm_init_sections): Initialize it.
27495 (rl78_select_section): Put __far readonly symbols in .frodata.
27496 (rl78_make_type_far): New.
27497 (rl78_insert_attributes): Force all readonly symbols to be
27499 (rl78_asm_out_integer): New.
27500 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27501 * config/rl78/rl78.opt (-mes0): New.
27503 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27504 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27505 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27506 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27507 (rl78_saddr_p): New.
27508 (rl78_output_aligned_common): New.
27509 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27510 (rl78_handle_saddr_attribute): New.
27511 (rl78_handle_naked_attribute): New.
27512 (rl78_attribute_table): Add saddr.
27513 (rl78_print_operand_1): Don't print '!' on saddr operands.
27514 (rl78_print_operand_1): Strip encodings.
27516 (rl78_strip_name_encoding): New.
27517 (rl78_attrlist_to_encoding): New.
27518 (rl78_encode_section_info): New.
27519 (rl78_asm_init_sections): New.
27520 (rl78_select_section): New.
27521 (rl78_output_labelref): New.
27522 (rl78_output_aligned_common): New.
27523 (rl78_asm_out_integer): New.
27524 (rl78_asm_ctor_dtor): New.
27525 (rl78_asm_constructor): New.
27526 (rl78_asm_destructor): New.
27528 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27529 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27530 (transcode_memory_rtx): Update.
27531 (rl78_expand_epilogue): Use A_REG instead of 0.
27533 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27535 * config/arm/arm-protos.h (struct tune_params): New field
27536 sched_autopref_queue_depth.
27537 * config/arm/arm.c (sched-int.h): Include header.
27538 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27539 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27540 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27541 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27542 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27543 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27544 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27545 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27546 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27547 * config/arm/t-arm (arm.o): Update.
27548 * haifa-sched.c (update_insn_after_change): Update.
27549 (rank_for_schedule): Use auto-prefetcher model, if requested.
27550 (autopref_multipass_init): New static function.
27551 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27552 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27553 variable for debug dumps.
27554 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27555 (autopref_multipass_dfa_lookahead_guard): New global function that
27556 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27557 (init_h_i_d): Update.
27558 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27559 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27560 (autopref_multipass_data_): Structure for auto-prefetcher data.
27561 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27562 (struct _haifa_insn_data:autopref_multipass_data): New field.
27563 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27564 (autopref_multipass_dfa_lookahead_guard): Declare.
27566 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27568 * rtlanal.c (get_base_term): Handle SCRATCH.
27570 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27572 * config/aarch64/aarch64.c
27573 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27574 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27576 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27577 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27579 2015-01-17 Alan Modra <amodra@gmail.com>
27581 * cprop.c (do_local_cprop): Disallow replacement of fixed
27584 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27587 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27590 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27592 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27593 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27595 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27597 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27598 * config/arm/thumb1.md: ... Here.
27600 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27602 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27603 TImode for TARGET_32BIT.
27605 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27607 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27608 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27610 (rs6000_abi_word_mode): New function.
27612 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27614 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27615 instead of UNITS_PER_WORD to describe the size of stack slots.
27617 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27619 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27620 as rs6000_promote_function_mode. Move comment to there.
27621 (rs6000_promote_function_mode): New function.
27623 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27625 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27626 -mpowerpc64 is active.
27628 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27630 PR middle-end/64353
27631 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27634 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27636 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27637 introduced in revision 219724.
27639 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27640 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27643 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27644 destination is not a GP reg.
27645 (*movdi_aarch64): Likewise.
27647 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27650 * config/rs6000/default64.h: Revert ISA change.
27652 2015-01-16 Richard Biener <rguenther@suse.de>
27654 PR middle-end/64614
27655 * tree-ssa-uninit.c: Include tree-cfg.h.
27656 (MAX_SWITCH_CASES): New define.
27657 (convert_control_dep_chain_into_preds): Handle switch statements.
27658 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27659 (normalize_one_pred_1): Do not split bit-manipulations.
27662 2015-01-16 Richard Biener <rguenther@suse.de>
27664 PR tree-optimization/64568
27665 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27666 complex load rewriting for TARGET_MEM_REFs.
27668 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27670 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27672 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27675 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27677 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27678 (aarch64_lra_p): Remove.
27680 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27683 * ipa-chkp.h (chkp_instrumentable_p): New.
27684 * ipa-chkp.c: Include tree-inline.h.
27685 (chkp_instrumentable_p): New.
27686 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27687 Fix processing of not instrumentable functions.
27688 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27689 not instrumentable functions.
27690 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27691 chkp_instrumentable_p.
27692 * tree-inline.h (copy_forbidden): New.
27693 * tree-inline.c (copy_forbidden): Not static anymore.
27695 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27697 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27700 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27702 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27703 type OP_OUT to OP_INOUT.
27705 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27707 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27708 (high x) y) to y if x and y have the same base.
27710 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27712 * config/arm/cortex-a57.md: New.
27713 * config/aarch64/aarch64.md: Include it.
27714 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
27715 * config/aarch64/aarch64-tune.md: Regenerate.
27717 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
27720 * ccmp.c (expand_ccmp_next): New function.
27721 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
27722 and compare insn sequence.
27723 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
27724 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
27725 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
27726 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
27727 (*ccmp_ior): Changed to ccmp_ior<mode>.
27728 (cmp<mode>): New pattern.
27729 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
27731 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
27733 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
27735 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
27736 _mm256_bsrli_epi128): New.
27737 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
27739 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27741 * expmed.c (store_bit_field_using_insv): Improve warning message.
27742 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
27744 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27746 PR rtl-optimization/64011
27747 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
27748 there is partial overflow.
27750 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27752 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
27754 (nds32_expand_epilogue_v3pop): Likewise.
27755 * config/nds32/nds32.md (sibcall): Define this for sibling call
27757 (sibcall_register): Likewise.
27758 (sibcall_immediate): Likewise.
27759 (sibcall_value): Likewise.
27760 (sibcall_value_register): Likewise.
27761 (sibcall_value_immediate): Likewise.
27762 (sibcall_epilogue): Likewise.
27763 (epilogue): Pass false to indicate this is not a sibcall epilogue.
27764 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27765 (nds32_expand_epilogue_v3pop): Likewise.
27767 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27769 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27770 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27771 (return_internal): New.
27772 (return): Define this named pattern.
27773 (simple_return): Define this named pattern.
27774 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27775 pattern instead of unspec_volatile_func_return.
27776 (nds32_expand_epilogue_v3pop): Likewise.
27777 (nds32_can_use_return_insn): New function.
27779 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27781 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27782 * config/nds32/nds32.md (pop25return): New.
27783 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27784 pop25return pattern.
27786 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27788 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
27789 -mforbid-fp-as-gp, and -mex9 options.
27791 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27793 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
27794 remove -mgp-direct option.
27796 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27798 * doc/invoke.texi (--param early-inlining-insns): Update default value.
27799 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
27801 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27803 * ipa-inline.c (inline_small_functions): Work around hints
27806 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
27809 * doc/invoke.texi (Option Summary): Document new Nios II
27811 (Nios II Options): Likewise.
27812 * config/nios2/nios2.opt: Add -mgpopt= option support.
27813 Modify existing -mgpopt and -mno-gpopt options to be aliases.
27814 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27815 * config/nios2/nios2.c (nios2_option_override): Adjust
27816 -mgpopt defaulting.
27817 (nios2_in_small_data_p): Return true for explicit small data
27818 sections even with -G0.
27819 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27822 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27825 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27827 (inline_call): Fix removal of aliases.
27829 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27831 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27832 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27833 * opts.c (common_handle_option): Add -fsanitize=vptr.
27834 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27835 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27836 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27837 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27838 (ubsan_expand_vptr_ifn): New prototype.
27839 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27840 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27841 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27842 expand_LOOP_VECTORIZED): Make argument nameless, remove
27844 (expand_UBSAN_VPTR): New function.
27845 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27847 (UBSAN_VPTR): New internal function.
27848 * sanopt.c (tree_map_traits): Renamed to ...
27849 (sanopt_tree_map_traits): ... this.
27850 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27851 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27852 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
27853 (maybe_optimize_ubsan_vptr_ifn): New function.
27854 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27855 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
27857 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27858 internal calls like pure functions for aliasing, even when they
27859 have other side-effects that prevent making them ECF_PURE.
27860 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27861 (ubsan_expand_vptr_ifn): New function.
27863 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
27865 PR rtl-optimization/64110
27866 * stmt.c (parse_output_constraint): Process '^' and '$'.
27867 (parse_input_constraint): Ditto.
27868 * lra-constraints.c (process_alt_operands): Process the new
27870 * ira-costs.c (record_reg_classes): Process the new constraint
27872 * genoutput.c (indep_constraints): Add '^' and '$'.
27873 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27874 * doc/md.texi: Add description of the new constraints.
27876 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
27877 Bernd Schmidt <bernds@codesourcery.com>
27878 Cesar Philippidis <cesar@codesourcery.com>
27879 James Norris <jnorris@codesourcery.com>
27880 Tom de Vries <tom@codesourcery.com>
27881 Ilmir Usmanov <i.usmanov@samsung.com>
27882 Dmitry Bocharnikov <dmitry.b@samsung.com>
27883 Evgeny Gavrin <e.gavrin@samsung.com>
27884 Jakub Jelinek <jakub@redhat.com>
27886 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27887 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27888 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27889 New function types.
27890 * builtins.c: Include "gomp-constants.h".
27891 (expand_builtin_acc_on_device): New function.
27892 (expand_builtin, is_inexpensive_builtin): Handle
27893 BUILT_IN_ACC_ON_DEVICE.
27894 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27896 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27898 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27899 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27900 i386/intelmic-offload.h.
27901 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27902 to libgomp and its dependencies.
27903 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27904 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27905 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27906 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27907 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27908 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27909 * doc/generic.texi: Update for OpenACC changes.
27910 * doc/gimple.texi: Likewise.
27911 * doc/invoke.texi: Likewise.
27912 * doc/sourcebuild.texi: Likewise.
27913 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27914 GF_OMP_FOR_KIND_OACC_LOOP.
27915 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27916 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27917 GF_OMP_TARGET_KIND_OACC_UPDATE,
27918 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27920 * gimple.c: Update comments for OpenACC changes.
27921 * gimple.def: Likewise.
27922 * gimple.h: Likewise.
27923 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27924 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27925 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27926 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27927 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27929 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27930 * gimplify.c: Include "gomp-constants.h".
27931 Update comments for OpenACC changes.
27932 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27933 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27934 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27935 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27936 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27937 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27938 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27939 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27940 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27942 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27943 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27944 OMP_CLAUSE_SET_MAP_KIND.
27945 (gimplify_oacc_cache): New function.
27946 (gimplify_omp_for): Handle OACC_LOOP.
27947 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27949 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27950 OACC_EXIT_DATA, OACC_UPDATE.
27951 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27952 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27953 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27954 (gimplify_body): Consider flag_openacc next to flag_openmp.
27955 * lto-streamer-out.c: Include "gomp-constants.h".
27956 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27957 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27958 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27959 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27960 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27961 (BUILT_IN_ACC_ON_DEVICE): New builtins.
27962 * omp-low.c: Include "gomp-constants.h".
27963 Update comments for OpenACC changes.
27964 (struct omp_context): Add reduction_map, gwv_below, gwv_this
27966 (extract_omp_for_data, use_pointer_for_field, install_var_field)
27967 (new_omp_context, delete_omp_context, scan_sharing_clauses)
27968 (create_omp_child_function, scan_omp_for, scan_omp_target)
27969 (check_omp_nesting_restrictions, lower_reduction_clauses)
27970 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27971 Update for OpenACC changes.
27972 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27973 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27974 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27975 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27976 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27977 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
27979 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27980 Handle GF_OMP_FOR_KIND_OACC_LOOP.
27981 (expand_omp_target, lower_omp_target): Handle
27982 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27983 GF_OMP_TARGET_KIND_OACC_UPDATE,
27984 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27985 GF_OMP_TARGET_KIND_OACC_DATA.
27986 (pass_expand_omp::execute, execute_lower_omp)
27987 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27989 (offload_symbol_decl): New variable.
27990 (oacc_get_reduction_array_id, oacc_max_threads)
27991 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27992 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27993 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27994 (oacc_gimple_assign, oacc_initialize_reduction_data)
27995 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27997 (is_targetreg_ctx): Remove function.
27998 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27999 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28000 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28001 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28002 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28003 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28004 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28005 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28006 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28007 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28008 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28009 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28010 * tree-core.h: Update comments for OpenACC changes.
28011 (enum omp_clause_map_kind): Remove.
28012 (struct tree_omp_clause): Change type of map_kind member from enum
28013 omp_clause_map_kind to unsigned char.
28014 * tree-inline.c: Update comments for OpenACC changes.
28015 * tree-nested.c: Likewise. Include "gomp-constants.h".
28016 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28017 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28018 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28019 OMP_CLAUSE_SET_MAP_KIND.
28020 * tree-pretty-print.c: Include "gomp-constants.h".
28021 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28022 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28023 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28024 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28025 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28026 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28027 instead of OMP_CLAUSE_MAP_*.
28028 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28029 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28030 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28031 * tree-streamer-in.c: Include "gomp-constants.h".
28032 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28033 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28034 * tree-streamer-out.c: Include "gomp-constants.h".
28035 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28037 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28038 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28039 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28040 * tree.c (omp_clause_num_ops): Update accordingly.
28041 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28043 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28044 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28045 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28046 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28047 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28048 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28049 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28050 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28051 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28053 * config/i386/intelmic-offload.h: New file.
28054 * config/nvptx/offload.h: Likewise.
28056 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28058 * explow.h: Remove duplicate contents.
28059 * dojump.h: Likewise.
28061 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28063 * arm.c (arm_xgene_tune): Add default initializer for instruction
28066 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28070 * ipa.c (symbol_table::remove_unreachable_nodes):
28071 Do not put abstract origins into boundary.
28073 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28075 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28076 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28078 2015-01-15 Steve Ellcey <sellcey@mips.com>
28080 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28081 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28082 builtins.def, and chkp-builtins.def.
28084 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28086 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28089 2015-01-15 Richard Biener <rguenther@suse.de>
28091 PR tree-optimization/61743
28092 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28093 information on PHIs for some simple cases.
28095 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28097 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28099 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28100 * config/arm/arm-cores.def (xgene1): New entry.
28101 * config/arm/arm-tables.opt: Regenerate.
28102 * config/arm/arm-tune.md: Regenerate.
28103 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28105 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28107 * tree-if-conv.c: Include hash-map.h.
28108 (aggressive_if_conv): New variable.
28109 (fold_build_cond_expr): Add simplification of non-zero condition.
28110 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28111 destination block is not always executed.
28112 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28113 than two predecessors if AGGRESSIVE_IF_CONV is true.
28114 (if_convertible_stmt_p): Fix commentary.
28115 (all_preds_critical_p): New function.
28116 (has_pred_critical_p): New function.
28117 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28118 BB can have more than two predecessors and all incoming edges can be
28120 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28121 to compute predicate for true edge.
28122 (find_phi_replacement_condition): Delete this function.
28123 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28124 Allow interchange PHI arguments if EXTENDED is false.
28125 Change check that block containing reduction statement candidate
28126 is predecessor of phi-block since phi may have more than two arguments.
28127 (phi_args_hash_traits): New helper structure.
28128 (struct phi_args_hash_traits): New type.
28129 (phi_args_hash_traits::hash): New function.
28130 (phi_args_hash_traits::equal_keys): New function.
28131 (gen_phi_arg_condition): New function.
28132 (predicate_scalar_phi): Add handling of phi nodes with more than two
28133 arguments, delete COND and TRUE_BB arguments, insert body of
28134 find_phi_replacement_condition to predicate ordinary phi nodes.
28135 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28136 delete call of find_phi_replacement_condition and invoke
28137 predicate_scalar_phi with two arguments.
28138 (insert_gimplified_predicates): Add assert that non-predicated block
28139 don't have statements to insert.
28140 (ifcvt_split_critical_edges): New function.
28141 (ifcvt_split_def_stmt): Likewise.
28142 (ifcvt_walk_pattern_tree): Likewise.
28143 (stmt_is_root_of_bool_pattern): Likewise.
28144 (ifcvt_repair_bool_pattern): Likewise.
28145 (ifcvt_local_dce): Likewise.
28146 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28147 is copy of inner or outer loop force_vectorize field, invoke
28148 ifcvt_split_critical_edges, ifcvt_local_dce and
28149 ifcvt_repair_bool_pattern for aggressive if-conversion.
28151 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28153 * config/aarch64/aarch64.md: Include xgene1.md.
28154 * config/aarch64/xgene1.md: New file.
28156 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28158 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28159 xgene1 (APM XGene-1) core definition.
28160 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28161 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28162 * doc/invoke.texi: Document -mcpu=xgene1.
28164 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28166 * dojump.h: New header file.
28167 * explow.h: Likewise.
28168 * expr.h: Remove includes.
28169 Move expmed.c prototypes to expmed.h.
28170 Move dojump.c prototypes to dojump.h.
28171 Move alias.c prototypes to alias.h.
28172 Move explow.c prototypes to explow.h.
28173 Move calls.c prototypes to calls.h.
28174 Move emit-rtl.c prototypes to emit-rtl.h.
28175 Move varasm.c prototypes to varasm.h.
28176 Move stmt.c prototypes to stmt.h.
28177 (saved_pending_stack_adjust): Move to dojump.h.
28178 (adjust_address): Move to explow.h.
28179 (adjust_address_nv): Move to emit-rtl.h.
28180 (adjust_bitfield_address): Likewise.
28181 (adjust_bitfield_address_size): Likewise.
28182 (adjust_bitfield_address_nv): Likewise.
28183 (adjust_automodify_address_nv): Likewise.
28184 * explow.c (expr_size): Move to expr.c.
28185 (int_expr_size): Likewise.
28186 (tree_expr_size): Likewise.
28187 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28188 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28189 * genemit.c (main): Generate includes statistics.h, real.h,
28190 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28192 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28193 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28194 explow.h, emit-rtl.h, stmt.h.
28195 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28196 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28197 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28198 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28199 emit-rtl.h, varasm.h, stmt.h.
28200 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28201 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28202 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28203 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28204 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28205 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28206 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28207 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28208 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28209 tm.h tree.h varasm.h vec.h wide-int.h.
28210 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28211 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28212 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28213 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28214 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28215 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28216 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28217 * loop-iv.c: Likewise.
28218 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28219 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28220 statistics.h stmt.h tree.h varasm.h wide-int.h.
28221 * lra-constraints.c: Likewise.
28222 * lra-eliminations.c: Likewise.
28223 * lra-lives.c: Likewise.
28224 * lra-remat.c: Likewise.
28225 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28226 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28227 statistics.h stmt.h tree.h varasm.h wide-int.h.
28228 * hw-doloop.c: Likewise.
28229 * ira-color.c: Likewise.
28230 * ira-emit.c: Likewise.
28231 * loop-doloop.c: Likewise.
28232 * loop-invariant.c: Likewise.
28233 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28234 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28235 statistics.h stmt.h tree.h varasm.h wide-int.h.
28236 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28237 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28238 statistics.h stmt.h tree.h varasm.h wide-int.h.
28239 * combine-stack-adj.c: Likewise.
28242 * ifcvt.c: Likewise.
28243 * ira-costs.c: Likewise.
28244 * jump.c: Likewise.
28245 * lra-coalesce.c: Likewise.
28246 * lra-spills.c: Likewise.
28247 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28248 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28249 stmt.h varasm.h wide-int.h.
28250 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28251 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28253 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28254 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28255 statistics.h stmt.h varasm.h wide-int.h.
28256 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28257 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28258 varasm.h wide-int.h.
28259 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28260 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28261 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28262 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28263 statistics.h stmt.h.
28264 * config/tilepro/tilepro.c: Likewise.
28265 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28266 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28267 * config/pdp11/pdp11.c: Likewise.
28268 * config/xtensa/xtensa.c: Likewise.
28269 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28270 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28272 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28273 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28274 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28275 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28276 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28277 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28278 * rtl-chkp.c: Likewise.
28279 * tree-chkp-opt.c: Likewise.
28280 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28281 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28282 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28283 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28284 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28285 statistics.h stmt.h.
28286 * tree-vect-data-refs.c: Likewise.
28287 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28288 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28289 rtl.h statistics.h stmt.h varasm.h.
28290 * internal-fn.c: Likewise.
28291 * ipa-icf-gimple.c: Likewise.
28292 * lto-section-out.c: Likewise.
28293 * tree-data-ref.c: Likewise.
28294 * tree-nested.c: Likewise.
28295 * tree-outof-ssa.c: Likewise.
28296 * tree-predcom.c: Likewise.
28297 * tree-pretty-print.c: Likewise.
28298 * tree-scalar-evolution.c: Likewise.
28299 * tree-ssa-strlen.c: Likewise.
28300 * tree-vect-loop.c: Likewise.
28301 * tree-vect-patterns.c: Likewise.
28302 * tree-vect-slp.c: Likewise.
28303 * tree-vect-stmts.c: Likewise.
28304 * tsan.c: Likewise.
28305 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28306 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28308 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28309 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28310 statistics.h stmt.h varasm.h.
28311 * loop-unroll.c: Likewise.
28312 * ubsan.c: Likewise.
28313 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28314 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28316 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28317 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28318 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28319 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28320 statistics.h stmt.h.
28321 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28322 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28323 statistics.h stmt.h varasm.h.
28324 * gimple-match-head.c: Likewise.
28325 * lto-cgraph.c: Likewise.
28326 * lto-section-in.c: Likewise.
28327 * lto-streamer-in.c: Likewise.
28328 * lto-streamer-out.c: Likewise.
28329 * tree-affine.c: Likewise.
28330 * tree-cfg.c: Likewise.
28331 * tree-cfgcleanup.c: Likewise.
28332 * tree-if-conv.c: Likewise.
28333 * tree-into-ssa.c: Likewise.
28334 * tree-ssa-alias.c: Likewise.
28335 * tree-ssa-copyrename.c: Likewise.
28336 * tree-ssa-dse.c: Likewise.
28337 * tree-ssa-forwprop.c: Likewise.
28338 * tree-ssa-live.c: Likewise.
28339 * tree-ssa-math-opts.c: Likewise.
28340 * tree-ssa-pre.c: Likewise.
28341 * tree-ssa-sccvn.c: Likewise.
28342 * tree-tailcall.c: Likewise.
28343 * tree-vect-generic.c: Likewise.
28344 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28345 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28346 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28347 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28348 * varasm.c: Likewise.
28349 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28350 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28352 * init-regs.c: Likewise.
28354 * omp-low.c: Likewise.
28355 * stack-ptr-mod.c: Likewise.
28356 * tree-ssa-reassoc.c: Likewise.
28357 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28358 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28360 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28361 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28362 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28363 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28364 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28365 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28366 * tree-ssa-phiopt.c: Likewise.
28367 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28368 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28369 * config/fr30/fr30.c: Likewise.
28370 * config/frv/frv.c: Likewise.
28371 * expr.c: Likewise.
28372 * final.c: Likewise.
28373 * optabs.c: Likewise.
28374 * passes.c: Likewise.
28375 * simplify-rtx.c: Likewise.
28376 * stmt.c: Likewise.
28377 * toplev.c: Likewise.
28378 * var-tracking.c: Likewise.
28379 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28380 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28381 * lower-subreg.c: Likewise.
28382 * postreload-gcse.c: Likewise.
28384 * reginfo.c: Likewise.
28385 * store-motion.c: Likewise.
28386 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28387 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28388 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28389 fixed-value.h hashtab.h statistics.h stmt.h.
28390 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28391 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28392 * except.c: Likewise.
28393 * explow.c: Likewise.
28394 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28395 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28397 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28398 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28399 * tree-ssa-structalias.c: Likewise.
28400 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28401 fixed-value.h insn-config.h real.h statistics.h.
28402 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28403 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28404 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28405 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28406 * cfgbuild.c: Likewise.
28407 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28408 fixed-value.h real.h rtl.h statistics.h stmt.h.
28409 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28410 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28411 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28412 fixed-value.h real.h statistics.h stmt.h.
28413 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28414 fixed-value.h real.h statistics.h stmt.h varasm.h.
28415 * cprop.c: Likewise.
28416 * modulo-sched.c: Likewise.
28417 * postreload.c: Likewise.
28418 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28419 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28420 statistics.h stmt.h varasm.h.
28421 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28422 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28423 rtl.h statistics.h stmt.h varasm.h.
28424 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28425 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28427 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28428 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28430 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28431 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28433 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28434 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28435 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28436 function.h real.h statistics.h stmt.h varasm.h.
28437 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28438 insn-config.h real.h statistics.h stmt.h.
28439 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28440 statistics.h stmt.h.
28441 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28442 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28443 statistics.h stmt.h varasm.h.
28444 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28445 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28446 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28447 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28448 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28449 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28450 statistics.h stmt.h varasm.h.
28451 * ipa-polymorphic-call.c: Likewise.
28452 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28453 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28454 statistics.h stmt.h.
28455 * config/c6x/c6x.c: Likewise.
28456 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28457 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28458 statistics.h stmt.h varasm.h.
28459 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28460 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28462 * ipa-split.c: Likewise.
28463 * tree-eh.c: Likewise.
28464 * tree-ssa-dce.c: Likewise.
28465 * tree-ssa-loop-niter.c: Likewise.
28466 * tree-vrp.c: Likewise.
28467 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28468 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28470 * config/nds32/nds32-fp-as-gp.c: Likewise.
28471 * config/nds32/nds32-intrinsic.c: Likewise.
28472 * config/nds32/nds32-isr.c: Likewise.
28473 * config/nds32/nds32-md-auxiliary.c: Likewise.
28474 * config/nds32/nds32-memory-manipulation.c: Likewise.
28475 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28476 * config/nds32/nds32-predicates.c: Likewise.
28477 * config/nds32/nds32.c: Likewise.
28478 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28479 fixed-value.h hashtab.h real.h statistics.h.
28480 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28481 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28482 * config/arm/arm.c: Likewise.
28483 * config/avr/avr.c: Likewise.
28484 * config/bfin/bfin.c: Likewise.
28485 * config/h8300/h8300.c: Likewise.
28486 * config/i386/i386.c: Likewise.
28487 * config/ia64/ia64.c: Likewise.
28488 * config/iq2000/iq2000.c: Likewise.
28489 * config/m32c/m32c.c: Likewise.
28490 * config/m32r/m32r.c: Likewise.
28491 * config/m68k/m68k.c: Likewise.
28492 * config/mcore/mcore.c: Likewise.
28493 * config/mep/mep.c: Likewise.
28494 * config/mips/mips.c: Likewise.
28495 * config/mn10300/mn10300.c: Likewise.
28496 * config/moxie/moxie.c: Likewise.
28497 * config/pa/pa.c: Likewise.
28498 * config/rl78/rl78.c: Likewise.
28499 * config/rx/rx.c: Likewise.
28500 * config/s390/s390.c: Likewise.
28501 * config/sh/sh.c: Likewise.
28502 * config/sparc/sparc.c: Likewise.
28503 * config/spu/spu.c: Likewise.
28504 * config/stormy16/stormy16.c: Likewise.
28505 * config/v850/v850.c: Likewise.
28506 * config/vax/vax.c: Likewise.
28507 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28508 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28509 * config/msp430/msp430.c: Likewise.
28510 * predict.c: Likewise.
28511 * value-prof.c: Likewise.
28512 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28513 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28514 * config/microblaze/microblaze.c: Likewise.
28515 * config/nios2/nios2.c: Likewise.
28516 * config/rs6000/rs6000.c: Likewise.
28517 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28518 insn-config.h real.h rtl.h statistics.h stmt.h.
28519 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28520 insn-config.h real.h statistics.h stmt.h.
28521 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28522 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28523 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28524 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28525 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28526 fixed-value.h real.h statistics.h stmt.h.
28527 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28528 fixed-value.h statistics.h stmt.h.
28529 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28532 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28534 * gengtype.c (create_user_defined_type): Workaround
28535 -Wmaybe-uninitialized false positives.
28536 * cse.c (fold_rtx): Likewise.
28537 * loop-invariant.c (gain_for_invariant): Likewise.
28539 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28541 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28542 set the memory attributes in all cases but clear MEM_EXPR if need be.
28544 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28546 PR tree-optimization/64434
28547 * cfgexpand.c (reorder_operands): New function.
28548 (expand_gimple_basic_block): Insert call of reorder_operands if
28551 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28553 * config/mips/micromips.md (*swp): Remove explicit parallel.
28554 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28555 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28556 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28557 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28558 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28559 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28560 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28561 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28562 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28563 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28564 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28565 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28566 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28567 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28568 (mips_wrdsp): Likewise.
28569 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28571 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28572 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28573 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28574 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28575 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28576 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28577 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28578 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28579 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28581 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28583 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28584 (mips_print_operand): Support 'y' to print exact log2 in decimal
28586 * config/mips/mips.h (ISA_HAS_LSA): New define.
28587 (ISA_HAS_DLSA): Likewise.
28588 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28589 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28591 2015-01-15 Martin Liska <mliska@suse.cz>
28594 * optc-save-gen.awk: Add support for array types.
28596 2015-01-15 Richard Biener <rguenther@suse.de>
28598 PR middle-end/64365
28599 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28600 for MEM_REF access functions with the same base can never partially
28603 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28605 * common.opt: New option -fstack-protector-explicit.
28606 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28607 (stack_protect_decl_phase): Handle stack_protect attribute for
28608 explicit stack protection requests.
28609 (expand_used_vars): Similarly.
28610 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28611 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28612 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28614 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28617 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28619 (sh_extending_set_of_reg): New struct.
28620 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28621 sh_remove_reg_dead_or_unused_notes): New Declarations.
28622 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28623 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28624 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28625 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28626 convert to insn_and_split and use new function sh_split_tst_subregs.
28628 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28630 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28632 (Optimization Options): Move -fuse-ld documentation to...
28633 (Link Options): ...here.
28635 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28637 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28639 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28640 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28641 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28642 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28643 instead of ZR for the memory operand of LL/SC.
28644 (compare_and_swap_12, sync_add<mode>): Likewise.
28645 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28646 (sync_new_<optab>_12, sync_nand_12): Likewise.
28647 (sync_old_nand_12, sync_new_nand_12): Likewise.
28648 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28649 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28650 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28651 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28652 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28653 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28654 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28655 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28656 * doc/md.texi (ZC): Update description.
28658 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28660 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28661 memory model is CONSUME.
28662 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28663 expand_builtin_atomic_store): Change invalid memory model errors to
28665 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28666 and issue warning for CONSUME.
28668 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28670 * lto-cgraph: Update function comments for
28671 lto_symtab_encoder_encode_*.
28673 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28675 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28677 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28679 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28680 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28681 lto_stream_offload_p instead.
28682 * lto-streamer.h (select_what_to_stream): Remove argument.
28683 * passes.c (ipa_write_summaries): Likewise.
28684 * tree-pass.h (ipa_write_summaries): Likewise.
28686 2015-01-14 Richard Biener <rguenther@suse.de>
28688 PR tree-optimization/59354
28689 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28690 groups larger than the slp group size as having gaps.
28692 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28694 PR middle-end/59448
28695 * builtins.c (get_memmodel): Promote consume to acquire always.
28697 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28700 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28703 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28706 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28708 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28709 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
28710 AVX512VBMI, as it implies AVX512BW.
28712 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28715 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
28716 (vec_unpacks_hi_v16sf): Ditto.
28718 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28720 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
28723 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28725 * doc/invoke.texi (mapcs): Mention deprecation.
28726 (mapcs-frame): Likewise.
28728 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
28731 * config/arm/arm.c (callee_saved_reg_p): Define.
28732 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
28733 register is callee saved instead of !call_used_regs[reg].
28734 (thumb1_compute_save_reg_mask): Likewise.
28736 2015-01-14 Hale Wang <hale.wang@arm.com>
28738 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
28741 2015-01-14 Richard Biener <rguenther@suse.de>
28744 * tree-inline.c (insert_debug_decl_map): Check destination
28745 function MAY_HAVE_DEBUG_STMTS.
28746 (insert_init_debug_bind): Likewise.
28747 (insert_init_stmt): Remove redundant check.
28748 (remap_gimple_stmt): Drop debug stmts if the destination
28749 function has var-tracking assignments disabled.
28751 2015-01-14 Martin Liska <mliska@suse.cz>
28753 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
28754 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28756 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28759 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28760 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28762 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28764 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28765 level from an ARCH; do not inject the default.
28766 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28767 MIPS_ISA_LEVEL_SPEC.
28768 (MIPS_ISA_NAN2008_SPEC): Update comment.
28769 (BASE_DRIVER_SELF_SPECS): Likewise.
28770 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28771 MIPS_DEFAULT_ISA_LEVEL_SPEC.
28772 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28773 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28774 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28776 2015-01-14 Richard Biener <rguenther@suse.de>
28778 PR tree-optimization/64493
28779 PR tree-optimization/64495
28780 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28781 assign the proper vectorized PHI to the inner loop exit PHIs.
28783 2015-01-14 Joey Ye <joey.ye@arm.com>
28785 * config/arm/arm.c (arm_compute_save_reg_mask):
28786 Do not save lr in case of tail call.
28787 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
28789 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
28791 * tree-vrp.c (check_array_ref): Emit more warnings
28792 for warn_array_bounds >= 2.
28793 * common.opt: New option -Warray-bounds=.
28794 * doc/invoke.texi: Document -Warray-bounds=.
28796 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
28798 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
28799 (mforbid-fp-as-gp): Remove.
28801 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
28802 (nds32_symbol_load_store_p): Remove.
28803 (nds32_fp_as_gp_check_available): Clean up implementation.
28804 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
28806 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28807 fp-as-gp and ex9 cases.
28809 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28811 * tree-profile.c (init_ic_make_global_vars): Drop workaround
28812 for bintuils bug 14342.
28813 (init_ic_make_global_vars): Likewise.
28814 (gimple_init_edge_profiler): Likewise.
28815 (gimple_gen_ic_func_profiler): Likewise.
28817 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28819 * ipa-inline.c (inline_small_functions): Swap the operands in
28822 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28825 * ipa-inline-analysis.c (node_growth_cache): Remove.
28826 (initialize_growth_caches): Do not initialize it.
28827 (free_growth_caches): Do not free it.
28828 (do_estimate_growth): Rename to ...
28829 (estimate_growth): ... this one; drop growth cache code.
28830 (growth_likely_positive): Always go the heuristics way.
28831 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28832 (reset_edge_caches): Do not reset node growth.
28833 (heap_edge_removal_hook): Do not maintain cache.
28834 (inline_small_functions): Likewise; strenghten sanity check.
28835 (ipa_inline): Do not maintain caches.
28836 * ipa-inline.h (node_growth_cache): Remove.
28837 (do_estimate_growth): Remove to ...
28838 (estimate_growth): this one; remove inline version.
28839 (reset_node_growth_cache): Remove.
28841 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28844 * ipa-inline.c (inline_small_functions): Update callee keys after
28845 resolving speculation
28846 (inline_small_functions): Always check monotonicity of the queue.
28848 2015-01-13 Marek Polacek <polacek@redhat.com>
28850 PR middle-end/64391
28851 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28853 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28855 PR rtl-optimization/64286
28856 * ree.c (combine_reaching_defs): Move part of comment earlier,
28857 remove !SCALAR_INT_MODE_P check.
28858 (add_removable_extension): Don't add vector mode
28859 extensions if all uses of the source register aren't the same
28862 2015-01-13 Renlin Li <renlin.li@arm.com>
28864 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28865 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28867 2015-01-13 Martin Liska <mliska@suse.cz>
28869 * ipa-icf.c (sem_function::equals_private): Call new functions
28870 cl_target_option_print_diff and cl_optimization_print_diff.
28871 * optc-save-gen.awk (cl_target_option_print_diff): New function.
28872 (cl_optimization_print_diff): Likewise.
28873 * opth-gen.awk: Likewise.
28875 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
28877 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28878 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28879 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28880 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28881 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28882 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28884 2015-01-13 Andrew Pinski <apinski@cavium.com>
28886 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28887 instead of src mode.
28889 2015-01-13 Richard Biener <rguenther@suse.de>
28892 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28895 2015-01-13 Andrew Pinski <apinski@cavium.com>
28897 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28899 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28901 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28903 PR middle-end/63974
28904 * cfgexpand.c (expand_computed_goto): Don't call
28905 convert_memory_address here.
28907 2015-01-13 Richard Biener <rguenther@suse.de>
28909 PR tree-optimization/64406
28910 * tree-loop-distibution.c (pass_loop_distribution::execute):
28911 Reset the SCEV hashtable if we distributed anything.
28913 2015-01-13 Richard Biener <rguenther@suse.de>
28915 PR tree-optimization/64404
28916 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28917 SLP types for CSEd loads.
28919 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28921 PR tree-optimization/64436
28922 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28923 merge of two symbolic numbers for a bitwise OR to ...
28924 (perform_symbolic_merge): This. Also fix computation of the range and
28925 end of the symbolic number corresponding to the result of a bitwise OR.
28927 2015-01-13 Richard Biener <rguenther@suse.de>
28929 PR tree-optimization/64568
28930 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28931 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28933 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28935 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28936 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28938 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28940 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28941 target-specific symbol_ref flag.
28942 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28943 resides in rodata section.
28944 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28945 (nds32_encode_section_info): New function.
28947 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28949 * config/nds32/nds32.md (call): Use pseudo instruction bal which
28950 clobbers TA_REGNUM if large code model is specified.
28951 (call_register): Likewise.
28952 (call_immediate): Likewise.
28953 (call_value): Likewise.
28954 (call_value_register): Likewise.
28955 (call_value_immediate): Likewise.
28957 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28959 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28960 (TARGET_CMODEL_MEDIUM): New macro.
28961 (TARGET_CMODEL_LARGE): New macro.
28962 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28963 code model setting in assembly code.
28965 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28967 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28968 Remove MASK_GP_DIRECT flag.
28969 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28970 one of the multilib default options.
28971 * config/nds32/nds32.opt (mgp-direct): Remove.
28972 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28973 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
28975 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28977 * config/nds32/nds32.opt (mcmodel): Add new option.
28978 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28979 to describe code model.
28981 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
28984 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28986 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
28988 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28989 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28990 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28991 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28992 __builtin_sh_set_fpscr.
28994 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28996 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28997 after a funtion name just to indicate it is a function.
28998 ([-fsanitize-undefined-trap-on-error]): Likewise.
28999 ([-fdbg-cnt=]): Likewise.
29000 ([-mmemcpy]): Likewise.
29001 ([-mflush-func]): Likewise.
29002 ([-msynci]): Likewise.
29004 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29006 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29009 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29011 PR tree-optimization/64563
29012 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29013 instead of != VR_VARYING.
29016 * config/i386/i386.c (ix86_expand_prologue): Add
29017 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29019 PR tree-optimization/64454
29020 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29021 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29022 for signed or [0, op1 - 1] for unsigned modulo.
29023 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29024 even if op1 does not satisfy integer_pow2p.
29027 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29029 2015-01-12 Jeff Law <law@redhat.com>
29032 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29033 (trunchiqi2, truncsihi2): Similarly.
29035 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29036 rather than calling F.
29038 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29040 * tsan.c (instrument_expr): Use force_gimple_operand.
29041 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29043 2015-01-12 Richard Biener <rguenther@suse.de>
29045 PR tree-optimization/64530
29046 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29049 2015-01-12 Richard Biener <rguenther@suse.de>
29051 PR middle-end/64357
29052 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29055 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29057 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29058 Cortex-A17 tuning parameters.
29059 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29061 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29063 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29064 * config/arm/arm.c (arm_macro_fusion_p): New function.
29065 (arm_macro_fusion_pair_p): Likewise.
29066 (TARGET_SCHED_MACRO_FUSION_P): Define.
29067 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29068 (ARM_FUSE_NOTHING): Likewise.
29069 (ARM_FUSE_MOVW_MOVT): Likewise.
29070 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29071 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29072 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29073 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29074 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29075 arm_cortex_a5_tune): Specify fuseable_ops value.
29077 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29080 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29081 test for PIE with copy reloc.
29082 * configure: Regenerated.
29084 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29086 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29088 (arm_tls_descseq_addr): Likewise.
29089 (arm_gen_movmemqi): Likewise.
29090 (arm_expand_epilogue_apcs_frame): Likewise.
29091 (arm_expand_epilogue): Likewise.
29092 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29095 2015-01-12 Martin Liska <mliska@suse.cz>
29098 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29099 volatility for correct operands.
29101 2015-01-12 Martin Liska <mliska@suse.cz>
29103 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29104 indication that a function is not leaf.
29105 (sem_function::compare_polymorphic_p): Likewise.
29107 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29109 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29110 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29111 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29112 fold-const.h, tree-check.h.
29114 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29118 * ipa-inline.c (compute_uninlined_call_time,
29119 compute_inlined_call_time): Use counts for extra precision when
29121 (big_speedup_p): Fix formating.
29122 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29123 (relative_time_benefit): Remove.
29124 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29125 merge guessed and read profile paths.
29126 (inline_small_functions): Count only !optimize_size functions into
29127 initial size; be more lax about sanity check when profile is used;
29128 be sure to update inlined function profile when profile is read.
29130 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29133 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29134 cost when edge becomes direct.
29135 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29136 is resolved or when introducing new speculation.
29138 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29142 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29143 '||' to fix typo issue.
29145 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29146 accept and return NULL.
29148 2015-01-12 Martin Liska <mliska@suse.cz>
29150 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29151 file for being inlined.
29152 (cgraph_set_edge_callee): Delete.
29153 (cgraph_edge::redirect_callee): Move function to header file
29155 (cgraph_edge::make_direct): Use new function.
29156 (cgraph_edge::dump_edge_flags): New function created from
29157 static dump_edge_flags function.
29158 (cgraph_node::dump): Use new function.
29159 (cgraph_edge::verify_count_and_frequency): New function created
29160 from verify_edge_count_and_frequency.
29161 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29162 from verify_edge_corresponds_to_fndecl.
29163 (verify_edge_corresponds_to_fndecl): Delete.
29164 (cgraph_node::verify_node): Use new function.
29165 * cgraph.h (cgraph_edge::set_callee): New function.
29166 (cgraph_edge::dump_edge_flags): Likewise.
29167 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29169 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29171 * ipa-utils.c (estimate_function_body_sizes): Do not
29172 free node params when called late with early=true.
29174 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29176 * doc/md.texi (Instruction Patterns): Rewrite text for
29178 (Example): Likewise.
29180 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29182 * doc/invoke.texi (Option Summary): Break long lines.
29183 [(-fdiagnostics-color)]: Put long literal in @smallexample
29185 [(-fsanitize-recover)]: Likewise.
29186 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29187 [(-ffast-math)]: Likewise.
29188 [(--param max-inline-insns-recursive)]: Likewise.
29189 [(--param max-inline-recursive-depth)]: Likewise.
29190 [(-mno-text-section-literals)]: Likewise.
29192 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29194 * doc/install.texi: Update for libgomp being renamed from "GNU
29195 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29197 * doc/sourcebuild.texi: Likewise.
29199 2015-01-10 Anthony Green <green@moxielogic.com>
29201 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29202 mul.x availability for moxiebox configuration.
29204 2015-01-09 Anthony Green <green@moxielogic.com>
29206 * config/moxie/moxie.md: Tabify assembly output.
29208 2015-01-09 Anthony Green <green@moxielogic.com>
29210 * config/moxie/moxie.md (CC_REG): Correct register definition.
29212 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29214 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29215 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29218 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29220 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29222 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29223 Jakub Jelinek <jakub@redhat.com>
29225 PR middle-end/64412
29226 * lto-streamer.h (lto_stream_offload_p): New declaration.
29227 * lto-streamer.c (lto_stream_offload_p): New variable.
29228 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29229 at the same time as section_name_prefix.
29230 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29231 if lto_stream_offload_p.
29232 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29233 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29234 (write_ts_function_decl_tree_pointers): Don't
29235 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29236 * tree-streamer-in.c (unpack_value_fields): Don't stream
29237 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29238 (lto_input_ts_function_decl_tree_pointers): Don't stream
29239 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29240 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29241 instead of section_name_prefix string comparisons.
29243 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29245 PR rtl-optimization/64536
29246 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29249 2015-01-09 Michael Collison <michael.collison@linaro.org>
29251 PR tree-optimization/64322
29252 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29253 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29255 2015-01-09 Tom de Vries <tom@codesourcery.com>
29257 PR rtl-optimization/64539
29258 * regcprop.c (kill_clobbered_values): Factor out of ...
29259 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29260 instead of note_stores with kill_clobbered_value.
29262 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29264 * ginclude/unwind-arm-common.h: Revert previous commit.
29266 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29268 * config.gcc (arm*-*-freebsd*): New configuration.
29269 * config/arm/freebsd.h: New file.
29270 * config.host: Add extra components for arm*-*-freebsd*.
29271 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29272 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29274 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29276 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29278 * config/rs6000/t-rtems: Add e6500 multilibs.
29280 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29282 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29285 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29287 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29288 MULTILIB_EXCEPTIONS.
29290 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29292 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29293 MULTILIB_EXCEPTIONS.
29295 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29297 * config/arm/t-rtems-eabi: Rename to...
29298 * config/arm/t-rtems: ...this.
29299 * config/arm/rtems-eabi.h: Rename to...
29300 * config/arm/rtems.h: ...this.
29301 * config.gcc (arm*-*-rtems*): Reflect changes above.
29303 2015-01-09 Richard Biener <rguenther@suse.de>
29305 PR tree-optimization/64410
29306 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29308 (execute_update_addresses_taken): Deal with that.
29309 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29310 loads/stores for complex variables.
29312 2015-01-09 Martin Liska <mliska@suse.cz>
29314 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29316 (func_checker::compare_memory_operand): New function.
29317 (func_checker::compare_operand): Split case to newly
29319 (func_checker::compare_cst_or_decl): New function.
29320 (func_checker::compare_gimple_call): Identify
29322 (func_checker::compare_gimple_assign): Likewise.
29323 * ipa-icf-gimple.h: New function.
29325 2015-01-09 Martin Liska <mliska@suse.cz>
29328 * sreal.c (sreal::dump): Change unsigned format to signed for
29330 (sreal::to_double): Replace exp2 with scalbln.
29332 2015-01-09 Martin Liska <mliska@suse.cz>
29334 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29335 * ipa-icf.c (sem_function::equals_private): Add support for target and
29336 (sem_item_optimizer::merge_classes): Remove redundant function
29337 optimization flags comparison.
29338 * tree.h (target_opts_for_fn): New function.
29340 2015-01-09 Tom de Vries <tom@codesourcery.com>
29342 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29344 2015-01-09 Kito Cheng <kito@0xlab.org>
29346 PR rtl-optimization/64348
29347 * lra-constraints.c (split_reg): Fix caller-save store/restore
29348 instruction generation.
29350 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29352 PR gcov-profile/61790
29353 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29354 long long. Fallback to int64_t if host doesn't have long long and
29355 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29357 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29359 PR tree-optimization/63989
29360 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29361 from 1000 to 10000.
29362 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29363 (get_stridx): If we don't have a record for certain SSA_NAME,
29364 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29365 constant offset, call get_stridx_plus_constant.
29366 (get_stridx_plus_constant): New function.
29367 (zero_length_string): Don't use get_stridx here.
29370 PR middle-end/64388
29371 * dse.c (struct insn_info): Mention frame_read set also
29372 before reload for tail calls on some targets.
29373 (scan_insn): Revert 2014-12-22 change. Set frame_read
29374 also before reload for tail calls if
29375 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29376 instead of add_non_frame_wild_read for non-const/memset
29377 tail calls after reload.
29379 2015-01-08 Jason Merrill <jason@redhat.com>
29381 * ubsan.c (do_ubsan_in_current_function): New.
29382 (pass_ubsan::gate): Use it.
29383 * ubsan.h: Declare it.
29384 * convert.c (convert_to_integer): Use it.
29386 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29389 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29390 compare_code when it is unconditionally overwritten afterwards.
29391 Use ix86_reverse_condition instead of reverse_condition. Don't
29392 change code if *reverse_condition* returned UNKNOWN and don't
29393 swap ct/cf and negate diff in that case.
29395 2015-01-08 Mike Stump <mikestump@comcast.net>
29397 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29398 (pass_tsan_O0::gate): Likewise.
29399 * extend.texi (Function Attributes): Add no_sanitize_thread
29402 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29404 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29405 for registering builtins.
29406 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29407 add -fopenmp to the argv_obstack used when invoking
29408 compile_for_target.
29410 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29411 add "-m32" or "-m64" to argv_obstack.
29412 (generate_host_descr_file): Likewise, when invoking host_compiler.
29413 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29416 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29418 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29421 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29424 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29425 constant load if constant operand fits into I08.
29427 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29430 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29431 and TREE_THIS_VOLATILE for MEM_REFs.
29432 (build5_stat): Fix up initialization of TREE_READONLY and
29433 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29435 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29438 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29439 of r for the second alternative of the destination operand.
29441 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29444 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29446 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29448 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29450 ([-fivar-visibility], [-fvisibility]): Likewise.
29452 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29454 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29455 the file where @code, @command, etc is more appropriate.
29457 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29459 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29460 of -mrecip= documentation.
29462 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29465 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29466 correct reload handler if -m32 -mpowerpc64 is used.
29468 2015-01-06 Tom de Vries <tom@codesourcery.com>
29470 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29472 2015-01-08 Christian Bruel <christian.bruel@st.com>
29475 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29477 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29479 PR tree-optimization/63259
29480 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29481 if optab exists for 16bit byteswap.
29483 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29485 * opts.c (common_handle_option): Add support for
29486 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29487 * doc/invoke.texi: Document -fno-sanitize=all,
29488 -f{,no-}sanitize-recover=all. Document that
29489 -fsanitize=float-cast-overflow is not enabled
29490 by -fsanitize=undefined. Fix up documentation
29491 of -f{,no-}sanitize-recover.
29493 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29495 * config.gcc: Add Visium support.
29496 * configure.ac: Likewise.
29497 * configure: Regenerate.
29498 * doc/extend.texi (interrupt attribute): Add Visium.
29499 * doc/invoke.texi: Document Visium options.
29500 * doc/install.texi: Document Visium target.
29501 * doc/md.texi: Document Visium constraints.
29502 * common/config/visium: New directory.
29503 * config/visium: Likewise.
29505 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29507 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29508 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29510 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29512 * combine.c (combine_validate_cost): Do not count the cost of a
29513 split I2 twice. Do not display it twice in the dump, either.
29515 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29517 Revert parts of r219199.
29518 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29520 ([-Wtraditional]): Restore markup on <limits.h>.
29522 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29525 * doc/invoke.texi: Document -Wsuggest-override.
29527 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29529 PR rtl-optimization/64287
29530 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29531 (process_options): Disable flag_ipa_ra if profiling.
29533 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29535 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29537 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29539 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29540 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29541 put under #if TARGET_LOOPS guard.
29543 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29545 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29547 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29549 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29550 * rtl.h (refers_to_regno_p): Add overload.
29552 * bt-load.c: Likewise.
29553 * combine.c: Likewise.
29554 * df-scan.c: Likewise.
29555 * sched-deps.c: Likewise.
29556 * config/s390/s390.c: Likewise.
29557 * config/m32r/m32r.c: Likewise.
29558 * config/rs6000/spe.md: Likewise.
29559 * config/rs6000/rs6000.c: Likewise.
29560 * config/pa/pa.c: Likewise.
29561 * config/stormy16/stormy16.c: Likewise.
29562 * config/cris/cris.c: Likewise.
29563 * config/arc/arc.md: Likewise.
29564 * config/arc/arc.c: Likewise.
29565 * config/sh/sh.md: Likewise.
29566 * config/sh/sh.c: Likewise.
29567 * config/frv/frv.c: Likewise.
29569 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29572 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29573 call as cleanup of the whole body.
29574 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29575 * tsan.c (replace_func_exit): New function.
29576 (instrument_func_exit): Moved earlier.
29577 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29578 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29580 (tsan_pass): Don't call instrument_func_exit.
29581 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29582 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29586 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29587 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29588 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29589 if the result is integer_zerop, return NULL_TREE.
29590 * convert.c (convert_to_integer): Pass expr as ARG.
29592 PR tree-optimization/64465
29593 * tree-inline.c (redirect_all_calls): During inlining
29594 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29595 changed the stmt to a non-throwing call.
29597 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29599 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29600 etc markup throughout the file.
29602 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29604 Enable experimental TSAN support for Ada.
29605 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29607 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29609 PR tree-optimization/64494
29610 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29611 clear SSA_NAME_ANTI_RANGE_P flag.
29613 2015-01-05 Marek Polacek <polacek@redhat.com>
29615 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29617 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29619 Update copyright years.
29621 * gcc.c (process_command): Update copyright notice dates.
29622 * gcov-dump.c: Ditto.
29624 * doc/cpp.texi: Bump @copying's copyright year.
29625 * doc/cppinternals.texi: Ditto.
29626 * doc/gcc.texi: Ditto.
29627 * doc/gccint.texi: Ditto.
29628 * doc/gcov.texi: Ditto.
29629 * doc/install.texi: Ditto.
29630 * doc/invoke.texi: Ditto.
29632 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29634 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29636 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29638 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29639 ([-Wabi]): Likewise.
29640 ([-fmessage-length]): Likewise.
29641 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29642 ([-Wno-discarded-qualifiers]): Likewise.
29643 ([-Wnodiscarded-array-qualifiers]): Likewise.
29644 ([-Wno-virtual-move-assign]): Likewise.
29645 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29646 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29647 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29648 ([-fsanitize-undefined-trap-on-error]): Likewise.
29649 ([-floop-interchange]): Likewise.
29650 ([-ftree-coalesce-inlined-vars]): Likewise.
29651 ([-fvect-cost-model]): Likewise.
29652 ([-flto]): Likewise.
29653 ([--param]): Likewise.
29654 (Spec Files): Likewise.
29655 ([-mstrict-align]): Likewise.
29656 ([-mfix-cortex-a53-835769]): Likewise.
29657 ([-march], [-mtune]): Likewise.
29658 ([-mpic-register]): Likewise.
29659 ([-munaligned-access]): Likewise.
29660 ([-msp8]): Likewise.
29661 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29662 (AVR Built-in Macros): Likewise.
29663 ([-mpreferred-stack-boundary]): Likewise.
29664 ([-mtune-crtl]): Likewise.
29665 ([-mashf]): Likewise.
29666 ([-mmcu=]): Likewise.
29667 ([-minrt]): Likewise.
29668 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29669 ([-mupper-regs]): Likewise.
29670 ([-matomic-model]): Likewise.
29671 ([-mdiv]): Likewise.
29672 ([-mzdcbranch]): Likewise.
29673 ([-mdisable-callt]): Likewise.
29674 ([-msoft-float]): Likewise.
29675 ([-m8byte-align]): Likewise.
29676 ([-fstack-reuse]): Likewise.
29678 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29680 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29681 Fix markup, light copy-editing.
29682 ([-fauto-profile]): Rewrite to fix formatting and content
29685 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29687 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29688 Copy-edit description.
29689 ([-fisolate-erroneous-paths-attribute]): Likewise.
29690 * common.opt (fisolate-erroneous-paths-dereference):
29691 Copy-edit description.
29692 (fisolate-erroneous-paths-attribute): Likewise.
29694 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29696 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29699 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29701 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29702 ([-fvtv-debug]): Likewise.
29703 ([-Wc++-compat]): Likewise.
29704 ([-Wc++11-compat]): Likewise.
29705 ([-Wc++14-compat]): Likewise.
29706 ([-Wno-sized-deallocation]): Likewise.
29707 ([-femit-class-debug-always]): Likewise.
29708 ([-femit-struct-debug-detailed]): Likewise.
29709 ([-fno-keep-inline-dllexport]): Likewise.
29710 ([-fira-algorithm]): Likewise.
29711 ([-fira-region]): Likewise.
29712 ([-flra-remat]): Likewise.
29713 ([-fipa-ra]): Likewise.
29714 ([-fhoist-adjacent-loads]): Likewise.
29715 ([-fisolate-erroneous-paths-dereference]): Likewise.
29716 ([-fisolate-erroneous-paths-attribute]): Likewise.
29717 ([-ftree-switch-conversion]): Likewise.
29718 ([-ftree-tail-merge]): Likewise.
29719 ([-ftree-loop-if-convert]): Likewise.
29720 ([-ftree-loop-if-convert-stores]): Likewise.
29721 ([-ftree-loop-distribution]): Likewise.
29722 ([-ftree-loop-distribute-patterns]): Likewise.
29723 ([-flto-compression-level]): Likewise.
29724 ([-flto-report]): Likewise.
29725 ([-flto-report-wpa]): Likewise.
29726 ([-fuse-linker-plugin]): Likewise.
29727 ([-mfix-cortex-a53-835769]): Likewise.
29728 ([-mno-fix-cortex-a53-835769]): Likewise.
29729 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
29730 explicit listing; add a note to the discussion indicating they
29731 exist. Reorder table to group similar options. Add missing
29732 @opindex entries. Add @need commands throughout the table to
29733 allow it to be split across multiple pages.
29734 ([-m8bit-idiv]): Fix @opindex.
29735 ([-mavx256-split-unaligned-load]): Likewise.
29736 ([-mavx256-split-unaligned-store]): Likewise.
29737 ([-mstack-protector-guard]): Likewise.
29738 ([-mcpu=]): Likewise.
29739 ([-mcpu]): Likewise.
29740 ([-mpointer-size=]): Likewise.
29742 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
29744 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
29745 instead of `m' constraint. Likewise for unnamed movb comparison
29746 patterns using reg_before_reload_operand predicate.
29747 * config/pa/predicates.md (reg_before_reload_operand): Tighten
29748 predicate to reject register index and LO_SUM DLT memory forms
29751 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29753 * doc/invoke.texi (Option Summary): Fix spelling of
29754 -fdevirtualize-at-ltrans.
29755 ([-fdevirtualize]): Fix markup.
29756 ([-fdevirtualize-speculatively]): Fix typo.
29757 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
29758 implementor-speaky.
29759 * common.opt (fdevirtualize-at-ltrans): Likewise.
29760 * ipa-devirt.c: Fix typos in comments throughout the file.
29761 (ipa_devirt): Fix typos in format strings for dump output.
29763 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29765 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29766 discussion of defaults, light copy-editing.
29768 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29770 * tsan.c (instrument_expr): corrected previous checkin.
29772 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29774 Instrument bit field and unaligned accesses for TSAN.
29775 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29776 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29777 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29778 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29779 unaligned memory regions.
29781 2015-01-01 Anthony Green <green@moxielogic.com>
29783 * config/moxie/predicates.md (moxie_general_movsrc_operand):
29784 Restrict move source register offsets to 16 bits.
29786 Copyright (C) 2015 Free Software Foundation, Inc.
29788 Copying and distribution of this file, with or without modification,
29789 are permitted in any medium without royalty provided the copyright
29790 notice and this notice are preserved.