1 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
3 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4 SECTION_EXCLUDE in XO mapping class.
6 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10 and handle ne and eq codes.
11 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
13 CONST_INT_P. Use reverse_condition.
14 (sh_split_treg_set_expr): Likewise.
16 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
18 * config/arm/types.md (type): Add rotate_imm.
19 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
21 (*rorsi3_insn_uxtw): Likewise.
22 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
23 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
24 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
26 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28 PR rtl-optimization/67481
29 * ifcvt.c (contains_ccmode_rtx_p): New function.
30 (insn_valid_noce_process_p): Use it.
32 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34 PR rtl-optimization/67456
35 PR rtl-optimization/67464
36 PR rtl-optimization/67465
37 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
38 move in the mode of x. Handle combination of complex and simple
39 block pairs as well as the case when one is empty.
41 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
43 * doc/gimple.texi: Update references to gimple_statement_base.
44 * gdbhooks.py: Likewise.
47 2015-09-28 Daniel Cederman <cederman@gaisler.com>
49 * config/sparc/driver-sparc.c: map LEON to leon3
51 2015-09-28 Daniel Cederman <cederman@gaisler.com>
53 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
54 and make it inverse to change default
55 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
57 * doc/invoke.texi: Document change of default
59 2015-09-28 Daniel Cederman <cederman@gaisler.com>
61 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
62 true on %f0 for a target without FPU.
63 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
65 (untyped_return): Do not load %f0 for a target without FPU.
67 2015-09-28 Andrew Pinski <apinski@cavium.com>
69 * config/aarch64/aarch64.md (prefetch):
70 Change the predicate of operand 0 to register_operand.
72 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
74 * config/i386/predicates.md (register_sse4nonimm_operand): New
76 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
77 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
78 Use register_sse4nonimm_operand as operand 0 predicate.
79 (*vec_extractv8hi_sse2): Remove insn pattern.
80 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
81 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
83 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
84 Kaz Kojima <kkojima@gcc.gnu.org>
87 * config/sh/sh-protos.h (sh_lra_p): Declare.
88 * config/sh/sh.c (sh_lra_p): Make non-static.
89 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
90 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
91 Expand into addsi3_scr if operands[2] if needed.
92 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
93 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
94 (addsi3_scr, *addsi3): New insn_and_split patterns.
96 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
98 PR rtl-optimization/64164
99 PR tree-optimization/67312
103 * cfgexpand.c (parm_in_stack_slot_p): Remove.
104 (ssa_default_def_partition): Remove.
105 (get_rtl_for_parm_ssa_default_def): Remove.
106 (set_rtl): Check that RTL assignments match expectations.
107 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
108 default def location for params and results. Record SSA names
109 or types in REG and MEM attrs, respectively.
111 (expand_one_ssa_partition): Drop logic that assigned MEMs with
112 unassigned addresses.
113 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
114 deferred stack alloc vars.
115 (expand_used_vars): Skip partitions holding parm default defs.
116 Move adjust_one_expanded_partition_var loop...
117 (pass_expand::execute): ... here. Drop redundant assert.
118 Adjust comments before the final loop over all ssa names.
119 Require assigned rtl of parms and results to match exactly.
120 Reset its attributes to match them, not any other variables in
122 (expand_debug_expr): Use entry value for PARM's default defs
123 only iff they have zero nondebug uses.
124 * cfgexpand.h (parm_in_stack_slot_p): Remove.
125 (get_rtl_for_parm_ssa_default_def): Remove.
126 (set_parm_rtl): Declare.
127 * doc/invoke.texi: Improve wording.
128 * explow.c (promote_decl_mode): Fix promote_function_mode for
129 result decls not by reference.
130 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
131 bypass TYPE_MODE to get the actual vector mode.
132 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
133 2015-08-19's changes as follows. Drop include of
134 basic-block.h and df.h.
135 (rtl_for_parm): Remove.
136 (maybe_reset_rtl_for_parm): Remove.
137 (parm_in_unassigned_mem_p): Remove.
138 (use_register_for_decl): Add logic for RESULT_DECLs matching
139 assign_parms' behavior.
140 (split_complex_args): Revert.
141 (assign_parms_augmented_arg_list): Revert. Add comment
142 referencing the logic above.
143 (assign_parm_adjust_stack_rtl): Revert.
144 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
145 of SET_DECL_RTL. Set up a REG if the parm demands so.
146 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
147 calls into a single set_parm_rtl. Set up a temporary RTL
148 temporarily for expand_assignment.
149 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
150 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
151 (assign_bounds): Revert.
152 (assign_parms): Revert. Use set_parm_rtl.
153 (allocate_struct_function): Relayout result and parms of
154 non-abstruct functions.
155 (expand_function_start): Revert. Use set_parm_rtl. If the
156 result is not a hard reg, create a pseudo from the promoted
157 mode of the default def. Promote static chain mode.
158 * tree-outof-ssa.c (remove_ssa_form): Drop unused
159 partition_has_default_def. Set up
160 partitions_for_parm_default_defs.
161 (finish_out_of_ssa): Remove partition_has_default_def.
162 Release partitions_for_parm_default_defs.
163 * tree-outof-ssa.h (struct ssaexpand): Remove
164 partition_has_default_def. Add
165 partitions_for_parm_default_defs.
166 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
168 (build_ssa_conflict_graph): Fix conflict-detection of default
169 defs of even unused default defs of params and results.
170 (for_all_parms): New.
171 (create_default_def): New.
172 (register_default_def): New.
173 (coalesce_with_default): New.
174 (create_outofssa_var_map): Create default defs for all parms
175 and results, and register their partitions. Add GIMPLE_RETURN
176 operands as coalesce candidates with results. Add default
177 defs of each parm or result as coalesce candidates with its
178 other defs. Mark each result def, and each default def of
179 parms, as used_in_copy.
180 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
181 with the ssa names, even anonymous ones. Drop
182 parm_in_stack_slot_p calls. Require same signedness and
184 (coalesce_ssa_name): Add coalesce candidates for all defs of
185 each parm and result, even unused ones.
186 (parm_default_def_partition_arg): New type.
187 (set_parm_default_def_partition): New.
188 (get_parm_default_def_partitions): New.
189 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
190 * tree-ssa-live.c (partition_view_init): Regard unused defs of
191 parms and results as used.
192 (verify_live_on_entry): Don't error out just because they're
195 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
197 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
198 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
199 (output_fde): Don't output length for debug_frame on AIX.
200 (output_call_frame_info): Don't output length for debug_frame on AIX.
201 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
202 HAVE_XCOFF_DWARF_EXTRAS.
203 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
204 HAVE_XCOFF_DWARF_EXTRAS.
205 (output_compilation_unit_header): Don't output length on AIX.
206 (output_pubnames): Don't output length on AIX.
207 (output_aranges): Delete argument. Compute length locally. Don't
208 output length on AIX.
209 (output_line_info): Don't output length on AIX.
210 (dwarf2out_finish): Don't compute aranges_length.
211 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
212 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
213 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
214 symbol decoration for AIX.
215 (rs6000_xcoff_debug_unwind_info): New.
216 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
218 (rs6000_xcoff_declare_function_name): Emit different
219 .function pseudo-op when DWARF2_DEBUG. Don't call
220 xcoffout_declare_function for DWARF2_DEBUG.
221 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
223 * config/rs6000/aix71.h: New.
224 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
226 * configure: Regenerate.
227 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
230 2015-09-26 Jeff Law <law@redhat.com>
232 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
234 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
237 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
240 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
243 * config/cris/cris.md (asrandb): Fix left shift undefined
247 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
250 * lra-constarints.c (match_reload): Check presence of the input pseudo
251 in the output operand.
253 2015-09-25 Tobias Burnus <burnus@net-b.de>
255 * doc/invoke.texi (-fsanitize): Minor wording tweak.
257 2015-09-25 Tobias Burnus <burnus@net-b.de>
259 * doc/invoke.texi (-fsanitize): Update URLs.
261 2015-09-25 Teresa Johnson <tejohnson@google.com>
263 * opts.c (finish_options): Unset -freorder-blocks-and-partition
264 if not using profile.
266 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
268 PR pretty-print/67567
269 * pretty-print.c (pp_string): Add gcc_checking_assert.
270 * pretty-print.h (output_buffer_append_r): Likewise.
272 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
275 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
276 addr2 individually. Don't emit logical or insn if one is known to
277 be aligned approriately.
278 (sh_expand_cmpnstr): Likewise.
280 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
282 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
283 __builtin_aarch64_fp[sc]r arguments into a register.
285 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
287 * config.gcc (x86_archs): Replace lakemount with lakemont.
288 (with_cpu): Likewise.
289 (with_arch): Likewise.
290 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
291 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
292 __tune_lakemount__ with __tune_lakemont__.
293 * config/i386/i386.c (lakemount_cost): Renamed to ...
294 (lakemont_cost): This.
295 (m_LAKEMOUNT): Renamed to ...
297 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
298 (processor_target_table): Replace "lakemount" with "lakemont".
299 (processor_alias_table): Likewise.
300 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
302 (ix86_adjust_cost): Likewise.
303 (ia32_multipass_dfa_lookahead): Likewise.
304 * config/i386/i386.h (processor_type): Likewise.
305 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
306 * doc/invoke.texi: Replace lakemount with lakemont. Replace
307 Lakemount with Lakemont.
309 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
311 * config.gcc (x86_archs): Replace iamcu with lakemount.
312 (with_cpu): Likewise.
313 (with_arch): Likewise.
314 * doc/invoke.texi: Likewise.
315 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
316 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
317 __tune_iamcu__ with __tune_lakemount__.
318 * config/i386/i386.c (iamcu_cost): Renamed to ...
319 (lakemount_cost): This.
320 (m_IAMCU): Renamed to ...
322 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
323 (processor_target_table): Replace "iamcu" with "lakemount".
324 (processor_alias_table): Likewise.
325 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
327 (ix86_adjust_cost): Likewise.
328 (ia32_multipass_dfa_lookahead): Likewise.
329 * config/i386/i386.h (processor_type): Likewise.
330 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
332 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
334 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
335 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
337 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
338 (pa_expand_compare_and_swap_loop): New.
339 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
340 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
341 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
342 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
343 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
346 2015-09-24 Michael Collison <michael.collison@linaro.org>
349 * read-md.c (read_name): Allow mode iterators inside angle
350 brackets in rtl expressions.
352 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
355 * ira-color.c (update_allocno_cost): Add parameter.
356 (update_costs_from_allocno): Decrease conflict cost. Pass the new
359 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
362 * opts-common.c (prune_options): Discard all -fdiagnostics-color
363 but the last one, which is moved to the front to be processed
365 * opts.c (enable_warning_as_error): Reject options that do not
368 2015-09-24 Jiong Wang <jiong.wang@arm.com>
370 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
372 2015-09-24 Jiong Wang <jiong.wang@arm.com>
374 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
375 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
376 (aarch64_cannot_force_const_mem): Likewise.
377 (aarch64_classify_address): Likewise.
378 (aarch64_classify_symbolic_expression): Likewise.
379 (aarch64_print_operand): Likewise.
380 (aarch64_classify_symbol): Likewise.
381 (aarch64_mov_operand_p): Likewise.
382 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
383 (aarch64_mov_operand): Likewise.
385 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
387 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
388 for info->spe_gp_size.
390 2015-09-24 Richard Biener <rguenther@suse.de>
393 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
396 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
398 * tree-object-size.c (plus_stmt_object_size)
399 (cond_expr_object_size): Change the formal parameters from gimple
401 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
402 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
403 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
405 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
407 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
408 Check for ld -type pie on Solaris 11.x and 12.
409 * configure: Regenerate.
410 * config.in: Regenerate.
412 * gcc.c (LD_PIE_SPEC): Allow redefinition.
414 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
415 (STARTFILE_SPEC): Use it.
416 (ENDFILE_CRTEND_SPEC): Define.
417 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
418 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
419 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
420 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
421 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
422 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
423 (ENDFILE_ARCH_SPEC): Define.
424 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
426 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
428 * configure.ac (gcc_cv_solaris_crts): New test.
429 * configure. Regenerate.
430 * config.in: Regenerate.
431 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
432 HAVE_SOLARIS_CRTS variant.
434 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
436 * tree-inline.h (count_insns_seq): Delete prototype.
437 (estimate_num_insns_seq): Define prototype.
438 * tree-inline.c (count_insns_seq): Delete.
439 (estimate_num_insns_seq): Remove static qualifier.
440 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
441 with estimate_num_insns_seq.
443 2015-09-24 Richard Biener <rguenther@suse.de>
445 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
447 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
448 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
450 (ao_ref_init_from_vn_reference): Record clique and base in the
452 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
454 2015-09-24 Richard Biener <rguenther@suse.de>
456 PR tree-optimization/48885
457 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
458 as not including any restrict tags from other pointers.
460 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
462 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
463 character when appending to offload_targets.
465 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
466 offload targets by commas, not colons.
467 * config.in: Regenerate.
468 * configure: Likewise.
469 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
470 instead of setting up the default offload targets here...
471 (process_command): ..., do it here.
473 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
474 targets are separated by commas.
475 * config.h.in: Regenerate.
477 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
478 Nathan Sidwell <nathan@codesourcery.com>
480 * omp-low.h (omp_reduction_init_op): Declare.
481 * omp-low.c (omp_reduction_init_op): New, broken out of ...
482 (omp_reduction_init): ... here. Call it.
483 * tree-parloops.c (initialize_reductions): Use
484 omp_reduction_init_op.
486 2015-09-23 Richard Biener <rguenther@suse.de>
489 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
490 undefined overflow unless they will cancel out.
492 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
494 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
497 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
500 * opts.h (write_langs): Declare.
501 * opts-global.c (write_langs): Make it extern.
503 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
506 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
507 overlapping regs when matching the pattern.
509 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
511 * config/aarch64/aarch64-simd.md
512 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
513 (aarch64_float_truncate_hi_v4sf_le): New.
514 (aarch64_float_truncate_hi_v4sf_be): Likewise.
516 2015-09-23 Richard Biener <rguenther@suse.de>
518 * tree-ssa-structalias.c (intra_create_variable_infos): Build
519 representatives for all restrict qualified pointer destinations.
521 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
523 * config/i386/i386.md (define_code_attr mshift): New.
524 (define_mode_iterator SWI1248_AVX512BW): Rename ...
525 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
527 (define_insn "*k<logic><mode>"): Use new iterator name.
528 (define_insn "*<mshift><mode>3"): New.
530 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
533 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
534 mark the block as accessible.
536 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
538 * function.c (thread_prologue_and_epilogue_insns): Delete
539 orig_entry_edge argument to try_shrink_wrapping.
540 * shrink-wrap.c (can_get_prologue): New function.
541 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
542 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
543 can_get_prologue where needed. Remove code that finds a single
544 edge for the prologue. Remove code that tests if any reg clobbered
545 by the prologue is live on the prologue edge. Remove code that finds
546 the new prologue edge after duplicating blocks. Make a new prologue
548 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
550 2015-09-22 Jeff Law <law@redhat.com>
552 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
555 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
557 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
558 -Wtemplates, -Wnamespaces): Document.
560 2015-09-22 Tom de Vries <tom@codesourcery.com>
562 PR tree-optimization/67671
563 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
564 pointer references as restrict.
566 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
568 * config/nios2/nios2.c (nios2_legitimize_address): When handling
569 'reg + reloc' cases, allow first operand to be non-REG, and use
570 force_reg() to enforce address pattern.
572 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
575 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
576 (define_mode_iterator VI12_AVX_AVX512F): New.
577 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
578 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
579 (define_insn "*<code><mode>3"): ... Into new pattern using
580 VI12_AVX_AVX512F iterators without masking.
582 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
584 * config.gcc: Support "skylake-avx512".
585 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
586 PROCESSOR_SKYLAKE_AVX512.
587 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
588 (processor_target_table): Add "skylake-avx512".
589 (PTA_SKYLAKE_AVX512): Define.
590 (ix86_option_override_internal): Add "skylake_avx512".
591 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
592 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
593 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
594 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
595 * doc/invoke.texi (skylake-avx512): New.
597 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
599 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
601 (define_insn "kunpcksi"): Ditto.
602 (define_insn "kunpckdi"): Ditto.
604 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
606 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
607 iterator instead of fixed modes.
609 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
611 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
613 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
614 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
615 out_result. Update to support update-fetch operations.
616 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
617 Adjust for change to aarch64_gen_atomic_ldop.
618 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
619 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
620 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
621 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
622 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
624 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
626 * config/aarch64/aarch64-protos.h
627 (aarch64_atomic_ldop_supported_p): Declare.
628 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
629 (enum aarch64_atomic_load_op_code): New.
630 (aarch64_emit_atomic_load_op): New.
631 (aarch64_gen_atomic_ldop): Update to support load-operate
633 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
635 (aarch64_atomic_<atomic_optab><mode>): New.
636 (aarch64_atomic_<atomic_optab><mode>_lse): New.
637 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
638 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
639 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
641 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
643 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
644 (UNSPECV_ATOMIC_LDOP_OR): New.
645 (UNSPECV_ATOMIC_LDOP_BIC): New.
646 (UNSPECV_ATOMIC_LDOP_XOR): New.
647 (UNSPECV_ATOMIC_LDOP_PLUS): New.
650 (aarch64_atomic_load<atomic_ldop><mode>): New.
652 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
654 * config/aarch64/aarch64.md
655 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
658 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
660 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
662 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
663 (aarch64_gen_atomic_ldop): New.
664 (aarch64_split_atomic_op): Fix whitespace and add a comment.
665 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
666 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
667 (atomic_exchange<mode>): Replace with an expander.
668 (aarch64_atomic_exchange<mode>): New.
669 (aarch64_atomic_exchange<mode>_lse): New.
670 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
671 (aarch64_atomic_swp<mode>): New.
673 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
675 * tree-inline.c (expand_call_inline): Use inform for extra note.
676 Do not give a note with UNKNOWN_LOCATION.
677 Replace input_location with gimple_location (stmt).
678 Use true/false instead of TRUE/FALSE.
680 2015-09-22 Tom de Vries <tom@codesourcery.com>
682 PR tree-optimization/67666
683 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
684 with single field non-conservative.
686 2015-09-21 David S. Miller <davem@davemloft.net>
690 2015-09-11 David S. Miller <davem@davemloft.net>
692 * config/sparc/constraints.md: Make "U" constraint a real register
694 * config/sparc/sparc.c (TARGET_LRA_P): Define.
695 (D_MODES, DF_MODES): Add missing cast.
696 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
697 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
698 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
700 * config/sparc/sparc.h (PROMOTE_MODE): Define.
701 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
702 provide these insn when flag_pic.
704 2015-09-17 David S. Miller <davem@davemloft.net>
706 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
708 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
710 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
711 (HARD_REGNO_CALLER_SAVE_MODE): Define.
712 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
713 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
714 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
715 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
716 provide when flag_pic.
718 2015-09-21 Jeff Law <law@redhat.com>
720 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
723 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
725 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
727 2015-09-21 Richard Biener <rguenther@suse.de>
729 * passes.c (rest_of_decl_compilation): Do not call
730 dwarf2out_early_global_decl for aliases.
732 2015-09-21 Richard Biener <rguenther@suse.de>
735 * dwarf2out.c (add_location_or_const_value_attribute): Remove
736 attribute parameter. Early exit if either DW_AT_const_value
737 or DW_AT_location are present already.
738 (gen_variable_die): Adjust caller.
739 (dwarf2out_late_global_decl): Likewise.
741 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
744 * config/sh/sh.c (sh_remove_overlapping_post_inc,
745 sh_peephole_emit_move_insn): Add new functions.
746 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
747 sh_peephole_emit_move_insn): Declere them.
748 * config/sh/sh.md: Use them in various peephole2 patterns.
750 2015-09-21 Richard Biener <rguenther@suse.de>
753 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
754 address with -fno-delete-null-pointer-checks.
756 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
758 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
759 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
760 (reduc_uplus_v16qi): Remove.
762 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
763 (reduc_<VEC_reduc_name>_v2df): Remove.
764 (reduc_<VEC_reduc_name>_v4sf): Remove.
765 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
767 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
768 gen_ function by removing * prefix.
769 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
771 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
774 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
775 Print i_bound without converting it to a tree.
777 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
779 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
780 operands[4] operands[5] swap with std::swap, removed tmp variable.
781 (arm_evpc_neon_vzip): Replaced in0/in1 and
782 out0/out1 swaps with std::swap, removed x variable.
783 (arm_evpc_neon_vtrn): Replaced in0/int1 and
784 out0/out1 swaos with std::swap, removed x variable.
785 (arm_expand_vec_perm_const_1): Replaced
786 d->op0/d->op1 swap with std::swap, removed x variable.
787 (arm_evpc_neon_vuzp): Replaced in0/in1 and
788 out0/out1 swaps with std::swap, removed x variable.
790 2015-09-21 Jonathan Yong <10walls@gmail.com>
792 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
793 sysroot/usr/lib/32api for additional win32 libraries,
794 fixes failing Cygwin bootstrapping.
796 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
798 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
800 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
803 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
804 (*mov_t_msb_neg): Rewrite negc pattern.
806 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
808 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
809 immediate generation code.
811 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
813 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
814 redundant immediate generation code.
816 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
818 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
819 (AARCH64_NUM_BITMASKS): Remove.
820 (aarch64_bitmasks_cmp): Remove.
821 (aarch64_build_bitmask_table): Remove.
823 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
825 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
826 slow immediate matching loops with a faster algorithm.
828 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
830 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
833 2015-09-20 Jeff Law <law@redhat.com>
835 PR tree-optimization/47679
836 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
837 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
838 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
839 (thread_through_normal_block): Use record_temporary_equivalences.
841 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
843 * coretypes.h (gimple): Change typedef to be a forward declaration.
844 * gimple.h (gimple_statement_base): rename to gimple.
845 * (all functions and types using gimple): Adjust.
848 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
849 David Edelsohn <dje.gcc@gmail.com>
851 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
852 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
853 (EH_FRAME_THROUGH_COLLECT2): Define.
854 (EH_TABLES_CAN_BE_READ_ONLY): Define.
855 (ASM_OUTPUT_DWARF_PCREL): Define.
856 (ASM_OUTPUT_DWARF_DATAREL): Define.
858 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
860 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
863 2015-09-18 Jeff Law <law@redhat.com>
865 PR tree-optimization/47679
866 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
868 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
869 object. Update constructor.
870 (pass_dominator::execute): Corresponding chagnes to declaration
871 and initialization of avail_exprs_stack. Update constructor call
872 for dom_opt_dom_walker object.
873 (lookup_avail_expr, record_cond): Accept additional argument. Pass
874 it down to children as needed.
875 (record_equivalences_from_incoming_edge): Likewise.
876 (eliminate_redundant_computations): Likewise.
877 (record_equivalences_from_stmt): Likewise.
878 (simplify_stmt_for_jump_threading): Likewise.
879 (record_temporary_equivalences): Likewise.
880 (optimize_stmt): Likewise.
881 (dom_opt_dom_walker::thread_across_edge): Update access to
882 avail_exprs_stack object and pass it to children as needed.
883 (dom_opt_dom_walker::before_dom_children): Similarly.
884 (dom_opt_dom_walker::after_dom_children): Similarly.
885 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
886 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
887 Add avail_expr_stack argument. Pass it to children as needed.
888 (dummy_simplify): Likewise.
889 (simplify_control_stmt_condition): Likewise.
890 (thread_around_empty_blocks): Likewise.
891 (thread_through_normal_block): Likewise.
892 (thread_across_edge): Likewise.
893 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
894 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
896 PR tree-optimization/47679
897 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
899 (dom_opt_dom_walker): New private member holding the const_and_copies
900 object. Update constructor.
901 (pass_dominator::execute): Corresponding changes to declaration
902 and initialization of const_and_copies. Update constructor call
903 for the dom_opt_dom_walker object.
904 (record_temporary_equivalences): Accept const_and_copies argument
905 pass it down to children as needed.
906 (record_equality): Likewise.
907 (record_equivalences_from_incoming_edge): Likewise.
908 (cprop_into_successor_phis, optimize_stmt): Likewise.
909 (eliminate_redundant_computations): Likewise.
910 (dom_opt_dom_walker::thread_across_edge): Update access to
911 const_and_copies object and pass it to children as needed.
912 (dom_opt_dom_walker::before_dom_children): Similarly.
913 (dom_opt_dom_walker::after_dom_children): Similarly.
915 PR tree-optimization/47679
916 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
917 it into the avail_exprs_stack class.
918 (pass_dominator::execute): Corresponding changes to declaration
919 and initialization of avail_exprs. Pass avail_exprs to
920 dump_dominator_optimization_stats.
921 (record_cond): Extract avail_exprs from avail_exprs_stack.
922 (lookup_avail_expr): Similarly.
923 (htab_staticstics): Remove unnecessary prototype. Move to earlier
925 (dump_dominator_optimization_stats): Make static and prototype.
926 Add argument for the hash table to dump.
927 (debug_dominator_optimization_stats): Remove.
928 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
930 (debug_dominator_optimization_stats): Similarly.
931 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
932 "void" in prototype for pop_to_marker method. Add accessor method
933 for the underlying avail_exprs table.
935 * tree-ssa-threadedge.c: Remove trailing whitespace.
937 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
939 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
941 (pa_ldil_cint_p): Likewise.
942 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
943 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
945 * config/pa/pa.md: Likewise.
947 2015-09-18 David Malcolm <dmalcolm@redhat.com>
949 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
950 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
951 (diagnostic_show_locus): Likewise.
952 (diagnostic_print_caret_line): Likewise.
953 * diagnostic-show-locus.c: New file.
955 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
957 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
958 "back" parameter. Declare label in #if block.
960 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
963 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
964 the address to a register.
966 2015-09-18 Jeff Law <law@redhat.com>
968 PR tree-optimization/47679
969 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
970 * tree-ssa-dom.c: Remove unnecessary header includes.
971 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
972 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
973 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
974 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
975 (pass_phi_only_cprop::execute): Likewise.
976 (make_pass_phi_only_cprop): Likewise.
977 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
978 uses of file scoped statics by passing the required objects
979 as parameters wherever needed.
981 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
982 David Edelsohn <dje.gcc@gmail.com>
984 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
985 EH_FRAME_THROUGH_COLLECT2.
986 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
988 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
989 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
990 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
991 * except.c (switch_to_exception_section): Use a read-only section
992 even if EH_FRAME_SECTION_NAME is undefined.
993 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
994 * collect2.c (write_c_file_stat): Provide dbase on AIX.
995 (scan_prog_file): Don't export __dso_handle nor
997 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
998 (EH_TABLES_CAN_BE_READ_ONLY): Define.
999 (ASM_OUTPUT_DWARF_PCREL): Define.
1000 (ASM_OUTPUT_DWARF_DATAREL): Define.
1001 (EH_FRAME_THROUGH_COLLECT2): Define.
1002 (EH_FRAME_IN_DATA_SECTION): Delete.
1003 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1004 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1006 (rs6000_asm_output_dwarf_datarel): Declare.
1007 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1008 (rs6000_aix_asm_output_dwarf_datarel): New.
1009 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1010 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1011 (EH_FRAME_THROUGH_COLLECT2): Define.
1012 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1013 (EH_FRAME_THROUGH_COLLECT2): Define.
1014 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1015 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1016 (EH_FRAME_THROUGH_COLLECT2): New.
1017 (ASM_OUTPUT_DWARF_DATAREL): New.
1018 * doc/tm.texi: Regenerate.
1020 2015-09-18 Richard Biener <rguenther@suse.de>
1022 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1023 we're in early phase.
1024 (schedule_generic_params_dies_gen): Likewise.
1025 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1026 work as possible, retaining unhandled cases.
1027 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1028 clear out generic_type_instances at the end.
1029 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1030 (dwarf2out_early_finish): ... here. Do most of
1031 gen_remaining_tmpl_value_param_die_attribute here.
1033 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1035 PR tree-optimization/67283
1036 * tree-sra.c (type_consists_of_records_p): Rename to...
1037 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1038 (completely_scalarize_record): Rename to...
1039 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1040 (scalarize_elem): New.
1041 (analyze_all_variable_accesses): Follow renamings.
1043 2015-09-18 Richard Biener <rguenther@suse.de>
1045 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1048 2015-09-18 Richard Biener <rguenther@suse.de>
1050 PR tree-optimization/66142
1051 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1052 treat MEM[&x] and x the same.
1053 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1054 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1055 when we simplified sth.
1056 (vn_reference_maybe_forwprop_address): Likewise.
1057 (valueize_refs_1): When we simplified through
1058 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1059 set valueized_anything to true.
1060 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1061 one ref kills the other instead of just a offset-based test.
1062 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1063 for the operand_equal_p test to compare bases and also compare
1066 2015-09-17 Christian Bruel <christian.bruel@st.com>
1068 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1070 2015-09-17 Richard Henderson <rth@redhat.com>
1073 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1074 pointers that encode the alignment of the object.
1076 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1078 PR rtl-optimization/66790
1079 * df-problems.c (LIVE): Amend documentation.
1081 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1083 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1085 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1086 * genopinit.c (main): Add an include guard to insn-opinit.h.
1087 Protect the rtx_code parts with NUM_RTX_CODE.
1088 * optabs.h: Split parts out to...
1089 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1090 * optabs.c: Split parts out to...
1091 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1092 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1093 * fold-const.c: Likewise.
1094 * target-globals.c: Likewise.
1095 * tree-if-conv.c: Likewise.
1096 * tree-ssa-forwprop.c: Likewise.
1097 * tree-ssa-loop-prefetch.c: Likewise.
1098 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1099 Remove unncessary include files.
1100 * tree-ssa-phiopt.c: Likewise.
1101 * tree-ssa-reassoc.c: Likewise.
1102 * tree-switch-conversion.c: Likewise.
1103 * tree-vect-data-refs.c: Likewise.
1104 * tree-vect-generic.c: Likewise.
1105 * tree-vect-loop.c: Likewise.
1106 * tree-vect-patterns.c: Likewise.
1107 * tree-vect-slp.c: Likewise.
1108 * tree-vect-stmts.c: Likewise.
1109 * tree-vrp.c: Likewise.
1110 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1111 rather than optabs.h.
1112 * expr.c: Include optabs-tree.h.
1113 * function.c: Likewise.
1115 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1118 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1119 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1120 * config/arm/arm.c: Include common/common-target.h.
1121 (use_return_insn): Return 0 if the static chain register was saved
1122 above a non-APCS frame.
1123 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1124 (struct scratch_reg): New.
1125 (get_scratch_register_on_entry): New function.
1126 (release_scratch_register_on_entry): Likewise.
1127 (arm_emit_probe_stack_range): Likewise.
1128 (output_probe_stack_range): Likewise.
1129 (arm_expand_prologue): Factor out code dealing with the IP register
1130 for nested function and adjust it for stack checking.
1131 Invoke arm_emit_probe_stack_range if static builtin stack checking
1133 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1135 (arm_expand_epilogue): Add the saved static chain register, if any, to
1136 the amount of pre-pushed registers to pop.
1137 (arm_frame_pointer_required): Return true if static stack checking is
1138 enabled and we want to catch the exception with the EABI unwinder.
1139 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1140 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1141 * config/arm/arm.md (probe_stack): New insn.
1142 (probe_stack_range): Likewise.
1144 2015-09-17 Richard Biener <rguenther@suse.de>
1146 * genmatch.c (parser::parse_expr): Improve error message
1147 for mis-placed flags.
1149 2015-09-17 Richard Biener <rguenther@suse.de>
1151 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1152 debug hook when we created a varpool node.
1153 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1154 dwarf2out_early_global_decl, when not just add location or
1155 value attributes to existing DIEs.
1157 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1159 * config/aarch64/aarch64.md (copysigndf3): New.
1160 (copysignsf3): Likewise.
1162 2015-09-17 David S. Miller <davem@davemloft.net>
1164 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1165 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1166 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1167 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1168 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1169 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1170 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1171 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1172 provide when flag_pic.
1174 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1176 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1177 object_allocator change.
1179 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1181 PR tree-optimization/66388
1182 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1183 (dump_iv): Dump no_overflow information.
1184 (alloc_iv): Initialize new field for struct iv.
1185 (mark_bivs): Count number of no_overflow bivs.
1186 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1188 (idx_find_step): Call new functions above.
1189 (add_candidate_1, add_candidate): New paramter.
1190 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1191 (get_computation_aff): Simplify convertion of cand for BIV.
1192 (get_computation_cost_at): Step cand's base if necessary.
1194 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1196 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1198 (tree_simplify_using_condition): Ditto.
1199 (simplify_using_initial_conditions): Ditto.
1200 (loop_exits_before_overflow): Pass new argument to function
1201 simplify_using_initial_conditions. Remove case for type conversions
1203 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1205 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1206 in iv base using loop initial conditions.
1208 2015-09-16 Jeff Law <law@redhat.com>
1210 PR tree-optimization/47679
1211 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1212 (free_all_edge_infos): Use it.
1213 (allocate_edge_info): Free preexisting edge info data.
1214 (pass_dominator::execute): Set up initial edge info structures.
1215 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1217 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1218 If non-null, then push/pop markers appropriately.
1219 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1220 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1223 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1225 * config/ft32/ft32.c: Fix the memory address space predicate.
1227 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1230 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1231 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1233 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1235 * toplev.h (check_global_declaration): Remove declaration.
1236 * toplev.c (check_global_declaration): Move to ...
1237 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1238 (analyze_functions): Update call.
1240 2015-09-16 David S. Miller <davem@davemloft.net>
1242 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1243 lowpart of a SUBREG has offset zero.
1245 2015-09-16 Jeff Law <law@redhat.com>
1247 PR tree-optimization/47679
1248 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1249 tree-ssa-scopedtables.h.
1250 (struct hashable_expr, class expr_hash_elt): Likewise.
1251 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1252 Move associated methods into tree-ssa-scopedtables.c.
1253 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1254 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1255 (add_hashable_expr): Likewise.
1256 (record_cond): Delete element directly.
1257 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1258 private copy ctor and assignment operator methods.
1259 (expr_elt_hasher): Inline trivial methods.
1260 (initialize_expr_from_cond): Prototype.
1261 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1262 methods that were previously in tree-ssa-dom.c. Improve various
1265 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1267 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1269 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1272 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1275 2015-09-16 Richard Biener <rguenther@suse.de>
1278 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1279 location of possibly shared trees.
1281 2015-09-16 Richard Biener <rguenther@suse.de>
1284 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1286 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1288 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1289 offset and size computations instead of HOST_WIDE_INT.
1291 2015-09-16 Richard Biener <rguenther@suse.de>
1294 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1295 result before builting a tree via wide_int_to_tree.
1297 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1299 * Makefile.in: Add memory-block.cc
1300 (pool_allocator::initialize): Use fixed block size.
1301 (pool_allocator::release): Use memory_block_pool.
1302 (pool_allocator::allocate): Likewise.
1303 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1305 * cfg.c (initialize_original_copy_tables): Likewise.
1306 * cselib.c (elt_list_pool, elt_loc_list_pool,
1307 cselib_val_pool): Likewise.
1308 * df-problems.c (df_chain_alloc): Likewise.
1309 * df-scan.c (df_scan_alloc): Likewise.
1310 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1311 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1312 group_info_pool, deferred_change_pool): Likewise.
1313 * et-forest.c (et_nodes, et_occurrences): Likewise.
1314 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1315 ipcp_agg_lattice_pool): Likewise.
1316 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1317 * ipa-profile.c (histogram_pool): Likewise.
1318 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1319 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1320 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1321 * ira-color.c (update_cost_record_pool): Likewise.
1322 * lra-lives.c (lra_live_range_pool): Likewise.
1323 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1324 * memory-block.cc: New file.
1325 * memory-block.h: New file.
1326 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1327 * sched-deps.c (sched_deps_init): Likewise.
1328 * sel-sched-ir.c (sched_lists_pool): Likewise.
1329 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1330 * tree-sra.c (access_pool): Likewise.
1331 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1332 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1333 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1334 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1335 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1336 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1337 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1338 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1340 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1342 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1344 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1347 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1349 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1350 to pass TLS call argument, according to current ABI.
1351 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1352 callx0 for TLS call, according to current ABI.
1354 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1356 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1357 on stack restore statements.
1358 (decide_copy_try_finally): Do not consider a stack restore statement as
1359 coming from sources.
1361 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1363 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1364 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1366 2015-09-15 Jeff Law <law@redhat.com>
1368 PR tree-optimization/47679
1369 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1370 methods and private members.
1371 (avail_exprs_stack): Similarly. Change type of global
1372 from a pair of expr_hash_elt_t to the new class.
1373 (expr_elt_hasher::hash): Corresponding changes.
1374 (expr_elt_hasher::equal): Similarly.
1375 (avail_expr_hash): Similarly.
1376 (pass_dominator::execute): Similarly.
1377 (dom_opt_dom_walker::thread_across_edge): Similarly.
1378 (record_cond): Similarly.
1379 (dom_opt_dom_walker::before_dom_children): Similarly.
1380 (dom_opt_dom_walker::after_dom_children): Similarly.
1381 (lookup_avail_expr): Likewise.
1382 (initialize_hash_element): Now a expr_hash_elt constructor.
1383 (initialize_hash_element_from_expr): Similarly.
1384 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1385 (free_expr_hash_elt): Call dtor for the element.
1386 (remove_local_expressions_from_table): Now the "pop_to_marker"
1387 method in the available_exprs_stack class.
1388 (avail_expr_stack::record_expr): Method factored out.
1389 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1391 (hashable_expr_equal_p): Fix formatting.
1393 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1395 * input.h (location_get_source_line): Drop "expanded_location"
1396 param in favor of a file and line number.
1397 * input.c (location_get_source_line): Likewise.
1398 (dump_location_info): Update for change in signature of
1399 location_get_source_line.
1400 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1402 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1404 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1405 Bump to 4KB for SJLJ exceptions.
1406 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1407 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1408 * doc/tm.texi: Regenerate.
1410 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1412 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1413 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1416 2015-09-15 Richard Biener <rguenther@suse.de>
1418 PR tree-optimization/67470
1419 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1420 structure for PHI hoisting by inserting a forwarder block
1423 2015-09-15 Christian Bruel <christian.bruel@st.com>
1425 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1426 (arm_option_print): New function.
1428 2015-09-15 Christian Bruel <christian.bruel@st.com>
1431 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1432 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1433 Remove flags parameter.
1434 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1435 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1436 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1437 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1438 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1439 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1440 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1441 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1443 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1445 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1447 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1448 AARCH64_VALID_SIMD_DREG_MODE.
1450 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1452 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1453 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1454 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1455 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1456 aarch64_ld4_lane<mode>): Combine together, making...
1457 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1458 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1459 aarch64_st4_lane<mode>): Combine together, making...
1460 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1461 * config/aarch64/iterators.md (nregs): Add comment.
1463 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1465 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1466 Change operand mode from <V_TWO_ELEM> to BLK.
1467 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1468 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1469 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1470 (aarch64_ld2_lane<mode>): Likewise.
1471 (aarch64_st2_lane<VQ:mode>): Likewise.
1472 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1474 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1476 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1477 Change operand mode from <V_FOUR_ELEM> to BLK.
1478 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1479 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1480 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1481 (aarch64_ld4_lane<mode>): Likewise.
1482 (aarch64_st4_lane<mode>): Likewise.
1483 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1485 2015-09-15 Richard Biener <rguenther@suse.de>
1488 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1489 transfer EH info from old to new stmt.
1490 (replace_call_with_value): Likewise.
1491 (replace_call_with_call_and_fold): Likewise.
1492 (gimple_fold_builtin_memory_op): Likewise.
1493 (gimple_fold_builtin_memset): Likewise.
1494 (gimple_fold_builtin_stpcpy): Likewise.
1495 (gimple_fold_call): Likewise.
1497 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1499 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1501 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1502 (aarch64_simd_intEI_type_node): Likewise.
1503 (aarch64_simd_builtin_std_type): Remove EImode case.
1504 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1505 * config/aarch64/aarch64-modes.def: Remove EImode.
1507 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1509 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1510 Change operand mode from <V_THREE_ELEM> to BLK.
1511 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1512 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1513 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1514 (aarch64_ld3_lane<mode>): Likewise.
1515 (aarch64_st3_lane<mode>): Likewise.
1516 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1518 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1520 * config/aarch64/aarch64-simd.md
1521 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1522 Change all TImode operands to BLKmode.
1523 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1524 Change all EImode operands to BLKmode.
1525 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1526 Change all OImode operands to BLKmode.
1528 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1529 and call set_mem_size.
1530 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1532 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1534 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1536 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1538 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1540 (vec_store_lanesci_lane<mode>): Rename to...
1541 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1543 (vec_store_lanesxi_lane<mode>): Rename to...
1544 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1546 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1547 aarch64_st4_lane<mode>): Follow renaming.
1549 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1551 * config/s390/s390.c (s390_const_operand_ok): Add missing
1554 2015-09-15 Richard Biener <rguenther@suse.de>
1557 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1559 * lto-streamer-out.c (clear_line_info): Likewise.
1561 2015-09-15 Richard Biener <rguenther@suse.de>
1563 * doc/match-and-simplify.texi: Fix wording.
1565 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1567 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1568 unnecessary type conversion in op1.
1570 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1572 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1573 (dup_block_and_redirect): Delete function.
1574 (can_dup_for_shrink_wrapping): New function.
1575 (fix_fake_fallthrough_edge): New function.
1576 (try_shrink_wrapping): Rewrite function.
1577 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1579 2015-09-14 Rich Felker <dalias@libc.org>
1581 * configure.ac: Change target pattern for sh TLS support
1582 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1583 * configure: Regenerate.
1585 2015-09-14 Jeff Law <law@redhat.com>
1587 PR tree-optimization/47679
1588 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1589 type rather than void *.
1591 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1594 * diagnostic.c (diagnostic_initialize): Do not set
1595 some_warnings_are_errors.
1596 (diagnostic_finish): Use DK_WERROR count instead.
1597 (diagnostic_report_diagnostic): Do not set
1598 some_warnings_are_errors.
1599 * diagnostic.h (struct diagnostic_context): Remove
1600 some_warnings_are_errors.
1602 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1604 * config/sparc/predicates.md (const_all_ones_operand): Use
1605 CONSTM1_RTX to simplify definition.
1607 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1610 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1613 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1615 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1616 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1617 OPT_fshow_column to handled saved option cases.
1618 (append_compiler_options): Do not skip the above added options.
1620 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1623 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1624 nopcrelative_literal_loads.
1625 (aarch64_classify_address): Likewise.
1626 (aarch64_constant_pool_reload_icode): Define.
1627 (aarch64_secondary_reload): Handle secondary reloads for
1629 (aarch64_override_options): Handle nopcrelative_literal_loads.
1630 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1631 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1633 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1634 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1635 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1637 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1639 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1642 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1643 sync_compare_and_swap_optab libcall to target_oval.
1645 2015-09-14 Marek Polacek <polacek@redhat.com>
1647 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1649 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1651 2015-09-11 Mark Wielaard <mjw@redhat.com>
1654 * toplev.c (check_global_declaration): Check and use
1655 warn_unused_const_variable.
1656 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1657 (-Wunused-variable): Remove non-constant. For C implies
1658 -Wunused-const-variable.
1659 (-Wunused-const-variable): New.
1661 2015-09-14 Richard Biener <rguenther@suse.de>
1663 * doc/match-and-simplify.texi: Update for changed syntax
1664 of inner ifs and the new switch expression.
1666 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1668 * config/i386/haswell.md: New file describing Haswell pipeline.
1669 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1670 haswell-like processors.
1671 (ix86_reassociation_width): Increase reassociation width for 64-bit
1672 Haswell processor family.
1673 * config/i386/i386.md: Introduce haswell cpu and include new md file.
1675 2015-09-14 Richard Biener <rguenther@suse.de>
1677 * doc/match-and-simplify.texi: Fixup some formatting issues
1678 and document the 's' flag.
1680 2015-09-13 Olivier Hainque <hainque@adacore.com>
1681 Eric Botcazou <ebotcazou@adacore.com>
1683 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
1684 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
1685 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
1686 (TARGET_CPU_gr5): Likewise.
1687 (TARGET_CPU_gr6): Likewise.
1688 (MULTILIB_DEFAULTS): Likewise.
1689 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
1690 for mcpu=gr5 and mcpu=gr6.
1691 (MULTILIB_DIRNAMES): Adjust accordingly.
1693 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1695 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
1696 (mem_ref_p): Likewise.
1697 (outermost_indep_loop): Adjust.
1698 (mem_ref_in_stmt): Likewise.
1699 (determine_max_movement): Likewise.
1700 (mem_ref_alloc): Likewise.
1701 (record_mem_ref_loc): Likewise.
1702 (set_ref_stored_in_loop): Likewise.
1703 (mark_ref_stored): Likewise.
1704 (gather_mem_refs_stmt): Likewise.
1705 (mem_refs_may_alias_p): Likewise.
1706 (for_all_locs_in_loop): Likewise.
1707 (struct rewrite_mem_ref_loc): Likewise.
1708 (rewrite_mem_refs): Likewise.
1709 (struct first_mem_ref_loc_1): Likewise.
1710 (first_mem_ref_loc): Likewise.
1711 (struct sm_set_flag_if_changed): Likewise.
1712 (execute_sm_if_changed_flag_set): Likewise.
1713 (execute_sm): Likewise.
1714 (hoist_memory_references):
1715 (struct ref_always_accessed): Likewise.
1716 (ref_always_accessed_p): Likewise.
1717 (refs_independent_p): Likewise.
1718 (record_dep_loop): Likewise.
1719 (ref_indep_loop_p_1): Likewise.
1720 (ref_indep_loop_p_2): Likewise.
1721 (ref_indep_loop_p): Likewise.
1722 (can_sm_ref_p): Likewise.
1723 (find_refs_for_sm): Likewise.
1724 (tree_ssa_lim_finalize): Likewise.
1726 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1728 * dwarf2out.c (dw_attr_ref): Remove typedef.
1729 (dw_line_info_ref): Likewise.
1730 (pubname_ref): Likewise.
1731 (dw_ranges_ref): Likewise.
1732 (dw_ranges_by_label_ref): Likewise.
1733 (comdat_type_node_ref): Likewise.
1735 (get_AT_low_pc): Likewise.
1736 (get_AT_hi_pc): Likewise.
1737 (get_AT_string): Likewise.
1738 (get_AT_flag): Likewise.
1739 (get_AT_unsigned): Likewise.
1740 (get_AT_ref): Likewise.
1741 (get_AT_file): Likewise.
1742 (remove_AT): Likewise.
1743 (print_die): Likewise.
1744 (check_die): Likewise.
1745 (die_checksum): Likewise.
1746 (attr_checksum_ordered): Likewise.
1747 (struct checksum_attributes): Likewise.
1748 (collect_checksum_attributes): Likewise.
1749 (die_checksum_ordered): Likewise.
1750 (same_die_p): Likewise.
1751 (is_declaration_die): Likewise.
1752 (clone_die): Likewise.
1753 (clone_as_declaration): Likewise.
1754 (copy_declaration_context): Likewise.
1755 (break_out_comdat_types): Likewise.
1756 (copy_decls_walk): Likewise.
1757 (output_location_lists): Likewise.
1758 (external_ref_hasher::hash): Likewise.
1759 (optimize_external_refs_1): Likewise.
1760 (build_abbrev_table): Likewise.
1761 (size_of_die): Likewise.
1762 (unmark_all_dies): Likewise.
1763 (size_of_pubnames): Likewise.
1764 (output_die_abbrevs): Likewise.
1765 (output_die): Likewise.
1766 (output_pubnames): Likewise.
1767 (add_ranges_num): Likewise.
1768 (add_ranges_by_labels): Likewise.
1769 (add_high_low_attributes): Likewise.
1770 (gen_producer_string): Likewise.
1771 (dwarf2out_set_name): Likewise.
1772 (new_line_info_table): Likewise.
1773 (prune_unused_types_walk_attribs): Likewise.
1774 (prune_unused_types_update_strings): Likewise.
1775 (prune_unused_types): Likewise.
1776 (resolve_addr): Likewise.
1777 (optimize_location_lists_1): Likewise.
1778 (index_location_lists): Likewise.
1779 (dwarf2out_finish): Likewise.
1781 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1783 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1785 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1787 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1788 (dump_asserts_for): Adjust.
1789 (register_new_assert_for): Likewise.
1790 (process_assert_insertions): Likewise.
1791 (insert_range_assertions): Likewise.
1793 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1795 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1797 (new_temp_expr_table): Adjust.
1798 (free_temp_expr_table): Likewise.
1799 (version_to_be_replaced_p): Likewise.
1800 (make_dependent_on_partition): Likewise.
1801 (add_to_partition_kill_list): Likewise.
1802 (remove_from_partition_kill_list): Likewise.
1803 (add_dependence): Likewise.
1804 (finished_with_expr): Likewise.
1805 (process_replaceable): Likewise.
1806 (kill_expr): Likewise.
1807 (kill_virtual_exprs): Likewise.
1808 (mark_replaceable): Likewise.
1809 (find_replaceable_in_bb): Likewise.
1810 (find_replaceable_exprs): Likewise.
1811 (debug_ter): Likewise.
1813 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1815 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1816 (struct btr_user): Rename from btr_user_s.
1817 (struct btr_def): Rename from btr_def_s.
1818 (find_btr_def_group): Adjust.
1819 (add_btr_def): Likewise.
1820 (new_btr_user): Likewise.
1821 (note_other_use_this_block): Likewise.
1822 (compute_defs_uses_and_gen): Likewise.
1823 (link_btr_uses): Likewise.
1824 (build_btr_def_use_webs): Likewise.
1825 (block_at_edge_of_live_range_p): Likewise.
1826 (btr_def_live_range): Likewise.
1827 (combine_btr_defs): Likewise.
1828 (move_btr_def): Likewise.
1829 (migrate_btr_def): Likewise.
1830 (migrate_btr_defs): Likewise.
1832 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1834 * var-tracking.c (shared_hash_def): Rename to shared_hash.
1835 (shared_hash): Remove typedef.
1836 (struct dataflow_set): Adjust.
1837 (shared_hash_unshare): Likewise.
1838 (dataflow_set_merge): Likewise.
1839 (vt_initialize): Likewise.
1840 (vt_finalize): Likewise.
1842 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1844 * var-tracking.c (struct location_chain): Rename from
1846 (struct variable_part): Adjust.
1847 (variable_htab_free): Likewise.
1848 (unshare_variable): Likewise.
1849 (get_init_value): Likewise.
1850 (get_addr_from_local_cache): Likewise.
1851 (drop_overlapping_mem_locs): Likewise.
1852 (val_reset): Likewise.
1853 (struct variable_union_info): Likewise.
1854 (variable_union): Likewise.
1855 (find_loc_in_1pdv): Likewise.
1856 (insert_into_intersection): Likewise.
1857 (intersect_loc_chains): Likewise.
1858 (canonicalize_loc_order_check): Likewise.
1859 (canonicalize_values_mark): Likewise.
1860 (canonicalize_values_star): Likewise.
1861 (canonicalize_vars_star): Likewise.
1862 (variable_merge_over_cur): Likewise.
1863 (remove_duplicate_values): Likewise.
1864 (variable_post_merge_new_vals): Likewise.
1865 (variable_post_merge_perm_vals): Likewise.
1866 (find_mem_expr_in_1pdv): Likewise.
1867 (dataflow_set_preserve_mem_locs): Likewise.
1868 (dataflow_set_remove_mem_locs): Likewise.
1869 (variable_part_different_p): Likewise.
1870 (onepart_variable_different_p): Likewise.
1871 (find_src_set_src): Likewise.
1872 (dump_var): Likewise.
1873 (set_slot_part): Likewise.
1874 (clobber_slot_part): Likewise.
1875 (delete_slot_part): Likewise.
1876 (vt_expand_var_loc_chain): Likewise.
1877 (emit_note_insn_var_location): Likewise.
1878 (vt_finalize): Likewise.
1880 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1882 * dse.c (store_info_t): Remove typedef.
1883 (group_info_t): Likewise.
1884 (const_group_info_t): Likewise.
1885 (deferred_change_t): Likewise.
1886 (get_group_info): Adjust.
1887 (free_store_info): Likewise.
1888 (canon_address): Likewise.
1889 (clear_rhs_from_active_local_stores): Likewise.
1890 (record_store): Likewise.
1891 (replace_read): Likewise.
1892 (check_mem_read_rtx): Likewise.
1893 (scan_insn): Likewise.
1894 (remove_useless_values): Likewise.
1895 (dse_step1): Likewise.
1896 (dse_step2_init): Likewise.
1897 (dse_step2_nospill): Likewise.
1898 (scan_stores_nospill): Likewise.
1899 (scan_reads_nospill): Likewise.
1900 (dse_step3_exit_block_scan): Likewise.
1901 (dse_step3): Likewise.
1902 (dse_step5_nospill): Likewise.
1903 (dse_step6): Likewise.
1905 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1907 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1908 (alias_set_entry): Remove typedef.
1909 (alias_set_subset_of): Adjust.
1910 (alias_sets_conflict_p): Likewise.
1911 (init_alias_set_entry): Likewise.
1912 (get_alias_set): Likewise.
1913 (new_alias_set): Likewise.
1914 (record_alias_subset): Likewise.
1916 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
1918 * doc/install.texi (Downloading the source): Mark up
1919 contrib/download_prerequisites properly and drop leading "./".
1921 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1923 * config/arc/arc.h: Remove define of STRUCT_VALUE.
1924 * config/lm32/lm32.h: Likewise.
1925 * config/mep/mep.h: Likewise.
1926 * config/visium/visium.h: Likewise.
1927 * system.h: Poison STRUCT_VALUE macro.
1929 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1931 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1932 CONSTANT_P operands.
1934 2015-09-11 David S. Miller <davem@davemloft.net>
1936 * config/sparc/constraints.md: Make "U" constraint a real register
1938 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1939 (D_MODES, DF_MODES): Add missing cast.
1940 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1941 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1942 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1944 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1945 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1946 provide these insn when flag_pic.
1948 2015-09-11 Jeff Law <law@redhat.com>
1950 PR tree-optimization/47679
1951 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1952 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1953 member with m_. Update inline member functions as necessary. Add
1955 * tree-ssa-scopedtables.c: Update const_and_copies's member
1956 functions to use m_ prefix to access the stack.
1958 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1960 * graphite-optimize-isl.c (disable_tiling): Remove.
1961 (get_schedule_for_band): Do not use disable_tiling.
1962 (get_prevector_map): Delete function.
1963 (enable_polly_vector): Remove.
1964 (get_schedule_for_band_list): Remove dead code.
1966 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1968 * graphite-optimize-isl.c (get_tile_map): Refactor.
1969 (get_schedule_for_band): Same.
1970 (getScheduleForBand): Same.
1971 (get_prevector_map): Same.
1972 (get_schedule_for_band_list): Same.
1973 (get_schedule_map): Same.
1974 (get_single_map): Same.
1975 (apply_schedule_map_to_scop): Same.
1976 (optimize_isl): Same.
1978 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1981 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1983 * config/aarch64/iterators.md (GPF_TF_F16): New.
1986 2015-09-10 Nathan Sidwell <nathan@acm.org>
1988 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1989 (nvptx_reorg): Adjust comments.
1991 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
1994 * configure.ac: Check if setenv and unsetenv are declared.
1995 * configure: Rebuild.
1996 * config.in: Rebuild.
1997 * system.h: Declare setenv and unsetenv if not declared.
1999 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2001 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2002 commentary to simplify permute mask adjustment equation.
2003 (special_handling_values): Add SH_VPERM.
2004 (const_load_sequence_p): New function.
2005 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2006 the mask loaded from the constant pool.
2007 (adjust_vperm): New function.
2008 (handle_special_swappables): Call adjust_vperm.
2009 (dump_swap_insn_table): Handle SH_VPERM.
2011 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2013 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2014 * shrink-wrap.h (requires_stack_frame_p): Put back.
2016 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2018 * reload1.c (elimination_costs_in_insn): Locally turn
2019 -Wmaybe-uninitialized into a warning.
2021 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2023 * shrink-wrap.c (requires_stack_frame_p): Make static.
2024 (prepare_shrink_wrap): Likewise.
2025 (dup_block_and_redirect): Likewise.
2026 * shrink-wrap.h: Remove declarations of those functions.
2028 2015-09-10 Mark Wielaard <mjw@redhat.com>
2030 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2032 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2035 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2036 missing simplify_gen_subreg.
2038 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2040 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2041 the vector element is bigger than 64 bit.
2043 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2045 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2046 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2048 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2050 * config/s390/s390.c: Add V1TImode to constant pool modes.
2052 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2055 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2056 predicate. Set predicable_short_it attr to "no".
2058 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2060 PR rtl-optimization/67421
2061 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2062 left wide shift tranformation.
2064 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2066 * common/config/arc/arc-common.c: Remove references to A5.
2067 * config/arc/arc-opts.h: Likewise.
2068 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2069 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2070 * config/arc/t-arc-newlib: Likewise.
2072 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2074 * config/arc/arc.md (length): Fix attribute length for conditional
2075 executed instructions with long immediate.
2077 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2079 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2080 type for second alternative.
2082 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2084 * doc/invoke.texi (Downloading GCC): Mention
2085 contrib/download_prerequisites script.
2087 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2090 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2091 for combined loop, assert seen_error () and return GS_ERROR.
2094 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2095 if decl is already in outer->variables.
2098 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2099 asserting that decl is not specified in octx->variables,
2100 break out of the loop if it is.
2103 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2104 iterator is not explicitly determined, but is defined inside
2105 of the combined workshare region, handle it like if it has
2106 DECL_EXPR in OMP_FOR_PRE_BODY.
2108 2015-09-09 Nathan Sidwell <nathan@acm.org>
2110 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2111 (*cmp<mode>): Add assembler spacing.
2112 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2113 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2115 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2116 (nvptx_expand_call): Likewise.
2117 (nvptx_output_call_insn): Likewise.
2118 (nvptx_reorg_subreg): Add spacing.
2120 2015-09-09 Marek Polacek <polacek@redhat.com>
2123 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2126 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2129 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2131 2015-09-09 Tom de Vries <tom@codesourcery.com>
2133 * params-list.h: Add missing copyright notice.
2135 2015-09-09 Nathan Sidwell <nathan@acm.org>
2137 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2138 sel_truesi, not andsi.
2140 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2142 * config/arm/arm.md (*subsi3_compare0): Rename to...
2143 (subsi3_compare0): ... This.
2144 (modsi3): New define_expand.
2145 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2146 when operand is power of 2.
2148 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2150 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2151 (*neg<mode>2_compare0): Rename to...
2152 (neg<mode>2_compare0): ... This.
2153 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2154 Move check for speed inside the if-then-elses. Reflect
2155 CSNEG sequence in MOD by power of 2 case.
2157 2015-09-09 Alan Modra <amodra@gmail.com>
2160 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2161 reload replacement for PRE_MODIFY address reg.
2163 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2165 PR tree-optimization/53852
2166 * config.in: Regenerate.
2167 * configure: Regenerate.
2168 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2169 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2170 PARAM_MAX_ISL_OPERATIONS is reached.
2171 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2172 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2173 result equal to isl_stat_ok as the status now can be isl_error_quota.
2174 (subtract_commutative_associative_deps): Same.
2175 (compute_deps): Same.
2177 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2178 Sebastian Pop <s.pop@samsung.com>
2180 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2181 Return the parameter if it was saved in corresponding
2182 parameter_rename_map of the region.
2183 (copy_def): Copy def from sese region to the newly created region.
2184 (copy_internal_parameters): Copy all the internal parameters defined
2185 within a region to the newly created region.
2186 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2187 translating isl to gimple.
2188 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2189 the loop-nest does not have any data-references.
2190 (build_graphite_scops): Create a scop only when there is at least one
2192 (contains_only_close_phi_nodes): Deleted.
2193 (print_graphite_scop_statistics): Deleted
2194 (print_graphite_statistics): Deleted
2195 (limit_scops): Deleted.
2196 (build_scops): Removed call to limit_scops.
2197 * sese.c (new_sese): Construct.
2198 (free_sese): Destruct.
2199 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2201 (set_rename): Pass sese region so that parameters inside the region can
2202 be added to its parameter_rename_map.
2203 (rename_uses): Pass sese region.
2204 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2205 generated in the header of the scop. For each SSA_NAME in the
2206 parameter_rename_map rename its usage.
2207 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2209 (scalar_evolution_in_region): If the tree t is invariant just return t.
2210 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2211 struct sese to keep track of all the parameters which need renaming.
2212 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2214 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2216 2015-09-08 Tom de Vries <tom@codesourcery.com>
2218 * Makefile.in (generated_files): Add params.list.
2219 (params.list, s-params.list): Add rule.
2220 * params.h (enum compiler_param): Include params-list.h. Move define
2221 DEFPARAM, include params.def and undef DEFPARAM ...
2222 * params-list.h: ... here. New file.
2224 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2226 * pretty-print.h (printer_fn): Fix typo in comment.
2228 2015-09-07 Jeff Law <law@redhat.com>
2230 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2232 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2234 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2235 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2236 (arm_neon_fp16_hw): New.
2238 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2240 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2241 UNITS_PER_WORD >= 4.
2243 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2245 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2246 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2247 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2248 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2249 (aarch64_float_extend_lo_v2df): Rename to...
2250 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2252 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2253 (float_extend_lo): Add v4sf.
2255 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2256 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2257 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2258 (Vwide): New mode_attr.
2260 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2262 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2263 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2264 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2265 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2266 V4HF and V8HF variants to iterator.
2268 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2270 * config/aarch64/iterators.md (VDQF_F16): New.
2271 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2273 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2275 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2276 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2277 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2278 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2279 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2280 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2281 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2282 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2283 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2284 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2285 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2286 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2287 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2288 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2289 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2290 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2291 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2292 vld1q_dup_f16): New.
2294 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2296 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2297 Reparameterize to...
2298 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2299 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2300 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2302 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2304 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2306 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2308 * config/aarch64/iterators.md (VDF, Vdtype): New.
2309 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2311 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2313 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2314 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2315 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2316 Add __builtin_aarch64_simd_hf.
2317 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2318 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2319 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2320 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2321 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2322 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2323 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2324 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2325 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2327 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2328 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2329 (VDC, Vdbl): Add V4HF.
2331 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2333 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2334 V4HFmode and V8HFmode.
2335 (aarch64_split_simd_move): Add case for V8HFmode.
2336 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2337 (aarch64_simd_builtin_std_type): Handle HFmode.
2338 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2340 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2341 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2342 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2344 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2347 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2348 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2350 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2351 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2352 vst1q_lane_f16): New.
2353 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2354 (VALLDI_F16, VALL_F16): New.
2355 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2356 Add cases for V4HF and V8HF.
2357 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2359 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2361 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2362 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2363 vld4_dup): Add v4hf variant.
2364 (vget_high, vget_low): Add v8hf variant.
2365 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2366 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2367 v4hf and v8hf variants.
2369 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2371 (V_DOUBLE): Add case for V4HF.
2373 (V_HALF): Add case for V8HF.
2374 (VDQX): Add V4HF, V8HF.
2375 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2376 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2378 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2379 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2380 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2381 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2382 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2383 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2384 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2385 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2386 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2388 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2389 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2390 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2391 Change VDX to VD_RE.
2393 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2394 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2395 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2397 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2398 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2399 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2400 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2401 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2402 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2403 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2404 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2405 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2407 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2409 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2410 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2411 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2412 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2413 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2414 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2415 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2416 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2417 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2418 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2421 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2423 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2425 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2427 * config/arm/arm-builtins.c (v8hf_UP): New.
2428 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2430 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2432 * config/arm/arm_neon.h (float16x8_t): New typedef.
2434 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2436 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2437 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2438 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2439 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2440 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2441 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2442 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2443 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2444 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2445 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2447 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2449 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2450 non-alphanumeric characters in the symbol name.
2452 2015-09-07 Marek Polacek <polacek@redhat.com>
2455 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2458 2015-09-07 Marek Polacek <polacek@redhat.com>
2460 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2462 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2464 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2467 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2470 * tree-ssa-live.c: Include cfgloop.h.
2471 (remove_unused_locals): Clear loop->simduid if simduid is about
2472 to be removed from cfun->local_decls.
2474 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2477 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2480 2015-09-04 Tom de Vries <tom@codesourcery.com>
2482 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2484 2015-09-04 Jeff Law <law@redhat.com>
2486 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2487 unnecessary constructor. It's now trivial and implemented inside...
2488 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2489 constructor. Add comments to various methods. Remove unused
2491 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2492 * tree-vrp.c (identify_jump_threads): Likewise.
2493 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2495 (thread_across_edge): Similarly.
2496 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2497 arguments in constructor call.
2499 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2501 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2502 temp path contains a '-'.
2504 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2505 Petr Murzin <petr.murzin@intel.com>
2506 Kirill Yukhin <kirill.yukhin@intel.com>
2508 * config/i386/i386-builtin-types.def
2509 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2510 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2511 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2512 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2513 * config/i386/i386.c
2514 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2515 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2516 IX86_BUILTIN_SCATTERALTDIV16SI.
2517 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2518 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2519 __builtin_ia32_scatteraltdiv8si.
2520 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2521 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2522 IX86_BUILTIN_SCATTERALTDIV16SI.
2523 (ix86_vectorize_builtin_scatter): New.
2524 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2525 ix86_vectorize_builtin_scatter.
2527 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2528 Petr Murzin <petr.murzin@intel.com>
2529 Kirill Yukhin <kirill.yukhin@intel.com>
2531 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2532 * doc/tm.texi: Regenerate.
2533 * target.def: Add scatter builtin.
2534 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2535 for loads/stores in case of gather/scatter accordingly.
2536 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2537 STMT_VINFO_GATHER_P(S).
2538 (vect_check_gather): Rename to ...
2539 (vect_check_gather_scatter): this.
2540 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2541 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2542 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2543 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2544 variable and new checkings for it accordingly.
2546 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2547 STMT_VINFO_GATHER_P(S).
2548 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2549 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2551 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2553 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2555 (mulv16qi3): New define_expand.
2557 2015-09-03 Martin Sebor <msebor@redhat.com>
2560 * doc/extend.texi (Other Builtins): Document when the address
2561 of a built-in function can be taken.
2563 2015-09-03 Richard Biener <rguenther@suse.de>
2565 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2566 (dwarf2out_early_finish): ... here.
2567 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2568 flush_limbo_die_list. Assert we have no deferred asm names.
2570 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2572 * optabs.c (expand_binop): Don't create a broadcast vector with a
2573 source element wider than the inner mode.
2575 2015-09-03 Richard Biener <rguenther@suse.de>
2577 * varasm.c (output_constant): Use fold_convert instead of
2580 2015-09-03 Tom de Vries <tom@codesourcery.com>
2582 PR tree-optimization/65637
2583 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2584 fin_bb has 2 predecessors.
2586 2015-09-03 Tom de Vries <tom@codesourcery.com>
2588 PR tree-optimization/65637
2589 * omp-low.c (find_phi_with_arg_on_edge): New function.
2590 (expand_omp_for_static_chunk): Fix inner loop phi.
2592 2015-09-03 Tom de Vries <tom@codesourcery.com>
2594 PR tree-optimization/65637
2595 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2598 2015-09-03 Tom de Vries <tom@codesourcery.com>
2600 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2602 2015-09-03 Tom de Vries <tom@codesourcery.com>
2604 * doc/invoke.texi (parloops-chunk-size): Add item.
2605 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2606 * tree-parloops.c: Include params.h.
2607 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2608 param parloops-chunk-size is used.
2610 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2613 * fold-const.c (fold_binary_loc) : Move
2614 Transform (x >> c) << c into x & (-1<<c) or
2615 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2616 types using simplify and match.
2617 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2618 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2620 2015-09-03 Richard Biener <rguenther@suse.de>
2623 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2624 (create_variable_info_for_1): Use ctor_for_analysis instead
2626 (create_variable_info_for): Likewise.
2628 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2631 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2632 in new callgraph edge.
2634 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2639 * config/aarch64/aarch64-simd.md
2640 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2641 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2642 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2643 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2645 2015-09-02 Alan Modra <amodra@gmail.com>
2647 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2648 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2649 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2651 2015-09-02 Alan Modra <amodra@gmail.com>
2654 * config/rs6000/predicates.md (current_file_function_operand): Don't
2655 return true for weak symbols.
2656 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2658 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2659 Andrew Bennett <andrew.bennett@imgtec.com>
2661 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2662 * config/mips/mips-protos.h: Add definitions for
2663 mips_output_jump and mips_output_equal_conditional_branch
2664 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2666 (mips_emit_compare): Add support for the MIPS R6 conditional
2668 (mips_process_sync_loop): Likewise.
2669 (mips_output_order_conditional_branch): Likewise.
2670 (mips16_build_call_stub): Change MIPS_CALL to
2672 (mips_print_operand_punctuation): Update 's' case to only
2673 apply to micromips r2.
2674 (mips_adjust_insn_length): Add support for forbidden slot
2676 (mips_avoid_hazard): Likewise.
2677 (mips_reorg_process_insns): Likewise.
2678 (mips_output_jump): New function.
2679 (mips_output_equal_conditional_branch): Likewise.
2680 (mips_output_conditional_branch): Use jrc/bc if compact
2681 branch support is enabled. Ensure the forbidden slots
2682 between the two branch instructions is filled with a nop.
2683 (mips_option_override): Add support to process the compact
2684 branch option and set the correct defaults. Prevent
2685 non-explict relocs being using for MIPS R6.
2686 (mips_trampoline_init): Add compact branch support.
2687 (mips_mult_zero_zero_cost): Allow zero initialisation of
2688 accumulators with TARGET_DSP.
2689 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
2690 (TARGET_CB_MAYBE): New define.
2691 (TARGET_CB_ALWAYS): New define.
2692 (ISA_HAS_DELAY_SLOTS): New define.
2693 (ISA_HAS_COMPACT_BRANCHES): New define.
2694 (ISA_HAS_JRC): New define.
2695 (MIPS_BRANCH_C): New define.
2696 (MIPS_CALL): Removed.
2697 (MICROMIPS_J): Removed.
2698 * config/mips/mips.md (compact_form): New attr.
2699 (hazard): Add support for forbidden slots.
2700 (define_delay): Add support for compact branches.
2701 (*branch_order<mode>): Likewise.
2702 (*branch_order<mode>_inverted): Likewise.
2703 (*branch_equality<mode>): Likewise.
2704 (*branch_equality<mode>_inverted): Likewise.
2705 (*jump_absolute): Likewise.
2706 (*jump_pic): Likewise.
2707 (indirect_jump): Use mips_output_jump to produce assembly output.
2708 (tablejump_<mode>"): Likewise.
2709 (*<optab>"): Likewise.
2710 (<optab>_internal): Likewise.
2711 (sibcall_internal): Likewise.
2712 (sibcall_value_internal): Likewise.
2713 (sibcall_value_multiple_internal): Likewise.
2714 (call_internal): Likewise.
2715 (call_split): Likewise.
2716 (call_internal_direct): Likewise.
2717 (call_direct_split): Likewise.
2718 (call_value_internal): Likewise.
2719 (call_value_split): Likewise.
2720 (call_value_internal_direct): Likewise.
2721 (call_value_direct_split): Likewise.
2722 (call_value_multiple_internal): Likewise.
2723 (call_value_multiple_split): Likewise.
2724 (mips_get_fcsr_mips16_<mode>): Likewise.
2725 (mips_set_fcsr_mips16_<mode>): Likewise.
2726 (tls_get_tp_mips16_<mode>): Likewise.
2727 * config/mips/mips.opt: Add -mcompact-branches option.
2728 * config/mips/predicates.md (order_operator): Ensure the
2729 conditional compact branches are only used if the ISA them.
2730 * doc/invoke.texi: Document -mcompact-branches option.
2732 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
2735 * lra-lives.c (process_bb_lives): Process move pseudos with the
2736 same value for copies and preferences
2737 * lra-constraints.c (match_reload): Create match reload pseudo
2738 with the same value from single dying input pseudo.
2740 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2743 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2745 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
2747 * trans-mem.c: Add contributed-by.
2748 * trans-mem.h: Same.
2750 2015-09-01 Richard Biener <rguenther@suse.de>
2752 * expr.c (expand_expr_real_1): For expanding TERed defs
2753 set the current location to that of the def if not UNKNOWN.
2755 2015-09-01 David Sherwood <david.sherwood@arm.com>
2757 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
2759 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2761 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
2762 then_cost, else_cost fields. Change branch_cost field to unsigned int.
2763 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
2765 (noce_simple_bbs): New function.
2766 (noce_try_move): Bail if basic blocks are not simple.
2767 (noce_try_store_flag): Likewise.
2768 (noce_try_store_flag_constants): Likewise.
2769 (noce_try_addcc): Likewise.
2770 (noce_try_store_flag_mask): Likewise.
2771 (noce_try_cmove): Likewise.
2772 (noce_try_minmax): Likewise.
2773 (noce_try_abs): Likewise.
2774 (noce_try_sign_mask): Likewise.
2775 (noce_try_bitop): Likewise.
2776 (bbs_ok_for_cmove_arith): New function.
2777 (noce_emit_all_but_last): Likewise.
2778 (noce_emit_insn): Likewise.
2779 (noce_emit_bb): Likewise.
2780 (noce_try_cmove_arith): Handle non-simple basic blocks.
2781 (insn_valid_noce_process_p): New function.
2782 (contains_mem_rtx_p): Likewise.
2783 (bb_valid_for_noce_process_p): Likewise.
2784 (noce_process_if_block): Allow non-simple basic blocks
2787 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
2789 * tree-ssa-dom.c (record_equivalences_from_phis,
2790 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2791 (lookup_avail_expr): Likewise, and remove comment and unused temp.
2793 2015-09-01 Nick Clifton <nickc@redhat.com>
2795 * config/msp430/msp430.opt (mcpu): Fix typo.
2797 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2799 * config/aarch64/aarch64.c (aarch64_set_current_function):
2800 Re-layout any vector parameters have non-simd layout.
2801 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2803 (aarch64_simd_expand_args): Delete call to the above.
2805 2015-08-31 Mike Frysinger <vapier@gentoo.org>
2807 * doc/invoke.texi (asan-stack): Add space before option.
2809 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2811 * tree.h (zerop): New function.
2812 * tree.c (zerop): Likewise.
2813 (element_precision): Handle expressions.
2814 * match.pd (define_predicates): Add zerop.
2815 (x <= +Inf): Fix comment.
2816 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2817 * fold-const.c (fold_binary_loc): ... here. Remove.
2819 2015-08-31 Richard Biener <rguenther@suse.de>
2822 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2824 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2826 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2827 (CEXPI): New operator list.
2828 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2829 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2831 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2833 2015-08-31 Tom de Vries <tom@codesourcery.com>
2835 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2836 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2838 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2839 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2840 (rewrite_into_loop_closed_ssa): ... here.
2841 (replace_uses_in_dominated_bbs): Remove function.
2842 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2843 rewrite_into_loop_closed_ssa_1.
2845 2015-08-31 Michael Matz <matz@suse.de>
2847 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2848 enter entry and exit blocks for reverse post order.
2850 2015-08-31 Richard Biener <rguenther@suse.de>
2852 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2853 (lto_location_cache::current_sysp): Likewise.
2854 (output_block::current_sysp): Likewise.
2855 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2856 (lto_location_cache::apply_location_cache): Properly record
2857 system header locations.
2858 (lto_location_cache::input_location): Input whether a file
2860 * lto-streamer-out.c (lto_output_location): Stream whether a file
2863 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2866 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2868 2015-08-31 Tom de Vries <tom@codesourcery.com>
2870 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2871 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2872 Improve function header comments.
2874 2015-08-30 Michael Collison <michael.collison@linaro.org>
2877 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2880 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2882 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2883 special_handling bitfield.
2884 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2885 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2886 that represents a general xxpermdi.
2887 (insn_is_swappable_p): Add handling for vec_concat of two
2888 doublewords, which maps to a specific xxpermdi.
2889 (adjust_xxpermdi): New function.
2890 (adjust_concat): Likewise.
2891 (handle_special_swappables): Call adjust_xxpermdi and
2893 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2895 2015-08-30 Rich Felker <dalias@libc.org>
2897 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2898 case instead of sh[123456ble]-*-*.
2900 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2902 * ira.c (print_unform_and_important_classes,
2903 print_translated_classes): Remove reg_class_names static array.
2904 (print_unform_and_important_classes): Rename to ...
2905 (print_uniform_and_important_classes): ... this.
2906 (ira_debug_allocno_classes): Update accordingly.
2908 2015-08-29 Tom de Vries <tom@codesourcery.com>
2910 PR tree-optimization/46193
2911 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2914 2015-08-28 Jeff Law <law@redhat.com>
2917 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2918 unable to find X NE 0 in the tables, return X as the simplified
2920 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2921 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2923 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2924 after removing the control flow statement and unnecessary edges.
2926 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
2929 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2931 PR tree-optimization/67283
2932 * tree-sra.c (type_consists_of_records_p): Rename to...
2933 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2935 (completely_scalarize_record): Rename to...
2936 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2938 (scalarize_elem): New.
2940 2015-08-28 Jiong Wang <jiong.wang@arm.com>
2942 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2943 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2944 (aarch64_symbol_type): Likewise.
2945 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2947 (aarch64_expand_mov_immediate): Likewise.
2948 (aarch64_print_operand): Likewise.
2949 (aarch64_classify_tls_symbol): Likewise.
2951 2015-08-28 Richard Biener <rguenther@suse.de>
2953 * cgraphunit.c (symbol_table::compile): Move early debug generation
2955 (symbol_table::finalize_compilation_unit): ... back here and
2956 add a !seen_error () guard.
2958 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2960 * toplev.c (process_options): Do not use flag_loop_block,
2961 flag_loop_interchange, and flag_loop_strip_mine. Add check for
2962 flag_loop_optimize_isl.
2964 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2966 * Makefile.in (OBJS): Remove graphite-blocking.o and
2967 graphite-interchange.o.
2968 * common.opt (floop-strip-mine, floop-interchange, floop-block):
2969 Alias of floop-nest-optimize.
2970 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2971 Document as alias of -floop-nest-optimize.
2972 * graphite-blocking.c: Remove.
2973 * graphite-interchange.c: Remove.
2974 * graphite-optimize-isl.c: Include dumpfile.h.
2975 (getScheduleForBand): Add dump for tiled loops. Use
2976 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2977 * graphite-poly.c (scop_max_loop_depth): Remove.
2978 (print_scattering_function_1): Remove.
2979 (print_scattering_function): Remove.
2980 (print_scattering_functions): Remove.
2981 (debug_scattering_function): Remove.
2982 (debug_scattering_functions): Remove.
2983 (apply_poly_transforms): Remove use of flag_loop_block,
2984 flag_loop_strip_mine, and flag_loop_interchange.
2985 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2987 (print_pdr_access_layout): Remove.
2988 (print_pdr): Print ISL representation.
2989 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2990 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2992 (openscop_print_pbb_domain): Remove.
2993 (print_pbb): Remove call to print_scattering_function.
2994 (openscop_print_scop_context): Remove.
2995 (print_scop_context): Do not print matrices anymore.
2996 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2997 SCOP_TRANSFORMED_SCHEDULE.
2998 (print_isl_set): Add printing of a new line.
2999 (print_isl_map): Same.
3000 (print_isl_aff): Same.
3001 (print_isl_constraint): Same.
3002 (loop_to_lst): Remove.
3003 (scop_to_lst): Remove.
3004 (lst_indent_to): Remove.
3005 (print_lst): Remove.
3006 (debug_lst): Remove.
3007 (dot_lst_1): Remove.
3009 (reverse_loop_at_level): Remove.
3010 (reverse_loop_for_pbbs): Remove.
3011 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3012 (pdr_nb_params): Remove.
3013 (pdr_alias_set_dim): Remove.
3014 (pdr_subscript_dim): Remove.
3015 (pdr_iterator_dim): Remove.
3016 (pdr_parameter_dim): Remove.
3017 (same_pdr_p): Remove.
3018 (struct poly_scattering): Remove.
3019 (struct poly_bb): Remove _original, _transformed, _saved.
3020 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3021 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3022 (PBB_NB_LOCAL_VARIABLES): Remove.
3023 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3024 (schedule_to_scattering): Remove.
3025 (number_of_write_pdrs): Remove.
3026 (pbb_dim_iter_domain): Remove.
3027 (pbb_nb_params): Remove.
3028 (pbb_nb_scattering_orig): Remove.
3029 (pbb_nb_scattering_transform): Remove.
3030 (pbb_nb_dynamic_scattering_transform): Remove.
3031 (pbb_nb_local_vars): Remove.
3032 (pbb_iterator_dim): Remove.
3033 (pbb_parameter_dim): Remove.
3034 (psco_scattering_dim): Remove.
3035 (psct_scattering_dim): Remove.
3036 (psct_local_var_dim): Remove.
3037 (psco_iterator_dim): Remove.
3038 (psct_iterator_dim): Remove.
3039 (psco_parameter_dim): Remove.
3040 (psct_parameter_dim): Remove.
3041 (psct_dynamic_dim): Remove.
3042 (psct_static_dim): Remove.
3043 (psct_add_local_variable): Remove.
3044 (new_lst_loop): Remove.
3045 (new_lst_stmt): Remove.
3048 (lst_add_loop_under_loop): Remove.
3049 (lst_depth): Remove.
3050 (lst_dewey_number): Remove.
3051 (lst_dewey_number_at_depth): Remove.
3054 (lst_find_pbb): Remove.
3055 (find_lst_loop): Remove.
3056 (lst_find_first_pbb): Remove.
3057 (lst_empty_p): Remove.
3058 (lst_find_last_pbb): Remove.
3059 (lst_contains_p): Remove.
3060 (lst_contains_pbb): Remove.
3061 (lst_create_nest): Remove.
3062 (lst_remove_from_sequence): Remove.
3063 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3064 (lst_niter_for_loop): Remove.
3065 (pbb_update_scattering): Remove.
3066 (lst_update_scattering_under): Remove.
3067 (lst_update_scattering): Remove.
3068 (lst_insert_in_sequence): Remove.
3069 (lst_replace): Remove.
3070 (lst_substitute_3): Remove.
3071 (lst_distribute_lst): Remove.
3072 (lst_remove_all_before_including_pbb): Remove.
3073 (lst_remove_all_before_excluding_pbb): Remove.
3074 (struct scop): Remove original_schedule, transformed_schedule, and
3076 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3077 (SCOP_SAVED_SCHEDULE): Remove.
3078 (poly_scattering_new): Remove.
3079 (poly_scattering_free): Remove.
3080 (poly_scattering_copy): Remove.
3081 (store_scattering_pbb): Remove.
3082 (store_lst_schedule): Remove.
3083 (restore_lst_schedule): Remove.
3084 (store_scattering): Remove.
3085 (restore_scattering_pbb): Remove.
3086 (restore_scattering): Remove.
3087 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3088 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3089 compute the scattering polyhedron dimension from the dimension of
3091 (build_scop_scattering): Update call to
3092 build_pbb_scattering_polyhedrons.
3093 (build_poly_scop): Remove call to scop_to_lst.
3094 * graphite.c (graphite_transform_loops): Add call to print_scop.
3095 (gate_graphite_transforms): Remove use of flag_loop_block,
3096 flag_loop_interchange, and flag_loop_strip_mine.
3098 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3100 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3101 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3102 -floop-nest-optimize.
3103 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3104 (generate_luj_sepclass): Remove.
3105 (generate_luj_options): Remove.
3106 (set_options): Remove opt_luj.
3107 (scop_to_isl_ast): Remove opt_luj.
3108 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3109 flag_loop_unroll_jam.
3110 (getPrevectorMap_full): Remove.
3111 (getScheduleForBandList): Remove map_sepcl.
3112 (getScheduleMap): Same.
3113 (apply_schedule_map_to_scop): Remove sepcl.
3114 (optimize_isl): Same.
3115 * graphite-poly.c (apply_poly_transforms): Remove check for
3116 flag_loop_unroll_jam.
3117 (new_poly_bb): Remove map_sepclass.
3118 * graphite-poly.h (struct poly_bb): Same.
3119 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3120 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3121 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3122 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3124 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3127 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3129 (UNSPEC_ADD_CARRY): Remove.
3130 (addqi3_cconly_overflow): New expander.
3131 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3132 Adjust for changed add<mode>3_carry.
3133 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3134 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3135 (<plusminus_insn><mode>3_carry): Remove expander.
3136 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3137 add<mode>3_carry and sub<mode>3_carry.
3138 (plusminus_carry_mnemonic): Remove code attribute.
3139 (add<mode>3_carry): Canonicalize insn pattern.
3140 (*addsi3_carry_zext): Ditto.
3141 (sub<mode>3_carry): Ditto.
3142 (*subsi3_carry_zext): Ditto.
3143 (adcx<mode>3): Remove insn pattern.
3144 (addcarry<mode>): New insn pattern.
3145 (subborrow<mode>): Ditto.
3146 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3147 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3148 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3149 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3150 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3151 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3152 Rewrite expander to not clobber carry flag chains.
3154 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3156 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3157 instead of a rotate.
3159 2015-08-27 Marek Polacek <polacek@redhat.com>
3162 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3163 an entry into an irreducible region.
3165 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3167 * configure: Regenerate.
3169 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3171 PR tree-optimization/67283
3172 * tree-sra.c (type_consists_of_records_p): Rename to...
3173 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3175 (completely_scalarize_record): Rename to...
3176 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3177 (scalarize_elem): New.
3179 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3181 * tree-sra.c (completely_scalarize_var): Rename to...
3182 (create_total_scalarization_access): ... Here. Drop call to
3183 completely_scalarize_record.
3185 (analyze_all_variable_accesses): Replace completely_scalarize_var
3186 with create_total_scalarization_access and completely_scalarize_record.
3188 2015-08-27 Alan Modra <amodra@gmail.com>
3191 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3194 2015-08-27 Richard Biener <rguenther@suse.de>
3196 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3197 call with !seen_error ().
3198 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3199 early debug generation and finish...
3200 (symbol_table::compile): ... here to put it after a !seen_error ()
3203 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3205 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3208 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3209 Andre Vieira <andre.simoesdiasvieira@arm.com>
3211 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3212 (*cb<optab><mode>1): Likewise.
3213 (*tb<optab><mode>1): Likewise.
3214 (*cb<optab><mode>1): Likewise.
3215 * config/aarch64/iterators.md (inv_cb): New code attribute.
3217 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3218 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3220 2015-08-27 Richard Biener <rguenther@suse.de>
3222 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3224 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3226 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3229 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3231 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3234 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3236 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3237 floating point in VSX registers.
3238 (rs6000_output_move_128bit): Always print out the set insn if we
3239 can't generate an appropriate 128-bit move.
3240 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3241 point in VSX registers comparisons.
3242 (rs6000_expand_float128_convert): Likewise.
3244 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3245 predicate for only GPR hard registers.
3247 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3248 modes to iterators. Add new iterators for moving 128-bit values in
3249 scalar FPR registers and VSX registers.
3250 (FMOVE128): Likewise.
3251 (FMOVE128_FPR): Likewise.
3252 (FMOVE128_GPR): Likewise.
3253 (FMOVE128_VSX): Likewise.
3254 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3259 (RELOAD): Add IEEE 128-bit floating point modes.
3260 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3261 floating point in VSX registers modes.
3262 (signbit<mode>2, IBM128 iterator): Likewise.
3263 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3264 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3266 (neg<mode>2, TFIFKF iterator): Likewise.
3267 (negtf2_internal): Likewise.
3269 (abs<mode>2, TFIFKF iterator): Likewise.
3270 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3271 VSX insn support for negate, absolute value, and negative absolute
3273 (ieee_128bit_vsx_neg<mode>2): Likewise.
3274 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3275 (ieee_128bit_vsx_abs<mode>2): Likewise.
3276 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3277 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3278 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3279 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3280 floating point in VSX registers.
3281 (unpack<mode>_dm): Likewise.
3282 (unpack<mode>_nodm): Likewise.
3283 (pack<mode>): Likewise.
3284 (unpackv1ti): Likewise.
3285 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3286 (packv1ti): Likewise.
3287 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3288 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3290 (extenddftf2_internal): Likewise.
3291 (trunctfdf2): Likewise.
3292 (trunctfdf2_internal2): Likewise.
3293 (fix_trunc_helper): Likewise.
3294 (fix_trunctfdi2"): Likewise.
3295 (floatditf2): Likewise.
3296 (floatuns<mode>tf2): Likewise.
3297 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3298 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3299 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3300 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3301 (float<SDI:mode><IFKF:mode>2): Likewise.
3302 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3304 2015-08-26 Renlin Li <renlin.li@arm.com>
3306 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3308 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3309 Jiong Wang <jiong.wang@arm.com>
3311 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3312 (tlsie_tiny_<mode>): New define_insn.
3313 (tlsie_tiny_sidi): Likewise.
3314 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3316 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3317 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3319 (aarch64_expand_mov_immediate): Likewise.
3320 (aarch64_print_operand): Likewise.
3321 (arch64_classify_tls_symbol): Likewise.
3323 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3325 * config/arm/arm-arches.def: Replace single value flags with
3326 an initializer built from ARM_FSET_MAKE_CPU1.
3327 * config/arm/arm-cores.def: Likewise.
3328 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3329 derivation from the ARM_CORE macro definition, use the given value
3331 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3332 ARM_ARCH macro definition, use the given value instead.
3334 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3336 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3338 (struct builtin_description): Replace field mask with field
3340 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3341 (IWMMXT2_BUILTIN): Likewise.
3342 (IWMMXT2_BUILTIN2): Likewise.
3343 (FP_BUILTIN): Likewise.
3344 (CRC32_BUILTIN): Likewise.
3345 (CRYPTO_BUILTIN): Likewise.
3346 (iwmmx_mbuiltin): Likewise.
3347 (iwmmx2_mbuiltin): Likewise.
3348 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3349 struct builtin_description.
3351 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3353 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3354 (struct builtin_description): Change type of mask to unsigned
3356 * config/arm/arm-protos.h (insn_flags): Declare as type
3358 (tune_flags): Likewise.
3359 * config/arm/arm.c (feature_count): New.
3360 (insn_flags): Define as type arm_feature_set.
3361 (tune_flags): Likewise.
3362 (struct processors): Define field flags as type arm_feature_set.
3363 (all_cores): Update for change to struct processors.
3364 (all_architectures): Likewise.
3365 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3367 (arm_option_override_internal): Likewise.
3368 (arm_option_override): Likewise.
3370 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3371 Jiong Wang <jiong.wang@arm.com>
3373 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3374 tls size for tiny, small, large memory model.
3375 (aarch64_load_symref_appropriately): Support new symbol types.
3376 (aarch64_expand_mov_immediate): Likewise.
3377 (aarch64_print_operand): Likewise.
3378 (aarch64_classify_tls_symbol): Likewise.
3379 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3380 (aarch64_symbol_type): Likewise.
3381 * config/aarch64/aarch64.md (tlsle): Deleted.
3382 (tlsle12_<mode>): New define_insn.
3383 (tlsle24_<mode>): Likewise.
3384 (tlsle32_<mode>): Likewise.
3385 (tlsle48_<mode>): Likewise.
3386 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3389 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3391 * config/arm/arm-protos.h (FL_NONE): New.
3393 (arm_feature_set): New.
3394 (ARM_FSET_MAKE): New.
3395 (ARM_FSET_MAKE_CPU1): New.
3396 (ARM_FSET_MAKE_CPU2): New.
3397 (ARM_FSET_CPU1): New.
3398 (ARM_FSET_CPU2): New.
3399 (ARM_FSET_EMPTY): New.
3400 (ARM_FSET_ANY): New.
3401 (ARM_FSET_HAS_CPU1): New.
3402 (ARM_FSET_HAS_CPU2): New.
3403 (ARM_FSET_HAS_CPU): New.
3404 (ARM_FSET_ADD_CPU1): New.
3405 (ARM_FSET_ADD_CPU2): New.
3406 (ARM_FSET_DEL_CPU1): New.
3407 (ARM_FSET_DEL_CPU2): New.
3408 (ARM_FSET_UNION): New.
3409 (ARM_FSET_INTER): New.
3410 (ARM_FSET_XOR): New.
3411 (ARM_FSET_EXCLUDE): New.
3412 (AFM_FSET_IS_EMPTY): New.
3413 (ARM_FSET_CPU_SUBSET): New.
3415 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3417 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3418 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3419 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3421 (aarch64_expand_mov_immediate): Likewise.
3422 (aarch64_print_operand): Likewise.
3423 (aarch64_classify_symbol): Likewise.
3425 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3427 * config/aarch64/aarch64.opt (mtls-size): New entry.
3428 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3429 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3430 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3432 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3434 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3435 ARM_CORE entry. Fix some white-space.
3436 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3437 ARM_CORE definition.
3439 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3441 * fold-const.c (fold_binary_loc) : Move Optimize
3442 root(x)*root(y) as root(x*y) to match.pd.
3443 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3444 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3445 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3446 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3447 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3448 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3449 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3450 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3451 (rdiv @0 (exps:s @1)) : New simplifier.
3453 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3455 * gcc.c (driver::finalize): Only assign to extra_specs if
3458 2015-08-25 Marek Polacek <polacek@redhat.com>
3461 * varasm.c (declare_weak): Return after giving an error.
3463 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3465 * gcc-main.c (main): Add params to driver ctor.
3466 * gcc.c (class env_manager): New.
3468 (env_manager::init): New.
3469 (env_manager::get): New.
3470 (env_manager::xput): New.
3471 (env_manager::restore): New.
3472 Poison getenv and putenv.
3473 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3474 (target_system_root): Update initialization to use
3475 DEFAULT_TARGET_SYSTEM_ROOT.
3476 (struct spec_list): Add field "default_ptr".
3477 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3478 (init_spec): Likewise.
3479 (set_spec): Clear field "default_ptr".
3480 (read_specs): Free "spec" and "buffer".
3481 (xputenv): Reimplement in terms of env_manager.
3482 (process_command): Replace ::getenv calls with calls to the
3483 env_manager singleton.
3484 (process_brace_body): Free string in three places.
3485 (driver::driver): New.
3486 (driver::~driver): New.
3487 (used_arg): Convert from a function to...
3488 (class used_arg_t): ...this class, and...
3489 (used_arg): ...this new global instance.
3490 (used_arg_t::finalize): New function.
3491 (getenv_spec_function): Add "const" to local "value". Replace
3492 ::getenv call with call to the env_manager singleton.
3493 (path_prefix_reset): New function.
3494 (driver::finalize): New function.
3495 * gcc.h (driver::driver): New.
3496 (driver::~driver): New.
3497 (driver::finalize): New.
3499 2015-08-25 Nathan Sidwell <nathan@acm.org>
3501 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3502 target doesn't have one.
3504 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3507 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3509 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3512 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3513 a define_insn, remove second alternative.
3515 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3516 Joseph Myers <joseph@codesourcery.com>
3518 * gcc.c (struct switchstr): Expand comment.
3520 2015-08-25 Nathan Sidwell <nathan@acm.org>
3522 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3523 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3525 2015-08-25 Richard Biener <rguenther@suse.de>
3528 * genmatch.c (expr::gen_transform): Verify the result of
3529 builtin_decl_implicit.
3530 (dt_simplify::gen_1): Likewise.
3532 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3534 * config/arm/constraints.md: Also list Cs and US ARM-specific
3535 constraints as used.
3537 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3540 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3542 (nonpic_symbol_mentioned_p): Likewise.
3543 (sh_delegitimize_address): Likewise.
3544 (sh_function_ok_for_sibcall): Take into account weak symbols.
3545 (sh_expand_sym_label2reg): New.
3546 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3547 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3548 (call_pcrel): Use sh_expand_sym_label2reg.
3549 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3550 (symPCREL_label2reg) New expand.
3552 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3554 * graphite-poly.c: Change type of region from void* to sese.
3555 * graphite-poly.h (struct scop): Changing the type of scop::region
3556 from void* to sese. Change accessor macro accordingly.
3557 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3559 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3561 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3562 Constrain only on INTEGER_TYPE.
3564 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3567 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3568 -mefficient-unaligned-vsx on ISA 2.7.
3570 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3571 option to a masked option.
3573 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3574 logic for -mefficient-unaligned-vsx so that it is set via an arch
3575 ISA option, instead of being set if -mtune=power8 is set. Move
3576 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3577 near other default option handling.
3579 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3581 * genflags.c (gen_macro): Delete.
3582 (gen_proto): Don't create GEN.*CALL.* macros.
3583 * gensupport.h (get_file_location): Declare.
3584 * gensupport.c (rtx_locs): New variable.
3585 (read_md_rtx): Record rtx locations.
3586 (get_file_location): New function.
3587 * target-insns.def (call, call_pop, call_value, call_value_pop)
3588 (sibcall, sibcall_value): New patterns.
3589 * gentarget-def.c (parse_argument): New function.
3590 (def_target_insn): Use it. Handle optional operands. Raise an
3591 error if an .md pattern has the wrong number of operands for the
3592 pattern name. Remove the names of unused operands from the prototype.
3593 * builtins.c (expand_builtin_apply): Use targetm functions
3594 instead of HAVE_call_value and GEN_CALL_VALUE.
3595 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3596 and sibcall_value_pop.
3597 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3599 * config/alpha/alpha.md (untyped_call): Likewise.
3600 * config/iq2000/iq2000.md (untyped_call): Likewise.
3601 * config/m68k/m68k.md (untyped_call): Likewise.
3602 * config/mips/mips.md (untyped_call): Likewise.
3603 * config/pa/pa.md (untyped_call): Likewise.
3604 * config/rs6000/rs6000.md (untyped_call): Likewise.
3605 * config/sparc/sparc.md (untyped_call): Likewise.
3606 * config/tilegx/tilegx.md (untyped_call): Likewise.
3607 * config/tilepro/tilepro.md (untyped_call): Likewise.
3608 * config/visium/visium.md (untyped_call): Likewise.
3609 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3610 gen_call_value instead of GEN_CALL_VALUE.
3611 * config/arm/arm.md (untyped_call): Likewise.
3612 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3615 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3617 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3618 (have_cbranchcc4): New variable.
3619 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3620 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3621 (if_convert): Initialize have_cbranchcc4.
3623 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3625 * builtins.c (expand_cmpstrn): Rename to...
3626 (expand_cmpstrn_or_cmpmem): ...this.
3627 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3628 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3629 Remove mode argument.
3630 (expand_builtin): Update accordingly.
3632 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3634 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3635 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3636 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3637 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3638 Add predicates for operands 0 and 3.
3639 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3641 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3642 immediate_operand to nonmemory_operand.
3644 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3646 * df-scan.c (df_insn_info_init_fields): New function, split out
3648 (df_insn_create_insn_record): ...here.
3649 (df_insn_info_free_fields): New function, split out from...
3650 (df_insn_info_delete): ...here.
3651 (df_insn_rescan): Use the new functions instead of freeing and
3652 reallocating the df_insn_info.
3654 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3656 * doc/install.texi (Binaries): Remove links no longer valid.
3658 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3660 * config/nvptx/mkoffload.c (process): Replace
3661 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3663 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3666 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3668 2015-08-24 Renlin Li <renlin.li@arm.com>
3670 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3671 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3672 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3673 * config/arm/constraints.md ("j"): Add check for high code.
3675 2015-08-24 Tom de Vries <tom@codesourcery.com>
3677 PR tree-optimization/65468
3678 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
3681 2015-08-24 Nathan Sidwell <nathan@acm.org>
3683 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
3684 change to nvptx_type_from_mode call. Use arg_promotion for both
3685 split and non-split args.
3687 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3689 * target-insns.def (movstr): New pattern.
3690 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
3691 (expand_movstr): Use targetm rather than HAVE_movstr/
3694 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3696 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
3699 2015-08-24 Andrew Pinski <apinski@cavium.com>
3701 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
3702 AARCH64_EXTRA_TUNING_OPTION.
3703 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
3705 (aarch64_extra_tuning_flags): Base the shifted value on the index
3706 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
3707 * config/aarch64/aarch64.c: Remove the last argument to
3708 AARCH64_EXTRA_TUNING_OPTION.
3710 2015-08-23 Nathan Sidwell <nathan@acm.org>
3712 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
3714 (nvptx_declare_function_name): Insert formatting tabs for
3717 2015-08-23 Tom de Vries <tom@codesourcery.com>
3719 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
3720 parm_decl, rather than generating a dummy default def in cfun.
3721 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
3722 ssa_name from cfun and child_fn do not share a stmt as def stmt.
3723 (move_stmt_op): Handle PARM_DECl.
3724 (gather_ssa_name_hash_map_from): New function.
3725 (move_sese_region_to_fn): Add default defs for function params, and add
3726 them to vars_map. Release copied ssa names.
3727 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3729 2015-08-23 Tom de Vries <tom@codesourcery.com>
3731 * doc/sourcebuild.texi: Rename vect_no_int_max with
3732 vect_no_int_min_max. Update description.
3734 2015-08-22 Andrew Pinski <apinski@cavium.com>
3736 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3737 * config/aarch64/aarch64-protos.h
3738 (aarch64_fusion_pairs_index): New enum.
3739 (aarch64_fusion_pairs): Base the shifted value on the index instead
3740 Rewrite AARCH64_FUSE_ALL to be based on the end index.
3741 of the argument to AARCH64_FUSION_PAIR.
3742 * config/aarch64/aarch64.c: Remove the last argument to
3743 AARCH64_FUSION_PAIR.
3745 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
3747 * dominance.c (new_zero_array): Define.
3748 (dom_info): Redefine as class with proper encapsulation.
3749 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
3751 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
3752 allocations/deallocations. Pass function as parameter (instead of
3754 (dom_info::get_idom): Define accessor method.
3755 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
3756 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
3757 (calculate_dominance_info): Adjust to use dom_info class.
3758 (verify_dominators): Likewise.
3760 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
3762 * print-rtl.c (print_rtx): Check the correct range for
3763 flag_dump_unnumbered_links to behave as documented.
3765 PR rtl-optimization/67227
3766 PR rtl-optimization/64164
3767 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
3768 (nonoverlapping_memrefs_p): Test offsets and sizes when given
3769 identical gimple_reg exprs.
3771 2015-08-21 Nathan Sidwell <nathan@acm.org>
3773 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3775 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3776 crtl->stack_alignment_needed to determine alignment.
3777 (nvptx_get_drap_rtx): New.
3778 (TARGET_GET_DRAP_RTX): Override.
3779 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3781 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3783 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3785 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3787 * configure.ac: Remove uwin* cases.
3788 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3789 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3790 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3791 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3792 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3793 i[34567]86-*-uwin*, powerpc-*-beos*.
3795 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
3797 * gencodes.c (gencodes): Print the comma for the preceding
3798 enum value rather than the current one. Use aliased enum values
3799 rather than #defines for compiled-out patterns.
3800 (main): Update accordingly. Replace LAST_INSN_CODE with
3802 * lra.c (insn_code_data): Update accordingly.
3803 (finish_insn_code_data_once, get_static_insn_data): Likewise.
3804 * recog.h (target_recog): Likewise.
3805 (preprocess_insn_constraints): Change parameter to unsigned int.
3806 * recog.c (preprocess_insn_constraints): Likewise.
3807 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3808 * tree-vect-stmts.c (vectorizable_operation): Simplify.
3810 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3812 PR rtl-optimization/61657
3813 * loop-iv.c (iv_number_of_iterations): Declare up and down as
3814 unsigned. Remove superflous uint64_t cast.
3816 2014-08-21 Felix Yang <felix.yang@huawei.com>
3817 Jiji Jiang <jiangjiji@huawei.com>
3819 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
3820 argument and get builtin function code directly from CALL.
3821 (gimple_stringop_fixed_value): Modified accordingly.
3822 (gimple_stringops_transform, gimple_stringops_values_to_profile):
3823 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
3825 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
3827 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3829 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3831 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3833 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3834 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3835 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3836 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3837 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3838 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3839 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3840 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3841 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3842 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3844 * match.pd (SIN ) : New Operator.
3845 (TAN) : New Operator.
3846 (mult (SQRT@1 @0) @1) : New simplifier.
3847 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3848 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3849 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3850 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3851 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3852 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3853 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3854 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3855 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3856 (rdiv @0 (POW:s @1 @2)) : New simplifier.
3858 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3860 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3861 loop if EXPR is simplified to const value.
3863 2015-08-21 Yury Gribov <y.gribov@samsung.com>
3865 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3866 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3868 2015-08-21 Richard Biener <rguenther@suse.de>
3871 * gimple-fold.c (replace_stmt_with_simplification): Assert
3872 seq is empty when replacing a call with itself but different
3874 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3875 a call require that it is const.
3877 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3879 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3880 * builtins.c (get_object_alignment_2): Adjust.
3881 * varasm.c (align_variable): Likewise.
3882 (get_variable_align): Likewise.
3883 (build_constant_desc): Likewise.
3884 (force_const_mem): Likewise.
3885 * doc/tm.texi.in: Likewise.
3886 * doc/tm.texi: Regenerate.
3888 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3890 * genconfig.c (main): Always define HAVE_cc0.
3891 * recog.c (rest_of_handle_peephole2): Adjust.
3893 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3895 * reorg.c (relax_delay_slots): Don't use #if to check value of
3898 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3900 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3901 * targhooks.c (default_have_conditional_execution): Adjust.
3903 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3905 * rtl.h (rtvec_all_equal_p): Declare.
3906 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3907 * rtl.c (rtvec_all_equal_p): New function.
3908 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3909 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3910 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3911 * config/arm/arm.c (neon_vdup_constant): Likewise.
3912 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3913 * config/tilegx/constraints.md (W, Y): Likewise.
3914 * config/tilepro/constraints.md (W, Y): Likewise.
3915 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3916 (classify_immediate): Use unwrap_const_vec_duplicate.
3917 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3918 (reg_or_v2s8bit_operand): Likewise.
3919 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3920 (reg_or_v4s8bit_operand): Likewise.
3922 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3924 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3925 (vec_shasigma_be): New #define.
3926 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3927 (VPMSUMH): Likewise.
3928 (VPMSUMW): Likewise.
3929 (VPMSUMD): Likewise.
3930 (VPMSUM): New BU_P8V_OVERLOAD_2.
3931 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3932 entries for VEC_MADD and VEC_VPMSUM.
3934 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
3936 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3937 Multiply argument avr_n_flash by 64 to match unit of "KiB".
3938 (avr_pgm_check_var_decl): Same.
3940 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
3942 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3943 initialization of HFmode scalar type (float16_t) to...
3944 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3947 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3949 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3950 having an -mfp16-format.
3952 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3954 * config/i386/predicates.md (vector_all_ones_operand): Use
3955 CONSTM1_RTX to simplify definition.
3957 2015-08-20 Richard Biener <rguenther@suse.de>
3959 * toplev.c (compile_file): Remove loop calling late_global_decl
3961 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3962 on decls we assembled.
3964 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
3966 * common/config/aarch64/aarch64-common.c
3967 (AARCH64_CPU_NAME_LENGTH): Delete.
3968 (aarch64_option_extension): New.
3969 (all_extensions): Likewise.
3970 (processor_name_to_arch): Likewise.
3971 (arch_to_arch_name): Likewise.
3973 (all_architectures): Likewise.
3974 (aarch64_get_extension_string_for_isa_flags): Likewise.
3975 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3977 * config/aarch64/aarch64-protos.h
3978 (aarch64_get_extension_string_for_isa_flags): New.
3979 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3980 (aarch64_option_print): Get the string to print from
3981 aarch64_get_extension_string_for_isa_flags.
3982 (aarch64_declare_function_name): Likewise.
3983 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3984 (MCPU_TO_MARCH_SPEC): This.
3985 (ASM_CPU_SPEC): Use it.
3986 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3987 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3988 (EXTRA_SPEC_FUNCTIONS): Use it.
3990 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
3992 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3993 expansion when !ISA_HAS_LWL_LWR.
3994 (mips_block_move_straight): Update the size of elements copied to
3995 account for alignment when !ISA_HAS_LWL_LWR.
3996 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3998 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4000 * expr.c (expand_expr_real_2): Check gimple statement during
4003 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4005 * common.opt (fstack-protector): Initialize to -1.
4006 (fstack-protector-all): Likewise.
4007 (fstack-protector-strong): Likewise.
4008 (fstack-protector-explicit): Likewise.
4009 * configure.ac: Add --enable-default-ssp.
4010 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4011 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4013 * doc/install.texi: Document --enable-default-ssp.
4014 * config.in: Regenerated.
4015 * configure: Likewise.
4017 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4019 PR rtl-optimization/64164
4020 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4021 (parm_in_stack_slot_p): ... this. Disregard mode, what
4022 matters is whether the parm will live in a pseudo or a stack
4024 (expand_one_ssa_partition): Deal with params without a default
4025 def. Disregard mode.
4026 * cfgexpand.h: Renamed function declaration.
4027 * tree-ssa-coalesce.c: Adjust.
4028 * function.c (split_complex_args): Allocate stack slot for
4029 unassigned parms before splitting.
4030 (parm_in_unassigned_mem_p): New. Use it instead of
4031 parm_maybe_byref_p throughout this file.
4032 (assign_parm_setup_block): Use it. Accept pseudos in the
4033 expand-assigned rtl.
4034 (assign_parm_setup_reg): Drop BLKmode requirement.
4035 (assign_parm_setup_stack): Allocate and fill in the address of
4036 unassigned MEM parms.
4038 2015-08-19 David Sherwood <david.sherwood@arm.com>
4040 * genmodes.c (emit_mode_unit_size_inline): New function.
4041 (emit_mode_unit_precision_inline): New function.
4042 (emit_insn_modes_h): Emit new #define. Emit new functions.
4043 (emit_mode_unit_size): New function.
4044 (emit_mode_unit_precision): New function.
4045 (emit_mode_adjustments): Add mode_unit_size adjustments.
4046 (emit_insn_modes_c): Emit new arrays.
4047 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4048 use new inline methods.
4050 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4052 * config/aarch64/aarch64.c (bit_count): Delete prototype
4054 (aarch64_print_operand): Use popcount_hwi instead of the above.
4056 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4058 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4061 2015-08-19 Marek Polacek <polacek@redhat.com>
4064 * gimple-ssa-isolate-paths.c
4065 (insert_trap_and_remove_trailing_statements): Rename to ...
4066 (insert_trap): ... this. Don't remove trailing statements; split
4068 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4070 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4073 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4074 conditionalize the whole on __GNUC__. Add fallback code
4075 depending neither on undefined nor implementation-defined behaviour.
4077 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4079 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4080 whitespaces with tab.
4082 2015-08-19 Florian Weimer <fweimer@redhat.com>
4084 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4085 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4086 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4087 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4090 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4092 * config/arm/arm.c (bounds_check): Use %wd print format
4093 for HOST_WIDE_INT arguments.
4095 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4097 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4098 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4099 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4100 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4101 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4102 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4103 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4104 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4105 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4108 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4110 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4111 function.c, graphite-scop-detection.c, haifa-sched.c,
4112 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4113 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4114 varasm.c: Remove typedefs of structs.
4116 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4118 * config/rs6000/altivec.h (vec_adde): New define.
4119 (vec_addec): Likewise.
4120 (vec_double): Likewise.
4121 (vec_bperm): Likewise.
4123 * config/rs6000/rs6000-builtin.def (ADDE): New
4124 BU_ALTIVEC_OVERLOAD_3.
4126 (DOUBLE): New BU_VSX_OVERLOAD_1.
4127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4128 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4129 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4130 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4131 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4132 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4133 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4134 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4135 and P8V_BUILTIN_VEC_VBPERMQ.
4137 2015-08-18 Jason Merrill <jason@redhat.com>
4139 * print-tree.c (print_node): Handle TREE_BINFO.
4141 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4144 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4145 we can expand BUILT_IN_SIGNBIT inline.
4146 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4147 * doc/extend.texi: Document the type-generic __builtin_signbit.
4149 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4151 PR rtl-optimization/67218
4152 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4153 (simplify_unary_operation_1): Use it.
4155 2015-08-18 Marek Polacek <polacek@redhat.com>
4158 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4159 if the call isn't valid.
4160 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4161 gimple_call_builtin_p.
4162 (call_may_clobber_ref_p_1): Likewise.
4163 (stmt_kills_ref_p): Likewise.
4165 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4167 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4168 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4169 (mips_hard_regno_scratch_ok): Likewise.
4170 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4171 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4173 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4175 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4176 (determine_value_range): Call refine_value_range_using_guard for
4177 each loop initial condition to improve value range.
4179 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4181 * config/i386/i386.c: Remove include of fibheap.h.
4183 2015-08-17 Richard Biener <rguenther@suse.de>
4185 PR tree-optimization/67221
4186 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4187 (sccvn_dom_walker::before_dom_children): Mark backedges of
4188 non-executable blocks as not executable.
4190 2015-08-17 David Sherwood <david.sherwood@arm.com>
4192 * config/arm/arm.c (neon_element_bits): Replace call to
4193 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4194 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4195 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4196 (neon_vdup_lane<mode>): Likewise.
4197 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4198 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4199 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4200 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4201 * config/spu/spu.c (arith_immediate_p): Likewise.
4202 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4203 * expr.c (expand_expr_real_2): Likewise.
4204 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4205 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4206 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4207 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4209 * fold-const.c (fold_binary_loc): Replace call to
4210 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4211 GET_MODE_UNIT_PRECISION (m).
4213 2015-08-17 Mike Stump <mikestump@comcast.net>
4215 * config/arm/arm.c (arm_block_move_unaligned_straight):
4216 Emit normal move instead of unaligned load when source or destination
4217 are appropriately aligned.
4219 2015-08-17 Richard Biener <rguenther@suse.de>
4220 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4223 * match.pd (div (coss (op @0) : New simplifier.
4225 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4227 PR rtl-optimization/64164
4230 PR rtl-optimization/67000
4233 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4234 * tree-ssa-copyrename.c: Removed.
4235 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4236 -ftree-coalesce-vars.
4237 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4238 * common.opt (ftree-copyrename): Ignore.
4239 (ftree-coalesce-inlined-vars): Likewise.
4240 * doc/invoke.texi: Remove the ignored options above.
4241 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4242 * tree-ssa-coalesce.h: ... here.
4243 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4244 headers required by it.
4245 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4246 across variables when flag_tree_coalesce_vars. Check register
4247 use and promoted modes to allow coalescing. Do not coalesce
4248 maybe-byref parms with SSA_NAMEs of other variables, or
4249 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4250 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4251 with its member functions to tree-ssa-coalesce.c.
4252 (var_map_base_init): Likewise. Renamed to
4253 compute_samebase_partition_bases.
4254 (partition_view_normal): Drop want_bases parameter.
4255 (partition_view_bitmap): Likewise.
4256 * tree-ssa-live.h: Adjust declarations.
4257 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4258 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4259 default defs at the entry point.
4260 (dump_part_var_map): New.
4261 (compute_optimized_partition_bases): New, called by...
4262 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4263 of compute_samebase_partition_bases. Adjust.
4264 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4265 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4266 (ssa_default_def_partition): New.
4267 (get_rtl_for_parm_ssa_default_def): New.
4268 (align_local_variable, add_stack_var): Support anonymous SSA
4270 (defer_stack_allocation): Likewise. Declare earlier.
4271 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4272 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4273 Do no record deferred-allocation marker in
4274 SA.partition_to_pseudo.
4275 (expand_stack_vars): Adjust check for the marker in it.
4276 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4277 redundant MEM attr setting.
4278 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4280 (expand_one_stack_var): ... this. New wrapper to check and
4281 skip already expanded SSA partitions.
4282 (record_alignment_for_reg_var): New, factored out of...
4283 (expand_one_var): ... this.
4284 (expand_one_ssa_partition): New.
4285 (adjust_one_expanded_partition_var): New.
4286 (expand_one_register_var): Check and skip already expanded SSA
4288 (expand_used_vars): Don't create DECLs for anonymous SSA
4289 names. Expand all SSA partitions, then adjust all SSA names.
4290 (pass::execute): Replace the loops that set
4291 SA.partition_to_pseudo from partition leaders and cleared
4292 DECL_RTL for multi-location variables, and that which used to
4293 rename vars and set attrs, with one that clears DECL_RTL and
4294 checks that PARMs and RESULTs default_defs match DECL_RTL.
4295 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4296 * emit-rtl.c: Include stor-layout.h.
4297 (set_reg_attrs_for_parm): Handle NULL decl.
4298 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4300 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4301 rather than its possibly-NULL DECL.
4302 * explow.c (promote_ssa_mode): New.
4303 * explow.h (promote_ssa_mode): Declare.
4304 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4305 (read_complex_part): Export.
4306 * expr.h (read_complex_part): Declare.
4307 * cfgexpand.h (parm_maybe_byref_p): Declare.
4308 * function.c: Include cfgexpand.h.
4309 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4310 (use_register_for_parm_decl): Wrapper for the above to
4311 special-case the result_ptr.
4312 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4313 (split_complex_args): Take assign_parm_data_all argument.
4314 Pass it to rtl_for_parm. Set up rtl and context for split
4315 args. Reset complex parm before fetching its default decl
4317 (assign_parms_unsplit_complex): Use the default-def complex
4318 parm rtl if it matches the components.
4319 (assign_parms_augmented_arg_list): Adjust.
4320 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4321 multiple locations. Recognize split complex args.
4322 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4323 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4324 (assign_parm_setup_block): Prefer SSA-assigned location, and
4325 fill in its address if the memory location of a maybe-byref
4326 parm was not assigned by cfgexpand.
4327 (assign_parm_setup_reg): Likewise. Adjust its mode as
4328 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4329 sure passed_pointer parms don't need conversion. Copy address
4331 (assign_parm_setup_stack): Prefer SSA-assigned location.
4332 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4333 rtl before testing for pointer bounds. Special-case result_ptr.
4334 (expand_function_start): Maybe reset DECL_RTL of result.
4335 Prefer SSA-assigned location for result and static chain.
4336 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4337 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4338 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4339 anonymous SSA names. Use promote_ssa_mode.
4340 (get_temp_reg): Likewise.
4341 (remove_ssa_form): Adjust.
4342 * stor-layout.c (layout_decl): Don't set mem attributes of
4344 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4345 and get its reg_usage for reg invalidation.
4346 (compute_bb_dataflow): Pass it insn.
4347 (emit_notes_in_bb): Likewise.
4349 2015-08-14 Marek Polacek <polacek@redhat.com>
4351 * tree-core.h (tree_base): Fix typo.
4353 2015-08-14 Marek Polacek <polacek@redhat.com>
4356 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4357 nonnull argument position is not outside function arguments.
4359 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4362 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4363 'lconst_atomic' with 'const_atomic'.
4364 (atomic_fetch_<optab><mode>): Likewise.
4365 (atomic_<optab>_fetch<mode>): Likewise.
4366 * config/aarch64/iterators.md (lconst-atomic): Move below
4368 (const_atomic): New.
4370 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4371 Bernd Schmidt <bernds@codesourcery.com>
4373 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4375 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4376 (DWARF2_DEBUGGING_INFO): Don't define.
4377 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4378 * toplev.c (process_options): Add a case for it.
4379 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4380 (dwarf2out_init): Skip most initializations if
4381 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4383 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4384 DWARF2_LINENO_DEBUGGING_INFO.
4385 * opts.c (set_debug_level): Likewise.
4387 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4389 * config/arm/types.md (is_neon_type): Add missing types.
4391 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4393 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4395 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4396 (processor_alias_table): Add skylake description.
4397 (enum processor_model): Add skylake processor.
4398 (arch_names_table): Add skylake record.
4399 * doc/invoke.texi: Add skylake item.
4401 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4403 * ira-int.h: Include recog.h.
4404 * ira-build.c: Don't include recog.h.
4405 * ira-color.c: Likewise.
4406 * ira-conflicts.c: Likewise.
4407 * ira-costs.c: Likewise.
4408 * ira-emit.c: Likewise.
4409 * ira-lives.c: Likewise.
4411 * sched-deps.c: Likewise.
4412 * sel-sched.c: Likewise.
4413 * target-globals.c: Likewise.
4415 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4418 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4419 compiler that the n_dups and n_operands loop bounds are invariant.
4421 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4423 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4424 expressions in A and B.
4426 2015-08-13 Richard Biener <rguenther@suse.de>
4428 * tree.c (nonnull_arg_p): Move from ...
4429 * tree-vrp.c (nonnull_arg_p): ... here.
4430 * tree.h (nonnull_arg_p): Declare.
4431 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4432 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4433 Properly initialize static chain and by-reference result pointer.
4434 (run_scc_vn): Adjust.
4436 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4438 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4441 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4443 * config/aarch64/aarch64-protos.h
4444 (aarch64_gen_atomic_cas): Declare.
4445 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4446 Choose appropriate instruction pattern for the target.
4447 (aarch64_gen_atomic_cas): New.
4448 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4449 (atomic_compare_and_swap<mode>_1): Rename to
4450 aarch64_compare_and_swap<mode>. Fix some indentation.
4451 (aarch64_compare_and_swap<mode>_lse): New.
4452 (aarch64_atomic_cas<mode>): New.
4454 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4456 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4459 2015-08-13 Richard Biener <rguenther@suse.de>
4461 PR tree-optimization/67191
4462 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4463 assert we value-numbered last stmts operand because it can validly
4464 trigger for unreachable code.
4466 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4468 PR rtl-optimization/67103
4469 * ifcvt.c (noce_try_store_flag_constants): Move
4470 x = (-(test != 0) & (b - a)) + a transformation to...
4471 (noce_try_cmove): ... Here. Try it if normal conditional
4474 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4476 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4478 * config/mips/mips.md (processor): Remove w32 and w64.
4480 2015-08-13 Richard Biener <rguenther@suse.de>
4482 PR tree-optimization/66502
4483 PR tree-optimization/67167
4484 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4486 (vn_phi_lookup): Adjust.
4487 (vn_phi_insert): Likewise.
4488 (visit_phi): Prefer to value-number to another PHI node
4489 over value-numbering to a PHI argument.
4490 (init_scc_vn): Mark DFS back edges.
4492 2015-08-13 Richard Biener <rguenther@suse.de>
4494 * gimple.h (gcall::code_): New constant static member.
4495 (gcond::code_): Likewise.
4496 * gimple.c (gcall::code_): Define.
4497 (gcond::code_): Likewise.
4498 (is_a_helper <const gcond *>): Add.
4499 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4500 and forward to a new gcall overload with less checking and a
4501 cheaper way to access the operand.
4502 (gimple_call_lhs_ptr): Likewise.
4503 (gimple_call_set_lhs): Likewise.
4504 (gimple_call_internal_p): Likewise.
4505 (gimple_call_with_bounds_p): Likewise.
4506 (gimple_call_set_with_bounds): Likewise.
4507 (gimple_call_internal_fn): Likewise.
4508 (gimple_call_set_ctrl_altering): Likewise.
4509 (gimple_call_ctrl_altering_p): Likewise.
4510 (gimple_call_fntype): Likewise.
4511 (gimple_call_fn): Likewise.
4512 (gimple_call_fn_ptr): Likewise.
4513 (gimple_call_set_fndecl): Likewise.
4514 (gimple_call_fndecl): Likewise.
4515 (gimple_call_chain): Likewise.
4516 (gimple_call_num_args): Likewise.
4517 (gimple_call_arg): Likewise.
4518 (gimple_call_arg_ptr): Likewise.
4519 (gimple_call_set_arg): Likewise.
4520 (gimple_call_noreturn_p): Likewise.
4521 (gimple_cond_code): Likewise.
4522 (gimple_cond_lhs): Likewise.
4523 (gimple_cond_rhs): Likewise.
4524 (gimple_has_lhs): Reduce checking.
4526 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4529 * match.pd (div (mult @0 @1) @1) : New simplifier.
4531 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4534 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4535 predicate to allow construction of vector constants using the
4536 VSLDOI vector shift instruction.
4538 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4541 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4542 the number of bytes to be shifted left and filled in with either
4543 all zero or all one bits.
4544 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4546 (output_vec_const_move): On power8, generate XXLORC to generate
4547 a vector constant with all 1's. Do a split if we need to use a
4550 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4551 properly test for the MSB.
4553 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4554 vector constants that can be created with VSLDOI.
4556 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4559 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4560 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4561 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4562 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4563 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4564 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4565 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4566 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4567 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4569 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4571 * config/xtensa/constraints.md (define_constraint "Y"): New
4573 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4574 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4575 * config/xtensa/predicates.md (move_operand): Match constants
4576 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4577 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4578 immediate references to TLS data.
4579 (xtensa_emit_move_sequence): Don't force constants to memory in
4580 the presence of TARGET_AUTO_LITPOOLS.
4581 (print_operand): Add 'y' format, same as default, but capable of
4582 printing SF mode constants as well.
4583 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4584 (movsf_internal): Add movi pattern that loads literal.
4585 (movsf, movdf): Don't force constants to memory in the presence
4586 of TARGET_AUTO_LITPOOLS.
4587 (movdf_internal): Add 'Y' constraint.
4588 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4589 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4591 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4593 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4595 * config/arm/arm.c (ARM_FPU): Update macro.
4596 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4597 (TARGET_FP16): Likewise.
4598 (TARGET_CRYPTO): Likewise.
4599 (TARGET_NEON): Likewise.
4600 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4603 2015-08-12 Tom de Vries <tom@codesourcery.com>
4607 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4608 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4609 accordingly. Mention default for --with-stage1-ldflags.
4611 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4613 * config/arm/arm.h (arm_fpu_feature_set): New.
4614 (ARM_FPU_FSET_HAS): New.
4618 (FPU_FL_CRYPTO): New.
4620 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4622 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4623 after -mcmodel=large -fPIC sorry.
4625 2015-08-12 Richard Biener <rguenther@suse.de>
4627 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4628 comparison operand order and commutative ternary op operand order.
4629 (sccvn_dom_walker::cond_stack): New state to track temporary
4631 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4633 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4635 (sccvn_dom_walker::record_conds): Add a temporary conditional
4636 expressions and all related expressions also true/false.
4637 (sccvn_dom_walker::before_dom_children): Record temporary
4638 expressions based on the controlling condition of a single
4639 predecessor. When trying to simplify a conditional statement
4640 lookup expressions we might have inserted earlier.
4642 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4645 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4646 to ARM core registers.
4648 2015-08-12 Nathan Sidwell <nathan@acm.org>
4650 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4651 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4653 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4655 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4657 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4659 2015-08-12 Richard Biener <rguenther@suse.de>
4661 * gimple.h (remove_pointer): New trait.
4662 (GIMPLE_CHECK2): New inline template function.
4663 (gassign::code_): New constant static member.
4664 (is_a_helper<const gassign *>): Add.
4665 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4666 and forward to a new gassign overload with less checking and a
4667 cheaper way to access the operand.
4668 (gimple_assign_lhs_ptr): Likewise.
4669 (gimple_assign_set_lhs): Likewise.
4670 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4672 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
4674 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
4676 (gimple_assign_rhs_code): Likewise.
4677 * gimple.c (gassign::code_): Define.
4679 2015-08-12 Richard Biener <rguenther@suse.de>
4681 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4682 Eliminate edges marked as not executable by SCCVN.
4683 * tree-ssa-sccvn.c: Include gimple-iterator.h.
4684 (cond_dom_walker): Rename to sccvn_dom_walker.
4685 (sccvn_dom_walker::before_dom_children): Value-number defs
4687 (run_scc_vn): Remove loop value-numbering all SSA names.
4688 Drop not visited SSA names to varying.
4690 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4692 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4693 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4694 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4695 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4696 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4697 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4698 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4699 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4700 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4702 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
4705 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
4706 to enum feature_priority and feature_list.
4707 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
4708 and isa_names_table.
4710 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4712 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
4715 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4719 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
4720 account when deciding what was the command-line status.
4722 2015-08-11 Nathan Sidwell <nathan@acm.org>
4724 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4726 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4727 we're not the only contributor to target phi.
4729 2015-08-11 Jiong Wang <jiong.wang@arm.com>
4731 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4734 2015-08-11 Tom de Vries <tom@codesourcery.com>
4736 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4738 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
4740 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4742 * config/i386/i386.md (cpu): Remove knl.
4744 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4748 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4749 open-coded sequence.
4750 * omp-low.c (oacc_process_reduction_data): Remove handline of
4751 GOMP_DEVICE_HOST_NONSHM.
4753 * lto-streamer-in.c (lto_input_mode_table): Adjust to
4754 GET_MODE_INNER changes.
4756 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4757 Ilya Verbin <ilya.verbin@intel.com>
4759 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
4761 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4763 * doc/options.texi (EnabledBy): Document that the argument must be
4765 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
4766 Not enabled by -Wall.
4767 * optc-gen.awk: Give nicer error messages. Detect if the argument
4768 of EnabledBy is not a Common option.
4769 * common.opt (Wnull-dereference): Not enabled by -Wall.
4770 * opt-functions.awk (lang_enabled_by): Nicer error messages.
4772 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
4774 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4775 model == 0x4f as Broadwell.
4777 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4779 PR rtl-optimization/67028
4780 * combine.c (simplify_comparison): Fix comment. Rearrange code.
4781 Add test to see if a const_int fits in the new mode.
4783 2015-08-07 DJ Delorie <dj@redhat.com>
4785 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4787 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
4789 PR rtl-optimization/67029
4790 * ira-color.c: Include "recog.h" before including "ira-int.h".
4791 * target-globals.c: Likewise.
4792 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4793 adds an alternative_mask argument and use it instead of
4794 preferred_alternatives.
4795 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4796 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4797 * sched-deps.c: Include "ira-int.h" after including "ira.h".
4798 (sched_analyze_insn): Update call to
4799 ira_implicitly_set_insn_hard_regs.
4800 * sel-sched.c: Include "ira-int.h" after including "ira.h".
4801 (implicit_clobber_conflict_p): Update call to
4802 ira_implicitly_set_insn_hard_regs.
4804 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4806 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4808 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
4811 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4812 currently_expanding_to_rtl is set.
4814 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4816 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4817 * configure: Regenerate.
4819 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4820 Jiong Wang <jiong.wang@arm.com>
4822 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4823 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4824 (REG_CLASS_NAMES): Likewise.
4825 (REG_CLASS_CONTENTS): Likewise.
4826 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4827 (aarch64_register_move_cost): Likewise.
4828 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4830 * config/aarch64/constraints.md (Uc0): New constraint.
4832 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4834 * config/aarch64/constraints.md (Usf): Add the test of
4835 aarch64_is_noplt_call_p.
4837 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4839 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4841 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4842 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4843 (call_symbol): Likewise.
4845 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4847 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4848 for vectorizing multiplication patterns.
4849 * tree-vectorizer.h: Adjust the number of patterns.
4851 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4853 * config/i386/sse.md (*vec_concatv2df): Declare added
4854 alternatives as sselog type.
4856 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4858 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4861 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4863 * config/s390/s390.c (s390_expand_tbegin): Expand either
4864 tbegin_1_z13 or tbegin_1 depending on VX flag.
4865 * config/s390/s390.md ("tbegin_1_z13"): New expander.
4867 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4869 * config/s390/s390.opt: Clarify description for -mzvector
4870 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4873 2015-08-06 Richard Biener <rguenther@suse.de>
4875 * gimple.h (gimple_call_set_fn): Access op member directly.
4876 (gimple_call_chain_ptr): Likewise.
4877 (gimple_call_set_chain): Likewise.
4878 (gimple_cond_lhs_ptr): Likewise.
4879 (gimple_cond_set_lhs): Likewise.
4880 (gimple_cond_rhs_ptr): Likewise.
4881 (gimple_cond_set_rhs): Likewise.
4882 (gimple_cond_true_label): Likewise.
4883 (gimple_cond_set_true_label): Likewise.
4884 (gimple_cond_set_false_label): Likewise.
4885 (gimple_cond_false_label): Likewise.
4886 (gimple_label_label): Likewise.
4887 (gimple_label_set_label): Likewise.
4888 (gimple_goto_set_dest): Likewise.
4889 (gimple_asm_input_op): Likewise.
4890 (gimple_asm_input_op_ptr): Likewise.
4891 (gimple_asm_set_input_op): Likewise.
4892 (gimple_asm_output_op): Likewise.
4893 (gimple_asm_output_op_ptr): Likewise.
4894 (gimple_asm_set_output_op): Likewise.
4895 (gimple_asm_clobber_op): Likewise.
4896 (gimple_asm_set_clobber_op): Likewise.
4897 (gimple_asm_label_op): Likewise.
4898 (gimple_asm_set_label_op): Likewise.
4899 (gimple_switch_index): Likewise.
4900 (gimple_switch_index_ptr): Likewise.
4901 (gimple_return_retval_ptr): Likewise.
4902 (gimple_return_retval): Likewise.
4903 (gimple_return_set_retval): Likewise.
4904 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
4905 (gimple_switch_label): Likewise.
4906 (gimple_switch_set_label): Likewise.
4908 2015-08-06 Richard Biener <rguenther@suse.de>
4910 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4911 bool comparison canonicalization and restrict to integers.
4913 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
4915 * coretypes.h (enum symbol_visibility): Relocate here.
4916 * flag-types.h (enum symbol_visibility): Remove.
4917 * tree-core.h (enum symbol_visibility): Remove.
4919 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
4922 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4923 for no_split_stack function attribute along with
4925 (rs6000_expand_split_stack_prologue): Likewise.
4927 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4928 Jeff Law <law@redhat.com>
4931 * doc/invoke.texi (Wnull-dereference): New.
4932 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4933 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4934 Warn for potential NULL dereferences.
4935 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4936 * ubsan.c (instrument_nonnull_arg): Call
4937 infer_nonnull_range_by_attribute.
4938 (instrument_nonnull_return): Likewise.
4939 * common.opt (Wnull-dereference); New.
4940 * gimple.c (infer_nonnull_range): Remove bool arguments.
4941 (infer_nonnull_range_by_dereference): New.
4942 (infer_nonnull_range_by_attribute): New.
4943 * gimple.h: Update declarations.
4945 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4947 * gensupport.c (sequence_num): Replace with...
4948 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4949 ...these new variables.
4950 (init_rtx_reader_args_cb): Update accordingly.
4951 (get_num_code_insns): Likewise.
4952 (read_md_rtx): Rework to use a while loop and get_c_test.
4953 Use the new counters. Remove redundant DEFINE_SUBST case.
4954 * genoutput.c (gen_split): Delete.
4955 (main): Don't call it.
4957 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4959 * gensupport.h (get_c_test): Declare.
4960 * gensupport.c (get_c_test): New function.
4961 * genconditions.c (main): Use it.
4962 * genrecog.c (validate_pattern): Likewise.
4963 (match_pattern_1): Likewise. Remove c_test argument.
4964 (match_pattern): Update accordingly and remove c_test argument.
4965 (main): Update accordingly.
4967 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4969 * gensupport.h (get_num_insn_codes): Declare.
4970 * gensupport.c (get_num_insn_codes): New function.
4971 * genattrtab.c (optimize_attrs): Rename max_insn_code to
4973 (main): Likewise. Use get_num_insn_codes.
4974 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4976 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4979 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4980 is zero- rather than sign-extended.
4982 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4984 * target-insns.def (can_extend): Delete.
4986 2015-08-05 Richard Biener <rguenther@suse.de>
4988 PR tree-optimization/67121
4989 * tree-if-conv.c (combine_blocks): Clear range-info produced
4990 by stmts no longer executed conditionally.
4992 2015-08-05 Nick Clifton <nickc@redhat.com>
4994 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4995 to allow identical far pointers to remain.
4997 2015-08-05 Richard Biener <rguenther@suse.de>
5000 * match.pd: Compare address bases with == if they are decls
5001 or SSA names, not operand_equal_p. Otherwise fail.
5003 2015-08-05 Richard Biener <rguenther@suse.de>
5005 PR tree-optimization/67055
5006 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5009 * g++.dg/torture/pr67055.C: New testcase.
5011 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5013 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5015 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5016 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5017 AVX-512 alternative out of SSE.
5018 (define_insn "*vec_concatv2df"): Ditto.
5020 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5022 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5023 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5024 CODE_FOR_avx_ptestv4di.
5025 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5026 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5027 (define_insn "avx_ptest256"): Merge this ...
5028 (define_insn "sse4_1_ptest"): And this ...
5029 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5031 2015-08-05 Richard Biener <rguenther@suse.de>
5033 PR tree-optimization/67109
5034 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5035 against too big groups. Print whether this is a load or store
5036 group. Rename from ...
5037 (vect_analyze_group_access): ... this which is now a wrapper
5038 dissolving an invalid group.
5039 (vect_analyze_data_ref_accesses): Print whether this is a load
5042 2015-08-05 Richard Biener <rguenther@suse.de>
5045 * match.pd: Guard const_binop result checking against NULL_TREE
5048 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5050 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5051 when dest and value in the REG_EQUAL are same and dest
5054 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5056 * config/moxie/moxie.h (PRINT_OPERAND,
5057 PRINT_OPERAND_ADDRESS): Remove macros.
5058 * config/moxie/moxie-protos.h (moxie_print_operand,
5059 moxie_print_operand_address): Remove declaration.
5060 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5061 TARGET_PRINT_OPERAND_ADDRESS): Define.
5062 (moxie_print_operand, moxie_print_operand_address): Make static.
5064 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5067 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5068 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5070 2015-08-04 Richard Biener <rguenther@suse.de>
5072 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5074 (dt_operand::gen_gimple_expr): Adjust.
5076 2015-08-04 Richard Biener <rguenther@suse.de>
5078 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5079 bool compares on RHS.
5080 * match.pd: Add X ==/!= !X is false/true pattern.
5082 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5084 * config/aarch64/aarch64.c: Change inner loop statement cost
5085 to be consistent with other targets.
5087 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5089 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5092 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5094 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5095 (machine_function): Remove pseudos field.
5097 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5099 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5100 Exit early and use target_option_current_node if processing current
5103 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5105 * doc/extend.texi (AArch64 Function Attributes): New node.
5106 (AArch64 Pragmas): Likewise.
5108 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5110 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5111 Initialize simd builtins if TARGET_SIMD.
5112 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5113 Make sure that the builtins are initialized only once no matter how
5114 many times the function is called.
5115 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5116 (aarch64_relayout_simd_param): New function.
5117 (aarch64_simd_expand_args): Use above during argument expansion.
5118 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5119 simd builtins if TARGET_SIMD.
5120 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5122 (aarch64_relayout_simd_types): Likewise.
5124 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5126 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5127 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5128 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5129 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5131 (aarch64_reset_previous_fndecl): New function.
5132 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5134 * config/aarch64/aarch64-c.c: New file.
5135 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5136 Push and pop options at beginning and end. Remove ifdef
5137 __ARM_FEATURE_CRC32.
5138 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5139 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5140 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5141 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5143 (aarch64_register_pragmas): Likewise.
5144 (aarch64_reset_previous_fndecl): Likewise.
5145 (aarch64_process_target_attr): Likewise.
5146 (aarch64_override_options_internal): Likewise.
5148 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5150 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5152 (aarch64_can_inline_p): Likewise.
5153 (TARGET_CAN_INLINE_P): Define.
5155 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5157 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5158 Remove static. Handle OPT_mgeneral_regs_only,
5159 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5160 OPT_momit_leaf_frame_pointer.
5161 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5162 (aarch64_attr_opt_type): New enum.
5163 (aarch64_attribute_info): New struct.
5164 (aarch64_handle_attr_arch): New function.
5165 (aarch64_handle_attr_cpu): Likewise.
5166 (aarch64_handle_attr_tune): Likewise.
5167 (aarch64_handle_attr_isa_flags): Likewise.
5168 (aarch64_attributes): New table.
5169 (aarch64_process_one_target_attr): New function.
5170 (num_occurences_in_str): Likewise.
5171 (aarch64_process_target_attr): Likewise.
5172 (aarch64_option_valid_attribute_p): Likewise.
5173 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5174 * config/aarch64/aarch64-protos.h: Include input.h
5175 (aarch64_handle_option): Declare prototype.
5177 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5179 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5180 * config/aarch64/aarch64.c: Include target-globals.h
5181 (aarch64_previous_fndecl): New variable.
5182 (aarch64_set_current_function): New function.
5183 (TARGET_SET_CURRENT_FUNCTION): Define.
5185 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5187 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5188 (explicit_arch): Likewise.
5189 (x_aarch64_isa_flags): Likewise.
5190 (mgeneral-regs-only): Mark as Save.
5191 (mfix-cortex-a53-835769): Likewise.
5192 (mcmodel=): Likewise.
5193 (mstrict-align): Likewise.
5194 (momit-leaf-frame-pointer): Likewise.
5195 (mtls-dialect): Likewise.
5196 (master=): Likewise.
5197 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5198 (aarch64_isa_flags): Remove extern declaration.
5199 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5200 to indicate success or failure.
5201 (aarch64_validate_march): Likewise.
5202 (aarch64_validate_mtune): Likewise.
5203 (aarch64_isa_flags): Delete.
5204 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5205 instead of aarch64_isa_flags.
5206 (aarch64_get_tune_cpu): New function.
5207 (aarch64_get_arch): Likewise.
5208 (aarch64_override_options): Use above and set up explicit_tune_core
5210 (aarch64_print_extension): Move earlier in file. Add isa_flags
5211 argument and use that instead of the global aarch64_isa_flags.
5212 (aarch64_option_save): New function.
5213 (aarch64_option_restore): Likewise.
5214 (aarch64_option_print): Likewise.
5215 (aarch64_declare_function_name): Likewise.
5216 (aarch64_start_file): Delete.
5217 (TARGET_ASM_FILE_START): Do not define.
5218 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5219 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5222 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5224 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5225 flag_omit_leaf_frame_pointer to 2.
5227 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5229 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5231 (TARGET_FIX_ERR_A53_835769): New macro.
5232 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5233 handling of opts->x_aarch64_fix_a53_err835769.
5234 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5235 than aarch64_fix_a53_err835769.
5236 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5237 * config/aarch64/aarch64-linux.h: Likewise.
5239 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5241 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5242 ix86_expand_int_movcc as boolean.
5244 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5246 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5247 (aarch64_cpu_string): Likewise.
5248 (aarch64_tune_string): Likewise.
5249 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5250 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5251 Add extra argument to put result into.
5252 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5253 (aarch64_parse_cpu): Add arguments to put results into. Return
5254 aarch64_parse_opt_result.
5255 (aarch64_parse_tune): Likewise.
5256 (aarch64_override_options_after_change_1): New function.
5257 (aarch64_override_options_internal): New function.
5258 (aarch64_validate_mcpu): Likewise.
5259 (aarch64_validate_march): Likewise.
5260 (aarch64_validate_mtune): Likewise.
5261 (aarch64_override_options): Update to reflect above changes.
5262 Move some logic into aarch64_override_options_internal.
5263 Initialize target_option_default_node and target_option_current_node.
5264 (aarch64_override_options_after_change): Move logic into
5265 aarch64_override_options_after_change_1 and call it with global_options.
5266 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5267 flag values from that.
5269 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5271 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5272 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5273 * config/aarch64/aarch64.c (struct processor): Add arch field.
5274 (all_architectures): Handle above, move above all_cores.
5275 (all_cores): Handle above.
5276 (aarch64_parse_arch): Handle above changes.
5277 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5278 above. Update comments.
5279 (armv8.1-a): Likewise.
5280 * config/aarch64/aarch64-cores.def: Update according to above.
5281 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5282 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5283 aarch64_arch_driver_info.
5285 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5287 * config/aarch64/aarch64.c (struct processor): Add ident field.
5288 Rename core sched_core.
5289 (all_cores): Handle above changes.
5290 (all_architectures): Likewise.
5291 (aarch64_parse_arch): Likewise.
5292 (aarch64_override_options): Likewise.
5294 2015-08-04 Richard Biener <rguenther@suse.de>
5296 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5297 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5298 comparisons embedded in [VEC_]COND_EXPRs.
5300 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5302 * tree-if-conv.c: Fix various typos in comments.
5303 * tree-vect-stmts.c: Likewise.
5305 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5307 PR tree-optimization/67043
5308 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5309 preheader after hoisting invariant in it.
5310 (find_defs): Force recomputation of all luids.
5312 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5314 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5315 using a base register.
5317 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5319 * main.c (main): Pass in NULL for toplev's external_timer.
5320 * timevar.c: Include coretypes.h.
5321 (class timer::named_items): New.
5322 (timer::named_items::named_items): New.
5323 (timer::named_items::~named_items): New.
5324 (timer::named_items::push): New.
5325 (timer::named_items::pop): New.
5326 (timer::named_items::print): New.
5327 (timer::timer): Initialize field "m_jit_client_items".
5328 (timer::~timer): New.
5329 (timer::push): Move bulk of implementation to...
5330 (timer::push_internal): ...here. New function.
5331 (timer::pop): Move bulk of implementation to...
5332 (timer::pop_internal): ...here. New function.
5333 (timer::push_client_item): New.
5334 (timer::pop_client_item): New.
5335 (timer::print_row): New function, taken from timer::print.
5336 (timer::print): Print "GCC items" header if we also have client
5337 items. Move row-printing to timer::print_row. Print any client
5339 (timer::get_topmost_item_name): New method.
5340 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5341 (TV_JIT_CLIENT_CODE): New.
5342 * timevar.h (timer::push_client_item): New declaration.
5343 (timer::pop_client_item): New declaration.
5344 (timer::get_topmost_item_name): New method.
5345 (timer::push_internal): New declaration.
5346 (timer::pop_internal): New declaration.
5347 (timer::print_row): New declaration.
5348 (timer::named_items): New declaration.
5349 (timer::m_jit_client_items): New field.
5350 (timer): Add friend class named_items.
5351 (auto_timevar::auto_timevar): Add timer param.
5352 (auto_timevar::~auto_timevar): Use field "m_timer".
5353 (auto_timevar::m_timer): New field.
5354 * toplev.c (initialize_rtl): Add g_timer as param when
5355 constructing auto_timevar instance.
5356 (toplev::toplev): Add "external_timer" param, and use it to
5357 initialize the "g_timer" global if non-NULL.
5358 (toplev::~toplev): If this created "g_timer", delete it.
5359 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5360 with "external_timer" timer *.
5362 2015-08-03 Alexander Basov <coohpt@gmail.com>
5367 * cfgexpand.c (expand_one_var): Add check if stack is going to
5368 be used in naked function.
5369 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5370 whether expression should not reside in MEM.
5371 * function.c (use_register_for_decl): Do not use registers for
5372 non-register things (volatile, float, BLKMode) in naked functions.
5374 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5377 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5378 Adjust splits to match new pattern.
5380 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5382 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5385 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5386 point in VSX registers.
5388 * config/rs6000/constraints.md (wb constraint): Document unused
5390 (we constraint): Likewise.
5391 (wo constraint): Likewise.
5392 (wp constraint): New constraint for IEEE 128-bit floating point in
5394 (wq constraint): Likewise.
5396 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5397 IEEE 128-bit floating point in VSX registers.
5398 (easy_scalar_constant): Likewise.
5400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5401 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5403 (rs6000_init_hard_regno_mode_ok): Likewise.
5405 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5406 floating point in VSX registers.
5415 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5416 IEEE 128-bit floating point in VSX registers on little endian.
5417 (vsx_le_undo_permute_<mode>): Likewise.
5418 (vsx_le_perm_load_<mode>): Likewise.
5419 (vsx_le_perm_store_<mode>): Likewise.
5420 (splitters for IEEE 128-bit fp moves): Likewise.
5422 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5425 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5426 floating point in VSX registers.
5429 * doc/md.text (Machine Constraints): Document wp and wq
5430 constraints on PowerPC.
5432 2015-08-03 Jeff Law <law@redhat.com>
5435 PR gcov-profile/66899
5436 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5437 iterate over the jump threading paths when an element in the
5438 jump threading paths array is eliminated.
5440 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5442 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5444 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5446 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5447 is_use_properly_guarded the variable def_preds. Free its
5448 contents before returning.
5449 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5450 (is_use_properly_guarded): Replace local variable def_preds with
5451 a parameter. Adjust accordingly. Only update *def_preds if it's
5454 2015-08-03 Richard Biener <rguenther@suse.de>
5456 * genmatch.c (simplify::for_subst_vec): New member.
5457 (binary_ok): New helper for for lowering.
5458 (lower_for): Delay substituting operators into result expressions
5459 if we can merge the results eventually again.
5460 (capture_info::walk_result): Adjust for user_id appearing as
5461 result expression operator.
5462 (expr::gen_transform): Likewise.
5463 (dt_simplify::gen_1): Likewise.
5464 (dt_simplify::gen): Pass not substituted operators to tail
5465 functions or initialize local variable with it.
5466 (decision_tree::gen): Adjust function signature.
5467 * match.pd: Fix tests against global code and add default
5468 cases to switch stmts.
5470 2015-08-03 Richard Biener <rguenther@suse.de>
5472 * genmatch.c (dt_simplify::gen): Create captures array
5473 with an initializer.
5475 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5477 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5478 the host compiler is affected by placement new aliasing bug.
5479 * configure: Regenerate.
5480 * Makefile.in (ALIASING_FLAGS): New variable.
5481 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5483 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5486 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5487 (negmulsf3_vfp): Likewise.
5488 (muldf3negdf_vfp): Disable for -frounding-math.
5489 (mulsf3negsf_vfp): Likewise.
5490 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5491 fix MULT cost with -frounding-math.
5493 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5495 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5496 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5497 explicit. Prefer to add the flag whenever possible.
5498 (noce_process_if_block): Try noce_try_store_flag_constants before
5501 2015-08-03 Richard Biener <rguenther@suse.de>
5503 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5504 New hash-map to record equivalent transforms.
5505 (dt_node::analyze): Populate the equivalent transforms hash-map.
5506 (dt_simplify::info): Add reference to hash-map entry.
5507 (dt_simplify::gen): If we have split out a function for the
5508 transform, generate a call to it.
5509 (sinfo_hashmap_traits::hash): New function.
5510 (compare_op): New helper function for ...
5511 (sinfo_hashmap_traits::equal_keys): ... this new function.
5512 (decision_tree::gen): Split out common equivalent transforms
5515 2015-08-03 Richard Biener <rguenther@suse.de>
5517 * gimple-fold.c (fold_gimple_assign): Remove folding of
5518 the comparison in COND_EXPRs.
5520 2015-08-03 Richard Biener <rguenther@suse.de>
5522 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5523 on the rhs of assignments first simplify the embedded
5526 2015-08-03 Richard Biener <rguenther@suse.de>
5528 PR tree-optimization/66917
5529 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5531 (DR_VECT_AUX): New macro.
5532 (set_dr_misalignment): Adjust.
5533 (dr_misalignment): Likewise.
5534 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5535 Compute whether the base is at least element aligned.
5536 * tree-vect-stmts.c (ensure_base_align): Adjust.
5537 (vectorizable_store): If the base is not element aligned
5538 preserve alignment of the original access if misalignment is unknown.
5539 (vectorizable_load): Likewise.
5541 2015-08-02 Martin Sebor <msebor@redhat.com>
5543 * c-family/c.opt (-Wframe-address): New warning option.
5544 * doc/invoke.texi (Wframe-address): Document it.
5545 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5546 Clarify possible effects of calling the functions with non-zero
5547 arguments and mention -Wframe-address.
5548 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5550 2015-08-01 Michael Collison <michael.collison@linaro.org
5551 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5553 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5554 (*arm_umin_cmp): Likewise.
5556 2015-08-01 Caroline Tice <cmtice@google.com>
5559 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5561 (vtbl_find_mangled_name): New function.
5562 (vtbl_register_mangled_name): New function.
5563 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5564 mangled name in mangled name vectors.
5565 (find_or_create_vtbl_map_node): Ditto.
5566 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5567 update recursion_depth on function entry; pass it to every recursive
5568 call; automatically exit if depth > 25 (give up looking at that point).
5569 (verify_bb_vtables): Initialize recursion_depth and pass it to
5570 var_is_used_for_virtual_call_p.
5571 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5572 global variable decls.
5573 (vtbl_register_mangled_name): New extern function decl.
5575 2015-08-01 Tom de Vries <tom@codesourcery.com>
5577 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5579 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5581 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5582 operation_no_trapping_overflow. Allow non-overflow operations.
5583 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5586 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5589 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5591 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5593 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5594 Enable for TARGET_32BIT.
5595 (*if_move_neg): Likewise.
5597 2015-07-31 Nick Clifton <nickc@redhat.com>
5599 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5600 Returns true for __model__.
5601 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5603 2015-07-31 Alan Modra <amodra@gmail.com>
5606 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5607 (rs6000_emit_prologue): Set it.
5608 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5610 2015-07-31 Richard Biener <rguenther@suse.de>
5612 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5613 -> X == (C1 ^ C2) which is already implemented in match.pd.
5614 Remove redundant dispatching to fold_relational_const.
5615 Move unordered self and NaN compares ...
5616 * match.pd: ... as patterns here. Remove some stray captures
5619 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5621 * config/i386/i386.c
5622 (bdesc_special_args): Convert mask type from signed to unsigned for
5624 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5625 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5626 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5627 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5628 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5629 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5630 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5631 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5632 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5633 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5634 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5635 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5636 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5637 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5638 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5639 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5640 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5641 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5642 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5643 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5644 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5645 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5646 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5647 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5648 * config/i386/i386-builtin-types.def
5649 (V16QI_FTYPE_V16SI): Remove.
5650 (V8DF_FTYPE_V8SI): Ditto.
5651 (V8HI_FTYPE_V8DI): Ditto.
5652 (V8SI_FTYPE_V8DI): Ditto.
5653 (V8SF_FTYPE_V8DF): Ditto.
5654 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5655 (V16HI_FTYPE_V16SI): Ditto.
5656 (V16SF_FTYPE_V16HI): Ditto.
5657 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5658 (V16SF_FTYPE_V16SI): Ditto.
5659 (V4DI_FTYPE_V4DI): Ditto.
5660 (V16SI_FTYPE_V16SF): Ditto.
5661 (V16SF_FTYPE_FLOAT): Ditto.
5662 (V8DF_FTYPE_DOUBLE): Ditto.
5663 (V8DI_FTYPE_INT64): Ditto.
5664 (V8DI_FTYPE_V4DI): Ditto.
5665 (V16QI_FTYPE_V8DI): Ditto.
5666 (UINT_FTYPE_V4SF): Ditto.
5667 (UINT64_FTYPE_V4SF): Ditto.
5668 (UINT_FTYPE_V2DF): Ditto.
5669 (UINT64_FTYPE_V2DF): Ditto.
5670 (V16SI_FTYPE_V16SI): Ditto.
5671 (V8DI_FTYPE_V8DI): Ditto.
5672 (V16SI_FTYPE_PV4SI): Ditto.
5673 (V16SF_FTYPE_PV4SF): Ditto.
5674 (V8DI_FTYPE_PV2DI): Ditto.
5675 (V8DF_FTYPE_PV2DF): Ditto.
5676 (V4DI_FTYPE_PV2DI): Ditto.
5677 (V4DF_FTYPE_PV2DF): Ditto.
5678 (V16SI_FTYPE_PV2SI): Ditto.
5679 (V16SF_FTYPE_PV2SF): Ditto.
5680 (V8DI_FTYPE_PV4DI): Ditto.
5681 (V8DF_FTYPE_PV4DF): Ditto.
5682 (V8SF_FTYPE_FLOAT): Ditto.
5683 (V4SF_FTYPE_FLOAT): Ditto.
5684 (V4DF_FTYPE_DOUBLE): Ditto.
5685 (V8SF_FTYPE_PV4SF): Ditto.
5686 (V8SI_FTYPE_PV4SI): Ditto.
5687 (V4SI_FTYPE_PV2SI): Ditto.
5688 (V8SF_FTYPE_PV2SF): Ditto.
5689 (V8SI_FTYPE_PV2SI): Ditto.
5690 (V16SF_FTYPE_PV8SF): Ditto.
5691 (V16SI_FTYPE_PV8SI): Ditto.
5692 (V8DI_FTYPE_V8SF): Ditto.
5693 (V4DI_FTYPE_V4SF): Ditto.
5694 (V2DI_FTYPE_V4SF): Ditto.
5695 (V64QI_FTYPE_QI): Ditto.
5696 (V32HI_FTYPE_HI): Ditto.
5697 (V8UHI_FTYPE_V8UHI): Ditto.
5698 (V16UHI_FTYPE_V16UHI): Ditto.
5699 (V32UHI_FTYPE_V32UHI): Ditto.
5700 (V2UDI_FTYPE_V2UDI): Ditto.
5701 (V4UDI_FTYPE_V4UDI): Ditto.
5702 (V8UDI_FTYPE_V8UDI): Ditto.
5703 (V4USI_FTYPE_V4USI): Ditto.
5704 (V8USI_FTYPE_V8USI): Ditto.
5705 (V16USI_FTYPE_V16USI): Ditto.
5706 (V2DF_FTYPE_V2DF_UINT64): Ditto.
5707 (V2DI_FTYPE_V2DF_V2DF): Ditto.
5708 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
5709 (V8DF_FTYPE_V8DF_V8DI): Ditto.
5710 (V4SF_FTYPE_V4SF_UINT64): Ditto.
5711 (V4SI_FTYPE_V4SF_V4SF): Ditto.
5712 (V16SF_FTYPE_V16SF_V16SI): Ditto.
5713 (V64QI_FTYPE_V32HI_V32HI): Ditto.
5714 (V32HI_FTYPE_V16SI_V16SI): Ditto.
5715 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5716 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
5717 (V32HI_FTYPE_V64QI_V64QI): Ditto.
5718 (V32HI_FTYPE_V32HI_V32HI): Ditto.
5719 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5720 (V16SI_FTYPE_V16SI_V4SI): Ditto.
5721 (V16SI_FTYPE_V16SI_V16SI): Ditto.
5722 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5723 (V16SI_FTYPE_V16SI_SI): Ditto.
5724 (V8DI_FTYPE_V8DI_V8DI): Ditto.
5725 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5726 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5727 (V8DI_FTYPE_V8DI_V2DI): Ditto.
5728 (QI_FTYPE_QI): Ditto.
5729 (SI_FTYPE_SI): Ditto.
5730 (DI_FTYPE_DI): Ditto.
5731 (QI_FTYPE_QI_QI): Ditto.
5732 (QI_FTYPE_QI_INT): Ditto.
5733 (HI_FTYPE_HI_INT): Ditto.
5734 (SI_FTYPE_SI_INT): Ditto.
5735 (DI_FTYPE_DI_INT): Ditto.
5736 (HI_FTYPE_V16QI_V16QI): Ditto.
5737 (SI_FTYPE_V32QI_V32QI): Ditto.
5738 (DI_FTYPE_V64QI_V64QI): Ditto.
5739 (QI_FTYPE_V8HI_V8HI): Ditto.
5740 (HI_FTYPE_V16HI_V16HI): Ditto.
5741 (SI_FTYPE_V32HI_V32HI): Ditto.
5742 (QI_FTYPE_V4SI_V4SI): Ditto.
5743 (QI_FTYPE_V8SI_V8SI): Ditto.
5744 (QI_FTYPE_V2DI_V2DI): Ditto.
5745 (QI_FTYPE_V4DI_V4DI): Ditto.
5746 (QI_FTYPE_V8DI_V8DI): Ditto.
5747 (HI_FTYPE_V16SI_V16SI): Ditto.
5748 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5749 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
5750 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
5751 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5752 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5753 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
5754 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
5755 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
5756 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5757 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
5758 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
5759 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
5760 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
5761 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
5762 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5763 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5764 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5765 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5766 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5767 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5768 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5769 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5770 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5771 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5772 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5773 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5774 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5775 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5776 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5777 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5778 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5779 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5780 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5781 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5782 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5783 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5784 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5785 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5786 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5787 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5788 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5789 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5790 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5791 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5792 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5793 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5794 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5795 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5796 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5797 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5798 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5799 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5800 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5801 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5802 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5803 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5804 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5805 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5806 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5807 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5808 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5809 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5810 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5811 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5812 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5813 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5814 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5815 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5816 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5817 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5818 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5819 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5820 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5821 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5822 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5823 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5824 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5825 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5826 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5827 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5828 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5829 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5830 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5831 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5832 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5833 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5834 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5835 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5836 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5837 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5838 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5839 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5840 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5841 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5842 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5843 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5844 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5845 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5846 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5847 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5848 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5849 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5850 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5851 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5852 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5853 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5854 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5855 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5856 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5857 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5858 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5859 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5860 (HI_FTYPE_HI): Ditto.
5861 (HI_FTYPE_V16QI): Ditto.
5862 (SI_FTYPE_V32QI): Ditto.
5863 (DI_FTYPE_V64QI): Ditto.
5864 (QI_FTYPE_V8HI): Ditto.
5865 (HI_FTYPE_V16HI): Ditto.
5866 (SI_FTYPE_V32HI): Ditto.
5867 (QI_FTYPE_V4SI): Ditto.
5868 (QI_FTYPE_V8SI): Ditto.
5869 (HI_FTYPE_V16SI): Ditto.
5870 (QI_FTYPE_V2DI): Ditto.
5871 (QI_FTYPE_V4DI): Ditto.
5872 (QI_FTYPE_V8DI): Ditto.
5873 (V16QI_FTYPE_HI): Ditto.
5874 (V32QI_FTYPE_SI): Ditto.
5875 (V64QI_FTYPE_DI): Ditto.
5876 (V8HI_FTYPE_QI): Ditto.
5877 (V16HI_FTYPE_HI): Ditto.
5878 (V32HI_FTYPE_SI): Ditto.
5879 (V4SI_FTYPE_QI): Ditto.
5880 (V4SI_FTYPE_HI): Ditto.
5881 (V8SI_FTYPE_QI): Ditto.
5882 (V8SI_FTYPE_HI): Ditto.
5883 (V2DI_FTYPE_QI): Ditto.
5884 (V4DI_FTYPE_QI): Ditto.
5885 (HI_FTYPE_HI_HI): Ditto.
5886 (SI_FTYPE_SI_SI): Ditto.
5887 (DI_FTYPE_DI_DI): Ditto.
5888 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5889 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5890 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5891 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5892 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5893 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5894 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5895 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5896 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5897 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5898 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5899 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5900 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5901 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5902 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5903 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5904 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5905 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5906 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5907 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5908 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5909 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5910 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5911 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5912 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5913 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5914 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5915 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5916 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5917 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5918 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5919 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5920 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5921 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5922 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5923 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5924 (V16SI_FTYPE_HI): Ditto.
5925 (V8DI_FTYPE_QI): Ditto.
5926 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5927 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5928 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5929 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5930 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5931 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5932 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5933 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5934 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5935 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5936 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5937 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5938 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5939 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5940 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5941 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5942 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5943 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5944 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5945 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5946 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5947 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5948 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5949 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5950 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5951 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5952 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5953 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5954 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5955 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5956 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5957 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5958 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5959 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5960 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5961 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5962 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5963 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5964 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5965 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5966 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5967 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5968 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5969 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5970 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5971 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5972 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5973 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5974 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5975 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5976 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5977 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5978 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5979 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5980 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5981 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5982 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5983 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5984 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5985 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5986 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5987 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5988 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5989 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5990 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5991 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5992 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5993 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5994 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5995 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5996 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5997 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5998 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5999 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6000 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6001 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6002 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6003 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6004 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6005 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6006 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6007 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6008 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6009 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6010 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6011 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6012 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6013 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6014 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6015 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6016 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6017 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6018 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6019 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6020 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6021 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6022 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6023 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6024 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6025 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6026 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6027 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6028 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6029 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6030 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6031 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6032 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6033 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6034 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6035 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6036 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6037 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6038 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6039 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6040 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6041 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6042 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6043 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6044 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6045 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6046 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6047 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6048 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6049 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6050 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6051 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6052 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6053 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6054 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6055 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6056 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6057 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6058 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6059 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6060 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6061 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6062 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6063 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6064 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6065 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6066 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6067 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6068 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6069 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6070 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6071 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6072 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6073 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6074 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6075 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6076 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6077 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6078 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6079 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6080 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6081 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6082 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6083 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6084 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6085 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6086 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6087 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6088 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6089 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6090 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6091 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6092 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6093 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6094 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6095 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6096 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6097 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6098 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6099 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6100 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6101 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6102 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6103 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6104 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6105 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6106 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6107 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6108 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6109 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6110 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6111 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6112 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6113 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6114 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6115 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6116 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6117 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6118 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6119 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6120 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6121 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6122 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6123 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6124 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6125 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6126 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6127 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6128 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6129 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6130 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6131 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6132 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6133 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6134 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6135 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6136 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6137 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6138 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6139 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6140 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6141 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6142 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6143 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6144 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6145 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6146 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6147 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6148 (QI_FTYPE_V8DF_INT_QI): Ditto.
6149 (QI_FTYPE_V4DF_INT_QI): Ditto.
6150 (QI_FTYPE_V2DF_INT_QI): Ditto.
6151 (HI_FTYPE_V16SF_INT_HI): Ditto.
6152 (QI_FTYPE_V8SF_INT_QI): Ditto.
6153 (QI_FTYPE_V4SF_INT_QI): Ditto.
6154 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6156 2015-07-31 Richard Biener <rguenther@suse.de>
6158 * gimple-fold.c (fold_gimple_assign): Remove folding of
6161 2015-07-31 Tom de Vries <tom@codesourcery.com>
6163 PR tree-optimization/66846
6164 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6165 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6166 (expand_omp_target) [ENABLE_CHECKING]: Same.
6167 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6168 cfun if !LOOPS_NEED_FIXUP.
6169 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6170 that omp_for already has its own loop struct.
6171 * tree-parloops.c (create_phi_for_local_result)
6172 (create_call_for_reduction): Handle simple latch bb.
6173 (create_parallel_loop): Add simple latch bb to preserve
6174 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6175 (gen_parallel_loop): Remove call to cancel_loop_tree.
6176 (parallelize_loops): Skip loops that are inner loops of parallelized
6178 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6179 verify_loop_structure.
6181 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6183 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6184 * config/v850/v850.md (RV_REGNUM): New constants.
6185 * config/v850/v850.c (v850_libcall_value): New functions.
6186 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6187 (TARGET_LIBCALL_VALUE): Define.
6189 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6191 * rtl.h (lowpart_subreg): Move in file.
6192 * loop-iv.c (lowpart_subreg): Move to...
6193 * simplify-rtx.c (lowpart_subreg): ...here.
6194 (simplify_binary_operation_1): Use lowpart_subreg instead of
6195 simplify_gen_subreg.
6196 * expr.c (expand_expr_real_2): Ditto.
6197 * emit-rtl.c (gen_lowpart_common): Ditto.
6198 * combine.c (gen_lowpart_for_combine): Ditto.
6199 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6200 expand_debug_source_expr): Ditto.
6202 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6204 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6205 (expand_builtin_atomic_clear): Remove support for atomic_clear
6208 2015-07-30 Richard Biener <rguenther@suse.de>
6210 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6211 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6212 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6213 redundant operand canonicalization.
6215 2015-07-30 David Sherwood <david.sherwood@arm.com>
6217 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6218 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6219 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6220 * config/arm/arm.c (neon_valid_immediate): Likewise.
6221 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6222 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6223 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6224 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6225 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6226 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6227 * config/i386/sse.md
6228 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6229 (*ssse3_palignr<mode>_perm): Likewise.
6230 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6231 * config/spu/spu.c (arith_immediate_p): Likewise.
6232 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6233 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6235 2015-07-30 Richard Biener <rguenther@suse.de>
6237 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6238 (decision_tree::gen_generic): ... this into ...
6239 (decision_tree::gen): ... this.
6240 (main): Adjust callers.
6242 2015-07-30 Richard Biener <rguenther@suse.de>
6244 * genmatch.c (verbose): New global.
6245 (warning_at): Add overload with source_location.
6246 (capture_info::capture_info): Add bool whether generating gimple
6247 or generic. Add gimple member.
6248 (capture_info::cinfo): Add capture member.
6249 (capture_info::walk_match): Record capture. Warn on
6251 (capture_info::walk_c_expr): Add more fragments captures cannot
6252 escape through. Warn on escaped captures.
6253 (dt_simplify::gen_1): Warn on operands we force to have no
6255 (main): Initialize verbose.
6256 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6258 2015-07-30 Richard Biener <rguenther@suse.de>
6261 * match.pd: Allow both operands to independently have conversion
6262 when simplifying compares of addresses.
6264 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6268 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6269 around those cases that need one.
6271 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6273 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6275 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6277 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6278 New. Copied from config/i386/gnu-user.h.
6279 (ASM_COMMENT_START): Likewise.
6280 (DBX_REGISTER_NUMBER): Likewise.
6282 2015-07-29 Richard Biener <rguenther@suse.de>
6284 * gimple-fold.c (fold_gimple_cond): Remove.
6285 (fold_stmt_1): Do not call it.
6287 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6289 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6290 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6292 * config/aarch64/aarch64-modes.def: Add HFmode.
6294 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6295 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6297 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6298 aarch64_promoted_type): New.
6300 (aarch64_float_const_representable_p): Disable HFmode.
6301 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6302 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6303 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6305 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6306 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6308 * config/aarch64/iterators.md (GPF_F16): New.
6310 2015-07-29 Richard Biener <rguenther@suse.de>
6312 * match.pd: Merge address comparison patterns and make them
6313 handle some more cases.
6315 2015-07-29 Richard Biener <rguenther@suse.de>
6317 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6318 (parser::parse_capture): Add bool argument on whether to reject
6320 (parser::parse_expr): Adjust.
6321 (parser::parse_op): Likewise.
6322 (parser::parse_pattern): Likewise.
6324 2015-07-29 Richard Biener <rguenther@suse.de>
6326 * gimple-fold.c (has_use_on_stmt): New function.
6327 (replace_stmt_with_simplification): Use it to allow
6328 abnormals originally referenced in the stmt.
6329 (fold_stmt_1): Canonicalize operand order.
6331 2015-07-28 David Sherwood <david.sherwood@arm.com>
6333 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6334 GET_MODE_INNER unconditionally.
6335 * config/spu/spu.c (arith_immediate_p): Likewise.
6336 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6337 * expmed.c (synth_mult): Remove check for VOIDmode result from
6339 (expand_mult_const): Likewise.
6340 * fold-const.c (fold_binary_loc): Replace call to element_precision
6341 with call to GET_MODE_PRECISION.
6342 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6344 (emit_mode_inner): Likewise.
6345 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6347 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6348 (GET_MODE_UNIT_PRECISION): Likewise.
6349 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6350 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6351 * stor-layout.c (bitwise_type_for_mode): Update assert.
6352 (element_precision): Remove.
6354 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6356 * target-insns.def (reload_load_address): New targetm instruction
6358 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6360 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6362 * target-insns.def (atomic_test_and_set): New targetm instruction
6364 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6365 HAVE_*/gen_* interface.
6367 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6369 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6371 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6372 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6373 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6374 * rtlanal.c (nonzero_bits1): Likewise.
6375 (num_sign_bit_copies1): Likewise.
6377 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6379 * target-insns.def (eh_return): New targetm instruction pattern.
6380 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6382 * function.c (thread_prologue_and_epilogue_insns): Remove
6383 preprocessor condition.
6385 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6387 * target-insns.def (indirect_jump): New targetm instruction pattern.
6388 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6391 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6393 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6394 instead of nonimmediate_operand. Remove C condiition.
6396 2015-07-28 Richard Biener <rguenther@suse.de>
6398 * match.pd: Add more simplification of address comparisons.
6400 2015-07-28 Richard Biener <rguenther@suse.de>
6402 * match.pd: Re-order two cases in comparison with max/min
6403 value simplification to make it apply for bools.
6405 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6407 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6408 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6409 (aarch64_rtx_costs): Properly strip extend or extract before
6410 passing down to rtx costs again.
6412 2015-07-28 Nick Clifton <nickc@redhat.com>
6414 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6415 Optimizes the case where -mes0 is active and a constant symbolic
6417 * config/rl78/rl78-protos.h: Prototype the new function.
6418 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6420 2015-07-28 Tom de Vries <tom@codesourcery.com>
6422 * tree-parloops.c (reduc_stmt_res): New function.
6423 (initialize_reductions, add_field_for_reduction)
6424 (create_phi_for_local_result, create_loads_for_reductions)
6425 (create_stores_for_reduction, build_new_reduction): Handle case that
6426 reduc_stmt is a phi.
6427 (gather_scalar_reductions): Allow double_reduc reductions.
6429 2015-07-28 Richard Biener <rguenther@suse.de>
6431 * fold-const.c (fold_comparison): Remove equality folding
6432 of decl addresses ...
6433 * match.pd: ... here and merge with existing pattern.
6435 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6437 PR tree-optimization/66828
6438 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6439 from int64_t to uint64_t.
6441 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6443 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6444 as valid only in the error message of the driver, not in the
6445 messages of the language compilers.
6447 2015-07-27 Tom de Vries <tom@codesourcery.com>
6449 * tree-parloops.c (gather_scalar_reductions): Simplify function
6452 2015-07-27 Marek Polacek <polacek@redhat.com>
6454 * ipa-devirt.c (types_same_for_odr): Fix typo.
6456 2015-07-27 Jason Merrill <jason@redhat.com>
6459 * dwarf2out.c (gen_inlined_subroutine_die): Check
6460 cgraph_function_possibly_inlined_p.
6462 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6464 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6465 Place integer variant first.
6466 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6468 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6471 * config/arm/arm-builtins.c (enum arm_builtins):
6472 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6473 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6474 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6475 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6476 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6478 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6481 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6482 Add qualifier_lane_index.
6483 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6484 (arm_getlane_qualifiers): Use qualifier_lane_index.
6485 (arm_lanemac_qualifiers): Rename to...
6486 (arm_mac_n_qualifiers): ...this.
6487 (LANEMAC_QUALIFIERS): Rename to...
6488 (MAC_N_QUALIFIERS): ...this.
6489 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6490 (arm_setlane_qualifiers): Use qualifier_lane_index.
6491 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6492 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6493 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6494 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6496 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6497 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6498 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6499 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6500 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6501 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6502 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6503 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6504 qualifiers to TERNOP_IMM.
6505 (vdup_lane): Change qualifiers to GETLANE.
6506 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6507 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6508 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6509 vqdmlsl_n): Change qualifiers to MAC_N.
6511 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6512 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6513 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6514 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6515 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6516 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6517 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6518 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6519 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6520 Remove call to neon_lane_bounds.
6522 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6524 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6525 Place integer variant first.
6527 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6529 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6530 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6531 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6532 for armv6kz targets.
6533 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6534 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6535 (FL_FOR_ARCH6ZK): Remove.
6536 (FL_FOR_ARCH6KZ): New.
6537 (arm_arch6zk): New declaration.
6538 * config/arm/arm-tables.opt: Regenerate.
6539 * config/arm/arm.c (arm_arch6kz): New.
6540 (arm_option_override): Set arm_arch6kz.
6541 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6542 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6543 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6545 2015-07-27 Marek Polacek <polacek@redhat.com>
6549 * doc/invoke.texi: Document -Wtautological-compare.
6551 2015-07-27 Richard Biener <rguenther@suse.de>
6553 * genmatch.c (decision_tree::gen_gimple): Split out large
6554 subtrees into separate functions.
6555 (decision_tree::gen_generic): Likewise.
6557 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6559 * config/alpha/alpha.c: Use SUBREG_P predicate.
6560 * config/alpha/predicates.md: Ditto.
6562 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6564 * config.host (s390*-*-*): Include driver-native.c only when
6565 building with s390* as host *and* target.
6567 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6570 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6571 T bit register modified_between_p check.
6573 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6575 * config/i386/i386.c: Use SUBREG_P predicate.
6576 * config/i386/i386.md: Ditto.
6577 * config/i386/sse.md: Ditto.
6578 * config/i386/predicates.md: Ditto.
6580 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6583 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6584 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6586 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6588 * Makefile.in: Remove use of TREEBROWSER.
6589 * config.in: Regenerated.
6590 * configure: Regenerated.
6591 * configure.ac: Remove definition of TREEBROWSER.
6592 * tree-browser.c: Removed.
6593 * tree-browser.def: Removed.
6595 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6597 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6598 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6600 (scopdet_basic_block_info): Print when a loop or bb cannot be
6601 represented in Graphite.
6603 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6606 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6607 execution guard when min_size is less than size_needed.
6609 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6611 * doc/install.texi: Document supported versions of ISL.
6613 2015-07-25 Jeff Law <law@redhat.com>
6617 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6618 unable to find X NE 0 in the tables, return X as the simplified
6620 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6621 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6623 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6624 after removing the control flow statement and unnecessary edges.
6626 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6629 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6631 PR rtl-optimization/64164
6632 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6633 * tree-ssa-copyrename.c: Removed.
6634 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6635 -ftree-coalesce-vars.
6636 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6637 * common.opt (ftree-copyrename): Ignore.
6638 (ftree-coalesce-inlined-vars): Likewise.
6639 * doc/invoke.texi: Remove the ignored options above.
6640 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6641 * tree-ssa-coalesce.h: ... here.
6642 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6643 headers required by it.
6644 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6645 across variables when flag_tree_coalesce_vars. Check register
6646 use and promoted modes to allow coalescing. Moved to
6647 tree-ssa-coalesce.c.
6648 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6649 with its member functions to tree-ssa-coalesce.c.
6650 (var_map_base_init): Likewise. Renamed to
6651 compute_samebase_partition_bases.
6652 (partition_view_normal): Drop want_bases parameter.
6653 (partition_view_bitmap): Likewise.
6654 * tree-ssa-live.h: Adjust declarations.
6655 * tree-ssa-coalesce.c: Include explow.h.
6656 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6657 default defs at the entry point.
6658 (dump_part_var_map): New.
6659 (compute_optimized_partition_bases): New, called by...
6660 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6661 of compute_samebase_partition_bases. Adjust.
6662 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6663 * cfgexpand.c (leader_merge): New.
6664 (get_rtl_for_parm_ssa_default_def): New.
6665 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6666 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6667 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6668 redundant MEM attr setting.
6669 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6671 (expand_one_stack_var): ... this. New wrapper to check and
6672 skip already expanded SSA partitions.
6673 (record_alignment_for_reg_var): New, factored out of...
6674 (expand_one_var): ... this.
6675 (expand_one_ssa_partition): New.
6676 (adjust_one_expanded_partition_var): New.
6677 (expand_one_register_var): Check and skip already expanded SSA
6679 (expand_used_vars): Don't create DECLs for anonymous SSA
6680 names. Expand all SSA partitions, then adjust all SSA names.
6681 (pass::execute): Replace the loops that set
6682 SA.partition_to_pseudo from partition leaders and cleared
6683 DECL_RTL for multi-location variables, and that which used to
6684 rename vars and set attrs, with one that clears DECL_RTL and
6685 checks that PARMs and RESULTs default_defs match DECL_RTL.
6686 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6687 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6688 * explow.c (promote_ssa_mode): New.
6689 * explow.h (promote_ssa_mode): Declare.
6690 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6691 * function.c: Include cfgexpand.h.
6692 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6693 (use_register_for_parm_decl): Wrapper for the above to
6694 special-case the result_ptr.
6695 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6696 (split_complex_args): Take assign_parm_data_all argument.
6697 Pass it to rtl_for_parm. Set up rtl and context for split
6699 (assign_parms_augmented_arg_list): Adjust.
6700 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6701 multiple locations. Recognize split complex args.
6702 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6703 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6704 (assign_parm_setup_block): Prefer SSA-assigned location.
6705 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6706 if stack_parm is NULL.
6707 (assign_parm_setup_stack): Prefer SSA-assigned location.
6708 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6709 rtl before testing for pointer bounds. Special-case result_ptr.
6710 (expand_function_start): Maybe reset DECL_RTL of result.
6711 Prefer SSA-assigned location for result and static chain.
6712 Factor out DECL_RESULT and SET_DECL_RTL.
6713 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6714 anonymous SSA names. Use promote_ssa_mode.
6715 (get_temp_reg): Likewise.
6716 (remove_ssa_form): Adjust.
6717 * stor-layout.c (layout_decl): Don't set mem attributes of
6719 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6720 and get its reg_usage for reg invalidation.
6721 (compute_bb_dataflow): Pass it insn.
6722 (emit_notes_in_bb): Likewise.
6724 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6726 * config/i386/i386.c (ix86_va_start): Remove
6727 unneeded !TARGET_64BIT check.
6728 (ix86_gimplify_va_arg): Ditto.
6730 2015-07-24 Tom de Vries <tom@codesourcery.com>
6732 * graphite-sese-to-poly.c (build_poly_scop): Always call
6733 rewrite_commutative_reductions_out_of_ssa.
6735 2015-07-24 Tom de Vries <tom@codesourcery.com>
6737 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6738 flag_associative_math to FLOAT_TYPE_P. Honour
6739 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6741 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6744 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6745 and "%qD" in warning_at instead of "%q+D" in warning.
6747 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6749 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
6750 (ix86_function_abi): Cleanup.
6752 2015-07-24 Michael Darling <darlingm@gmail.com>
6755 * acinclude.m4: Reflects renaming of configure.in to configure.ac
6756 * configure: Likewise
6757 * configure.ac: Likewise
6758 * doc/install.texi: Likewise
6759 * doc/tm.texi: Likewise
6760 * doc/tm.texi.in: Likewise
6762 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6764 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
6765 manually swapping values.
6766 * cse.c (fold_rtx): Likewise.
6767 * lra-eliminations.c (form_sum): Likewise.
6769 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6772 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6773 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6774 (*jcc_1, *jcc_2, jump, simple_return_internal)
6775 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6776 Set length_nobnd attribute instead of length attribute.
6777 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6778 (length_nobnd): Remove attribute.
6779 (length): Remove length_nobnd processing.
6781 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
6783 * gimplify.c (omp_default_clause): New function. Reorganize flow
6784 for clarity. Broken out of ...
6785 (omp_notice_variable): ... here.
6787 2015-07-24 Gary Funck <gary@intrepid.com>
6790 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6791 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6793 2015-07-24 Tom de Vries <tom@codesourcery.com>
6795 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6796 exit-first loop transform.
6798 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6801 * tree-cfg.c (struct replace_decls_d): New struct.
6802 (replace_block_vars_by_duplicates_1): New function.
6803 (replace_block_vars_by_duplicates): Use it to replace the decls
6804 in the value exprs by duplicates.
6806 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6808 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6809 -shared, -symbolic, -rdynamic.
6811 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6814 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6815 -dynamic-linker within %{!static %{!shared, and -rdynamic within
6818 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
6821 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6822 edge summary is available.
6824 2015-07-24 Richard Biener <rguenther@suse.de>
6826 * genmatch.c (struct dt_node): Add statistic fields.
6827 (dt_node::analyze): New method.
6828 (decision_tree::gen_gimple): Call analyze on the root node
6829 and print statistics to stderr.
6830 (decision_tree::gen_generic): Likewise.
6832 2015-07-24 Richard Biener <rguenther@suse.de>
6834 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6835 against the highest or lowest possible integer ...
6836 * match.pd: ... as patterns here.
6838 2015-07-24 Richard Biener <rguenther@suse.de>
6840 * genmatch.c (struct capture_info): Add same_as field.
6841 (capture_info::capture_info): Initialize same_as.
6842 (capture_info::walk_match): Compute same_as.
6843 (capture_info::walk_result): Compute stuff for the leader.
6844 (capture_info::walk_c_expr): Likewise.
6845 (dt_simplify::gen_1): Only look at leaders when deciding
6846 to force no side-effects or emit side-effects of omitted operands.
6848 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6850 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6851 reg note to the GPR -> FPR save instructions.
6853 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6855 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6857 (s390_expand_insv): Don't generate risbg pattern for constant zero
6859 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6860 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
6863 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6865 * config/s390/s390.c (s390_reorg): Clean up handling of processors
6868 (s390_issue_rate): Likewise.
6869 (s390_sched_reorder): Likewise.
6870 (s390_sched_variable_issue): Likewise.
6871 (s390_loop_unroll_adjust): Likewise.
6872 (s390_option_override): Likewise.
6874 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6876 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6877 processor capabilities with -march=native.
6878 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6879 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
6880 (S390_TARGET_BITS_STRING): Macro to simplify specs.
6882 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6884 * config/s390/s390.c (s390_issue_rate): Handle
6885 PROCESSOR_2094_Z9_EC.
6886 (s390_option_override): Likewise.
6887 (s390_adjust_priority): Likewise.
6889 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6891 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6892 when cross compiling.
6894 2015-07-24 Richard Biener <rguenther@suse.de>
6896 * fold-const.c (maybe_canonicalize_comparison_1): Move
6897 A code CST canonicalization ...
6898 * match.pd: ... to a pattern here.
6900 2015-07-24 Jiong Wang <jiong.wang@arm.com>
6903 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6905 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6906 (HONOR_REG_ALLOC_ORDER): Define.
6908 2015-07-24 Richard Biener <rguenther@suse.de>
6910 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6911 * fold-const.c (fold_comparison): Move parameter does not
6912 alias &local simplification ...
6913 * match.pd: ... as a pattern here.
6915 2015-07-24 Richard Biener <rguenther@suse.de>
6917 * gimple-fold.c (replace_stmt_with_simplification): Special-case
6918 valueizing call operands.
6919 * gimple-match-head.c (maybe_push_res_to_seq): Take
6920 number of call arguments from ops array.
6921 (do_valueize): New function.
6922 (gimple_simplify): Return true if valueization changed
6923 any operand even if the result didn't simplify further.
6925 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6928 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6930 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6933 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6935 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6937 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6940 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6942 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6945 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
6947 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6948 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
6950 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6951 ms_va_list_type_node initialization.
6953 2015-07-23 Jeff Law <law@redhat.com>
6956 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6957 unable to find X NE 0 in the tables, return X as the simplified
6959 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6960 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6962 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6963 after removing the control flow statement and unnecessary edges.
6965 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
6967 * tree-pass.h (get_current_pass_name): Removed.
6969 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6971 PR rtl-optimization/64164
6972 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6973 * tree-ssa-copyrename.c: Removed.
6974 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6975 -ftree-coalesce-vars.
6976 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6977 * common.opt (ftree-copyrename): Ignore.
6978 (ftree-coalesce-inlined-vars): Likewise.
6979 * doc/invoke.texi: Remove the ignored options above.
6980 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6981 * tree-ssa-coalesce.h: ... here.
6982 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6983 headers required by it.
6984 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6985 across variables when flag_tree_coalesce_vars. Check register
6986 use and promoted modes to allow coalescing. Moved to
6987 tree-ssa-coalesce.c.
6988 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6989 with its member functions to tree-ssa-coalesce.c.
6990 (var_map_base_init): Likewise. Renamed to
6991 compute_samebase_partition_bases.
6992 (partition_view_normal): Drop want_bases parameter.
6993 (partition_view_bitmap): Likewise.
6994 * tree-ssa-live.h: Adjust declarations.
6995 * tree-ssa-coalesce.c: Include explow.h.
6996 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6997 default defs at the entry point.
6998 (dump_part_var_map): New.
6999 (compute_optimized_partition_bases): New, called by...
7000 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7001 of compute_samebase_partition_bases. Adjust.
7002 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7003 * cfgexpand.c (leader_merge): New.
7004 (get_rtl_for_parm_ssa_default_def): New.
7005 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7006 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7007 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7008 redundant MEM attr setting.
7009 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7011 (expand_one_stack_var): ... this. New wrapper to check and
7012 skip already expanded SSA partitions.
7013 (record_alignment_for_reg_var): New, factored out of...
7014 (expand_one_var): ... this.
7015 (expand_one_ssa_partition): New.
7016 (adjust_one_expanded_partition_var): New.
7017 (expand_one_register_var): Check and skip already expanded SSA
7019 (expand_used_vars): Don't create DECLs for anonymous SSA
7020 names. Expand all SSA partitions, then adjust all SSA names.
7021 (pass::execute): Replace the loops that set
7022 SA.partition_to_pseudo from partition leaders and cleared
7023 DECL_RTL for multi-location variables, and that which used to
7024 rename vars and set attrs, with one that clears DECL_RTL and
7025 checks that PARMs and RESULTs default_defs match DECL_RTL.
7026 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7027 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7028 * explow.c (promote_ssa_mode): New.
7029 * explow.h (promote_ssa_mode): Declare.
7030 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7031 * function.c: Include cfgexpand.h.
7032 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7033 (use_register_for_parm_decl): Wrapper for the above to
7034 special-case the result_ptr.
7035 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7036 (split_complex_args): Take assign_parm_data_all argument.
7037 Pass it to rtl_for_parm. Set up rtl and context for split
7039 (assign_parms_augmented_arg_list): Adjust.
7040 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7041 multiple locations. Recognize split complex args.
7042 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7043 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7044 (assign_parm_setup_block): Prefer SSA-assigned location.
7045 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7046 if stack_parm is NULL.
7047 (assign_parm_setup_stack): Prefer SSA-assigned location.
7048 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7049 rtl before testing for pointer bounds. Special-case result_ptr.
7050 (expand_function_start): Maybe reset DECL_RTL of result.
7051 Prefer SSA-assigned location for result and static chain.
7052 Factor out DECL_RESULT and SET_DECL_RTL.
7053 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7054 anonymous SSA names. Use promote_ssa_mode.
7055 (get_temp_reg): Likewise.
7056 (remove_ssa_form): Adjust.
7057 * stor-layout.c (layout_decl): Don't set mem attributes of
7059 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7060 and get its reg_usage for reg invalidation.
7061 (compute_bb_dataflow): Pass it insn.
7062 (emit_notes_in_bb): Likewise.
7064 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7067 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7069 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7070 (rs6000_emit_2insn_and): Handle dot forms.
7071 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7072 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7073 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7075 2015-07-23 Richard Biener <rguenther@suse.de>
7077 * generic-match-head.c: Include cgraph.h.
7078 * gimple-match-head.c: Likewise.
7079 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7081 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7082 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7085 2015-07-23 Richard Biener <rguenther@suse.de>
7087 * gimple-fold.c (fold_gimple_cond): Do not require folding
7088 results to pass valid_gimple_rhs_p.
7089 * tree-cfg.h (fold_cond_expr_cond): Remove.
7090 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7091 (make_edges): Do not call it.
7092 * tree-inline.c (tree_function_versioning): Likewise.
7094 2015-07-23 Tom de Vries <tom@codesourcery.com>
7096 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7097 vect_force_simple_reduction.
7098 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7099 (vect_is_simple_reduction_1): Add and handle
7100 need_wrapping_integral_overflow parameter.
7101 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7102 need_wrapping_integral_overflow parameter.
7103 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7104 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7107 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7109 PR tree-optimization/66926,66951
7110 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7111 INNER_LOOP and fix up condition for renaming virtual operands.
7113 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7115 * combine.c (try_combine): Use std::swap instead of manually
7118 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7120 * config/mips/i6400.md: New file.
7121 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7122 (mips64r6): Likewise.
7124 * config/mips/mips-tables.opt: Regenerate.
7125 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7126 (mips_issue_rate): Add support for i6400.
7127 (mips_multipass_dfa_lookahead): Likewise.
7128 * config/mips/mips.h (TUNE_I6400): Define.
7129 * config/mips/mips.md: Include i6400.md.
7130 (processor): Add i6400.
7131 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7133 2015-07-23 Richard Biener <rguenther@suse.de>
7136 * match.pd: Guard widen and sign-change comparison simplification
7139 2015-07-23 Richard Biener <rguenther@suse.de>
7141 PR tree-optimization/66945
7142 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7143 ::before_dom_children): Force the propagators idea of
7144 non-executable edges to materialize, not what the folder
7147 2015-07-23 Richard Biener <rguenther@suse.de>
7149 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7150 (gimple_cond_make_true): Use 1 != 0.
7152 2015-07-22 DJ Delorie <dj@redhat.com>
7154 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7157 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7158 (ashrhi3): Likewise.
7159 (lshrhi3): Likewise.
7160 (movhi): Take advantage of zero-extend to load small constants.
7162 (and<mode>3): Likewise.
7163 (zero_extendqihi2): Likewise.
7164 (zero_extendqisi2): New.
7165 * config/msp430/constraints.md (N,O): New.
7166 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7168 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7171 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7172 to enum feature_priority and feature_list.
7173 (fold_builtin_cpu): Add F_AES to enum processor_features
7174 and isa_names_table.
7176 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7179 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7180 for 64bit target only.
7182 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7184 * config/nvptx/nvptx.c: Expand some comments.
7186 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7188 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7189 (cortex_a53_advsimd): ...This.
7191 2015-07-22 Richard Biener <rguenther@suse.de>
7193 * genmatch.c (expr::gen_transform): Clarify error message
7194 and display location.
7196 2015-07-22 Richard Biener <rguenther@suse.de>
7198 * genmatch.c (struct operand): Add location member.
7199 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7201 (struct simplify): Remove match_location and result_location
7203 (elsehwere): Adjust.
7205 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7207 * config/mips/m5100.md: New file.
7208 * config/mips/mips-cpus.def (m5100, m5101): Define.
7209 * config/mips/mips-tables.opt: Regenerate.
7210 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7211 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7212 -march=m5101 to -mips32r5.
7213 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7214 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7216 * config/mips/mips.md: Include m5100.md.
7217 (processor): Add m5100.
7218 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7220 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7222 * config/mips/mips-cpus.def (interaptiv): Define.
7223 * config/mips/mips-tables.opt: Regenerate.
7224 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7226 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7227 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7229 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7232 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7233 (HONOR_REG_ALLOC_ORDER): Define.
7235 2015-07-22 Richard Biener <rguenther@suse.de>
7237 PR tree-optimization/66952
7238 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7239 blocks we end up executing unconditionally reset all SSA
7240 info such as range and alignment.
7241 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7242 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7244 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7246 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7249 2015-07-22 Richard Biener <rguenther@suse.de>
7251 * genmatch.c (parser::parse_result): Properly handle
7252 match with result operands and conditions.
7254 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7257 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7258 Add qualifier_struct_load_store_lane_index.
7259 (aarch64_types_loadstruct_lane_qualifiers): Use
7260 qualifier_struct_load_store_lane_index for lane index argument for
7262 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7263 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7264 (aarch64_simd_expand_args): Add new argument describing mode of
7265 builtin. Check lane bounds for arguments with
7266 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7267 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7268 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7269 (aarch64_simd_expand_builtin): Handle arguments with
7270 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7271 aarch64_simd_expand_args.
7272 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7273 vst[234]_lane with BUILTIN_VALLDIF.
7274 * config/aarch64/aarch64-simd.md:
7275 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7276 endianness reversal on lane index.
7277 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7278 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7279 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7280 (vec_store_lanesci_lane<mode>): Ditto.
7281 (vec_store_lanesxi_lane<mode>): Ditto.
7282 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7283 reversal of lane index.
7284 (aarch64_ld3_lane<mode>): Ditto.
7285 (aarch64_ld4_lane<mode>): Ditto.
7286 (aarch64_st2_lane<mode>): Ditto.
7287 (aarch64_st3_lane<mode>): Ditto.
7288 (aarch64_st4_lane<mode>): Ditto.
7289 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7290 to qmode. Add new mode parameter. Update uses.
7291 (__LD3_LANE_FUNC): Ditto.
7292 (__LD4_LANE_FUNC): Ditto.
7293 (__ST2_LANE_FUNC): Ditto.
7294 (__ST3_LANE_FUNC): Ditto.
7295 (__ST4_LANE_FUNC): Ditto.
7297 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7299 * doc/invoke.texi (Language Independent Options): Rename node to
7300 Diagnostic Message Formatting Options.
7302 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7305 * lra-remat.c (operand_to_remat): Prevent using insns with input
7306 subregs processed separately by IRA.
7308 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7310 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7312 (single_imm_use): Check for iterator node.
7313 (num_imm_uses): Likewise.
7314 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7315 (single_imm_use_1): Check for iterator node.
7317 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7318 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7320 * configure.ac: Add check for new options in isl-0.15.
7321 * config.in, configure: Rebuilt.
7322 * graphite-blocking.c: Include <isl/constraint.h>
7323 * graphite-interchange.c, graphite-poly.c: Likewise.
7324 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7325 * graphite.c: Likewise.
7326 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7328 * graphite-dependences.c: Include <isl/constraint.h>.
7329 (max_number_of_out_dimensions): Returns isl_stat.
7330 (extend_schedule_1): Likewise
7331 (extend_schedule): Corresponding changes.
7332 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7334 (getSingleMap): Change return type of isl_stat.
7335 (optimize_isl): Conditionally use
7336 isl_options_set_schedule_serialize_sccs.
7337 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7338 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7340 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7343 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7344 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7346 2015-07-21 Richard Biener <rguenther@suse.de>
7348 PR tree-optimization/66948
7349 * genmatch.c (capture_info::walk_match): Also recurse to
7350 captures. Properly compute expr state from captures of
7352 * match.pd: Add single-use guards to
7353 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7355 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7357 * config/nvptx/mkoffload.c (process): Add static destructor call.
7359 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7362 * match.pd (A - B -> A + (-B)): Don't allow folding
7363 when type if a fixed-point type.
7365 2015-07-20 DJ Delorie <dj@redhat.com>
7367 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7368 (iorqi3_real): Likewise for set1.
7370 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7372 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7375 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7377 * graphite-isl-ast-to-gimple.c:
7378 Refactor so that each function can access 'region'. This will help
7379 maintain a parameter rename_map within a region.
7381 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7383 * config/rs6000/rs6000.md (*lt0_disi): New.
7385 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7388 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7389 "available letters" comment.
7390 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7391 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7392 and_2rld_operand): Delete.
7393 (and_operand): Adjust.
7394 (rotate_mask_operator): New.
7395 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7396 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7397 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7398 extract_ME): Delete.
7399 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7400 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7401 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7402 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7403 rs6000_emit_2insn_and): New.
7404 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7405 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7406 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7407 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7408 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7409 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7410 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7411 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7412 rs6000_emit_2insn_and): New.
7413 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7414 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7416 <NOT>: Don't fall through to next case.
7417 <AND>: Handle the various rotate-and-mask cases directly.
7418 <IOR>: Always cost as one insn.
7419 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7420 (and<mode>3): Adjust expander for the new patterns.
7421 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7422 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7423 (*and<mode>3_imm_dot_shifted): New.
7424 (*and<mode>3_mask): Delete, rewrite as ...
7425 (and<mode>3_mask): ... New.
7426 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7427 (andsi3_internal0_nomc): Delete.
7428 (*andsi3_internal6): Delete.
7429 (*and<mode>3_2insn): New.
7430 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7431 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7432 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7433 *insvdi_internal3): Delete.
7434 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7435 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7436 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7437 *ior<mode>_mask): New.
7438 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7439 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7440 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7441 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7443 (ashr<mode>3): Delete expander.
7444 (*ashr<mode>3): Rename to ...
7445 (ashr<mode>3): ... This.
7446 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7447 (*rotldi3_internal4, *rotldi3_internal5 and split,
7448 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7449 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7450 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7451 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7452 (splitter for loading a mask): Adjust.
7453 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7455 2015-07-20 Marek Polacek <polacek@redhat.com>
7457 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7458 output_add_clobbers, output_added_clobbers_hard_reg_p,
7459 gen_rtx_scratch): Remove declarations.
7461 2015-07-20 Marek Polacek <polacek@redhat.com>
7464 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7466 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7468 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7469 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7471 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7473 * combine.c (combine_simplify_rtx): Move simplification step
7474 before various transformations/substitutions.
7476 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7478 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7479 (struct int_traits): Likewise.
7481 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7483 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7484 function to vmsdbgout_function_decl.
7486 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7489 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7490 from misaligned positions.
7491 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7493 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7497 * Makefile.in: Removed omega.o.
7498 * common.opt: Document flag fcheck-data-deps as deprecated.
7499 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7500 its associated params: omega-max-vars, omega-max-geqs,
7501 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7502 omega-max-keys, omega-eliminate-redundant-constraints.
7503 * doc/loop.texi: Remove all the section on Omega.
7504 * graphite-blocking.c: Include missing params.h: it used to be
7505 included through tree-data-ref.h and omega.h.
7506 * graphite-isl-ast-to-gimple.c: Same.
7507 * graphite-optimize-isl.c: Same.
7508 * graphite-sese-to-poly.c: Same.
7512 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7513 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7514 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7515 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7516 * passes.def: Remove pass_check_data_deps.
7517 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7518 (dump_conflict_function): Same.
7519 (dump_subscript): Same.
7520 (print_direction_vector): Same.
7521 (print_dir_vectors): Same.
7522 (print_lambda_vector): Same.
7523 (print_dist_vectors): Same.
7524 (dump_data_dependence_relation): Same.
7525 (dump_data_dependence_relations): Same.
7526 (dump_dist_dir_vectors): Same.
7528 (init_omega_eq_with_af): Removed.
7529 (omega_extract_distance_vectors): Removed.
7530 (omega_setup_subscript): Removed.
7531 (init_omega_for_ddr_1): Removed.
7532 (init_omega_for_ddr): Removed.
7533 (ddr_consistent_p): Removed.
7534 (compute_affine_dependence): Do not use omega to check data
7536 (compute_data_dependences_for_bb): Removed.
7537 (analyze_all_data_dependences): Removed.
7538 (tree_check_data_deps): Removed.
7539 * tree-data-ref.h: Do not include omega.h.
7540 (compute_data_dependences_for_bb): Removed.
7541 (tree_check_data_deps): Removed.
7542 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7543 (make_pass_check_data_deps): Removed.
7544 * tree-ssa-phiopt.c: Include params.h.
7545 * tree-vect-data-refs.c: Same.
7546 * tree-vect-slp.c: Same.
7548 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7550 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7551 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7552 (mem->fpreg splitters): Ditto.
7553 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7554 Disable DFmode for TARGET_64BIT.
7556 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7559 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7562 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7564 * config/nvptx/mkoffload.c (process): Constify host data.
7565 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7567 (generate_host_descr_file): Likewise.
7569 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7570 Sebastian Pop <s.pop@samsung.com>
7573 * graphite-dependences.c (add_pdr_constraints): Renamed
7574 pdr->extent to pdr->subscript_sizes.
7575 * graphite-interchange.c (build_linearized_memory_access): Add
7576 back all gcc_assert's that the "isl_int to isl_val conversion"
7577 patch has removed. Refactored.
7578 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7579 * graphite-poly.c (new_poly_dr): Same.
7580 (free_poly_dr): Same.
7581 * graphite-poly.h (struct poly_dr): Same.
7582 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7583 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7584 * graphite-scop-detection.h: Fix space.
7585 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7586 back all gcc_assert's removed by a previous patch.
7587 (wrap): Remove the_isl_ctx global variable that the same patch has
7589 (build_loop_iteration_domains): Same.
7590 (add_param_constraints): Same.
7591 (pdr_add_data_dimensions): Same. Refactored.
7592 (build_poly_dr): Renamed extent to subscript_sizes.
7594 2015-07-17 Marek Polacek <polacek@redhat.com>
7596 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7597 * match.pd: ... here.
7599 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7601 * config/nvptx/mkoffload.c (process): Constify target data.
7602 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7603 Constify target data.
7604 (generate_target_offloadend_file): Likewise.
7606 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7608 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7609 to allow renaming of PHI arguments on edges incoming from outer
7610 loop header, add corresponding check before start PHI iterator.
7611 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7612 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7613 with true force_vectorize. Set-up dominator for outer loop too.
7614 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7615 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7616 was marked with force_vectorize and has restricted cfg.
7617 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7619 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7620 do peeling for outer loops.
7622 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7623 Matthias Klose <doko@ubuntu.com>
7625 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7626 build-sysroot, sysroot from the `Miscenalleous configure options' to
7627 the `Directories' section and strip trailing `/' from with_sysroot.
7628 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7629 * configure: Regenerated.
7631 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7634 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7635 (TARGET_HARD_DF_REGS): Ditto.
7636 (TARGET_HARD_XF_REGS): Ditto.
7637 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7638 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7639 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7640 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7641 (*movsf_internal): Add alternatives 16 and 17. Enable
7642 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7644 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7646 PR rtl-optimization/66891
7647 * calls.c (expand_call): Wrap precompute_register_parameters with
7648 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7650 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7652 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7653 Define target data struct and initialize it.
7655 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7657 PR rtl-optimization/66626
7658 * ira.h (emit-rtl.h): Include.
7659 (non_spilled_static_chain_regno_p): New.
7660 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7661 unless it is non spilled static chain pseudo.
7662 (assign_hard_rego): Spill memory profitable allocno unless it is
7663 non spilled static chain pseudo.
7664 (allocno_spill_priority_compare): Put non spilled static chain
7665 pseudo at the end of sorted array.
7666 (improve_allocation): Do nothing if we have static chain and
7668 (allocno__priority_compare_func): Put non spilled static chain
7669 pseudo at the beginning of sorted array.
7670 (move_spill_restore): Ignore non spilled static chain pseudo.
7671 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7672 to non spilled static chain pseudo.
7673 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
7674 pseudo at the beginning of sorted array.
7675 (spill_for): Spill non spilled static chain pseudo last.
7676 * lra-constraints.c (lra_constraints): Remove static chain pseudo
7677 check for equivalence.
7679 2015-07-16 Martin Liska <mliska@suse.cz>
7682 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
7683 dst_ctx if it does not exist.
7685 2015-07-16 Martin Liska <mliska@suse.cz>
7687 * hash-set.h (remove): New function.
7688 (iterator): New iteration class for hash_set.
7690 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7692 * genattrtab.c (make_canonical): Add a file_location parameter.
7693 Use fatal_at rather than fatal.
7694 (get_attr_value): Likewise. Update call to make_canonical.
7695 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
7696 (make_internal_attr): Update calls accordingly.
7698 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7700 * read-md.h (message_with_line, error_with_line): Delete.
7701 * read-md.c (message_with_line, error_with_line): Delete.
7702 * gensupport.h: Include read-md.h.
7703 (md_rtx_info): New structure.
7704 (read_md_rtx): Use it. Return a bool success value.
7705 * gensupport.c (read_md_rtx): Likewise.
7706 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
7707 (main): Update after interface changes.
7708 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
7709 (main): Update after interface changes.
7710 * genattrtab.c (insn_code_number): Delete.
7711 (optimize_attrs): Add a max_insn_code parameter and use it instead
7712 of insn_code_number.
7713 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
7714 Use *_at rather than *_with_line functions.
7715 (gen_insn): Likewise.
7716 (gen_delay): Likewise.
7717 (gen_insn_reserv): Likewise.
7718 (gen_bypass): Take an md_rtx_info rather than an rtx.
7719 (main): Update after interface changes. Use a local max_insn_code
7720 variable instead of insn_code_number.
7721 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7722 an rtx. Use fatal_at rather than fatal.
7723 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7724 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7725 (gen_absence_set, gen_final_absence_set, gen_automaton)
7726 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7727 (main): Update after interface changes.
7728 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7730 (main): Update after interface changes.
7731 * genconditions.c (main): Use new read_md_rtx interface.
7732 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7733 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7734 (main): Update after interface changes.
7735 * genemit.c (insn_code_number, insn_index_number): Delete.
7736 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7737 Use fatal_at rather than fatal.
7738 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
7740 (gen_split): Likewise.
7741 (main): Update after interface changes.
7742 * genextract.c (line_no): Delete.
7743 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7744 Update call to walk_rtx.
7745 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
7746 rather than message_with_line.
7747 (walk_rtx): Add an md_rtx_info argument. Update call to
7748 VEC_safe_set_locstr.
7749 (main): Update after interface changes.
7750 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
7751 and lineno. Use error_at rather than separate message_with_line
7752 calls and have_error assignments.
7753 (main): Update after interface changes.
7754 * genmddump.c (main): Use new read_md_rtx interface.
7755 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
7756 (main): Update after interface changes.
7757 * genoutput.c (next_code_number): Delete.
7758 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7759 (gen_peephole, gen_expand, gen_split): Likewise.
7760 (note_constraint): Likewise. Use *_at rather than *_with_line
7762 (main): Update after interface changes.
7763 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
7765 (main): Update after interface changes.
7766 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
7767 than an rtx and lineno.
7768 (process_define_constraint): Likewise.
7769 (process_define_register_constraint): Likewise.
7770 (main): Update after interface changes.
7771 * genrecog.c (next_insn_code, pattern_lineno): Delete.
7772 (validate_pattern): Replace top-level rtx with an md_rtx_info.
7773 Use *_at rather than *_with_line functions.
7774 (match_pattern_2): Likewise.
7775 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7776 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7777 Use *_at rather than *_with_line functions.
7778 * gentarget-def.c (add_insn): New function.
7779 (main): Use it. Use new read_md_rtx interface.
7781 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7783 * gensupport.h (compute_test_codes): Take a file_location rather
7785 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
7786 rather than *_with_line functions.
7787 (process_define_predicate): Update call to compute_test_codes.
7788 * genpreds.c (validate_exp): Take a file_location rather than a
7789 line number. Use *_at functions rather than *_with_line functions.
7790 (process_define_predicate): Update call to validate_exp.
7791 (constraint_data): Replace lineno field with a file_location.
7792 (add_constraint): Take a file_location rather than a line number.
7793 Use *_at functions rather than *_with_line functions. Fix error
7794 message for address constraints. Update after changes to
7795 validate_exp, constraint_data and compute_test_codes.
7796 (process_define_constraint): Update accordingly.
7797 (process_define_register_constraint): Likewise.
7799 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7801 * genoutput.c (data): Use a file_location to record the source
7804 (idata, idata_end): Remove initialization.
7805 (constraint_data): Replace lineno with a file_location.
7806 (output_insn_data): Update after changes to data.
7807 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7808 (scan_operands): Likewise, using *_at rather than *_with_line
7810 (process_template): Likewise.
7811 (validate_insn_alternatives): Likewise.
7812 (validate_insn_operands): Likewise.
7813 (validate_optab_operands): Likewise.
7814 (init_insn_for_nothing): Initialize idata and idata_end.
7815 (note_constraint): Update after changes to constraint_data,
7816 using at rather than with_line functions.
7817 (mdep_constraint_len): Take a file_location rather than a
7818 line number. Use at rather than with_line functions.
7820 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7822 * read-md.h (fatal_at): Declare.
7823 * read-md.c (fatal_at): New function.
7824 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7825 to record the source position.
7826 (check_attr_test): Take a file_location instead of a line number.
7827 Use fatal_at instead of fatal.
7828 (check_attr_value): Update after above changes, using "at"
7829 rather than "with_line" reporting functions.
7830 (convert_set_attr_alternative): Likewise.
7831 (gen_attr): Likewise.
7832 (check_defs): Likewise. Don't assign to read_md_filename.
7833 (gen_insn): Update initialization after above changes.
7834 (gen_delay): Likewise.
7835 (write_insn_cases): Print the filename for a define_peephole.
7836 (gen_insn_reserv): Take a line number as argument and update
7837 the call to check_attr_test.
7838 (main): Pass a line number to gen_insn_reserv.
7840 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7842 * read-md.h (file_location): New structure.
7843 (directive_handler_t): Take a file_location rather than a line number.
7844 (message_at, error_at): Declare.
7845 (read_skip_construct): Delete.
7846 * read-md.c (message_with_line_1): Replace with...
7847 (message_at_1): ...this new function.
7848 (message_at, error_at): New functions.
7849 (message_with_line, error_with_line): Update to use message_at_1.
7850 (handle_enum): Take a file_location rather than a line number
7851 and use error_at for error reporting.
7852 (handle_include): Likewise.
7853 (read_skip_construct): Likewise. Make static.
7854 (handle_file): Update after above changes. Pass a file_location
7855 rather than a line number to handle_directive.
7856 * gensupport.c (queue_elem): Replace separate filename and lineno
7857 with a file_location.
7858 (queue_pattern): Replace filename and lineno arguments with a
7859 file_location. Update after change to queue_elem.
7860 (process_define_predicate): Replace lineno argument with a
7861 file_location and use error_at for error reporting. Update
7862 after above changes.
7863 (process_rtx): Likewise.
7864 (subst_pattern_match): Likewise.
7865 (get_alternatives_number): Likewise.
7866 (alter_predicate_for_insn): Likewise.
7867 (rtx_handle_directive): Likewise.
7868 (is_predicable): Update after above changes, using error_at rather
7869 than error_with_line.
7870 (has_subst_attribute): Likewise.
7871 (identify_predicable_attribute): Likewise.
7872 (alter_attrs_for_subst_insn): Likewise.
7873 (process_one_cond_exec): Likewise.
7874 (process_substs_on_one_elem): Likewise.
7875 (process_define_subst): Likewise.
7876 (check_define_attr_duplicates): Likewise.
7877 (read_md_rtx): Update after change to queue_elem.
7879 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7881 * genoutput.c (next_index_number): Delete.
7882 (data): Remove index_number.
7883 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7884 (main): Remove manipulation of next_index_number.
7886 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7888 * genattrtab.c (check_attr_value): Remove handling of null attrs.
7889 (make_canonical): Likewise.
7891 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
7893 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7894 instead of adjust_address_nv.
7895 (restore_stack_nonlocal): Likewise.
7896 (nonlocal_goto): Likewise.
7898 2015-07-16 Tom de Vries <tom@codesourcery.com>
7900 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7901 not have a corresponding loop header phi.
7903 2015-07-16 Tom de Vries <tom@codesourcery.com>
7905 * tree-parloops.c (create_loads_for_reductions): Handle case that
7906 reduction is unused.
7908 2015-07-16 Richard Biener <rguenther@suse.de>
7910 PR tree-optimization/66894
7911 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7912 about deriving NE_EXPR from truncated values.
7914 2015-07-16 Martin Liska <mliska@suse.cz>
7917 (object_allocator): Add new class.
7918 (pool_allocator::initialize): Use the underlying class.
7919 (pool_allocator::allocate): Likewise.
7920 (pool_allocator::remove): Likewise.
7921 (operator new): A new generic allocator.
7922 * asan.c (struct asan_mem_ref): Remove unused members.
7923 (asan_mem_ref_new): Replace new operator with
7924 object_allocator::allocate.
7925 (free_mem_ref_resources): Change deallocation.
7926 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7927 with object_allocator.
7928 * config/sh/sh.c (add_constant): Replace new operator with
7929 object_allocator::allocate.
7930 (sh_reorg): Change call to a release method.
7931 * cselib.c (struct elt_list): Remove unused members.
7932 (new_elt_list): Replace new operator with
7933 object_allocator::allocate.
7934 (new_elt_loc_list): Likewise.
7935 (new_cselib_val): Likewise.
7936 (unchain_one_elt_list): Change delete operator with remove method.
7937 (unchain_one_elt_loc_list): Likewise.
7938 (unchain_one_value): Likewise.
7939 (cselib_finish): Release newly added static allocators.
7940 * cselib.h (struct cselib_val): Remove unused members.
7941 (struct elt_loc_list): Likewise.
7942 * df-problems.c (df_chain_alloc): Replace pool_allocator with
7944 * df-scan.c (struct df_scan_problem_data): Likewise.
7945 (df_scan_alloc): Likewise.
7946 * df.h (struct dataflow): Likewise.
7947 * dse.c (struct read_info_type): Likewise.
7948 (struct insn_info_type): Likewise.
7949 (struct dse_bb_info_type): Likewise.
7950 (struct group_info): Likewise.
7951 (struct deferred_change): Likewise.
7952 (get_group_info): Likewise.
7953 (delete_dead_store_insn): Likewise.
7954 (free_read_records): Likewise.
7955 (replace_read): Likewise.
7956 (check_mem_read_rtx): Likewise.
7957 (scan_insn): Likewise.
7958 (dse_step1): Likewise.
7959 (dse_step7): Likewise.
7960 * et-forest.c (struct et_occ): Remove unused members.
7961 (et_new_occ): Use allocate instead of new operator.
7962 (et_new_tree): Likewise.
7963 (et_free_tree): Call release method explicitly.
7964 (et_free_tree_force): Likewise.
7965 (et_free_pools): Likewise.
7966 (et_split): Use remove instead of delete operator.
7967 * et-forest.h (struct et_node): Remove unused members.
7968 * ipa-cp.c: Change pool_allocator to object_allocator.
7969 * ipa-inline-analysis.c: Likewise.
7970 * ipa-profile.c: Likewise.
7971 * ipa-prop.c: Likewise.
7972 * ipa-prop.h: Likewise.
7973 * ira-build.c (initiate_cost_vectors): Cast return value.
7974 (ira_allocate_cost_vector): Likewise.
7975 * ira-color.c (struct update_cost_record): Remove unused members.
7976 * lra-int.h (struct lra_live_range): Likewise.
7977 (struct lra_copy): Likewise.
7978 (struct lra_insn_reg): Likewise.
7979 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7980 * lra.c (new_insn_reg): Replace new operator with allocate method.
7981 (free_insn_regs): Same for operator delete.
7982 (finish_insn_regs): Release new static allocator.
7983 (finish_insn_recog_data): Likewise.
7984 (lra_free_copies): Replace delete operator with remove method.
7985 (lra_create_copy): Replace operator new with allocate method.
7986 (invalidate_insn_data_regno_info): Same for remove method.
7987 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7988 (free_debug_insn_changes): Replace delete operator with remove method.
7989 (replace_oldest_value_reg): Replace operator new with allocate method.
7990 (pass_cprop_hardreg::execute): Release new static variable.
7991 * sched-deps.c (sched_deps_init): Change pool_allocator to
7993 * sel-sched-ir.c: Likewise.
7994 * sel-sched-ir.h: Likewise.
7995 * stmt.c (expand_case): Likewise.
7996 (expand_sjlj_dispatch_table): Likewise.
7997 * tree-sra.c (struct access): Remove unused members.
7998 (struct assign_link): Likewise.
7999 (sra_deinitialize): Release newly added static pools.
8000 (create_access_1):Replace operator new with allocate method.
8001 (build_accesses_from_assign): Likewise.
8002 (create_artificial_child_access): Likewise.
8003 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8004 pool_allocator to object_allocator.
8005 * tree-ssa-pre.c: Likewise.
8006 * tree-ssa-reassoc.c: Likewise.
8007 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8008 * tree-ssa-strlen.c: Likewise.
8009 * tree-ssa-structalias.c: Likewise.
8010 * var-tracking.c (onepart_pool_allocate): New function.
8011 (unshare_variable): Use the newly added function.
8012 (variable_merge_over_cur): Likewise.
8013 (variable_from_dropped): Likewise.
8014 (variable_was_changed): Likewise.
8015 (set_slot_part): Likewise.
8016 (emit_notes_for_differences_1): Likewise.
8017 (vt_finalize): Release newly added static pools.
8019 2015-07-16 Martin Jambor <mjambor@suse.cz>
8021 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8022 all uses. Fix two typos in its general comment.
8023 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8025 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8027 * config/i386/linux-common.h (LINK_MPX): New.
8028 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8029 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8030 indicating '-z bndplt' support by linker.
8031 * configure: Regenerate.
8032 * config.in: Regenerate.
8034 2015-07-16 Richard Biener <rguenther@suse.de>
8036 * fold-const.c (fold_widened_comparison): Remove.
8037 (fold_sign_changed_comparison): Likewise.
8038 (fold_comparison): Move widened and sign-changed comparison
8040 * match.pd: ... to patterns here.
8041 * generic-match-head.c: Include target.h.
8042 * gimple-match-head.c: Likewise.
8044 2015-07-16 Richard Biener <rguenther@suse.de>
8046 * tree-ssa-dom.c (dom_valueize): New function.
8047 (record_temporary_equivalences): Also record equivalences
8048 for dominating stmts that have uses of equivalences we are
8051 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8053 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8054 add_autoinc_candidates.
8055 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8056 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8057 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8058 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8060 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8061 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8062 Remove parameter struct iv*. Call add_autoinc_candidates here.
8063 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8064 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8066 (find_iv_candidates): Call new functions.
8068 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8070 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8071 uninitialized-variable warning.
8073 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8076 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8077 when the destination is R0.
8079 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8082 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8083 * config/i386/i386.c (ix86_expand_pextr): New function.
8084 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8085 for non-lowpart subregs.
8086 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8087 (insv<mode>): Use SWI248 mode iterator.
8088 (insv<mode>_1): Ditto.
8090 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8091 Sebastian Pop <s.pop@samsung.com>
8093 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8094 iterator to use_stmt.
8096 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8097 Sebastian Pop <s.pop@samsung.com>
8099 * graphite-scop-detection.c (build_scops_1): Discard scops for
8102 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8103 Sebastian Pop <s.pop@samsung.com>
8105 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8106 case of a return statement in scop.
8108 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8109 Sebastian Pop <s.pop@samsung.com>
8111 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8112 INTEGER_TYPE parameters.
8113 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8114 VECTOR_CST in scan_tree_for_params.
8115 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8117 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8119 * gimple-pretty-print.h: Don't include pretty-print.h.
8120 * tree-streamer.h: Don't include lto-streamer.h.
8121 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8122 * gimple-streamer-in.c: Remove redundant includes.
8123 * gimple-streamer-out.c: Likewise.
8124 * ipa-devirt.c: Likewise.
8125 * ipa-icf.c: Likewise.
8126 * ipa-inline-analysis.c: Likewise.
8127 * ipa-polymorphic-call.c: Likewise.
8128 * ipa-profile.c: Likewise.
8129 * ipa-prop.c: Likewise.
8130 * ipa-pure-const.c: Likewise.
8131 * lto-cgraph.c: Likewise.
8132 * lto-streamer-in.c: Likewise.
8133 * lto-streamer-out.c: Likewise.
8134 * lto-streamer.c: Likewise.
8135 * tree-streamer-in.c: Likewise.
8136 * tree-streamer-out.c: Likewise.
8137 * tree-streamer.c: Likewise.
8139 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8141 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8143 * opts.c: Remove multiline #include comment.
8145 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8147 * config/nvptx/mkoffload.c (process): Add C++ protection to
8150 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8153 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8154 null before IEEE 128-bit floating point support patch.
8156 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8158 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8159 for (!c) != {0,...,0} ? a : b for vector modes.
8161 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8162 Martin Jambor <mjambor@suse.cz>
8164 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8165 struct func_body_info* instead of struct ipa_node_params*, expecting
8166 fbi->info to be filled in. Replace throughout. Adjust call to
8167 ipa_load_from_parm_agg.
8168 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8169 instead of struct ipa_node_params*. Adjust calls to other functions
8170 so that they pass either fbi or fbi->info.
8171 (set_switch_stmt_execution_predicate): Likewise.
8172 (will_be_nonconstant_predicate): Likewise.
8173 (compute_bb_predicates): Likewise.
8174 (estimate_function_body_sizes): Move asserts earlier. Fill in
8175 struct func_body_info, replace parms_info with fbi.info. Adjust
8176 calls to functions that now accept struct func_body_info.
8177 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8178 (struct func_body_info): Likewise.
8179 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8180 remove static. Adjust callers.
8181 (ipa_load_from_parm_agg): Remove.
8182 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8183 (func_body_info): Likewise.
8184 (ipa_load_from_parm_agg): Adjust prototype.
8186 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8188 * gensupport.c (rtx_handle_directive): Adjust.
8189 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8190 instead of expr list rtx.
8191 (add_define_attr_for_define_subst): Likewise.
8192 (add_define_subst_attr): Likewise.
8193 (read_subst_mapping): Likewise.
8194 (read_rtx): Likewise.
8195 * rtl.h (read_rtx): Adjust.
8197 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8199 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8201 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8204 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8205 (*tls_local_dynamic_base_64_<mode>): Ditto.
8206 (*tls_local_dynamic_base_64_largepic): Ditto.
8207 (tls_global_dynamic_64_<mode>): Update expander pattern.
8208 (tls_local_dynamic_base_64_<mode>): Ditto.
8210 2015-07-15 Richard Biener <rguenther@suse.de>
8212 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8213 and bool_var == 1 -> bool_var simplifications ...
8214 * match.pd: ... to patterns here. Factor out negate_expr_p
8215 cases from the A - B -> A + (-B) patterns as negate_expr_p
8216 predicate and add a -(A + B) -> (-B) - A pattern.
8218 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8220 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8222 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8223 Robert Suchanek <robert.suchanek@imgtec.com>
8225 * config/mips/mips.c (mips_int_mask): New enum.
8226 (mips_shadow_set): Likewise.
8227 (int_mask): New variable.
8228 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8229 (machine_function): Add int_mask and use_shadow_register_set.
8230 (mips_attribute_table): Add attribute handlers for interrupt and
8231 use_shadow_register_set.
8232 (mips_interrupt_mask): New static function.
8233 (mips_handle_interrupt_attr): Likewise.
8234 (mips_handle_use_shadow_register_set_attr): Likewise.
8235 (mips_use_shadow_register_set): Change return type to enum
8236 mips_shadow_set. Add argument handling for use_shadow_register_set
8238 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8239 compare with mips_shadow_set enum.
8240 (mips_compute_frame_info): Add interrupt mask and
8241 use_shadow_register_set to per-function information structure.
8242 Add a stack slot for EPC unconditionally.
8243 (mips_expand_prologue): Compare use_shadow_register_set value
8244 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8245 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8246 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8247 copying the stack pointer from the shadow register set.
8248 * config/mips/mips.h (SR_IM0): New define.
8249 * config/mips/mips.md (mips_rdpgpr): Rename to...
8250 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8251 * doc/extend.texi (Declaring Attributes of Functions): Document
8252 optional arguments for interrupt and use_shadow_register_set
8255 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8257 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8258 interrupt attribute.
8259 (mips_expand_prologue): Disable the floating point unit in an ISR.
8260 * config/mips/mips.h (SR_COP1): New define.
8262 2015-07-15 Richard Biener <rguenther@suse.de>
8264 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8265 to tell how many tokens to peek ahead (default 1).
8266 (parser::eat_token, parser::eat_ident): Return token consumed.
8267 (parser::parse_result): Parse new switch statement.
8268 * match.pd: Use case statements where appropriate.
8270 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8272 PR rtl-optimization/58066
8273 * calls.c (expand_call): Precompute register parameters before stack
8274 alignment is performed.
8276 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8278 PR rtl-optimization/66838
8279 * postreload.c (reload_cse_move2add): Also process
8280 CALL_INSN_FUNCTION_USAGE when resetting information of
8281 call-clobbered registers.
8283 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8284 Cesar Philippidis <cesar@codesourcery.com>
8285 Chung-Lin Tang <cltang@codesourcery.com>
8287 * config/nios2/constraints.md (U, v): New constraints.
8288 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8289 (ldstex_memory_operand): New.
8290 * config/nios2/sync.md: New file.
8291 * config/nios2/nios2.md (unspecv): Add new builtin function
8293 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8294 (top-level): Include sync.md.
8295 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8297 (N2_BUILTINS): Add arch field setting, add new builtins.
8298 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8300 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8301 Also handle ldex/stex/ldsex/stsex builtins.
8302 (nios2_expand_rdprs_builtin): New function.
8303 (nios2_expand_cache_builtin): New function.
8304 (nios2_expand_wrpie_builtin): New function.
8305 (nios2_expand_eni_builtin): New function.
8306 (nios2_expand_builtin): Add arch field handling and new builtin
8308 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8310 * doc/md.texi (Machine Constraints): Document U and v constraints.
8312 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8313 Cesar Philippidis <cesar@codesourcery.com>
8314 Chung-Lin Tang <cltang@codesourcery.com>
8316 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8317 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8318 callee_save_reg_size and uses_anonymous_args fields.
8319 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8320 (nios2_create_cfa_notes): New function.
8321 (nios2_adjust_stack): New function for adjusting stack.
8322 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8323 Use nios2_adjust_stack.
8324 (nios2_expand_epilogue): Likewise.
8325 (nios2_expand_return): New function.
8326 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8327 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8328 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8329 * config/nios2/nios2.md (return): Use nios2_expand_return.
8331 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8332 Cesar Philippidis <cesar@codesourcery.com>
8333 Chung-Lin Tang <cltang@codesourcery.com>
8335 * config/nios2/predicates.md (pop_operation): New.
8336 (ldwm_operation, stwm_operation): New.
8337 (nios2_hard_register_operand): New.
8338 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8339 (ldstwm_operation_p): Declare.
8340 (gen_ldstwm_peep): Declare.
8341 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8342 (base_reg_adjustment_p): New.
8343 (pop_operation_p): New.
8344 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8345 (nios2_ldstwm_regset_p): New.
8346 (ldstwm_operation_p): New.
8348 (nios2_ldst_parallel): New.
8349 (struct ldswm_operand): Declare.
8350 (compare_ldstwm_operands): New.
8351 (can_use_cdx_ldstw): New.
8352 (gen_ldstwm_peep): New.
8353 * config/nios2/nios2-ldstwm.sml: New.
8354 * config/nios2/nios2.md: Include ldstwm.md.
8355 * config/nios2/ldstwm.md: Generated.
8357 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8358 Cesar Philippidis <cesar@codesourcery.com>
8359 Chung-Lin Tang <cltang@codesourcery.com>
8361 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8362 (REG_ALLOC_ORDER): Define.
8363 (ADJUST_REG_ALLOC_ORDER): Define.
8364 (HONOR_REG_ALLOC_ORDER): Define.
8365 (CDX_REG_P): Define.
8366 (ANDCLEAR_INT): Define.
8367 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8368 (nios2_label_align): Declare.
8369 (nios2_cdx_narrow_form_p): Declare.
8370 (nios2_adjust_reg_alloc_order): Declare.
8371 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8373 (nios2_large_unspec_reloc_p): New function, split from...
8374 (nios2_legitimate_pic_operand_p): ...here.
8375 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8376 (nios2_print_operand_punct_valid_p): New.
8377 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8378 (split_mem_address): New.
8379 (split_alu_insn): New.
8381 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8382 (enum nios2_add_insn_kind): New.
8383 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8384 (nios2_add_insn_classify): New.
8385 (nios2_add_insn_asm): New.
8386 (nios2_cdx_narrow_form_p): New.
8387 (label_align, min_labelno, max_labelno): New.
8389 (nios2_label_align): New.
8390 (nios2_adjust_reg_alloc_order): New.
8391 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8392 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8393 * config/nios2/constraints.md (P): New constraint.
8394 * config/nios2/predicates.md (const_and_operand): New.
8396 (stack_memory_operand): New.
8397 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8398 (length): Update to use nios2_cdx_narrow_form_p().
8399 (type): Add new insn type values.
8400 (control, alu, st, ld, shift): Update insn reservations with
8401 new insn type values.
8402 (*high, *lo_sum): Define new insn patterns for constant generation.
8403 (movqi_internal, movhi_internal, movsi_internal): Reduce
8404 alternatives, update asm template to handle CDX variants, update
8406 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8407 template, update type attributes.
8408 (extendhisi2, extendqi<mode>2): Likewise.
8409 (addsi3): Change to use function for asm string.
8410 (subsi3): Add CDX notation to asm template, update type attributes.
8411 (negsi3, one_cmplsi3): Likewise.
8412 (andsi3): New pattern, specialized from logical patterns.
8413 (<code>si3): Remove and case, combine alternatives, update asm
8415 (<shift_op>si3): Add CDX notation, update type attributes.
8416 (rotrsi3): Update type attribute.
8417 (*merge, extzv, insv): New insn patterns.
8418 (return): Change to define_expand.
8419 (simple_return): Add CDX notation, update type attributes.
8420 (indirect_jump): Add CDX notation.
8421 (jump): Update asm cases, update length attribute expression.
8422 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8423 (nios2_cbranch): Update asm cases and length attribute expression
8424 to handle CDX variants.
8425 (nios2_cmp<code>): Update asm template.
8426 (nop): Add CDX notation, update type attributes.
8427 (trap): Add CDX notation.
8428 (ctrapsi4): Update asm cases and length attribute expression to
8430 * doc/md.texi (Machine Constraints): Document P constraint.
8432 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8433 Cesar Philippidis <cesar@codesourcery.com>
8434 Chung-Lin Tang <cltang@codesourcery.com>
8436 * config/nios2/nios2.h (SMALL_INT12): New macro.
8437 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8438 (nios2_valid_addr_expr_p): Use it.
8439 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8440 with implicit "io" instructions on R2.
8441 * config/nios2/constraints.md (w): New constraint.
8442 * config/nios2/predicates.md (ldstio_memory_operand): New.
8443 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8444 operand predicate and constraint.
8445 (ld<bh>io_signed, st<bhw>io>): Likewise.
8446 * doc/md.texi (Machine Constraints): Document w constraint.
8448 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8449 Cesar Philippidis <cesar@codesourcery.com>
8450 Chung-Lin Tang <cltang@codesourcery.com>
8452 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8453 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8454 Nios II architecture level.
8455 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8456 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8457 (OPTION_DEFAULT_SPECS): Define.
8458 (ASM_SPEC): Add -march= spec strings.
8459 * config/nios2/nios2.c (nios2_option_override): Check for
8460 conflicts involving new options.
8461 * config.gcc (nios2*-*-*): Support --with-arch=.
8462 * doc/invoke.texi (Option Summary, Nios II Options): Document
8463 -march=, -mbmx, and -mcdx.
8465 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8467 PR rtl-optimization/66626
8468 * lra-constraints.c (lra_constraints): Prevent equivalence
8469 substitution for static chain pseudo in functions with nonlocal
8472 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8474 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8475 (nios2_emit_stack_limit_check): Add size parameter. Handle
8476 -fstack-limit-symbol as well as -fstack-limit-register.
8477 (nios2_expand_prologue): Emit only a single stack limit check,
8478 even if multiple stack adjustments are required.
8479 (nios2_option_override): Diagnose unsupported combination of -fpic
8480 and -stack-limit-symbol.
8482 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8484 * Makefile.in (top_srcdir): New.
8485 * configure.ac: Use AM_ZLIB.
8486 * configure: Regeneated.
8488 2015-07-14 Matthias Klose <doko@ubuntu.com>
8491 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8493 2015-07-14 Richard Biener <rguenther@suse.de>
8495 PR tree-optimization/66863
8496 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8497 what we record for conversion use stmt lhs inequalities.
8499 2015-07-14 Richard Biener <rguenther@suse.de>
8501 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8502 (decision_tree::gen_gimple): Likewise.
8504 2015-07-14 Tom de Vries <tom@codesourcery.com>
8506 * gcc.c (greater_than_spec_func): Declare forward.
8507 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8508 -ftree-parallelize-loops={0,1}.
8509 (static_spec_functions): Add greater_than_spec_func function with name
8511 (greater_than_spec_func): New function.
8513 2015-07-14 Richard Biener <rguenther@suse.de>
8515 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8516 wideing type conversion case from record_equivalences_from_incoming_edge
8517 and use record_equality to record equivalences.
8518 (record_equivalences_from_incoming_edge): Call
8519 record_temporary_equivalences.
8521 2015-07-14 Richard Biener <rguenther@suse.de>
8523 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8524 (struct if_expr): New.
8525 (struct with_expr): Likewise.
8526 (is_a_helper): Add helpers for if_expr and with_expr.
8527 (struct simplify): Add simplify_kind enum and member. Remove
8529 (simplify::simplify): Adjust.
8530 (lower_commutative): Adjust.
8531 (lower_opt_convert): Likewise.
8532 (lower_cond): Likewise.
8533 (replace_id): Handle with_expr and if_expr.
8534 (lower_for): Adjust.
8535 (dt_simplify::gen_1): New recursive worker, split out from ...
8536 (dt_simplify::gen): ... here. Deal with if and with expansion
8538 (capture_info::capture_info): Take context argument
8539 (capture_info::walk_result): Only analyze specific result.
8540 (parser::parse_result): New function.
8541 (parser::parse_simplify): Adjust to parse ifs with then end
8543 (parser::parse_if): Simplify.
8544 (parser::parse_pattern): Pass down simplify kind.
8545 * match.pd: Convert if structure to new syntax.
8547 2015-07-13 Marek Polacek <polacek@redhat.com>
8549 * rtl.c (rtx_equal_p_cb): Fix typo.
8551 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8553 * omega.h: Don't include config.h, don't include params.h again if
8554 omega.h has already been included.
8555 * graphite-poly.h: Include sese.h.
8556 * graphite.c: Don't include sese.h, remove needless includes and
8557 minimize includes outside #ifdef HAVE_isl block.
8558 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8559 and wrap entire file in #ifdef HAVE_isl
8560 * graphite-dependences.c: Likewise.
8561 * graphite-interchange.c: Likewise.
8562 * graphite-isl-ast-to-gimple.c: Likewise.
8563 * graphite-optimize-isl.c: Likewise.
8564 * graphite-poly.c: Likewise.
8565 * graphite-scop-detection.c: Likewise.
8566 * graphite-sese-to-poly.c: Likewise.
8568 2015-07-13 Tom de Vries <tom@codesourcery.com>
8570 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8572 2015-07-13 Renlin Li <renlin.li@arm.com>
8575 * simplify-rtx.c (simplify_const_relational_operation): Add
8576 side_effects_p checks.
8578 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8580 * bitmap.h: Fix double word typos.
8583 * cfgloopmanip.c: Same.
8586 * cgraphclones.c: Same.
8588 * config/aarch64/aarch64-protos.h: Same.
8589 * config/aarch64/aarch64.c: Same.
8590 * config/aarch64/aarch64.md: Same.
8591 * config/arm/arm.md: Same.
8592 * config/arm/arm1020e.md: Same.
8593 * config/arm/arm1026ejs.md: Same.
8594 * config/arm/arm926ejs.md: Same.
8595 * config/arm/fa526.md: Same.
8596 * config/arm/fa606te.md: Same.
8597 * config/arm/fa626te.md: Same.
8598 * config/arm/fa726te.md: Same.
8599 * config/arm/fmp626.md: Same.
8600 * config/darwin.c: Same.
8601 * config/epiphany/epiphany.c: Same.
8602 * config/frv/frv.c: Same.
8603 * config/ft32/ft32.c: Same.
8604 * config/gnu-user.h: Same.
8605 * config/h8300/constraints.md: Same.
8606 * config/i386/i386.c: Same.
8607 * config/i386/i386.md: Same.
8608 * config/iq2000/iq2000.md: Same.
8609 * config/mips/mips.c: Same.
8610 * config/mmix/mmix.md: Same.
8611 * config/moxie/moxie.c: Same.
8612 * config/nds32/nds32.md: Same.
8613 * config/pa/pa.h: Same.
8614 * config/rs6000/aix.h: Same.
8615 * config/rs6000/rs6000.h: Same.
8616 * config/sh/sh.c: Same.
8617 * config/tilegx/tilegx.md: Same.
8618 * config/tilepro/gen-mul-tables.cc: Same.
8621 * doc/invoke.texi: Same.
8623 * dwarf2out.c: Same.
8628 * hash-table.h: Same.
8629 * internal-fn.c: Same.
8631 * ipa-devirt.c: Same.
8634 * ipa-profile.c: Same.
8639 * reg-stack.c: Same.
8645 * tree-inline.c: Same.
8647 * tree-ssa-dom.c: Same.
8648 * tree-ssa-loop-ivopts.c: Same.
8649 * tree-ssa-structalias.c: Same.
8650 * tree-ssa-tail-merge.c: Same.
8651 * tree-ssa-ter.c: Same.
8652 * tree-ssa-threadupdate.c: Same.
8653 * tree-ssa-uninit.c: Same.
8654 * tree-ssanames.c: Same.
8655 * tree-vect-loop-manip.c: Same.
8661 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8664 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8665 tree_ssa_phiopt_worker): Call it.
8667 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8669 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8670 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8673 2015-07-11 Marek Polacek <polacek@redhat.com>
8676 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
8677 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
8678 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
8679 rather than bb_has_abnormal_call_pred.
8680 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
8681 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
8682 rather than bb_has_abnormal_call_pred.
8684 2015-07-10 Anatoly Sokolov <aesok@post.ru>
8686 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8687 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
8688 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8689 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
8690 v850_legitimate_address_p): New functions.
8691 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8693 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
8696 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
8697 indirect sibcall with register arguments if register available
8698 for argument passing.
8699 (init_cumulative_args): Set cfun->machine->arg_reg_available
8700 to (cum->nregs > 0) or to true if function has a variable
8702 (function_arg_advance_32): Set cfun->machine->arg_reg_available
8703 to false if cum->nregs <= 0.
8704 * config/i386/i386.h (machine_function): Add arg_reg_available.
8706 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8708 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
8709 and gen_higpart instead of gen_rtx_SUBREG.
8710 * config/i386/i386.md
8711 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
8712 (read-modify peephole2): Use gen_lowpart instead of
8713 gen_rtx_SUBREG for operand 5.
8715 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8717 * config/tilepro/gen-mul-tables.cc (main): Change include list for
8719 * config/tilepro/mul-tables.c: Regenerate.
8720 * config/tilegx/mul-tables.c: Regenerate.
8722 2015-07-10 Richard Biener <rguenther@suse.de>
8724 * fold-const.c (distribute_bit_expr): Remove.
8725 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8726 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8727 to A & (B | C) and simplifying A << C1 << C2 to ...
8728 * match.pd: ... patterns here.
8730 2015-07-10 Jiong Wang <jiong.wang@arm.com>
8732 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8733 Mark mem as READONLY and NOTRAP for PIC symbol.
8735 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8737 * gimple-predict.h: New file.
8738 (gimple_predict_predictor, gimple_predict_set_predictor,
8739 gimple_predict_outcome, gimple_predict_set_outcome,
8740 gimple_build_predict): Relocate here.
8741 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8742 gimple_predict_outcome, gimple_predict_set_outcome): Move to
8744 * gimple.c (gimple_build_predict): Move to gimple-predict.h
8745 * basic-block.h: Don't include cfghooks.h.
8746 * backend.h: Don't include predict.h.
8747 * cfghooks.h: Include predict.h.
8748 * gimple-pretty-print.c: Include gimple-predict.h.
8749 * gimplify.c: Likwise.
8750 * predict.c: Adjust includes.
8751 * tree-inline.c: Likewise.
8753 * auto-inc-dec.c: Likewise.
8754 * auto-profile.c: Likewise.
8755 * bb-reorder.c: Likewise.
8756 * builtins.c: Likewise.
8757 * caller-save.c: Likewise.
8758 * calls.c: Likewise.
8759 * cfganal.c: Likewise.
8760 * cfgbuild.c: Likewise.
8762 * cfgcleanup.c: Likewise.
8763 * cfgexpand.c: Likewise.
8764 * cfghooks.c: Likewise.
8765 * cfgloopanal.c: Likewise.
8766 * cfgloop.c: Likewise.
8767 * cfgloopmanip.c: Likewise.
8768 * cfgrtl.c: Likewise.
8769 * cgraph.c: Likewise.
8770 * cgraphunit.c: Likewise.
8771 * combine.c: Likewise.
8772 * cprop.c: Likewise.
8775 * dojump.c: Likewise.
8777 * except.c: Likewise.
8778 * expmed.c: Likewise.
8780 * final.c: Likewise.
8781 * fold-const.c: Likewise.
8782 * function.c: Likewise.
8783 * fwprop.c: Likewise.
8784 * gcc-plugin.h: Likewise.
8786 * genattrtab.c: Likewise.
8787 * genemit.c: Likewise.
8788 * gengtype.c: Likewise.
8789 * genopinit.c: Likewise.
8790 * genoutput.c: Likewise.
8791 * genpreds.c: Likewise.
8792 * genrecog.c: Likewise.
8793 * gimple-fold.c: Likewise.
8794 * gimple-iterator.c: Likewise.
8795 * gimple-ssa-isolate-paths.c: Likewise.
8796 * gimple-ssa-strength-reduction.c: Likewise.
8797 * graph.c: Likewise.
8798 * graphite-blocking.c: Likewise.
8799 * graphite.c: Likewise.
8800 * graphite-dependences.c: Likewise.
8801 * graphite-interchange.c: Likewise.
8802 * graphite-isl-ast-to-gimple.c: Likewise.
8803 * graphite-optimize-isl.c: Likewise.
8804 * graphite-poly.c: Likewise.
8805 * graphite-scop-detection.c: Likewise.
8806 * graphite-sese-to-poly.c: Likewise.
8807 * haifa-sched.c: Likewise.
8808 * ifcvt.c: Likewise.
8809 * internal-fn.c: Likewise.
8810 * ipa-cp.c: Likewise.
8811 * ipa-profile.c: Likewise.
8812 * ipa-split.c: Likewise.
8813 * ipa-utils.c: Likewise.
8814 * ira-build.c: Likewise.
8815 * ira-color.c: Likewise.
8816 * ira-conflicts.c: Likewise.
8817 * ira-costs.c: Likewise.
8818 * ira-emit.c: Likewise.
8819 * ira-lives.c: Likewise.
8821 * loop-doloop.c: Likewise.
8822 * loop-init.c: Likewise.
8823 * loop-invariant.c: Likewise.
8824 * loop-unroll.c: Likewise.
8825 * lower-subreg.c: Likewise.
8826 * lra-assigns.c: Likewise.
8828 * lra-coalesce.c: Likewise.
8829 * lra-constraints.c: Likewise.
8830 * lra-lives.c: Likewise.
8831 * lto-cgraph.c: Likewise.
8832 * lto-streamer-in.c: Likewise.
8833 * mode-switching.c: Likewise.
8834 * modulo-sched.c: Likewise.
8835 * omp-low.c: Likewise.
8836 * optabs.c: Likewise.
8837 * passes.c: Likewise.
8838 * postreload.c: Likewise.
8839 * postreload-gcse.c: Likewise.
8840 * profile.c: Likewise.
8841 * recog.c: Likewise.
8842 * regstat.c: Likewise.
8843 * reload1.c: Likewise.
8844 * reorg.c: Likewise.
8845 * rtlanal.c: Likewise.
8846 * sched-ebb.c: Likewise.
8847 * sel-sched-ir.c: Likewise.
8849 * shrink-wrap.c: Likewise.
8850 * simplify-rtx.c: Likewise.
8852 * store-motion.c: Likewise.
8853 * tracer.c: Likewise.
8854 * trans-mem.c: Likewise.
8855 * tree-call-cdce.c: Likewise.
8856 * tree-cfg.c: Likewise.
8857 * tree-cfgcleanup.c: Likewise.
8858 * tree-chkp.c: Likewise.
8859 * tree-complex.c: Likewise.
8860 * tree-eh.c: Likewise.
8861 * tree-if-conv.c: Likewise.
8862 * tree-loop-distribution.c: Likewise.
8863 * tree-outof-ssa.c: Likewise.
8864 * tree-parloops.c: Likewise.
8865 * tree-predcom.c: Likewise.
8866 * tree-pretty-print.c: Likewise.
8867 * tree-profile.c: Likewise.
8868 * tree-sra.c: Likewise.
8869 * tree-ssa.c: Likewise.
8870 * tree-ssa-coalesce.c: Likewise.
8871 * tree-ssa-dce.c: Likewise.
8872 * tree-ssa-dom.c: Likewise.
8873 * tree-ssa-forwprop.c: Likewise.
8874 * tree-ssa-ifcombine.c: Likewise.
8875 * tree-ssa-loop-ch.c: Likewise.
8876 * tree-ssa-loop-im.c: Likewise.
8877 * tree-ssa-loop-ivcanon.c: Likewise.
8878 * tree-ssa-loop-ivopts.c: Likewise.
8879 * tree-ssa-loop-manip.c: Likewise.
8880 * tree-ssa-loop-prefetch.c: Likewise.
8881 * tree-ssa-loop-unswitch.c: Likewise.
8882 * tree-ssa-math-opts.c: Likewise.
8883 * tree-ssa-phiopt.c: Likewise.
8884 * tree-ssa-pre.c: Likewise.
8885 * tree-ssa-reassoc.c: Likewise.
8886 * tree-ssa-sink.c: Likewise.
8887 * tree-ssa-tail-merge.c: Likewise.
8888 * tree-ssa-threadedge.c: Likewise.
8889 * tree-ssa-threadupdate.c: Likewise.
8890 * tree-switch-conversion.c: Likewise.
8891 * tree-tailcall.c: Likewise.
8892 * tree-vect-data-refs.c: Likewise.
8893 * tree-vect-loop.c: Likewise.
8894 * tree-vect-loop-manip.c: Likewise.
8895 * tree-vectorizer.c: Likewise.
8896 * tree-vrp.c: Likewise.
8897 * ubsan.c: Likewise.
8898 * value-prof.c: Likewise.
8899 * varasm.c: Likewise.
8900 * var-tracking.c: Likewise.
8901 * config/aarch64/aarch64-builtins.c: Likewise.
8902 * config/aarch64/aarch64.c: Likewise.
8903 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8904 * config/alpha/alpha.c: Likewise.
8905 * config/arc/arc.c: Likewise.
8906 * config/arm/arm.c: Likewise.
8907 * config/avr/avr.c: Likewise.
8908 * config/bfin/bfin.c: Likewise.
8909 * config/c6x/c6x.c: Likewise.
8910 * config/cr16/cr16.c: Likewise.
8911 * config/cris/cris.c: Likewise.
8912 * config/darwin.c: Likewise.
8913 * config/darwin-c.c: Likewise.
8914 * config/epiphany/epiphany.c: Likewise.
8915 * config/epiphany/mode-switch-use.c: Likewise.
8916 * config/epiphany/resolve-sw-modes.c: Likewise.
8917 * config/fr30/fr30.c: Likewise.
8918 * config/frv/frv.c: Likewise.
8919 * config/ft32/ft32.c: Likewise.
8920 * config/h8300/h8300.c: Likewise.
8921 * config/i386/i386.c: Likewise.
8922 * config/i386/winnt.c: Likewise.
8923 * config/ia64/ia64.c: Likewise.
8924 * config/iq2000/iq2000.c: Likewise.
8925 * config/lm32/lm32.c: Likewise.
8926 * config/m32c/m32c.c: Likewise.
8927 * config/m32r/m32r.c: Likewise.
8928 * config/m68k/m68k.c: Likewise.
8929 * config/mcore/mcore.c: Likewise.
8930 * config/mep/mep.c: Likewise.
8931 * config/microblaze/microblaze.c: Likewise.
8932 * config/mips/mips.c: Likewise.
8933 * config/mmix/mmix.c: Likewise.
8934 * config/mn10300/mn10300.c: Likewise.
8935 * config/moxie/moxie.c: Likewise.
8936 * config/msp430/msp430.c: Likewise.
8937 * config/nds32/nds32.c: Likewise.
8938 * config/nds32/nds32-cost.c: Likewise.
8939 * config/nds32/nds32-fp-as-gp.c: Likewise.
8940 * config/nds32/nds32-intrinsic.c: Likewise.
8941 * config/nds32/nds32-isr.c: Likewise.
8942 * config/nds32/nds32-md-auxiliary.c: Likewise.
8943 * config/nds32/nds32-memory-manipulation.c: Likewise.
8944 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8945 * config/nds32/nds32-predicates.c: Likewise.
8946 * config/nios2/nios2.c: Likewise.
8947 * config/nvptx/nvptx.c: Likewise.
8948 * config/pa/pa.c: Likewise.
8949 * config/pdp11/pdp11.c: Likewise.
8950 * config/rl78/rl78.c: Likewise.
8951 * config/rs6000/rs6000.c: Likewise.
8952 * config/rx/rx.c: Likewise.
8953 * config/s390/s390.c: Likewise.
8954 * config/sh/sh.c: Likewise.
8955 * config/sh/sh-mem.cc: Likewise.
8956 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8957 * config/sh/sh_treg_combine.cc: Likewise.
8958 * config/sparc/sparc.c: Likewise.
8959 * config/spu/spu.c: Likewise.
8960 * config/stormy16/stormy16.c: Likewise.
8961 * config/tilegx/tilegx.c: Likewise.
8962 * config/tilepro/tilepro.c: Likewise.
8963 * config/v850/v850.c: Likewise.
8964 * config/vax/vax.c: Likewise.
8965 * config/visium/visium.c: Likewise.
8966 * config/xtensa/xtensa.c: Likewise.
8968 2015-07-10 Richard Biener <rguenther@suse.de>
8970 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8971 (decision_tree::gen_gimple): Likewise.
8972 (decision_tree::gen_generic): Likewise.
8974 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8977 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8978 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8980 2015-07-10 Jakub Jelinek <jakub@redhat.com>
8983 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8984 or ORT_TASK contexts.
8985 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8988 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8990 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8993 2015-07-10 Tom de Vries <tom@codesourcery.com>
8995 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8996 insert nit + 1 bound.
8998 2015-07-10 Richard Biener <rguenther@suse.de>
9000 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9001 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9002 (if_convertible_loop_p_1): For this always compute bb predicates.
9003 (if_convertible_loop_p): And free them.
9005 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9007 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9010 2015-07-10 Richard Biener <rguenther@suse.de>
9012 PR tree-optimization/66823
9013 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9016 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9018 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9019 to handle mips[32|64]r3 and mips[32|64]r5.
9021 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9024 * tree-nested.c (get_static_chain): Or in a flag into
9025 info->static_chain_added.
9026 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9027 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9029 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9030 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9033 PR tree-optimization/66718
9034 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9036 (vect_simd_lane_linear): New function.
9037 (vectorizable_simd_clone_call): Support using linear arguments for
9038 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9040 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9043 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9045 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9047 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9048 Use machine mode, not enum machine_mode in the prototype.
9050 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9051 classify 128-bit floating point support.
9052 (FLOAT128_IBM_P): Likewise.
9053 (FLOAT128_VECTOR_P): Likewise.
9054 (FLOAT128_2REG_P): Likewise.
9055 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9056 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9057 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9058 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9060 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9061 tests against TFmode/TDmode, since those modes do not use VSX
9063 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9065 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9066 tests against TFmode, etc.
9067 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9068 (reg_offset_addressing_ok_p): Likewise.
9069 (rs6000_legitimate_offset_address_p): Likewise.
9070 (rs6000_legitimize_address): Likewise.
9071 (rs6000_legitimize_reload_address): Likewise.
9072 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9073 TDmode to use the new helper macros, which will include IFmode and
9075 (rs6000_emit_move): Likewise.
9076 (rs6000_darwin64_record_arg_recurse): Likewise.
9077 (print_operand): Likewise.
9078 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9079 that uses a single vector register as a vector and not as a
9080 floating point register in terms of the calling sequence.
9081 (rs6000_discover_homogeneous_aggregate): Likewise.
9082 (rs6000_return_in_memory): Likewise.
9083 (init_cumulative_args): Likewise.
9084 (rs6000_function_arg_boundary): Likewise.
9085 (rs6000_function_arg_advance_1): Likewise.
9086 (rs6000_function_arg): Likewise.
9087 (rs6000_pass_by_reference): Likewise.
9088 (rs6000_gimplify_va_arg): Likewise.
9089 (rs6000_secondary_reload_memory): Use machine_mode not enum
9091 (rs6000_split_multireg_move): Use new helper macros.
9092 (spe_func_has_64bit_regs_p): Likewise.
9093 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9094 (output_toc): Use new helper macros.
9095 (rs6000_register_move_cost): Likewise.
9096 (rs6000_function_value): Add IEEE 128-bit floating point calling
9098 (rs6000_libcall_value): Likewise.
9099 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9100 floating point support.
9101 (rs6000_vector_mode_supported_p): Likewise.
9103 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9105 PR rtl-optimization/66782
9106 * lra-int.h (struct lra_insn_recog_data): Add comment about
9107 clobbered hard regs for arg_hard_regs.
9108 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9109 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9110 Add condition for processing used hard regs.
9111 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9112 Process clobbered hard regs.
9114 2015-07-09 Michael Matz <matz@suse.de>
9116 * genmatch.c (fprintf_indent): New function.
9117 (operand::gen_transform): Add indent parameter.
9118 (expr::gen_transform, c_expr::gen_transform,
9119 capture::gen_transform): Ditto and use fprintf_indent.
9120 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9121 (dt_operand::gen, dt_operand::gen_predicate,
9122 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9123 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9124 (decision_tree::gen_gimple): Adjust calls and indent generated
9126 (decision_tree::gen_generic): Ditto.
9127 (write_predicate): Ditto.
9129 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9132 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9133 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9134 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9135 {GENERAL,SSE,MMX}_REG_P where appropriate.
9137 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9139 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9140 * builtins.c: Adjust includes.
9141 * gimple.c: Likewise.
9142 * ipa-icf.c: Likewise.
9143 * lto-opts.c: Likewise.
9144 * ipa-reference.c: Likewise.
9145 * lto-section-out.c: Likewise.
9146 * lto-streamer-in.c: Likewise.
9147 * lto-streamer-out.c: Likewise.
9148 * opts-global.c: Likewise.
9149 * symtab.c: Likewise.
9150 * tree-chkp.c: Likewise.
9151 * tree-ssa-live.c: Likewise.
9152 * tree-streamer-in.c: Likewise.
9153 * tree-streamer-out.c: Likewise.
9154 * config/darwin.c: Likewise.
9155 * config/i386/winnt.c: Likewise.
9157 2015-07-09 Richard Biener <rguenther@suse.de>
9159 * genmatch.c (struct expr): Add force_single_use flag.
9160 (expr::expr): Add copy constructor.
9161 (capture_info::walk_match): Gather force_single_use captures.
9162 (expr::gen_transform): Use possibly NULLified sequence.
9163 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9164 seq if any constrained expr is not single-use.
9165 (parser::parse_expr): Refactor to allow multiple flags. Handle
9166 's' flag to force an expression have a single-use if the pattern
9167 simplifies to more than one statement.
9168 * match.pd: Convert most single_use conditionals to :s flags.
9170 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9172 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9173 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9174 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9176 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9178 * flags.h: Don't include flag-types.h or options.h.
9179 * opts-common.c: Adjust includes.
9180 * opts-global.c: Likewise.
9181 * common/config/epiphany/epiphany-common.c: Likewise.
9183 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9186 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9189 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9192 * config/i386/i386.c (ix86_return_in_memory): Return true
9193 if int_size_in_bytes returns negative for IA MCU.
9195 2015-07-09 Marek Polacek <polacek@redhat.com>
9197 PR tree-optimization/66718
9198 * Makefile.in (OBJS): Add gimple-laddress.o.
9199 * passes.def: Schedule pass_laddress.
9200 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9201 * tree-pass.h (make_pass_laddress): Declare.
9202 * gimple-laddress.c: New file.
9204 2015-07-09 Richard Biener <rguenther@suse.de>
9206 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9208 2015-07-09 Richard Biener <rguenther@suse.de>
9210 PR tree-optimization/66807
9211 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9213 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9215 * function.c (stack_protect_epilogue): Use if rather than switch for
9216 check targetm.have_stack_protect_test.
9218 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9220 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9221 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9222 * config/arc/arc.h: Likewise.
9223 * config/arm/arm.h: Likewise.
9224 * config/bfin/bfin.h: Likewise.
9225 * config/epiphany/epiphany.h: Likewise.
9226 * config/frv/frv.h: Likewise.
9227 * config/ia64/ia64.h: Likewise.
9228 * config/iq2000/iq2000.h: Likewise.
9229 * config/lm32/lm32.h: Likewise.
9230 * config/m32r/m32r.h: Likewise.
9231 * config/mcore/mcore.h: Likewise.
9232 * config/mep/mep.h: Likewise.
9233 * config/microblaze/microblaze.h: Likewise.
9234 * config/mips/mips.h: Likewise.
9235 * config/mmix/mmix.h: Likewise.
9236 * config/mn10300/mn10300.h: Likewise.
9237 * config/nds32/nds32.h: Likewise.
9238 * config/nios2/nios2.h: Likewise.
9239 * config/pa/pa.h: Likewise.
9240 * config/rl78/rl78.h: Likewise.
9241 * config/sh/sh.h: Likewise.
9242 * config/sparc/sparc.h: Likewise.
9243 * config/stormy16/stormy16.h: Likewise.
9244 * config/tilegx/tilegx.h: Likewise.
9245 * config/tilepro/tilepro.h: Likewise.
9246 * config/v850/v850.h: Likewise.
9247 * config/xtensa/xtensa.h: Likewise.
9248 * doc/tm.texi: Regenerate.
9249 * doc/tm.texi.in: Adjust.
9250 * combine.c (simplify_set): Likewise.
9251 (simplify_comparison): Likewise.
9252 * expr.c (store_constructor): Likewise.
9253 * internal-fn.c (expand_arith_overflow): Likewise.
9254 * reload.c (push_reload): Likewise.
9255 (find_reloads): Likewise.
9256 (find_reloads_subreg_address): Likewise.
9257 * reload1.c (eliminate_regs_1): Likewise.
9258 * rtlanal.c (nonzero_bits1): Likewise.
9259 (num_sign_bit_copies1): Likewise.
9260 * simplify-rtx.c (simplify_truncation): Likewise.
9262 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9264 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9265 of AUTO_INC_DEC with the preprocessor.
9266 * combine.c (combine_instructions): Likewise.
9267 (can_combine_p): Likewise.
9268 (try_combine): Likewise.
9269 * emit-rtl.c (try_split): Likewise.
9270 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9271 * lower-subreg.c (resolve_simple_move): Likewise.
9272 * lra.c (update_inc_notes): Likewise.
9273 * recog.c (asm_operand_ok): Likewise.
9274 (constrain_operands): Likewise.
9275 * regrename.c (scan_rtx_address): Likewise.
9276 * reload.c (update_auto_inc_notes): Likewise.
9277 (reg_inc_found_and_valid_p): Likewise.
9278 * reload1.c (reload): Likewise.
9279 (emit_input_reload_insns): Likewise.
9280 (delete_output_reload): Likewise.
9281 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9282 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9284 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9286 * rtl.h: Always define AUTO_INC_DEC.
9287 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9288 * combine.c (combine_instructions): Likewise.
9289 (can_combine_p): Likewise.
9290 (try_combine): Likewise.
9291 * emit-rtl.c (try_split): Likewise.
9292 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9293 * lower-subreg.c (resolve_simple_move): Likewise.
9294 * lra.c (update_inc_notes): Likewise.
9295 * recog.c (asm_operand_ok): Likewise.
9296 (constrain_operands): Likewise.
9297 * regrename.c (scan_rtx_address): Likewise.
9298 * reload.c (update_auto_inc_notes): Likewise.
9299 (find_equiv_reg): Likewise.
9300 * reload1.c (reload): Likewise.
9301 (reload_as_needed): Likewise.
9302 (choose_reload_regs): Likewise.
9303 (emit_input_reload_insns): Likewise.
9304 (delete_output_reload): Likewise.
9305 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9306 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9308 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9310 * combine.c (can_combine_def_p): Don't check the value of
9311 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9312 (combinable_i3pat): Likewise.
9313 (mark_used_regs_combine): Likewise.
9314 * regrename.c (rename_chains): Likewise.
9315 * reload.c (find_reloads_address): Likewise.
9316 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9318 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9320 * combine.c (update_rsp_from_reg_equal): Don't check if
9321 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9322 (reg_nonzero_bits_for_combine): Likewise.
9323 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9325 * config/frv/frv.h: Likewise.
9326 * config/lm32/lm32.h: Likewise.
9327 * config/mep/mep.h: Likewise.
9328 * config/mips/mips.h: Likewise.
9329 * config/rs6000/rs6000.h: Likewise.
9330 * config/sh/sh.h: Likewise.
9331 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9332 * config/tilepro/tilepro.h: Likewise.
9333 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9334 * doc/tm.texi: Regenerate.
9335 * doc/tm.texi.in: Adjust.
9336 * rtlanal.c (nonzero_bits1): Likewise.
9338 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9340 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9341 with the preprocessor.
9342 (combine_instructions): Likewise.
9343 (try_combine): Likewise.
9345 (distribute_notes): Likewise.
9347 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9349 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9351 (simplify_set): Likewise.
9352 * cse.c (cse_insn): Likewise.
9353 * fold-const.c (fold_single_bit_test): Likewise.
9354 (fold_unary_loc): Likewise.
9355 * postreload.c (reload_cse_simplify_set): Likewise.
9356 (reload_cse_simplify_operands): Likewise.
9358 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9360 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9361 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9363 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9366 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9367 __iamcu__ is defined.
9369 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9371 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9373 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9376 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9377 names from preservation.
9379 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9382 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9384 (function_arg_advance_32): Don't pass vectors in registers for
9386 (function_arg_32): Likewise.
9387 (ix86_return_in_memory): Don't return vectors in registers for
9390 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9393 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9394 hard regno live at the start of BB with incoming abnormal edges.
9395 * lra-lives.c (process_bb_lives): Ditto.
9397 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9400 * config/nvptx/mkoffload.c (main): Create an offload image only in
9401 64-bit configurations.
9403 2015-07-08 Martin Liska <mliska@suse.cz>
9406 * tree-sra.c (create_access_1): Call ctor without brackets.
9407 (create_artificial_child_access): Likewise.
9409 2015-07-08 Richard Biener <rguenther@suse.de>
9411 PR tree-optimization/66793
9412 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9413 Properly split the block after stmts ending it.
9415 2015-07-08 Richard Biener <rguenther@suse.de>
9417 PR tree-optimization/66794
9418 * passes.c (execute_function_todo): Assert that post-dominators
9420 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9421 Free post-dominators.
9423 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9425 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9428 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9430 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9431 more than or equal 8 and less than 32 when optimizing for size.
9433 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9435 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9436 COSTS_N_INSNS (1) and increment it appropriately throughout the
9439 2015-07-08 Richard Biener <rguenther@suse.de>
9441 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9443 2015-07-08 Alan Modra <amodra@gmail.com>
9445 * target.def (rtx_costs): Remove "code" param, add "mode".
9446 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9447 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9448 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9449 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9450 call. Track mode when given in rtx.
9451 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9452 (default_address_cost): Pass Pmode to rtx_cost.
9453 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9454 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9456 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9457 (notreg_cost): Add mode param. Use it.
9458 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9459 mode param and pass to set_src_cost. Update all calls.
9460 (hash_scan_set): Formatting.
9461 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9462 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9464 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9465 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9466 emit_store_flag): Update set_src_cost and rtx_cost calls.
9467 * auto-inc-dec.c (attempt_change): Likewise.
9468 * calls.c (precompute_register_parameters): Likewise.
9469 * combine.c (expand_compound_operation, make_extraction,
9470 force_to_mode, distribute_and_simplify_rtx): Likewise.
9471 * dojump.c (prefer_and_bit_test): Likewise.
9472 * dse.c (find_shift_sequence): Likewise.
9473 * expr.c (compress_float_constant): Likewise.
9474 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9475 * ifcvt.c (noce_try_sign_mask): Likewise.
9476 * loop-doloop.c (doloop_optimize): Likewise.
9477 * loop-invariant.c (create_new_invariant): Likewise.
9478 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9479 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9480 lshift_cheap_p): Likewise.
9481 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9482 try_replace_in_use, reload_cse_move2add): Likewise.
9483 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9485 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9486 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9487 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9488 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9489 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9490 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9492 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9493 * config/arc/arc.c (arc_rtx_costs): Likewise.
9494 * config/arm/arm.c (arm_rtx_costs): Likewise.
9495 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9496 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9497 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9498 * config/cris/cris.c (cris_rtx_costs): Likewise.
9499 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9500 * config/frv/frv.c (frv_rtx_costs): Likewise.
9501 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9502 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9503 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9504 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9505 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9506 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9507 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9508 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9509 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9510 * config/mep/mep.c (mep_rtx_cost): Likewise.
9511 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9512 * config/mips/mips.c (mips_rtx_costs): Likewise.
9513 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9514 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9515 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9516 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9517 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9518 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9519 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9520 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9521 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9522 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9523 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9524 * config/s390/s390.c (s390_rtx_costs): Likewise.
9525 * config/sh/sh.c (sh_rtx_costs): Likewise.
9526 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9527 * config/spu/spu.c (spu_rtx_costs): Likewise.
9528 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9529 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9530 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9531 * config/v850/v850.c (v850_rtx_costs): Likewise.
9532 * config/vax/vax.c (vax_rtx_costs): Likewise.
9533 * config/visium/visium.c (visium_rtx_costs): Likewise.
9534 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9535 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9536 "code" param, and pass as outer_code to first rtx_cost call. Pass
9537 mode to rtx_cost calls.
9538 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9540 (aarch64_rtx_costs_wrapper): Update.
9541 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9542 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9544 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9546 (avr_operand_rtx_cost): Similarly.
9547 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9548 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9549 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9550 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9551 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9552 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9554 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9555 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9556 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9557 * doc/tm.texi: Regenerate.
9559 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9561 * tree-core.h: Include symtab.h.
9562 * rtl.h: Include hard-reg-set.h but not flags.h.
9563 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9564 hard-reg-set.h is always included.
9565 * regs.h: Don't include hard-reg-set.h or rtl.h.
9566 * cfg.h: Include dominance.h.
9567 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9568 * backend.h: New. Aggregate commonly used backend header files.
9569 * gimple-ssa.h: Don't include tree-hasher.h.
9570 * ssa.h: New. Aggregate commonly used SSA header files.
9571 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9572 * sel-sched-ir.h: Flatten includes.
9573 * lra-int.h: Flatten completely.
9574 * sel-sched-dump.h: Flatten includes.
9575 * ira-int.h: Flatten includes.
9576 * gimple-streamer.h: Remove all includes.
9577 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9578 * resource.h: Flatten hard-reg-set.h and df.h.
9579 * sched-int.h: Flatten insn-arrt.h and df.h.
9580 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9581 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9582 * genattrtab.c (write_header): Adjust generated includes.
9583 * genautomata.c (main): Likewise.
9584 * genconditions.c (write-header): Likewise.
9585 * genemit.c (main): Likewise.
9586 * gengtype.c (open_base_files): Likewise.
9587 * genopinit.c (main): Likewise.
9588 * genoutput.c (output_prologue): Likewise.
9589 * genpeep.c (main): Likewise.
9590 * genpreds.c (write_insn_preds_c): Likewise.
9591 * genrecog.c (write_header): Likewise.
9592 * alias.c: Adjust includes.
9594 * attribs.c: Likewise.
9595 * auto-inc-dec.c: Likewise.
9596 * auto-profile.c: Likewise.
9597 * bb-reorder.c: Likewise.
9598 * bt-load.c: Likewise.
9599 * builtins.c: Likewise.
9600 * caller-save.c: Likewise.
9601 * calls.c: Likewise.
9604 * cfganal.c: Likewise.
9605 * cfgbuild.c: Likewise.
9606 * cfgcleanup.c: Likewise.
9607 * cfgexpand.c: Likewise.
9608 * cfghooks.c: Likewise.
9609 * cfgloop.c: Likewise.
9610 * cfgloopanal.c: Likewise.
9611 * cfgloopmanip.c: Likewise.
9612 * cfgrtl.c: Likewise.
9613 * cgraph.c: Likewise.
9614 * cgraphbuild.c: Likewise.
9615 * cgraphclones.c: Likewise.
9616 * cgraphunit.c: Likewise.
9617 * cilk-common.c: Likewise.
9618 * combine-stack-adj.c: Likewise.
9619 * combine.c: Likewise.
9620 * compare-elim.c: Likewise.
9621 * convert.c: Likewise.
9622 * coverage.c: Likewise.
9623 * cppbuiltin.c: Likewise.
9624 * cprop.c: Likewise.
9626 * cselib.c: Likewise.
9627 * data-streamer-in.c: Likewise.
9628 * data-streamer-out.c: Likewise.
9629 * data-streamer.c: Likewise.
9630 * dbxout.c: Likewise.
9633 * debug.c: Likewise.
9634 * df-core.c: Likewise.
9635 * df-problems.c: Likewise.
9636 * df-scan.c: Likewise.
9638 * dojump.c: Likewise.
9639 * dominance.c: Likewise.
9640 * domwalk.c: Likewise.
9641 * double-int.c: Likewise.
9643 * dumpfile.c: Likewise.
9644 * dwarf2asm.c: Likewise.
9645 * dwarf2cfi.c: Likewise.
9646 * dwarf2out.c: Likewise.
9647 * emit-rtl.c: Likewise.
9648 * et-forest.c: Likewise.
9649 * except.c: Likewise.
9650 * explow.c: Likewise.
9651 * expmed.c: Likewise.
9653 * final.c: Likewise.
9654 * fixed-value.c: Likewise.
9655 * fold-const.c: Likewise.
9656 * function.c: Likewise.
9657 * fwprop.c: Likewise.
9658 * gcc-plugin.h: Likewise.
9659 * gcse-common.c: Likewise.
9661 * generic-match-head.c: Likewise.
9662 * ggc-page.c: Likewise.
9663 * gimple-builder.c: Likewise.
9664 * gimple-expr.c: Likewise.
9665 * gimple-fold.c: Likewise.
9666 * gimple-iterator.c: Likewise.
9667 * gimple-low.c: Likewise.
9668 * gimple-match-head.c: Likewise.
9669 * gimple-pretty-print.c: Likewise.
9670 * gimple-ssa-isolate-paths.c: Likewise.
9671 * gimple-ssa-strength-reduction.c: Likewise.
9672 * gimple-streamer-in.c: Likewise.
9673 * gimple-streamer-out.c: Likewise.
9674 * gimple-walk.c: Likewise.
9675 * gimple.c: Likewise.
9676 * gimplify-me.c: Likewise.
9677 * gimplify.c: Likewise.
9678 * godump.c: Likewise.
9679 * graph.c: Likewise.
9680 * graphite-blocking.c: Likewise.
9681 * graphite-dependences.c: Likewise.
9682 * graphite-interchange.c: Likewise.
9683 * graphite-isl-ast-to-gimple.c: Likewise.
9684 * graphite-optimize-isl.c: Likewise.
9685 * graphite-poly.c: Likewise.
9686 * graphite-scop-detection.c: Likewise.
9687 * graphite-sese-to-poly.c: Likewise.
9688 * graphite.c: Likewise.
9689 * haifa-sched.c: Likewise.
9690 * hw-doloop.c: Likewise.
9691 * ifcvt.c: Likewise.
9692 * init-regs.c: Likewise.
9693 * internal-fn.c: Likewise.
9694 * ipa-chkp.c: Likewise.
9695 * ipa-comdats.c: Likewise.
9696 * ipa-cp.c: Likewise.
9697 * ipa-devirt.c: Likewise.
9698 * ipa-icf-gimple.c: Likewise.
9699 * ipa-icf.c: Likewise.
9700 * ipa-inline-analysis.c: Likewise.
9701 * ipa-inline-transform.c: Likewise.
9702 * ipa-inline.c: Likewise.
9703 * ipa-polymorphic-call.c: Likewise.
9704 * ipa-profile.c: Likewise.
9705 * ipa-prop.c: Likewise.
9706 * ipa-pure-const.c: Likewise.
9707 * ipa-ref.c: Likewise.
9708 * ipa-reference.c: Likewise.
9709 * ipa-split.c: Likewise.
9710 * ipa-utils.c: Likewise.
9711 * ipa-visibility.c: Likewise.
9713 * ira-build.c: Likewise.
9714 * ira-color.c: Likewise.
9715 * ira-conflicts.c: Likewise.
9716 * ira-costs.c: Likewise.
9717 * ira-emit.c: Likewise.
9718 * ira-lives.c: Likewise.
9721 * langhooks.c: Likewise.
9723 * loop-doloop.c: Likewise.
9724 * loop-init.c: Likewise.
9725 * loop-invariant.c: Likewise.
9726 * loop-iv.c: Likewise.
9727 * loop-unroll.c: Likewise.
9728 * lower-subreg.c: Likewise.
9729 * lra-assigns.c: Likewise.
9730 * lra-coalesce.c: Likewise.
9731 * lra-constraints.c: Likewise.
9732 * lra-eliminations.c: Likewise.
9733 * lra-lives.c: Likewise.
9734 * lra-remat.c: Likewise.
9735 * lra-spills.c: Likewise.
9737 * lto-cgraph.c: Likewise.
9738 * lto-compress.c: Likewise.
9739 * lto-opts.c: Likewise.
9740 * lto-section-in.c: Likewise.
9741 * lto-section-out.c: Likewise.
9742 * lto-streamer-in.c: Likewise.
9743 * lto-streamer-out.c: Likewise.
9744 * lto-streamer.c: Likewise.
9746 * mode-switching.c: Likewise.
9747 * modulo-sched.c: Likewise.
9748 * omega.c: Likewise.
9749 * omp-low.c: Likewise.
9750 * optabs.c: Likewise.
9751 * opts-global.c: Likewise.
9752 * passes.c: Likewise.
9753 * plugin.c: Likewise.
9754 * postreload-gcse.c: Likewise.
9755 * postreload.c: Likewise.
9756 * predict.c: Likewise.
9757 * print-rtl.c: Likewise.
9758 * print-tree.c: Likewise.
9759 * profile.c: Likewise.
9761 * realmpfr.c: Likewise.
9762 * recog.c: Likewise.
9764 * reg-stack.c: Likewise.
9765 * regcprop.c: Likewise.
9766 * reginfo.c: Likewise.
9767 * regrename.c: Likewise.
9768 * regstat.c: Likewise.
9769 * reload.c: Likewise.
9770 * reload1.c: Likewise.
9771 * reorg.c: Likewise.
9772 * resource.c: Likewise.
9773 * rtl-chkp.c: Likewise.
9774 * rtlanal.c: Likewise.
9775 * rtlhooks.c: Likewise.
9776 * sanopt.c: Likewise.
9777 * sched-deps.c: Likewise.
9778 * sched-ebb.c: Likewise.
9779 * sched-rgn.c: Likewise.
9780 * sched-vis.c: Likewise.
9781 * sdbout.c: Likewise.
9782 * sel-sched-dump.c: Likewise.
9783 * sel-sched-ir.c: Likewise.
9784 * sel-sched.c: Likewise.
9786 * shrink-wrap.c: Likewise.
9787 * simplify-rtx.c: Likewise.
9788 * stack-ptr-mod.c: Likewise.
9790 * stor-layout.c: Likewise.
9791 * store-motion.c: Likewise.
9792 * stringpool.c: Likewise.
9793 * symtab.c: Likewise.
9794 * target-globals.c: Likewise.
9795 * targhooks.c: Likewise.
9796 * toplev.c: Likewise.
9797 * tracer.c: Likewise.
9798 * trans-mem.c: Likewise.
9799 * tree-affine.c: Likewise.
9800 * tree-browser.c: Likewise.
9801 * tree-call-cdce.c: Likewise.
9802 * tree-cfg.c: Likewise.
9803 * tree-cfgcleanup.c: Likewise.
9804 * tree-chkp-opt.c: Likewise.
9805 * tree-chkp.c: Likewise.
9806 * tree-chrec.c: Likewise.
9807 * tree-complex.c: Likewise.
9808 * tree-data-ref.c: Likewise.
9809 * tree-dfa.c: Likewise.
9810 * tree-diagnostic.c: Likewise.
9811 * tree-dump.c: Likewise.
9812 * tree-eh.c: Likewise.
9813 * tree-emutls.c: Likewise.
9814 * tree-if-conv.c: Likewise.
9815 * tree-inline.c: Likewise.
9816 * tree-into-ssa.c: Likewise.
9817 * tree-iterator.c: Likewise.
9818 * tree-loop-distribution.c: Likewise.
9819 * tree-nested.c: Likewise.
9820 * tree-nrv.c: Likewise.
9821 * tree-object-size.c: Likewise.
9822 * tree-outof-ssa.c: Likewise.
9823 * tree-parloops.c: Likewise.
9824 * tree-phinodes.c: Likewise.
9825 * tree-predcom.c: Likewise.
9826 * tree-pretty-print.c: Likewise.
9827 * tree-profile.c: Likewise.
9828 * tree-scalar-evolution.c: Likewise.
9829 * tree-sra.c: Likewise.
9830 * tree-ssa-address.c: Likewise.
9831 * tree-ssa-alias.c: Likewise.
9832 * tree-ssa-ccp.c: Likewise.
9833 * tree-ssa-coalesce.c: Likewise.
9834 * tree-ssa-copy.c: Likewise.
9835 * tree-ssa-copyrename.c: Likewise.
9836 * tree-ssa-dce.c: Likewise.
9837 * tree-ssa-dom.c: Likewise.
9838 * tree-ssa-dse.c: Likewise.
9839 * tree-ssa-forwprop.c: Likewise.
9840 * tree-ssa-ifcombine.c: Likewise.
9841 * tree-ssa-live.c: Likewise.
9842 * tree-ssa-loop-ch.c: Likewise.
9843 * tree-ssa-loop-im.c: Likewise.
9844 * tree-ssa-loop-ivcanon.c: Likewise.
9845 * tree-ssa-loop-ivopts.c: Likewise.
9846 * tree-ssa-loop-manip.c: Likewise.
9847 * tree-ssa-loop-niter.c: Likewise.
9848 * tree-ssa-loop-prefetch.c: Likewise.
9849 * tree-ssa-loop-unswitch.c: Likewise.
9850 * tree-ssa-loop.c: Likewise.
9851 * tree-ssa-math-opts.c: Likewise.
9852 * tree-ssa-operands.c: Likewise.
9853 * tree-ssa-phiopt.c: Likewise.
9854 * tree-ssa-phiprop.c: Likewise.
9855 * tree-ssa-pre.c: Likewise.
9856 * tree-ssa-propagate.c: Likewise.
9857 * tree-ssa-reassoc.c: Likewise.
9858 * tree-ssa-sccvn.c: Likewise.
9859 * tree-ssa-scopedtables.c: Likewise.
9860 * tree-ssa-sink.c: Likewise.
9861 * tree-ssa-strlen.c: Likewise.
9862 * tree-ssa-structalias.c: Likewise.
9863 * tree-ssa-tail-merge.c: Likewise.
9864 * tree-ssa-ter.c: Likewise.
9865 * tree-ssa-threadedge.c: Likewise.
9866 * tree-ssa-threadupdate.c: Likewise.
9867 * tree-ssa-uncprop.c: Likewise.
9868 * tree-ssa-uninit.c: Likewise.
9869 * tree-ssa.c: Likewise.
9870 * tree-ssanames.c: Likewise.
9871 * tree-stdarg.c: Likewise.
9872 * tree-streamer-in.c: Likewise.
9873 * tree-streamer-out.c: Likewise.
9874 * tree-streamer.c: Likewise.
9875 * tree-switch-conversion.c: Likewise.
9876 * tree-tailcall.c: Likewise.
9877 * tree-vect-data-refs.c: Likewise.
9878 * tree-vect-generic.c: Likewise.
9879 * tree-vect-loop-manip.c: Likewise.
9880 * tree-vect-loop.c: Likewise.
9881 * tree-vect-patterns.c: Likewise.
9882 * tree-vect-slp.c: Likewise.
9883 * tree-vect-stmts.c: Likewise.
9884 * tree-vectorizer.c: Likewise.
9885 * tree-vrp.c: Likewise.
9888 * ubsan.c: Likewise.
9889 * valtrack.c: Likewise.
9890 * value-prof.c: Likewise.
9891 * var-tracking.c: Likewise.
9892 * varasm.c: Likewise.
9893 * varpool.c: Likewise.
9894 * vmsdbgout.c: Likewise.
9895 * vtable-verify.c: Likewise.
9897 * wide-int.cc: Likewise.
9898 * xcoffout.c: Likewise.
9899 * config/aarch64/aarch64-builtins.c: Likewise.
9900 * config/aarch64/aarch64.c: Likewise.
9901 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9902 * config/alpha/alpha.c: Likewise.
9903 * config/arc/arc.c: Likewise.
9904 * config/arm/aarch-common.c: Likewise.
9905 * config/arm/arm-builtins.c: Likewise.
9906 * config/arm/arm-c.c: Likewise.
9907 * config/arm/arm.c: Likewise.
9908 * config/avr/avr-c.c: Likewise.
9909 * config/avr/avr-log.c: Likewise.
9910 * config/avr/avr.c: Likewise.
9911 * config/bfin/bfin.c: Likewise.
9912 * config/c6x/c6x.c: Likewise.
9913 * config/cr16/cr16.c: Likewise.
9914 * config/cris/cris.c: Likewise.
9915 * config/darwin-c.c: Likewise.
9916 * config/darwin.c: Likewise.
9917 * config/epiphany/epiphany.c: Likewise.
9918 * config/epiphany/mode-switch-use.c: Likewise.
9919 * config/epiphany/resolve-sw-modes.c: Likewise.
9920 * config/fr30/fr30.c: Likewise.
9921 * config/frv/frv.c: Likewise.
9922 * config/ft32/ft32.c: Likewise.
9923 * config/h8300/h8300.c: Likewise.
9924 * config/i386/i386-c.c: Likewise.
9925 * config/i386/i386.c: Likewise.
9926 * config/i386/msformat-c.c: Likewise.
9927 * config/i386/winnt-cxx.c: Likewise.
9928 * config/i386/winnt-stubs.c: Likewise.
9929 * config/i386/winnt.c: Likewise.
9930 * config/ia64/ia64-c.c: Likewise.
9931 * config/ia64/ia64.c: Likewise.
9932 * config/iq2000/iq2000.c: Likewise.
9933 * config/lm32/lm32.c: Likewise.
9934 * config/m32c/m32c-pragma.c: Likewise.
9935 * config/m32c/m32c.c: Likewise.
9936 * config/m32r/m32r.c: Likewise.
9937 * config/m68k/m68k.c: Likewise.
9938 * config/mcore/mcore.c: Likewise.
9939 * config/mep/mep-pragma.c: Likewise.
9940 * config/mep/mep.c: Likewise.
9941 * config/microblaze/microblaze-c.c: Likewise.
9942 * config/microblaze/microblaze.c: Likewise.
9943 * config/mips/mips.c: Likewise.
9944 * config/mmix/mmix.c: Likewise.
9945 * config/mn10300/mn10300.c: Likewise.
9946 * config/moxie/moxie.c: Likewise.
9947 * config/msp430/msp430-c.c: Likewise.
9948 * config/msp430/msp430.c: Likewise.
9949 * config/nds32/nds32-cost.c: Likewise.
9950 * config/nds32/nds32-fp-as-gp.c: Likewise.
9951 * config/nds32/nds32-intrinsic.c: Likewise.
9952 * config/nds32/nds32-isr.c: Likewise.
9953 * config/nds32/nds32-md-auxiliary.c: Likewise.
9954 * config/nds32/nds32-memory-manipulation.c: Likewise.
9955 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9956 * config/nds32/nds32-predicates.c: Likewise.
9957 * config/nds32/nds32.c: Likewise.
9958 * config/nios2/nios2.c: Likewise.
9959 * config/nvptx/nvptx.c: Likewise.
9960 * config/pa/pa.c: Likewise.
9961 * config/pdp11/pdp11.c: Likewise.
9962 * config/rl78/rl78-c.c: Likewise.
9963 * config/rl78/rl78.c: Likewise.
9964 * config/rs6000/rs6000-c.c: Likewise.
9965 * config/rs6000/rs6000.c: Likewise.
9966 * config/rx/rx.c: Likewise.
9967 * config/s390/s390-c.c: Likewise.
9968 * config/s390/s390.c: Likewise.
9969 * config/sh/sh-c.c: Likewise.
9970 * config/sh/sh-mem.cc: Likewise.
9971 * config/sh/sh.c: Likewise.
9972 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9973 * config/sh/sh_treg_combine.cc: Likewise.
9974 * config/sol2-c.c: Likewise.
9975 * config/sol2-cxx.c: Likewise.
9976 * config/sol2-stubs.c: Likewise.
9977 * config/sol2.c: Likewise.
9978 * config/sparc/sparc-c.c: Likewise.
9979 * config/sparc/sparc.c: Likewise.
9980 * config/spu/spu-c.c: Likewise.
9981 * config/spu/spu.c: Likewise.
9982 * config/stormy16/stormy16.c: Likewise.
9983 * config/tilegx/mul-tables.c: Likewise.
9984 * config/tilegx/tilegx-c.c: Likewise.
9985 * config/tilegx/tilegx.c: Likewise.
9986 * config/tilepro/mul-tables.c: Likewise.
9987 * config/tilepro/tilepro-c.c: Likewise.
9988 * config/tilepro/tilepro.c: Likewise.
9989 * config/v850/v850-c.c: Likewise.
9990 * config/v850/v850.c: Likewise.
9991 * config/vax/vax.c: Likewise.
9992 * config/visium/visium.c: Likewise.
9993 * config/vms/vms-c.c: Likewise.
9994 * config/vms/vms.c: Likewise.
9995 * config/vxworks.c: Likewise.
9996 * config/xtensa/xtensa.c: Likewise.
9998 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10000 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10001 Remove operand constraints. Change operand 2 predicate to
10002 nonmemory operand. Limit const_int values to mode bitsize. Only
10003 allow const_int values less than 32 when optimizing for size.
10004 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10005 Remove operand constraints.
10006 (*bt<mode>): Use SImode for const_int values less than 32.
10007 (regmode): Remove mode attribute.
10009 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10011 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10012 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10013 moxie_legitimate_address_p): New functions.
10014 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10016 2015-07-07 Tom de Vries <tom@codesourcery.com>
10018 PR tree-optimization/66642
10019 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10020 header comment. Rename split_edge variable to edge_at_split. Split
10021 exit edge to create new loop exit bb. Insert loop exit phis in new
10024 2015-07-07 Tom de Vries <tom@codesourcery.com>
10026 * tree-cfg.c (get_virtual_phi): New function.
10027 * tree-cfg.h (get_virtual_phi): Declare.
10028 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10029 (rewrite_virtuals_into_loop_closed_ssa): New function.
10030 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10032 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10033 (transform_to_exit_first_loop_alt): Use
10034 rewrite_virtuals_into_loop_closed_ssa.
10036 2015-07-07 Richard Biener <rguenther@suse.de>
10038 * fold-const.c (fold_binary_loc): Move
10039 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10040 * match.pd: ... here.
10041 Add (X * C1) % C2 -> 0 simplification pattern derived from
10044 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10047 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10048 change for target/65249.
10050 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10052 * symtab.c (address_matters_1): Fix typo in comment above.
10053 (can_increase_alignment_p): Likewise.
10055 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10057 * function.c (free_after_compilation): Clear PROP_cfg in
10058 f->curr_properties.
10060 2015-07-07 Richard Biener <rguenther@suse.de>
10062 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10064 (add_control_edge): Remove excessive vertical space in dumping.
10065 (process_ssa_edge_worklist): Simulate at most one statement and
10066 return whether we did. Do not simulate PHIs if they are in a
10067 BB not yet simulated.
10068 (ssa_propagate): Adjust to always drain the BB worklist whenever
10069 a BB is available there, likewise the VARYING edges list before
10070 the interesting edge list.
10072 2015-07-07 Christian Bruel <christian.bruel@st.com>
10075 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10077 2015-07-07 Richard Biener <rguenther@suse.de>
10079 PR middle-end/66739
10080 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10083 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10085 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10086 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10087 Copy operand 0 to a temporary if !ext_register_operand. Remove
10088 ancient extract_bit_field workaround.
10089 (insv<mode>_1): Rename from mov<mode>_insv_1.
10090 (*insvqi): Rename from *movqi_insv_2.
10091 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10092 for renamed insvsi_1.
10093 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10095 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10097 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10098 call to nvptx_reorg_subreg.
10100 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10102 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10103 * graphite-dependencies.c, graphite-interchange.c,
10104 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10105 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10108 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10110 * match.pd: Remove element_mode inside HONOR_*.
10111 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10112 (~X | X -> -1, ~X ^ X -> -1): Merge.
10113 * tree.c (build_each_one_cst): New function.
10114 * tree.h (build_each_one_cst): Likewise.
10116 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10118 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10121 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10123 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10124 * config/mips/mips.opt (mfused-madd): Remove.
10125 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10126 * config/mips/mips.h (TARGET_MIPS8000): New.
10127 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10128 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10129 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10130 (ISA_HAS_NMADD4_NMSUB4): Remove.
10131 (ISA_HAS_NMADD3_NMSUB3): Remove.
10132 (ISA_HAS_FUSED_MADD4): New.
10133 (ISA_HAS_UNFUSED_MADD4): New.
10134 (ISA_HAS_FUSED_MADDF): New.
10135 (ISA_HAS_FUSED_MADD3): New.
10136 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10137 (*fma<mode>4_madd3) New.
10138 (*fma<mode>4_madd4) New.
10139 (*fma<mode>4_maddf) New.
10141 (*fms<mode>4_msub3) New.
10142 (*fms<mode>4_msub4) New.
10144 (*fnma<mode>4_nmadd3) New.
10145 (*fnma<mode>4_nmadd4) New.
10147 (*fnms<mode>4_nmsub3) New.
10148 (*fnms<mode>4_nmsub4) New.
10149 (*madd4<mode>) Modify to be unfused only.
10150 (*msub4<mode>) Modify to be unfused only.
10151 (*nmadd4<mode>) Modify to be unfused only.
10152 (*nmsub4<mode>) Modify to be unfused only.
10153 (*madd3<mode>) Remove.
10154 (*msub3<mode>) Remove.
10155 (*nmadd3<mode>) Remove.
10156 (*nmsub3<mode>) Remove.
10157 (*nmadd3<mode>_fastmath) Remove.
10158 (*nmsub3<mode>_fastmath) Remove.
10159 (*nmadd4<mode>_fastmath) Update condition.
10160 (*nmsub4<mode>_fastmath) Update condition.
10162 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10165 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10166 alignment attribute, exploring one level down for records and arrays.
10168 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10170 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10171 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10172 Copy operand 1 to a temporary if !ext_register_operand. Remove
10173 ancient extract_bit_field workaround.
10174 (*extv<mode>): Rename from *mov<mode>_extv_1.
10175 (*extvqi): Rename from *movqi_extv_1.
10176 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10177 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10178 to a temporary if !ext_register_operand. Remove ancient
10179 extract_bit_field workaround.
10180 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10181 (*extzvqi): Rename from *movqi_extzv_2.
10182 (*testqi_ext_3): Remove modes from const_int_operand predicated
10183 operands. Add "n" constraint.
10184 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10185 operand. Add "J" constraint.
10186 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10187 const_0_to_63 predicated operand.
10188 (regmode): New insn attribute.
10189 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10190 to nonmemory_operand. Use regmode insn attribute.
10191 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10192 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10193 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10194 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10195 operands. Use "N" constraint instead of "n".
10197 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10199 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10201 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10204 * config/i386/i386.c (iamcu_cost): New.
10205 (m_IAMCU): Likewise.
10206 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10207 (processor_target_table): Add an entry for "iamcu".
10208 (processor_alias_table): Likewise.
10209 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10210 (ix86_adjust_cost): Likewise.
10211 (ia32_multipass_dfa_lookahead): Likewise.
10212 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10213 * config/i386/x86-tune.def: Updated for m_IAMCU.
10215 2015-07-06 Richard Biener <rguenther@suse.de>
10217 PR tree-optimization/66772
10218 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10219 values are available in the PHI node BB when there are
10220 still unexecutable edges.
10222 2015-07-06 Richard Biener <rguenther@suse.de>
10224 PR tree-optimization/66767
10225 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10226 Make sure to build the alignment test on a SSA name without
10227 final alignment info valid only if the alignment test
10230 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10233 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10234 loop start when inserting LSETUP.
10236 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10239 * config/i386/i386.c (ix86_option_override_internal): Allow
10240 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10242 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10244 * read-md.c (decimal_string): Rename to ...
10245 (md_decimal_string): ... this.
10246 (handle_enum): Reflect this.
10248 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10251 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10253 2015-07-06 Richard Biener <rguenther@suse.de>
10255 PR middle-end/66759
10256 * match.pd: Add missing constraint of y to REAL_CST in
10257 REAL_CST - x CMP y to y - CST CMP x simplification.
10259 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10261 PR tree-optimization/66757
10262 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10264 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10265 Sandra Loosemore <sandra@codesourcery.com>
10267 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10268 Delete extern declaration.
10269 (gprel_constant_p): Add extern declaration.
10270 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10271 instead of nios2_symbol_ref_in_small_data_p.
10272 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10273 (nios2_symbol_ref_in_small_data_p): Make static.
10274 (gprel_constant_p): Make non-static.
10276 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10278 * doc/fragments.texi (Target Fragment): Convert debian.org
10280 * doc/install.texi (Configuration): Ditto.
10282 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10284 PR tree-optimization/66718
10285 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10286 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10288 PR tree-optimization/66718
10289 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10290 vectorizable_load, vectorizable_condition): Move vectype,
10291 nunits, ncopies computation after checking what kind of statement
10294 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10296 * target-insns.def (extv, extzv, insv): New targetm instruction
10298 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10300 * recog.c (simplify_while_replacing): Likewise.
10302 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10304 * target-insns.def (doloop_begin, doloop_end): New targetm
10305 instruction patterns.
10306 * loop-init.c: Include target.h.
10307 (pass_loop2::gate): Use the new targetm patterns instead of
10308 HAVE_*/gen_* interface.
10309 (pass_rtl_doloop::gate): Likewise.
10310 (pass_rtl_doloop::execute): Remove preprocessor condition.
10311 * hw-doloop.c: Build unconditionally.
10312 * loop-doloop.c: Likewise.
10313 (doloop_optimize): Use the new targetm patterns instead of
10314 HAVE_*/gen_* interface.
10315 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10316 * modulo-sched.c (doloop_register_get): Likewise.
10318 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10320 * target-insns.def (clear_cache): New targetm instruction pattern.
10321 * builtins.c (expand_builtin___clear_cache): Use it instead of
10322 HAVE_*/gen_* interface.
10324 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10326 * target-insns.def (allocate_stack, check_stack, probe_stack)
10327 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10328 New targetm instruction patterns.
10329 * explow.c (allocate_dynamic_stack_space): Use them instead of
10330 HAVE_*/gen_* interface.
10331 (emit_stack_probe): Likewise.
10332 (probe_stack_range): Likewise.
10333 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10335 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10337 * target-insns.def (stack_protect_set, stack_protect_test): New
10338 targetm instruction patterns.
10339 * cfgexpand.c (stack_protect_prologue): Use them instead of
10340 HAVE_*/gen_* interface.
10341 * function.c (stack_protect_epilogue): Likewise.
10343 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10345 * expr.h (gen_move_insn_uncast): Delete.
10346 * expr.c (gen_move_insn_uncast): Delete.
10348 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10350 * target-insns.def (restore_stack_block, restore_stack_function)
10351 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10352 (save_stack_nonlocal): New targetm instruction patterns.
10353 * builtins.c (expand_builtin_apply): Use them instead of
10354 HAVE_*/gen_* interface.
10355 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10357 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10359 * target-insns.def (trap): New targetm instruction pattern.
10360 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10362 * explow.c (allocate_dynamic_stack_space): Likewise.
10363 * ifcvt.c (find_if_header): Likewise.
10365 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10367 * target-insns.def (prefetch): New targetm instruction pattern.
10368 * tree-ssa-loop-prefetch.c: Include targeth.
10369 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10370 of HAVE_*/gen_* interface.
10371 * builtins.c (expand_builtin_prefetch): Likewise.
10372 * toplev.c (process_options): Likewise.
10374 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10376 * target-insns.def (untyped_call, untyped_return): New targetm
10377 instruction patterns.
10378 * builtins.c (expand_builtin_apply): Use them instead of
10379 HAVE_*/gen_* interface.
10380 (result_vector): Define unconditionally.
10382 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10384 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10385 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10386 (nonlocal_goto_receiver): New targetm instruction patterns.
10387 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10388 of HAVE_*/gen_* interface.
10389 (expand_builtin_setjmp_receiver): Likewise.
10390 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10391 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10393 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10395 * target.def: Add code_for_* hooks.
10396 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10397 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10398 * target-insns.def (casesi, tablejump): New targetm instruction
10400 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10401 (do_tablejump): Likewise.
10402 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10403 (expand_sjlj_dispatch_table): Likewise.
10404 * targhooks.c (default_case_values_threshold): Likewise.
10406 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10408 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10409 Use rtx_insn * instead of rtx.
10410 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10411 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10412 (nios2_call_tls_get_addr): Likewise.
10413 (nios2_emit_expensive_div): Likewise.
10414 (nios2_emit_move_sequence): Change return type to bool.
10415 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10416 Change return type to bool.
10418 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10421 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10423 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10426 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10427 of register_operand. Remove constraint.
10429 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10431 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10432 the first argument.
10434 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10436 * attribs.c (decl_attributes): Guard inform with the return value
10437 of the preceding warning.
10439 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10441 * doc/invoke.texi (moverride): Move to correct section.
10443 2015-07-03 Richard Biener <rguenther@suse.de>
10445 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10447 (dt_operand::gen_gimple_expr): After valueizing operands
10448 re-canonicalize operand order for commutative tree codes.
10450 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10453 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10455 (__crc32w): Likewise.
10456 (__crc32d): Likewise.
10457 (__rdpmc): Likewise.
10458 (__rdtscp): Likewise.
10459 (_rdpmc): Likewise.
10460 (_rdtscp): Likewise.
10461 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10464 2015-07-03 Richard Biener <rguenther@suse.de>
10466 * fold-const.c (fold_mathfn_compare): Remove.
10467 (fold_inf_compare): Likewise.
10468 (fold_comparison): Move floating point comparison simplifications...
10469 * match.pd: ... to patterns here. Introduce simple_comparisons
10470 operator list and use it for patterns formerly in fold_comparison.
10472 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10474 PR tree-optimization/66119
10475 * toplev.c (process_options): Don't set up default values for
10476 the sra_max_scalarization_size_{speed,size} parameters.
10477 * tree-sra (analyze_all_variable_accesses): If no values
10478 have been set for the sra_max_scalarization_size_{speed,size}
10479 parameters, call get_move_ratio to get target defaults.
10481 2015-07-03 Richard Biener <rguenther@suse.de>
10483 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10484 * match.pd: ... here.
10486 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10489 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10490 is not actually the default on FreeBSD.
10492 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10494 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10496 (CMPGE_8HI): Likewise.
10497 (CMPGE_4SI): Likewise.
10498 (CMPGE_2DI): Likewise.
10499 (CMPGE_U16QI): Likewise.
10500 (CMPGE_U8HI): Likewise.
10501 (CMPGE_U4SI): Likewise.
10502 (CMPGE_U2DI): Likewise.
10503 (CMPLE_16QI): Likewise.
10504 (CMPLE_8HI): Likewise.
10505 (CMPLE_4SI): Likewise.
10506 (CMPLE_2DI): Likewise.
10507 (CMPLE_U16QI): Likewise.
10508 (CMPLE_U8HI): Likewise.
10509 (CMPLE_U4SI): Likewise.
10510 (CMPLE_U2DI): Likewise.
10511 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10512 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10513 ALTIVEC_BUILTIN_VEC_CMPLE.
10514 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10515 floating-point vector modes.
10516 (vector_nlt<mode>): New define_expand.
10517 (vector_nltu<mode>): Likewise.
10518 (vector_ngt<mode>): Likewise.
10519 (vector_ngtu<mode>): Likewise.
10521 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10523 PR rtl-optimization/66706
10524 * combine.c (make_compound_operation): If an AND of SUBREG of
10525 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10527 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10529 * tree-pass.h (make_pass_ch_vect): New.
10530 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10532 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10533 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10534 make_pass_ch_vect): New.
10535 (pass_ch): Extend ch_base.
10537 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10538 (ch_base::copy_headers): ...here.
10540 2015-07-02 Richard Biener <rguenther@suse.de>
10542 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10543 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10544 (fold_binary_loc): Implement (T)ptr & CST in terms of
10545 get_pointer_alignment_1.
10546 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10547 Make sure to build the alignment test on a SSA name without
10548 final alignment info valid only after the prologue.
10550 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10552 * config/cris/cris.md ("epilogue"): Remove condition.
10553 ("prologue"): Ditto.
10555 2015-07-02 Richard Biener <rguenther@suse.de>
10557 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10558 parameter to record a condition that is false.
10559 (record_conditions): When recording an extra NE_EXPR that is
10560 true also record a EQ_EXPR that is false.
10562 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10564 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10565 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10566 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10567 (set_iv, find_interesting_uses_address, add_candidate_1): New
10568 argument to alloc_iv.
10569 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10570 duplicate struct iv.
10571 (free_loop_data): Don't free struct iv explicitly.
10572 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10574 2015-07-01 DJ Delorie <dj@redhat.com>
10576 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10578 (SUPPORTS_DISCRIMINATOR): Define.
10580 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10583 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10584 there are no CALLs in the same pattern.
10586 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10588 PR rtl-optimization/61047
10589 * rtlanal.c (get_initial_register_offset): New function.
10590 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10592 2015-07-01 Richard Biener <rguenther@suse.de>
10594 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10595 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10596 ~X CMP C -> X CMP' ~C to ...
10597 * match.pd: ... patterns here.
10599 2015-07-01 Nick Clifton <nickc@redhat.com>
10601 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10602 a 16-bit value into a 20-bit memory slot.
10604 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10606 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10607 "aarch64_tiny", "aarch64_small", "aarch64_large",
10608 "aarch64_little_endian", "aarch64_big_endian".
10610 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10612 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10613 Document "aarch64_small_fpic".
10615 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10617 * configure.ac: Add check for aarch64 assembler -fpic relocation
10619 * configure: Regenerate.
10620 * config.in: Regenerate.
10621 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10622 to -fPIC if not support of -fpic relocation modifier in assembler.
10624 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10627 * rtl.c (classify_insn): Handle returns in PARALLELs.
10629 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10631 PR middle-end/66633
10632 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10633 to true if the function is nested and if not optimizing.
10634 (convert_local_omp_clauses): Initialize need_frame to true if the
10635 function contains nested functions and if not optimizing.
10637 2015-07-01 Richard Biener <rguenther@suse.de>
10639 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10640 (X & Y) ^ Y -> ~X & Y transforms to ...
10641 * match.pd: ... here.
10643 2015-07-01 Richard Biener <rguenther@suse.de>
10645 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10646 of converts to avoid uninteresting noise from the conversion
10647 simplifying patterns.
10649 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10651 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10652 gcc_assert evaluating its argument for side-effect.
10654 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10657 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10660 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10662 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10663 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10664 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10665 to the inner DFS walk.
10667 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10669 * target-insns.def (jump): New targetm instruction pattern.
10670 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10671 instead of gen_jump.
10672 (fix_up_crossing_landing_pad): Likewise.
10673 (add_labels_and_missing_jumps): Likewise.
10674 (fix_crossing_conditional_branches): Likewise.
10675 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10676 (force_nonfallthru_and_redirect): Likewise.
10677 * cse.c (cse_insn): Likewise.
10678 * expmed.c (expand_divmod): Likewise.
10679 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
10680 * haifa-sched.c (init_before_recovery): Likewise.
10681 (sched_create_recovery_edges): Likewise.
10682 * ifcvt.c (find_cond_trap): Likewise.
10683 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
10684 (expand_float, expand_fix): Likewise.
10685 * stmt.c (emit_jump): Likewise.
10687 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10689 * defaults.h (HAVE_load_multiple, gen_load_multiple)
10690 (HAVE_store_multiple, gen_store_multiple): Delete.
10691 * target-insns.def (load_multiple, store_multiple): New targetm
10692 instruction patterns.
10693 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
10694 of HAVE_*/gen_* interface.
10696 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10698 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
10699 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
10700 (gen_mem_signal_fence): Delete.
10701 * target-insns.def (mem_signal_fence, mem_thread_fence)
10702 (memory_barrier): New targetm instruction patterns.
10703 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10705 (expand_mem_signal_fence): Likewise.
10707 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10709 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
10710 * target-insns.def (epilogue, prologue, sibcall_prologue): New
10711 targetm instruction patterns.
10712 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
10714 * calls.c (expand_call): Likewise.
10715 * cfgrtl.c (cfg_layout_finalize): Likewise.
10716 * df-scan.c (df_get_entry_block_def_set): Likewise.
10717 (df_get_exit_block_use_set): Likewise.
10718 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
10719 * final.c (final_start_function): Likewise.
10720 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10721 (reposition_prologue_and_epilogue_notes): Likewise.
10722 * reorg.c (find_end_label): Likewise.
10723 * toplev.c (process_options): Likewise.
10725 2015-06-30 David Malcolm <dmalcolm@redhat.com>
10727 * typed-splay-tree.h: New file.
10729 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
10732 * lra-int.h (lra_substitute_pseudo): Add a parameter.
10733 (lra_substitute_pseudo_within_insn): Ditto.
10734 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
10736 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
10737 to lra_substitute_pseudo.
10738 * lra-lives.c (process_bb_lives): Add an argument to
10739 lra_substitute_pseudo_within_insn call.
10740 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10741 argument to lra_substitute_pseudo and
10742 lra_substitute_pseudo_within_insn calls.
10743 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10745 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10747 * configure: Regenerated.
10749 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10751 * config.gcc: Support i[34567]86-*-elfiamcu target.
10752 * config/i386/iamcu.h: New.
10753 * config/i386/i386.opt: Add -miamcu.
10754 * doc/invoke.texi: Document -miamcu.
10755 * common/config/i386/i386-common.c (ix86_handle_option): Turn
10756 off x87/MMX/SSE/AVX codegen for -miamcu.
10757 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10758 __iamcu/__iamcu__ for -miamcu.
10759 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
10760 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
10761 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
10762 * config/i386/i386.c (ix86_option_override_internal): Ignore and
10763 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
10764 MCU by default. Default long double to 64-bit for Intel MCU.
10765 Turn on -freg-struct-return for Intel MCU. Issue an error when
10766 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
10768 (function_arg_advance_32): Pass value whose size is no larger
10769 than 8 bytes in registers for Intel MCU.
10770 (function_arg_32): Likewise.
10771 (ix86_return_in_memory): Return value whose size is no larger
10772 than 8 bytes in registers for Intel MCU.
10773 (iamcu_alignment): New function.
10774 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10776 (ix86_local_alignment): Don't increase alignment for Intel MCU.
10777 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10780 2015-06-30 Marek Polacek <polacek@redhat.com>
10782 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
10783 both operands of the resulting expression.
10785 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
10786 the final expression with the operand's type and then convert
10787 it to the type of the expression.
10789 2015-06-30 Richard Biener <rguenther@suse.de>
10791 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10792 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10793 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10794 * match.pd: ... to patterns here.
10796 2015-06-30 Richard Biener <rguenther@suse.de>
10798 PR tree-optimization/66704
10799 * tree-vect-data-refs.c (vect_setup_realignment): Use
10800 make_ssa_name for non-SSA name source.
10802 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10804 PR middle-end/66702
10805 * omp-low.c (simd_clone_adjust): Handle addressable linear
10806 or uniform parameters or non-gimple type uniform parameters.
10808 2015-06-30 Richard Biener <rguenther@suse.de>
10810 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10811 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10812 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10813 * match.pd: ... here.
10814 Add a few cases of A - B -> A + (-B) when B "easily" negates.
10815 Move (x & y) | x -> x and friends before
10816 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10818 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10820 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10821 -mfix-ut699 is not specified.
10822 (leon3_load): Rename into...
10823 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
10826 2015-06-30 Marek Polacek <polacek@redhat.com>
10828 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10829 * match.pd: ... here.
10831 2015-06-30 Richard Biener <rguenther@suse.de>
10833 * target-insns.def (canonicalize_funcptr_for_compare): Add.
10834 * fold-const.c (build_range_check): Replace uses of
10835 HAVE_canonicalize_funcptr_for_compare.
10836 (fold_widened_comparison): Likewise.
10837 (fold_sign_changed_comparison): Likewise.
10838 * dojump.c: Include "target.h".
10839 (do_compare_and_jump): Replace uses of
10840 HAVE_canonicalize_funcptr_for_compare and
10841 gen_canonicalize_funcptr_for_compare.
10842 * expr.c (do_store_flag): Likewise.
10844 2015-06-30 Tom de Vries <tom@codesourcery.com>
10846 PR tree-optimization/66652
10847 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10848 max_loop_iterations to determine if nit + 1 overflows.
10850 2015-06-30 Richard Biener <rguenther@suse.de>
10852 * tree-vrp.c (register_edge_assert_for_2): Also register
10853 asserts for dominating conversion results.
10855 2015-06-30 Bin Cheng <bin.cheng@arm.com>
10857 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10858 field in struct iv.
10860 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
10863 * configure.ac: Fix filds and fildq test for 64-bit.
10864 * configure: Regenerated.
10866 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
10868 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10869 (nvptx_reorg): Here. Keep the non-subreg pieces.
10871 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
10873 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10874 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10876 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
10878 * config/i386/i386.md (*jcc_1): Use %! in asm template.
10879 Set attribute "length_nobnd" instead of "length".
10882 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10884 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
10886 * config/nios2/nios2.c (nios2_delegitimize_address): Make
10887 assert less restrictive.
10889 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10892 * cgraphunit.c (cgraph_node::finalize_function): Do not call
10893 do_warn_unused_parameter.
10894 * function.c (do_warn_unused_parameter): Move from here.
10895 * function.h (do_warn_unused_parameter): Do not declare.
10897 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10900 * gcc.target/arm/armv-sync-comp-swap.c: New.
10901 * gcc.target/arm/armv-sync-op-acquire.c: New.
10902 * gcc.target/arm/armv-sync-op-full.c: New.
10903 * gcc.target/arm/armv-sync-op-release.c: New.
10905 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10908 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10909 initial acquire barrier with final barrier.
10911 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10914 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10915 initial acquire barrier with final barrier.
10917 2015-06-29 Richard Henderson <rth@redhat.com>
10919 * config/i386/constraints.md (Bf): New constraint.
10920 * config/i386/i386-c.c (ix86_target_macros): Define
10921 __GCC_ASM_FLAG_OUTPUTS__.
10922 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10924 * doc/extend.texi (FlagOutputOperands): Document them.
10926 2015-06-29 Jiong Wang <jiong.wang@arm.com>
10928 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10929 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10931 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10932 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10933 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10934 (aarch64_symbol_context): Ditto.
10935 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10936 and use new pattern name.
10937 (aarch64_expand_mov_immediate): Ditto.
10938 (aarch64_print_operand): Ditto.
10939 (aarch64_classify_tls_symbol): Ditto.
10941 2015-06-29 Marek Polacek <polacek@redhat.com>
10942 Marc Glisse <marc.glisse@inria.fr>
10944 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10945 * match.pd: ... pattern here.
10947 2015-06-29 Tom de Vries <tom@codesourcery.com>
10949 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10950 function structure.
10952 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10954 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10955 feature description, split out the native option, add a link to
10956 the feature documentation, rearrange and slightly rewrite text.
10957 (Aarch64 options, -mcpu): Likewise.
10958 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
10959 +rdma implies Adv. SIMD.
10961 2015-06-29 Marek Polacek <polacek@redhat.com>
10964 * function.c (stack_protect_epilogue): Remove a cast to int.
10965 * doc/invoke.texi: Update -Wswitch-bool description.
10967 2015-06-29 Richard Biener <rguenther@suse.de>
10969 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10970 * fold-const.c (fold_binary_loc): Move &A - &B simplification
10971 via ptr_difference_const ...
10972 * match.pd: ... here.
10973 When matching (X ^ Y) == Y also match with swapped operands.
10975 2015-06-29 Richard Biener <rguenther@suse.de>
10977 * lto-streamer.h (LTO_major_version): Bump to 5.
10979 2015-06-29 Richard Biener <rguenther@suse.de>
10981 PR tree-optimization/66677
10982 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10983 STMT_VINFO_VEC_STMT clobbering less strict.
10985 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10987 PR middle-end/64130
10988 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10989 division, compute max and min when value ranges for dividend and
10990 divisor are available.
10992 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
10993 Sandra Loosemore <sandra@codesourcery.com>
10995 * regrename.h (regrename_do_replace): Change to return bool.
10996 * regrename.c (rename_chains): Check return value of
10997 regname_do_replace.
10998 (regrename_do_replace): Re-validate the modified insns and
10999 return bool status.
11000 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11001 Update to match rename_chains changes.
11002 * config/c6x/c6x.c (try_rename_operands): Assert that
11003 regrename_do_replace returns true.
11005 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11007 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11008 operand 2 here. Use copy_addr_to_reg to copy non-index
11009 register operand 2 to a temporary.
11010 (<mode>_stx): Ditto for operand 1.
11011 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11012 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11013 (ix86_store_bounds): Ditto.
11015 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11017 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11019 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11021 * gimple.c (gimple_call_set_fndecl): Remove.
11022 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11023 build1_loc directly instead of build_fold_addr_expr_loc.
11025 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11027 * hash-map.h (hash_map::traverse): Use the definition of the
11028 Key typedef rather than the typedef itself.
11030 2015-06-26 Martin Jambor <mjambor@suse.cz>
11033 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11034 NULL instead of calling dump_enabled_p.
11036 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11038 * config/aarch64/aarch64.opt: (override): New.
11039 * doc/invoke.texi (override): Document.
11040 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11041 (aarch64_fusible_pairs): Likewise.
11042 (aarch64_tuning_flags): Likewise.
11043 (aarch64_tuning_override_function): Likewise.
11044 (aarch64_tuning_override_functions): Likewise.
11045 (aarch64_parse_one_option_token): Likewise.
11046 (aarch64_parse_boolean_options): Likewise.
11047 (aarch64_parse_fuse_string): Likewise.
11048 (aarch64_parse_tune_string): Likewise.
11049 (aarch64_parse_one_override_token): Likewise.
11050 (aarch64_parse_override_string): Likewise.
11051 (aarch64_override_options): Parse the -override string if it
11054 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11056 * config/aarch64/aarch64-protos.h (tune_params): Remove
11057 const from members.
11058 (aarch64_tune_params): Remove const, change to no longer be
11060 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11061 change to no longer be a pointer, initialize to generic_tunings.
11062 (aarch64_min_divisions_for_recip_mul): Change dereference of
11063 aarch64_tune_params to member access.
11064 (aarch64_reassociation_width): Likewise.
11065 (aarch64_rtx_mult_cost): Likewise.
11066 (aarch64_address_cost): Likewise.
11067 (aarch64_branch_cost): Likewise.
11068 (aarch64_rtx_costs): Likewise.
11069 (aarch64_register_move_cost): Likewise.
11070 (aarch64_memory_move_cost): Likewise.
11071 (aarch64_sched_issue_rate): Likewise.
11072 (aarch64_builtin_vectorization_cost): Likewise.
11073 (aarch64_override_options): Take a copy of the selected tuning
11074 struct in to aarch64_tune_params, rather than just setting
11075 a pointer, change dereferences of aarch64_tune_params to member
11077 (aarch64_override_options_after_change): Change dereferences of
11078 aarch64_tune_params to member access.
11079 (aarch64_macro_fusion_p): Likewise.
11080 (aarch_macro_fusion_pair_p): Likewise.
11081 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11083 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11085 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11086 (aarch64_tune_flags): Likewise.
11087 (AARCH64_TUNE_FMA_STEERING): Likewise.
11088 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11089 to AARCH64_FL_USE_FMA_STEERING_PASS.
11090 (cortex-a57.cortex-a53): Likewise.
11091 (cortex-a72): Use cortexa72_tunings.
11092 (cortex-a72.cortex-a53): Likewise.
11093 (exynos-m1): Likewise.
11094 * config/aarch64/aarch64-protos.h (tune_params): Add
11095 a field: extra_tuning_flags.
11096 * config/aarch64/aarch64-tuning-flags.def: New.
11097 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11098 (aarch64_extra_tuning_flags): Likewise.
11099 (aarch64_tune_params): Declare here.
11100 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11101 (cortexa53_tunings): Likewise.
11102 (cortexa57_tunings): Likewise.
11103 (thunderx_tunings): Likewise.
11104 (xgene1_tunings): Likewise.
11105 (cortexa72_tunings): New.
11106 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11107 (gate): Check against aarch64_tune_params.
11108 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11111 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11113 * config/aarch64/aarch64-fusion-pairs.def: New.
11114 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11115 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11116 aarch64_fusion_pairs.
11117 (AARCH64_FUSE_MOV_MOVK): Likewise.
11118 (AARCH64_FUSE_ADRP_ADD): Likewise.
11119 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11120 (AARCH64_FUSE_ADRP_LDR): Likewise.
11121 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11123 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11125 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11126 SYMBOL_SMALL_GOT_28K.
11127 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11128 relocation modifiers.
11129 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11130 (ldr_got_small_28k_<mode>): New.
11131 (ldr_got_small_28k_sidi): New.
11132 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11133 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11134 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11135 SYMBOL_SMALL_GOT_28K.
11136 (aarch64_rtx_costs): Add costs for new instruction sequences.
11137 (initialize_aarch64_code_model): Initialize new model.
11138 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11139 (aarch64_asm_preferred_eh_data_format): Support new model.
11140 (aarch64_load_symref_appropriately): Generate new instruction
11141 sequences for -fpic.
11142 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11143 (aarch64_use_pseudo_pic_reg): New function.
11145 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11147 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11148 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11149 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11150 (aarch64_expand_mov_immediate): Ditto.
11151 (aarch64_print_operand): Ditto.
11152 (aarch64_classify_symbol): Ditto.
11154 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11156 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11158 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11161 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11162 assertion failed. Remove assertion itself.
11164 2015-06-26 Richard Biener <rguenther@suse.de>
11166 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11167 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11169 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11170 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11171 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11172 * match.pd: ... patterns here.
11174 2015-06-26 Marek Polacek <polacek@redhat.com>
11176 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11177 (x | y) & (~x ^ y) -> x & y): New patterns.
11179 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11181 * rtl.h (emit): Add an optional boolean parameter to control
11182 whether barriers are emitted.
11183 * emit-rtl.c (emit): Likewise.
11184 * gensupport.c (get_emit_function): Return null rather than "emit".
11185 * genemit.c (gen_emit_seq): Handle the null return value.
11186 Don't emit barriers after the final instruction in the sequence.
11187 * gentarget-def.c (main): Don't emit barriers after the instruction.
11189 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11191 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11192 TARGET_UNIFIED_ASM.
11194 2015-06-26 Richard Biener <rguenther@suse.de>
11196 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11198 2015-06-26 Richard Biener <rguenther@suse.de>
11200 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11201 irrespective on whether the inner operation has a single use
11202 of both off are constant.
11204 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11205 Segher Boessenkool <segher@kernel.crashing.org>
11208 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11209 before doing PUT_MODE or PUT_CODE on operands to avoid
11210 in-place RTX modification.
11212 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11214 * gentarget-def.c (def_target_insn): Cast return of strtol to
11217 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11219 * gimple.h (gimple_call_set_fn): Move inline function.
11220 * gimple.c (gimple_call_set_fn): Relocate here.
11222 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11226 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11227 the replacement insn will work.
11229 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11231 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11234 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11236 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11237 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11238 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11239 (symtab_node::address_can_be_compared_p): Move function.
11240 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11242 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11243 * auto-profile.c: Likewise.
11244 * bb-reorder.c: Likewise.
11245 * builtins.c: Likewise.
11246 * calls.c: Likewise.
11247 * cfgexpand.c: Likewise.
11248 * cgraphbuild.c: Likewise.
11249 * cgraphclones.c: Likewise.
11250 * cgraphunit.c: Likewise.
11251 * combine.c: Likewise.
11252 * coverage.c: Likewise.
11253 * data-streamer-in.c: Likewise.
11254 * data-streamer-out.c: Likewise.
11255 * data-streamer.c: Likewise.
11256 * dbxout.c: Likewise.
11257 * dwarf2out.c: Likewise.
11258 * except.c: Likewise.
11259 * expr.c: Likewise.
11260 * final.c: Likewise.
11261 * fold-const.c: Likewise.
11262 * ggc-page.c: Likewise.
11263 * gimple-fold.c: Likewise.
11264 * gimple-iterator.c: Likewise.
11265 * gimple-pretty-print.c: Likewise.
11266 * gimple-streamer-in.c: Likewise.
11267 * gimple-streamer-out.c: Likewise.
11268 * gimple.c: Likewise.
11269 * gimplify.c: Likewise.
11270 * ipa-chkp.c: Likewise.
11271 * ipa-comdats.c: Likewise.
11272 * ipa-cp.c: Likewise.
11273 * ipa-devirt.c: Likewise.
11274 * ipa-icf-gimple.c: Likewise.
11275 * ipa-icf.c: Likewise.
11276 * ipa-inline-analysis.c: Likewise.
11277 * ipa-inline-transform.c: Likewise.
11278 * ipa-inline.c: Likewise.
11279 * ipa-polymorphic-call.c: Likewise.
11280 * ipa-profile.c: Likewise.
11281 * ipa-prop.c: Likewise.
11282 * ipa-pure-const.c: Likewise.
11283 * ipa-ref.c: Likewise.
11284 * ipa-reference.c: Likewise.
11285 * ipa-split.c: Likewise.
11286 * ipa-utils.c: Likewise.
11287 * ipa-visibility.c: Likewise.
11289 * langhooks.c: Likewise.
11290 * lto-cgraph.c: Likewise.
11291 * lto-compress.c: Likewise.
11292 * lto-opts.c: Likewise.
11293 * lto-section-in.c: Likewise.
11294 * lto-section-out.c: Likewise.
11295 * lto-streamer-in.c: Likewise.
11296 * lto-streamer-out.c: Likewise.
11297 * lto-streamer.c: Likewise.
11298 * omp-low.c: Likewise.
11299 * opts-global.c: Likewise.
11300 * passes.c: Likewise.
11301 * predict.c: Likewise.
11302 * print-tree.c: Likewise.
11303 * profile.c: Likewise.
11305 * sanopt.c: Likewise.
11306 * stor-layout.c: Likewise.
11307 * symtab.c: Likewise.
11308 * toplev.c: Likewise.
11309 * trans-mem.c: Likewise.
11310 * tree-cfg.c: Likewise.
11311 * tree-chkp.c: Likewise.
11312 * tree-eh.c: Likewise.
11313 * tree-emutls.c: Likewise.
11314 * tree-inline.c: Likewise.
11315 * tree-nested.c: Likewise.
11316 * tree-parloops.c: Likewise.
11317 * tree-pretty-print.c: Likewise.
11318 * tree-profile.c: Likewise.
11319 * tree-sra.c: Likewise.
11320 * tree-ssa-alias.c: Likewise.
11321 * tree-ssa-live.c: Likewise.
11322 * tree-ssa-loop-ivcanon.c: Likewise.
11323 * tree-ssa-loop-ivopts.c: Likewise.
11324 * tree-ssa-pre.c: Likewise.
11325 * tree-ssa-sccvn.c: Likewise.
11326 * tree-ssa-strlen.c: Likewise.
11327 * tree-ssa-structalias.c: Likewise.
11328 * tree-streamer-in.c: Likewise.
11329 * tree-streamer-out.c: Likewise.
11330 * tree-streamer.c: Likewise.
11331 * tree-switch-conversion.c: Likewise.
11332 * tree-tailcall.c: Likewise.
11333 * tree-vect-data-refs.c: Likewise.
11334 * tree-vect-stmts.c: Likewise.
11335 * tree-vectorizer.c: Likewise.
11336 * tree.c: Likewise.
11337 * tsan.c: Likewise.
11338 * ubsan.c: Likewise.
11339 * value-prof.c: Likewise.
11340 * varasm.c: Likewise.
11341 * varpool.c: Likewise.
11342 * config/arm/arm.c: Likewise.
11343 * config/bfin/bfin.c: Likewise.
11344 * config/c6x/c6x.c: Likewise.
11345 * config/cris/cris.c: Likewise.
11346 * config/darwin-c.c: Likewise.
11347 * config/darwin.c: Likewise.
11348 * config/i386/i386.c: Likewise.
11349 * config/i386/winnt.c: Likewise.
11350 * config/microblaze/microblaze.c: Likewise.
11351 * config/mips/mips.c: Likewise.
11352 * config/rs6000/rs6000.c: Likewise.
11353 * config/rx/rx.c: Likewise.
11354 * config/s390/s390.c: Likewise.
11355 * config/tilegx/mul-tables.c: Likewise.
11357 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11359 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11360 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11361 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11362 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11363 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11364 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11365 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11366 config/microblaze/microblaze.c, config/mips/mips.c,
11367 config/mmix/mmix.c, config/mn10300/mn10300.c,
11368 config/moxie/moxie.c, config/msp430/msp430.c,
11369 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11370 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11371 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11372 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11373 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11374 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11375 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11376 target-def.h include.
11377 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11379 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11381 * Makefile.in (TARGET_DEF): Add target-insns.def.
11382 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11383 (build/gentarget-def.o): New rule.
11384 (genprogrtl): Add target-def.
11385 * target-insns.def, gentarget-def.c: New files.
11386 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11387 based on the contents of target-insns.def.
11388 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11389 (HAVE_return, gen_return): Delete.
11390 * target-def.h: Include insn-target-def.h.
11391 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11392 instead of direct calls. Rely on them to do the appropriate assertions.
11393 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11394 (convert_jumps_to_returns): Use targetm interface instead of
11396 (thread_prologue_and_epilogue_insns): Likewise.
11397 * reorg.c (find_end_label, dbr_schedule): Likewise.
11398 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11399 * shrink-wrap.c (convert_to_simple_return): Likewise.
11400 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11402 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11404 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11405 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11406 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11407 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11408 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11409 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11410 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11411 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11412 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11413 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11414 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11415 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11416 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11417 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11418 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11419 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11424 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11425 (unbounded_int_hashmap_traits::key_type): Likewise.
11426 * hash-map.h (hash_map): Get the key type from the traits.
11427 * hash-traits.h (default_hash_traits): By default, inherit from the
11428 template parameter.
11429 * alias.c (alias_set_traits): Delete.
11430 (alias_set_entry_d::children): Use alias_set_hash as the first
11431 template parameter.
11432 (record_alias_subset): Update accordingly.
11433 * except.c (tree_hash_traits): Delete.
11434 (type_to_runtime_map): Use tree_hash as the first template parameter.
11435 (init_eh): Update accordingly.
11436 * genmatch.c (capture_id_map_hasher): Delete.
11437 (cid_map_t): Use nofree_string_hash as first template parameter.
11438 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11439 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11440 Use symbol_compare_hash as the first template parameter in
11441 subdivide_hash_map.
11442 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11443 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11444 template parameter.
11445 * passes.c (pass_registry_hasher): Delete.
11446 (name_to_pass_map): Use nofree_string_hash as the first template
11448 (register_pass_name): Update accordingly.
11449 * sanopt.c (sanopt_tree_map_traits): Delete.
11450 (sanopt_tree_triplet_map_traits): Delete.
11451 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11452 template parameter.
11453 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11454 the first template parameter.
11455 * sese.c (rename_map_hasher): Delete.
11456 (rename_map_type): Use tree_ssa_name_hash as the first template
11458 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11459 (function_summary::m_map): Use map_hash as the first template
11461 (function_summary::release): Update accordingly.
11462 * tree-if-conv.c (phi_args_hash_traits): Delete.
11463 (predicate_scalar_phi): Use tree_operand_hash as the first template
11464 parameter to phi_arg_map.
11465 * tree-inline.h (dependence_hasher): Delete.
11466 (copy_body_data::dependence_map): Use dependence_hash as the first
11467 template parameter.
11468 * tree-inline.c (remap_dependence_clique): Update accordingly.
11469 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11470 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11472 (addr_stridxptr): Update accordingly.
11473 * value-prof.c (profile_id_traits): Delete.
11474 (cgraph_node_map): Use profile_id_hash as the first template
11476 (init_node_map): Update accordingly.
11477 * config/alpha/alpha.c (string_traits): Delete.
11478 (machine_function::links): Use nofree_string_hash as the first
11479 template parameter.
11480 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11481 * config/m32c/m32c.c (pragma_traits): Delete.
11482 (pragma_htab): Use nofree_string_hash as the first template parameter.
11483 (m32c_note_pragma_address): Update accordingly.
11484 * config/mep/mep.c (pragma_traits): Delete.
11485 (pragma_htab): Use nofree_string_hash as the first template parameter.
11486 (mep_note_pragma_flag): Update accordingly.
11487 * config/mips/mips.c (mips16_flip_traits): Delete.
11488 (mflip_mips16_htab): Use nofree_string_hash as the first template
11490 (mflip_mips16_use_mips16_p): Update accordingly.
11491 (local_alias_traits): Delete.
11492 (mips16_local_aliases): Use nofree_string_hash as the first template
11494 (mips16_local_alias): Update accordingly.
11496 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11498 * hash-map-traits.h (default_hashmap_traits): Delete.
11500 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11502 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11503 (unbounded_int_hashmap_traits): Likewise.
11504 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11506 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11508 * ipa-icf.h (symbol_compare_hash): New class.
11509 (symbol_compare_hashmap_traits): Use it.
11510 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11511 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11512 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11513 default_hashmap_traits.
11514 * sanopt.c (sanopt_tree_triplet_hash): New class.
11515 (sanopt_tree_triplet_map_traits): Use it.
11517 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11519 * gengtype-parse.c (require_template_declaration): Allow '+' in
11520 template parameters. Consolidate cases.
11521 * hash-traits.h (int_hash): New class.
11522 * alias.c (alias_set_hash): New structure.
11523 (alias_set_traits): Use it.
11524 * symbol-summary.h (function_summary::map_hash): New class.
11525 (function_summary::summary_hashmap_traits): Use it.
11526 * tree-inline.h (dependence_hash): New class.
11527 (dependence_hasher): Use it.
11528 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11529 * value-prof.c (profile_id_hash): New class.
11530 (profile_id_traits): Use it.
11532 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11534 * config/mips/mips.c (mips16_flip_traits): Use it.
11535 (local_alias_traits, mips16_local_aliases): Convert from a map of
11536 rtxes to a map of symbol names.
11537 (mips16_local_alias): Update accordingly.
11539 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11541 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11542 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11543 * passes.c (pass_registry_hasher): Likewise.
11544 * config/alpha/alpha.c (string_traits): Likewise.
11545 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11546 * config/m32c/m32c.c (pragma_traits): Likewise.
11547 * config/mep/mep.c (pragma_traits): Likewise.
11549 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11551 * tree-hash-traits.h (tree_hash): New class.
11552 * except.c: Include tree-hash-traits.h.
11553 (tree_hash_traits): Use tree_hash.
11555 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11557 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11558 * sese.c: Include tree-hash-traits.h.
11559 (rename_map_hasher): Use tree_ssa_name_hasher.
11561 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11563 * tree-hash-traits.h (tree_decl_hash): New class.
11564 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11565 (stridxlist_hash_traits): Use tree_decl_hash.
11567 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11569 * tree-hash-traits.h: New file.
11570 (tree_operand_hash): New class.
11571 * sanopt.c: Include tree-hash-traits.h.
11572 (sanopt_tree_map_traits): Use tree_operand_hash.
11573 * tree-if-conv.c: Include tree-hash-traits.h.
11574 (phi_args_hash_traits): Use tree_operand_hash.
11575 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11576 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11578 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11580 * hash-map-traits.h: Include hash-traits.h.
11581 (simple_hashmap_traits): New class.
11582 * mem-stats.h (hash_map): Change the default traits to
11583 simple_hashmap_traits<default_hash_traits<Key> >.
11585 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11587 * hash-table.h: Update comments.
11589 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11591 * hash-traits.h (default_hash_traits): New structure.
11592 * hash-set.h (default_hashset_traits): Delete.
11593 (hash_set): Use default_hash_traits<Key> instead of
11594 default_hashset_traits. Delete hash_entry type and use Key directly.
11595 * ipa-devirt.c (pair_traits): Delete.
11596 (default_hash_traits <type_pair>): Override.
11597 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11598 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11600 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11602 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11604 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11606 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11607 (has_is_empty, is_empty_helper): Delete.
11608 (has_mark_deleted, mark_deleted_helper): Delete.
11609 (has_mark_empty, mark_empty_helper): Delete.
11610 (hash_table::is_deleted): Call the Descriptor unconditionally.
11611 (hash_table::is_empty): Likewise.
11612 (hash_table::mark_deleted): Likewise.
11613 (hash_table::mark_empty): Likewise.
11615 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11617 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11618 redundant typedefs and members.
11619 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11620 redundant typedefs.
11621 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11622 * ipa-devirt.c (odr_name_hasher): Likewise.
11623 (polymorphic_call_target_hasher): Likewise.
11624 * ira-costs.c (cost_classes_hasher): Likewise.
11625 * statistics.c (stats_counter_hasher): Likewise.
11626 * trans-mem.c (log_entry_hasher): Likewise.
11627 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11628 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11629 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11630 * var-tracking.c (variable_hasher): Likewise.
11631 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11632 Remove redundant typedefs and members.
11634 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11636 * hash-traits.h (ggc_cache_hasher): Rename to...
11637 (ggc_cache_remove): ...this and remove typedefs.
11638 (ggc_cache_ptr_hash): New class.
11639 * hash-table.h: Update commentary.
11640 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11641 rather than ggc_cache_hasher.
11642 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11643 (const_double_hasher, const_fixed_hasher): Likewise.
11644 * function.c (insn_cache_hasher): Likewise.
11645 * trans-mem.c (tm_wrapper_hasher): Likewise.
11646 * tree.h (tree_decl_map_cache_hasher): Likewise.
11647 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11648 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11649 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11650 * varasm.c (tm_clone_hasher): Likewise.
11651 * config/i386/i386.c (dllimport_hasher): Likewise.
11652 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11653 (tree_hasher): Likewise.
11655 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11657 * hash-traits.h (ggc_hasher): Rename to...
11658 (ggc_remover): ...this and remove typedefs.
11659 (ggc_cache_hasher): Update accordingly. Add typedefs.
11660 (ggc_ptr_hash): New class.
11661 * hash-table.h: Update comment.
11662 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11664 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11665 (tree_descriptor_hasher): Likewise.
11666 * cgraph.c (function_version_hasher): Likewise.
11667 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11668 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11669 (dw_loc_list_hasher, addr_hasher): Likewise.
11670 * function.h (used_type_hasher): Likewise.
11671 * function.c (temp_address_hasher): Likewise.
11672 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11673 * libfuncs.h (libfunc_hasher): Likewise.
11674 * lto-streamer.h (decl_state_hasher): Likewise.
11675 * optabs.c (libfunc_decl_hasher): Likewise.
11676 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
11677 * varasm.c (section_hasher, object_block_hasher): Likewise.
11678 (const_rtx_desc_hasher): Likewise.
11679 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
11680 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
11682 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11684 * hash-traits.h (free_ptr_hash): New class.
11685 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
11686 rather than typed_free_remove. Remove redudant typedefs.
11687 (external_ref_hasher): Likewise.
11688 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
11689 (ehspec_hasher): Likewise.
11690 * ggc-common.c (saving_hasher): Likewise.
11691 * gimplify.c (gimplify_hasher): Likewise.
11692 * haifa-sched.c (delay_i2_hasher): Likewise.
11693 * loop-invariant.c (invariant_expr_hasher): Likewise.
11694 * loop-iv.c (biv_entry_hasher): Likewise.
11695 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
11696 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
11697 * tree-cfg.c (locus_discrim_hasher): Likewise.
11698 * tree-eh.c (finally_tree_hasher): Likewise.
11699 * tree-into-ssa.c (var_info_hasher): Likewise.
11700 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
11701 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
11702 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
11703 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
11704 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
11705 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
11706 (shared_bitmap_hasher): Likewise.
11707 * tree-ssa-threadupdate.c (redirection_data): Likewise.
11708 * tree-vectorizer.h (peel_info_hasher): Likewise.
11709 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
11710 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
11712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11714 * hash-table.h: Update comments.
11715 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
11716 (nofree_ptr_hash): New class.
11717 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
11718 than typed_noop_remove. Remove redudant typedefs.
11719 * attribs.c (attribute_hasher): Likewise.
11720 * cfg.c (bb_copy_hasher): Likewise.
11721 * cselib.c (cselib_hasher): Likewise.
11722 * dse.c (invariant_group_base_hasher): Likewise.
11723 * dwarf2cfi.c (trace_info_hasher): Likewise.
11724 * dwarf2out.c (macinfo_entry_hasher): Likewise.
11725 (comdat_type_hasher, loc_list_hasher): Likewise.
11726 * gcse.c (pre_ldst_expr_hasher): Likewise.
11727 * genmatch.c (id_base): Likewise.
11728 * genrecog.c (test_pattern_hasher): Likewise.
11729 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11730 * haifa-sched.c (delay_i1_hasher): Likewise.
11731 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11732 * ipa-icf.h (congruence_class_group_hash): Likewise.
11733 * ipa-profile.c (histogram_hash): Likewise.
11734 * ira-color.c (allocno_hard_regs_hasher): Likewise.
11735 * lto-streamer.h (string_slot_hasher): Likewise.
11736 * lto-streamer.c (tree_entry_hasher): Likewise.
11737 * plugin.c (event_hasher): Likewise.
11738 * postreload-gcse.c (expr_hasher): Likewise.
11739 * store-motion.c (st_expr_hasher): Likewise.
11740 * tree-sra.c (uid_decl_hasher): Likewise.
11741 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11742 (ssa_name_var_hash): Likewise.
11743 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11744 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11745 * tree-ssa-pre.c (pre_expr_d): Likewise.
11746 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11747 * vtable-verify.h (registration_hasher): Likewise.
11748 * vtable-verify.c (vtbl_map_hasher): Likewise.
11749 * config/arm/arm.c (libcall_hasher): Likewise.
11750 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
11751 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
11752 * config/sol2.c (comdat_entry_hasher): Likewise.
11753 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
11754 (print_fold_checksum, fold_checksum_tree): Likewise.
11755 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
11756 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
11757 (fold_build_call_array_loc): Likewise.
11758 * tree-ssa-ccp.c (gimple_htab): Likewise.
11759 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
11760 rather than pointer_type.
11762 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11764 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
11765 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
11767 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11769 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11770 (ggc_hasher::ggc_mx): Likewise.
11771 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
11772 that duplicate ggc_hasher ones.
11774 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11776 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11777 (gt_cleare_cache): Check here for deleted and empty entries.
11778 Replace handle_cache_entry with a call to keep_cache_entry.
11779 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11780 (ggc_cache_hasher::keep_cache_entry): New function.
11781 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11782 (tm_wrapper_hasher::keep_cache_entry): New function.
11783 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11784 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11785 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11786 (type_cache_hasher::keep_cache_entry): New function.
11787 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11788 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11789 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11790 (tree_type_map_cache_hasher::keep_cache_entry): New function.
11791 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11792 (tm_clone_hasher::keep_cache_entry): New function.
11793 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11794 (dllimport_hasher::keep_cache_entry): New function.
11796 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11798 * hash-table.h: Include hash-traits.h.
11799 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11800 (ggc_cache_hasher): Move to...
11801 * hash-traits.h: ...this new file.
11803 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11805 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11806 struct cl_optimization.
11807 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11808 * tree.c (make_node_stat): Allocate cl_optimization struct.
11809 (copy_node_stat): Allocate and copy cl_optimization struct.
11811 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11813 * function.h (struct incoming_args): Move struct.
11814 (pass_by_reference, reference_callee_copied): Remove prototypes.
11815 * emit-rtl.h (struct incoming_args): Relocate struct here.
11816 * calls.h (pass_by_reference, reference_callee_copied): Relocate
11818 * function.c (pass_by_reference, reference_callee_copied): Move.
11819 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11820 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11821 * ipa-chkp.c: Include calls.h.
11823 2015-06-25 Andrew Macleod <amacleod@redhat.com>
11825 * alias.h (alias_set_type): Move typedef.
11826 * coretypes.h (alias_set_type): Relocate typedef here.
11827 * rtl.h: Don't include alias.h.
11829 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11831 * cgraph.h (cgraph_rtl_info): Move to rtl.h
11832 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11834 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11835 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11837 * calls.c: Include hard-reg-set.h before rtl.h.
11840 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11841 Vladimir Makarov <vmakarov@redhat.com>
11843 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11846 2015-06-25 Richard Biener <rguenther@suse.de>
11848 * fold-const.c (fold_binary_loc): Move simplification of
11849 (X <<>> C1) & C2 ...
11850 * match.pd: ... here.
11852 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
11854 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11858 * match.pd: Add patterns for vec_conds between 1 and 0.
11860 2015-06-25 Richard Biener <rguenther@suse.de>
11862 * tree-vect-stmts.c (vectorizable_conversion): Do not set
11863 STMT_VINFO_VEC_STMT for SLP.
11864 (vectorizable_store): Likewise.
11865 (vectorizable_load): Likewise.
11866 (vect_transform_stmt): Catch SLP vectorization clobbering
11867 STMT_VINFO_VEC_STMT.
11869 2015-06-25 Richard Biener <rguenther@suse.de>
11871 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11873 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11874 cleanup resulting dead code and parameters.
11875 (vect_transform_slp_perm_load): Adjust.
11877 2015-06-25 Nick Clifton <nickc@redhat.com>
11879 * config/bfin/bfin.c (bfin_expand_prologue): Set
11880 current_function_static_stack_size if flag_stack_usage_info is set.
11881 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11882 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11883 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11884 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11886 2015-06-25 Tom de Vries <tom@codesourcery.com>
11888 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11889 comment that the generated IV is unsigned.
11891 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11894 * config/arm/arm.c (arm_dbx_register_number): Return
11895 DWARF_FRAME_REGISTERS by default.
11897 2015-06-25 Tom de Vries <tom@codesourcery.com>
11899 * dominance.c (calculate_dominance_info): Fix verify_dominators call
11900 argument. Call verify_dominator when reusing dominator info.
11902 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
11905 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11906 an additional element of the unspec vector. Modify indices
11908 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11909 * config/sh/sh.c (prepare_move_operands): Pass incremented
11910 const_int to gen_GOTaddr2picreg.
11911 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11913 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11915 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11916 Condition on TARGET_FLOAT.
11918 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11920 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11923 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11925 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11927 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11928 aarch64_err_no_fpadvsimd.
11930 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11931 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11932 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11933 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11934 Turn error into assert, test TARGET_FLOAT.
11935 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11938 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
11941 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11943 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11945 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11947 2015-06-24 Renlin Li <renlin.li@arm.com>
11949 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11950 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11952 2015-06-24 Richard Biener <rguenther@suse.de>
11954 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11956 (lower_opt_convert): Support lowering of conditional view_convert.
11957 (parser::parse_operation): Likewise.
11958 (parser::parse_for): Likewise.
11960 2015-06-24 Renlin Li <renlin.li@arm.com>
11962 * varasm.c (emit_local): Use unsigned int for align variable.
11964 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11967 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11968 for negative numbers.
11970 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11972 PR rtl-optimization/66306
11973 * reload.c (find_reloads): Swap the match_dup info for
11974 commutative operands.
11976 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11978 * config/s390/vx-builtins.md
11979 ("vec_scatter_element<mode>_<non_vec_int>")
11980 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11981 attribute with bhfgq.
11983 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11985 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11987 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11989 * config/s390/s390-builtin-types.def: Add flag to indicate the
11990 options under which the function type is needed.
11991 * config/s390/s390-builtins.def: Add flag to indicate the options
11992 under which the builtin is enabled.
11993 * config/s390/s390-builtins.h: Add flags parameter to macro
11995 (bflags_for_builtin): New function.
11996 (flags_for_builtin): Renamed to ...
11997 (opflags_for_builtin): ... this.
11998 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11999 flags_for_builtin to bflags_for_builtin and
12000 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12001 * config/s390/s390.c: Add initialization of bflags_builtin and
12002 opflags_builtin arrays.
12003 Remove code for flags_builtin.
12004 (s390_init_builtins): Only create builtin function types if one of
12005 their flags is active.
12006 Only create builtins if all of their flags are active.
12007 (s390_expand_builtin): Rename flags_for_builtin to
12008 opflags_for_builtin.
12010 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12012 * config/s390/vecintrin.h: Remove internal builtins.
12014 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12016 * config/s390/s390.c (s390_secondary_reload): Fix check for
12017 GENERAL_REGS register class.
12019 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12021 * config/s390/s390.c (s390_support_vector_misalignment): Call
12022 default implementation for !TARGET_VX.
12024 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12026 * config/s390/s390.c (s390_legitimate_constant_p): Add
12029 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12031 * config/s390/s390.c (s390_vector_abi): New variable definition.
12032 (s390_check_type_for_vector_abi): New function.
12033 (TARGET_ASM_FILE_END): New macro definition.
12034 (s390_asm_file_end): New function.
12035 (s390_function_arg): Call s390_check_type_for_vector_abi.
12036 (s390_gimplify_va_arg): Likewise.
12037 * configure: Regenerate.
12038 * configure.ac: Check for .gnu_attribute Binutils feature.
12040 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12043 * config/bfin/bfin.c (hwloop_optimize): Initialize
12044 JUMP_LABEL for newly created jump.
12046 2015-06-23 Tristan Gingold <gingold@adacore.com>
12048 * collect-utils.c (collect_wait): Unlink the response file here
12050 (do_wait): ...here.
12051 (utils_cleanup): ...and here.
12053 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12055 * df-scan.c: Don't include target-def.h.
12056 * targhooks.c: Likewise.
12057 * config/arm/arm-c.c: Likewise.
12058 * config/i386/i386-c.c: Likewise.
12059 * config/nds32/nds32-cost.c: Likewise.
12060 * config/nds32/nds32-fp-as-gp.c: Likewise.
12061 * config/nds32/nds32-intrinsic.c: Likewise.
12062 * config/nds32/nds32-isr.c: Likewise.
12063 * config/nds32/nds32-md-auxiliary.c: Likewise.
12064 * config/nds32/nds32-memory-manipulation.c: Likewise.
12065 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12066 * config/nds32/nds32-predicates.c: Likewise.
12068 2015-06-23 Richard Biener <rguenther@suse.de>
12070 PR tree-optimization/66636
12071 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12072 def type for further defs for strided stores.
12074 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12076 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12077 conditional selects.
12078 (setcc_int<mode>, setcc_float<mode>): Reformat.
12080 2015-06-23 Marek Polacek <polacek@redhat.com>
12082 * match.pd ((x + y) - (x | y) -> x & y,
12083 (x + y) - (x & y) -> x | y): New patterns.
12085 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12088 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12089 '-dynamic-linker' within %{!shared: ...}.
12091 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12094 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12095 (addsub_vs_operator): Ditto.
12096 (addsub_vs_parallel): Ditto.
12097 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12098 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12099 Put minus RTX before plus and adjust vec_merge selector.
12100 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12101 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12102 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12103 (addsub vec_merge splitters): New combiner splitters.
12104 (addsub vec_select/vec_concat splitters): Ditto.
12106 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12108 PR tree-optimization/66449
12109 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12110 POINTER_PLUS_EXPR for pointers.
12112 2015-06-23 Alan Modra <amodra@gmail.com>
12114 * rtlanal.c (commutative_operand_precedence): Correct comments.
12115 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12116 declaration. Return an int. Distinguish REG,REG return from
12118 (struct simplify_plus_minus_op_data): Make local to function.
12119 (simplify_plus_minus): Don't set canonicalized if merely sorting
12120 registers. Avoid packing ops if nothing changes. White space fixes.
12122 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12124 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12125 -fdump-ada-spec is passed but not if -fsyntax-only is.
12127 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12130 * lra-lives.c (process_bb_lives): Check insn copying the same
12131 reload pseudo and don't create a copy for it.
12133 2015-06-22 Tom de Vries <tom@codesourcery.com>
12135 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12138 2015-06-22 Tom de Vries <tom@codesourcery.com>
12140 * builtins.def (DEF_GOMP_BUILTIN): Test
12141 'flag_tree_parallelize_loops > 1' instead of
12142 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12144 2015-06-22 Tom de Vries <tom@codesourcery.com>
12146 * dominance.c (calculate_dominance_info): Verify dominators if
12149 2015-06-22 Marek Polacek <polacek@redhat.com>
12151 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12152 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12153 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12154 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12156 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12159 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12160 cost of embedded comparison.
12162 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12165 * config/rs6000/predicates.md (altivec_register_operand): Permit
12166 virtual stack registers.
12167 (vsx_register_operand): Likewise.
12168 (vfloat_operand): Likewise.
12169 (vint_operand): Likewise.
12170 (vlogical_operand): Likewise.
12172 2015-06-22 Richard Biener <rguenther@suse.de>
12174 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12175 and single_scalar_iteration_cost members.
12176 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12177 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12178 (vect_get_single_scalar_iteration_cost): Remove.
12179 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12180 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12181 * tree-vect-loop.c (destroy_loop_vec_info): Free
12183 (vect_get_single_scalar_iteration_cost): Compute result into
12184 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12185 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12186 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12187 (vect_estimate_min_profitable_iters): Use them.
12189 2015-06-22 Christian Bruel <christian.bruel@st.com>
12192 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12193 (TARGET_INSERT_ATTRIBUTES): Define.
12194 (thumb_flipper): New var.
12195 * config/arm/arm.opt (-mflip-thumb): New switch.
12197 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12198 Martin Liska <mliska@suse.cz>
12201 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12202 construction of arg_types.
12203 (sem_function::sem_function): Likewise.
12204 (sem_function::~sem_function): Remove destruction of arg_types.
12205 (sem_function::compatible_parm_types_p): New function.
12206 (sem_function::equals_wpa): Reorg matching of return values
12207 and parameter types.
12208 (sem_function::equals_private): Reorg mathcing of argument types.
12209 (sem_function::parse_tree_args): Remove.
12210 * ipa-icf.h (init_wpa): Do not call it.
12211 (parse_tree_args): Remove.
12212 (compatible_parm_types_p): Declare.
12213 (result_type): Remove.
12214 (arg_types): Remove.
12216 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12219 * ipa-polymorphic-call.c
12220 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12221 initializing alias oracle; fix formating; set base_alias_set if it
12224 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12226 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12227 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12228 (find_inc): Likewise.
12229 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12231 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12232 * df-scan.c (df_swap_refs): Remove.
12233 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12234 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12235 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12236 * fold-const.c (fold_relational_const): Likewise.
12237 * genattrtab.c (simplify_test_exp): Likewise.
12238 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12239 gimple_simplify): Likewise.
12240 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12241 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12242 * ipa-devirt.c (add_type_duplicate): Likewise.
12243 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12244 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12245 * lra.c (lra_create_copy): Likewise.
12246 * lto-streamer-out.c (DFS::DFS): Likewise.
12247 * modulo-sched.c (get_sched_window): Likewise.
12248 * omega.c (omega_pretty_print_problem): Likewise.
12249 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12250 * reload1.c (reloads_unique_chain_p): Likewise.
12251 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12252 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12254 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12256 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12257 predicate_mem_writes): Likewise.
12258 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12259 * tree-predcom.c (combine_chains): Likewise.
12260 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12261 refs_may_alias_p_1): Likewise.
12262 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12263 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12264 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12265 number_of_iterations_cond): Likewise.
12266 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12267 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12268 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12269 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12270 * tree-vrp.c (extract_range_from_binary_expr_1,
12271 extract_range_from_unary_expr_1): Likewise.
12273 2015-06-20 Marek Polacek <polacek@redhat.com>
12275 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12277 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12280 * config/sh/sh.c (prepare_move_operands): Replace subreg
12281 index term with R0 for base and index addressing.
12283 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12285 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12287 (movsf_aarch64): Change condition from register_operand to
12288 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12289 load1. Change type for alternative 7 to store1.
12290 (movdf_aarch64): Likewise.
12292 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12294 * config/vax/vax.md: Adjust sign/zero extend patterns to
12295 handle SUBREGs in operands[1].
12297 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12299 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12300 of manually swapping.
12301 (expand_vec_perm_interleave2): Likewise.
12303 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12305 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12306 reuse bounds created for abnormal ssa names.
12308 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12310 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12311 (allocate_stack_<mode>): ... this, and add :P on both
12312 match_operand and unspec.
12313 (allocate_stack): New expander.
12315 2015-06-19 Christian Bruel <christian.bruel@st.com>
12319 * config/arm/arm.c (arm_set_current_function): Handle
12320 explicit default options.
12322 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12324 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12325 (zero-extended cmove with mem peephole2): New pattern.
12326 (cmove with mem peephole2): Merge patterns.
12328 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12330 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12332 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12334 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12335 * config/mips/mips.md (*madd4<mode>): Ditto.
12336 (*nmadd3<mode>) Ditto.
12337 (*nmadd4<mode>_fastmath): Ditto.
12338 (*nmadd3<mode>_fastmath): Ditto.
12339 (*nmsub4<mode>): Ditto.
12340 (*nmsub3<mode>): Ditto.
12341 (*nmsub4<mode>_fastmath): Ditto.
12342 (*nmsub3<mode>_fastmath): Ditto.
12344 2015-06-18 Michael Matz <matz@suse.de>
12346 PR middle-end/66253
12347 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12348 grouped strided stores.
12349 (vectorizable_load): Don't use the DR from first_stmt in
12350 the non-SLP grouped strided case.
12352 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12355 * function.c (assign_bounds): Add arguments assign_regs,
12356 assign_special, assign_bt.
12357 (assign_parms): For vararg functions handle bounds in BT
12358 and special slots after incoming vararg bounds.
12360 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12362 PR middle-end/66568
12363 * cfgexpand.c (expand_return): Handle missing bounds.
12364 (expand_gimple_stmt_1): Likewise.
12365 * tree-chkp.c (chkp_expand_zero_bounds): New.
12366 * tree-chkp.h (chkp_expand_zero_bounds): New.
12368 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12370 PR middle-end/66567
12371 * ipa-chkp.c (chkp_maybe_create_clone): Require
12372 functions to be instrumentable.
12373 * tree-chkp.c (chkp_replace_function_pointer): Use
12374 chkp_instrumentable_p instead of attribute check.
12376 2015-06-18 Richard Biener <rguenther@suse.de>
12378 PR tree-optimization/66510
12379 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12380 number of vector loads for SLP permuted loads.
12381 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12382 check the stride for loop vectorization.
12383 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12384 vectorization factor.
12385 (vect_analyze_group_access): If the group size is not a power
12386 of two require a epilogue loop.
12387 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12388 compute and optimizing and alias test pruning after final
12389 vectorization factor computation.
12390 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12392 (vect_transform_slp_perm_load): Properly compute the original
12393 number of vector load stmts.
12395 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12397 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12398 "unlikely character , in @var" warning.
12400 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12402 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12403 (ix86_function_arg_advance): Ditto.
12404 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12406 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12408 * function.h (struct rtl_data): Remove struct and accessor macros.
12409 * emit-rtl.h (struct rtl_data): Relocate to here.
12410 * Makefile.in (GTFILES): Add emit-rtl.h.
12411 * df-core.c: Include emit-rtl.h.
12412 * genattrtab.c: Likewise.
12413 * genconditions.c: Likewise.
12414 * genpreds.c: Likewise.
12415 * genrecog.c: Likewise.
12416 * regcprop.c: Likewise.
12417 * resource.c: Likewise.
12418 * sched-rgn.c: Likewise.
12419 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12420 * config/i386/winnt.c: Likewise.
12422 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12424 PR middle-end/66429
12425 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12426 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12427 and has_force_vectorize_loops flags from cfun into
12429 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12430 if simduid is non-NULL.
12431 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12432 * passes.def (pass_simduid_cleanup): Add new pass after loop
12434 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12435 indirection from htab argument's type.
12436 (shrink_simd_arrays): New function.
12437 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12438 Don't call adjust_simduid_builtins if there are no loops.
12439 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12440 (pass_simduid_cleanup::execute): New method.
12441 (make_pass_simduid_cleanup): New function.
12443 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12445 * tree-core.h (tree_target_option): Make opts field a pointer to a
12446 cl_target_option instead of an instance of the struct.
12447 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12449 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12450 TARGET_OPTION_NODE.
12451 (copy_node_stat): Allocate and copy struct cl_target_option.
12453 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12455 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12456 Remove conditional exposure of prototypes.
12457 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12458 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12459 definitions in tree.h with functions.
12460 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12462 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12464 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12466 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12467 (*cmp<mode>_signed): ... this.
12468 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12469 (*cmp<mode>_unsigned): ... this. Remove %b.
12471 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12473 * coretypes.h: Include input.h and as-a.h.
12474 * rtl.h: Include input.h and as-a.h for generator files.
12475 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12476 * vec.c: Don't include diagnostic-core.h.
12477 * alias.c: Do not include input.h, line-map.h or is-a.h.
12478 * asan.c: Likewise.
12479 * attribs.c: Likewise.
12480 * auto-inc-dec.c: Likewise.
12481 * auto-profile.c: Likewise.
12482 * bb-reorder.c: Likewise.
12483 * bt-load.c: Likewise.
12484 * builtins.c: Likewise.
12485 * caller-save.c: Likewise.
12486 * calls.c: Likewise.
12487 * ccmp.c: Likewise.
12489 * cfganal.c: Likewise.
12490 * cfgbuild.c: Likewise.
12491 * cfgcleanup.c: Likewise.
12492 * cfgexpand.c: Likewise.
12493 * cfghooks.c: Likewise.
12494 * cfgloop.c: Likewise.
12495 * cfgloop.h: Likewise.
12496 * cfgloopanal.c: Likewise.
12497 * cfgloopmanip.c: Likewise.
12498 * cfgrtl.c: Likewise.
12499 * cgraph.c: Likewise.
12500 * cgraphbuild.c: Likewise.
12501 * cgraphclones.c: Likewise.
12502 * cgraphunit.c: Likewise.
12503 * cilk-common.c: Likewise.
12504 * combine-stack-adj.c: Likewise.
12505 * combine.c: Likewise.
12506 * compare-elim.c: Likewise.
12507 * convert.c: Likewise.
12508 * coverage.c: Likewise.
12509 * cppbuiltin.c: Likewise.
12510 * cprop.c: Likewise.
12512 * cselib.c: Likewise.
12513 * data-streamer-in.c: Likewise.
12514 * data-streamer-out.c: Likewise.
12515 * data-streamer.c: Likewise.
12516 * dbxout.c: Likewise.
12519 * debug.c: Likewise.
12520 * df-core.c: Likewise.
12521 * df-problems.c: Likewise.
12522 * df-scan.c: Likewise.
12525 * diagnostic-core.h: Likewise.
12526 * diagnostic.c: Likewise.
12527 * dojump.c: Likewise.
12528 * dominance.c: Likewise.
12529 * domwalk.c: Likewise.
12530 * double-int.c: Likewise.
12532 * dumpfile.c: Likewise.
12533 * dumpfile.h: Likewise.
12534 * dwarf2asm.c: Likewise.
12535 * dwarf2cfi.c: Likewise.
12536 * dwarf2out.c: Likewise.
12537 * emit-rtl.c: Likewise.
12538 * et-forest.c: Likewise.
12539 * except.c: Likewise.
12540 * explow.c: Likewise.
12541 * expmed.c: Likewise.
12542 * expr.c: Likewise.
12543 * final.c: Likewise.
12544 * fixed-value.c: Likewise.
12545 * fold-const.c: Likewise.
12546 * function.c: Likewise.
12547 * fwprop.c: Likewise.
12548 * gcc-plugin.h: Likewise.
12549 * gcse.c: Likewise.
12550 * generic-match-head.c: Likewise.
12551 * ggc-page.c: Likewise.
12552 * gimple-builder.c: Likewise.
12553 * gimple-expr.c: Likewise.
12554 * gimple-fold.c: Likewise.
12555 * gimple-iterator.c: Likewise.
12556 * gimple-low.c: Likewise.
12557 * gimple-match-head.c: Likewise.
12558 * gimple-pretty-print.c: Likewise.
12559 * gimple-ssa-isolate-paths.c: Likewise.
12560 * gimple-ssa-strength-reduction.c: Likewise.
12561 * gimple-streamer-in.c: Likewise.
12562 * gimple-streamer-out.c: Likewise.
12563 * gimple-streamer.h: Likewise.
12564 * gimple-walk.c: Likewise.
12565 * gimple.c: Likewise.
12566 * gimplify-me.c: Likewise.
12567 * gimplify.c: Likewise.
12568 * godump.c: Likewise.
12569 * graph.c: Likewise.
12570 * graphite-blocking.c: Likewise.
12571 * graphite-dependences.c: Likewise.
12572 * graphite-interchange.c: Likewise.
12573 * graphite-isl-ast-to-gimple.c: Likewise.
12574 * graphite-optimize-isl.c: Likewise.
12575 * graphite-poly.c: Likewise.
12576 * graphite-scop-detection.c: Likewise.
12577 * graphite-sese-to-poly.c: Likewise.
12578 * graphite.c: Likewise.
12579 * haifa-sched.c: Likewise.
12580 * hw-doloop.c: Likewise.
12581 * ifcvt.c: Likewise.
12582 * init-regs.c: Likewise.
12583 * input.c: Likewise.
12584 * internal-fn.c: Likewise.
12585 * ipa-chkp.c: Likewise.
12586 * ipa-comdats.c: Likewise.
12587 * ipa-cp.c: Likewise.
12588 * ipa-devirt.c: Likewise.
12589 * ipa-icf-gimple.c: Likewise.
12590 * ipa-icf.c: Likewise.
12591 * ipa-inline-analysis.c: Likewise.
12592 * ipa-inline-transform.c: Likewise.
12593 * ipa-inline.c: Likewise.
12594 * ipa-polymorphic-call.c: Likewise.
12595 * ipa-profile.c: Likewise.
12596 * ipa-prop.c: Likewise.
12597 * ipa-pure-const.c: Likewise.
12598 * ipa-ref.c: Likewise.
12599 * ipa-reference.c: Likewise.
12600 * ipa-split.c: Likewise.
12601 * ipa-utils.c: Likewise.
12602 * ipa-visibility.c: Likewise.
12604 * ira-build.c: Likewise.
12605 * ira-color.c: Likewise.
12606 * ira-conflicts.c: Likewise.
12607 * ira-costs.c: Likewise.
12608 * ira-emit.c: Likewise.
12609 * ira-lives.c: Likewise.
12611 * jump.c: Likewise.
12612 * langhooks.c: Likewise.
12614 * loop-doloop.c: Likewise.
12615 * loop-init.c: Likewise.
12616 * loop-invariant.c: Likewise.
12617 * loop-iv.c: Likewise.
12618 * loop-unroll.c: Likewise.
12619 * lower-subreg.c: Likewise.
12620 * lra-assigns.c: Likewise.
12621 * lra-coalesce.c: Likewise.
12622 * lra-constraints.c: Likewise.
12623 * lra-eliminations.c: Likewise.
12624 * lra-lives.c: Likewise.
12625 * lra-remat.c: Likewise.
12626 * lra-spills.c: Likewise.
12628 * lto-cgraph.c: Likewise.
12629 * lto-compress.c: Likewise.
12630 * lto-opts.c: Likewise.
12631 * lto-section-in.c: Likewise.
12632 * lto-section-out.c: Likewise.
12633 * lto-streamer-in.c: Likewise.
12634 * lto-streamer-out.c: Likewise.
12635 * lto-streamer.c: Likewise.
12637 * mode-switching.c: Likewise.
12638 * modulo-sched.c: Likewise.
12639 * omega.c: Likewise.
12640 * omp-low.c: Likewise.
12641 * optabs.c: Likewise.
12642 * opts-global.c: Likewise.
12643 * opts.h: Likewise.
12644 * passes.c: Likewise.
12645 * plugin.c: Likewise.
12646 * postreload-gcse.c: Likewise.
12647 * postreload.c: Likewise.
12648 * predict.c: Likewise.
12649 * pretty-print.h: Likewise.
12650 * print-rtl.c: Likewise.
12651 * print-tree.c: Likewise.
12652 * profile.c: Likewise.
12653 * real.c: Likewise.
12654 * realmpfr.c: Likewise.
12655 * recog.c: Likewise.
12657 * reg-stack.c: Likewise.
12658 * regcprop.c: Likewise.
12659 * reginfo.c: Likewise.
12660 * regrename.c: Likewise.
12661 * regstat.c: Likewise.
12662 * reload.c: Likewise.
12663 * reload1.c: Likewise.
12664 * reorg.c: Likewise.
12665 * resource.c: Likewise.
12666 * rtl-chkp.c: Likewise.
12667 * rtl-error.c: Likewise.
12668 * rtlanal.c: Likewise.
12669 * rtlhooks.c: Likewise.
12670 * sanopt.c: Likewise.
12671 * sched-deps.c: Likewise.
12672 * sched-ebb.c: Likewise.
12673 * sched-rgn.c: Likewise.
12674 * sched-vis.c: Likewise.
12675 * sdbout.c: Likewise.
12676 * sel-sched-dump.c: Likewise.
12677 * sel-sched-ir.c: Likewise.
12678 * sel-sched.c: Likewise.
12679 * sese.c: Likewise.
12680 * shrink-wrap.c: Likewise.
12681 * simplify-rtx.c: Likewise.
12682 * stack-ptr-mod.c: Likewise.
12683 * statistics.c: Likewise.
12684 * stmt.c: Likewise.
12685 * stor-layout.c: Likewise.
12686 * store-motion.c: Likewise.
12687 * streamer-hooks.c: Likewise.
12688 * stringpool.c: Likewise.
12689 * symtab.c: Likewise.
12690 * target-globals.c: Likewise.
12691 * targhooks.c: Likewise.
12692 * toplev.c: Likewise.
12693 * tracer.c: Likewise.
12694 * trans-mem.c: Likewise.
12695 * tree-affine.c: Likewise.
12696 * tree-browser.c: Likewise.
12697 * tree-call-cdce.c: Likewise.
12698 * tree-cfg.c: Likewise.
12699 * tree-cfgcleanup.c: Likewise.
12700 * tree-chkp-opt.c: Likewise.
12701 * tree-chkp.c: Likewise.
12702 * tree-chrec.c: Likewise.
12703 * tree-complex.c: Likewise.
12704 * tree-data-ref.c: Likewise.
12705 * tree-dfa.c: Likewise.
12706 * tree-diagnostic.c: Likewise.
12707 * tree-dump.c: Likewise.
12708 * tree-eh.c: Likewise.
12709 * tree-emutls.c: Likewise.
12710 * tree-if-conv.c: Likewise.
12711 * tree-inline.c: Likewise.
12712 * tree-into-ssa.c: Likewise.
12713 * tree-iterator.c: Likewise.
12714 * tree-loop-distribution.c: Likewise.
12715 * tree-nested.c: Likewise.
12716 * tree-nrv.c: Likewise.
12717 * tree-object-size.c: Likewise.
12718 * tree-outof-ssa.c: Likewise.
12719 * tree-parloops.c: Likewise.
12720 * tree-phinodes.c: Likewise.
12721 * tree-predcom.c: Likewise.
12722 * tree-pretty-print.c: Likewise.
12723 * tree-profile.c: Likewise.
12724 * tree-scalar-evolution.c: Likewise.
12725 * tree-sra.c: Likewise.
12726 * tree-ssa-address.c: Likewise.
12727 * tree-ssa-alias.c: Likewise.
12728 * tree-ssa-ccp.c: Likewise.
12729 * tree-ssa-coalesce.c: Likewise.
12730 * tree-ssa-copy.c: Likewise.
12731 * tree-ssa-copyrename.c: Likewise.
12732 * tree-ssa-dce.c: Likewise.
12733 * tree-ssa-dom.c: Likewise.
12734 * tree-ssa-dse.c: Likewise.
12735 * tree-ssa-forwprop.c: Likewise.
12736 * tree-ssa-ifcombine.c: Likewise.
12737 * tree-ssa-live.c: Likewise.
12738 * tree-ssa-loop-ch.c: Likewise.
12739 * tree-ssa-loop-im.c: Likewise.
12740 * tree-ssa-loop-ivcanon.c: Likewise.
12741 * tree-ssa-loop-ivopts.c: Likewise.
12742 * tree-ssa-loop-manip.c: Likewise.
12743 * tree-ssa-loop-niter.c: Likewise.
12744 * tree-ssa-loop-prefetch.c: Likewise.
12745 * tree-ssa-loop-unswitch.c: Likewise.
12746 * tree-ssa-loop.c: Likewise.
12747 * tree-ssa-math-opts.c: Likewise.
12748 * tree-ssa-operands.c: Likewise.
12749 * tree-ssa-phiopt.c: Likewise.
12750 * tree-ssa-phiprop.c: Likewise.
12751 * tree-ssa-pre.c: Likewise.
12752 * tree-ssa-propagate.c: Likewise.
12753 * tree-ssa-reassoc.c: Likewise.
12754 * tree-ssa-sccvn.c: Likewise.
12755 * tree-ssa-scopedtables.c: Likewise.
12756 * tree-ssa-sink.c: Likewise.
12757 * tree-ssa-strlen.c: Likewise.
12758 * tree-ssa-structalias.c: Likewise.
12759 * tree-ssa-tail-merge.c: Likewise.
12760 * tree-ssa-ter.c: Likewise.
12761 * tree-ssa-threadedge.c: Likewise.
12762 * tree-ssa-threadupdate.c: Likewise.
12763 * tree-ssa-uncprop.c: Likewise.
12764 * tree-ssa-uninit.c: Likewise.
12765 * tree-ssa.c: Likewise.
12766 * tree-ssanames.c: Likewise.
12767 * tree-stdarg.c: Likewise.
12768 * tree-streamer-in.c: Likewise.
12769 * tree-streamer-out.c: Likewise.
12770 * tree-streamer.c: Likewise.
12771 * tree-switch-conversion.c: Likewise.
12772 * tree-tailcall.c: Likewise.
12773 * tree-vect-data-refs.c: Likewise.
12774 * tree-vect-generic.c: Likewise.
12775 * tree-vect-loop-manip.c: Likewise.
12776 * tree-vect-loop.c: Likewise.
12777 * tree-vect-patterns.c: Likewise.
12778 * tree-vect-slp.c: Likewise.
12779 * tree-vect-stmts.c: Likewise.
12780 * tree-vectorizer.c: Likewise.
12781 * tree-vrp.c: Likewise.
12782 * tree.c: Likewise.
12783 * tsan.c: Likewise.
12784 * ubsan.c: Likewise.
12785 * valtrack.c: Likewise.
12786 * value-prof.c: Likewise.
12787 * var-tracking.c: Likewise.
12788 * varasm.c: Likewise.
12789 * varpool.c: Likewise.
12790 * vmsdbgout.c: Likewise.
12791 * vtable-verify.c: Likewise.
12793 * wide-int.cc: Likewise.
12794 * xcoffout.c: Likewise.
12795 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12796 * common/common-targhooks.c: Likewise.
12797 * config/aarch64/aarch64-builtins.c: Likewise.
12798 * config/aarch64/aarch64.c: Likewise.
12799 * config/alpha/alpha.c: Likewise.
12800 * config/arc/arc.c: Likewise.
12801 * config/arm/aarch-common.c: Likewise.
12802 * config/arm/arm-builtins.c: Likewise.
12803 * config/arm/arm-c.c: Likewise.
12804 * config/arm/arm.c: Likewise.
12805 * config/avr/avr-c.c: Likewise.
12806 * config/avr/avr-log.c: Likewise.
12807 * config/avr/avr.c: Likewise.
12808 * config/bfin/bfin.c: Likewise.
12809 * config/c6x/c6x.c: Likewise.
12810 * config/cr16/cr16.c: Likewise.
12811 * config/cris/cris.c: Likewise.
12812 * config/darwin-c.c: Likewise.
12813 * config/darwin.c: Likewise.
12814 * config/default-c.c: Likewise.
12815 * config/epiphany/epiphany.c: Likewise.
12816 * config/epiphany/mode-switch-use.c: Likewise.
12817 * config/epiphany/resolve-sw-modes.c: Likewise.
12818 * config/fr30/fr30.c: Likewise.
12819 * config/frv/frv.c: Likewise.
12820 * config/ft32/ft32.c: Likewise.
12821 * config/glibc-c.c: Likewise.
12822 * config/h8300/h8300.c: Likewise.
12823 * config/i386/i386-c.c: Likewise.
12824 * config/i386/i386.c: Likewise.
12825 * config/i386/msformat-c.c: Likewise.
12826 * config/i386/winnt-cxx.c: Likewise.
12827 * config/i386/winnt-stubs.c: Likewise.
12828 * config/i386/winnt.c: Likewise.
12829 * config/ia64/ia64-c.c: Likewise.
12830 * config/ia64/ia64.c: Likewise.
12831 * config/iq2000/iq2000.c: Likewise.
12832 * config/lm32/lm32.c: Likewise.
12833 * config/m32c/m32c-pragma.c: Likewise.
12834 * config/m32c/m32c.c: Likewise.
12835 * config/m32r/m32r.c: Likewise.
12836 * config/m68k/m68k.c: Likewise.
12837 * config/mcore/mcore.c: Likewise.
12838 * config/mep/mep-pragma.c: Likewise.
12839 * config/mep/mep.c: Likewise.
12840 * config/microblaze/microblaze-c.c: Likewise.
12841 * config/microblaze/microblaze.c: Likewise.
12842 * config/mips/mips.c: Likewise.
12843 * config/mmix/mmix.c: Likewise.
12844 * config/mn10300/mn10300.c: Likewise.
12845 * config/moxie/moxie.c: Likewise.
12846 * config/msp430/msp430-c.c: Likewise.
12847 * config/msp430/msp430.c: Likewise.
12848 * config/nds32/nds32-cost.c: Likewise.
12849 * config/nds32/nds32-fp-as-gp.c: Likewise.
12850 * config/nds32/nds32-intrinsic.c: Likewise.
12851 * config/nds32/nds32-isr.c: Likewise.
12852 * config/nds32/nds32-md-auxiliary.c: Likewise.
12853 * config/nds32/nds32-memory-manipulation.c: Likewise.
12854 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12855 * config/nds32/nds32-predicates.c: Likewise.
12856 * config/nds32/nds32.c: Likewise.
12857 * config/nios2/nios2.c: Likewise.
12858 * config/nvptx/nvptx.c: Likewise.
12859 * config/pa/pa.c: Likewise.
12860 * config/pdp11/pdp11.c: Likewise.
12861 * config/rl78/rl78-c.c: Likewise.
12862 * config/rl78/rl78.c: Likewise.
12863 * config/rs6000/rs6000-c.c: Likewise.
12864 * config/rs6000/rs6000.c: Likewise.
12865 * config/rx/rx.c: Likewise.
12866 * config/s390/s390-c.c: Likewise.
12867 * config/s390/s390.c: Likewise.
12868 * config/sh/sh-c.c: Likewise.
12869 * config/sh/sh-mem.cc: Likewise.
12870 * config/sh/sh.c: Likewise.
12871 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12872 * config/sh/sh_treg_combine.cc: Likewise.
12873 * config/sol2-c.c: Likewise.
12874 * config/sol2-cxx.c: Likewise.
12875 * config/sol2-stubs.c: Likewise.
12876 * config/sol2.c: Likewise.
12877 * config/sparc/sparc-c.c: Likewise.
12878 * config/sparc/sparc.c: Likewise.
12879 * config/spu/spu-c.c: Likewise.
12880 * config/spu/spu.c: Likewise.
12881 * config/stormy16/stormy16.c: Likewise.
12882 * config/tilegx/mul-tables.c: Likewise.
12883 * config/tilegx/tilegx-c.c: Likewise.
12884 * config/tilegx/tilegx.c: Likewise.
12885 * config/tilepro/mul-tables.c: Likewise.
12886 * config/tilepro/tilepro-c.c: Likewise.
12887 * config/tilepro/tilepro.c: Likewise.
12888 * config/v850/v850-c.c: Likewise.
12889 * config/v850/v850.c: Likewise.
12890 * config/vax/vax.c: Likewise.
12891 * config/visium/visium.c: Likewise.
12892 * config/vms/vms-c.c: Likewise.
12893 * config/vms/vms.c: Likewise.
12894 * config/vxworks.c: Likewise.
12895 * config/winnt-c.c: Likewise.
12896 * config/xtensa/xtensa.c: Likewise.
12898 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
12900 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12902 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12904 2015-06-17 Richard Biener <rguenther@suse.de>
12906 PR tree-optimization/66251
12907 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12908 stmts for SLP strided stores.
12911 2015-05-22 Richard Biener <rguenther@suse.de>
12913 PR tree-optimization/66251
12914 * tree-vect-stmts.c (vectorizable_conversion): Properly
12915 set STMT_VINFO_VEC_STMT even for the SLP case.
12917 2015-05-26 Michael Matz <matz@suse.de>
12919 PR middle-end/66251
12920 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12921 STMT_VINFO_VEC_STMT, also with SLP.
12923 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
12926 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12927 (*avx_addsubv4df3_1s): Ditto.
12928 (*sse3_addsubv2df3_1): Ditto.
12929 (*sse3_addsubv2df3_1s): Ditto.
12930 (*avx_addsubv8sf3_1): Ditto.
12931 (*avx_addsubv8sf3_1s): Ditto.
12932 (*sse3_addsubv4sf3_1): Ditto.
12933 (*sse3_addsubv4sf3_1s): Ditto.
12935 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
12937 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12938 (SYSROOT_SUFFIX_SPEC): Update.
12939 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12940 (STARTFILE_PREFIX_SPEC): Update.
12941 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12942 (MULTILIB_REQUIRED): New.
12943 (MULTILIB_OSDIRNAMES): New.
12944 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12945 (MULTILIB_REQUIRED): New.
12946 (MULTILIB_OSDIRNAMES): New.
12948 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
12950 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12951 * config/aarch64/aarch64-options-extensions.def: Update "fP",
12952 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
12953 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12954 (AARCH64_FL_PAN): New.
12955 (AARCH64_FL_LOR): New.
12956 (AARCH64_FL_RDMA): New.
12957 (AARCH64_FL_FOR_ARCH8_1): New.
12958 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12959 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12961 2015-06-16 Martin Liska <mliska@suse.cz>
12963 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12964 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12967 2015-06-16 Richard Biener <rguenther@suse.de>
12969 * tree-vect-stmts.c (vectorizable_store): Adjust.
12970 (vectorizable_load): Likewise.
12971 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12973 (vect_create_data_ref_ptr): Likewise.
12974 (bump_vector_ptr): Adjust.
12976 2015-06-16 Richard Biener <rguenther@suse.de>
12978 * tree-vect-stmts.c (vectorizable_load): Properly start loads
12979 with the first element if this is grouped loads.
12981 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
12983 * config/arm/arm-protos.h (struct tune_params): Rename
12984 log_op_non_sc to log_op_non_short_circuit, and rename enum
12985 values to expand SC to SHORT_CIRCUIT.
12986 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12987 to LOG_OP_NON_SHORT_CIRCUIT.
12988 (arm_fastmul_tune):Likewise
12989 (arm_strongarm_tune): Likewise.
12990 (arm_xscale_tune): Likewise.
12991 (arm_9e_tune): Likewise.
12992 (arm_marvell_pj4_tune): Likewise.
12993 (arm_v6t2_tune): Likewise.
12994 (arm_cortex_tune): Likewise.
12995 (arm_cortex_a8_tune): Likewise.
12996 (arm_cortex_a7_tune): Likewise.
12997 (arm_cortex_a15_tune): Likewise.
12998 (arm_cortex_a53_tune): Likewise.
12999 (arm_cortex_a57_tune): Likewise.
13000 (arm_xgene1_tune): Likewise.
13001 (arm_cortex_a5_tune): Likewise.
13002 (arm_cortex_a9_tune): Likewise.
13003 (arm_cortex_a12_tune): Likewise.
13004 (arm_v7m_tune): Likewise.
13005 (arm_cortex_m7_tune): Likewise.
13006 (arm_v6m_tune): Likewise.
13007 (arm_fa726te_tune): Likewise.
13009 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13011 * altivec.md: Delete UNSPEC_VMLADDUHM.
13012 (mulv4si3_p8): New pattern.
13013 (mulv4si3): Use it for POWER8.
13014 (mulv8hi3): Use vmladduhm with zero addend.
13015 (altivec_vmladduhm): Descriptive RTL.
13017 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13019 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13020 to use neon_move instead of mov_imm.
13021 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13022 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13024 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13025 aarch64_float_const_zero_rtx_p check before TFmode check.
13026 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13028 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13029 code and attributes to match. Change condition from register_operand
13030 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13031 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13034 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13037 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13038 there is no parent.
13040 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13042 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13043 HOST_WIDE_INT parameter.
13045 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13048 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13049 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13051 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13053 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13055 * rtl.h (classify_insn): Declare.
13056 * emit-rtl.c (classify_insn): Move to...
13057 * rtl.c: ...here and add generator support.
13058 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13059 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13060 * genemit.c (gen_emit_seq): New function.
13061 (gen_expand, gen_split): Use it.
13063 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13065 * tree.c (make_vector_stat): Fix comment to state that the
13066 function returns a VECTOR_CST.
13068 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13070 * gensupport.h (add_implicit_parallel): Declare.
13071 * genrecog.c (add_implicit_parallel): Move to...
13072 * gensupport.c (add_implicit_parallel): ...here.
13073 (process_one_cond_exec): Use it.
13074 * genemit.c (gen_insn): Likewise.
13076 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13079 * passes.c (rest_of_decl_compilation): Do not register globals for
13080 early debug if they are declared in built-ins.
13082 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13084 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13086 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13088 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13090 (noce_try_cmove_arith): Likewise.
13091 (noce_get_alt_condition): Likewise.
13093 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13095 * common/config/i386/i386-common.c
13096 (OPTION_MASK_ISA_MWAITX_SET): New.
13097 (ix86_handle_option): Handle mwaitx.
13098 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13099 (x86_64-*-*): Likewise.
13100 * config/i386/mwaitxintrin.h: New header.
13101 * config/i386/cpuid.h (bit_MWAITX): Define.
13102 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13104 * config/i386/i386.opt (mwaitx): New.
13105 * config/i386/i386-builtin-types.def
13106 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13107 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13108 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13110 (ix86_option_override_internal): Handle new option.
13111 (processor_alias_table): Added PTA_MWAITX.
13112 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13113 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13114 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13115 IX86_BUILTIN_MONITORX built-ins.
13116 * config/i386/i386.h (TARGET_MWAITX): New.
13117 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13119 (mwaitx): New pattern.
13120 (monitorx_<mode>): New pattern.
13121 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13122 * doc/extend.texi: Document monitorx and mwaitx builtins.
13123 * doc/invoke.texi: Document -mmwaitx option.
13125 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13127 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13128 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13130 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13132 * dbxout.c (xcoff_debug_hooks): Provide a function for
13133 register_main_translation_unit hook.
13135 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13137 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13138 variants cases from switch.
13139 (rs6000_post_atomic_barrier): Same.
13140 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13141 (rs6000_expand_atomic_exchange): Same.
13142 (rs6000_expand_atomic_op): Same.
13143 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13144 SYNC variants cases from switch.
13145 (atomic_load): Same.
13146 (atomic_store): Same.
13148 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13150 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13151 CONST_INT for goto.
13153 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13156 * dwarf2out.c (check_die): Check for common duplicate attributes.
13157 (add_location_or_const_value_attribute): Do not add duplicate
13159 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13161 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13162 (gen_type_die_with_usage): Call check_die.
13163 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13165 2015-06-11 Jason Merrill <jason@redhat.com>
13167 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13170 2015-06-11 Marek Polacek <polacek@redhat.com>
13172 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13174 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13177 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13178 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13179 (*addx_extend_sp32): Fix pasto.
13180 (*subx_extend): Rename into...
13181 (*subx_extend_sp32): ...this.
13182 (*adddi3_extend_sp32): Add earlyclobber.
13183 (*subdi3_insn_sp32): Likewise.
13184 (*subdi3_extend_sp32): Likewise.
13185 (*and_not_di_sp32): Likewise.
13186 (*or_not_di_sp32): Likewise.
13187 (*xor_not_di_sp32): Likewise.
13188 (*negdi2_sp32): Likewise.
13189 (*one_cmpldi2_sp32): Likewise.
13191 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13193 * debug.h (struct gcc_debug_hooks): Add a
13194 register_main_translation_unit hook.
13195 * debug.c (do_nothing_debug_hooks): Provide a function for this
13197 * dbxout.c (dbx_debug_hooks): Likewise.
13198 * sdbout.c (sdb_debug_hooks): Likewise.
13199 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13200 * dwarf2out.c (main_translation_unit): New global variable.
13201 (dwarf2out_register_main_translation_unit): New function
13202 implementing the new hook.
13203 (dwarf2_debug_hooks): Assign
13204 dwarf2out_register_main_translation_unit to this new hook.
13205 (dwarf2out_init): Associate any main translation unit to
13208 2015-06-11 Marek Polacek <polacek@redhat.com>
13210 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13212 2015-06-11 Marek Polacek <polacek@redhat.com>
13214 * match.pd: Use single_use throughout.
13216 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13218 * config/arm/arm.c (arm_option_params_internal): When optimising
13219 for speed set max_insns_skipped when arm_restrict_it.
13221 2015-06-11 Christian Bruel <christian.bruel@st.com>
13224 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13226 (arm_cpu_builtins): New function.
13227 (arm_pragma_target_parse): Call arm_cpu_builtins.
13228 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13229 (arm_register_target_pragmas): Likewise.
13230 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13231 Call arm_register_target_pragmas.
13232 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13233 (arm_pragma_target_parse): Likewise.
13235 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13237 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13238 of the second operand.
13240 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13243 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13244 to prepare mask operand for AVX512 modes.
13246 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13249 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13250 if you use a constraint that targets a VSX register, you must use
13251 %x<n> in the template.
13253 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13255 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13256 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13257 (define_insn "trap"): New definition.
13259 2015-06-10 Richard Biener <rguenther@suse.de>
13261 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13263 (vect_supported_load_permutation_p): ... here. Handle
13264 supportable permutations in reductions.
13265 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13266 for vectorizing strided group loads.
13268 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13271 * config/i386/i386.c (ix86_split_long_move): For collisions
13272 involving direct tls segment refs, move the UNSPEC_TP possibly
13273 wrapped in ZERO_EXTEND out of the address for lea, to each of
13276 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13278 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13279 dmb sy. Adjust tabs.
13281 2015-06-10 Tom de Vries <tom@codesourcery.com>
13283 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13285 2015-06-10 Martin Liska <mliska@suse.cz>
13288 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13289 all enum values in mem_alloc_origin.
13290 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13292 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13293 * bitmap.c (bitmap_register): Likewise.
13294 (dump_bitmap_statistics): Likewise.
13295 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13296 (ggc_record_overhead): Likewise.
13297 * hash-map.h: Likewise.
13298 * hash-set.h: Likewise.
13299 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13300 * hash-table.h: Likewise.
13301 * vec.c (vec_prefix::register_overhead): Likewise.
13302 (vec_prefix::release_overhead): Likewise.
13303 (dump_vec_loc_statistics): Likewise.
13305 2015-06-09 Christian Bruel <christian.bruel@st.com>
13308 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13309 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13310 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13311 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13312 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13313 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13314 (arm_valid_target_attribute_p): Likewise.
13315 (arm_set_current_function, arm_can_inline_p): Likewise.
13316 (arm_valid_target_attribute_rec): Likewise.
13317 (arm_previous_fndecl): New variable.
13318 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13319 (TARGET_CAN_INLINE_P): Define.
13320 (arm_asm_trampoline_template): Emit mode.
13321 (arm_file_start): Don't set unified syntax.
13322 (arm_declare_function_name): Set unified syntax and mode.
13323 (arm_option_override): Init target_option_default_node.
13324 and target_option_current_node.
13325 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13326 (*call_symbol): Likewise.
13327 * doc/extend.texi: Document ARM/Thumb target attribute.
13328 * doc/invoke.texi: Likewise.
13330 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13333 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13334 PR rtl-optimization/64164
13335 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13336 * tree-ssa-copyrename.c: Removed.
13337 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13338 -ftree-coalesce-vars.
13339 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13340 * common.opt (ftree-copyrename): Ignore.
13341 (ftree-coalesce-inlined-vars): Likewise.
13342 * doc/invoke.texi: Remove the ignored options above.
13343 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13344 * tree-ssa-coalesce.h: ... here.
13345 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13346 headers required by it.
13347 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13348 across variables when flag_tree_coalesce_vars. Check register
13349 use and promoted modes to allow coalescing. Moved to
13350 tree-ssa-coalesce.c.
13351 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13352 with its member functions to tree-ssa-coalesce.c.
13353 (var_map_base_init): Likewise. Renamed to
13354 compute_samebase_partition_bases.
13355 (partition_view_normal): Drop want_bases parameter.
13356 (partition_view_bitmap): Likewise.
13357 * tree-ssa-live.h: Adjust declarations.
13358 * tree-ssa-coalesce.c: Include explow.h.
13359 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13360 default defs at the entry point.
13361 (dump_part_var_map): New.
13362 (compute_optimized_partition_bases): New, called by...
13363 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13364 of compute_samebase_partition_bases. Adjust.
13365 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13366 * cfgexpand.c (leader_merge): New.
13367 (get_rtl_for_parm_ssa_default_def): New.
13368 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13369 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13370 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13371 redundant MEM attr setting.
13372 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13374 (expand_one_stack_var): ... this. New wrapper to check and
13375 skip already expanded SSA partitions.
13376 (record_alignment_for_reg_var): New, factored out of...
13377 (expand_one_var): ... this.
13378 (expand_one_ssa_partition): New.
13379 (adjust_one_expanded_partition_var): New.
13380 (expand_one_register_var): Check and skip already expanded SSA
13382 (expand_used_vars): Don't create DECLs for anonymous SSA
13383 names. Expand all SSA partitions, then adjust all SSA names.
13384 (pass::execute): Replace the loops that set
13385 SA.partition_to_pseudo from partition leaders and cleared
13386 DECL_RTL for multi-location variables, and that which used to
13387 rename vars and set attrs, with one that clears DECL_RTL and
13388 checks that PARMs and RESULTs default_defs match DECL_RTL.
13389 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13390 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13391 * explow.c (promote_ssa_mode): New.
13392 * explow.h (promote_ssa_mode): Declare.
13393 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13394 * function.c: Include cfgexpand.h.
13395 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13396 (use_register_for_parm_decl): Wrapper for the above to
13397 special-case the result_ptr.
13398 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13399 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13400 multiple locations.
13401 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13402 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13403 (assign_parm_setup_block): Prefer SSA-assigned location.
13404 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13405 if stack_parm is NULL.
13406 (assign_parm_setup_stack): Prefer SSA-assigned location.
13407 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13408 rtl before testing for pointer bounds. Special-case result_ptr.
13409 (expand_function_start): Maybe reset DECL_RTL of result.
13410 Prefer SSA-assigned location for result and static chain.
13411 Factor out DECL_RESULT and SET_DECL_RTL.
13412 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13413 anonymous SSA names. Use promote_ssa_mode.
13414 (get_temp_reg): Likewise.
13415 (remove_ssa_form): Adjust.
13416 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13417 and get its reg_usage for reg invalidation.
13418 (compute_bb_dataflow): Pass it insn.
13419 (emit_notes_in_bb): Likewise.
13420 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13421 fail assert on conversion between unsigned types.
13423 2015-06-09 Tom de Vries <tom@codesourcery.com>
13425 PR tree-optimization/65460
13426 * omp-low.c (expand_omp_target): Set parallelized_function on
13427 cgraph_node for child_fn.
13429 2015-06-09 Tom de Vries <tom@codesourcery.com>
13431 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13432 parallelized_function before add_new_function.
13434 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13436 * gcc-plugin.h: Move decls to plugin.h and include it.
13437 * plugin.h: Relocate decls from gcc-plugin.h
13438 * ggc-page.c: Include required header files.
13439 * passes.c: Likewise.
13440 * cgraphunit.c: Likewise.
13442 2015-06-09 Tom de Vries <tom@codesourcery.com>
13444 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13446 2015-06-09 Jason Merrill <jason@redhat.com>
13449 * toplev.c (check_global_declaration): Don't warn about a clone.
13451 2015-06-09 Marek Polacek <polacek@redhat.com>
13453 PR tree-optimization/66299
13454 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13455 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13458 2015-06-09 Richard Biener <rguenther@suse.de>
13460 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13461 (vect_analyze_slp_instance): Instead do not falsely drop
13464 2015-06-09 Richard Biener <rguenther@suse.de>
13466 PR middle-end/66423
13467 * match.pd: Handle A % (unsigned)(1 << B).
13469 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13471 * varasm.c (output_object_block_htab): Remove.
13472 (output_object_block_compare): New.
13473 (output_object_blocks): Sort named object_blocks before outputting
13476 2015-06-09 Richard Biener <rguenther@suse.de>
13478 PR tree-optimization/66419
13479 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13480 consider GROUP_GAP when detecting a perfect subchain.
13482 2015-06-09 Nick Clifton <nickc@redhat.com>
13484 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13485 place read only data in the .frodata section.
13487 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13489 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13490 (atomic_store<mode>): Likewise.
13492 2015-06-09 Richard Biener <rguenther@suse.de>
13494 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13496 2015-06-09 Richard Biener <rguenther@suse.de>
13498 PR middle-end/66413
13499 * tree-inline.c (insert_init_debug_bind): Unshare value.
13501 2015-06-09 Richard Biener <rguenther@suse.de>
13503 PR tree-optimization/66396
13504 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13505 Rename virtual operands.
13507 2015-06-09 Tom de Vries <tom@codesourcery.com>
13509 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13510 always return false.
13512 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13514 PR rtl-optimization/64164
13515 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13516 * tree-ssa-copyrename.c: Removed.
13517 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13518 -ftree-coalesce-vars.
13519 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13520 * common.opt (ftree-copyrename): Ignore.
13521 (ftree-coalesce-inlined-vars): Likewise.
13522 * doc/invoke.texi: Remove the ignored options above.
13523 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13524 * tree-ssa-coalesce.h: ... here.
13525 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13526 headers required by it.
13527 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13528 across variables when flag_tree_coalesce_vars. Check register
13529 use and promoted modes to allow coalescing. Moved to
13530 tree-ssa-coalesce.c.
13531 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13532 with its member functions to tree-ssa-coalesce.c.
13533 (var_map_base_init): Likewise. Renamed to
13534 compute_samebase_partition_bases.
13535 (partition_view_normal): Drop want_bases parameter.
13536 (partition_view_bitmap): Likewise.
13537 * tree-ssa-live.h: Adjust declarations.
13538 * tree-ssa-coalesce.c: Include explow.h.
13539 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13540 default defs at the entry point.
13541 (dump_part_var_map): New.
13542 (compute_optimized_partition_bases): New, called by...
13543 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13544 of compute_samebase_partition_bases. Adjust.
13545 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13546 * cfgexpand.c (leader_merge): New.
13547 (get_rtl_for_parm_ssa_default_def): New.
13548 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13549 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13550 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13551 redundant MEM attr setting.
13552 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13554 (expand_one_stack_var): ... this. New wrapper to check and
13555 skip already expanded SSA partitions.
13556 (record_alignment_for_reg_var): New, factored out of...
13557 (expand_one_var): ... this.
13558 (expand_one_ssa_partition): New.
13559 (adjust_one_expanded_partition_var): New.
13560 (expand_one_register_var): Check and skip already expanded SSA
13562 (expand_used_vars): Don't create DECLs for anonymous SSA
13563 names. Expand all SSA partitions, then adjust all SSA names.
13564 (pass::execute): Replace the loops that set
13565 SA.partition_to_pseudo from partition leaders and cleared
13566 DECL_RTL for multi-location variables, and that which used to
13567 rename vars and set attrs, with one that clears DECL_RTL and
13568 checks that PARMs and RESULTs default_defs match DECL_RTL.
13569 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13570 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13571 * explow.c (promote_ssa_mode): New.
13572 * explow.h (promote_ssa_mode): Declare.
13573 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13574 * function.c: Include cfgexpand.h.
13575 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13576 (use_register_for_parm_decl): Wrapper for the above to
13577 special-case the result_ptr.
13578 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13579 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13580 multiple locations.
13581 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13582 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13583 (assign_parm_setup_block): Prefer SSA-assigned location.
13584 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13585 if stack_parm is NULL.
13586 (assign_parm_setup_stack): Prefer SSA-assigned location.
13587 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13588 rtl before testing for pointer bounds. Special-case result_ptr.
13589 (expand_function_start): Maybe reset DECL_RTL of result.
13590 Prefer SSA-assigned location for result and static chain.
13591 Factor out DECL_RESULT and SET_DECL_RTL.
13592 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13593 anonymous SSA names. Use promote_ssa_mode.
13594 (get_temp_reg): Likewise.
13595 (remove_ssa_form): Adjust.
13596 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13597 and get its reg_usage for reg invalidation.
13598 (compute_bb_dataflow): Pass it insn.
13599 (emit_notes_in_bb): Likewise.
13600 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13601 fail assert on conversion between unsigned types.
13603 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13606 * tree-inline.c (reset_debug_binding): New.
13607 (reset_debug_bindings): Likewise.
13608 (expand_call_inline): Call it.
13610 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13612 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13615 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13617 * lto-streamer-out.c (lto_output_location): Stream
13618 reserved locations correctly.
13619 * lto-streamer-in.c (lto_output_location): Likewise.
13621 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13623 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13624 * ggc.h: Don't include statistics.h>
13625 * hash-map.h: Remove all includes.
13626 * hash-set.h: Likewise.
13627 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13628 the include list. Remove <new>.
13629 * inchash.h: Remove all includes.
13630 * mem-stats.h: Likewise.
13631 * vec.h: No special processing for generators or ggc.
13632 * alias.c : Adjust include files.
13633 * alloc-pool.c : Likewise.
13634 * alloc-pool.h : Likewise.
13635 * asan.c : Likewise.
13636 * attribs.c : Likewise.
13637 * auto-inc-dec.c : Likewise.
13638 * auto-profile.c : Likewise.
13639 * bb-reorder.c : Likewise.
13640 * bitmap.c : Likewise.
13641 * bitmap.h : Likewise.
13642 * bt-load.c : Likewise.
13643 * builtins.c : Likewise.
13644 * caller-save.c : Likewise.
13645 * calls.c : Likewise.
13646 * ccmp.c : Likewise.
13647 * cfg.c : Likewise.
13648 * cfganal.c : Likewise.
13649 * cfgbuild.c : Likewise.
13650 * cfgcleanup.c : Likewise.
13651 * cfgexpand.c : Likewise.
13652 * cfghooks.c : Likewise.
13653 * cfgloop.c : Likewise.
13654 * cfgloop.h : Likewise.
13655 * cfgloopanal.c : Likewise.
13656 * cfgloopmanip.c : Likewise.
13657 * cfgrtl.c : Likewise.
13658 * cgraph.c : Likewise.
13659 * cgraphbuild.c : Likewise.
13660 * cgraphclones.c : Likewise.
13661 * cgraphunit.c : Likewise.
13662 * cilk-common.c : Likewise.
13663 * combine-stack-adj.c : Likewise.
13664 * combine.c : Likewise.
13665 * compare-elim.c : Likewise.
13666 * context.c : Likewise.
13667 * convert.c : Likewise.
13668 * coverage.c : Likewise.
13669 * cppbuiltin.c : Likewise.
13670 * cprop.c : Likewise.
13671 * cse.c : Likewise.
13672 * cselib.c : Likewise.
13673 * data-streamer-in.c : Likewise.
13674 * data-streamer-out.c : Likewise.
13675 * data-streamer.c : Likewise.
13676 * data-streamer.h : Likewise.
13677 * dbxout.c : Likewise.
13678 * dce.c : Likewise.
13679 * ddg.c : Likewise.
13680 * debug.c : Likewise.
13681 * df-core.c : Likewise.
13682 * df-problems.c : Likewise.
13683 * df-scan.c : Likewise.
13685 * dfp.c : Likewise.
13686 * dojump.c : Likewise.
13687 * dominance.c : Likewise.
13688 * domwalk.c : Likewise.
13689 * double-int.c : Likewise.
13690 * dse.c : Likewise.
13691 * dumpfile.c : Likewise.
13692 * dwarf2asm.c : Likewise.
13693 * dwarf2cfi.c : Likewise.
13694 * dwarf2out.c : Likewise.
13695 * emit-rtl.c : Likewise.
13696 * et-forest.c : Likewise.
13697 * except.c : Likewise.
13698 * except.h : Likewise.
13699 * explow.c : Likewise.
13700 * expmed.c : Likewise.
13701 * expr.c : Likewise.
13702 * final.c : Likewise.
13703 * fixed-value.c : Likewise.
13704 * fold-const.c : Likewise.
13705 * function.c : Likewise.
13706 * fwprop.c : Likewise.
13707 * gcc-plugin.h : Likewise.
13708 * gcc.c : Likewise.
13709 * gcse-common.c : Likewise.
13710 * gcse.c : Likewise.
13711 * genattrtab.c : Likewise.
13712 * genautomata.c : Likewise.
13713 * genconditions.c : Likewise.
13714 * genemit.c : Likewise.
13715 * generic-match-head.c : Likewise.
13716 * genextract.c : Likewise.
13717 * gengtype-state.c : Likewise.
13718 * gengtype.c : Likewise.
13719 * genhooks.c : Likewise.
13720 * genmatch.c : Likewise.
13721 * genmodes.c : Likewise.
13722 * genrecog.c : Likewise.
13723 * gensupport.c : Likewise.
13724 * ggc-common.c : Likewise.
13725 * ggc-internal.h : Likewise.
13726 * ggc-none.c : Likewise.
13727 * ggc-page.c : Likewise.
13728 * gimple-builder.c : Likewise.
13729 * gimple-expr.c : Likewise.
13730 * gimple-fold.c : Likewise.
13731 * gimple-iterator.c : Likewise.
13732 * gimple-low.c : Likewise.
13733 * gimple-match-head.c : Likewise.
13734 * gimple-pretty-print.c : Likewise.
13735 * gimple-ssa-isolate-paths.c : Likewise.
13736 * gimple-ssa-strength-reduction.c : Likewise.
13737 * gimple-ssa.h : Likewise.
13738 * gimple-streamer-in.c : Likewise.
13739 * gimple-streamer-out.c : Likewise.
13740 * gimple-streamer.h : Likewise.
13741 * gimple-walk.c : Likewise.
13742 * gimple.c : Likewise.
13743 * gimplify-me.c : Likewise.
13744 * gimplify.c : Likewise.
13745 * godump.c : Likewise.
13746 * graph.c : Likewise.
13747 * graphds.c : Likewise.
13748 * graphite-blocking.c : Likewise.
13749 * graphite-dependences.c : Likewise.
13750 * graphite-interchange.c : Likewise.
13751 * graphite-isl-ast-to-gimple.c : Likewise.
13752 * graphite-optimize-isl.c : Likewise.
13753 * graphite-poly.c : Likewise.
13754 * graphite-scop-detection.c : Likewise.
13755 * graphite-sese-to-poly.c : Likewise.
13756 * graphite.c : Likewise.
13757 * haifa-sched.c : Likewise.
13758 * hard-reg-set.h : Likewise.
13759 * hw-doloop.c : Likewise.
13760 * ifcvt.c : Likewise.
13761 * inchash.c : Likewise.
13762 * incpath.c : Likewise.
13763 * init-regs.c : Likewise.
13764 * input.c : Likewise.
13765 * internal-fn.c : Likewise.
13766 * ipa-chkp.c : Likewise.
13767 * ipa-comdats.c : Likewise.
13768 * ipa-cp.c : Likewise.
13769 * ipa-devirt.c : Likewise.
13770 * ipa-icf-gimple.c : Likewise.
13771 * ipa-icf.c : Likewise.
13772 * ipa-inline-analysis.c : Likewise.
13773 * ipa-inline-transform.c : Likewise.
13774 * ipa-inline.c : Likewise.
13775 * ipa-polymorphic-call.c : Likewise.
13776 * ipa-profile.c : Likewise.
13777 * ipa-prop.c : Likewise.
13778 * ipa-pure-const.c : Likewise.
13779 * ipa-ref.c : Likewise.
13780 * ipa-reference.c : Likewise.
13781 * ipa-split.c : Likewise.
13782 * ipa-utils.c : Likewise.
13783 * ipa-visibility.c : Likewise.
13784 * ipa.c : Likewise.
13785 * ira-build.c : Likewise.
13786 * ira-color.c : Likewise.
13787 * ira-conflicts.c : Likewise.
13788 * ira-costs.c : Likewise.
13789 * ira-emit.c : Likewise.
13790 * ira-lives.c : Likewise.
13791 * ira.c : Likewise.
13792 * jump.c : Likewise.
13793 * langhooks.c : Likewise.
13794 * lcm.c : Likewise.
13795 * libfuncs.h : Likewise.
13796 * lists.c : Likewise.
13797 * loop-doloop.c : Likewise.
13798 * loop-init.c : Likewise.
13799 * loop-invariant.c : Likewise.
13800 * loop-iv.c : Likewise.
13801 * loop-unroll.c : Likewise.
13802 * lower-subreg.c : Likewise.
13803 * lra-assigns.c : Likewise.
13804 * lra-coalesce.c : Likewise.
13805 * lra-constraints.c : Likewise.
13806 * lra-eliminations.c : Likewise.
13807 * lra-lives.c : Likewise.
13808 * lra-remat.c : Likewise.
13809 * lra-spills.c : Likewise.
13810 * lra.c : Likewise.
13811 * lto-cgraph.c : Likewise.
13812 * lto-compress.c : Likewise.
13813 * lto-opts.c : Likewise.
13814 * lto-section-in.c : Likewise.
13815 * lto-section-out.c : Likewise.
13816 * lto-streamer-in.c : Likewise.
13817 * lto-streamer-out.c : Likewise.
13818 * lto-streamer.c : Likewise.
13819 * lto-streamer.h : Likewise.
13820 * mcf.c : Likewise.
13821 * mode-switching.c : Likewise.
13822 * modulo-sched.c : Likewise.
13823 * omega.c : Likewise.
13824 * omp-low.c : Likewise.
13825 * optabs.c : Likewise.
13826 * opts-global.c : Likewise.
13827 * opts.h : Likewise.
13828 * passes.c : Likewise.
13829 * plugin.c : Likewise.
13830 * postreload-gcse.c : Likewise.
13831 * postreload.c : Likewise.
13832 * predict.c : Likewise.
13833 * print-rtl.c : Likewise.
13834 * print-tree.c : Likewise.
13835 * profile.c : Likewise.
13836 * read-md.c : Likewise.
13837 * read-md.h : Likewise.
13838 * read-rtl.c : Likewise.
13839 * real.c : Likewise.
13840 * realmpfr.c : Likewise.
13841 * recog.c : Likewise.
13842 * ree.c : Likewise.
13843 * reg-stack.c : Likewise.
13844 * regcprop.c : Likewise.
13845 * reginfo.c : Likewise.
13846 * regrename.c : Likewise.
13847 * regstat.c : Likewise.
13848 * reload.c : Likewise.
13849 * reload1.c : Likewise.
13850 * reorg.c : Likewise.
13851 * resource.c : Likewise.
13852 * rtl-chkp.c : Likewise.
13853 * rtl.c : Likewise.
13854 * rtl.h : Likewise.
13855 * rtlanal.c : Likewise.
13856 * rtlhash.c : Likewise.
13857 * rtlhash.h : Likewise.
13858 * rtlhooks.c : Likewise.
13859 * sanopt.c : Likewise.
13860 * sched-deps.c : Likewise.
13861 * sched-ebb.c : Likewise.
13862 * sched-rgn.c : Likewise.
13863 * sched-vis.c : Likewise.
13864 * sdbout.c : Likewise.
13865 * sel-sched-dump.c : Likewise.
13866 * sel-sched-ir.c : Likewise.
13867 * sel-sched-ir.h : Likewise.
13868 * sel-sched.c : Likewise.
13869 * sese.c : Likewise.
13870 * shrink-wrap.c : Likewise.
13871 * shrink-wrap.h : Likewise.
13872 * simplify-rtx.c : Likewise.
13873 * stack-ptr-mod.c : Likewise.
13874 * statistics.c : Likewise.
13875 * stmt.c : Likewise.
13876 * stor-layout.c : Likewise.
13877 * store-motion.c : Likewise.
13878 * stringpool.c : Likewise.
13879 * symtab.c : Likewise.
13880 * target-globals.c : Likewise.
13881 * targhooks.c : Likewise.
13882 * tlink.c : Likewise.
13883 * toplev.c : Likewise.
13884 * tracer.c : Likewise.
13885 * trans-mem.c : Likewise.
13886 * tree-affine.c : Likewise.
13887 * tree-affine.h : Likewise.
13888 * tree-browser.c : Likewise.
13889 * tree-call-cdce.c : Likewise.
13890 * tree-cfg.c : Likewise.
13891 * tree-cfgcleanup.c : Likewise.
13892 * tree-chkp-opt.c : Likewise.
13893 * tree-chkp.c : Likewise.
13894 * tree-chrec.c : Likewise.
13895 * tree-complex.c : Likewise.
13896 * tree-data-ref.c : Likewise.
13897 * tree-dfa.c : Likewise.
13898 * tree-diagnostic.c : Likewise.
13899 * tree-dump.c : Likewise.
13900 * tree-eh.c : Likewise.
13901 * tree-eh.h : Likewise.
13902 * tree-emutls.c : Likewise.
13903 * tree-hasher.h : Likewise.
13904 * tree-if-conv.c : Likewise.
13905 * tree-inline.c : Likewise.
13906 * tree-inline.h : Likewise.
13907 * tree-into-ssa.c : Likewise.
13908 * tree-iterator.c : Likewise.
13909 * tree-loop-distribution.c : Likewise.
13910 * tree-nested.c : Likewise.
13911 * tree-nrv.c : Likewise.
13912 * tree-object-size.c : Likewise.
13913 * tree-outof-ssa.c : Likewise.
13914 * tree-parloops.c : Likewise.
13915 * tree-phinodes.c : Likewise.
13916 * tree-predcom.c : Likewise.
13917 * tree-pretty-print.c : Likewise.
13918 * tree-profile.c : Likewise.
13919 * tree-scalar-evolution.c : Likewise.
13920 * tree-sra.c : Likewise.
13921 * tree-ssa-address.c : Likewise.
13922 * tree-ssa-alias.c : Likewise.
13923 * tree-ssa-ccp.c : Likewise.
13924 * tree-ssa-coalesce.c : Likewise.
13925 * tree-ssa-copy.c : Likewise.
13926 * tree-ssa-copyrename.c : Likewise.
13927 * tree-ssa-dce.c : Likewise.
13928 * tree-ssa-dom.c : Likewise.
13929 * tree-ssa-dse.c : Likewise.
13930 * tree-ssa-forwprop.c : Likewise.
13931 * tree-ssa-ifcombine.c : Likewise.
13932 * tree-ssa-live.c : Likewise.
13933 * tree-ssa-loop-ch.c : Likewise.
13934 * tree-ssa-loop-im.c : Likewise.
13935 * tree-ssa-loop-ivcanon.c : Likewise.
13936 * tree-ssa-loop-ivopts.c : Likewise.
13937 * tree-ssa-loop-manip.c : Likewise.
13938 * tree-ssa-loop-niter.c : Likewise.
13939 * tree-ssa-loop-prefetch.c : Likewise.
13940 * tree-ssa-loop-unswitch.c : Likewise.
13941 * tree-ssa-loop.c : Likewise.
13942 * tree-ssa-math-opts.c : Likewise.
13943 * tree-ssa-operands.c : Likewise.
13944 * tree-ssa-phiopt.c : Likewise.
13945 * tree-ssa-phiprop.c : Likewise.
13946 * tree-ssa-pre.c : Likewise.
13947 * tree-ssa-propagate.c : Likewise.
13948 * tree-ssa-reassoc.c : Likewise.
13949 * tree-ssa-sccvn.c : Likewise.
13950 * tree-ssa-scopedtables.c : Likewise.
13951 * tree-ssa-sink.c : Likewise.
13952 * tree-ssa-strlen.c : Likewise.
13953 * tree-ssa-structalias.c : Likewise.
13954 * tree-ssa-tail-merge.c : Likewise.
13955 * tree-ssa-ter.c : Likewise.
13956 * tree-ssa-threadedge.c : Likewise.
13957 * tree-ssa-threadupdate.c : Likewise.
13958 * tree-ssa-uncprop.c : Likewise.
13959 * tree-ssa-uninit.c : Likewise.
13960 * tree-ssa.c : Likewise.
13961 * tree-ssanames.c : Likewise.
13962 * tree-stdarg.c : Likewise.
13963 * tree-streamer-in.c : Likewise.
13964 * tree-streamer-out.c : Likewise.
13965 * tree-streamer.c : Likewise.
13966 * tree-streamer.h : Likewise.
13967 * tree-switch-conversion.c : Likewise.
13968 * tree-tailcall.c : Likewise.
13969 * tree-vect-data-refs.c : Likewise.
13970 * tree-vect-generic.c : Likewise.
13971 * tree-vect-loop-manip.c : Likewise.
13972 * tree-vect-loop.c : Likewise.
13973 * tree-vect-patterns.c : Likewise.
13974 * tree-vect-slp.c : Likewise.
13975 * tree-vect-stmts.c : Likewise.
13976 * tree-vectorizer.c : Likewise.
13977 * tree-vectorizer.h : Likewise.
13978 * tree-vrp.c : Likewise.
13979 * tree.c : Likewise.
13980 * tsan.c : Likewise.
13981 * ubsan.c : Likewise.
13982 * valtrack.c : Likewise.
13983 * valtrack.h : Likewise.
13984 * value-prof.c : Likewise.
13985 * var-tracking.c : Likewise.
13986 * varasm.c : Likewise.
13987 * varpool.c : Likewise.
13989 * vmsdbgout.c : Likewise.
13990 * vtable-verify.c : Likewise.
13991 * vtable-verify.h : Likewise.
13992 * web.c : Likewise.
13993 * wide-int.cc : Likewise.
13994 * xcoffout.c : Likewise.
13995 * config/aarch64/aarch64-builtins.c : Likewise.
13996 * config/aarch64/aarch64.c : Likewise.
13997 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13998 * config/alpha/alpha.c : Likewise.
13999 * config/arc/arc.c : Likewise.
14000 * config/arm/aarch-common.c : Likewise.
14001 * config/arm/arm-builtins.c : Likewise.
14002 * config/arm/arm-c.c : Likewise.
14003 * config/arm/arm.c : Likewise.
14004 * config/avr/avr-c.c : Likewise.
14005 * config/avr/avr-log.c : Likewise.
14006 * config/avr/avr.c : Likewise.
14007 * config/bfin/bfin.c : Likewise.
14008 * config/c6x/c6x.c : Likewise.
14009 * config/cr16/cr16.c : Likewise.
14010 * config/cris/cris.c : Likewise.
14011 * config/darwin-c.c : Likewise.
14012 * config/darwin.c : Likewise.
14013 * config/default-c.c : Likewise.
14014 * config/epiphany/epiphany.c : Likewise.
14015 * config/epiphany/mode-switch-use.c : Likewise.
14016 * config/epiphany/resolve-sw-modes.c : Likewise.
14017 * config/fr30/fr30.c : Likewise.
14018 * config/frv/frv.c : Likewise.
14019 * config/ft32/ft32.c : Likewise.
14020 * config/glibc-c.c : Likewise.
14021 * config/h8300/h8300.c : Likewise.
14022 * config/i386/i386-c.c : Likewise.
14023 * config/i386/i386.c : Likewise.
14024 * config/i386/msformat-c.c : Likewise.
14025 * config/i386/winnt-cxx.c : Likewise.
14026 * config/i386/winnt-stubs.c : Likewise.
14027 * config/i386/winnt.c : Likewise.
14028 * config/ia64/ia64-c.c : Likewise.
14029 * config/ia64/ia64.c : Likewise.
14030 * config/iq2000/iq2000.c : Likewise.
14031 * config/lm32/lm32.c : Likewise.
14032 * config/m32c/m32c-pragma.c : Likewise.
14033 * config/m32c/m32c.c : Likewise.
14034 * config/m32r/m32r.c : Likewise.
14035 * config/m68k/m68k.c : Likewise.
14036 * config/mcore/mcore.c : Likewise.
14037 * config/mep/mep-pragma.c : Likewise.
14038 * config/mep/mep.c : Likewise.
14039 * config/microblaze/microblaze-c.c : Likewise.
14040 * config/microblaze/microblaze.c : Likewise.
14041 * config/mips/mips.c : Likewise.
14042 * config/mmix/mmix.c : Likewise.
14043 * config/mn10300/mn10300.c : Likewise.
14044 * config/moxie/moxie.c : Likewise.
14045 * config/msp430/msp430-c.c : Likewise.
14046 * config/msp430/msp430.c : Likewise.
14047 * config/nds32/nds32-cost.c : Likewise.
14048 * config/nds32/nds32-fp-as-gp.c : Likewise.
14049 * config/nds32/nds32-intrinsic.c : Likewise.
14050 * config/nds32/nds32-isr.c : Likewise.
14051 * config/nds32/nds32-md-auxiliary.c : Likewise.
14052 * config/nds32/nds32-memory-manipulation.c : Likewise.
14053 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14054 * config/nds32/nds32-predicates.c : Likewise.
14055 * config/nds32/nds32.c : Likewise.
14056 * config/nios2/nios2.c : Likewise.
14057 * config/nvptx/nvptx.c : Likewise.
14058 * config/pa/pa.c : Likewise.
14059 * config/pdp11/pdp11.c : Likewise.
14060 * config/rl78/rl78-c.c : Likewise.
14061 * config/rl78/rl78.c : Likewise.
14062 * config/rs6000/rs6000-c.c : Likewise.
14063 * config/rs6000/rs6000.c : Likewise.
14064 * config/rx/rx.c : Likewise.
14065 * config/s390/s390-c.c : Likewise.
14066 * config/s390/s390.c : Likewise.
14067 * config/sh/sh-c.c : Likewise.
14068 * config/sh/sh-mem.cc : Likewise.
14069 * config/sh/sh.c : Likewise.
14070 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14071 * config/sh/sh_treg_combine.cc : Likewise.
14072 * config/sol2-c.c : Likewise.
14073 * config/sol2-cxx.c : Likewise.
14074 * config/sol2-stubs.c : Likewise.
14075 * config/sol2.c : Likewise.
14076 * config/sparc/sparc-c.c : Likewise.
14077 * config/sparc/sparc.c : Likewise.
14078 * config/spu/spu-c.c : Likewise.
14079 * config/spu/spu.c : Likewise.
14080 * config/stormy16/stormy16.c : Likewise.
14081 * config/tilegx/mul-tables.c : Likewise.
14082 * config/tilegx/tilegx-c.c : Likewise.
14083 * config/tilegx/tilegx.c : Likewise.
14084 * config/tilepro/mul-tables.c : Likewise.
14085 * config/tilepro/tilepro-c.c : Likewise.
14086 * config/tilepro/tilepro.c : Likewise.
14087 * config/v850/v850-c.c : Likewise.
14088 * config/v850/v850.c : Likewise.
14089 * config/vax/vax.c : Likewise.
14090 * config/visium/visium.c : Likewise.
14091 * config/vms/vms-c.c : Likewise.
14092 * config/vms/vms.c : Likewise.
14093 * config/vxworks.c : Likewise.
14094 * config/winnt-c.c : Likewise.
14095 * config/xtensa/xtensa.c : Likewise.
14097 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14100 * ipa-utils.h (warn_types_mismatch): Update prototype.
14101 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14103 (type_mismatch_p): New function.
14104 (warn_types_mismatch): Reorg to work better on non-C++ types.
14105 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14106 (add_type_duplicate): Update.
14108 2015-06-08 Tom de Vries <tom@codesourcery.com>
14110 PR rtl-optimization/66444
14111 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14114 2015-06-08 Richard Biener <rguenther@suse.de>
14116 PR tree-optimization/66422
14117 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14118 block after inserted gcc_unreachable.
14120 2015-06-08 Nick Clifton <nickc@redhat.com>
14122 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14123 (rx_promote_function_mode): Likewise.
14124 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14126 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14128 * genattrtab.c (insn_alternatives): Change type from int *
14130 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14131 (get_attr_value): Change type of num_alt to uint64_t.
14132 (compute_alternative_mask): Change return type from
14133 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14134 (make_alternative_compare, mk_attr_alt): Change argument type
14135 from int to uint64_t.
14136 (simplify_test_exp): Change type of i from int to uint64_t.
14137 Shift ((uint64_t) 1) instead of 1 up.
14138 (main): Adjust oballocvec first argument from int to uint64_t.
14139 Shift ((uint64_t) 1) instead of 1 up.
14141 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14144 * gdbhooks.py: Import sys.
14145 (intptr): New function. Replace int(...) by intptr(...).
14147 2015-06-08 Richard Biener <rguenther@suse.de>
14149 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14150 adjustment for gaps at the end of a SLP load group properly.
14151 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14152 all permutations we can generate.
14153 (vect_transform_slp_perm_load): Use the correct group-size.
14155 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14157 * genmatch.c (expr::gen_transform): For conditions, guess the type
14158 from the second operand.
14160 2015-06-08 Tom de Vries <tom@codesourcery.com>
14162 PR tree-optimization/66442
14163 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14164 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14165 if the loop latch is not a singleton. Use
14166 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14168 2015-06-08 Marek Polacek <polacek@redhat.com>
14171 * toplev.c (check_global_declaration): Don't warn about artificial
14174 2015-06-08 Tom de Vries <tom@codesourcery.com>
14176 PR tree-optimization/66436
14177 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14179 * gimplify.c: Add tree-dump.h include.
14180 (gimplify_function_tree): Dump function to gimple dump file.
14181 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14184 2015-06-08 Tom de Vries <tom@codesourcery.com>
14186 PR tree-optimization/66435
14187 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14190 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14192 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14193 of ptr_type_node to not be ptr_to_node.
14194 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14195 TREE_TYPE of pointers.
14196 * gimple-expr.c (useless_type_conversion): Reorder the check for
14197 function pointers and TYPE_CANONICAL.
14199 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14202 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14203 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14204 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14206 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14207 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14208 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14209 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14210 and non iso if unix2003.
14212 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14214 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14216 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14218 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14219 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14220 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14221 except.c, final.c, function.c, gcse-common.c, genemit.c,
14222 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14223 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14224 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14225 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14228 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14230 * combine.c (combine_split_insns): Remove cast.
14231 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14232 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14233 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14234 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14235 * genemit.c (gen_split): Change return type of generated functions to
14237 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14238 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14239 gen_peephole2_* functions.
14240 (print_subroutine, main): Likewise.
14241 * recog.c (peephole2_optimize): Remove cast.
14242 (peep2_next_insn): Promote return type to rtx_insn.
14243 * recog.h (peep2_next_insn): Fix prototype.
14244 * rtl.h (try_split, split_insns): Likewise.
14246 2015-06-06 DJ Delorie <dj@redhat.com>
14248 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14249 and subtraction too.
14251 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14254 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14255 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14256 instead of Snd. Disparage Sid/z alternative with '^'.
14258 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14260 * dwarf2out.c: Remove deferred_locations*.
14261 (dwarf2_debug_hooks): Add early_finish hook.
14262 Remove global_decl hook.
14263 Add early_global_decl and late_global_decl hook.
14264 New global early_dwarf.
14265 New structure set_early_dwarf.
14266 (output_die): Indicate whether a DIE was generated early
14267 when generating assembly with -dA.
14268 (struct limbo_die_struct): Document created_for field.
14269 Remove file_table_last_lookup.
14270 (remove_AT): Return TRUE if successful.
14271 (remove_child_TAG): Clear die_parent.
14272 (reparent_child): New function abstracted from...
14273 (splice_child_die): ...here.
14274 (new_die): ICE if a DIE ends up in limbo too late.
14276 (defer_location): Remove.
14277 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14278 (fill_variable_array_bounds): New.
14279 (decl_start_label): Call fill_variable_array_bounds.
14280 (gen_formal_parameter_die): Rewrite to reuse previously generated
14282 (gen_subprogram_die): Same.
14283 (gen_variable_die): Same.
14284 (gen_const_die): Same.
14285 (gen_label_die): Same.
14286 (gen_lexical_block_die): Same.
14287 (decl_will_get_specification_p): New.
14288 (local_function_static): New.
14289 (gen_struct_or_union_type_die): Fill in variable-length fields.
14290 (gen_typedef_die): Fill in variable-length typedefs.
14291 (gen_tagged_type_die): Gracefully return on error_mark_node.
14292 Handle re-entrancy.
14293 (gen_type_die_with_usage): Handle variable-length types.
14294 Remove duplicate code for ARRAY_TYPE case.
14295 (process_scope_var): Only process imported modules during early
14297 (dwarf2out_early_global_decl): New.
14298 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14299 (dwarf2out_type_decl): Set early_dwarf while calling
14301 (dwarf2out_decl): Verify that we did not recreate a previously
14303 Do not return on DECL_EXTERNALs in VAR_DECLs.
14304 Abstract some code to local_function_static.
14305 (lookup_filename): Remove use of file_table_last_lookup.
14306 Gracefully exit on missing file_name.
14307 (dwarf2out_finish): Verify limbo list.
14308 Remove deferred_locations_list use.
14309 Move deferred_asm_name and limbo flushing to...
14310 (dwarf2out_early_finish): ...here. New.
14311 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14312 deferred_asm_name, and file_table_last_lookup.
14313 * cgraph.h (referred_to_p): Add default argument.
14314 * cgraphunit.c (referred_to_p): Add and handle include_self
14316 (analyze_functions): Add first_time argument.
14317 Call check_global_declaration for all symbols.
14318 Call late_global_decl for nodes for moribund nodes.
14319 (finalize_compilation_unit): Add new argument to
14321 Call early_global_decl for functions.
14322 Call early_finish debug hook.
14323 * dbxout.c (dbxout_early_global_decl): New.
14324 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14325 (dbx_debug_hooks): Add new hooks.
14326 (xcoff_debug_hooks): Same.
14327 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14328 Add early and late debug hooks.
14329 Remove global_decl hook.
14330 * debug.h (struct gcc_debug_hooks): Add early_finish,
14331 early_global_decl, and late_global_decl fields.
14332 Remove global_decl field.
14333 Document gcc_debug_hooks.
14334 * gengtype.c (output_typename): Remove.
14335 * godump.c (go_early_global_decl): New.
14336 (go_late_global_decl): New.
14337 (go_global_decl): Remove.
14338 (dump_go_spec_init): Remove global_decl. Add
14339 {early,late}_global_decl.
14340 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14341 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14342 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14343 (write_global_declarations): Remove.
14344 (global_decl_processing): New.
14345 * langhooks.h (struct lang_hooks_for_decls): Remove
14346 final_write_globals field.
14347 Add post_compilation_parsing_cleanups field.
14348 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14349 * sdbout.c: Add early and late_global_decl hooks. Remove
14350 sdbout_global_decl hook.
14351 Add early_finish field for sdb_debug_hooks.
14352 (sdbout_global_decl): Remove.
14353 (sdbout_early_global_decl): New.
14354 (sdbout_late_global_decl): New.
14355 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14356 * toplev.c (check_global_declaration): Rename from
14357 check_global_declaration_1.
14358 Adapt to use symtab infrastructure.
14359 (check_global_declarations): Remove.
14360 (emit_debug_global_declarations): Remove.
14361 (compile_file): Remove call to final_write_globals langhook.
14362 Run the actual compilation process.
14363 Perform any post compilation parser cleanups.
14364 Generate late debug info.
14365 * toplev.h (check_global_declaration): New.
14366 (check_global_declaration_1): Remove.
14367 (check_global_declarations): Remove.
14368 (write_global_declarations): Remove.
14369 (emit_debug_global_declarations): Remove.
14370 (global_decl_processing): New.
14371 * tree-core.h (struct tree_block): Add DIE field.
14372 * tree.h (BLOCK_DIE): New.
14373 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14375 (vmsdbgout_early_global_decl): New.
14376 (vmsdbgout_late_global_decl): New.
14377 Add early_finish debug hook field to vmsdbg_debug_hooks.
14378 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14379 Add early and late_global_decl debug hooks.
14381 2015-06-05 Julian Brown <julian@codesourcery.com>
14382 Sandra Loosemore <sandra@codesourcery.com>
14384 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14385 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14386 to print-sysroot-suffix.sh script.
14388 2015-06-05 Tom de Vries <tom@codesourcery.com>
14390 merge from gomp4 branch:
14391 2015-05-28 Tom de Vries <tom@codesourcery.com>
14393 PR tree-optimization/65443
14394 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14395 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14396 (try_transform_to_exit_first_loop_alt): New function.
14397 (transform_to_exit_first_loop): Use
14398 try_transform_to_exit_first_loop_alt.
14400 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14402 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14403 emit_cmp_and_jump_insns with the mode of target.
14405 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14407 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14409 2015-06-04 DJ Delorie <dj@redhat.com>
14411 * config/msp430/msp430.md (movsi_s): New. Special case for
14412 storing a 20-bit symbol into a 32-bit register.
14413 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14414 * config/msp430/predicates.md (msp430_symbol_operand): New.
14416 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14418 * c-family/c-common.c (noplt): New attribute.
14419 (handle_noplt_attribute): New handler.
14420 * calls.c (prepare_call_address): Check for noplt
14422 * config/i386/i386.c (ix86_expand_call): Check
14423 for noplt attribute.
14424 (ix86_nopic_noplt_attribute_p): New function.
14425 (ix86_output_call_insn): Output indirect call for non-pic
14427 * doc/extend.texi (noplt): Document new attribute.
14428 * doc/invoke.texi: Document new attribute.
14430 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14432 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14433 real.h, and fixed-value.h when included in host source files.
14434 * double-int.h: Remove redundant #includes listed above.
14435 * fixed-value.h: Likewise.
14436 * real.h: Likewise.
14437 * wide-int.h: Likewise.
14438 * inchash.h: Likewise.
14439 * rtl.h: Add some include files When included from a generator file.
14440 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14441 * internal-fn.h: Don't include coretypes.h.
14442 * alias.c: Adjust includes for restructured coretypes.h.
14443 * asan.c: Likewise.
14444 * attribs.c: Likewise.
14445 * auto-inc-dec.c: Likewise.
14446 * auto-profile.c: Likewise.
14447 * bb-reorder.c: Likewise.
14448 * bt-load.c: Likewise.
14449 * builtins.c: Likewise.
14450 * caller-save.c: Likewise.
14451 * calls.c: Likewise.
14452 * ccmp.c: Likewise.
14454 * cfganal.c: Likewise.
14455 * cfgbuild.c: Likewise.
14456 * cfgcleanup.c: Likewise.
14457 * cfgexpand.c: Likewise.
14458 * cfghooks.c: Likewise.
14459 * cfgloop.c: Likewise.
14460 * cfgloop.h: Likewise.
14461 * cfgloopanal.c: Likewise.
14462 * cfgloopmanip.c: Likewise.
14463 * cfgrtl.c: Likewise.
14464 * cgraph.c: Likewise.
14465 * cgraphbuild.c: Likewise.
14466 * cgraphclones.c: Likewise.
14467 * cgraphunit.c: Likewise.
14468 * cilk-common.c: Likewise.
14469 * combine-stack-adj.c: Likewise.
14470 * combine.c: Likewise.
14471 * compare-elim.c: Likewise.
14472 * convert.c: Likewise.
14473 * coverage.c: Likewise.
14474 * cppbuiltin.c: Likewise.
14475 * cprop.c: Likewise.
14477 * cselib.c: Likewise.
14478 * data-streamer-in.c: Likewise.
14479 * data-streamer-out.c: Likewise.
14480 * data-streamer.c: Likewise.
14481 * dbxout.c: Likewise.
14484 * debug.c: Likewise.
14485 * df-core.c: Likewise.
14486 * df-problems.c: Likewise.
14487 * df-scan.c: Likewise.
14490 * dojump.c: Likewise.
14491 * dominance.c: Likewise.
14492 * domwalk.c: Likewise.
14493 * double-int.c: Likewise.
14495 * dumpfile.c: Likewise.
14496 * dwarf2asm.c: Likewise.
14497 * dwarf2cfi.c: Likewise.
14498 * dwarf2out.c: Likewise.
14499 * dwarf2out.h: Likewise.
14500 * emit-rtl.c: Likewise.
14501 * et-forest.c: Likewise.
14502 * except.c: Likewise.
14503 * explow.c: Likewise.
14504 * expmed.c: Likewise.
14505 * expr.c: Likewise.
14506 * final.c: Likewise.
14507 * fixed-value.c: Likewise.
14508 * fold-const.c: Likewise.
14509 * function.c: Likewise.
14510 * fwprop.c: Likewise.
14511 * gcc-plugin.h: Likewise.
14512 * gcse.c: Likewise.
14513 * generic-match-head.c: Likewise.
14514 * ggc-page.c: Likewise.
14515 * gimple-builder.c: Likewise.
14516 * gimple-expr.c: Likewise.
14517 * gimple-fold.c: Likewise.
14518 * gimple-iterator.c: Likewise.
14519 * gimple-low.c: Likewise.
14520 * gimple-match-head.c: Likewise.
14521 * gimple-pretty-print.c: Likewise.
14522 * gimple-ssa-isolate-paths.c: Likewise.
14523 * gimple-ssa-strength-reduction.c: Likewise.
14524 * gimple-streamer-in.c: Likewise.
14525 * gimple-streamer-out.c: Likewise.
14526 * gimple-streamer.h: Likewise.
14527 * gimple-walk.c: Likewise.
14528 * gimple.c: Likewise.
14529 * gimplify-me.c: Likewise.
14530 * gimplify.c: Likewise.
14531 * godump.c: Likewise.
14532 * graph.c: Likewise.
14533 * graphite-blocking.c: Likewise.
14534 * graphite-dependences.c: Likewise.
14535 * graphite-interchange.c: Likewise.
14536 * graphite-isl-ast-to-gimple.c: Likewise.
14537 * graphite-optimize-isl.c: Likewise.
14538 * graphite-poly.c: Likewise.
14539 * graphite-scop-detection.c: Likewise.
14540 * graphite-sese-to-poly.c: Likewise.
14541 * graphite.c: Likewise.
14542 * haifa-sched.c: Likewise.
14543 * hooks.h: Likewise.
14544 * hw-doloop.c: Likewise.
14545 * ifcvt.c: Likewise.
14546 * incpath.c: Likewise.
14547 * init-regs.c: Likewise.
14548 * internal-fn.c: Likewise.
14549 * ipa-chkp.c: Likewise.
14550 * ipa-comdats.c: Likewise.
14551 * ipa-cp.c: Likewise.
14552 * ipa-devirt.c: Likewise.
14553 * ipa-icf-gimple.c: Likewise.
14554 * ipa-icf.c: Likewise.
14555 * ipa-inline-analysis.c: Likewise.
14556 * ipa-inline-transform.c: Likewise.
14557 * ipa-inline.c: Likewise.
14558 * ipa-polymorphic-call.c: Likewise.
14559 * ipa-profile.c: Likewise.
14560 * ipa-prop.c: Likewise.
14561 * ipa-pure-const.c: Likewise.
14562 * ipa-ref.c: Likewise.
14563 * ipa-reference.c: Likewise.
14564 * ipa-split.c: Likewise.
14565 * ipa-utils.c: Likewise.
14566 * ipa-visibility.c: Likewise.
14568 * ira-build.c: Likewise.
14569 * ira-color.c: Likewise.
14570 * ira-conflicts.c: Likewise.
14571 * ira-costs.c: Likewise.
14572 * ira-emit.c: Likewise.
14573 * ira-lives.c: Likewise.
14575 * jump.c: Likewise.
14576 * langhooks.c: Likewise.
14578 * loop-doloop.c: Likewise.
14579 * loop-init.c: Likewise.
14580 * loop-invariant.c: Likewise.
14581 * loop-iv.c: Likewise.
14582 * loop-unroll.c: Likewise.
14583 * lower-subreg.c: Likewise.
14584 * lra-assigns.c: Likewise.
14585 * lra-coalesce.c: Likewise.
14586 * lra-constraints.c: Likewise.
14587 * lra-eliminations.c: Likewise.
14588 * lra-lives.c: Likewise.
14589 * lra-remat.c: Likewise.
14590 * lra-spills.c: Likewise.
14592 * lto-cgraph.c: Likewise.
14593 * lto-compress.c: Likewise.
14594 * lto-opts.c: Likewise.
14595 * lto-section-in.c: Likewise.
14596 * lto-section-out.c: Likewise.
14597 * lto-streamer-in.c: Likewise.
14598 * lto-streamer-out.c: Likewise.
14599 * lto-streamer.c: Likewise.
14601 * mode-switching.c: Likewise.
14602 * modulo-sched.c: Likewise.
14603 * omega.c: Likewise.
14604 * omp-low.c: Likewise.
14605 * optabs.c: Likewise.
14606 * opts-global.c: Likewise.
14607 * passes.c: Likewise.
14608 * plugin.c: Likewise.
14609 * postreload-gcse.c: Likewise.
14610 * postreload.c: Likewise.
14611 * predict.c: Likewise.
14612 * print-rtl.c: Likewise.
14613 * print-tree.c: Likewise.
14614 * profile.c: Likewise.
14615 * real.c: Likewise.
14616 * realmpfr.c: Likewise.
14617 * realmpfr.h: Likewise.
14618 * recog.c: Likewise.
14620 * reg-stack.c: Likewise.
14621 * regcprop.c: Likewise.
14622 * reginfo.c: Likewise.
14623 * regrename.c: Likewise.
14624 * regs.h: Likewise.
14625 * regstat.c: Likewise.
14626 * reload.c: Likewise.
14627 * reload1.c: Likewise.
14628 * reorg.c: Likewise.
14629 * resource.c: Likewise.
14630 * rtl-chkp.c: Likewise.
14631 * rtlanal.c: Likewise.
14632 * rtlhooks.c: Likewise.
14633 * sanopt.c: Likewise.
14634 * sched-deps.c: Likewise.
14635 * sched-ebb.c: Likewise.
14636 * sched-rgn.c: Likewise.
14637 * sched-vis.c: Likewise.
14638 * sdbout.c: Likewise.
14639 * sel-sched-dump.c: Likewise.
14640 * sel-sched-ir.c: Likewise.
14641 * sel-sched.c: Likewise.
14642 * sese.c: Likewise.
14643 * shrink-wrap.c: Likewise.
14644 * shrink-wrap.h: Likewise.
14645 * simplify-rtx.c: Likewise.
14646 * stack-ptr-mod.c: Likewise.
14647 * statistics.c: Likewise.
14648 * stmt.c: Likewise.
14649 * stor-layout.c: Likewise.
14650 * store-motion.c: Likewise.
14651 * stringpool.c: Likewise.
14652 * symtab.c: Likewise.
14653 * target-globals.c: Likewise.
14654 * targhooks.c: Likewise.
14655 * toplev.c: Likewise.
14656 * tracer.c: Likewise.
14657 * trans-mem.c: Likewise.
14658 * tree-affine.c: Likewise.
14659 * tree-affine.h: Likewise.
14660 * tree-browser.c: Likewise.
14661 * tree-call-cdce.c: Likewise.
14662 * tree-cfg.c: Likewise.
14663 * tree-cfgcleanup.c: Likewise.
14664 * tree-chkp-opt.c: Likewise.
14665 * tree-chkp.c: Likewise.
14666 * tree-chrec.c: Likewise.
14667 * tree-complex.c: Likewise.
14668 * tree-data-ref.c: Likewise.
14669 * tree-dfa.c: Likewise.
14670 * tree-diagnostic.c: Likewise.
14671 * tree-dump.c: Likewise.
14672 * tree-eh.c: Likewise.
14673 * tree-emutls.c: Likewise.
14674 * tree-if-conv.c: Likewise.
14675 * tree-inline.c: Likewise.
14676 * tree-into-ssa.c: Likewise.
14677 * tree-iterator.c: Likewise.
14678 * tree-loop-distribution.c: Likewise.
14679 * tree-nested.c: Likewise.
14680 * tree-nrv.c: Likewise.
14681 * tree-object-size.c: Likewise.
14682 * tree-outof-ssa.c: Likewise.
14683 * tree-parloops.c: Likewise.
14684 * tree-phinodes.c: Likewise.
14685 * tree-predcom.c: Likewise.
14686 * tree-pretty-print.c: Likewise.
14687 * tree-pretty-print.h: Likewise.
14688 * tree-profile.c: Likewise.
14689 * tree-scalar-evolution.c: Likewise.
14690 * tree-sra.c: Likewise.
14691 * tree-ssa-address.c: Likewise.
14692 * tree-ssa-alias.c: Likewise.
14693 * tree-ssa-ccp.c: Likewise.
14694 * tree-ssa-coalesce.c: Likewise.
14695 * tree-ssa-copy.c: Likewise.
14696 * tree-ssa-copyrename.c: Likewise.
14697 * tree-ssa-dce.c: Likewise.
14698 * tree-ssa-dom.c: Likewise.
14699 * tree-ssa-dse.c: Likewise.
14700 * tree-ssa-forwprop.c: Likewise.
14701 * tree-ssa-ifcombine.c: Likewise.
14702 * tree-ssa-live.c: Likewise.
14703 * tree-ssa-loop-ch.c: Likewise.
14704 * tree-ssa-loop-im.c: Likewise.
14705 * tree-ssa-loop-ivcanon.c: Likewise.
14706 * tree-ssa-loop-ivopts.c: Likewise.
14707 * tree-ssa-loop-manip.c: Likewise.
14708 * tree-ssa-loop-niter.c: Likewise.
14709 * tree-ssa-loop-prefetch.c: Likewise.
14710 * tree-ssa-loop-unswitch.c: Likewise.
14711 * tree-ssa-loop.c: Likewise.
14712 * tree-ssa-loop.h: Likewise.
14713 * tree-ssa-math-opts.c: Likewise.
14714 * tree-ssa-operands.c: Likewise.
14715 * tree-ssa-phiopt.c: Likewise.
14716 * tree-ssa-phiprop.c: Likewise.
14717 * tree-ssa-pre.c: Likewise.
14718 * tree-ssa-propagate.c: Likewise.
14719 * tree-ssa-reassoc.c: Likewise.
14720 * tree-ssa-sccvn.c: Likewise.
14721 * tree-ssa-scopedtables.c: Likewise.
14722 * tree-ssa-sink.c: Likewise.
14723 * tree-ssa-strlen.c: Likewise.
14724 * tree-ssa-structalias.c: Likewise.
14725 * tree-ssa-tail-merge.c: Likewise.
14726 * tree-ssa-ter.c: Likewise.
14727 * tree-ssa-threadedge.c: Likewise.
14728 * tree-ssa-threadupdate.c: Likewise.
14729 * tree-ssa-uncprop.c: Likewise.
14730 * tree-ssa-uninit.c: Likewise.
14731 * tree-ssa.c: Likewise.
14732 * tree-ssanames.c: Likewise.
14733 * tree-stdarg.c: Likewise.
14734 * tree-streamer-in.c: Likewise.
14735 * tree-streamer-out.c: Likewise.
14736 * tree-streamer.c: Likewise.
14737 * tree-switch-conversion.c: Likewise.
14738 * tree-tailcall.c: Likewise.
14739 * tree-vect-data-refs.c: Likewise.
14740 * tree-vect-generic.c: Likewise.
14741 * tree-vect-loop-manip.c: Likewise.
14742 * tree-vect-loop.c: Likewise.
14743 * tree-vect-patterns.c: Likewise.
14744 * tree-vect-slp.c: Likewise.
14745 * tree-vect-stmts.c: Likewise.
14746 * tree-vectorizer.c: Likewise.
14747 * tree-vrp.c: Likewise.
14748 * tree.c: Likewise.
14749 * tsan.c: Likewise.
14750 * ubsan.c: Likewise.
14751 * valtrack.c: Likewise.
14752 * value-prof.c: Likewise.
14753 * var-tracking.c: Likewise.
14754 * varasm.c: Likewise.
14755 * varpool.c: Likewise.
14756 * vmsdbgout.c: Likewise.
14757 * vtable-verify.c: Likewise.
14759 * wide-int-print.cc: Likewise.
14760 * wide-int-print.h: Likewise.
14761 * wide-int.cc: Likewise.
14762 * xcoffout.c: Likewise.
14763 * config/aarch64/aarch64-builtins.c: Likewise.
14764 * config/aarch64/aarch64.c: Likewise.
14765 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14766 * config/alpha/alpha.c: Likewise.
14767 * config/arc/arc.c: Likewise.
14768 * config/arm/aarch-common.c: Likewise.
14769 * config/arm/arm-builtins.c: Likewise.
14770 * config/arm/arm-c.c: Likewise.
14771 * config/arm/arm.c: Likewise.
14772 * config/avr/avr-c.c: Likewise.
14773 * config/avr/avr-log.c: Likewise.
14774 * config/avr/avr.c: Likewise.
14775 * config/bfin/bfin.c: Likewise.
14776 * config/c6x/c6x.c: Likewise.
14777 * config/cr16/cr16.c: Likewise.
14778 * config/cris/cris.c: Likewise.
14779 * config/darwin-c.c: Likewise.
14780 * config/darwin.c: Likewise.
14781 * config/default-c.c: Likewise.
14782 * config/epiphany/epiphany.c: Likewise.
14783 * config/epiphany/mode-switch-use.c: Likewise.
14784 * config/epiphany/resolve-sw-modes.c: Likewise.
14785 * config/fr30/fr30.c: Likewise.
14786 * config/frv/frv.c: Likewise.
14787 * config/ft32/ft32.c: Likewise.
14788 * config/glibc-c.c: Likewise.
14789 * config/h8300/h8300.c: Likewise.
14790 * config/i386/i386-c.c: Likewise.
14791 * config/i386/i386.c: Likewise.
14792 * config/i386/msformat-c.c: Likewise.
14793 * config/i386/winnt-cxx.c: Likewise.
14794 * config/i386/winnt-stubs.c: Likewise.
14795 * config/i386/winnt.c: Likewise.
14796 * config/ia64/ia64-c.c: Likewise.
14797 * config/ia64/ia64.c: Likewise.
14798 * config/iq2000/iq2000.c: Likewise.
14799 * config/lm32/lm32.c: Likewise.
14800 * config/m32c/m32c-pragma.c: Likewise.
14801 * config/m32c/m32c.c: Likewise.
14802 * config/m32r/m32r.c: Likewise.
14803 * config/m68k/m68k.c: Likewise.
14804 * config/mcore/mcore.c: Likewise.
14805 * config/mep/mep-pragma.c: Likewise.
14806 * config/mep/mep.c: Likewise.
14807 * config/microblaze/microblaze-c.c: Likewise.
14808 * config/microblaze/microblaze.c: Likewise.
14809 * config/mips/mips.c: Likewise.
14810 * config/mmix/mmix.c: Likewise.
14811 * config/mn10300/mn10300.c: Likewise.
14812 * config/moxie/moxie.c: Likewise.
14813 * config/msp430/msp430-c.c: Likewise.
14814 * config/msp430/msp430.c: Likewise.
14815 * config/nds32/nds32-cost.c: Likewise.
14816 * config/nds32/nds32-fp-as-gp.c: Likewise.
14817 * config/nds32/nds32-intrinsic.c: Likewise.
14818 * config/nds32/nds32-isr.c: Likewise.
14819 * config/nds32/nds32-md-auxiliary.c: Likewise.
14820 * config/nds32/nds32-memory-manipulation.c: Likewise.
14821 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14822 * config/nds32/nds32-predicates.c: Likewise.
14823 * config/nds32/nds32.c: Likewise.
14824 * config/nios2/nios2.c: Likewise.
14825 * config/nvptx/nvptx.c: Likewise.
14826 * config/pa/pa.c: Likewise.
14827 * config/pdp11/pdp11.c: Likewise.
14828 * config/rl78/rl78-c.c: Likewise.
14829 * config/rl78/rl78.c: Likewise.
14830 * config/rs6000/rs6000-c.c: Likewise.
14831 * config/rs6000/rs6000.c: Likewise.
14832 * config/rx/rx.c: Likewise.
14833 * config/s390/s390-c.c: Likewise.
14834 * config/s390/s390.c: Likewise.
14835 * config/sh/sh-c.c: Likewise.
14836 * config/sh/sh-mem.cc: Likewise.
14837 * config/sh/sh.c: Likewise.
14838 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14839 * config/sh/sh_treg_combine.cc: Likewise.
14840 * config/sol2-c.c: Likewise.
14841 * config/sol2-cxx.c: Likewise.
14842 * config/sol2-stubs.c: Likewise.
14843 * config/sol2.c: Likewise.
14844 * config/sparc/sparc-c.c: Likewise.
14845 * config/sparc/sparc.c: Likewise.
14846 * config/spu/spu-c.c: Likewise.
14847 * config/spu/spu.c: Likewise.
14848 * config/stormy16/stormy16.c: Likewise.
14849 * config/tilegx/mul-tables.c: Likewise.
14850 * config/tilegx/tilegx-c.c: Likewise.
14851 * config/tilegx/tilegx.c: Likewise.
14852 * config/tilepro/mul-tables.c: Likewise.
14853 * config/tilepro/tilepro-c.c: Likewise.
14854 * config/tilepro/tilepro.c: Likewise.
14855 * config/v850/v850-c.c: Likewise.
14856 * config/v850/v850.c: Likewise.
14857 * config/vax/vax.c: Likewise.
14858 * config/visium/visium.c: Likewise.
14859 * config/vms/vms-c.c: Likewise.
14860 * config/vms/vms.c: Likewise.
14861 * config/vxworks.c: Likewise.
14862 * config/winnt-c.c: Likewise.
14863 * config/xtensa/xtensa.c: Likewise.
14864 * common/config/bfin/bfin-common.c: Likewise.
14866 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
14868 * tree.h (tree_code_for_canonical_type_merging): New function.
14869 * tree.c (gimple_canonical_types_compatible_p): Use
14870 tree_code_for_canonical_type_merging..
14872 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14876 * doc/tm.texi: Regenerate.
14877 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14878 * target.def (TARGET_RELAXED_ORDERING): Likewise.
14879 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14880 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14881 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14882 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14883 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14884 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14885 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14887 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14889 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14890 register fma steering pass.
14891 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14892 AARCH64_TUNE_FMA_STEERING.
14894 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
14896 * tree.c (verify_type_variant): Verify that type and variant is
14898 (gimple_canonical_types_compatible_p): Look for main variants.
14900 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14902 * config.gcc (powerpc*-*-*): Add support for a new configure
14903 option --with-advance-toolchain=<xxx> which overrides using the
14904 default header files, libraries and dynamic linker.
14906 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14907 specs to support the configure --with-advance-toolchain=<xxx>
14909 (INCLUDE_EXTRA_SPEC): Likewise.
14910 (LINK_OS_EXTRA_SPEC32): Likewise.
14911 (LINK_OK_EXTRA_SPEC64): Likewise.
14912 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14913 (DYNAMIC_LINKER_PREFIX): Likewise.
14914 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14916 (GLIBC_DYNAMIC_LINKER32): Likewise.
14917 (GLIBC_DYNAMIC_LINKER64): Likewise.
14918 (LINK_OS_LINUX_SPEC32): Likewise.
14919 (LINK_OS_LINUX_SPEC64): Likewise.
14921 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14922 configuration option.
14924 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
14927 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14928 to determine current function ABI.
14929 (ix86_function_value_regno_p): Ditto.
14931 2015-06-03 Martin Liska <mliska@suse.cz>
14933 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14934 * bitmap.h (struct bitmap_usage): Likewise.
14935 * ggc-common.c (struct ggc_usage): Likewise.
14936 * mem-stats.h (struct mem_location): Likewise.
14937 (struct mem_usage): Likewise.
14938 * vec.c (struct vec_usage): Likewise.
14940 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
14942 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14945 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
14947 * doc/plugins.texi (enum plugin_event): New event.
14948 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14949 and PLUGIN_FINISH_FUNCTION.
14950 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14951 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14953 2015-06-03 Richard Biener <rguenther@suse.de>
14955 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14956 compute GROUP_GAP for the first element.
14957 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14960 2015-06-03 Nick Clifton <nickc@redhat.com>
14962 * config/rl78/rl78-real.md: Add peepholes to avoid a register
14963 copy when calling a function.
14964 * config/rl78/rl78.c (need_to_save): Do not push the frame
14965 pointer in an interrupt handler prologue if it is never used.
14967 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14969 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14971 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14973 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14974 reference when cloning alias node.
14976 2015-06-03 Martin Liska <mliska@suse.cz>
14978 * alloc-pool.h (struct pool_usage): Correct space padding.
14979 * ggc-page.c (ggc_print_statistics): Align columns in a report.
14980 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14981 * tree.c (dump_tree_statistics): Align columns in a report.
14983 2015-06-03 Martin Liska <mliska@suse.cz>
14985 * alloc-pool.c (allocate_pool_descriptor): Remove.
14986 (struct pool_output_info): Likewise.
14987 (print_alloc_pool_statistics): Likewise.
14988 (dump_alloc_pool_statistics): Likewise.
14989 * alloc-pool.h (struct pool_usage): New struct.
14990 (pool_allocator::initialize): Change usage of memory statistics
14991 to a new interface.
14992 (pool_allocator::release): Likewise.
14993 (pool_allocator::allocate): Likewise.
14994 (pool_allocator::remove): Likewise.
14995 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14996 for a pool allocator.
14997 * mem-stats.h (struct mem_location): Add new ctor.
14998 (struct mem_usage): Add counter for number of
15000 (mem_alloc_description::register_descriptor): New overload of
15001 * mem-stats.h (mem_location::to_string): New function.
15002 * bitmap.h (struct bitmap_usage): Use this new function.
15003 * ggc-common.c (struct ggc_usage): Likewise.
15006 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15008 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15009 of GCC_INSN_FLAGS_H block.
15011 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15013 * explow.c (plus_constant): Update check after force_const_mem call
15014 to see if the value returned is not a NULL_RTX.
15016 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15018 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15019 remove instumentation thunks calling reachable functions.
15020 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15021 * lto/lto-partition.c (privatize_symbol_name_1): New.
15022 (privatize_symbol_name): Privatize both decl and orig_decl
15023 names for instrumented functions.
15024 * cgraph.c (cgraph_node::verify_node): Add transparent
15025 alias chain check for instrumented node.
15027 2015-06-03 Marek Polacek <polacek@redhat.com>
15031 * tree.c (attribute_value_equal): Handle attribute format.
15032 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15034 2015-06-03 Richard Biener <rguenther@suse.de>
15036 PR tree-optimization/63916
15037 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15038 Forward-propagate non-invariant addresses by splicing their
15039 reference ops if the result isn't going to be used by PRE.
15040 (vn_reference_lookup_3): Remove pointless assert.
15042 2015-06-03 Richard Biener <rguenther@suse.de>
15044 PR tree-optimization/66375
15045 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15046 add to the evolution before following SSA edges.
15048 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15050 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15051 (dump_use, dump_cand, find_induction_variables): Pass new argument
15053 (record_use): Preserve the ssa name information in IV.
15055 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15057 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15059 (add_mode_tests): Don't add mode tests if the predicate only
15060 accepts scalar constant integers. Otherwise, allow the mode
15061 of "op" to be VOIDmode if the predicate does accept such integers.
15063 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15066 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15067 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15068 (aarch64_secondary_reload): Likewise
15069 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15071 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15074 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15075 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15078 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15080 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15082 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15083 provide access to the IBM extended double floating point mode if
15084 long double is IEEE 128-bit floating point.
15085 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15086 point if long double is the IBM extended double type.
15088 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15089 enable adding IEEE 128-bit floating point support.
15090 (-mfloat128-software): Likewise.
15091 (-mfloat128-sw): Likewise.
15093 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15094 128-bit floating point types to occupy any register if
15095 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15096 -mfloat128-software is enabled.
15097 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15099 (rs6000_option_override_internal): Add -mfloat128-* support.
15100 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15102 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15103 and float128 type nodes.
15104 (ieee128_float_type_node): Likewise.
15105 (ibm128_float_type_node): Likewise.
15107 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15110 * config/aarch64/geniterators.sh: Rewrite in awk.
15112 2015-06-02 Martin Liska <mliska@suse.cz>
15114 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15115 values to avoid -Wmaybe-uninitialized errors.
15117 2015-06-02 Richard Biener <rguenther@suse.de>
15120 * dwarf2out.c (lookup_context_die): New function.
15121 (resolve_addr): Avoid forcing a full DIE for the
15122 target of a DW_TAG_GNU_call_site during late compilation.
15123 Instead create a stub DIE without a type if we have a
15124 context DIE present.
15126 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15128 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15130 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15132 PR tree-optimization/48052
15133 * cfgloop.h (struct control_iv): New.
15134 (struct loop): New field control_ivs.
15135 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15136 (number_of_iterations_lt): Set no_overflow information.
15137 (number_of_iterations_exit): Init control iv in niter struct.
15138 (record_control_iv): New.
15139 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15140 (loop_exits_before_overflow): New. Interface factored out of
15141 scev_probably_wraps_p.
15142 (scev_probably_wraps_p): Factor loop niter related code into
15143 loop_exits_before_overflow.
15144 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15145 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15147 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15149 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15150 the target doesn't belong to the current function.
15152 2015-06-02 Marek Polacek <polacek@redhat.com>
15154 PR middle-end/66345
15155 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15156 get_maxval_strlen does not produce an INTEGER_CST.
15158 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15160 * config/arc/constraints.md: Use lower-case names in match_code.
15161 * config/mmix/constraints.md: Likewise.
15163 2015-06-02 Richard Biener <rguenther@suse.de>
15165 PR tree-optimization/65961
15166 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15167 check and clarify dump message.
15168 (vect_build_slp_tree): If all children are built up from scalars
15169 build up the parent from scalars instead.
15170 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15172 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15175 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15176 instead of print ... .
15178 2015-06-02 Alan Modra <amodra@gmail.com>
15180 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15183 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15185 PR tree-optimization/52563
15186 PR tree-optimization/62173
15187 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15188 (alloc_iv, set_iv): New parameter.
15189 (determine_biv_step): Delete.
15190 (find_bivs): Inline original determine_biv_step. Pass new
15191 argument to set_iv.
15192 (idx_find_step): Use no_overflow information for conversion.
15193 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15194 resolve_mixers handle folded_casts.
15195 (instantiate_scev_name): Change bool parameter to bool pointer.
15196 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15197 (instantiate_array_ref, instantiate_scev_not): Ditto.
15198 (instantiate_scev_3, instantiate_scev_2): Ditto.
15199 (instantiate_scev_1, instantiate_scev_r): Ditto.
15200 (instantiate_scev_convert, ): Change parameter. Pass argument
15201 to chrec_convert_aggressive.
15202 (instantiate_scev): Change argument.
15203 (resolve_mixers): New parameter and set it.
15204 (scev_const_prop): New argument.
15205 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15206 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15208 (chrec_convert): New parameter. Move definition below.
15209 (chrec_convert_aggressive): New parameter and set it. Call
15210 convert_affine_scev.
15211 * tree-chrec.h (chrec_convert): New parameter.
15212 (chrec_convert_aggressive): Ditto.
15214 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15216 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15217 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15218 the LHS of a no-return call if its type has variable size.
15219 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15220 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15222 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15224 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15225 * config.in: Regenerate.
15227 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15229 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15230 consecutive accesses within outer-loop with force_vectorize
15231 for references with zero step in inner-loop.
15233 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15235 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15236 rather than from gcc/build directory.
15238 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15241 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15242 for __sync memory models, emit initial loads and final barriers as
15245 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15248 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15249 (aarch64_split_atomic_op): Check for __sync memory models, emit
15250 appropriate initial loads and final barriers.
15252 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15254 * Makefile.in: Fix gcov dependencies that should
15255 not point to a build folder.
15257 2015-06-01 Richard Biener <rguenther@suse.de>
15260 2015-05-29 Richard Biener <rguenther@suse.de>
15262 PR tree-optimization/66314
15263 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15264 parameter that says which loop the new block belongs to.
15265 (ssa_create_duplicates): Blocks duplicated for the threaded
15266 path belong to the loop of the thread destination.
15268 2015-06-01 Martin Liska <mliska@suse.cz>
15270 * sched-deps.c: Include pool-alloc.h before
15271 cselib.h header file is included.
15273 2015-06-01 Richard Biener <rguenther@suse.de>
15275 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15278 2015-06-01 Martin Liska <mliska@suse.cz>
15280 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15281 a function local variable.
15283 2015-06-01 Martin Liska <mliska@suse.cz>
15285 * alloc-pool.c (create_alloc_pool): Remove.
15286 (empty_alloc_pool): Likewise.
15287 (free_alloc_pool): Likewise.
15288 (free_alloc_pool_if_empty): Likewise.
15289 (pool_alloc): Likewise.
15290 (pool_free): Likewise.
15291 * alloc-pool.h: Remove old declarations.
15293 2015-06-01 Martin Liska <mliska@suse.cz>
15295 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15296 (ira_create_object): Likewise.
15297 (ira_create_allocno): Likewise.
15298 (ira_create_live_range): Likewise.
15299 (copy_live_range): Likewise.
15300 (ira_finish_live_range): Likewise.
15301 (ira_free_allocno_costs): Likewise.
15302 (finish_allocno): Likewise.
15303 (finish_allocnos): Likewise.
15304 (initiate_prefs): Likewise.
15305 (ira_create_pref): Likewise.
15306 (finish_pref): Likewise.
15307 (finish_prefs): Likewise.
15308 (initiate_copies): Likewise.
15309 (ira_create_copy): Likewise.
15310 (finish_copy): Likewise.
15311 (finish_copies): Likewise.
15312 (finish_prefs): Likewise.
15314 2015-06-01 Martin Liska <mliska@suse.cz>
15316 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15317 (allocate_and_init_ipcp_value): Likewise.
15318 (ipcp_lattice::add_value): Likewise.
15319 (merge_agg_lats_step): Likewise.
15320 (ipcp_driver): Likewise.
15321 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15322 (ipa_free_all_structures_after_iinln): Likewise.
15323 * ipa-prop.h: Likewise.
15325 2015-06-01 Martin Liska <mliska@suse.cz>
15327 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15329 (set_hint_predicate): Likewise.
15330 (inline_summary_alloc): Likewise.
15331 (reset_inline_edge_summary): Likewise.
15332 (reset_inline_summary): Likewise.
15333 (set_cond_stmt_execution_predicate): Likewise.
15334 (set_switch_stmt_execution_predicate): Likewise.
15335 (compute_bb_predicates): Likewise.
15336 (estimate_function_body_sizes): Likewise.
15337 (inline_free_summary): Likewise.
15339 2015-06-01 Martin Liska <mliska@suse.cz>
15341 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15342 (ipa_edge_duplication_hook): Likewise.
15343 (ipa_free_all_structures_after_ipa_cp): Likewise.
15344 (ipa_free_all_structures_after_iinln): Likewise.
15346 2015-06-01 Martin Liska <mliska@suse.cz>
15348 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15349 (ipa_profile_generate_summary): Likewise.
15350 (ipa_profile_read_summary): Likewise.
15351 (ipa_profile): Likewise.
15353 2015-06-01 Martin Liska <mliska@suse.cz>
15355 * tree-ssa-structalias.c (new_var_info): Use new type-based
15357 (new_constraint): Likewise.
15358 (init_alias_vars): Likewise.
15359 (delete_points_to_sets): Likewise.
15361 2015-06-01 Martin Liska <mliska@suse.cz>
15363 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15364 (free_strinfo): Likewise.
15365 (pass_strlen::execute): Likewise.
15367 2015-06-01 Martin Liska <mliska@suse.cz>
15369 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15371 (vn_reference_insert_pieces): Likewise.
15372 (vn_phi_insert): Likewise.
15373 (visit_reference_op_call): Likewise.
15374 (copy_phi): Likewise.
15375 (copy_reference): Likewise.
15376 (process_scc): Likewise.
15377 (allocate_vn_table): Likewise.
15378 (free_vn_table): Likewise.
15380 2015-06-01 Martin Liska <mliska@suse.cz>
15382 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15384 (add_repeat_to_ops_vec): Likewise.
15385 (get_ops): Likewise.
15386 (maybe_optimize_range_tests): Likewise.
15387 (init_reassoc): Likewise.
15388 (fini_reassoc): Likewise.
15390 2015-06-01 Martin Liska <mliska@suse.cz>
15392 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15394 (bitmap_set_new): Likewise.
15395 (get_or_alloc_expr_for_constant): Likewise.
15396 (get_or_alloc_expr_for): Likewise.
15397 (phi_translate_1): Likewise.
15398 (compute_avail): Likewise.
15399 (init_pre): Likewise.
15400 (fini_pre): Likewise.
15402 2015-06-01 Martin Liska <mliska@suse.cz>
15404 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15405 (delete_dep_node): Likewise.
15406 (create_deps_list): Likewise.
15407 (free_deps_list): Likewise.
15408 (sched_deps_init): Likewise.
15409 (sched_deps_finish): Likewise.
15411 2015-06-01 Martin Liska <mliska@suse.cz>
15413 * regcprop.c (free_debug_insn_changes): Use new type-based
15415 (replace_oldest_value_reg): Likewise.
15416 (pass_cprop_hardreg::execute): Likewise.
15418 2015-06-01 Martin Liska <mliska@suse.cz>
15420 * ira-build.c (initiate_cost_vectors): Use new type-based
15422 (ira_allocate_cost_vector): Likewise.
15423 (ira_free_cost_vector): Likewise.
15424 (finish_cost_vectors): Likewise.
15426 2015-06-01 Martin Liska <mliska@suse.cz>
15428 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15430 (free_sched_pools): Likewise.
15431 * sel-sched-ir.h (_list_alloc): Likewise.
15432 (_list_remove): Likewise.
15434 2015-06-01 Martin Liska <mliska@suse.cz>
15436 * stmt.c (add_case_node): Use new type-based pool allocator.
15437 (expand_case): Likewise.
15438 (expand_sjlj_dispatch_table): Likewise.
15440 2015-06-01 Martin Liska <mliska@suse.cz>
15442 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15443 (free_bb): Likewise.
15444 (pass_cse_reciprocals::execute): Likewise.
15446 2015-06-01 Martin Liska <mliska@suse.cz>
15448 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15449 (sra_deinitialize) Likewise.
15450 (create_access_1) Likewise.
15451 (build_accesses_from_assign) Likewise.
15452 (create_artificial_child_access) Likewise.
15454 2015-06-01 Martin Liska <mliska@suse.cz>
15456 * dse.c (get_group_info):Use new type-based pool allocator.
15457 (dse_step0) Likewise.
15458 (free_store_info) Likewise.
15459 (delete_dead_store_insn) Likewise.
15460 (free_read_records) Likewise.
15461 (record_store) Likewise.
15462 (replace_read) Likewise.
15463 (check_mem_read_rtx) Likewise.
15464 (scan_insn) Likewise.
15465 (dse_step1) Likewise.
15466 (dse_step7) Likewise.
15468 2015-06-01 Martin Liska <mliska@suse.cz>
15470 * df-scan.c (struct df_scan_problem_data):Use new type-based
15472 (df_scan_free_internal) Likewise.
15473 (df_scan_alloc) Likewise.
15474 (df_grow_reg_info) Likewise.
15475 (df_free_ref) Likewise.
15476 (df_insn_create_insn_record) Likewise.
15477 (df_mw_hardreg_chain_delete) Likewise.
15478 (df_insn_info_delete) Likewise.
15479 (df_free_collection_rec) Likewise.
15480 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15481 (df_sort_and_compress_mws) Likewise.
15482 (df_ref_create_structure) Likewise.
15483 (df_ref_record) Likewise.
15485 2015-06-01 Martin Liska <mliska@suse.cz>
15487 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15488 (df_chain_unlink_1) Likewise.
15489 (df_chain_unlink) Likewise.
15490 (df_chain_remove_problem) Likewise.
15491 (df_chain_alloc) Likewise.
15492 (df_chain_free) Likewise.
15493 * df.h (struct dataflow) Likewise.
15495 2015-06-01 Martin Liska <mliska@suse.cz>
15497 * cselib.c (new_elt_list):Use new type-based pool allocator.
15498 (new_elt_loc_list) Likewise.
15499 (unchain_one_elt_list) Likewise.
15500 (unchain_one_elt_loc_list) Likewise.
15501 (unchain_one_value) Likewise.
15502 (new_cselib_val) Likewise.
15503 (cselib_init) Likewise.
15504 (cselib_finish) Likewise.
15506 2015-06-01 Martin Liska <mliska@suse.cz>
15508 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15509 (sh_reorg) Likewise.
15511 2015-06-01 Martin Liska <mliska@suse.cz>
15513 * cfg.c (initialize_original_copy_tables):Use new type-based
15515 (free_original_copy_tables) Likewise.
15516 (copy_original_table_clear) Likewise.
15517 (copy_original_table_set) Likewise.
15519 2015-06-01 Martin Liska <mliska@suse.cz>
15521 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15523 (asan_mem_ref_new) Likewise.
15524 (free_mem_ref_resources) Likewise.
15526 2015-06-01 Martin Liska <mliska@suse.cz>
15528 * var-tracking.c (variable_htab_free):Use new type-based
15530 (attrs_list_clear) Likewise.
15531 (attrs_list_insert) Likewise.
15532 (attrs_list_copy) Likewise.
15533 (shared_hash_unshare) Likewise.
15534 (shared_hash_destroy) Likewise.
15535 (unshare_variable) Likewise.
15536 (var_reg_delete_and_set) Likewise.
15537 (var_reg_delete) Likewise.
15538 (var_regno_delete) Likewise.
15539 (drop_overlapping_mem_locs) Likewise.
15540 (variable_union) Likewise.
15541 (insert_into_intersection) Likewise.
15542 (canonicalize_values_star) Likewise.
15543 (variable_merge_over_cur) Likewise.
15544 (dataflow_set_merge) Likewise.
15545 (remove_duplicate_values) Likewise.
15546 (variable_post_merge_new_vals) Likewise.
15547 (dataflow_set_preserve_mem_locs) Likewise.
15548 (dataflow_set_remove_mem_locs) Likewise.
15549 (variable_from_dropped) Likewise.
15550 (variable_was_changed) Likewise.
15551 (set_slot_part) Likewise.
15552 (clobber_slot_part) Likewise.
15553 (delete_slot_part) Likewise.
15554 (loc_exp_insert_dep) Likewise.
15555 (notify_dependents_of_changed_value) Likewise.
15556 (emit_notes_for_differences_1) Likewise.
15557 (vt_emit_notes) Likewise.
15558 (vt_initialize) Likewise.
15559 (vt_finalize) Likewise.
15561 2015-06-01 Martin Liska <mliska@suse.cz>
15563 * ira-color.c (init_update_cost_records):Use new type-based
15565 (get_update_cost_record) Likewise.
15566 (free_update_cost_record_list) Likewise.
15567 (finish_update_cost_records) Likewise.
15568 (initiate_cost_update) Likewise.
15570 2015-06-01 Martin Liska <mliska@suse.cz>
15572 * lra.c (init_insn_regs): Use new type-based pool allocator.
15573 (new_insn_reg) Likewise.
15574 (free_insn_reg) Likewise.
15575 (free_insn_regs) Likewise.
15576 (finish_insn_regs) Likewise.
15577 (init_insn_recog_data) Likewise.
15578 (init_reg_info) Likewise.
15579 (finish_reg_info) Likewise.
15580 (lra_free_copies) Likewise.
15581 (lra_create_copy) Likewise.
15582 (invalidate_insn_data_regno_info) Likewise.
15584 2015-06-01 Martin Liska <mliska@suse.cz>
15586 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15587 (free_live_range_list) Likewise.
15588 (create_live_range) Likewise.
15589 (copy_live_range) Likewise.
15590 (lra_merge_live_ranges) Likewise.
15591 (remove_some_program_points_and_update_live_ranges) Likewise.
15592 (lra_live_ranges_init) Likewise.
15593 (lra_live_ranges_finish) Likewise.
15595 2015-06-01 Martin Liska <mliska@suse.cz>
15597 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15598 (et_new_tree): Likewise.
15599 (et_free_tree): Likewise.
15600 (et_free_tree_force): Likewise.
15601 (et_free_pools): Likewise.
15602 (et_split): Likewise.
15604 2015-06-01 Martin Liska <mliska@suse.cz>
15606 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15608 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15609 (pool_allocator::release): Likewise.
15610 (inline pool_allocator::release_if_empty): Likewise.
15611 (inline pool_allocator::~pool_allocator): Likewise.
15612 (pool_allocator::allocate): Likewise.
15613 (pool_allocator::remove): Likewise.
15615 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15617 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15620 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15622 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15624 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15625 (arm_macro_fusion_p): Likewise.
15626 (arm_macro_fusion_pair_p): Likewise.
15628 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15630 * config/aarch64/aarch64-protos.h (tune_params): Rename
15631 fuseable_ops to fusible_ops.
15632 * config/aarch64/aarch64.c (generic_tunings): Rename
15633 fuseable_ops to fusible_ops.
15634 (cortexa53_tunings): Likewise.
15635 (cortexa57_tunings): Likewise.
15636 (thunderx_tunings): Likewise.
15637 (xgene1_tunings): Likewise.
15638 (aarch64_macro_fusion_p): Likewise.
15639 (aarch64_macro_fusion_pair_p): Likewise.
15641 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15643 * config/s390/driver-native.c: New file.
15644 * config/s390/x-native: New file.
15645 * config.host: Add new files for s390.
15646 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15648 * config.gcc: Likewise.
15649 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15650 * config/s390/s390-opts.h (enum processor_type): Ditto.
15651 * config/s390/s390.c (s390_option_override): Catch unhandled
15654 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15657 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15658 redirection for instrumented calls.
15659 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15660 (append_compiler_options): Append -fcheck-pointer-bounds.
15661 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15662 (chkp_redirect_edge): New.
15663 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15664 (chkp_redirect_edge): New.
15666 2015-06-01 Richard Biener <rguenther@suse.de>
15668 PR tree-optimization/66280
15669 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15672 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15674 * config/aarch64/aarch64.md
15675 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
15678 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15680 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
15681 Remove obsolete kludge.
15683 2015-06-01 Richard Biener <rguenther@suse.de>
15685 * tree-ssa-reassoc.c (get_rank): Simplify.
15687 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
15689 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
15690 * configure: Regenerated.
15692 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
15694 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
15695 issue (add space between string literal and macro).
15696 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
15698 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
15700 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
15701 implict or explicit -fPIE or -fpie.
15703 2015-05-30 Mike Frysinger <vapier@gentoo.org>
15705 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
15707 2015-05-28 DJ Delorie <dj@redhat.com>
15709 * expmed.c (extract_bit_field_1): Avoid clobbering a
15710 yet-to-be-used base/index register.
15712 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
15714 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
15715 (alias_stats): Add num_universal.
15716 (alias_set_subset_of): Special case pointers; be ready for NULL
15718 (alias_sets_conflict_p): Special case pointers; be ready for NULL
15720 (init_alias_set_entry): Break out from ...
15721 (record_alias_subset): ... here; propagate new fields;
15722 allocate children only when really needed.
15723 (get_alias_set): Do less generous pointer globbing.
15724 (dump_alias_stats_in_alias_c): Update statistics.
15726 2015-05-30 Alan Modra <amodra@gmail.com>
15728 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15729 correct block for use of r12.
15730 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15732 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15735 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15738 2015-05-29 Jakub Jelinek <jakub@redhat.com>
15740 PR tree-optimization/66142
15741 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15742 virtual phis that feed themselves.
15744 2015-05-29 Richard Biener <rguenther@suse.de>
15746 PR tree-optimization/66314
15747 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15748 parameter that says which loop the new block belongs to.
15749 (ssa_create_duplicates): Blocks duplicated for the threaded
15750 path belong to the loop of the thread destination.
15752 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15754 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
15755 to cleanup-saved-temps.
15756 * doc/sourcebuild.texi (Clean up generated test files): Expand
15758 (dg-keep-saved-temps): Document new proc.
15759 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
15760 cleanup-saved-temps): Remove.
15762 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
15764 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
15765 gcc_AC_CHECK_DECLS.
15766 * configure: Regenerate.
15768 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15770 * config/nios2/linux.h (CPP_SPEC): Define.
15772 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15774 * config/microblaze/linux.h (CPP_SPEC): Define.
15776 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15778 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15779 -pthread is specified.
15781 2015-05-28 Richard Biener <rguenther@suse.de>
15783 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15784 (vect_fixup_scalar_cycles_with_patterns): Likewise.
15785 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15786 after pattern recog.
15787 (vect_create_epilog_for_reduction): Properly handle reductions
15789 (vectorizable_reduction): Likewise.
15790 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15792 (vect_get_constant_vectors): Create the correct number of
15793 initial values for reductions.
15794 (vect_schedule_slp_instance): Handle reduction chains that are
15795 type changing properly.
15796 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15798 2015-05-28 Richard Biener <rguenther@suse.de>
15800 PR tree-optimization/66142
15801 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15802 values better in memcpy destination handling. Handle non-aliasing
15805 2015-05-28 Lawrence Velázquez <vq@larryv.me>
15808 * config/darwin-c.c (version_components): New global enum.
15809 (parse_version, version_as_legacy_macro)
15810 (version_as_modern_macro, macosx_version_as_macro): New functions.
15811 (version_as_macro): Remove.
15812 (darwin_cpp_builtins): Use new function.
15814 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
15816 * builtins.c (expand_builtin_acc_on_device): Mark parameters
15817 with ATTRIBUTE_UNUSED.
15819 2015-05-28 Julian Brown <julian@codesourcery.com>
15823 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15824 sequence for !ACCEL_COMPILER.
15826 2015-05-28 Nick Clifton <nickc@redhat.com>
15828 * config/rx/rx.c (push_regs): New function. Extracts code from...
15829 (rx_expand_prologue): ... here. Use push_regs to push even small
15830 spans of registers.
15831 (pop_regs): New function.
15832 (rx_expand_epilogue): Use pop_regs to pop even small spans of
15835 2015-05-28 Richard Biener <rguenther@suse.de>
15837 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15839 (SLP_INSTANCE_BODY_COST_VEC): Remove.
15840 (vect_update_slp_costs_according_to_vf): Likewise.
15841 (vect_slp_analyze_operations): Update prototype.
15842 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15843 vect_update_slp_costs_according_to_vf, adjust.
15844 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15845 (vect_analyze_slp_cost_1): Likewise.
15846 (vect_analyze_slp_cost): Likewise. Properly deal with
15847 widening reduction ops. Commit body costs.
15848 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
15849 cost for loops from here.
15850 (vect_slp_analyze_operations): But do it from here when
15851 the vectorization factor is known and stmts are analyzed.
15852 (vect_bb_vectorization_profitable_p): Simplify.
15853 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15854 (vect_update_slp_costs_according_to_vf): Remove.
15856 2015-05-27 Magnus Granberg <zorry@gentoo.org>
15857 H.J. Lu <hongjiu.lu@intel.com>
15859 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15860 (BUILD_CFLAGS): Likewise.
15861 (BUILD_CXXFLAGS): Likewise.
15862 (LINKER): Add @NO_PIE_FLAG@.
15863 (BUILD_LDFLAGS): Likewise.
15864 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15865 --enable-default-pie.
15866 * common.opt (fPIE): Initialize to -1.
15868 (no-pie): New option.
15869 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15870 * configure.ac: Add --enable-default-pie.
15871 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
15872 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
15873 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
15874 * gcc.c (NO_PIE_SPEC): New.
15875 (PIE_SPEC): Likewise.
15876 (NO_FPIE1_SPEC): Likewise.
15877 (FPIE1_SPEC): Likewise.
15878 (NO_FPIE2_SPEC): Likewise.
15879 (FPIE2_SPEC): Likewise.
15880 (NO_FPIE2_SPEC): Likewise.
15881 (FPIE_SPEC): Likewise.
15882 (NO_FPIE_SPEC): Likewise.
15883 (NO_FPIC1_SPEC): Likewise.
15884 (FPIC1_SPEC): Likewise.
15885 (NO_FPIC2_SPEC): Likewise.
15886 (FPIC2_SPEC): Likewise.
15887 (NO_FPIC2_SPEC): Likewise.
15888 (FPIC_SPEC): Likewise.
15889 (NO_FPIC_SPEC): Likewise.
15890 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15891 (FPIE1_OR_FPIC1_SPEC): Likewise.
15892 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15893 (FPIE2_OR_FPIC2_SPEC): Likewise.
15894 (NO_FPIE_AND_FPIC_SPEC): Likewise.
15895 (FPIE_OR_FPIC_SPEC): Likewise.
15896 (LD_PIE_SPEC): Likewise.
15897 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
15898 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15899 * config/darwin.h (PIE_SPEC): Renamed to ...
15900 (DARWIN_PIE_SPEC): This.
15901 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15902 * config/darwin9.h (PIE_SPEC): Renamed to ...
15903 (DARWIN_PIE_SPEC): This.
15904 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15905 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15906 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15907 FPIE2_OR_FPIC2_SPEC.
15908 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15909 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15910 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15911 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15912 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15913 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15914 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15915 * config/m32r/m32r.h (ASM_SPEC): Likewise.
15916 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15917 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15918 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15919 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15920 * config/sparc/linux.h (ASM_SPEC): Likewise.
15921 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15922 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15923 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15924 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15925 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15926 * config/sparc/sparc.h (ASM_SPEC): Likewise.
15927 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15928 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15929 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15930 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15931 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15932 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15933 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15934 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15935 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15936 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15937 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15938 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15939 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15940 * config/vax/linux.h (ASM_SPEC): Likewise.
15941 * doc/install.texi: Document --enable-default-pie.
15942 * doc/invoke.texi: Document -no-pie.
15943 * config.in: Regenerated.
15944 * configure: Likewise.
15946 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15948 PR rtl-optimization/66168
15949 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15950 can_move_invariant_reg.
15952 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
15955 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15956 REG_EQUAL note when doing insert.
15958 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15959 instead of "%d" for 'o' operand.
15961 2015-05-27 Nathan Sidwell <nathan@acm.org>
15964 * tree.c (build_pointer_type_for_mode): Canonical type does not
15965 inherit can_alias_all.
15966 (build_reference_type_for_mode): Likewise.
15968 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
15970 * expr.h (array_at_struct_end_p): Move to...
15971 (array_ref_element_size): Likewise.
15972 (component_ref_field_offset): Likewise.
15973 * tree.h (array_ref_element_size): ...here.
15974 (array_at_struct_end_p): Likewise.
15975 (component_ref_field_offset): Likewise.
15976 * expr.c (array_ref_element_size): Move to...
15977 (array_ref_low_bound): Likewise.
15978 (array_at_struct_end_p): Likewise.
15979 (array_ref_up_bound): Likewise.
15980 (component_ref_field_offset): Likewise.
15981 * tree.c (array_ref_element_size): ...here.
15982 (array_ref_low_bound): Likewise.
15983 (array_ref_up_bound): Likewise.
15984 (array_at_struct_end_p): Likewise.
15985 (component_ref_field_offset): Likewise.
15987 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15988 Szabolcs Nagy <szabolcs.nagy@arm.com>
15990 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15992 2015-05-27 Jason Merrill <jason@redhat.com>
15995 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15996 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15997 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15999 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16001 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16004 * statistics.c (statistics_fini_pass): Print pass name.
16006 2015-05-27 Richard Biener <rguenther@suse.de>
16008 PR tree-optimization/66272
16010 2014-08-15 Richard Biener <rguenther@suse.de>
16012 PR tree-optimization/62031
16013 * tree-data-ref.c (dr_analyze_indices): Do not set
16014 DR_UNCONSTRAINED_BASE.
16015 (dr_may_alias_p): All indirect accesses have to go the
16016 formerly DR_UNCONSTRAINED_BASE path.
16017 * tree-data-ref.h (struct indices): Remove
16018 unconstrained_base member.
16019 (DR_UNCONSTRAINED_BASE): Remove.
16021 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16023 * dwarf2out.c: Remove block_map.
16024 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16025 (gen_lexical_block_die): Same.
16026 (dwarf2out_function_decl): Remove block_map use.
16027 (dwarf2out_c_finalize): Same.
16028 * tree-core.h (struct tree_block): Add die field.
16029 * tree.h (BLOCK_DIE): New.
16031 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16034 * expr.c (memory_load_overlap): New function.
16035 (emit_push_insn): When pushing partial args to the stack would
16036 clobber the register part load the overlapping part into a pseudo
16037 and put it into the hard reg after pushing. Change return type
16038 to bool. Add bool argument.
16039 * expr.h (emit_push_insn): Change return type to bool.
16041 * calls.c (expand_call): Cancel sibcall optimization when encountering
16042 partial argument on targets with ARGS_GROW_DOWNWARD and
16043 !STACK_GROWS_DOWNWARD.
16044 (emit_library_call_value_1): Update callsite of emit_push_insn.
16045 (store_one_arg): Likewise.
16047 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16049 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16051 2015-05-27 Martin Liska <mliska@suse.cz>
16053 * Makefile.in: Add additional dependencies related to memory report
16055 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16056 * bitmap.c (struct bitmap_descriptor_d): Remove.
16057 (struct loc): Likewise.
16058 (struct bitmap_desc_hasher): Likewise.
16059 (bitmap_desc_hasher::hash): Likewise.
16060 (bitmap_desc_hasher::equal): Likewise.
16061 (get_bitmap_descriptor): Likewise.
16062 (bitmap_register): User new memory descriptor API.
16063 (register_overhead): Likewise.
16064 (bitmap_find_bit): Register nsearches and search_iter statistics.
16065 (struct bitmap_output_info): Remove.
16066 (print_statistics): Likewise.
16067 (dump_bitmap_statistics): Use new memory descriptor.
16068 * bitmap.h (struct bitmap_usage): New class.
16069 * genmatch.c: Extend header file inclusion.
16070 * genpreds.c: Likewise.
16071 * ggc-common.c (struct ggc_usage): New class.
16072 (struct ggc_loc_desc_hasher): Remove.
16073 (ggc_loc_desc_hasher::hash): Likewise.
16074 (ggc_loc_desc_hasher::equal): Likewise.
16075 (struct ggc_ptr_hash_entry): Likewise.
16076 (struct ptr_hash_hasher): Likewise.
16077 (ptr_hash_hasher::hash): Likewise.
16078 (ptr_hash_hasher::equal): Likewise.
16079 (make_loc_descriptor): Likewise.
16080 (ggc_prune_ptr): Likewise.
16081 (dump_ggc_loc_statistics): Use new memory descriptor.
16082 (ggc_record_overhead): Likewise.
16083 (ggc_free_overhead): Likewise.
16084 (final_cmp_statistic): Remove.
16085 (cmp_statistic): Likewise.
16086 (ggc_add_statistics): Liekwise.
16087 (ggc_prune_overhead_list): Likewise.
16088 * hash-map-traits.h: New file.
16089 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16090 separate header file.
16091 * hash-set.h: Pass memory statistics info to ctor.
16092 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16093 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16094 (hash_table::~hash_table): Register memory release operation.
16095 (hash_table::alloc_entries): Handle memory allocation operation.
16096 (hash_table::expand): Likewise.
16097 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16099 (iterative_hash_host_wide_int): Likewise.
16100 * inchash.h (class hash): Likewise.
16101 * mem-stats-traits.h: New file.
16102 * mem-stats.h: New file.
16103 (mem_location): Add new class.
16104 (mem_usage): Likewise.
16105 (mem_alloc_description): Likewise.
16106 * sese.c: Add new header file inclusision.
16107 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16109 * tree-sra.c: Add new header file inclusision.
16110 * vec.c (struct vec_descriptor): Remove.
16111 (hash_descriptor): Likewise.
16112 (struct vec_usage): Likewise.
16113 (struct ptr_hash_entry): Likewise.
16114 (hash_ptr): Likewise.
16115 (eq_ptr): Likewise.
16116 (vec_prefix::register_overhead): Use new memory descriptor API.
16117 (vec_prefix::release_overhead): Likewise.
16118 (add_statistics): Remove.
16119 (dump_vec_loc_statistics): Use new memory descriptor API.
16120 * vec.h (struct vec_prefix): Likewise.
16121 (va_heap::reserve): Likewise.
16122 (va_heap::release): Likewise.
16123 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16125 2015-05-27 Richard Biener <rguenther@suse.de>
16127 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16128 earlier and remove ??? comment.
16129 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16130 and got called from loop analysis bail out. Always pass the SLP
16131 node to the vectorizable_* functions.
16132 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16133 the premature SLP check here.
16134 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16135 detected SLP stmts.
16136 (vect_detect_hybrid_slp_1): Likewise.
16138 2015-05-26 Jeff Law <law@redhat.com>
16140 * combine.c (find_split_point): Verify that the shift count is a
16141 constant when choosing (plus (ashift ...)) as a split point.
16143 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16144 No functional changes.
16146 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16148 * ipa-polymorphic-call.c
16149 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16150 case when call target is already known.
16152 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16155 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16156 take into account the case that operands[1] and operands[2]
16157 are the same register.
16159 2015-05-26 Michael Matz <matz@suse.de>
16161 PR middle-end/66251
16163 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16165 (vect_create_vectorized_demotion_stmts): Always set
16166 STMT_VINFO_VEC_STMT, also with SLP.
16167 (vectorizable_store): Handle strided group stores.
16169 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16172 * config/aarch64/aarch64.md
16173 (*adds_shift_imm_<mode>): New pattern.
16174 (*subs_shift_imm_<mode>): Likewise.
16175 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16176 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16177 (*add_uxt<mode>_shift2): Likewise.
16178 (*add_uxtsi_shift2_uxtw): Likewise.
16179 (*sub_uxt<mode>_shift2): Likewise.
16180 (*sub_uxtsi_shift2_uxtw): Likewise.
16182 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16184 * config/rs6000/constraints.md (Y, U): Use match_test.
16186 2015-05-26 Christian Bruel <christian.bruel@st.com>
16189 * config/arm/arm.c (arm_option_check_internal)
16190 (arm_option_params_internal): Check opts->target_flags to set macros.
16191 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16192 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16193 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16194 (builtin_define): Replaced with def_or_undef_macro.
16195 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16196 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16197 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16198 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16199 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16200 (TARGET_ARM_FEATURE_LDREX_P)
16201 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16202 * config/arm/arm-c.c (def_or_undef_macro): New function.
16203 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16205 2015-05-26 Christian Bruel <christian.bruel@st.com>
16207 * c-common.h (builtin_define_with_int_value)
16208 (builtin_define_type_sizeof): Declare.
16209 * c-cppbuiltin.c (builtin_define_with_int_value)
16210 (builtin_define_type_sizeof): Externalize.
16211 (builtin_define_std): Cleanup declaration.
16212 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16213 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16214 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16215 (builtin_define, builtin_assert): New macros.
16217 2015-05-26 Richard Biener <rguenther@suse.de>
16219 PR tree-optimization/66142
16220 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16221 MEM_REFs for the same base address.
16223 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16226 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16228 2015-05-26 Jason Merrill <jason@redhat.com>
16230 * configure.ac: Set CXXFLAGS for ISL test.
16231 * configure: Regenerate.
16233 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16234 strstr and basename.
16235 * configure: Regenerate.
16237 2015-05-26 Richard Biener <rguenther@suse.de>
16239 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16240 X % C -> X & (C - 1) for C being a power-of two to ...
16241 * match.pd: ... patterns.
16243 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16245 * match.pd (swapped_tcc_comparison): New operator list.
16246 (-A CMP -B): New simplification.
16247 * fold-const.c (fold_comparison): Remove corresponding code.
16249 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16251 * caller-save.c (init_caller_save): Base temporary register numbers
16252 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16253 * cfgloopanal.c (init_set_costs): Likewise.
16254 * dojump.c (prefer_and_bit_test): Likewise.
16255 * expr.c (init_expr_target): Likewise.
16256 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16257 * lower-subreg.c (init_lower_subreg): Likewise.
16258 * postreload.c (reload_cse_regs_1): Likewise.
16260 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16262 * gensupport.h (compute_test_codes): Declare.
16263 * gensupport.c (compute_predicate_codes): Rename to...
16264 (compute_test_codes): ...this. Generalize error message.
16265 (process_define_predicate): Update accordingly.
16266 * genpreds.c (compute_maybe_allows): Delete.
16267 (add_constraint): Use compute_test_codes to determine whether
16268 something can accept a SUBREG, REG or MEM.
16270 2015-05-26 Torvald Riegel <triegel@redhat.com>
16272 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16273 'memory model' to align with C++11; fix description of memory orders;
16276 2015-05-26 Richard Biener <rguenther@suse.de>
16278 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16279 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16280 detect whether we apply SLP. Remove call to
16281 vect_update_slp_costs_according_to_vf.
16282 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16283 vect_update_slp_costs_according_to_vf from here. Dispatch
16284 to vect_slp_analyze_operations to analyze SLP stmts.
16285 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16286 unused bb_vec_info parameter, adjust assert.
16287 (vect_slp_analyze_operations): Pass in the slp instance tree
16288 instead of bb_vec_info.
16289 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16290 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16292 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16294 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16295 Q_REGS. Expand comment.
16296 (REG_CLASS_NAMES): Ditto.
16297 (REG_CLASS_CONTENTS): Ditto.
16299 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16302 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16303 when LEGACY_INT_REGNO_P is processed.
16305 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16307 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16309 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16311 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16312 register if not marked dead/unused, before return.
16314 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16317 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16318 is set; check for assembler name at LTO time.
16319 (type_in_anonymous_namespace): Remove hacks, check that all
16320 anonymous types are called "<anon>"
16321 (odr_type_p): Simplify; add check for "<anon>"
16322 (odr_subtypes_equivalent): Add odr_type_p check.
16323 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16326 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16328 * ipa-utils.h (method_class_type): Remove.
16329 * cgraphunit.c (walk_polymorphic_call_targets): Use
16330 TYPE_METHOD_BASETYPE.
16331 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16332 on main variants only.
16333 (method_class_type): Remove.
16334 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16335 (build_type_inheritance_graph): Likewise.
16336 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16337 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16338 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16340 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16342 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16343 is_typedef_decl, typedef_variant_p): Constify.
16344 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16345 is_typedef_decl, typedef_variant_p): Constify.
16347 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16349 * defaults.h (gen_tablejump): New function.
16350 (HAVE_tablejump): Add default value.
16352 * stmt.c: Likewise.
16354 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16356 * defaults.h (gen_store_multiple): New function.
16357 (HAVE_store_multiple): Add default value.
16358 * expr.c (move_block_from_reg): Adjust.
16360 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16362 * defaults.h (gen_load_multiple): New function.
16363 (HAVE_load_multiple): Add default value.
16364 * expr.c (move_block_to_reg): Adjust.
16366 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16368 * defaults.h (gen_mem_signal_fence): New function.
16369 (HAVE_mem_signal_fence): Add default value.
16370 * optabs.c: Adjust.
16372 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16374 * defaults.h (gen_memory_barrier): New function.
16375 (HAVE_memory_barrier): Add default value.
16376 * optabs.c: Adjust.
16378 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16380 * defaults.h (gen_mem_thread_fence): New function.
16381 (HAVE_mem_thread_fence): Add default definition.
16382 * optabs.c: Adjust.
16384 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16386 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16387 instead of if it is defined.
16388 (combine_simplify_rtx): Likewise.
16389 * lra-constraints.c (process_address_1): Likewise.
16390 * config/darwin.c: Adjust.
16391 * genconfig.c (main): Always define HAVE_lo_sum.
16393 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16395 * genmatch.c (parser::parse_operation): Reject expanding
16396 operator-list inside 'for'.
16398 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16400 * genmatch.c (parser::parse_for): Reject iterator if used as
16403 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16405 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16406 after end of id-list.
16408 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16410 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16411 we do not try to compute canonical type for type that does not need
16413 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16415 * tree.h (type_with_alias_set_p): New.
16417 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16419 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16420 function attributes.
16421 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16423 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16425 * Makefile.in (check_gcc_parallelize): Delete.
16426 (lang_checks_parallelized): Update comment.
16428 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16430 PR rtl-optimization/66237
16431 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16432 location of an "as_a" cast.
16434 2015-05-22 Jeff Law <law@redhat.com>
16436 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16437 (peepholes with non-canonical RTL sources): Remove.
16438 (peepholes for indexed stores of FP regs in integer modes): Match and
16439 generate canonical RTL.
16441 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16443 PR tree-optimization/63387
16444 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16445 ((x ord x) & (y ord y) -> (x ord y),
16446 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16447 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16448 vectors like scalars.
16450 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16452 * convert.c (convert_to_integer, convert_to_vector): Include the
16453 types in the error message.
16455 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16457 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16460 2015-05-22 Jeff Law <law@redhat.com>
16462 * config/pa/pa.md (integer_indexed_store splitters): Use
16463 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16464 insns -- adjusting the constant 2nd operand accordingly.
16466 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16467 (plus (ashift X log2) Y) if it is a split point.
16469 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16470 out of hppa_legitimize_address to handle both forms of a multiply
16472 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16473 Always generate the ASHIFT variant as the result is not directly
16474 used in a MEM. Update comments and refactor slightly to improve
16477 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16480 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16481 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16482 (aarch64_composite_type_p): Return false if given type and mode are
16483 for a short vector.
16485 2015-05-22 Richard Biener <rguenther@suse.de>
16487 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16489 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16490 patterns when determining whether SLP is pure.
16491 (vect_is_slp_reduction): Remove check for pattern stmts.
16492 (vect_is_simple_reduction_1): Remove dead code.
16493 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16494 (vect_get_and_check_slp_defs): Pass in the stmt number.
16495 Allow the first def in a reduction to be not a pattern stmt when
16496 the rest of the stmts def are patterns.
16497 (vect_build_slp_tree_1): Allow tcc_expression codes like
16498 SAD_EXPR and DOT_PROD_EXPR.
16499 (vect_build_slp_tree): Adjust.
16500 (vect_analyze_slp): Refactor and move BB vect error message ...
16501 (vect_slp_analyze_bb_1): ... here.
16503 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16505 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16506 for CSWTCH temporary.
16508 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16510 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16511 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16514 2015-05-22 Richard Biener <rguenther@suse.de>
16516 PR tree-optimization/66251
16517 * tree-vect-stmts.c (vectorizable_conversion): Properly
16518 set STMT_VINFO_VEC_STMT even for the SLP case.
16520 2015-05-22 Marek Polacek <polacek@redhat.com>
16522 * doc/extend.texi: Use @pxref instead of @xref.
16524 2015-05-22 hiraditya <hiraditya@msn.com>
16526 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16529 2015-05-22 Richard Biener <rguenther@suse.de>
16531 PR tree-optimization/65701
16532 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16533 Move peeling cost models into one place. Peel for alignment
16534 for single loads only if an aligned load is cheaper than
16537 2015-05-22 Marek Polacek <polacek@redhat.com>
16540 * doc/extend.texi (Enumerator Attributes): New section.
16541 Document syntax of enumerator attributes.
16543 2015-05-22 Richard Biener <rguenther@suse.de>
16545 * tree-vect-loop.c (get_reduction_op): New function.
16546 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16547 Make ready for BB reductions.
16548 (vect_create_epilog_for_reduction): Use get_reduction_op.
16549 (vectorizable_reduction): Init reduc_index to a valid value.
16550 Adjust vect_model_reduction_cost call.
16551 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16552 operand for reduction defaults. Add SAD_EXPR support.
16553 Assert we have a neutral op for SLP reductions.
16554 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16555 walking pattern stmt ops only recurse to SSA names.
16557 2015-05-22 Richard Biener <rguenther@suse.de>
16559 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16560 assert with guard, remove check on detected reduction.
16561 (vect_recog_sad_pattern): Likewise.
16562 (vect_recog_widen_sum_pattern): Likewise.
16564 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16566 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16567 __always_inline__ attribute.
16568 (vaesdq_u8): Likewise.
16569 (vaesmcq_u8): Likewise.
16570 (vaesimcq_u8): Likewise.
16571 (vsha1cq_u32): Likewise.
16572 (vsha1mq_u32): Likewise.
16573 (vsha1pq_u32): Likewise.
16574 (vsha1h_u32): Likewise.
16575 (vsha1su0q_u32): Likewise.
16576 (vsha1su1q_u32): Likewise.
16577 (vsha256hq_u32): Likewise.
16578 (vsha256h2q_u32): Likewise.
16579 (vsha256su0q_u32): Likewise.
16580 (vsha256su1q_u32): Likewise.
16581 (vmull_p64): Likewise.
16582 (vmull_high_p64): Likewise.
16584 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16586 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16588 * output.h: Likewise.
16589 * genconfig.c (main): Alwways define HAVE_peephole.
16590 * genpeep.c: Don't emit checks of HAVE_peephole.
16592 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16594 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16595 check HAVE_conditional_move with the preprocessor.
16597 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16599 * genconfig.c (main): Always define HAVE_conditional_move.
16600 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16601 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16604 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16606 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16607 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16608 and FRAME_POINTER_REGNUM with the preprocessor.
16610 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16612 * defaults.h: Add default for STACK_PUSH_CODE.
16613 * expr.c: Don't redefine STACK_PUSH_CODE.
16614 * recog.c: Likewise.
16616 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16618 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16619 sched-deps.c: Use if instead of preprocessor checks with
16620 STACK_GROWS_DOWNWARD.
16622 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16624 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16626 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16627 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16628 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16629 * doc/tm.texi: Regenerate.
16631 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16634 * config/i386/constraints.md (Bg): New constraint for GOT memory
16636 * config/i386/i386.md (*call_got_x32): New pattern.
16637 (*call_value_got_x32): Likewise.
16638 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16640 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16642 PR tree-optimization/66233
16643 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16646 2015-05-21 Jeff Law <law@redhat.com>
16648 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16649 than MULT for shadd sequences.
16651 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16653 * alias.c (alias_stats): New static var.
16654 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16655 (dump_alias_stats_in_alias_c): New function.
16656 * alias.h (dump_alias_stats_in_alias_c): Declare.
16657 * tree-ssa-alias.c (dump_alias_stats): Call it.
16659 2015-05-08 Michael Matz <matz@suse.de>
16661 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16663 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16664 (STMT_VINFO_STRIDED_P): ... this.
16665 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16666 (vect_verify_datarefs_alignment): Likewise.
16667 (vect_enhance_data_refs_alignment): Likewise.
16668 (vect_analyze_data_ref_access): Likewise.
16669 (vect_analyze_data_refs): Accept strided stores.
16670 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16671 (vect_model_load_cost): Adjust for macro rename.
16672 (vectorizable_mask_load_store): Likewise.
16673 (vectorizable_load): Likewise.
16674 (vectorizable_store): Open code strided stores.
16676 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16678 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
16679 Document sqrt_insn.
16681 2015-05-21 Richard Biener <rguenther@suse.de>
16684 * match.pd: Guard pattern optimzing (int)(float)int
16685 conversions to apply only on GIMPLE.
16687 2015-05-21 Jeff Law <law@redhat.com>
16689 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
16690 multiply-accumulate/shift-add insn generation.
16692 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16695 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
16696 operands[1] are the same.
16698 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
16700 PR middle-end/66221
16701 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
16702 build_distinct_type_copy to copy bounds.
16704 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
16706 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
16707 Change to unsigned int.
16709 2015-05-20 Jeff Law <law@redhat.com>
16711 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
16712 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
16713 (pa_shadd_constant_p): Allow constants for shadd insns rather
16714 than valid scaling constants for memory addresses.
16715 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
16716 * config/pa/predicates.md (mem_shadd_operand): New predicate.
16717 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
16718 (shift-add insns using ASHIFT): New patterns.
16720 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
16722 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16724 (fix_up_fall_thru_edges): Likewise.
16725 (fix_crossing_conditional_branches): Likewise. Promote jump targets
16726 from to rtx_insn to rtx_code_label where feasible.
16727 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16728 gen_move_insn (returned type changed to rtx_insn).
16729 * builtins.c (expand_errno_check): Fix arguments of
16730 do_compare_rtx_and_jump (now expects rtx_code_label).
16731 (expand_builtin_acc_on_device): Likewise.
16732 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16733 invert_jump (now exprects rtx_jump_insn).
16734 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16735 (construct_init_block): Use rtx_code_label.
16736 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16737 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16738 calling redirect_jump.
16739 (patch_jump_insn): Likewise.
16740 (redirect_branch_edge): Likewise.
16741 (force_nonfallthru_and_redirect): Likewise.
16742 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16744 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16745 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16746 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16747 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16748 to store the value retured by gen_label_rtx.
16749 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
16751 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
16752 (split_branches): Fix calls of redirect_jump.
16753 * dojump.c (jumpifnot): Promote argument type from rtx to
16755 (jumpifnot_1): Likewise.
16756 (jumpif): Likewise.
16757 (jumpif_1): Likewise.
16758 (do_jump_1): Likewise.
16759 (do_jump): Likewise. Use rtx_code_label when feasible.
16760 (do_jump_by_parts_greater_rtx): Likewise.
16761 (do_jump_by_parts_zero_rtx): Likewise.
16762 (do_jump_by_parts_equality_rtx): Likewise.
16763 (do_compare_rtx_and_jump): Likewise.
16764 * dojump.h: Update function prototypes.
16765 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
16767 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
16769 (emit_label_before): Likewise.
16770 (emit_jump_insn_after_noloc): Likewise.
16771 (emit_jump_insn_after_setloc): Likewise.
16772 (emit_jump_insn_after): Likewise
16773 (emit_jump_insn_before_setloc): Likewise.
16774 (emit_jump_insn_before): Likewise.
16775 (emit_label_before): Promote return type to rtx_code_label.
16776 (emit_label): Likewise.
16777 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16778 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16780 (emit_stack_restore): Likewise.
16781 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16782 (do_cmp_and_jump): Likewise.
16783 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16784 from rtx to rtx_code_label.
16785 (gen_move_insn_uncast): New function.
16786 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16787 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16788 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16789 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16790 invert_jump_1 and redirect_jump_1.
16791 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16792 do_compare_rtx_and_jump.
16793 (expand_addsub_overflow): Likewise.
16794 (expand_neg_overflow): Likewise.
16795 (expand_mul_overflow): Likewise.
16796 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16797 return value of gen_move_insn.
16798 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16799 * loop-doloop.c (add_test): Use rtx_code_label.
16800 (doloop_modify): Likewise.
16801 (doloop_optimize): Likewise.
16802 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16803 * lra-constraints.c (emit_spill_move): Remove cast of value returned
16805 (inherit_reload_reg): Add cast when calling dump_insn_slim.
16806 (split_reg): Likewise.
16807 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16809 * optabs.c (expand_binop_directly): Remove casts of values returned by
16811 (expand_unop_direct): Likewise.
16812 (expand_abs): Likewise.
16813 (maybe_emit_unop_insn): Likewise.
16814 (maybe_gen_insn): Promote return type to rtx_insn.
16815 * optabs.h: Update prototype of maybe_gen_insn.
16816 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16818 * recog.c (struct peep2_insn_data): Promote type of insn field to
16820 (peep2_reinit_state): Use NULL instead of NULL_RTX.
16821 (peep2_attempt): Remove casts of insn in peep2_insn_data.
16822 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16823 * recog.h (struct insn_gen_fn): Promote return types of function
16824 pointers and operator ().from rtx to rtx_insn.
16825 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16826 (fill_eager_delay_slots): Likewise.
16827 (relax_delay_slots): Likewise.
16828 (make_return_insns): Likewise.
16829 (dbr_schedule): Likewise.
16830 (optimize_skips): Likewise.
16831 (reorg_redirect_jump): Likewise.
16832 (fill_slots_from_thread): Likewise.
16833 * reorg.h: Update prototypes.
16834 * resource.c (find_dead_or_set_registers): Use dyn_cast to
16835 rtx_jump_insn instead of check. Use it's jump_target method.
16836 * rtl.h (rtx_jump_insn::jump_label): Define new method.
16837 (rtx_jump_insn::jump_target): Define new method.
16838 (rtx_jump_insn::set_jump_target): Define new method.
16839 * rtlanal.c (tablejump_p): Promote type of one local variable.
16840 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16841 (sched_analyze_insn): Likewise.
16842 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16843 (print_insn): Likewise.
16844 * stmt.c (label_rtx): Promote return type to rtx_insn.
16845 (force_label_rtx): Likewise.
16846 (jump_target_rtx): Define new function.
16847 (expand_label): Use it, get rid of one cast.
16848 (expand_naked_return): Promote rtx to rtx_code_label.
16849 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16850 (expand_case): Use rtx_code_label instread of rtx where feasible.
16851 (expand_sjlj_dispatch_table): Likewise.
16852 (emit_case_nodes): Likewise.
16853 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
16854 * store-motion.c (insert_store): Make use of new return type of
16855 gen_move_insn and remove a cast.
16856 (replace_store_insn): Likewise.
16858 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
16860 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16861 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16863 2015-05-20 Jeff Law <law@redhat.com>
16865 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16866 dispose of the jump thread path when the jump threading
16867 opportunity is cancelled.
16869 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16871 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16872 when printing the caret character.
16874 2015-05-20 Marek Polacek <polacek@redhat.com>
16876 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16878 2015-05-20 Marek Polacek <polacek@redhat.com>
16880 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16881 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16882 * gimple-fold.c (canonicalize_bool): Likewise.
16883 (same_bool_result_p): Likewise.
16884 * tree-if-conv.c (parse_predicate): Likewise.
16886 2015-05-20 Marek Polacek <polacek@redhat.com>
16888 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16889 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16891 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16893 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16894 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16897 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
16899 * config/mips/mips.h (micromips_globals): Declare.
16901 2015-05-20 David Malcolm <dmalcolm@redhat.com>
16903 * timevar.def (TV_INITIALIZE_RTL): New.
16904 * toplev.c (initialize_rtl): Use an auto_timevar to account this
16905 function's time to TV_INITIALIZE_RTL.
16907 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16909 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16910 gimple_build_nop calls.
16911 (chkp_find_bounds_for_elem): Likewise.
16912 (chkp_get_zero_bounds): Likewise.
16913 (chkp_get_none_bounds): Likewise.
16914 (chkp_get_bounds_by_definition): Likewise.
16915 (chkp_generate_extern_var_bounds): Likewise.
16916 (chkp_get_bounds_for_decl_addr): Likewise.
16917 (chkp_get_bounds_for_string_cst): Likewise.
16919 2015-05-20 Bin Cheng <bin.cheng@arm.com>
16921 PR tree-optimization/65447
16922 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16923 (dump_use, dump_uses): Support to dump sub use.
16924 (record_use): New parameters to support sub use. Remove call to
16926 (record_sub_use, record_group_use): New functions.
16927 (compute_max_addr_offset, split_all_small_groups): New functions.
16928 (group_address_uses, rewrite_use_address): New functions.
16929 (strip_offset): New declaration.
16930 (find_interesting_uses_address): Call record_group_use.
16931 (add_candidate): New assertion.
16932 (infinite_cost_p): Move definition forward.
16933 (add_costs): Check INFTY cost and return immediately.
16934 (get_computation_cost_at): Clear setup cost and dependent bitmap
16936 (determine_use_iv_cost_address): Compute cost for sub uses.
16937 (rewrite_use_address_1): Rename from old rewrite_use_address.
16938 (free_loop_data): Free sub uses.
16939 (tree_ssa_iv_optimize_loop): Call group_address_uses.
16941 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16942 Jim Wilson <jim.wilson@linaro.org>
16944 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16945 new fields loadv and storev.
16946 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16947 Initialize loadv and storev.
16948 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16949 (cortexa53_extra_costs): Likewise.
16950 (cortexa57_extra_costs): Likewise.
16951 (xgene1_extra_costs): Likewise.
16952 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16955 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16957 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16959 (cortexa8_extra_costs): Likewise.
16960 (cortexa5_extra_costs): Likewise.
16961 (cortexa7_extra_costs): Likewise.
16962 (cortexa12_extra_costs): Likewise.
16963 (cortexa15_extra_costs): Likewise.
16964 (v7m_extra_costs): Likewise.
16966 2015-05-20 Jeff Law <law@redhat.com>
16968 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16969 instead of open-coded version. Also delete the jump thread created
16970 within this function.
16972 2015-05-20 Alan Modra <amodra@gmail.com>
16974 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16975 stack adjusting insn. Formatting.
16976 (rs6000_emit_prologue): Track stack adjusting insn, and use of
16977 r12. If possible, emit first -fsplit-stack arg pointer insn
16978 before stack adjust. Don't use r12 to save cr if split-stack.
16980 2015-05-20 Alan Modra <amodra@gmail.com>
16982 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16984 (rs6000_supports_split_stack): New function.
16985 * gcc/config/rs6000/rs6000.c (machine_function): Add
16986 split_stack_arg_pointer.
16987 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16988 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16989 rather than virtual_incoming_args_rtx.
16990 (rs6000_va_start): Likewise.
16991 (split_stack_arg_pointer_used_p): New function.
16992 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16993 (morestack_ref): New var.
16994 (gen_add3_const, rs6000_expand_split_stack_prologue,
16995 rs6000_internal_arg_pointer, rs6000_live_on_entry,
16996 rs6000_split_stack_space_check): New functions.
16997 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16998 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16999 (UNSPECV_SPLIT_STACK_RETURN): Define.
17000 (split_stack_prologue, load_split_stack_limit,
17001 load_split_stack_limit_di, load_split_stack_limit_si,
17002 split_stack_return, split_stack_space_check): New expands and insns.
17003 * gcc/config/rs6000/rs6000-protos.h
17004 (rs6000_expand_split_stack_prologue): Declare.
17005 (rs6000_split_stack_space_check): Declare.
17007 2015-05-20 Alan Modra <amodra@gmail.com>
17009 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17010 (direct_return): Test vrsave_size rather than vrsave_mask.
17011 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17012 (rs6000_emit_epilogue): Likewise.
17014 2015-05-20 Alan Modra <amodra@gmail.com>
17016 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17017 when not saving registers.
17018 (debug_stack_info): Adjust to omit printing unused offsets,
17020 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17023 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17026 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17027 value_type to const char *.
17029 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17031 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17032 to build a biarch toolchain again.
17034 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17036 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17037 or implicit declarations.
17038 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17040 (get_odr_type): Check type has linkage before adding bases.
17041 (register_odr_type): Check that type has linkage before adding it.
17042 (type_known_to_have_no_deriavations_p): Rename to ..
17043 (type_known_to_have_no_derivations_p): This one.
17044 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17045 (type_known_to_have_no_derivations_p): This one.
17046 * ipa-polymorphic-call.c
17047 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17050 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17052 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17053 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17055 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17057 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17058 (s390_invalid_binary_op): New function.
17059 (TARGET_INVALID_BINARY_OP): Define macro.
17061 2015-05-19 David Sherwood <david.sherwood@arm.com>
17063 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17064 if mode is not a scalar integer.
17065 (get_inv_cost): Increase computational cost for unused invariants.
17067 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17069 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17070 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17071 * config/s390/s390-builtin-types.def: New file.
17072 * config/s390/s390-builtins.def: New file.
17073 * config/s390/s390-builtins.h: New file.
17074 * config/s390/s390-c.c: New file.
17075 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17076 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17077 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17078 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17080 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17082 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17083 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17084 variable definitions.
17085 (s390_const_operand_ok): New function.
17086 (s390_expand_builtin): Rewrite.
17087 (s390_init_builtins): New function.
17088 (s390_handle_vectorbool_attribute): New function.
17089 (s390_attribute_table): Add s390_vector_bool attribute.
17090 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17091 (s390_branch_condition_mask): Generate masks for new modes.
17092 (s390_expand_vec_compare_cc): New function.
17093 (s390_mangle_type): Add mangling for vector bool types.
17094 (enum s390_builtin): Remove.
17095 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17097 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17098 s390_cpu_cpp_builtins.
17099 (REGISTER_TARGET_PRAGMAS): New macro.
17100 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17101 (insn_cmp mode attribute): Add new CC modes.
17102 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17103 (lcbb): New pattern definition.
17104 * config/s390/s390intrin.h: Include vecintrin.h.
17105 * config/s390/t-s390: New file.
17106 * config/s390/vecintrin.h: New file.
17107 * config/s390/vector.md: Include vx-builtins.md.
17108 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17111 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17113 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17115 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17116 (s390_select_ccmode): Likewise.
17117 (s390_canonicalize_comparison): Swap operands if necessary.
17118 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17119 single element vector instructions.
17120 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17121 (s390_branch_condition_mask): Generate CC masks for the new modes.
17122 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17123 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17124 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17125 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17126 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17127 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17128 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17129 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17130 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17131 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17132 (sqrt<mode>2): Add vector instruction.
17134 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17136 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17138 * config/s390/predicates.md (const0_operand, constm1_operand)
17139 (constable_operand): Accept vector operands.
17140 * config/s390/s390-modes.def: Add supported vector modes.
17141 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17142 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17143 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17144 (s390_expand_vec_compare, s390_expand_vcond)
17145 (s390_expand_vec_init): Add prototypes.
17146 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17147 (s390_vector_mode_supported_p): New function.
17148 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17149 (s390_contiguous_bitmask_vector_p): New function.
17150 (s390_bytemask_vector_p): New function.
17151 (s390_split_ok_p): Vector regs don't work either.
17152 (regclass_map): Add VEC_REGS.
17153 (s390_legitimate_constant_p): Handle vector constants.
17154 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17155 (legitimate_reload_vector_constant_p): New function.
17156 (s390_preferred_reload_class): Handle CONST_VECTOR.
17157 (s390_reload_symref_address): Likewise.
17158 (s390_secondary_reload): Vector memory instructions only support
17159 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17160 (s390_emit_ccraw_jump): New function.
17161 (s390_expand_vec_strlen): New function.
17162 (s390_expand_vec_compare): New function.
17163 (s390_expand_vcond): New function.
17164 (s390_expand_vec_init): New function.
17165 (s390_dwarf_frame_reg_mode): New function.
17166 (print_operand): Handle addresses with 'O' and 'R' constraints.
17167 (NR_C_MODES, constant_modes): Add vector modes.
17168 (s390_output_pool_entry): Handle vector constants.
17169 (s390_hard_regno_mode_ok): Handle vector registers.
17170 (s390_class_max_nregs): Likewise.
17171 (s390_cannot_change_mode_class): New function.
17172 (s390_invalid_arg_for_unprototyped_fn): New function.
17173 (s390_function_arg_vector): New function.
17174 (s390_function_arg_float): Remove size variable.
17175 (s390_pass_by_reference): Handle vector arguments.
17176 (s390_function_arg_advance): Likewise.
17177 (s390_function_arg): Likewise.
17178 (s390_return_in_memory): Vector values are returned in a VR if
17180 (s390_function_and_libcall_value): Handle vector arguments.
17181 (s390_gimplify_va_arg): Likewise.
17182 (s390_call_saved_register_used): Consider the arguments named.
17183 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17185 (s390_preferred_simd_mode): New function.
17186 (s390_support_vector_misalignment): New function.
17187 (s390_vector_alignment): New function.
17188 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17189 (TARGET_VECTOR_MODE_SUPPORTED_P)
17190 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17191 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17192 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17193 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17194 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17195 (FIRST_PSEUDO_REGISTER): Increase value.
17196 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17197 (VECTOR_REG_P): Define macros.
17198 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17199 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17200 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17201 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17202 Add vector registers.
17203 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17204 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17205 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17207 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17208 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17209 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17210 (VR*_REGNUM): New constants.
17211 (ALL): New mode iterator.
17212 (INTALL): Remove mode iterator.
17214 (movti): Implement TImode moves for VRs.
17215 Disable TImode splitter for VR targets.
17216 Implement splitting TImode GPR<->VR moves.
17217 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17218 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17219 reload<mode>_la_in, reload<mode>_la_out.
17220 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17221 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17222 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17223 (mov<mode> SF SD): Prefer lder, lde for loading.
17224 Add lrl and strl instructions.
17225 Add vector instructions.
17226 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17227 Call s390_expand_vec_strlen on z13.
17228 (*cc_to_int): Change predicate to nonimmediate_operand.
17229 (addti3): Rename to *addti3. New expander.
17230 (subti3): Rename to *subti3. New expander.
17231 * config/s390/vector.md: New file.
17233 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17235 * common/config/s390/s390-common.c (processor_flags_table): Add
17237 * config.gcc: Add z13.
17238 * config/s390/s390-opts.h (enum processor_type): Add
17239 PROCESSOR_2964_Z13.
17240 * config/s390/s390.c (s390_adjust_priority): Check for
17241 PROCESSOR_2964_Z13.
17242 (s390_reorg): Likewise.
17243 (s390_sched_reorder): Likewise.
17244 (s390_sched_variable_issue): Likewise.
17245 (s390_loop_unroll_adjust): Likewise.
17246 (s390_option_override): Likewise. Default to -mvx when available.
17247 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17248 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17249 (TARGET_VX_ABI): Define macros.
17251 (TARGET_DEFAULT): Add MASK_OPT_VX.
17252 * config/s390/s390.md ("cpu" attribute): Add z13.
17253 ("cpu_facility" attribute): Add vec.
17254 * config/s390/s390.opt (processor_type): Add z13.
17255 (mvx): New options.
17256 * doc/invoke.texi: Add z13 option for -march.
17258 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17260 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17261 mode check to make sure that only scalar integer values are
17264 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17266 * tree.c (verify_type_variant): Fix #undef.
17267 (gimple_canonical_types_compatible_p): Move here from lto.c
17268 (verify_type): Verify TYPE_CANONICAL compatibility.
17269 * tree.h (gimple_canonical_types_compatible_p): Declare.
17271 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17273 PR middle-end/66199
17274 * tree.h (OMP_TEAMS_COMBINED): Define.
17275 * gimplify.c (enum gimplify_omp_var_data): Add
17276 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17277 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17278 (omp_notice_variable): Accept both ORT_TEAMS
17279 and ORT_COMBINED_TEAMS. Don't recurse if
17280 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17281 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17283 (omp_no_lastprivate): New function.
17284 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17285 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17286 notice_outer and set appropriate bits, otherwise make
17287 sure default(none) combined constructs won't complain.
17288 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17289 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17290 omp_no_lastprivate either remove the clause or turn it
17291 into OMP_CLAUSE_PRIVATE.
17292 (gimplify_omp_for): Fix up handling of implicit
17293 lastprivate or linear iterators.
17294 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17295 ORT_COMBINED_TEAMS.
17296 * omp-low.c (lower_omp_for_lastprivate): For combined
17297 for simd use fd.loop.n2 from the for rather than simd.
17299 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17301 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17302 instead of gen_rtx_raw_REG.
17303 (cris_expand_epilogue): Likewise.
17304 * config/microblaze/microblaze.c (microblaze_classify_address):
17306 * config/sparc/sparc.md: Likewise.
17308 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17310 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17311 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17312 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17313 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17314 Use CASE_CONST_SCALAR_INT.
17315 (print_operand) <case 'M'>: Use mode_width_operand to check the
17316 value of the constant.
17317 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17318 * config/alpha/predicates.md (input_operand): Use general_operand
17319 instead of match_code as operand check.
17320 (symbolic_operand): Use match_code with subexpression digits.
17321 * config/alpha/constraints.md (Q): Ditto.
17323 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17325 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17327 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17329 * config/s390/s390.c (s390_secondary_reload): Fix check for
17330 load/store relative.
17332 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17334 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17335 alternative_mask to uint64_t.
17337 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17339 PR tree-optimization/66187
17340 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17341 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17342 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17344 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17346 * diagnostic.c (diagnostic_report_current_module): Strengthen
17347 local "new_map" from const line_map * to
17348 const line_map_ordinary *.
17349 * genmatch.c (error_cb): Likewise for local "map".
17350 (output_line_directive): Likewise for local "map".
17351 * input.c (expand_location_1): Likewise for local "map".
17352 Pass NULL rather than &map to
17353 linemap_unwind_to_first_non_reserved_loc, since the value is never
17354 read from there, and the value written back not read from here.
17355 (is_location_from_builtin_token): Strengthen local "map" from
17356 const line_map * to const line_map_ordinary *.
17357 (dump_location_info): Strengthen locals "map" from
17358 line_map *, one to const line_map_ordinary *, the other
17359 to const line_map_macro *.
17360 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17361 const line_map * to const line_map_macro *.
17362 (maybe_unwind_expanded_macro_loc): Add a call to
17363 linemap_check_macro when writing to the "map" field of the
17365 Introduce local const line_map_ordinary * "ord_map", using it in
17366 place of "map" in the part of the function where we know we have
17367 an ordinary map. Strengthen local "m" from const line_map * to
17368 const line_map_ordinary *.
17370 2015-05-19 Nick Clifton <nickc@redhat.com>
17373 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17374 separate source and destination registers.
17376 2015-05-19 Richard Biener <rguenther@suse.de>
17378 PR tree-optimization/66165
17379 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17380 for no load permutation.
17382 PR tree-optimization/66185
17383 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17384 when building the SLP node from scalars.
17386 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17387 Tristan Gingold <gingold@adacore.com>
17389 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17390 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17391 (expand_stack_restore): Call record_new_stack_level.
17392 (expand_stack_save): Do not call do_pending_stack_adjust.
17393 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17394 * calls.c (expand_call): Call record_new_stack_level for alloca.
17395 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17396 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17397 (update_sjlj_context): New global function.
17398 * except.h (update_sjlj_context): Declare.
17399 * explow.c (record_new_stack_level): New global function.
17400 (allocate_dynamic_stack_space): Call record_new_stack_level.
17401 * explow.h (record_new_stack_level): Declare.
17402 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17403 * cfgrtl.c (duplicate_insn_chain): Likewise.
17405 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17407 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17408 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17409 STACK_GROWS_DOWNWARD as normal if.
17410 (expand_call): Likewise.
17412 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17415 * config/sh/sh.md (*round_int_even): New insn_and_split and
17416 accompanying new unnamed split.
17418 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17420 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17421 (bitmap_clear_range): Likewise.
17422 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17423 bitmap_set_range unconditionally.
17424 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17425 * df-scan.c (df_mark_reg): Likewise.
17426 * haifa-sched.c (setup_ref_regs): Likewise.
17427 * sched-rgn.c (update_live_1): Likewise.
17429 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17431 * regs.h (END_HARD_REGNO): Delete.
17432 (END_REGNO): Move to...
17434 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17435 * caller-save.c (mark_set_regs): Likewise.
17436 * combine.c (move_deaths, distribute_notes): Likewise.
17437 * cse.c (invalidate, invalidate_for_call): Likewise.
17438 * df-scan.c (df_ref_record): Likewise.
17439 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17440 (record_last_reg_set_info): Likewise.
17441 * reg-stack.c (convert_regs_exit): Likewise.
17442 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17443 * resource.c (update_live_status): Likewise.
17444 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17446 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17448 * rtl.h (reg_info): Add an nregs field.
17449 (REG_NREGS): Use it.
17450 (SET_REGNO_RAW): Delete.
17451 (set_regno_raw): New function.
17452 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17453 (END_REGNO): Redefine in terms of REG_NREGS.
17454 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17456 * emit-rtl.c (set_mode_and_regno): Likewise.
17457 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17458 instead of SET_REGNO_RAW.
17460 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17462 * rtl.h (PUT_MODE_RAW): New macro.
17463 (PUT_REG_NOTE_KIND): Use it.
17464 (set_mode_and_regno): Declare.
17465 (gen_raw_REG): Change regno to "unsigned int".
17466 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17467 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17468 use set_mode_and_regno to change the mode of registers.
17469 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17470 * emit-rtl.c (set_mode_and_regno): New function.
17471 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17472 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17473 * expr.c (init_expr_target): Likewise.
17474 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17475 * postreload.c (reload_cse_simplify_operands): Likewise.
17477 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17479 * caller-save.c (init_caller_save): Use word_mode and
17480 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17481 * expr.c (init_expr_target): Likewise.
17482 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17483 * postreload.c (reload_cse_regs_1): Likewise.
17485 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17487 * rtl.def (REG): Change format to "r".
17488 * rtl.h (rtunion): Remove rt_reg.
17489 (reg_info): New structure.
17490 (rtx_def): Add reg field to main union.
17491 (X0REGATTR): Delete.
17492 (REG_CHECK): New macro.
17493 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17494 * rtl.c (rtx_format): Document "r".
17495 (rtx_code_size): Handle REG specially.
17496 * gengenrtl.c (special_format): Return true for formats
17498 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17499 Deal with REG_ATTRS after the field loop.
17500 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17501 * expmed.c (init_expmed): Call gen_raw_REG instead of
17503 * expr.c (init_expr_target): Likewise.
17504 * regcprop.c (maybe_mode_change): Likewise.
17505 * varasm.c (make_decl_rtl): Likewise.
17506 * final.c (leaf_renumber_regs_insn): Return early after
17508 * genemit.c (gen_exp): Handle 'r' fields.
17509 * genpeep.c (match_rtx): Likewise.
17510 * gensupport.c (subst_pattern_match): Likewise.
17511 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17512 (alter_constraints, subst_dup): Likewise.
17513 * read-rtl.c (read_rtx_code): Likewise.
17514 * print-rtl.c (print_rtx): Likewise.
17515 * genrecog.c (find_operand, find_matching_operand): Likewise.
17516 (validate_pattern, match_pattern_2): Likewise.
17517 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17518 (rtx_test::regno_field): New function.
17519 (operator ==, safe_to_hoist_p, transition_parameter_type)
17520 (parameter_type_string, print_parameter_value)
17521 (print_nonbool_test, print_test): Handle new enum values.
17522 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17523 * lra-constraints.c (operands_match_p): Likewise.
17525 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17527 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17528 Change type of new_regno to unsigned int.
17529 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17530 new_regno to unsigned int.
17531 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17532 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17533 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17534 (SET_REGNO_RAW): Add space after ",".
17536 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17538 * rtl.h (REG_NREGS): New macro
17539 * alias.c (record_set): Use it.
17540 * cfgcleanup.c (mark_effect): Likewise.
17541 * combine.c (likely_spilled_retval_1): Likewise.
17542 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17543 (move_deaths, distribute_notes): Likewise.
17544 * cselib.c (cselib_record_set): Likewise.
17545 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17546 * df-scan.c (df_mark_reg): Likewise.
17547 * dse.c (look_for_hardregs): Likewise.
17548 * dwarf2out.c (reg_loc_descriptor): Likewise.
17549 (multiple_reg_loc_descriptor): Likewise.
17550 * expr.c (write_complex_part, read_complex_part): Likewise.
17551 (emit_move_complex): Likewise.
17552 * haifa-sched.c (setup_ref_regs): Likewise.
17553 * ira-lives.c (mark_hard_reg_live): Likewise.
17554 * lra.c (lra_set_insn_recog_data): Likewise.
17555 * mode-switching.c (create_pre_exit): Likewise.
17556 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17557 (reload_combine_recognize_pattern): Likewise.
17558 (reload_combine_note_use, move2add_record_mode): Likewise.
17559 (reload_cse_move2add): Likewise.
17560 * reg-stack.c (subst_stack_regs_pat): Likewise.
17561 * regcprop.c (kill_value, copy_value): Likewise.
17562 (copyprop_hardreg_forward_1): Likewise.
17563 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17564 (build_def_use): Likewise.
17565 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17566 (deps_analyze_insn): Likewise.
17567 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17568 * sel-sched.c (count_occurrences_equiv): Likewise.
17569 * valtrack.c (dead_debug_insert_temp): Likewise.
17571 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17573 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17574 * dse.c (note_add_store): Likewise.
17575 * ira-lives.c (mark_hard_reg_dead): Likewise.
17576 * loop-invariant.c (mark_reg_store): Likewise.
17577 (mark_reg_death): Likewise.
17578 * postreload.c (reload_combine): Likewise.
17579 (reload_combine_note_store): Likewise.
17580 (reload_combine_note_use): Likewise.
17581 * recog.c (peep2_reg_dead_p): Likewise.
17583 2015-05-19 Alan Modra <amodra@gmail.com>
17585 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17586 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17587 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17589 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17590 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17591 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17592 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17594 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17596 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17597 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17598 (join2_loadhi): Likewise.
17599 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17600 load-load and store-stores.
17601 * config/mips/mips.opt (mload-store-pairs): New option.
17602 (TARGET_LOAD_STORE_PAIRS): New macro.
17603 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17604 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17605 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17607 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17609 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17611 * dojump.c (do_compare_rtx_and_jump): Likewise.
17612 * expmed.c (emit_store_flag_1): Likewise.
17613 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17614 * final.c (sprint_ul): Use std::reverse for reversing a string.
17615 * fold-const.c (extract_muldiv_1): Use std::swap.
17616 * genmodes.c (emit_mode_int_n): Likewise.
17617 * ifcvt.c (dead_or_predicable): Likewise.
17618 * ira-build.c (ira_merge_live_ranges): Likewise.
17619 (swap_allocno_copy_ends_if_necessary): Likewise.
17620 * ira.c (ira_setup_alts): Likewise.
17621 * loop-iv.c (iv_analyze_expr): Likewise.
17622 (implies_p): Likewise.
17623 (canon_condition): Likewise.
17624 * lra-constraints.c (swap_operands): Likewise.
17625 * lra-lives.c (lra_merge_live_ranges): Likewise.
17626 * omega.c (swap): Remove.
17628 (omega_unprotect_1): Use std::swap.
17629 (omega_solve_geq): Likewise.
17630 * optabs.c (expand_binop_directly): Likewise.
17631 (expand_binop): Likewise.
17632 (emit_conditional_move): Likewise.
17633 (emit_conditional_add): Likewise.
17634 * postreload.c (reload_cse_simplify_operands): Likewise.
17635 * reg-stack.c (emit_swap_insn): Likewise.
17636 (swap_to_top): Likewise.
17637 (compare_for_stack_reg): Likewise.
17638 (subst_asm_stack_regs): Likewise.
17639 * reload.c (find_reloads): Likewise.
17640 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17641 * sel-sched.c (invoke_reorder_hooks): Likewise.
17642 (create_block_for_bookkeeping): Likewise.
17643 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17644 (lambda_matrix_right_hermite): Use std::swap.
17645 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17646 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17647 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17648 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17649 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17650 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17651 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17652 * tree-vrp.c (compare_ranges): Likewise.
17653 * var-tracking.c (add_with_sets): Likewise.
17654 (vt_find_locations): Likewise.
17656 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17658 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17660 (FBSD_ENDFILE_SPEC): Likewise.
17661 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17662 config/freebsd-spec.h.
17663 (ENDFILE_SPEC): Likewise.
17665 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17666 Richard Henderson <rth@redhat.com>
17669 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17670 Check for a memory location that is not a reference (using an AND)
17671 to an unaligned location here.
17672 * config/alpha/predicates.md (normal_memory_operand): Remove.
17674 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
17676 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
17677 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
17679 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
17681 * config/mips/mips.c (micromips_globals): New variable.
17682 (mips_set_compression_mode): Save and reinitialize target-dependent
17683 state for microMIPS.
17685 2015-05-18 Martin Liska <mliska@suse.cz>
17687 * dbgcnt.def: Add new counter.
17688 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
17690 2015-05-18 Martin Liska <mliska@suse.cz>
17692 * dbgcnt.def: Sort counters.
17693 * opts.c (common_handle_option): Do not compile if
17694 -fdbg-cnt-list is enabled.
17696 2015-05-18 Tom de Vries <tom@codesourcery.com>
17698 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
17699 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
17700 address operator to va_list operand.
17701 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
17703 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
17705 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
17706 * config/s390/s390.c (s390_gimplify_va_arg): Same.
17707 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
17709 2015-05-18 Tom de Vries <tom@codesourcery.com>
17711 * tree-ssa-tail-merge.c: Fix whitespace.
17713 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
17715 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
17716 cortex-a17, and cortex-a17.cortex-a7.
17718 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
17721 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17723 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
17726 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17727 QImode inner modes for TARGET_AVX512BW. Force mask operand
17728 to a register for AVX512F modes.
17730 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17732 * toplev.c (emit_debug_global_declarations): Do not output debug info
17733 when doing slim LTO objects.
17735 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17737 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17738 odr_types_equivalent_p): Declare.
17739 (odr_type_p): Use gcc_checking_assert.
17740 (type_in_anonymous_namespace_p) Declare.
17741 (type_with_linkage_p): Declare.
17742 * common.opt (Wlto-type-mismatch): New warning.
17743 * ipa-devirt.c (compound_type_base): New function.
17744 (odr_or_derived_type_p): New function.
17745 (odr_types_equivalent_p): New function.
17746 (add_type_duplicate): Simplify.
17747 (type_with_linkage_p): Add hack to prevent false positives on C types
17748 (type_in_anonymous_namespace_p): Likewise.
17749 * tree.c (need_assembler_name_p): Use type_with_linkage.
17750 * tree.h (type_in_anonymous_namespace_p): Remove.
17751 * doc/invoke.texi (-Wlto-type-mismatch): Document
17753 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17755 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
17756 (verify_type): Verify STRING_FLAG.
17758 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
17761 * tree-pretty-print.c (percent_K_format): Replace locus pointer
17762 with accessor function.
17763 * tree-diagnostic.c (diagnostic_report_current_function): Use
17764 diagnostic_location function.
17765 (maybe_unwind_expanded_macro_loc): Likewise.
17766 (virt_loc_aware_diagnostic_finalizer): Likewise.
17767 (default_tree_printer): Replace locus pointer with accessor function.
17768 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
17769 (diagnostic_set_info_translated): Initialize second location.
17770 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17771 (diagnostic_show_locus): Handle two locations. Call
17772 diagnostic_print_caret_line.
17773 (diagnostic_print_caret_line): New.
17774 (default_diagnostic_starter): Use diagnostic_location function.
17775 (diagnostic_report_diagnostic): Use diagnostic_location function.
17776 (verbatim): Do not set text.locus.
17777 * diagnostic.h (struct diagnostic_info): Remove location field.
17778 (struct diagnostic_context): Make caret_chars an array of two.
17779 (diagnostic_location): New inline.
17780 (diagnostic_expand_location): Handle two locations.
17781 (diagnostic_same_line): New inline.
17782 (diagnostic_print_caret_line): Declare.
17783 (CARET_LINE_MARGIN): New constant.
17784 * pretty-print.c (pp_printf): Do not set text.locus.
17785 (pp_verbatim): Do not set text.locus.
17786 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17787 (struct text_info): Replace locus pointer with locations
17788 array. Add accessor functions.
17790 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
17791 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17794 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17795 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17796 large constants in register instead of splitting them.
17798 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
17801 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17802 replacements in memory addresses.
17803 (get_unaligned_address): Ditto.
17805 2015-05-16 James Bowman <james.bowman@ftdichip.com>
17807 * config/ft32/*: New files for FT32 port.
17808 * doc/install.texi: Add FT32 information.
17809 * doc/invoke.texi: Add FT32 information.
17810 * doc/md.texi: Add FT32 information.
17811 * doc/contrib.texi: Self added.
17813 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
17815 PR tree-optimization/64454
17816 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17817 (-1 - A -> ~A): Remove unnecessary condition.
17819 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
17821 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17822 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17823 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17825 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
17827 * ipa-chkp.h (chkp_wrap_function): New.
17828 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17829 (chkp_wrap_function_name): New.
17830 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17831 to get wrapper name.
17832 * lto-cgraph.c: Include ipa-chkp.h.
17833 (input_cgraph_1): Avoid alias chain for wrappers.
17835 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17837 PR middle-end/66134
17838 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17839 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17841 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17843 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17844 (AARCH64_FL_SLOWMUL): Delete.
17845 (AARCH64_FL_CRC): Redefine to 1<<3.
17846 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17848 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17850 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17853 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17855 * config/alpha/alpha.md (extendqidi2): Use general_operand
17856 instead of some_operand for operand[1] predicate.
17857 (extendhidi2): Ditto.
17858 (cbranchdi4): Use general_operand instead of some_operand
17859 for operand[1] and operands[2] predicates.
17860 (cstoredi4): Ditto.
17861 * config/alpha/predicates.md (some_operand): Remove unused predicate.
17862 (some_ni_operand): Ditto.
17864 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17866 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17867 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
17868 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17869 low part of the constant using alpha_emit_set_const_1.
17870 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17872 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
17874 * varasm.c (output_constant_pool_1): Pass down alignment from
17875 constant pool entry's descriptor to output_constant_pool_2.
17876 (output_object_block): Add comment prior to call to
17877 output_constant_pool_1.
17879 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
17881 PR rtl-optimization/65862
17882 * target.def (ira_change_pseudo_allocno_class): New hook.
17883 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17885 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17886 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17888 * ira-costs.c (find_costs_and_classes): Call the hook and change
17889 classes when it is necessary.
17890 * doc/tm.texi: Update.
17892 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
17894 * config/i386/i386.md (sibcall_memory): Check that register with
17895 callee address is not also used as one of the arguments, instead
17896 of checking that it is not live after the sibcall.
17897 (sibcall_pop_memory): Ditto.
17898 (sibcall_value_memory): Ditto.
17899 (sibcall_value_pop_memory): Ditto.
17901 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
17903 * generic-match-head.c (types_match): Handle non-types.
17904 * gimple-match-head.c (types_match): Likewise.
17905 * match.pd: Remove unnecessary TREE_TYPE for types_match.
17907 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
17909 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17910 (csneg3<mode>_insn): Enable expansion of pattern.
17912 2015-05-14 Nick Clifton <nickc@redhat.com>
17914 * config/rl78/rl78.c (rl78_select_section): Select the correct
17915 default section based upon the category of the decl.
17917 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17919 PR rtl-optimization/30967
17920 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17921 destination mode for the cost of scc patterns.
17923 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17925 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17926 using SWIM248 mode iterator.
17927 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17928 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
17929 for operand[2] constraint.
17930 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17932 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17934 PR middle-end/66133
17935 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17936 make sure it is never noreturn, even when the task body does not
17938 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17939 right before GIMPLE_OMP_RETURN.
17940 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17941 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
17942 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17944 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17946 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17947 * tree-ssa-math-opts.c: Include params.h
17948 (pow_synth_sqrt_info): New struct.
17949 (representable_as_half_series_p): New function.
17950 (get_fn_chain): Likewise.
17951 (print_nested_fn): Likewise.
17952 (dump_fractional_sqrt_sequence): Likewise.
17953 (dump_integer_part): Likewise.
17954 (expand_pow_as_sqrts): Likewise.
17955 (gimple_expand_builtin_pow): Use above to attempt to expand
17956 pow as series of square roots. Removed now unused variables.
17958 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17960 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17961 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17962 Remove *p0 and *p1 arguments. Rewrite function.
17963 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17964 (alpha_split_const_mov): Update calls to alpha_extract_integer and
17965 alpha_emit_set_long_const.
17966 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17967 (alpha_output_mi_thunk_osf): Ditto.
17968 * config/alpha/alpha.md (movti): Do not check operands[1]
17971 2015-05-13 Richard Biener <rguenther@suse.de>
17973 PR tree-optimization/66129
17974 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17976 (vect_schedule_slp_instance): Fix typo.
17978 2015-05-13 David Malcolm <dmalcolm@redhat.com>
17980 * common.opt (fdump-internal-locations): New option.
17981 * input.c: Include diagnostic-core.h.
17982 (get_end_location): New function.
17983 (write_digit): New function.
17984 (write_digit_row): New function.
17985 (dump_location_range): New function.
17986 (dump_labelled_location_range): New function.
17987 (dump_location_info): New function.
17988 * input.h (dump_location_info): New prototype.
17989 * toplev.c (compile_file): Handle flag_dump_locations.
17991 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
17993 * gimple-expr.h (is_gimple_constant): Reorder.
17994 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17996 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17998 * combine.c (simplify_set): When generating a CC set, if the
17999 source already is in the correct mode, do not wrap it in a
18000 compare. Simplify the rest of that code.
18002 2015-05-13 Richard Biener <rguenther@suse.de>
18004 PR tree-optimization/66123
18005 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18008 2015-05-13 Richard Biener <rguenther@suse.de>
18010 PR middle-end/66110
18011 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18013 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18015 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18017 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18018 * aclocal.m4: Regenerated with automake-1.11.6.
18020 2015-05-13 Tom de Vries <tom@codesourcery.com>
18022 PR tree-optimization/66010
18023 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18024 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18025 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18026 and rval based on do_deref.
18028 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18031 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18032 link time constants into adress expressions and therefore set
18035 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18038 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18039 Use SWI248 iterator instead of SWI.
18040 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18041 Use eq_attr "alternative" "0" instead of match_test in
18042 length_immediate attribute computation.
18043 (*mulvhi4, *mulvhi4_1): New define_insns.
18046 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18047 SIGNED to get precision of non-negative value.
18049 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18052 * function.c (diddle_return_value_1): Process bounds first.
18053 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18056 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18058 PR rtl-optimization/64616
18059 * loop-invariant.c (can_move_invariant_reg): New.
18060 (move_invariant_reg): Call above new function to decide whether
18061 instruction can just be moved, skipping creation of temporary
18064 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18066 PR target/pr66047.c
18067 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18068 with implied regparm is called from -mno-sse function.
18069 (init_cumulative_args): Output error if ix86_function_sseregparm
18070 return -1 and SSE register would be needed.
18071 (function_arg_advance_32): Likewise.
18072 (function_arg_32): Likewise.
18073 * i386.h (ix86_args): Add decl field.
18075 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18078 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18079 inlines across optimization boundary.
18081 2015-05-12 Jason Merrill <jason@redhat.com>
18083 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18084 string literal and macro name.
18086 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18088 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18089 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18090 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18092 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18094 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18095 (-Wmisleading-indentation): New option.
18096 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18098 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18100 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18101 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18102 (alpha_extract_integer): Ditto.
18103 (alpha_legitimate_constant_p): Ditto.
18104 (alpha_split_tmode_pair): Ditto.
18105 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18106 (alpha_expand_mov): Ditto.
18107 (print_operand): Remove handling of 'H' modifier.
18108 <case 'm'>: Remove CONST_DOUBLE handling.
18109 (summarize_insn): Handle CONST_WIDE_INT.
18110 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18112 (movti): Handle CONST_WIDE_INT.
18113 * config/alpha/constraints.md ('H'): Remove constraint definition.
18114 ('G'): Do not match MODE_FLOAT class.
18115 * config/alpha/predicates.md (const0_operand): Also match
18117 (non_add_const_operand): Ditto.
18118 (non_zero_const_operand): Ditto.
18119 (some_operand): Ditto.
18120 (input_operand): Ditto. Handle CONST_WIDE_INT.
18121 (and_operand): Do not match const_double.
18122 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18124 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18127 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18128 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18129 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18130 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18131 is_mm_seq_cst, is_mm_sync): New accessor functions.
18132 * builtins.c (expand_builtin_sync_operation,
18133 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18134 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18135 (get_memmodel, expand_builtin_atomic_compare_exchange,
18136 expand_builtin_atomic_load, expand_builtin_atomic_store,
18137 expand_builtin_atomic_clear): Use new accessor routines.
18138 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18139 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18140 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18141 MEMMODEL_SYNC_ACQUIRE.
18142 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18143 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18144 expand_atomic_store): Use new accessors.
18145 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18146 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18147 final enum to use MEMMODEL_LAST.
18148 * c-family/c-common.c: Use new accessor for memmodel_base.
18149 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18151 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18152 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18153 mem_thread_fence, *dmb): Likewise.
18154 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18155 alpha_split_compare_and_swap_12): Likewise.
18156 * config/arm/arm.c (arm_expand_compare_and_swap,
18157 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18158 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18159 atomic_loaddi): Likewise.
18160 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18162 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18163 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18165 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18166 atomic_store<mode>, atomic_compare_and_swap<mode>,
18167 atomic_exchange<mode>): Use new accessors.
18168 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18169 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18170 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18171 rs6000_post_atomic_barrier): Add new cases.
18172 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18173 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18174 (atomic_load<mode>): Add new cases and use new accessors.
18175 (store_quadpti): Add new cases.
18176 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18178 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18179 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18182 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18184 * ipa-devirt.c (type_with_linkage_p): New function.
18185 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18187 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18188 (can_be_name_hashed_p): Simplify.
18189 (hash_odr_name): Check that type has linkage before checking if it is
18191 (types_same_for_odr): Likewise.
18192 (odr_name_hasher::equal): Likewise.
18193 (odr_subtypes_equivalent_p): Likewise.
18194 (warn_types_mismatch): Likewise.
18195 (get_odr_type): Likewise.
18196 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18197 * ipa-utils.h (odr_type_p): Move offline.
18198 * tree.c (need_assembler_name_p): Fix handling of types
18200 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18202 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18204 * timevar.c (timevar_enable): Delete in favor of...
18205 (g_timer): New global.
18206 (struct timevar_def): Move to timevar.h inside class timer.
18207 (struct timevar_stack_def): Likewise.
18208 (timevars): Delete global in favor of field "m_timevars" within
18209 class timer in timevar.h
18210 (stack): Likewise, in favor of field "m_stack".
18211 (unused_stack_instances): Likewise, in favor of field
18212 "m_unused_stack_instances".
18213 (start_time): Likewise, in favor of field "m_start_time".
18214 (get_time): Eliminate check for timevar_enable.
18215 (timer::timer): New function, built from part of timevar_init.
18216 (timevar_init): Rewrite idempotency test from using
18217 "timevar_enable" bool to using dynamic allocation of "g_timer".
18218 Move rest of implementation into timer's constructor.
18219 (timevar_push_1): Rename to...
18220 (timer::push): ...this, adding "m_" prefixes to variables that
18221 are now fields of timer.
18222 (timevar_pop_1): Likewise, rename to...
18223 (timer::pop): ...this, and add "m_" prefixes.
18224 (timevar_start): Replace test for "timevar_enable" with one for
18225 "g_timer", and move bulk of implementation to...
18226 (timer::start): ...here, adding "m_" prefixes.
18227 (timevar_stop): Likewise, from here...
18228 (timer::stop): ...to here.
18229 (timevar_cond_start): Likewise, from here...
18230 (timer::cond_start): ...to here.
18231 (timevar_cond_stop): Likewise, from here...
18232 (timer::cond_stop): ...to here.
18233 (validate_phases): Rename to...
18234 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18235 locals "total" and "tv" const.
18236 (timevar_print): Rename to...
18237 (timer::print): ...this, and add "m_" prefixes. Make locals
18238 "total" and "tv" const. Eliminate test for timevar_enable.
18239 * timevar.h (timevar_enable): Eliminate.
18240 (g_timer): New declaration.
18241 (timevar_push_1): Eliminate.
18242 (timevar_pop_1): Eliminate.
18243 (timevar_print): Eliminate.
18244 (class timer): New class.
18245 (timevar_push): Rewrite to use g_timer.
18246 (timevar_pop): Likewise.
18247 * toplev.c (toplev::~toplev): Likewise.
18249 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18251 * arm-protos.h (arm_sched_autopref): Delete.
18252 (tune_params): Re-organize, use enums for flag values.
18253 (FUSE_OPS): New macro.
18254 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18255 (ARM_PREFETCH_BENEFICIAL): Likewise.
18256 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18257 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18258 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18259 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18260 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18261 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18262 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18263 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18265 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18266 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18267 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18269 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18271 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18274 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18275 Sandra Loosemore <sandra@codesourcery.com>
18277 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18279 (REG_CLASS_NAMES): Add "IJMP_REGS".
18280 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18281 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18282 use new "c" register constraint.
18283 * config/nios2/constraint.md (c): New register constraint
18284 corresponding to IJMP_REGS.
18286 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18288 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18289 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18290 define_splits): Delete, revamp, transmogrify into ...
18291 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18292 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18293 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18296 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18298 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18299 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18301 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18303 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18304 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18305 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18306 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18307 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18308 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18309 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18310 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18311 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18312 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18313 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18314 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18315 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18316 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18317 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18318 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18319 and 30 corresponding splitters): Delete.
18321 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18323 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18326 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18328 * combine.c (recog_for_combine_1): New function, factored out
18329 from recog_for_combine.
18330 (change_zero_ext): New function.
18331 (recog_for_combine): If recog fails, try again with the pattern
18332 modified by change_zero_ext; if that still fails, restore the
18335 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18337 * combine.c (get_undo_marker): New function.
18338 (undo_to_marker): New function, largely factored out from ...
18339 (undo_all): ... this. Adjust.
18341 2015-05-12 Richard Biener <rguenther@suse.de>
18343 PR tree-optimization/66101
18344 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18345 fixup if we turn a loop exit edge to a fallthru edge.
18347 2015-05-12 Richard Biener <rguenther@suse.de>
18349 PR tree-optimization/37021
18350 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18351 (SLP_TREE_TWO_OPERATORS): New define.
18352 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18353 SLP_TREE_TWO_OPERATORS.
18354 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18356 (vect_build_slp_tree): Adjust.
18357 (vect_analyze_slp_cost_1): Likewise.
18358 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18359 emitting two vector stmts and mixing the results.
18361 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18363 * call.c (print_z_candidates): Remove dead code.
18365 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18367 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18368 and zEC12_simple_fp.
18369 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18372 2015-05-12 Tom de Vries <tom@codesourcery.com>
18374 PR tree-optimization/66010
18375 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18377 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18378 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18379 va_lists are passed, and remove corresponding handling.
18380 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18381 do_deref argument to ifn_va_arg.
18382 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18385 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18388 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18389 REG before taking its REGNO.
18391 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18393 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18394 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18395 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18396 present to get more accurate information about the number of sign bit
18397 copies and non zero bits.
18399 2015-05-12 Richard Biener <rguenther@suse.de>
18401 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18402 do not allow unrolling.
18404 2015-05-11 Richard Henderson <rth@redhat.com>
18406 * config/i386/i386-modes.def (CCP): New.
18407 * config/i386/i386.c (put_condition_code): Handle it.
18408 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18410 2015-05-11 Richard Henderson <rth@redhat.com>
18412 * target.def (md_asm_clobbers): Replace with...
18413 (md_asm_adjust): this.
18414 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18415 (TARGET_MD_ASM_ADJUST): New.
18416 * tm.texi: Rebuild.
18417 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18418 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18419 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18421 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18422 constraints instead of lists of outputs and inputs.
18423 (expand_asm_stmt): Save and restore input_location around the
18424 body of the function. Move asm data into vectors instead of
18425 building tree lists. Generate cleanup sequences as needed,
18426 rather than waiting til the end. Use new md_asm_adjust hook.
18428 * config/vxworks.c: Include vec.h before target.h.
18429 * gimple.c: Likewise.
18430 * incpath.c: Likewise.
18431 * mode-switching.c: Likewise.
18433 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18434 (cris_md_asm_adjust): this.
18435 (TARGET_MD_ASM_CLOBBERS): Remove.
18436 (TARGET_MD_ASM_ADJUST): New.
18437 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18438 (ix86_md_asm_adjust): this.
18439 (TARGET_MD_ASM_CLOBBERS): Remove.
18440 (TARGET_MD_ASM_ADJUST): New.
18441 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18442 (mn10300_md_asm_adjust): this.
18443 (TARGET_MD_ASM_CLOBBERS): Remove.
18444 (TARGET_MD_ASM_ADJUST): New.
18445 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18446 (rs6000_md_asm_adjust): this.
18447 (TARGET_MD_ASM_CLOBBERS): Remove.
18448 (TARGET_MD_ASM_ADJUST): New.
18449 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18450 (visium_md_asm_adjust): this.
18451 (TARGET_MD_ASM_CLOBBERS): Remove.
18452 (TARGET_MD_ASM_ADJUST): New.
18454 2015-05-11 Richard Henderson <rth@redhat.com>
18456 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18457 if noutputs is zero.
18458 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18460 * cfgexpand.c (expand_asm_operands): Merge into...
18461 (expand_asm_stmt): ... here.
18463 * cfgexpand.c (expand_asm_operands): Don't call
18464 resolve_asm_operand_names.
18465 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18467 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18469 * dwarf2out.c (gen_member_die): Sanity check that we access
18470 TYPE_MAIN_VARIANT for TYPE_METHODS.
18471 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18472 checking TYPE_METHODS.
18473 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18475 (build_distinct_type_copy): Clear TYPE_METHODS.
18476 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18477 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18478 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18480 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18482 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18483 (emit_pattern_before_setloc): Likewise.
18485 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18487 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18488 for define_peephole2s.
18489 (get_peephole2_pattern): New function.
18490 (main): Use it. Call validate_pattern.
18492 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18494 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18495 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18496 (Last callee saved reg is different for AVR_TINY architecture)
18498 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18500 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18501 when looking for memory references.
18503 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18506 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18507 via function pointers.
18509 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18511 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18512 indirect call by forcing address into a pseudo with -fno-plt.
18513 * common.opt (flag_plt): New option.
18514 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18515 ([-fno-plt]): Document.
18517 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18520 * config/rs6000/option-defaults.h: Add space between string literal
18523 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18525 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18526 accross ARM targets.
18528 2015-05-11 Christian Bruel <christian.bruel@st.com>
18530 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18531 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18533 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18535 PR rtl-optimization/66076
18536 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18537 Don't grow the heap array if it is already big enough from a
18538 previous iteration.
18540 2015-05-11 Christian Bruel <christian.bruel@st.com>
18542 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18543 (is_called_in_ARM_mode): Remove.
18544 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18545 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18546 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18547 arm_declare_function_name.
18549 2015-05-11 Christian Bruel <christian.bruel@st.com>
18551 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18552 (arm_option_params_internal); New function.
18553 (arm_option_check_internal): New function.
18554 (arm_option_override_internal): New function.
18555 (thumb_code, thumb1_code): Remove.
18556 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18557 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18558 (thumb_code, thumb1_code): Remove.
18559 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18561 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18563 * config/alpha/alpha.c (alpha_emit_set_const_1)
18564 (alpha_emit_set_long_const, alpha_extract_integer)
18565 (alpha_legitimate_constant_p, alpha_split_const_mov)
18566 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18567 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18568 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18570 * config/alpha/predicates.md (mode_mask_operand): Do not match
18572 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18573 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18574 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18575 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18576 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18578 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18581 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18582 default_binds_local_p_2.
18583 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18584 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18586 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18588 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18590 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18592 Patch by Richard Biener
18593 * coverage.c (coverage_obj_init): Delay building of type variant
18594 until the type is finished.
18596 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18598 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18599 mismatch between C and C++ type; compoare correctly ARG_TYPES
18600 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18601 (odr_types_equivalent_p): Fix wording of warning about attributes;
18602 it is OK to match prototype and non-prototype.
18604 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18606 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18607 TYPE_ARG_TYPES list.
18608 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18609 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18611 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18613 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18614 * tree.h (is_lang_specific): Constify.
18616 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18618 PR tree-optimization/64454
18619 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18622 2015-05-08 Jason Merrill <jason@redhat.com>
18624 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18625 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18626 config/darwin.h, config/darwin9.h, config/elfos.h,
18627 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18628 config/microblaze/microblaze.h, config/mips/mips.h,
18629 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18630 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18631 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18632 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18633 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18634 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18635 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18636 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18637 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18638 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18639 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18640 between string literal and macro name.
18642 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18644 * jump.c: Change argument types to rtx_insn *.
18647 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18649 * lra-constraints.c: Change argument type to rtx_insn *.
18651 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18653 * df-problems.c: Change argument type to rtx_insn *.
18655 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18657 * combine.c: Change argument type to rtx_insn *.
18659 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18662 * rtlanal.c: Change argument type to rtx_insn *.
18664 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18666 * sched-deps.c: Change argument types to rtx_insn *.
18667 * sched-int.h: Adjust.
18669 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18671 * dwarf2cfi.c: Change argument type to rtx_insn *.
18673 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18675 * ira.c (decrease_live_ranges_number): Changetype of local
18676 variable to rtx_insn *.
18677 * recog.c: Change argument types to rtx_insn *.
18680 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18682 * reorg.c: Change argument types to rtx_insn *.
18684 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18686 * ira-color.c: Change argument types to rtx_insn *.
18687 * lra-eliminations.c: Likewise.
18690 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18692 * gcse.c: Change argument types to rtx_insn *.
18694 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18696 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
18698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18700 * emit-rtl.c (emit_debug_insn_before): Change argument type to
18704 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18706 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
18709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18711 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
18714 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18716 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
18719 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18721 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18724 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18726 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18730 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18732 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18736 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18738 * except.c (can_nonlocal_goto): Change type of argument to
18742 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18744 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18747 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18749 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
18750 * cfgrtl.c (can_delete_label_p): Adjust.
18753 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18755 * reorg.c (stop_search_p): Change argument to rtx_insn *.
18757 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18759 * except.c (make_reg_eh_region_note): Change argument to
18761 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
18762 * except.h: Adjust.
18764 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18766 * mode-switching.c (commit_mode_sets): Change type of local
18767 variable from rtx to rtx_insn *.
18769 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
18771 * doc/install.texi (--enable-languages): Add missing jit and lto info.
18772 Add ^ to grep command.
18773 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18774 arg to last gimple_simplify declaration. Add missing gimple_build
18775 declaration for built-in function case with four tree args.
18777 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18778 Szabolcs Nagy <szabolcs.nagy@arm.com>
18780 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18781 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18782 (GNU_USER_DYNAMIC_LINKERN32): Update.
18784 2015-05-08 Richard Biener <rguenther@suse.de>
18786 PR tree-optimization/66036
18787 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18788 Handle strided group loads.
18789 (vect_verify_datarefs_alignment): Likewise.
18790 (vect_enhance_data_refs_alignment): Likewise.
18791 (vect_analyze_group_access): Likewise.
18792 (vect_analyze_data_ref_access): Likewise.
18793 (vect_analyze_data_ref_accesses): Likewise.
18794 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18795 (vectorizable_load): Likewise.
18797 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
18799 * config/rs6000/rs6000.md: Require operand inequality in one
18802 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
18803 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18805 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18807 * config/rx/rx.md (movdi, movdf): Likewise.
18808 Likewise for define_peephole2s.
18810 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18812 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18813 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18814 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18815 vtst_u64): Rewrite using gcc vector extensions.
18817 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18819 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18820 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18822 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18824 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18826 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18828 * config/glibc-stdint.h (OPTION_MUSL): Define.
18829 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18830 Change the definition based on OPTION_MUSL for 64 bit targets.
18831 * config/linux.h (OPTION_MUSL): Redefine.
18832 * config/alpha/linux.h (OPTION_MUSL): Redefine.
18833 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18834 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18836 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18837 Szabolcs Nagy <szabolcs.nagy@arm.com>
18839 * config.gcc (LIBC_MUSL): New tm_defines macro.
18840 * config/linux.h (OPTION_MUSL): Define.
18841 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18842 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18843 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18844 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18845 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18846 * config/linux.opt (mmusl): New option.
18847 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18848 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18849 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18850 * configure: Regenerate.
18852 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
18853 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18856 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18857 * config/i386/knetbsd-gnu64.h: New file.
18859 2015-05-08 Marek Polacek <polacek@redhat.com>
18862 * doc/invoke.texi: Document -Woverride-init-side-effects.
18864 2015-05-07 Marek Polacek <polacek@redhat.com>
18867 * doc/invoke.texi: Document -Wshift-negative-value.
18869 2015-05-06 Aditya Kumar <hiraditya@msn.com>
18871 * gcov-tool.c (do_merge): Refactore to remove int ret.
18872 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18873 !type == FUNC to type != FUNC.
18874 * reload.h (struct target_reload): Changee to type of
18875 x_spill_indirect_levels from bool to unsigned char.
18877 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
18879 * rtl.h (always_void_p): New function.
18880 * gengenrtl.c (always_void_p): Likewise.
18881 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18882 with code foo are always VOIDmode.
18883 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18884 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18885 compare-elim.c, config/aarch64/aarch64.c,
18886 config/aarch64/aarch64.md, config/alpha/alpha.c,
18887 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18888 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18889 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18890 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18891 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18892 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18893 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18894 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18895 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18896 config/ia64/vect.md, config/iq2000/iq2000.c,
18897 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18898 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18899 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18900 config/mep/mep.c, config/microblaze/microblaze.c,
18901 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18902 config/mn10300/mn10300.c, config/msp430/msp430.c,
18903 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18904 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18905 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18906 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18907 config/rs6000/rs6000.md, config/rs6000/vector.md,
18908 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18909 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18910 config/sh/sh.md, config/sh/sh_treg_combine.cc,
18911 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18912 config/spu/spu.md, config/stormy16/stormy16.c,
18913 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18914 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18915 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18916 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18917 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18918 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18919 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18920 var-tracking.c: Update calls accordingly.
18922 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18925 PR middle-end/54303
18926 * varasm.c (function_mergeable_rodata_prefix): New function.
18927 (mergeable_string_section): Use it.
18928 (mergeable_constant_section): Use it.
18930 2015-05-07 Jeff Law <law@redhat.com>
18933 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18934 simplifier to narrow arithmetic.
18935 * generic-match-head.c: (types_match, single_use): New functions.
18936 * gimple-match-head.c: (types_match, single_use): New functions.
18938 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18940 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18943 2015-05-07 Richard Biener <rguenther@suse.de>
18945 PR tree-optimization/66002
18946 * passes.def: Schedule another pass_merge_phi after ifcombine, right
18949 2015-05-07 Marek Polacek <polacek@redhat.com>
18950 Martin Uecker <uecker@eecs.berkeley.edu>
18952 * doc/invoke.texi: Document -fsanitize=bounds-strict.
18953 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18954 into SANITIZE_NONDEFAULT.
18955 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18957 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
18960 * config/alpha/alpha.c (alpha_override_options_after_change): New.
18961 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18962 (alpha_override_options): Move align_loops, align_jumps and
18963 align_functions handling into alpha_override_options_after_change.
18965 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
18966 Chris Jones <chrisj@nvidia.com>
18967 Joshua Conner <jconner@nvidia.com>
18969 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18970 linking of crtfastmath.o.
18971 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18973 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18975 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18976 (cstore<mode>4_unsigned_imm): New expander.
18977 (cstore<mode>4): Remove empty constraint strings. Use the new
18980 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
18983 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18986 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18988 * config/aarch64/geniterators.sh: Use standard BRE in sed.
18990 2015-05-06 Alan Modra <amodra@gmail.com>
18993 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18994 (UNSPEC_NOP): Define.
18995 (reload_vsx_from_gpr<mode>): Add missing DONE.
18996 (reload_gpr_from_vsx<mode>): Likewise.
18997 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18998 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19000 2015-05-06 Christian Bruel <christian.bruel@st.com>
19003 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19004 align_jumps, align_functions into aarch64_override_options_after_change.
19006 2015-05-06 Richard Biener <rguenther@suse.de>
19008 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19009 vect_transform_slp_perm_load to check if we support a permutation
19010 for basic-block vectorization.
19012 2015-05-06 Nick Clifton <nickc@redhat.com>
19014 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19015 used, even if it is not being used as a frame pointer.
19017 2015-05-05 Jason Merrill <jason@redhat.com>
19019 * dwarf2out.c (gen_member_die): Don't emit anything for an
19020 anonymous class constructor.
19022 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19024 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19025 that it reflects the block structure.
19026 (afdo_propagate_edge): Likewise.
19027 (afdo_calculate_branch_prob): Likewise.
19028 (afdo_annotate_cfg): Likewise.
19029 * cfgcleanup.c (equal_different_set_p): Likewise.
19030 (try_crossjump_to_edge): Likewise.
19031 * cgraph.c (cgraph_node::verify_node): Likewise.
19032 * cgraphunit.c (expand_all_functions): Likewise.
19033 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19034 (exact_dependency_1): Likewise.
19035 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19036 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19037 * gensupport.c (process_define_subst): Likewise.
19038 * lto-wrapper.c (merge_and_complain): Likewise.
19039 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19040 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19041 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19042 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19043 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19044 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19045 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19046 * tree-vrp.c (vrp_finalize): Likewise.
19047 * tree.c (variably_modified_type_p): Likewise.
19049 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19051 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19052 on darwin12 and later.
19053 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19054 file to pass -rdynamic on darwin12 and later.
19055 * config/darwin.opt (rdynamic): Add.
19057 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19059 * doc/extend.texi (C Extensions): Update menu for moved Variable
19060 Attributes and Type Attributes sections.
19062 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19065 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19066 if rep_8byte stringop strategy was specified for 32-bit target.
19068 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19071 * config/i386/i386.md (vector convert to float spltiter): Check for
19072 xmm16+, when splitting scalar float conversion.
19073 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19075 2015-05-05 Nick Clifton <nickc@redhat.com>
19077 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19078 * config/msp430/msp430.c (msp430_override_options): Complain if
19079 -mcode-region or -mdata-region is used on a non MSP430X.
19080 (msp430_section_attr): New function. Checks lower, upper and
19082 (msp430_attribute_table): Add lower, upper and either.
19083 (gen_prefix): New function. Generates a prefix for a section
19085 (msp430_select_section): New function - handles the choice of
19086 section for an object. Takes into account memory region
19087 attributes and options.
19088 (msp430_function_section): Use gen_prefix.
19089 (TARGET_SECTION_TYPE_FLAGS): Define.
19090 (msp430_section_type_flags): New function.
19091 (TARGET_ASM_UNIQUE_SECTION): Define.
19092 (msp430_unique_section): New function.
19093 (msp430_output_aligned_decl_common): New function.
19094 (msp430_do_not_relax_short_jumps): New function.
19095 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19097 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19098 * config/msp430/msp430-protos.h
19099 (msp430_do_not_relax_short_jumps): New prototype.
19100 (msp430_output_aligned_decl_common): New prototype.
19101 * config/msp430/msp430.md (length): New attribute.
19102 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19103 then use a long code sequence for short jumps.
19104 * config/msp430/msp430.opt (mcode-region): New.
19105 (mdata-region): New.
19106 * doc/invoke.texi: Document new options.
19107 * doc/extend.texi: Document new attributes.
19109 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19111 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19112 (tune_params): Add field branch_costs.
19113 (aarch64_branch_cost): Declare.
19114 * gcc/config/aarch64.c (generic_branch_cost): New.
19115 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19116 (cortexa53_tunings): Likewise.
19117 (cortexa57_tunings): Likewise.
19118 (thunderx_tunings): Likewise.
19119 (xgene1_tunings): Likewise.
19120 (aarch64_branch_cost): Define.
19121 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19123 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19125 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19126 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19127 * config/i386/i386.md: Ditto.
19128 * config/i386/winnt.c: Ditto.
19130 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19132 * doc/extend.texi (__atomic Builtins): Move implementation details
19133 to the end of the description, rewrite opening paragraphs, state
19134 difference with __sync builtins, state C11/C++11 assumptions,
19135 weaken itemized descriptions, add explanation of memory model
19136 behaviour, expand description of compare-exchange, simplify text.
19138 2015-05-05 Renlin Li <renlin.li@arm.com>
19140 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19142 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19144 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19145 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19146 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19147 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19148 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19149 * configure: Regenerate.
19150 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19151 * doc/install.texi (aarch64*-*-*): Document new
19152 --enable-fix-cortex-a53-843419 option.
19153 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19154 and -mno-fix-cortex-a53-843419 options.
19156 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19159 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19161 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19163 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19164 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19165 compatibility problems.
19167 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19169 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19171 (cbranchsi4_reg): New.
19172 * config/microblaze/microblaze.c
19173 (microblaze_expand_conditional_branch_reg): New.
19174 * config/microblaze/microblaze-protos.h
19175 (microblaze_expand_conditional_branch_reg): New prototype.
19177 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19179 * config/microblaze/microblaze.md (peephole2): New.
19181 2015-05-04 Jeff Law <law@redhat.com>
19184 2015-05-04 Jeff Law <law@redhat.com>
19186 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19187 simplifier to narrow arithmetic.
19188 * generic-match-head.c: (types_match, single_use): New functions.
19189 * gimple-match-head.c: (types_match, single_use): New functions.
19191 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19194 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19195 (split_branches): Likewise.
19197 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19199 * common.opt (fdelete-null-pointer-checks): Init to -1.
19200 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19201 override flag_delete_null_pointer_checks default.
19202 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19203 behavior re address zero. Better document target-specific behavior.
19204 (-fisolate-errneous-paths-dereference): Mention relationship to
19205 -fdelete-null-pointer-checks.
19207 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19209 PR tree-optimization/65984
19210 * ubsan.c: Include tree-cfg.h.
19211 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19212 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19214 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19216 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19217 to CONST_DOUBLE_P predicate.
19218 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19219 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19220 allow only operands that satisfy standard_sse_constant_p predicate.
19221 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19222 to CONST_DOUBLE_P predicate.
19224 2015-05-04 Jeff Law <law@redhat.com>
19226 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19227 simplifier to narrow arithmetic.
19228 * generic-match-head.c: (types_match, single_use): New functions.
19229 * gimple-match-head.c: (types_match, single_use): New functions.
19231 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19233 * config/arm/arm.c: Restore bootstrap.
19235 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19237 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19238 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19239 as CONST_WIDE_INT, not CONST_DOUBLE.
19240 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19241 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19242 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19243 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19244 (ix86_build_signbit_mask): Rewrite using wide ints.
19245 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19246 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19247 (find_constant): Ditto.
19248 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19249 using gen_int_mode.
19250 * config/i386/predicates.md (x86_64_immediate_operand)
19251 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19252 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19253 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19254 (const0_operand): Also match const_wide_int.
19255 (constm1_operand): Ditto.
19256 (const1_operand): Ditto.
19258 2015-05-04 Richard Biener <rguenther@suse.de>
19260 PR tree-optimization/65965
19261 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19262 store groups at gaps.
19264 2015-05-04 Richard Biener <rguenther@suse.de>
19266 PR tree-optimization/65935
19267 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19268 then make sure to apply that swapping to the IL.
19270 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19272 * Makefile.in (PATCHLEVEL_c): New variable.
19273 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19274 expand the same way as if DEVPHASE_c was non-empty.
19276 2015-05-04 Kai Tietz <ktietz@redhat.com>
19279 * lto-wrapper.c (run_gcc): Open filename
19282 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19284 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19285 sections up in file, to immediately after the Function Attributes
19288 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19290 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19292 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19294 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19295 (insert_partition_copy_on_edge): Adjust.
19296 (insert_rtx_to_part_on_edge): Likewise.
19297 (insert_part_to_rtx_on_edge): Likewise.
19299 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19301 * function.c (set_return_jump_label): Change type of argument to
19303 * function.h (set_return_jump_label): Adjust.
19305 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19307 * reload.h (struct reg_equivs_t): Change type of init to
19309 * ira.c (fix_reg_equiv_init): Adjust.
19310 * reload1.c (eliminate_regs_1): Likewise.
19311 (init_eliminable_invariants): Likewise.
19313 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19315 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19316 * cselib.h (fp_setter_insn): Adjust.
19318 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19320 * recog.c (struct validate_replace_src_data): Change type of
19321 insn field to rtx_insn *.
19322 (validate_replace_src_group): Change type of argument to rtx_insn *.
19323 * recog.h (validate_replace_src_group): Adjust.
19325 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19327 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19328 * sched-deps.c: Likewise.
19329 * sched-int.h: Likewise.
19330 * sched-rgn.c: Likewise.
19331 * sel-sched.c: Likewise.
19333 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19336 * config/i386/i386.c: Change the type of some arguments to
19338 * config/arm/arm.c: Likewise.
19340 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19342 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19344 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19346 * regcprop.c (kill_autoinc_value): Change type of argument to
19349 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19351 * genrecog.c (print_subroutine): Adjust.
19352 * recog.c (get_bool_attr_mask_uncached): Likewise.
19353 * recog.h (struct recog_data_d): Change the type of insn to
19356 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19358 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19360 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19362 * df-problems.c (df_set_note): Change type of argument to
19365 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19367 * builtins.c (expand_builtin_trap): Change type of local
19368 variable to rtx_insn *.
19369 (add_sched_insns_for_speculation): Likewise.
19370 (ix86_emit_save_regs): Likewise.
19371 (get_scratch_register_on_entry): Likewise.
19372 (ix86_emit_restore_reg_using_pop): Likewise.
19373 (ix86_emit_leave): Likewise.
19374 (ix86_emit_restore_regs_using_mov): Likewise.
19375 (ix86_expand_epilogue): Likewise.
19377 (rl78_alloc_physical_registers_umul): Likewise.
19378 * cselib.c (discard_useless_locs): Likewise.
19379 (cselib_invalidate_regno): Likewise.
19380 (cselib_invalidate_mem): Likewise.
19381 * function.c (expand_function_start): Likewise.
19382 (emit_use_return_register_into_block): Likewise.
19383 * gcse.c: Likewise.
19384 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19385 * ifcvt.c (noce_get_alt_condition): Likewise.
19386 * loop-doloop.c (doloop_condition_get): Likewise.
19387 * lra-constraints.c (inherit_in_ebb): Likewise.
19388 * modulo-sched.c (sms_schedule_by_order): Likewise.
19389 * recog.c (next_insn_tests_no_inequality): Likewise.
19390 * reorg.c (emit_delay_sequence): Likewise.
19391 (update_reg_dead_notes): Likewise.
19392 (fix_reg_dead_note): Likewise.
19393 (fill_slots_from_thread): Likewise.
19394 (delete_computation): Likewise.
19396 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19398 * doc/extend.texi (Variable Attributes): Add menu and proper
19399 @nodes to subsections. Move Microsoft Windows attributes to
19400 their own subsection.
19401 (Type Attributes): Reorganize introduction to remove duplicate
19402 list of attributes. Add menu and proper @nodes to subsections.
19403 Alphabetize the main table of common attributes.
19405 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19407 * match.pd: New simplification patterns.
19408 (x + (x & 1)) -> ((x + 1) & ~1)
19409 (x & ~(x & y)) -> ((x & ~y))
19410 (x | ~(x | y)) -> ((x | ~y))
19412 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19414 * target.def (attribute_table): Mention that struct attribute_spec
19415 is defined in tree-core.h rather than tree.h
19416 * doc/tm.texi: Regenerate.
19418 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19420 * genrecog.c (test): Rename to rtx_test. Update rest of file
19423 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19425 PR translation/65959
19426 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19428 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19430 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19431 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19432 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19433 Return value depending on target.
19434 (generic_tunings): Initialize new target settings.
19435 (cortexa53_tunings): Likewise.
19436 (cortexa57_tunings): Likewise.
19437 (thunderx_tunings): Likewise.
19438 (xgene1_tunings): Likewise.
19440 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19442 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19443 Make Cortex-A53 shift costs more accurate.
19445 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19447 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19450 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19452 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19453 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19455 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19457 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19458 Add cost of op0 in the compare-with-fpzero case.
19460 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19462 * builtins.c (fold_builtin_1): Remove spurious second
19464 * cgraph.h (symtab_node::get_availability): Likewise.
19465 * opts.c (common_handle_option): Remove spurious second semicolon.
19466 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19467 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19469 2015-04-30 Caroline Tice <cmtice@google.com>
19471 PR gcov-profile/65929
19472 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19473 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19474 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19475 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19476 * doc/tm.texi: Regenerate.
19477 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19478 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19479 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19480 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19482 2015-04-30 Marek Polacek <polacek@redhat.com>
19484 * varasm.c (handle_cache_entry): Fix logic.
19486 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19488 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19489 (*extrsi5_insn_uxtw_alt): Likewise.
19490 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19491 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19494 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19496 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19499 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19501 * config/aarch64/aarch64.md
19502 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19503 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19504 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19505 appropriately. Handle alternative EON form.
19507 2015-04-30 Renlin Li <renlin.li@arm.com>
19509 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19510 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19512 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19515 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19516 -fstrict-aliasing boundaries.
19518 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19520 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19521 and [SU]MNEGL patterns.
19523 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19525 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19526 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19527 combined arithmetic-shift ops. Properly handle all shift and extend
19528 operations that can occur in combination with PLUS/MINUS.
19529 Rename maybe_fma to compound_p.
19530 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19531 arithmetic and shift operations.
19533 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19535 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19536 rather than arith_shift cost when costing ADD/MINUS of an
19539 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19542 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19545 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19547 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19548 are for the same position.
19550 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19552 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19554 (vectorize_loops): Use it.
19556 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19558 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19559 for aggregate types.
19560 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19561 type to be non_ODR.
19562 * tree.c (need_assembler_name_p): Compute mangled name for
19563 non-fundamental types and integer types.
19565 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19567 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19569 * expr.c (expand_expr_real_2): Likewise.
19571 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19573 * tree.c (build_common_builtin_nodes): Do not build
19574 __builtin_alloca_with_align as equivalent of library alloca.
19576 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19578 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19579 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19581 * tree.c: Include print-tree.h and ipa-utils.h
19582 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19583 (free_lang_data_in_cgraph): Call verify_type.
19584 (verify_type_variant): New function.
19585 (verify_type): New function.
19586 * tree.h (verify_type): Declare.
19588 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19590 * config/mips/mips-cpus.def: (mips4): Change default processor
19591 from PROCESSOR_R8000 to PROCESSOR_R10000.
19593 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19595 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19596 la/jalr instead of jal.
19598 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19601 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19602 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19603 (setcc+movzbl peephole2): Check also clobbered reg.
19604 (setcc+andl peephole2): Ditto.
19606 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19609 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19610 (main): Set it depending on "-foffload-abi=[...]".
19611 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19614 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19617 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19618 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19619 Flip lane index back at assembly time for bigendian.
19621 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19623 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19624 * gimplify.c (gimplify_omp_workshare): Use it.
19626 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19628 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19629 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19631 * genrecog.c: Rewrite most of the code except for the third page.
19633 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19635 * inchash.h, inchash.c: Include bconfig.h for build objects.
19636 * Makefile.in (build/inchash.o): New rule.
19638 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19641 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19642 number in type attribute expression.
19644 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19646 * loop-iv.c (canon_condition): Generalize to all types of integer
19649 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19651 * gimple-walk.c: Prune duplicate or unneeded includes.
19652 (walk_gimple_asm): Only call parse_input_constraint or
19653 parse_output_constraint if their findings are used.
19654 Honour parse_input_constraint and parse_output_constraint
19657 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19659 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19661 2015-04-29 Tom de Vries <tom@codesourcery.com>
19663 PR tree-optimization/65893
19664 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19667 2015-04-29 Richard Biener <rguenther@suse.de>
19669 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19670 compute GROUP_SIZE for basic-block SLP.
19671 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19672 take into account gaps.
19673 (vect_get_mask_element): Properly reject references to previous
19675 (vect_transform_slp_perm_load): Likewise.
19677 2015-04-29 Christian Bruel <christian.bruel@st.com>
19680 * config/i386/i386.c (ix86_default_align): New function.
19681 (ix86_override_options_after_change): Call ix86_default_align.
19682 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
19683 (ix86_override_options_after_change): New function.
19685 2015-04-28 Jeff Law <law@redhat.com>
19687 * tree-ssa-dom.c (record_equality); Fix comment typos.
19689 2015-04-28 Tom de Vries <tom@codesourcery.com>
19691 PR tree-optimization/65887
19692 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
19694 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
19696 * doc/extend.texi (Declaring Attributes of Functions): Split into
19697 subsections by target. Alphabetize the table of common attributes.
19698 Rewrite some of the introductory text to reflect the new structure.
19699 Update some cross-references to point to the new subsections.
19700 (Attribute Syntax): Put paragraph about "__" naming here. Remove
19701 duplicate copies in the discussion of function, label, and type
19704 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
19707 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
19709 2015-04-28 Jason Merrill <jason@redhat.com>
19712 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
19713 (finalize_type_size): Respect TYPE_USER_ALIGN.
19714 (layout_type) [ARRAY_TYPE]: Likewise.
19716 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
19718 * config/arm/arm.md (*arm_movt): Fix type attribute.
19719 (*cmpsi_shiftsi): Likewise.
19720 (*cmpsi_shiftsi_swp): Likewise.
19721 (*movsicc_insn): Likewise.
19722 (*cond_move): Likewise.
19723 (*if_plus_move): Likewise.
19724 (*if_move_plus): Likewise.
19725 (*if_arith_move): Likewise.
19726 (*if_move_arith): Likewise.
19727 (*if_shift_move): Likewise.
19728 (*if_move_shift): Likewise.
19729 (*arm_movtas_ze): Likewise.
19730 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19731 redundancy and type attribute.
19732 (*thumb2_movsi_insn): Fix type attribute.
19733 (*thumb2_addsi_short): Likewise.
19734 (thumb2_addsi3_compare0): Likewise.
19735 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19736 attributes accordingly.
19738 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19741 * function.c (pad_to_arg_alignment): Add parentheses.
19743 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
19745 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19746 libgcc/config/frv/elf-lib.h.
19748 2015-04-28 Tom de Vries <tom@codesourcery.com>
19750 * tree-call-cdce.c: Fix example in header comment.
19752 2015-04-28 Richard Biener <rguenther@suse.de>
19754 PR tree-optimization/62283
19755 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
19756 fails fatally and we are vectorizing a basic-block simply
19757 cause the child to be constructed piecewise.
19758 (vect_analyze_slp_cost_1): Adjust.
19759 (vect_detect_hybrid_slp_stmts): Likewise.
19760 (vect_bb_slp_scalar_cost): Likewise.
19761 (vect_get_constant_vectors): For piecewise constructed
19762 constants place them after the last def.
19763 (vect_get_slp_defs): Adjust.
19764 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
19765 externals for basic-block vectorization.
19767 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19770 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19772 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19773 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19774 (AARCH64_TUNE_FMA_STEERING): Likewise.
19775 * config/aarch64/aarch64-cores.def: Set
19776 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19777 FMUL/FMADD instructions.
19778 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19779 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
19780 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19781 * config/aarch64/cortex-a57-fma-steering.h: New file.
19782 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19784 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
19786 * gensupport.c (std_preds): Add missing codes to address_operand entry.
19788 2015-04-28 Richard Biener <rguenther@suse.de>
19790 PR tree-optimization/65851
19791 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19792 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
19793 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
19794 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19795 (ccp_visit_phi_node): Adjust.
19796 (evaluate_stmt): For simplifications to SSA names return its
19797 lattice value if that isn't VARYING. Return immediately when
19798 simplified to a constant.
19799 (visit_assignment): Adjust.
19800 (ccp_visit_stmt): Likewise.
19802 2015-04-28 Tom de Vries <tom@codesourcery.com>
19804 PR tree-optimization/65818
19805 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19808 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19810 * calls.c (save_fixed_argument_area): Don't check
19811 ARGS_GROW_DOWNWARD with the preprocessor.
19812 (restore_fixed_argument_area): Likewise.
19813 (mem_overlaps_already_clobbered_arg_p): Likewise.
19814 (check_sibcall_argument_overlap): Likewise.
19815 (expand_call): Likewise.
19816 (emit_library_call_value_1): Likewise.
19817 (store_one_arg): Likewise.
19818 * function.c (assign_parms): Likewise.
19819 (locate_and_pad_parm): Likewise.
19820 (pad_to_arg_alignment): Likewise.
19821 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19823 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19825 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19826 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19827 * calls.c (save_fixed_argument_area): Don't chekc if
19828 ARGS_GROW_DOWNWARD is defined.
19829 (restore_fixed_argument_area): Likewise.
19830 (mem_overlaps_already_clobbered_arg_p): Likewise.
19831 (check_sibcall_argument_overlap): Likewise.
19832 (expand_call): Likewise.
19833 (emit_library_call_value_1): Likewise.
19834 (store_one_arg): Likewise.
19835 * function.c (assign_parms): Likewise.
19836 (locate_and_pad_parm): Likewise.
19837 (pad_to_arg_alignment): Likewise.
19838 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19840 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19842 * defaults.h (gen_epilogue): New function.
19843 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19845 * cfgrtl.c (cfg_layout_finalize): Likewise.
19846 * df-scan.c: Likewise.
19847 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19848 (reposition_prologue_and_epilogue_notes): Likewise.
19849 * reorg.c (find_end_label): Likewise.
19850 * toplev.c: Likewise.
19852 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19854 * bb-reorder.c (HAVE_return): Don't check if its undefined.
19855 * defaults.h (gen_simple_return): New function.
19856 (gen_simple_return): Likewise.
19857 (HAVE_return): Add default definition to false.
19858 (HAVE_simple_return): Likewise.
19859 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19860 HAVE_return and HAVE_simple_return are defined.
19861 * function.c (gen_return_pattern): Likewise.
19862 (convert_jumps_to_returns): Likewise.
19863 (thread_prologue_and_epilogue_insns): Likewise.
19864 * reorg.c (find_end_label): Likewise.
19865 (dbr_schedule): Likewise.
19866 * shrink-wrap.c: Likewise.
19867 * shrink-wrap.h: Likewise.
19869 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19871 * defaults.h (EPILOGUE_USES): Add default definition of false.
19872 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19873 * resource.c (init_resource_info): Likewise.
19875 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19877 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19879 * dwarf2out.c (field_byte_offset): REmove check if
19880 PCC_BITFIELD_TYPE_MATTERS is defined.
19881 * stor-layout.c (layout_decl): Likewise.
19882 (update_alignment_for_field): Likewise.
19883 (place_field): Likewise.
19885 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19887 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19889 * regrename.c (check_new_reg_p): Remove check if
19890 HARD_REGNO_RENAME_OK is defined.
19891 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19893 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19895 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19896 * cse.c (fold_rtx): Likewise.
19897 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19898 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19899 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19900 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19901 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19902 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19903 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19904 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19905 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19906 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19908 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19909 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19910 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19911 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19912 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19913 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19914 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19915 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19916 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19917 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19918 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19919 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19920 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19921 * doc/tm.texi: Regenerate.
19922 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19923 either true or false.
19925 2015-04-27 Jeff Law <law@redhat.com>
19927 PR tree-optimization/65217
19928 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19929 of them has a single use, make sure it is the LHS of the implied
19932 2015-04-28 Alan Modra <amodra@gmail.com>
19935 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19936 (offsettable_ok_by_alignment): Use minimum of decl and toc
19937 pointer alignment. Replace dead code with assertion.
19938 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
19939 case if size exceeds toc pointer alignment.
19940 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19941 (rs6000_emit_move): Likewise.
19942 * configure.ac: Add linker toc pointer alignment check.
19943 * configure: Regenerate.
19944 * config.in: Regenerate.
19946 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
19948 * config.gcc: Add h8300-*-linux.
19949 * config/h8300/linux.h: New.
19950 * config/h8300/t-linux: New.
19951 * config/h8300/h8300.c (h8300_option_override): Normal mode
19952 is not supported for h8300-*-linux.
19953 (h8300_file_start): Target priority change.
19954 (get_shift_alg): Likewise.
19955 (h8300_shift_need_scratch_p): Likewise.
19956 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19957 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19959 2015-04-27 Caroline Tice <cmtice@google.com>
19961 * final.c (final_scan_insn): Output cold_function_name as function
19963 * varasm.c (cold_function_name): Make global.
19964 (assemble_start_function): Re-set cold_function_name.
19965 (assemble_end_function): Output cold partition size.
19966 * varasm.h (cold_function_name): Declare global.
19968 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
19970 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19971 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19973 (*movxi_internal_avx512f): Ditto.
19974 (define_split): Check for xmm16+, when splitting scalar float_extend.
19975 (*extendsfdf2_mixed): Use "v" constraint.
19976 (define_split): Check for xmm16+, when splitting scalar float_truncate.
19977 (*truncdfsf_fast_sse): Use "v" constraint.
19978 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19979 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19980 (define_peephole2): Check for xmm16+, when converting scalar
19982 (define_peephole2): Check for xmm16+, when converting scalar
19984 (*fop_<mode>_comm_mixed): Use "v" constraint.
19985 (*fop_<mode>_comm_sse): Ditto.
19986 (*fop_<mode>_1_mixed): Ditto.
19987 (*sqrt<mode>2_sse): Ditto.
19988 (*ieee_s<ieee_maxmin><mode>3): Ditto.
19990 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19992 * combine.c (simplify_if_then_else): Use std::swap instead
19993 of manually swapping.
19994 (known_cond): Likewise.
19995 (simplify_comparison): Likewise.
19997 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20000 * config/rs6000/htm.md: Remove all define_expands.
20001 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20002 UNSPECV_HTM_TABORTWCI): Remove.
20003 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20004 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20005 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20006 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20007 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20008 tabortwci_internal): Remove define_insns.
20009 (tabort<wd>c, tabort<wd>ci): New define_insns.
20010 (tabort): Use gpc_reg_operand.
20011 (tcheck): Remove operand.
20012 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20013 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20015 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20016 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20017 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20018 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20019 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20020 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20021 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20022 (tcheck): Remove builtin argument.
20023 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20025 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20026 tabortdc and tabortdci builtins when not in 64-bit mode.
20027 Modify code to handle the loss of the HTM define_expands.
20028 Emit code to copy the CR register to TARGET.
20029 (htm_init_builtins): Modify code to handle the loss of the HTM
20031 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20032 (RS6000_BTC_64BIT): Likewise.
20033 (RS6000_BTC_CR): New macro.
20034 * doc/extend.texi: Update documentation for htm builtins.
20036 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20038 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20039 of manually swapping.
20040 (simplify_associative_operation): Likewise.
20041 (simplify_binary_operation): Likewise.
20042 (simplify_plus_minus): Likewise.
20043 (simplify_relational_operation): Likewise.
20044 (simplify_ternary_operation): Likewise.
20046 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20048 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20049 (xs_hi_nonmemory_operand): Remove error.
20050 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20051 general_operand rather than xs_hi_general_operand.
20053 2015-04-27 Richard Biener <rguenther@suse.de>
20055 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20056 (record_equivalences_from_stmt): Valueize rhs.
20057 (record_equality): Canonicalize x and y order via
20058 tree_swap_operands_p. Do not swap operands for same loop depth.
20060 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20064 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20065 Add hint how to use own spec file.
20067 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20069 PR tree-optimization/65875
20070 * tree-vrp.c (update_value_range): If in is_new case setting
20071 old_vr to VR_VARYING, also set new_vr to it. Remove
20072 old_vr->type == VR_VARYING test.
20073 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20074 SSA_PROP_INTERESTING if update_value_range returned true,
20075 but new range is VR_VARYING.
20077 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20079 * combine.c (sign_extend_short_imm): New.
20080 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20081 extension of src short immediate.
20082 (reg_nonzero_bits_for_combine): Likewise for tem.
20084 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20086 * stor-layout.c (self_referential_component_ref_p): New predicate.
20087 (copy_self_referential_tree_r): Use it.
20088 (self_referential_size): Punt for simple operations directly involving
20089 self-referential component references.
20090 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20092 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20094 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20096 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20098 * vec.h (vec): Make splice arguments const. Update definitions
20101 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20103 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20106 2015-04-26 Tom de Vries <tom@codesourcery.com>
20108 PR tree-optimization/65826
20109 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20111 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20113 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20114 (*madd3<mode>): Ditto.
20115 (*msub4<mode>): Ditto.
20116 (*msub3<mode>): Ditto.
20117 (*nmadd4<mode>): Ditto.
20118 (*nmadd3<mode>): Ditto.
20119 (*nmadd4<mode>_fastmath): Ditto.
20120 (*nmadd3<mode>_fastmath): Ditto.
20121 (*nmsub4<mode>): Ditto.
20122 (*nmsub3<mode>): Ditto.
20123 (*nmsub4<mode>_fastmath): Ditto.
20124 (*nmsub3<mode>_fastmath): Ditto.
20126 2015-04-24 Jason Merrill <jason@redhat.com>
20129 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20130 down when building TYPE_CANONICAL.
20131 (build_pointer_type_for_mode): Likewise.
20133 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20135 * genrecog.c (validate_pattern): Check matching constraint refers
20136 to a lower numbered operand.
20138 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20141 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20142 save to independent variables use the Save attribute. This will
20143 allow these options to be modified with the #pragma/attribute
20145 (-mallow-movmisalign): Likewise.
20146 (-mallow-df-permute): Likewise.
20147 (-msched-groups): Likewise.
20148 (-malways-hint): Likewise.
20149 (-malign-branch-targets): Likewise.
20150 (-mvectorize-builtins): Likewise.
20151 (-msave-toc-indirect): Likewise.
20153 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20154 can be set via the #pragma/attribute target support.
20155 (rs6000_opt_vars): Likewise.
20156 (rs6000_inner_target_options): If VSX was set, also set
20157 -mno-avoid-indexed-addresses.
20159 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20161 * config/arm/iterators.md (shiftable_ops): Rename to...
20162 (SHIFTABLE_OPS): ... This. Update use in comments.
20163 (ior_xor): Rename to...
20164 (IOR_XOR): ... This.
20165 (vqh_ops): Rename to...
20166 (VQH_OPS): ... This.
20167 (vqhs_ops): Rename to...
20168 (VQHS_OPS): ... This.
20169 (rshifts): Rename to...
20170 (RSHIFTS): ... This.
20171 (returns): Rename to...
20172 (RETURNS): ... This.
20173 * config/arm/arm.md: Update uses of the above.
20174 * config/arm/neon.md: Likewise.
20176 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20178 * config.host (case ${host}): Add aarch64*-*-linux case.
20179 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20180 fields to all the cores.
20181 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20182 Add MCPU_MTUNE_NATIVE_SPECS.
20183 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20184 field to all extensions.
20185 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20186 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20187 Adjust definition of AARCH64_OPT_EXTENSION.
20188 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20189 (MCPU_MTUNE_NATIVE_SPECS): Define.
20190 * config/aarch64/driver-aarch64.c: New file.
20191 * config/aarch64/x-arch64: New file.
20192 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20195 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20196 Wei Mi <wmi@google.com>
20198 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20199 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20200 (ix86_operands_ok_for_move_multiple): Ditto.
20201 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20202 (movlpd/movhpd to movupd peephole2): Ditto.
20204 2015-04-24 Marek Polacek <polacek@redhat.com>
20207 * input.h (from_macro_expansion_at): Define.
20210 * doc/invoke.texi: Update description of -Wlogical-op.
20212 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20214 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20215 ternary operator in fprintf and harmonize spacing.
20217 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20219 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20220 Mark operand1 commutative.
20222 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20224 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20225 input operands in memory.
20226 (*vec_concatv2si_sse4_1): Ditto.
20227 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20228 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20230 (vec_extract_hi_v32hi): Ditto.
20231 (vec_extract_hi_v64hi): Ditto.
20232 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20234 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20235 Steven Bosscher <steven@gcc.gnu.org>
20237 PR rtl-optimization/34503
20238 * cprop.c (cprop_reg_p): New.
20239 (hash_scan_set): Use above function to check if register can be
20241 (find_avail_set): Return up to two sets, one whose source is a
20242 register and one whose source is a constant. Sets are returned in an
20243 array passed as parameter rather than as a return value.
20244 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20245 sets returned by find_avail_set, starting with the one whose source is
20246 a constant. Use cprop_reg_p to check if register can be propagated.
20247 (do_local_cprop): Use cprop_reg_p to check if register can be
20249 (implicit_set_cond_p): Likewise.
20251 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20253 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20254 (sem_function::equals): IGNORED_NODES parameter is now unused;
20255 update call of equals_private.
20256 (sem_function::equals_private): Do not call equals_wpa; skip
20257 gimple body matching if there is no body.
20258 (sem_function::init): Add logic to hash tthunk info.
20259 (sem_function::parse): Also parse thunks.
20260 * ipa-icf.h (equals_private): Update declaration.
20262 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20264 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20265 asterisk from name so this can be generated directly.
20266 (*altivec_stvx_<mode>_internal): Likewise.
20267 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20268 that this is never called during or after reload/lra.
20269 (rs6000_frame_related): Remove split_reg
20270 argument and logic that references it.
20271 (emit_frame_save): Remove last parameter from call to
20272 rs6000_frame_related.
20273 (rs6000_emit_prologue): Remove last parameter from eight calls to
20274 rs6000_frame_related. Force generation of stvx instruction for
20275 Altivec register saves. Remove split_reg handling, which is no
20277 (rs6000_emit_epilogue): Force generation of lvx instruction for
20278 Altivec register restores.
20280 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20282 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20283 match category changes in ISA 2.07B.
20285 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20287 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20289 (cmp_op, cmp_type): New code attributes.
20290 (NEON_VCMP, NEON_VACMP): New int iterators.
20291 (cmp_op_unsp): New int attribute.
20292 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20293 (neon_vceq<mode>): Delete.
20294 (neon_vc<cmp_op><mode>_insn): New pattern.
20295 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20296 (neon_vcgeu<mode>): Delete.
20297 (neon_vcle<mode>): Likewise.
20298 (neon_vclt<mode>: Likewise.
20299 (neon_vcage<mode>): Likewise.
20300 (neon_vcagt<mode>): Likewise.
20301 (neon_vca<cmp_op><mode>): New define_expand.
20302 (neon_vca<cmp_op><mode>_insn): New pattern.
20303 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20305 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20307 * tree.h (attribute_value_equal): Declare.
20308 * tree.c (attribute_value_equal): Export.
20310 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20312 * ipa-icf.c (sem_item::compare_attributes): New function.
20313 (sem_item::compare_referenced_symbol_properties): Compare variable
20315 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20316 (sem_function::param_used_p): New function.
20317 (sem_function::equals_wpa): Fix attribute comparsion; match
20318 parameter type codes; do not compare paremter flags when
20319 they are not used; compare edge flags; compare indirect calls.
20320 (sem_item::update_hash_by_addr_refs): Hash reference type.
20321 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20322 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20323 reference use type.
20324 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20325 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20327 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20329 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20331 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20332 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20333 (sem_item::compare_referenced_symbol_properties): New.
20334 (sem_item::hash_referenced_symbol_properties): New.
20335 (sem_item::compare_cgraph_references): Rename to ...
20336 (sem_item::compare_symbol_references): ... this one; use
20337 compare_referenced_symbol_properties.
20338 (sem_function::equals_wpa): Do not compare
20339 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20340 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20341 (sem_item::update_hash_by_addr_refs): Call
20342 hash_referenced_symbol_properties.
20343 (sem_item::update_hash_by_local_refs): Cleanup.
20344 (sem_function::merge): Do not mix up symbol properties.
20345 (sem_variable::equals_wpa): Use compare_symbol_references.
20346 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20347 (sem_item::hash_referenced_symbol_properties): New.
20348 (sem_item::compare_symbol_references): New.
20349 (sem_item::compare_cgraph_references): Remove.
20351 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20354 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20355 Emit size of local.
20357 2015-04-23 Nick Clifton <nickc@redhat.com>
20359 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20360 ATTRIBUTE_UNUSED to x parameter.
20361 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20363 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20365 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20366 TARGET_CRYPTO to TARGET_P8_VECTOR>
20367 (crypto_vpermxor_<mode>): Likewise.
20368 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20369 (BU_CRYPTO_3A): Likewise.
20370 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20371 (BU_CRYPTO_OVERLOAD_3A): New #define.
20372 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20373 (VPMSUMH): Likewise.
20374 (VPMSUMW): Likewise.
20375 (VPMSUMD): Likewise.
20376 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20377 (VPERMXOR_V4SI): Likewise.
20378 (VPERMXOR_V8HI): Likewise.
20379 (VPERMXOR_V16QI): Likewise.
20380 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20381 BU_CRYPTO_OVERLOAD_2A.
20382 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20383 BU_CRYPTO_OVERLOAD_3A.
20384 * config/rs6000/rs6000.opt (mcrypto): Change description of
20387 2015-04-23 Richard Biener <rguenther@suse.de>
20389 * passes.def: Remove copy propagation passes run directly after CCP.
20390 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20392 (ccp_visit_phi_node): Rework to handle first executable edge
20395 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20397 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20398 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20399 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20400 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20401 (thumb_legimitimize_reload_address): Remove.
20402 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20404 (thumb_legimitimize_reload_address): Remove.
20406 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20408 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20410 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20412 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20414 (store_multiple): Likewise.
20416 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20418 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20419 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20420 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20421 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20422 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20423 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20424 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20425 Specify issue_rate value.
20426 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20427 large switch statement.
20428 (arm_marvell_pj4_tune): New struct.
20429 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20432 2015-04-23 Richard Biener <rguenther@suse.de>
20434 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20435 (vect_find_last_store_in_slp_instance): Rename to ...
20436 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20437 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20438 and vec_construct for external defs when estimating prologue cost.
20439 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20440 Compute costs here only when vectorizing loops.
20441 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20442 have been determined.
20443 (vect_schedule_slp_instance): Simplify vectorized code placement
20444 and prepare for in-BB external defs.
20445 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20446 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20447 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20449 (vect_model_load_cost): Likewise.
20450 (vectorizable_store): Instead add it here.
20451 (vectorizable_load): Likewise.
20452 (vect_is_simple_use): Dump def type textually.
20454 2015-04-23 Richard Biener <rguenther@suse.de>
20456 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20457 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20458 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20459 instead of get_eh_region_from_lp_number.
20460 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20463 2015-04-23 Anton Blanchard <anton@samba.org>
20465 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20466 need for -mprofile-kernel to save LR to stack.
20468 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20470 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20472 (insn_is_swappable_p): Return 1 for a convert from double to
20473 single precision when all of its uses are splats of BE element
20476 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20478 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20480 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20483 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20484 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20485 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20487 (rs6000_builtin_mask_for_load): Return 0 for targets with
20488 efficient unaligned VSX accesses so that the vectorizer will use
20489 direct unaligned loads.
20490 (rs6000_builtin_support_vector_misalignment): Always return true
20491 for targets with efficient unaligned VSX accesses.
20492 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20493 stores on targets with efficient unaligned VSX accesses is almost
20494 always the same as the cost of an aligned load or store, so model
20496 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20497 unaligned vectors if we have efficient unaligned VSX accesses.
20498 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20499 undocumented option.
20501 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20504 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20506 * config.gcc (LIBC_MUSL): New tm_defines macro.
20507 * config/linux.h (OPTION_MUSL): Define.
20508 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20509 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20510 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20512 * config/linux.opt (mmusl): New option.
20513 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20514 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20516 * configure: Regenerate.
20518 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20520 * config.gcc (LIBC_MUSL): New tm_defines macro.
20521 * config/linux.h (OPTION_MUSL): Define.
20522 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20523 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20524 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20526 * config/linux.opt (mmusl): New option.
20527 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20528 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20530 * configure: Regenerate.
20532 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20534 * doc/invoke.texi (-fsanitize-sections): Update description.
20535 * asan.c (set_sanitized_sections): Parse incoming arg.
20536 (section_sanitized_p): Support wildcards.
20538 2015-04-22 Tom de Vries <tom@codesourcery.com>
20540 PR tree-optimization/65823
20541 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20542 equality between ap_copy and ap.
20544 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20547 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20549 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20552 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20554 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20557 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20558 remove already contained t-files.
20560 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20562 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20563 Remove unneeded forward declarations.
20564 (suitable_for_tail_call_opt_p): Commentary typo fix.
20566 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20568 * varasm.c (emit_bss): Remove redundant guard.
20570 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20572 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20574 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20576 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20578 2015-04-22 Hale Wang <hale.wang@arm.com>
20579 Terry Guo <terry.guo@arm.com>
20581 PR rtl-optimization/64818
20582 * combine.c (can_combine_p): Don't combine user-specified
20583 register if it is in an asm input.
20585 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20588 * passes.def (early_optimizations): Add pass_dse.
20590 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20592 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20593 * reorg.c (redundant_insn): Remove ifdef
20594 INSN_REFERENCES_ARE_DELAYED.
20595 * resource.c (mark_referenced_resources): Likewise.
20597 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20599 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20600 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20601 * resource.c (mark_set_resources): Likewise.
20603 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20605 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20606 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20607 (flow_find_head_matching_sequence): Likewise.
20608 (try_head_merge_bb): Likewise.
20609 * combine.c (can_combine_p): Likewise.
20610 (try_combine): Likewise.
20611 (distribute_notes): Likewise.
20612 * df-problems.c (can_move_insns_across): Likewise.
20613 * final.c (final): Likewise.
20614 * gcse.c (insert_insn_end_basic_block): Likewise.
20615 * ira.c (find_moveable_pseudos): Likewise.
20616 * reorg.c (try_merge_delay_insns): Likewise.
20617 (fill_simple_delay_slots): Likewise.
20618 (fill_slots_from_thread): Likewise.
20619 * sched-deps.c (sched_analyze_2): Likewise.
20621 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20623 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20624 PIC_OFFSET_TABLE_REGNUM.
20626 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20628 * alias.c (init_alias_target): Remove ifdef
20629 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20630 * df-scan.c (df_insn_refs_collect): Likewise.
20631 (df_get_regular_block_artificial_uses): Likewise.
20632 (df_get_eh_block_artificial_uses): Likewise.
20633 (df_get_entry_block_def_set): Likewise.
20634 (df_get_exit_block_use_set): Likewise.
20635 * emit-rtl.c (gen_rtx_REG): Likewise.
20636 * ira.c (ira_setup_eliminable_regset): Likewise.
20637 * reginfo.c (init_reg_sets_1): Likewise.
20638 * regrename.c (rename_chains): Likewise.
20639 * reload1.c (reload): Likewise.
20640 (eliminate_regs_in_insn): Likewise.
20641 * resource.c (mark_referenced_resources): Likewise.
20642 (init_resource_info): Likewise.
20644 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20646 * defaults.h (MASK_RETURN_ADDR): New definition.
20647 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20650 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20652 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20653 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20654 RETURN_ADDR_OFFSET.
20655 (expand_builtin_frob_return_addr): Likewise.
20657 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20659 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20660 (try_redirect_by_replacing_jump): Likewise.
20661 (rtl_tidy_fallthru_edge): Likewise.
20662 * combine.c (insn_a_feeds_b): Likewise.
20663 (find_split_point): Likewise.
20664 (simplify_set): Likewise.
20665 * cprop.c (cprop_jump): Likewise.
20666 * cse.c (cse_extended_basic_block): Likewise.
20667 * df-problems.c (can_move_insns_across): Likewise.
20668 * function.c (emit_use_return_register_into_block): Likewise.
20669 * haifa-sched.c (sched_init): Likewise.
20670 * ira.c (find_moveable_pseudos): Likewise.
20671 * loop-invariant.c (find_invariant_insn): Likewise.
20672 * lra-constraints.c (curr_insn_transform): Likewise.
20673 * postreload.c (reload_combine_recognize_const_pattern):
20675 * reload.c (find_reloads): Likewise.
20676 * reorg.c (delete_scheduled_jump): Likewise.
20677 (steal_delay_list_from_target): Likewise.
20678 (steal_delay_list_from_fallthrough): Likewise.
20679 (redundant_insn): Likewise.
20680 (fill_simple_delay_slots): Likewise.
20681 (fill_slots_from_thread): Likewise.
20682 (delete_computation): Likewise.
20683 * sched-rgn.c (add_branch_dependences): Likewise.
20685 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20687 * genconfig.c (main): Always define HAVE_cc0.
20688 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
20690 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20691 (flow_find_head_matching_sequence): Likewise.
20692 (try_head_merge_bb): Likewise.
20693 * cfgrtl.c (rtl_merge_blocks): Likewise.
20694 (try_redirect_by_replacing_jump): Likewise.
20695 (rtl_tidy_fallthru_edge): Likewise.
20696 * combine.c (do_SUBST_MODE): Likewise.
20697 (insn_a_feeds_b): Likewise.
20698 (combine_instructions): Likewise.
20699 (can_combine_p): Likewise.
20700 (try_combine): Likewise.
20701 (find_split_point): Likewise.
20703 (simplify_set): Likewise.
20704 (distribute_notes): Likewise.
20705 * cprop.c (cprop_jump): Likewise.
20706 * cse.c (cse_extended_basic_block): Likewise.
20707 * df-problems.c (can_move_insns_across): Likewise.
20708 * final.c (final): Likewise.
20709 (final_scan_insn): Likewise.
20710 * function.c (emit_use_return_register_into_block): Likewise.
20711 * gcse.c (insert_insn_end_basic_block): Likewise.
20712 * haifa-sched.c (sched_init): Likewise.
20713 * ira.c (find_moveable_pseudos): Likewise.
20714 * loop-invariant.c (find_invariant_insn): Likewise.
20715 * lra-constraints.c (curr_insn_transform): Likewise.
20716 * optabs.c (prepare_cmp_insn): Likewise.
20717 * postreload.c (reload_combine_recognize_const_pattern):
20719 * reload.c (find_reloads): Likewise.
20720 (find_reloads_address_1): Likewise.
20721 * reorg.c (delete_scheduled_jump): Likewise.
20722 (steal_delay_list_from_target): Likewise.
20723 (steal_delay_list_from_fallthrough): Likewise.
20724 (try_merge_delay_insns): Likewise.
20725 (redundant_insn): Likewise.
20726 (fill_simple_delay_slots): Likewise.
20727 (fill_slots_from_thread): Likewise.
20728 (delete_computation): Likewise.
20729 (relax_delay_slots): Likewise.
20730 * sched-deps.c (sched_analyze_2): Likewise.
20731 * sched-rgn.c (add_branch_dependences): Likewise.
20733 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20735 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20736 that is trivially ded on non cc0 targets.
20737 (simplify_set): Likewise.
20738 (mark_used_regs_combine): Likewise.
20739 * cse.c (new_basic_block): Likewise.
20740 (fold_rtx): Likewise.
20741 (cse_insn): Likewise.
20742 (cse_extended_basic_block): Likewise.
20743 (set_live_p): Likewise.
20744 * rtlanal.c (canonicalize_condition): Likewise.
20745 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20747 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20749 * conditions.h: Define macros even if HAVE_cc0 is undefined.
20750 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
20751 * final.c: Likewise.
20752 * jump.c: Likewise.
20753 * recog.c: Likewise.
20754 * recog.h: Declare functions even when HAVE_cc0 is undefined.
20755 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
20757 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20759 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
20760 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
20761 * builtins.c (expand_builtin): Remove check if
20762 EH_RETURN_DATA_REGNO is defined.
20763 * df-scan.c (df_bb_refs_collect): Likewise.
20764 (df_get_exit_block_use_set): Likewise.
20765 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20766 * ira-lives.c (process_bb_node_lives): Likewise.
20767 * lra-lives.c (process_bb_lives): Likewise.
20769 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20771 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20772 FIRST_PSEUDO_REG): New.
20773 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20774 (ARG_POINTER_REGNUM): Define to ARGP_REG.
20775 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20776 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20777 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20778 (FIRST_INT_REG): New.
20779 (LAST_INT_REG): New.
20780 (FIRST_*_REG): Define using *_REG.
20781 (LAST_*_REG): Ditto.
20782 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20783 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20784 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20786 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20788 * expmed.c: (synth_mult): Only assume overlapping
20789 shift with previous steps in alg_sub_t_m2 case.
20791 2015-04-21 Richard Biener <rguenther@suse.de>
20793 PR tree-optimization/65650
20794 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20795 transitions involving copies.
20796 (set_lattice_value): Adjust for copy lattice state.
20797 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20798 if that doesn't dominate the merge point.
20799 (bit_value_unop): Adjust what we treat as varying mask.
20800 (bit_value_binop): Likewise.
20801 (bit_value_assume_aligned): Likewise.
20802 (evaluate_stmt): When we simplified to a SSA name record a copy
20803 instead of dropping to varying.
20804 (visit_assignment): Simplify.
20806 * gimple-match.h (gimple_simplify): Add another callback.
20807 * gimple-fold.c (fold_stmt_1): Adjust caller.
20808 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20809 for the 2nd callback.
20810 * gimple-match-head.c (gimple_simplify): Add a callback that is
20811 used to valueize the stmt operands and use it that way.
20813 2015-04-21 Richard Biener <rguenther@suse.de>
20815 PR tree-optimization/65788
20816 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20818 2015-04-21 Richard Biener <rguenther@suse.de>
20820 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20821 vec_construct cost by vec_stmt_cost.
20823 2015-04-21 Richard Biener <rguenther@suse.de>
20825 * cfghooks.h (create_basic_block): Replace with two overloads
20826 for RTL and GIMPLE.
20827 (split_block): Likewise.
20828 * cfghooks.c (split_block): Rename to ...
20829 (split_block_1): ... this.
20830 (split_block): Add two type-safe overloads for RTL and GIMPLE.
20831 (split_block_after_labels): Call split_block_1.
20832 (create_basic_block): Rename to ...
20833 (create_basic_block_1): ... this.
20834 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20835 (create_empty_bb): Call create_basic_block_1.
20836 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20837 split_block_after_labels.
20838 * omp-low.c (expand_parallel_call): Likewise.
20839 (expand_omp_target): Likewise.
20840 (simd_clone_adjust): Likewise.
20841 * tree-chkp.c (chkp_get_entry_block): Likewise.
20842 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20843 create_basic_block overload.
20844 (cgraph_node::expand_thunk): Likewise.
20845 * tree-cfg.c (make_blocks): Likewise.
20846 (handle_abnormal_edges): Likewise.
20847 * tree-inline.c (copy_bb): Likewise.
20849 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20851 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20853 (*xor_one_cmplsidi3_ze): Likewise.
20855 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20857 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20858 use df_remove_problem rather than manually removing problems, leaving
20859 holes in df->problems_in_order[].
20861 2015-04-21 Tom de Vries <tom@codesourcery.com>
20863 PR tree-optimization/65802
20864 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20866 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20868 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20870 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20871 at '.'. Assert that there's enough space for everything.
20873 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20875 PR tree-optimization/64950
20877 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
20880 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20883 2015-04-20 Shiva Chen <shiva0217@gmail.com>
20885 PR rtl-optimization/64916
20886 * cfgcleanup.c (values_equal_p): New function.
20887 (can_replace_by): Use it.
20889 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
20892 * doc/invoke.texi ([-Wnarrowing]): Update.
20894 2015-04-20 Jeff Law <law@redhat.com>
20896 PR tree-optimization/65658
20897 * tree-ssa-threadupdate.c (redirection_block_p): Remove
20898 redundant test for GIMPLE_ASSIGN in last change.
20900 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
20902 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20903 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20904 (legitimize_tls_address): Ditto.
20905 (ix86_expand_move): Ditto.
20906 (ix86_expand_binary_operator): Remove reload_in_progress checks.
20907 (ix86_expand_unary_operator): Ditto.
20908 * config/i386/predicates.md (index_register_operand): Ditto.
20910 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
20912 * reorg.c (try_merge_delay_insns): Improve correctness checking
20913 for targets with multiple delay slots.
20915 2015-04-20 Jeff Law <law@redhat.com>
20917 PR tree-optimization/65658
20918 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20921 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20923 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20924 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20927 2015-04-20 Jakub Jelinek <jakub@redhat.com>
20930 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20932 2015-04-20 Richard Biener <rguenther@suse.de>
20934 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20935 * gimple-fold.c (gimple_build_valueize): New function.
20936 (gimple_build): Always use gimple_build_valueize as valueize hook.
20938 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20941 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20942 and overwrite variable parts if <= 1/2 the elements are variable.
20944 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
20946 PR rtl-optimization/65805
20947 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20948 Don't use difference of offset and previous offset if
20949 update_sp_offset is non-zero.
20950 (eliminate_regs_in_insn): Ditto.
20951 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20952 lra_eliminate_regs_1 call.
20953 * lra-constraints.c (get_equiv_with_elimination): Ditto.
20955 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
20957 * hash-table.h: Remove version of hash_table that stored value_type *.
20958 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20959 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20960 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20961 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20962 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20963 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20964 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20965 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20966 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20967 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20968 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20969 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20970 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20971 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20972 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20973 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20975 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20976 Jakub Jelinek <jakub@redhat.com>
20979 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20980 subsequent SH_NONE operand does not overwrite an existing *special
20982 (adjust_extract): Handle case where a vec_extract operation is
20983 wrapped in a PARALLEL.
20985 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20988 * config/i386/i386.c (ix86_binds_local_p): Define only if
20989 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20991 2015-04-17 Jeff Law <law@redhat.com>
20993 PR tree-optimization/47679
20994 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20995 * tree-ssa-scopedtables.c: New file.
20996 * tree-ssa-scopedtables.h: New file.
20997 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20998 (const_and_copies): Change name/type.
20999 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21000 (record_const_or_copy_1): Similarly.
21001 (restore_vars_to_original_value): Similarly.
21002 (pass_dominator::execute): Create and destroy const_and_copies table.
21003 (thread_across_edge): Update passing of const_and_copies.
21004 (record_temporary_equivalence): Use method calls rather than
21005 manipulating const_and_copies directly.
21006 (record_equality, cprop_into_successor_phis): Similarly.
21007 (dom_opt_dom_walker::before_dom_children): Similarly.
21008 (dom_opt_dom_walker::after_dom_children): Similarly.
21009 (eliminate_redundant_computations): Similarly.
21010 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21011 (record_temporary_equivalence): Likewise.
21012 (invalidate_equivalences): Likewise.
21013 (record_temporary_equivalences_from_phis): Update due to type
21014 change of const_and_copies. Use method calls rather than
21015 manipulating the stack directly.
21016 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21017 (thread_through_normal_block, thread_across_edge): Likewise.
21018 (thread_across_edge): Likewise.
21019 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21020 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21022 (identify_jump_threads): Update due to type change of equiv_stack.
21023 (finalize_jump_threads): Delete the equiv_stack when complete.
21025 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21027 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21028 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21029 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21031 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21034 * config.gcc: Exit with a comment when we do not have a major version
21035 number for the FreeBSD target.
21037 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21040 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21041 maybe_allows_mem bitfields.
21042 (maybe_allows_none_start, maybe_allows_none_end,
21043 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21044 maybe_allows_mem_end): New variables.
21045 (compute_maybe_allows): New function.
21046 (add_constraint): Use it to initialize maybe_allows_reg and
21047 maybe_allows_mem fields.
21048 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21049 is_address constraints such that those that allow neither mem nor
21050 reg come first, then those that only allow reg but not mem, then
21051 those that only allow mem but not reg, then the rest.
21052 (write_allows_reg_mem_function): New function.
21053 (write_tm_preds_h): Call it.
21054 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21055 the generated insn_extra_constraint_allows_reg_mem function
21056 instead of always setting *allows_reg = true; *allows_mem = true;
21057 for unknown extra constraints.
21059 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21062 * output.h (default_binds_local_p_3): New.
21063 * varasm.c (default_binds_local_p_3): Make it public. Take an
21064 argument to indicate if common symbol may be local. If common
21065 symbol may be local, treat non-external variable as defined
21067 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21068 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21069 * config/i386/i386.c (ix86_binds_local_p): New.
21070 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21071 ix86_binds_local_p.
21073 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21076 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21077 trying mem_loc_descriptor on XEXP (rtl, 0).
21079 2015-04-17 Martin Liska <mliska@suse.cz>
21081 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21082 Release symbol_compare_collection.
21083 * ipa-reference.c: Add TODO that a vector should be released.
21085 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21088 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21089 to new AVR-LibC file layout (bug #44574).
21090 (*avrlibc_devicelib): Same.
21091 * config/avr/avr-mcus.def: Adjust comments.
21092 * config/avr/avr.opt (nodevicelib): Adjust help.
21094 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21096 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21098 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21101 * gimplify.c (gimplify_init_constructor): Always emit a
21102 side-effecting constructor.
21104 2015-04-17 Tom de Vries <tom@codesourcery.com>
21106 PR tree-optimization/64950
21107 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21108 in cfun->curr_properties.
21109 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21110 if we generate an IFN_VA_ARG.
21111 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21112 function if PROP_gimple_lva is not set in src function.
21114 2015-04-17 Tom de Vries <tom@codesourcery.com>
21115 Michael Matz <matz@suse.de>
21117 PR tree-optimization/64950
21118 * gimple-iterator.c (update_modified_stmts): Remove static.
21119 * gimple-iterator.h (update_modified_stmts): Declare.
21120 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21121 (gimplify_va_arg_internal): New function.
21122 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21123 * gimplify.h (gimplify_va_arg_internal): Declare.
21124 * internal-fn.c (expand_VA_ARG): New unreachable function.
21125 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21126 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21127 (expand_ifn_va_arg): New function.
21128 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21129 (pass_stdarg::execute): Call expand_ifn_va_arg.
21130 (pass_data_lower_vaarg): New pass_data.
21131 (pass_lower_vaarg): New gimple_opt_pass.
21132 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21133 (make_pass_lower_vaarg): New function.
21134 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21135 properties_required field.
21136 * passes.def (all_passes): Add pass_lower_vaarg.
21137 * tree-pass.h (PROP_gimple_lva): Add define.
21138 (make_pass_lower_vaarg): Declare.
21140 2015-04-17 Tom de Vries <tom@codesourcery.com>
21142 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21143 * calls.c (call_expr_flags): Same.
21145 2015-04-17 Tom de Vries <tom@codesourcery.com>
21147 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21148 (pass_stdarg::execute): ... here.
21150 2015-04-17 Tom de Vries <tom@codesourcery.com>
21151 Michael Matz <matz@suse.de>
21153 * tree-cfg.c (make_blocks_1): Factor out of ...
21154 (make_blocks): ... here.
21155 (make_edges_bb): Factor out of ...
21156 (make_edges): ... here.
21157 (gimple_find_sub_bbs): New function.
21158 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21160 2015-04-17 Tom de Vries <tom@codesourcery.com>
21162 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21164 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21166 * asan.c (set_sanitized_sections): New function.
21167 (section_sanitized_p): Ditto.
21168 (asan_protect_global): Optionally sanitize user-defined
21170 * asan.h (set_sanitized_sections): Declare new function.
21171 * common.opt (fsanitize-sections): New option.
21172 * doc/invoke.texi (-fsanitize-sections): Document new option.
21173 * opts-global.c (handle_common_deferred_options): Handle new
21176 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21179 * dwarf2out.c (loc_list_from_tree): Return NULL
21180 for DEBUG_EXPR_DECL.
21182 2015-04-17 Christian Bruel <christian.bruel@st.com>
21184 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21187 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21189 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21190 node itself when computing left conflict subnode size.
21192 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21194 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21195 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21196 *fop_<mode>_1_sse using enabled attribute. Use
21197 register_mixssei387nonimm_operand operand 1 predicate. Change
21198 alternative 3 constraints from "x" to "v".
21200 2015-04-16 Richard Biener <rguenther@suse.de>
21202 PR tree-optimization/65774
21203 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21204 bit-value tracking on.
21206 2015-04-16 Richard Biener <rguenther@suse.de>
21208 PR tree-optimization/64277
21209 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21210 simplify upper bound handling.
21211 (search_for_addr_array): Simplify.
21212 (check_array_bounds): Handle ADDR_EXPRs here.
21213 (check_all_array_refs): Simplify.
21215 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21217 * config/i386/i386.c (print_reg): Rewrite function.
21219 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21221 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21222 Invert the condition.
21224 2015-04-16 Renlin Li <renlin.li@arm.com>
21226 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21227 simplifications for UNSIGNED_FLOAT.
21229 2015-04-16 Nick Clifton <nickc@redhat.com>
21231 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21233 (enum rl78_cpu_type): New.
21234 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21235 (umulhi3_shift_virt): Remove m constraint from operand 1.
21236 (umulqihi3_virt): Likewise.
21237 * config/rl78/rl78.c (rl78_option_override): Add code to process
21238 -mcpu and -mmul options.
21239 (rl78_alloc_physical_registers): Add code to handle divhi and
21240 divsi valloc attributes.
21241 (set_origin): Likewise.
21242 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21243 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21244 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21246 (ASM_SPEC): Pass -mcpu on to assembler.
21247 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21248 (mulqi3_rl78): Likewise.
21249 (mulhi3_g13): Likewise.
21250 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21251 (mulsi3): Likewise.
21252 (mulhi3_g14): Add clobbers of AX and BC.
21253 (mulsi3_g14): Likewise.
21254 (mulsi3_g13): Likewise.
21255 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21256 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21257 * config/rl78/rl78.opt (mmul): Initialise value to
21259 (mcpu): New option.
21260 (m13, m14, mrl78): New option aliases.
21261 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21262 (MULTILIB_DIRNAMES): Add g13 and g14.
21263 * doc/invoke.texi: Document -mcpu and -mmul options.
21265 2015-04-16 Richard Biener <rguenther@suse.de>
21267 * tree-ssa-ccp.c (likely_value): See if we have operands that
21268 are marked as never simulate again and return CONSTANT in this
21270 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21271 not have any operands that will be simulated again as
21272 not being simulated again.
21274 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21276 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21277 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21278 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21280 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21282 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21283 *float<SWI48:mode><MODEF:mode>2_sse.
21284 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21286 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21289 2015-04-15 Tom de Vries <tom@codesourcery.com>
21292 * function.c (push_dummy_function): New function.
21293 (init_dummy_function_start): Use push_dummy_function.
21294 (pop_dummy_function): New function. Factored out of ...
21295 (expand_dummy_function_end): ... here.
21296 * function.h (push_dummy_function, pop_dummy_function): Declare.
21297 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21298 pop_dummy_function.
21299 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21301 2015-04-15 Jeff Law <law@redhat.com>
21303 PR tree-optimization/47679
21304 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21305 need for forward declaration in upcoming changes.
21306 (record_conditions, record_edge_info): Likewise.
21308 PR rtl-optimization/42522
21309 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21310 SIGN_EXTRACT as a whole object rather than simplifying
21313 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21316 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21317 and GIMPLE_PREDICT use break instead of return true. For
21318 GIMPLE_EH_DISPATCH, compare dispatch region.
21320 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21322 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21323 details about the implementation. Make clear preference for
21324 __atomic builtins. Reduce possibility of future change.
21326 2015-04-15 Nick Clifton <nickc@redhat.com>
21328 * config/rx/rx.opt (mallow-string-insns): New option.
21329 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21330 builtin if string instructions are denied.
21331 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21332 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21334 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21335 * config/rx/rx.md (movstr): Enable pattern only if string
21336 instructions are allowed.
21337 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21338 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21339 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21340 (MULTILIB_DIRNAMES): Add no-strings.
21341 * doc/invoke.texi: Document -mno-allow-string-insns.
21343 2015-04-15 Alan Modra <amodra@gmail.com>
21347 PR middle-end/36043
21348 * calls.c (load_register_parameters): Don't load past end of
21349 mem unless suitably aligned.
21351 2015-04-15 Nick Clifton <nickc@redhat.com>
21353 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21354 decrement instruction as being frame related.
21355 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21357 If zero extending a function address enclose the operation in
21359 (rl78_preferred_reload_class): New function.
21360 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21361 * config/rl78/rl78.md: Remove useless constraints in expanders.
21362 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21363 (mulhi3_rl78): Likewise.
21364 (mulhi3_g13): Likewise.
21365 (mulsi3_rl78): Likewise.
21366 (es_addr): Move to before the multiply patterns.
21368 2015-04-15 Alan Modra <amodra@gmail.com>
21370 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21371 and sequence_stack. Add seq.
21372 (seq_stack): Delete.
21373 * function.c (prepare_function_start): Don't access x_last_insn.
21374 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21375 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21376 * emit_rtl.c (start_sequence, push_topmost_sequence,
21377 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21378 sequence accessors.
21379 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21380 remove_insn): Likewise. Simplify.
21381 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21382 and pop_topmost_sequence.
21383 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21385 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21387 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21390 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21393 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21395 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21396 (LEGACY_INT_REGNO_P): Ditto.
21397 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21398 (ANY_MASK_REG_P): Remove.
21399 (BND_REG_P): Rename from ANY_BND_REG_P.
21400 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21401 legacy integer registers. Do not handle MMX_REG_P in a special way.
21402 Merge 64byte and 32byte SSE handling.
21404 2015-04-14 Nick Clifton <nickc@redhat.com>
21406 * expr.c (expand_assignment): Force an address offset computation
21407 into a register before changing its mode.
21408 (expand_expr_real_1): Likewise.
21410 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21412 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21413 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21414 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21415 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21416 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21417 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21418 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21419 and __aarch64_vget_lane_any.
21421 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21423 PR rtl-optimization/65761
21424 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21425 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21427 2015-04-14 Richard Biener <rguenther@suse.de>
21429 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21430 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21432 2015-04-14 Richard Biener <rguenther@suse.de>
21434 PR tree-optimization/65758
21435 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21437 (ccp_lattice_meet): Likewise.
21438 (bit_value_unop): Likewise.
21439 (bit_value_binop): Likewise.
21440 (bit_value_assume_aligned): Likewise.
21442 2015-04-14 Christian Bruel <christian.bruel@st.com>
21444 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21447 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21449 PR tree-optimization/63387
21450 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21451 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21453 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21455 * config/i386/predicates.md (any_QIreg_operand): Rename from
21456 q_regs_operand. Do not process subregs.
21457 (QIreg_operand): Use QI_REGNO_P predicate.
21458 (ext_QIreg_operand): Ditto.
21459 (ext_register_operand): Ditto.
21460 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21461 (AND splitters): Ditto.
21462 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21463 (AND with -256 splitter): Use any_QIreg_operand predicate and
21464 SWI248 mode for operand 0.
21465 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21466 mode for operand 0.
21467 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21469 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21471 * doc/plugins.texi: Rewrite first introductory paragraph.
21473 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21475 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21476 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21478 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21480 * ipa-profie.c (ipa_profile): Check number of parameters
21481 and possible polymorphic call targets before
21484 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21486 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21487 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21489 2015-04-13 Richard Biener <rguenther@suse.de>
21491 PR tree-optimization/65204
21492 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21493 takens for bit-CCP.
21495 2015-04-13 Richard Biener <rguenther@suse.de>
21498 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21499 and cond_not_taken_branch_cost to 4 and 2.
21500 (bdver2_cost): Likewise.
21501 (bdver3_cost): Likewise.
21502 (bdver4_cost): Likewise.
21504 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21506 * hash-table.h (hash_table constructor): Add mem stats.
21507 (alloc_entries): Likewise.
21509 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21511 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21512 * passes.c (execute_one_pass): Only add transform if pass has one.
21514 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21516 * config/i386/i386.c (ix86_option_override_internal): Don't set
21517 -fprefetch-loop-arrays if optimizing for size.
21519 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21520 Gerald Pfeifer <gerald@pfeifer.com>
21522 * doc/contrib.texi (Contributors): Add Martin Jambor and
21525 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21527 * BASE-VER: Set to 6.0.0.
21529 PR tree-optimization/65747
21530 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21531 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21533 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21535 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21536 sentence. Improve grammar.
21538 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21540 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21542 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21545 * ipa-inline-transform.c (speculation_removed): Remove static var.
21546 (check_speculations): New function.
21547 (clone_inlined_nodes): Do not check spculations.
21548 (inline_call): Call check_speculations.
21549 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21550 consider non-invariants.
21552 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21553 Martin Liska <mliska@suse.cz>
21556 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21557 variable can not match.
21558 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21559 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21561 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21563 PR tree-optimization/65735
21564 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21565 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21566 same bb rather than just into the same phi node.
21567 (thread_through_normal_block): Adjust caller.
21569 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21571 * doc/contrib.texi (Contributors): Add Ira Rosen.
21573 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21575 * gcov.c (find_source): Fix miswording in error message.
21576 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21577 (ix86_expand_sse_comi_round): Fix typo in error message.
21579 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21581 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21583 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21585 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21587 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21590 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21591 Print bad_spills_num and insn_pseudos_num.
21593 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21596 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21597 when creating +1 values for SImode.
21599 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21602 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21605 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21606 Iain Sandoe <iain@codesourcery.com>
21609 * configure: Regenerate.
21611 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21614 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21616 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21618 * doc/contrib.texi (Contributors): Add John Marino.
21620 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21622 PR tree-optimization/65709
21623 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21624 TREE_TYPE (TREE_TYPE (t)).
21626 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21629 * lra-int.h (lra_bad_spill_regno_start): New.
21630 * lra.c (lra_bad_spill_regno_start): New.
21631 (lra): Set up lra_bad_spill_regno_start. Set up
21632 lra_constraint_new_regno_start unconditionally.
21633 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21636 2015-04-09 Marek Polacek <polacek@redhat.com>
21637 Jakub Jelinek <jakub@redhat.com>
21639 PR middle-end/65554
21640 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21641 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21644 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21646 PR rtl-optimization/65693
21647 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21650 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21653 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21654 device specs file if "device-specs%s" didn't resolve to a path.
21656 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21659 * config/i386/i386.c (fixup_modeless_constant): New.
21660 (ix86_expand_args_builtin): Fixup modeless constant operand.
21661 (ix86_expand_round_builtin): Ditto.
21662 (ix86_expand_special_args_builtin): Ditto.
21663 (ix86_expand_builtin): Ditto.
21665 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21668 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21669 any pow2 integer in between 2 and 0x80000000U inclusive.
21671 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
21673 PR rtl-optimization/65693
21674 * combine.c (is_parallel_of_n_reg_sets): Change first argument
21675 from an rtx_insn * to an rtx.
21676 (try_combine): Adjust both callers. Use it once more.
21678 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21680 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
21681 (chkp_make_static_const_bounds): Search existing
21682 symbol by assembler name. Use make_decl_one_only.
21683 (chkp_get_zero_bounds_var): Remove node search which
21684 is now performed in chkp_make_static_const_bounds.
21685 (chkp_get_none_bounds_var): Likewise.
21687 2015-04-08 Michael Witten <mfwitten@gmail.com>
21689 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
21692 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21694 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
21696 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21698 * doc/extend.texi (__sync Builtins): Fix grammar.
21700 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21702 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
21704 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21706 * varasm.c (emit_local): Move definition of align.
21708 2015-04-08 Julian Brown <julian@codesourcery.com>
21710 * config/nvptx/mkoffload.c (process): Support variable mapping.
21712 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
21714 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
21716 (alpha_write_one_linkage): Correct typo.
21718 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21720 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21722 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21724 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21726 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21728 * tree-chkp.h (chkp_insert_retbnd_call): New.
21729 * tree-chkp.c (chkp_insert_retbnd_call): New.
21730 * ipa-split.c (insert_bndret_call_after): Remove.
21731 (split_function): Use chkp_insert_retbnd_call.
21732 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21733 bounds for instrumented functions.
21735 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
21738 * calls.c (initialize_argument_information): When producing tail
21739 call also turn SSA_NAMES passed by references to original PARM_DECLs
21741 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
21744 * lra-remat.c (do_remat): Process input and non-input insn
21745 registers separately.
21747 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21750 * valtrack.c (debug_lowpart_subreg): New function.
21751 (dead_debug_insert_temp): Use it.
21753 PR middle-end/65680
21754 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
21755 into signed HOST_WIDE_INT the same as negative bit_offset.
21757 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
21759 * ipa-comdats.c (ipa_comdats): Visit all thunks
21760 to set proper comdat group.
21762 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21765 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
21766 on constants for NEON VSTRUCT modes.
21768 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21769 Iain Sandoe <iain@codesourcery.com>
21772 * configure: Regenerate.
21774 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21777 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21778 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21779 that LFD is used to load double constants instead of LFS. Add
21780 defaults for all costs structures. Add comments for missing
21781 initialization fields.
21782 (size32_cost): Likewise.
21783 (size64_cost): Likewise.
21784 (rs64a_cost): Likewise.
21785 (mpccore_cost): Likewise.
21786 (ppc403_cost): Likewise.
21787 (ppc405_cost): Likewise.
21788 (ppc440_cost): Likewise.
21789 (ppc476_cost): Likewise.
21790 (ppc601_cost): Likewise.
21791 (ppc603_cost): Likewise.
21792 (ppc604_cost): Likewise.
21793 (ppc604e_cost): Likewise.
21794 (ppc620_cost): Likewise.
21795 (ppc630_cost): Likewise.
21796 (ppccell_cost): Likewise.
21797 (ppc750_cost): Likewise.
21798 (ppc7450_cost): Likewise.
21799 (ppc8540_cost): Likewise.
21800 (ppce300c2c3_cost): Likewise.
21801 (ppce500mc_cost): Likewise.
21802 (ppce500mc64_cost): Likewise.
21803 (ppce5500_cost): Likewise.
21804 (ppce6500_cost): Likewise.
21805 (titan_cost): Likewise.
21806 (power4_cost): Likewise.
21807 (power6_cost): Likewise.
21808 (power7_cost): Likewise.
21809 (power8_cost): Likewise.
21810 (ppca2_cost): Likewise.
21811 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21813 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21814 instead of XXLOR to copy SFmode to clear out dirty bits created
21815 when SFmode denormals are generated.
21816 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21817 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21819 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21821 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21822 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21823 * config/aarch64/aarch64-tune.md: Regenerate.
21825 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21827 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21828 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21829 * config/arm/arm-cores.def (exynos-m1): New core.
21830 * config/arm/arm-tune.md: Regenerate.
21831 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21832 * config/arm/bpabi.h: Likewise.
21834 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21836 * ipa-cp (set_single_call_flag): Remove too
21837 restrictive assert.
21839 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
21841 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21842 GOMP_offload_unregister from the destructor.
21844 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21846 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21847 flags for instrumentation thunk.
21848 (chkp_produce_thunks): Likewise.
21850 2015-04-05 Martin Liska <mliska@suse.cz>
21853 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21854 has computed data structure.
21855 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21857 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
21859 * invoke.texi (inline-unit-growth): Increase growth to 20%
21860 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21862 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
21865 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
21867 (lra_rematerialization_iter): New.
21868 * lra.c (lra): Initialize lra_rematerialization_iter.
21869 Stop updating lra_constraint_new_regno_start after switching of
21870 inheritance and rematerialization.
21871 * lra-remat.c (lra_rematerialization_iter): New.
21872 (lra_remat): Add printing pass iteration. Do rematerialization
21873 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21875 2015-04-04 Richard Biener <rguenther@suse.de>
21877 PR tree-optimization/64909
21878 PR tree-optimization/65660
21879 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21880 to take a cost vector for scalar iteration cost.
21881 (vect_get_single_scalar_iteration_cost): Likewise.
21882 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21883 Compute the scalar iteration cost into a cost vector.
21884 (vect_get_known_peeling_cost): Use the scalar cost vector to
21885 account for the cost of the peeled iterations.
21886 (vect_estimate_min_profitable_iters): Likewise.
21887 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21890 2015-04-04 Alan Modra <amodra@gmail.com>
21894 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21895 0.0 constant unless TARGET_VSX.
21896 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21899 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21902 * ipa-inline-transform.c (inline_call): Skip sanity check to work
21905 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21908 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21909 speculative indirect edges to avoid ordering issue.
21911 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21914 * ipa-inline.c (edge_badness): Add combined size to the denominator.
21916 2015-04-03 Jakub Jelinek <jakub@redhat.com>
21918 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21919 TYPE_ARTIFICIAL on the .omp_data* types.
21921 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21923 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21924 instrumentation thunks.
21926 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21928 * config/i386/i386.c (ix86_expand_call): Avoid nested
21929 PARALLEL in returned call value.
21931 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21933 * lto-cgraph.c (input_cgraph_1): Always link instrumented
21934 assembler name with original one.
21936 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21938 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21940 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21942 Revert parts of r216820.
21943 * config/i386/i386.md (movqi_internal): Correct type calculation
21944 for alternatives 3 and 5.
21946 2015-04-02 Jakub Jelinek <jakub@redhat.com>
21948 PR preprocessor/61977
21949 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21950 predefine __vector/__bool/__pixel macros nor context sensitive
21951 macros for CLK_ASM.
21952 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21954 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
21956 * config/pa/pa.c (pa_output_move_double): Directly handle register
21957 indexed memory operand. Simplify handling of scaled register indexed
21960 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21963 * config/i386/linux-common.h (MPX_SPEC): New.
21964 (CHKP_SPEC): Add MPX_SPEC.
21965 * doc/invoke.texi (-fcheck-pointer-boudns): Document
21966 possible issues with '-z bndplt' support in linker.
21968 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21970 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21971 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21972 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21973 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21974 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21976 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
21978 * config/i386/sync.md (UNSPEC_MOVA): Remove.
21979 (atomic_load<mode>): Change operand 0 predicate to
21980 nonimmediate_operand and fix up the destination when needed.
21982 (atomic_loaddi_fpu): Use UNSPEC_LDA.
21983 (atomic_store<mode>): Change operand 1 predicate to
21984 nonimmendate_operand and move the source to register when needed.
21986 (atomic_store<mode>_1): Use UNSPEC_STA.
21987 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21988 Fix moves from memory operand. Use UNSPEC_STA.
21990 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21992 * expmed.c (strict_volatile_bitfield_p): Check that the access will
21993 not cross a MODESIZE boundary.
21994 (store_bit_field, extract_bit_field): Added assertions in the
21995 strict volatile bitfields code path.
21997 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22000 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22001 Increase args array size by one to avoid buffer overflow.
22003 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22005 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22007 * ipa-inline.c (edge_badness): Add wrapper penalty.
22008 (sum_callers): Move up.
22009 (inline_small_functions): Set single_caller.
22010 * ipa-inline.h (inline_summary): Add single_caller.
22011 * ipa-split.c (split_function): Set split_part.
22012 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22013 * cgraph.h (cgraph_node): Add split_part.
22015 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22018 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22019 Do not split operands 0 and operands 2 to halfmode.
22020 (atomic_compare_and_swap<mode>): Update for
22021 atomic_compare_and_swap<dwi>_doubleword changes.
22023 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22025 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22026 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22027 no caching is done.
22029 2015-03-31 Martin Liska <mliska@suse.cz>
22032 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22033 has already filled up function summary.
22034 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22036 2015-03-31 Richard Biener <rguenther@suse.de>
22038 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22041 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22043 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22045 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22046 (s390_asm_output_function_label): Adapt to new signature of
22047 s390_function_num_hotpatch_hw
22048 Optimise the code generating assembler output.
22049 Add comments to assembler file.
22051 2015-03-31 Richard Biener <rguenther@suse.de>
22053 PR middle-end/65626
22054 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22055 of the noreturn call so it is last and cleanup_control_flow_bb
22056 can do the CFG part.
22058 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22061 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22062 same_comdat_group for external symbols.
22063 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22064 infinite same_comdat_group traversal loop.
22066 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22069 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22070 automatically to $headers.
22072 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22075 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22076 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22078 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22080 * ipa-prop.c (param_type_may_change_p): Likewise.
22081 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22082 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22083 argument. Before inlining, preserve
22084 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22085 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22087 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22089 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22092 * ipa-inline.c (edge_badness): Base denominator on callee's
22095 2015-03-27 Martin Jambor <mjambor@suse.cz>
22098 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22099 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22100 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22101 node_calling_single_call.
22102 * ipa-cp.c (count_callers): New function.
22103 (set_single_call_flag): Likewise.
22104 (initialize_node_lattices): Count callers and set single_flag_call if
22106 (incorporate_penalties): New function.
22107 (good_cloning_opportunity_p): Use it, dump new flags.
22108 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22109 * doc/invoke.texi (ipa-cp-recursion-penalty,
22110 ipa-cp-single-call-pentalty): Document.
22112 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22115 * symtab.c (symtab_node::get_partitioning_class): Register vars
22117 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22118 decls for non-symbols.
22120 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22123 * output.h (default_binds_local_p_2): New.
22124 * varasm.c (default_binds_local_p_2): Renamed to ...
22125 (default_binds_local_p_3): This. Don't return true on protected
22126 data symbol if protected data may be external.
22127 (default_binds_local_p): Use default_binds_local_p_3.
22128 (default_binds_local_p_1): Likewise.
22129 (default_binds_local_p_2): New.
22130 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22131 default_binds_local_p_2 if TARGET_MACHO is undefined.
22133 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22136 * config/i386/i386.c (legitimize_pic_address): If base
22137 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22138 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22140 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22143 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22146 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22149 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22150 of optimized out indirect call.
22151 (redirect_to_unreachable): Always build symbol table node for
22152 BUILT_IN_UNREACHABLE
22154 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22157 * ira-costs.c (record_reg_classes): Process all constraint string
22160 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22162 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22166 * config/c6x/constraints.md (S3): New constraint.
22167 * config/c6x/c6x.md (real_jump): Use it.
22169 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22171 PR middle-end/65595
22172 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22173 do redirection if the call is not optimized out.
22175 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22178 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22179 (fchkp-check-incomplete-type): Add LTO.
22180 (fchkp-zero-input-bounds-for-main): Likewise.
22181 (fchkp-first-field-has-own-bounds): Likewise.
22182 (fchkp-narrow-bounds): Likewise.
22183 (fchkp-narrow-to-innermost-array): Likewise.
22184 (fchkp-use-static-bounds): Likewise.
22185 (fchkp-use-static-const-bounds): Likewise.
22186 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22188 2015-03-27 Marek Polacek <polacek@redhat.com>
22190 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22192 2015-03-27 Marek Polacek <polacek@redhat.com>
22195 * ubsan.c (ubsan_create_edge): New function.
22196 (instrument_bool_enum_load): Call it.
22197 (instrument_nonnull_arg): Likewise.
22198 (instrument_nonnull_return): Likewise.
22199 (instrument_object_size): Likewise.
22201 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22203 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22206 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22209 * lto-streamer.h (class lto_location_cache): New.
22210 (struct data_in): Add location_cache.
22211 (lto_input_location): Update prototype.
22212 (stream_input_location_now): New.
22213 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22214 pointer to location.
22215 (stream_input_location): Update.
22216 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22217 (warn_odr): Apply location cache before warning.
22218 (lto_input_location): Update prototype.
22219 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22220 Use stream_input_location_now.
22221 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22223 (lto_location_cache::cmp_loc): New function.
22224 (lto_location_cache::apply_location_cache): New function.
22225 (lto_location_cache::accept_location_cache): New function.
22226 (lto_location_cache::revert_location_cache): New function.
22227 (lto_location_cache::input_location): New function.
22228 (lto_input_location): Do location caching.
22229 (stream_input_location_now): New function.
22230 (input_eh_region, input_struct_function_base): Use
22231 stream_input_location_now.
22232 (lto_data_in_create): use new.
22233 (lto_data_in_delete): Use delete.
22234 * tree-streamer-in.c (unpack_ts_block_value_fields,
22235 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22236 lto_input_ts_exp_tree_pointers): Update for cached location api.
22238 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22241 * passes.def: Add pass_nothrow.
22242 * ipa-pure-const.c: (pass_data_nothrow): New.
22243 (pass_nothrow): New.
22244 (pass_nothrow::execute): New.
22245 (make_pass_nothrow): New.
22246 * tree-pass.h (make_pass_nothrow): Declare.
22248 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22250 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22251 edge to change by speculation resolution or redirection.
22252 (edge_set_predicate): Likewise.
22253 (inline_summary_t::duplicate): Likewise.
22254 (remap_edge_summaries): Likewise.
22256 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22258 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22260 (can_inline_edge_p): Relax option matching for always inline functions.
22262 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22265 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22266 Check operand 4 and operand 0 for equality.
22267 (avx512f_vextract<shuffletype>32x4_1_maskm):
22268 Check operand 6 and operand 0 for equality.
22269 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22271 (vec_extract_hi_<mode>_maskm): Ditto.
22273 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22275 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22276 dead calls back to live.
22277 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22279 (cgraph_node::verify_node): ... here; verify only callee edges,
22281 * cif-code.def (CILK_SPAWN): New code.
22283 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22285 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22286 (edge_set_predicate): Use it to mark unreachable edges.
22287 (inline_summary_t::duplicate): Remove unnecesary code.
22288 (remap_edge_summaries): Likewise.
22289 (dump_inline_summary): Report contains_cilk_spawn.
22290 (compute_inline_parameters): Compute contains_cilk_spawn.
22291 (inline_read_section, inline_write_summary): Stream
22292 contains_cilk_spawn.
22293 * ipa-inline.c (can_inline_edge_p): Do not touch
22294 DECL_STRUCT_FUNCTION that may not be available;
22295 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22296 remove check for callee_fun->can_throw_non_call_exceptions and
22297 replace it by optimization attribute check; check for flag_exceptions.
22298 * ipa-inline-transform.c (inline_call): Maintain
22299 DECL_FUNCTION_PERSONALITY
22300 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22302 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22304 PR tree-optimization/65551
22305 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22306 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22308 2015-03-26 Richard Biener <rguenther@suse.de>
22310 PR middle-end/65555
22311 * tree-cfg.c (verify_gimple_call): Do not require a call to
22312 have no LHS if it wasn't recognized as control altering yet.
22314 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22316 PR tree-optimization/64715
22317 * passes.def: Add another instance of pass_object_sizes before ccp1.
22318 * tree-object-size.c (pass_object_sizes::execute): In
22319 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22320 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22321 __bos result and the computed constant. Remove redundant
22322 checks, obsoleted by gimple_call_builtin_p test.
22324 * var-tracking.c (variable_tracking_main_1): Don't track
22325 variables for targetm.no_register_allocation targets.
22327 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22329 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22330 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22332 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22335 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22336 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22337 0.0 is correctly setup.
22338 (extenddftf2_internal): Likewise.
22340 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22342 PR tree-optimization/65177
22343 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22345 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22346 edges not adjacent on the path to the original code.
22348 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22351 * doc/install.texi (Building a native compiler): Document new
22352 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22353 configuration assumes that the host supports the linker plugin.
22355 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22358 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22359 chain for generated call.
22361 2015-03-25 Richard Biener <rguenther@suse.de>
22363 * passes.c (pass_manager::execute_early_local_passes): Guard
22364 execution of pass_chkp_instrumentation_passes with
22365 flag_check_pointer_bounds.
22366 (pass_chkp_instrumentation_passes::gate): Likewise.
22368 2015-03-25 Martin Liska <mliska@suse.cz>
22370 PR tree-optimization/65538
22371 * symbol-summary.h (function_summary::~function_summary):
22372 Relese memory for allocated summaries.
22373 (function_summary::release): New function.
22375 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22378 * lto-streamer-out.c (DFS::worklist): New struct.
22379 (DFS::worklist_vec): New data member.
22380 (DFS::next_dfs_num): Remove.
22381 (DFS::DFS): Rewritten using worklist instead of recursion,
22382 using most of code from DFS::DFS_write_tree.
22383 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22384 pass it to DFS_write_tree calls.
22385 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22386 quick initial checks push it into worklist_vec and return.
22388 2015-03-25 Richard Biener <rguenther@suse.de>
22390 PR middle-end/65519
22391 * genmatch.c (expr::gen_transform): Re-write to avoid
22392 using gimple_build.
22394 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22396 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22398 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22400 * config/arm/arm.opt (print_tune_info): New option.
22401 * config/arm/arm.c (arm_print_tune_info): New function.
22402 (arm_file_start): Call arm_print_tune_info.
22403 * config/arm/arm-protos.h (struct tune_params): Add comment.
22404 * doc/invoke.texi (@item -mprint-tune-info): New item.
22405 (-mtune): mention it in ARM Option Summary.
22407 2015-03-25 DJ Delorie <dj@redhat.com>
22409 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22412 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22413 Martin Liska <mliska@suse.cz>
22415 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22416 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22417 (sem_item::add_type): New function.
22418 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22419 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22420 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22421 (sem_function::equals_wpa): Fix typo.
22422 * ipa-icf.h (sem_item::add_type): New function.
22423 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22426 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22428 PR tree-optimization/65533
22429 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22430 with swapped operands, call vect_free_slp_tree on
22431 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22434 2015-03-24 Richard Biener <rguenther@suse.de>
22436 PR middle-end/65517
22437 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22438 for fixup if necessary.
22440 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22442 * doc/extend.texi (Function Attributes): Add @cindex entries
22443 for all attributes and regularize their format. Delete text
22444 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22445 information about "eightbit_data", "tiny_data", and "model"
22446 variable attributes to the Variable Attributes section. Fix
22447 some obvious typos and copy-editing issues.
22448 (Variable Attributes, Type Attributes): Likewise add/fix
22449 @cindex entries for all attributes.
22451 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22454 * tree-chkp.c (chkp_build_returned_bound): Ignore
22455 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22457 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22460 * config/sh/predicates.md (simple_mem_operand,
22461 displacement_mem_operand): Add test for reg.
22462 (short_displacement_mem_operand): Test for displacement_mem_operand
22463 before invoking sh_disp_addr_displacement.
22464 * config/sh/constraints.md (Sdd, Sra): Simplify.
22465 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22466 Remove redundant displacement_mem_operand tests.
22468 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22471 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22472 the same -mmcu=MCU more than once.
22474 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22477 * ipa-devirt.c: Remove duplicate demangle.h include.
22480 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22482 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22483 REG_POINTER on *destptr after adjusting it for prologue size.
22486 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22487 ultimate_alias_target ()->order ints instead of
22488 ultimate_alias_target () pointers.
22490 2015-03-23 Richard Biener <rguenther@suse.de>
22492 PR tree-optimization/65518
22493 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22494 interleaving cases we generate absymal code for.
22496 2015-03-23 Richard Biener <rguenther@suse.de>
22498 PR tree-optimization/65494
22499 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22501 (vect_analyze_slp_instance): But do that here, always and once.
22503 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22505 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22506 adding T or multiplying by T+1 and subracting T.
22508 2015-03-22 Jeff Law <law@redhat.com>
22510 PR rtl-optimization/64317
22511 * Makefile.in (OBJS): Add gcse-common.c
22512 * gcse.c: Include gcse-common.h
22513 (struct modify_pair_s): Move structure definition to gcse-common.h
22514 (compute_transp): Move function to gcse-common.c.
22515 (canon_list_insert): Similarly.
22516 (record_last_mem_set_info): Break out some code and put it into
22517 gcse-common.c. Call into the new common code.
22518 (compute_local_properties): Pass additional arguments to compute_transp.
22519 * postreload-gcse.c: Include gcse-common.h and df.h
22520 (modify_mem_list_set, blocks_with_calls): New variables.
22521 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22522 (get_bb_avail_insn): Pass in the expression index too.
22523 (alloc_mem): Allocate memory for the new bitmaps and lists.
22524 (free_mem): Free memory for the new bitmaps and lists.
22525 (insert_expr_in_table): Record a bitmap index for each entry we
22527 (record_last_mem_set_info): Call into common code in gcse-common.c.
22528 (get_bb_avail_insn): If no available insn was found in the requested
22529 BB. If BB has a single predecessor, see if the expression is
22530 transparent in BB and available in that single predecessor.
22531 (compute_expr_transp): New wrapper for compute_transp.
22532 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22533 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22534 (gcse_after_reload_main): If there are elements in the hash table,
22535 then compute transparency for all the elements in the hash table.
22536 * gcse-common.h: New file.
22537 * gcse-common.c: New file.
22539 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22541 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22543 (System Headers): Likewise.
22545 (Traditional macros): Likewise.
22546 (Invocation): Likewise.
22547 (Option Index): Likewise.
22548 * doc/cppopts.texi (-M): Likewise.
22549 (-finput-charset): Likewise.
22550 (--help): Likewise.
22551 * doc.invoke.texi (AVR Options): Likewise.
22552 (V850 Options): Likewise.
22554 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22557 * ipa-devirt.c: Include demangle.h
22558 (odr_type_d): Add field rtti_broken.
22559 (odr_subtypes_equivalent_p): Do not require name to match.
22560 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22561 bypass the tests; be ready for function referneces in vtables that are
22562 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22563 (warn_odr): Give up for nameless types.
22564 (warn_types_mismatch): Report mismatch in mangled names;
22565 report mismatch in anonymous namespaces; look into component types to
22566 give useful error; report when mismatch is dragged in from other ODR
22568 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22569 duplicated diagnostics.
22570 (add_type_duplicate): Reorder checks so more informative ones come
22571 first; fix typo; do not output "the extra base is defined here" when
22573 (BINFO_N_BASE_BINFOS): Relax sanity check.
22575 2015-03-22 Martin Liska <mliska@suse.cz>
22576 Jakub Jelinek <jakub@redhat.com>
22578 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22579 masks that can potentially include a builtin.
22580 (ix86_add_new_builtins): Introduce fast filter for isa values
22581 that cannot trigger builtin inclusion.
22583 2015-03-22 Martin Liska <mliska@suse.cz>
22585 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22586 (sem_item::update_hash_by_local_refs): Likewise.
22587 (sem_variable::get_hash): Empty line is fixed.
22588 (sem_item_optimizer::execute): Include adding of hash references.
22589 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22590 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22591 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22592 (sem_item::update_hash_by_local_refs): Likewise.
22594 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22597 * ipa-comdats.c (enqueue_references): Walk through thunks.
22598 (ipa_comdats): Likewise.
22599 (set_comdat_group_1): New function.
22601 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22604 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22607 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22608 Gerald Pfeifer <gerald@pfeifer.com>
22610 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22612 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22613 Sandra Loosemore <sandra@codesourcery.com>
22615 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22616 function parameter declaration.
22617 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22618 Update arguments to nios2_adjust_call_address().
22619 (sibcall_internal): Rename from *sibcall.
22620 (sibcall_value_internal): Rename from *sibcall_value.
22621 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22622 (nios2_large_got_address): Add target temp reg parameter.
22623 (nios2_got_address): Adjust call to nios2_large_got_address, add
22624 force_reg around it.
22625 (nios2_load_pic_address): Add target temp reg parameter, replace call
22626 to nios2_got_address with corresponding code.
22627 (nios2_legitimize_constant_address): Update call to
22628 nios2_load_pic_address.
22629 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22630 to use temp reg for PIC loading purposes.
22631 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22632 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22633 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22635 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22637 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22638 usage of "the @option{...}".
22639 (-Wopenmp-simd): Likewise.
22640 (-fsanitize-recover): Likewise.
22641 (-fsanitize-undefined-trap-on-error): Likewise.
22643 (tracer-dynamic-coverage-feedback): Likewise.
22644 (reorder-block-duplicate-feedback): Likewise.
22645 (loop-unroll-jam-size): Likewise.
22648 (-mabs=legacy): Likewise.
22649 (-mupper-regs-df): Likewise.
22650 (-mupper-regs-sf): Likewise.
22651 (-mpointers-to-nested-functions): Likewise.
22653 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22655 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22657 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22659 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22660 additional index entries and cross-references.
22661 (-fchkp-check-incomplete-type): Likewise.
22662 (-fchkp-first-field-has-own-bounds): Likewise.
22663 (-fchkp-narrow-to-innermost-array): Likewise.
22664 (-fchkp-use-fast-string-functions): Likewise.
22665 (-fchkp-use-nochk-string-functions): Likewise.
22666 (-fchkp-use-static-const-bounds): Likewise.
22667 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22668 (-fchkp-instrument-marked-only): Likewise.
22669 (-fchkp-use-wrappers): Likewise.
22670 (-static-libmpx): Likewise.
22671 (-static-libmpxwrappers): Likewise.
22672 * doc/extend.texi (bnd_legacy): Likewise.
22673 (bnd_instrument): Likewise.
22674 (bnd_variable_size): Likewise.
22675 (Pointer Bounds Checker builtins): Likewise.
22677 2015-03-21 Tom de Vries <tom@codesourcery.com>
22679 PR tree-optimization/65458
22680 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
22681 * cgraph.h (cgraph_node): Add parallelized_function field.
22682 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
22683 (input_overwrite_node): Read parallelized_function field.
22684 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
22685 parallelized_function on cgraph_node for child_fn.
22686 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
22687 Remove include of gt-tree-parloops.h.
22688 (parallelized_functions): Remove static variable.
22689 (parallelized_function_p): Rewrite using parallelized_function field of
22691 (create_loop_fn): Remove adding to parallelized_functions.
22692 * Makefile.in (GTFILES): Remove tree-parloops.c
22694 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
22696 PR rtl-optimization/64366
22697 * lra.c (lra_update_insn_regno_info): Consider regs in
22698 CALL_INSN_FUNCTION_USAGE memory.
22700 2015-03-20 Richard Biener <rguenther@suse.de>
22702 PR middle-end/64715
22703 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
22704 for type comparison and gcc_checking_assert.
22705 (chrec_fold_plus_poly_poly): Likewise.
22706 (chrec_fold_multiply_poly_poly): Likewise.
22707 (chrec_convert_1): Likewise.
22708 * gimplify.c (gimplify_expr): Remove premature folding of
22709 &X + CST to &MEM[&X, CST].
22711 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22713 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
22715 (ipa_inline): Recompute inline_failed codes.
22716 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22717 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22720 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
22722 PR rtl-optimization/60851
22723 * recog.c (constrain_operands): Accept a pseudo register before reload
22724 for LRA enabled targets.
22726 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
22729 * config/rs6000/predicates.md (easy_fp_constant): Remove special
22730 -ffast-math handling that kept non-0 constants live in the RTL
22731 until reload. Remove logic testing the number of instructions it
22732 took to create a constant in a GPR that was never used, due to a
22733 test for soft-float earlier.
22734 (memory_fp_constant): Delete, no longer used.
22736 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22737 alternatives for loading non-0 constants into GPRs for hard
22738 floating point that is no longer needed due to changes in
22739 easy_fp_constant. Add support for loading 0.0 into GPRs.
22740 (mov<mode>_hardfloat32): Likewise.
22741 (mov<mode>_hardfloat64): Likewise.
22742 (mov<mode>_64bit_dm): Likewise.
22743 (movtd_64bit_nodm): Likewise.
22744 (pre-reload move FP constant define_split): Delete define_split,
22745 since it is no longer used.
22746 (extenddftf2_internal): Remove GHF constraints that are not valid
22749 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
22751 PR rtl-optimization/63491
22752 * lra-constraints.c (check_and_process_move): Use src instead of
22753 sreg. Remove some dead code.
22755 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
22758 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
22759 (sem_variable::merge): Likewise.
22761 2015-03-19 Martin Liska <mliska@suse.cz>
22764 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
22765 all fields of cgraph_thunk_info.
22767 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
22769 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22770 clone instrumented thunks.
22772 2015-03-19 Richard Biener <rguenther@suse.de>
22775 2015-03-10 Richard Biener <rguenther@suse.de>
22777 PR middle-end/63155
22778 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22779 * tree-ssa-coalesce.c: Include timevar.h.
22780 (attempt_coalesce): Handle graph being NULL.
22781 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22782 Split out abnormal coalescing to ...
22783 (perform_abnormal_coalescing): ... this function.
22784 (coalesce_ssa_name): Perform abnormal coalescing without computing
22786 (verify_ssa_coalescing_worker): New function.
22787 (verify_ssa_coalescing): Likewise.
22789 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
22790 Jakub Jelinek <jakub@redhat.com>
22793 * tsan.c (instrument_gimple): Clear tail call flag on
22796 2015-03-19 Jakub Jelinek <jakub@redhat.com>
22799 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22800 call in the return bb.
22801 (find_split_points): Add RETURN_BB argument, don't call
22803 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
22804 if true append TSAN_FUNC_EXIT internal call after the call to
22805 the split off function.
22806 (execute_split_functions): Call find_return_bb here.
22807 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22808 Adjust find_split_points and split_function calls.
22810 2015-03-18 DJ Delorie <dj@redhat.com>
22812 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22813 (iorqi3_virt): Likewise.
22815 2015-03-18 Tom de Vries <tom@codesourcery.com>
22817 * tree-parloops.c (parallelize_loops): Make static.
22818 * tree-parloops.h (parallelize_loops): Remove extern declaration.
22820 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
22822 PR middle-end/64491
22824 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
22826 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22827 condition would be removed due to undefined behaviour.
22829 2015-03-18 Martin Liska <mliska@suse.cz>
22832 * cgraph.c (cgraph_node::get_create): Remove unnecessary
22833 xstrdup_for_dump wrapper.
22834 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22836 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22837 with xstrdup_for_dump.
22838 (sem_variable::equals): Likewise.
22839 (sem_item_optimizer::read_section): Use symtab_node::name instead of
22841 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22842 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22843 symtab_node::asm_name with xstrdup_for_dump.
22844 (congruence_class::dump): Use symtab_node::name instead of
22846 * ipa-icf.h (symtab_node::name): Remove.
22847 (symtab_node::asm_name): Likewise.
22849 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22851 PR tree-optimization/65450
22852 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22854 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22855 it instead of duplicate_ssa_name_ptr_info.
22858 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22860 2015-03-18 Richard Biener <rguenther@suse.de>
22862 * tree-data-ref.h (struct access_matrix): Remove.
22863 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22864 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22865 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22866 (am_vector_index_for_loop): Likewise.
22867 (struct data_reference): Remove access_matrix member.
22868 (DR_ACCESS_MATRIX): Remove.
22869 (lambda_vector_new): Add comment.
22870 (lambda_matrix_new): Use XOBNEWVEC.
22872 2015-03-18 Richard Biener <rguenther@suse.de>
22874 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22875 (pass_ch::execute): Cleanup the CFG only if we did sth.
22876 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22878 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22880 * expmed.c (synth_mult): Use std::swap instead of manually
22881 swapping algorithms.
22883 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22886 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22888 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
22891 * config/avr/avr.opt (-nodevicelib): New option.
22892 * doc/invoke.texi (AVR Options): Document it.
22893 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22894 libgcc.a, libc.a, libm.a.
22895 * config/avr/specs.h: Same.
22896 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22897 which don't (directly) depend on the device. Print more help.
22898 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22899 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22900 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22902 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22903 for specs file name.
22904 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22905 * config/avr/avr-mcus.def: Adjust initializers and comments.
22907 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
22909 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22910 DECL_ONE_ONLY to check if decl is one only.
22911 * ipa-split.c (consider_split): Limit splitt of one only functions.
22913 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22915 PR tree-optimization/65427
22916 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22918 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22920 2015-03-16 Marek Polacek <polacek@redhat.com>
22922 * cgraph.h (add_new_static_var): Remove declaration.
22923 * varpool.c (add_new_static_var): Remove function.
22925 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22927 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22928 instead of vec<tree> * with vec_alloc and release for args.
22931 PR middle-end/65431
22932 * omp-low.c (delete_omp_context): Only splay_tree_delete
22933 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22934 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
22936 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
22939 * cfgexpand.c (align_base): New function.
22940 (alloc_stack_frame_space): Call it.
22941 (expand_stack_vars): Align prev_frame to be sure
22942 data->asan_vec elements aligned properly.
22944 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
22946 PR middle-end/65409
22947 * expr.c (store_field): Do not do a direct block copy if the source is
22948 a PARALLEL with BLKmode.
22950 2015-03-16 Tom de Vries <tom@codesourcery.com>
22952 PR middle-end/65414
22954 2015-03-12 Tom de Vries <tom@codesourcery.com>
22956 PR rtl-optimization/64895
22957 * lra-lives.c (check_pseudos_live_through_calls): Use
22958 actual_call_used_reg_set instead of call_used_reg_set, if available.
22960 2015-03-16 Alan Modra <amodra@gmail.com>
22963 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22964 Modify Z->r bswapdi splitter to use dest in place of scratch.
22965 In r->Z and Z->r bswapdi splitter rename word_high, word_low
22966 to word1, word2 and rearrange logic to suit.
22967 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22968 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
22969 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22970 Add one '?' on r->r. Modify Z->r splitter to avoid need for
22973 2015-03-14 Jakub Jelinek <jakub@redhat.com>
22975 PR tree-optimization/65369
22976 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22977 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22978 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22980 PR tree-optimization/65418
22981 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22982 are casts in the first PLUS_EXPR operand, ensure tbias and
22983 *totallowp are in the inner type.
22985 PR rtl-optimization/65401
22986 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22987 argument. If true, adjust_address_nv of x with big-endian
22988 correction for the mode widening to GET_MODE (y).
22989 (make_field_assignment): Don't do MEM mode widening here.
22990 Use MEM_P instead of GET_CODE == MEM.
22992 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
22994 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22995 the external decls.
22997 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23000 * config/arm/arm.c (arm_gen_constant, AND case): Use
23001 ARM_SIGN_EXTEND when constructing AND mask.
23003 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23005 * graph.c (print_graph_cfg): Make function names visible and append
23006 parenthesis to it. Also make groups of basic blocks belonging to the
23007 same function visible.
23009 2015-03-12 Richard Biener <rguenther@suse.de>
23011 PR middle-end/44563
23012 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23013 to avoid quadratic behavior with inline expansion splitting blocks.
23014 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23015 with the successor if the predecessor will be merged with it.
23016 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23017 entry block with its successor.
23019 2015-03-13 Richard Biener <rguenther@suse.de>
23021 PR middle-end/44563
23022 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23023 (cleanup_tree_cfg_1): Do not call it.
23024 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23025 (fixup_noreturn_call): Mark the stmt as control altering.
23026 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23028 (pass_data_fixup_cfg): Produce a dump file.
23029 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23030 (need_noreturn_fixup): New global.
23031 (pass_dominator::execute): Fixup queued noreturn calls.
23032 (optimize_stmt): Queue calls that became noreturn for fixup.
23033 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23034 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23035 (el_to_fixup): New global.
23036 (eliminate_dom_walker::before_dom_childre): Queue calls that
23037 became noreturn for fixup.
23038 (eliminate): Fixup queued noreturn calls.
23039 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23040 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23041 (substitute_and_fold_dom_walker::before_dom_children): Queue
23042 alls that became noreturn for fixup.
23043 (substitute_and_fold): Fixup queued noreturn calls.
23045 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23047 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23048 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23049 are building; for methods check ODR type of class they belong to if
23050 they may lead to a polymorphic call.
23051 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23052 when function may lead to a polymorphic call.
23053 (sem_function::compare_type_list): Remove.
23054 (sem_variable::equals): Update use of compatible_types_p.
23055 (sem_variable::parse_tree_refs): Remove.
23056 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23058 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23060 (func_checker::compatible_polymorphic_types_p): Break out from ...
23061 (unc_checker::compatible_types_p): ... here.
23062 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23064 (unc_checker::compatible_types_p): Update.
23065 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23068 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23070 PR rtl-optimization/65235
23071 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23072 When first element of vec_concat is const_int, calculate its size
23073 using second element.
23075 2015-03-12 Richard Biener <rguenther@suse.de>
23077 PR middle-end/65270
23078 * fold-const.c (operand_equal_p): Fix ordering of resetting
23079 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23081 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23083 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23085 (s390_asm_output_function_label): Likewise.
23086 * config/s390/s390.c (s390_asm_output_function_label):
23087 Fix function label alignment with -mhtopatch.
23088 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23089 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23090 ("nop_2_byte"): New define_insn.
23091 ("nop_4_byte"): Likewise.
23092 ("nop_6_byte"): Likewise.
23093 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23094 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23096 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23099 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23102 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23105 * toplev.c (process_options): Restrict Pointer Bounds Checker
23106 usage with Address Sanitizer.
23108 2015-03-12 Richard Biener <rguenther@suse.de>
23110 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23112 * omp-low.c (expand_omp_taskreg): Split block before removing
23114 (expand_omp_target): Likewise.
23115 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23116 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23117 stmt to split_block.
23119 2015-03-12 Tom de Vries <tom@codesourcery.com>
23121 PR rtl-optimization/64895
23122 * lra-lives.c (check_pseudos_live_through_calls): Use
23123 actual_call_used_reg_set instead of call_used_reg_set, if available.
23125 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23127 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23128 (cgraph_node::remove): Likewise.
23129 (cgraph_node::get_untransformed_body): Likewise.
23130 * varpool.c (varpool_node::remove): Likewise.
23131 (varpool_node::get_constructor): Add sanity check.
23133 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23135 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23137 (-fabi-compat-version): Likewise.
23138 (-ffriend-injection): Likewise.
23139 (-Wdeclaration-after-statement): Likewise.
23140 (-fomit-frame-pointer): Likewise.
23141 (-ftree-coalesce-inlined-vars): Likewise.
23142 (-fvisibility=): Likewise.
23143 * doc/extend.texi (Typeof): Likewise.
23144 (Zero Length): Likewise.
23145 (Escaped Newlines): Likewise.
23146 (Compound Literals): Likewise.
23147 (Function Attributes): Likewise.
23148 (Label Attributes): Likewise.
23149 (Type Attributes): Likewise.
23150 (Function Names): Likewise.
23151 (Other Builtins): Likewise.
23152 (Function Specific Option Pragmas): Likewise.
23153 (C++ Interface): Likewise.
23155 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23157 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23159 2015-03-11 Marek Polacek <polacek@redhat.com>
23161 PR tree-optimization/65388
23162 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23164 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23167 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23168 * configure: Regenerate.
23169 * config.in: Regenerate.
23170 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23171 [-mn-flash]: Document it.
23172 [__AVR_ARCH__]: Document avrtiny.
23174 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23175 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23176 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23178 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23180 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23182 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23185 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23186 allow reloads of PLUS in floating point/VSX registers.
23188 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23190 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23191 crypto_sha256_fast.
23192 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23194 2015-03-11 Richard Biener <rguenther@suse.de>
23196 PR tree-optimization/65310
23197 * tree-sra.c (build_ref_for_offset): Also preserve larger
23200 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23202 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23204 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23207 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23209 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23211 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23213 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23214 (sem_function::equals_wpa): ... here.
23216 2015-03-10 Marek Polacek <polacek@redhat.com>
23217 Jakub Jelinek <jakub@redhat.com>
23220 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23221 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23224 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23227 * config/rs6000/t-linux: For powerpc64* target set
23228 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23230 2015-03-10 Richard Biener <rguenther@suse.de>
23232 PR middle-end/44563
23233 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23234 for redirect_all_calls.
23236 2015-03-10 Marek Polacek <polacek@redhat.com>
23238 * gdbinit.in (pcfun): Define and document.
23240 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23242 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23243 of libgomp-plugin.h.
23244 (find_target_compiler): Support a case when the path to gcc is
23245 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23246 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23247 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23249 (main): Use GCC_INSTALL_NAME as target_driver_name.
23250 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23252 (mkoffload.o): Remove obsolete include path and defines.
23253 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23255 2015-03-10 Richard Biener <rguenther@suse.de>
23257 PR middle-end/63155
23258 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23259 * tree-ssa-coalesce.c: Include timevar.h.
23260 (attempt_coalesce): Handle graph being NULL.
23261 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23262 Split out abnormal coalescing to ...
23263 (perform_abnormal_coalescing): ... this function.
23264 (coalesce_ssa_name): Perform abnormal coalescing without computing
23266 (verify_ssa_coalescing_worker): New function.
23267 (verify_ssa_coalescing): Likewise.
23269 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23272 * config.gcc (extra_options) [avr]: Remove.
23273 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23274 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23275 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23277 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23278 (-mmcu=): Add Var and MissingArgError properties.
23280 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23281 * config/avr/t-multilib: Regenerate.
23282 * config/avr/specs.h: New file.
23283 * config/avr/driver-avr.c: New file.
23284 * config/avr/genopt.sh: Remove file.
23285 * config/avr/avr-tables.opt: Remove file.
23286 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23287 * config/avr/avr-c.c: Same.
23288 * avr-arch.h: Same.
23289 (avr_current_device): Remove proto.
23290 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23291 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23292 (EXTRA_SPEC_FUNCTIONS): Define.
23293 (avr_devicespecs_file): New specs function proto.
23294 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23295 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23296 (avr_current_device): Remove definition and usage.
23297 (avr_set_core_architecture): New static function.
23298 (avr_option_override): Use it.
23299 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23300 (mcu_name): New static array.
23301 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23302 (avr_inform_devices, avr_inform_core_architectures): New functions.
23303 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23304 (avrlibc.h) [WITH_AVRLIBC]: Include.
23305 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23306 (print_mcu): Rewrite from scratch.
23307 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23308 Forward to avr-specific specs defined in device-specs file.
23309 * config/avr/t-avr (driver-avr.o): New rule.
23310 (avr-devices.o): Depend on avr-arch.h.
23311 (avr-mcus): No more depend on avr-tables.opt.
23312 (avr-tables.opt): Remove rule.
23313 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23315 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23317 * c-family/c.opt (fchkp-use-wrappers): New.
23318 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23319 (chkp_wrap_function): New.
23320 (chkp_build_instrumented_fndecl): Support wrapped
23322 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23323 (-fchkp-check-incomplete-type): New.
23324 (-fchkp-first-field-has-own-bounds): New.
23325 (-fchkp-narrow-bounds): New.
23326 (-fchkp-narrow-to-innermost-array): New.
23327 (-fchkp-optimize): New.
23328 (-fchkp-use-fast-string-functions): New.
23329 (-fchkp-use-nochk-string-functions): New.
23330 (-fchkp-use-static-bounds): New.
23331 (-fchkp-use-static-const-bounds): New.
23332 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23333 (-fchkp-check-read): New.
23334 (-fchkp-check-write): New.
23335 (-fchkp-store-bounds): New.
23336 (-fchkp-instrument-calls): New.
23337 (-fchkp-instrument-marked-only): New.
23338 (-fchkp-use-wrappers): New.
23339 (-static-libmpx): New.
23340 (-static-libmpxwrappers): New.
23342 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23344 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23345 (CHKP_SPEC): Add wrappers library.
23346 * c-family/c.opt (static-libmpxwrappers): New.
23348 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23350 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23351 (LIBMPX_SPEC): New.
23353 * gcc.c (CHKP_SPEC): New.
23354 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23355 * c-family/c.opt (static-libmpx): New.
23357 2015-03-10 Richard Biener <rguenther@suse.de>
23359 PR middle-end/44563
23360 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23362 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23363 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23364 (cgraph_add_edge_to_call_site_hash): Likewise.
23365 (cgraph_node::get_edge): Likewise.
23366 (cgraph_edge::set_call_stmt): Likewise.
23367 (cgraph_edge::remove_caller): Likewise.
23369 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23371 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23372 (callee_saved_gpr_regs_size): ... this.
23373 (callee_saved_regs_first_regno): Rename to ...
23374 (callee_saved_first_gpr_regno): ... this.
23375 (callee_saved_regs_last_regno) Rename to ...
23376 (callee_saved_last_gpr_regno): ... this.
23377 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23379 (nds32_initial_elimination_offset): Likewise.
23380 (nds32_expand_prologue): Likewise.
23381 (nds32_expand_epilogue): Likewise.
23382 (nds32_expand_prologue_v3push): Likewise.
23383 (nds32_expand_epilogue_v3pop): Likewise.
23384 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23385 Adjust renamed variables.
23386 (nds32_output_stack_pop): Likewise.
23388 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23390 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23393 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23395 PR rtl-optimization/65321
23396 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23398 * var-tracking.c (use_narrower_mode): Likewise.
23400 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23402 PR tree-optimization/65355
23403 * varasm.c (notice_global_symbol): Do not produce RTL.
23404 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23406 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23407 check for section anchors.
23409 2015-03-10 Alan Modra <amodra@gmail.com>
23412 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23413 to be single-arch by default. Set cpu_is_64bit for powerpc64
23414 given --with-cpu=native.
23415 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23416 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23418 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23419 rs6000_isa_flags rather than TARGET_64BIT.
23421 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23422 Kaz Kojima <kkojima@gcc.gnu.org>
23424 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23426 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23429 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23430 on a TREE_BINFO, instead use BINFO_TYPE.
23432 2015-03-09 Richard Biener <rguenther@suse.de>
23434 PR middle-end/65270
23435 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23436 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23437 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23438 of that. When comparing dereferences compare alignment.
23439 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23441 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23443 * ipa-inline-analysis.c (check_callers): Check
23444 node->can_remove_if_no_direct_calls_and_refs_p.
23445 (growth_likely_positive): Reorganize to call
23446 can_remove_if_no_direct_calls_p later.
23447 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23448 will_be_removed_from_program_if_no_direct_calls_p): Add
23449 will_inline parameter.
23450 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23451 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23452 Handle inliner case correctly.
23454 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23456 PR tree-optimization/63743
23457 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23458 had its definition forwarded by TER.
23460 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23463 * ipa-utils.h (types_odr_comparable): Add strict argument.
23464 * ipa-devirt.c: Fix whitespace;
23465 (odr_hasher): Remove.
23466 (odr_name_hasher, odr_vtable_hasher): New hashers.
23467 (can_be_name_hashed_p): New predicate.
23468 (hash_type_name): remove.
23469 (hash_odr_name): New.
23470 (odr_name_hasher::hash): new.
23471 (can_be_vtable_hashed_p): New.
23472 (hash_odr_vtable): New.
23473 (odr_vtable_hasher::hash): New.
23474 (types_same_for_odr): Add strict parameter.
23475 (types_odr_comparable): Likewise.
23476 (odr_name_hasher::equal): New.
23477 (odr_vtable_hasher::equal): New.
23478 (odr_name_hasher::remove): New.
23479 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23480 (odr_vtable_hash_type): New.
23481 (odr_vtable_hash): New.
23482 (odr_subtypes_equivalent_p): Do strict comparsion.
23483 (add_type_duplicate): Merge type names; cleanup; avoid type
23485 (register_odr_type): Initialize vtable hash.
23486 (build_type_inheritance_graph): Likewise
23487 (get_odr_type): Reorg to use two hashes.
23488 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23490 (ipa_devirt): Dump type_inheritance_graph.
23491 (types_same_for_odr): Add strict mode.
23493 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23496 * cgraph.h (symtab_node): Add definition_alignment,
23497 can_increase_alignment_p and increase_alignment.
23498 * symtab.c (symtab_node::can_increase_alignment_p,
23499 increase_alignment_1, symtab_node::increase_alignment,
23500 symtab_node::definition_alignment): New.
23501 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23502 can_increase_alignment_p.
23503 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23504 * tree-vect-stmts.c (ensure_base_align): Likewise.
23505 * varasm.c (function_section_1): Use definition_alignment.
23506 (assemble_start_function): Likewise.
23507 (emit_local): likewise.
23508 (build_constant_desc): Likewsie.
23509 (output_constant_def_contents): Likewise.
23510 (place_block_symbol): Likewise.
23511 (output_object_block): Likewise.
23513 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23516 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23517 when outputting debug.
23519 2015-03-07 Marek Polacek <polacek@redhat.com>
23520 Martin Uecker <uecker@eecs.berkeley.edu>
23523 * doc/invoke.texi: Update description of -fsanitize=bounds.
23525 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23527 * tree-ssa-phiopt.c (neg_replacement): Remove.
23528 (tree_ssa_phiopt_worker): Remove negate optimization.
23530 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23533 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23535 2015-03-06 Richard Biener <rguenther@suse.de>
23537 PR middle-end/64928
23538 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23539 and liveout_obstack members.
23540 (calculate_live_on_exit): Remove.
23541 (calculate_live_ranges): Change declaration.
23542 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23543 (new_tree_live_info): Adjust.
23544 (calculate_live_ranges): Delete livein when not wanted.
23545 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23546 Deal with partly deleted live info.
23547 (loe_visit_block): Remove temporary bitmap by using
23548 bitmap_ior_and_compl_into.
23549 (live_worklist): Adjust accordingly.
23550 (calculate_live_on_exit): Make static.
23551 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23552 we do not need livein.
23554 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23556 * real.c (real_from_string): Fix typo in assertion.
23558 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23560 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23563 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23565 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23567 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23570 * lra-assigns.c (find_hard_regno_for): Rename to
23571 find_hard_regno_for_1. Add a new parameter.
23572 (find_hard_regno_for): New function using find_hard_regno_for_1.
23574 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23576 PR rtl-optimization/65067
23577 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23578 strict volatile bitfield handling.
23580 2015-03-05 Martin Liska <mliska@suse.cz>
23583 * ipa-icf.c (sem_variable::equals): Compare variables types.
23585 2015-03-05 Richard Henderson <rth@redhat.com>
23588 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23589 correctly check weak symbol binding.
23591 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23593 PR middle-end/65315
23594 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23597 2015-03-05 Martin Liska <mliska@suse.cz>
23599 * ipa-inline.c (inline_small_functions): Set default value to
23600 prevent warning during bootstrap.
23601 * tree.h: Add pragma guard that ignores false positives during
23604 2015-03-05 Richard Biener <rguenther@suse.de>
23606 PR tree-optimization/65310
23607 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23608 Properly preserve alignment of the base of the access.
23610 2015-03-05 Richard Biener <rguenther@suse.de>
23613 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23614 Compare dependence info.
23616 2015-03-05 Richard Biener <rguenther@suse.de>
23618 PR middle-end/65233
23619 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23621 (walk_ssa_copies): Revert last chage. Instead do not walk
23622 SSA names registered for SSA update.
23624 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23627 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23628 vtable references for their containing type.
23629 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23630 and type attributes.
23632 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23634 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23635 before negating it.
23636 * stor-layout.c (finalize_record_size): Revert latest change.
23638 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23640 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23642 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23644 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23645 for correct comdat handling.
23646 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23648 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23649 (used_from_object_file_p_worker): Remove.
23650 (cgraph_node::only_called_directly_or_alised): Add
23651 used_from_object_file_p.
23652 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23653 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23654 can_remove_if_no_direct_calls_and_refs_p.
23656 2015-03-04 Nick Clifton <nickc@redhat.com>
23658 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23659 General register class.
23660 * config/rl78/rl78-real.md: Replace general register constraints
23661 with real+virtual register constraints.
23663 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23665 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23666 from checking for -mhtm option.
23668 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23670 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23671 (struct ipa_sra_check_caller_data): Add has_thunk field.
23672 (ipa_sra_check_caller): Check for thunk.
23673 (ipa_sra_preliminary_function_checks): Give up on function with
23675 (ipa_early_sra): Use call_for_symbol_and_aliases.
23677 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
23680 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
23681 called for __stack_chk_guard symbol.
23683 2015-03-03 DJ Delorie <dj@redhat.com>
23685 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
23687 (*addhi3_real): Likewise.
23688 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
23689 pattern to match incrementing memory.
23690 * config/rl78/predicates.md (rl78_1_2_operand): New.
23691 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
23692 it's the same and only mem.
23693 (rl78_alloc_physical_registers_op2): If there's effectively only
23694 one MEM, transcode it into HL.
23695 (rl78_far_p): Reject addresses that aren't legitimate.
23697 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23699 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
23702 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
23704 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23706 Implement call0 ABI for xtensa
23707 * config/xtensa/constraints.md ("a" constraint): Include stack
23708 pointer in case of call0 ABI.
23709 ("q" constraint): Make empty in case of call0 ABI.
23710 ("D" constraint): Include stack pointer in case of call0 ABI.
23711 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
23712 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
23714 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
23716 (xtensa_regno_to_class): Make it a local variable in the
23717 function xtensa_regno_to_class.
23718 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
23719 macro, function prototype and implementation.
23720 (reg_nonleaf_alloc_order): Make it a local variable in the
23721 function order_regs_for_local_alloc.
23722 (xtensa_conditional_register_usage): New function.
23723 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23724 (xtensa_valid_move): Allow direct moves to stack pointer
23725 register in call0 ABI.
23726 (xtensa_setup_frame_addresses): Only spill register windows in
23728 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23729 call0 ABI respectively.
23730 (xtensa_function_arg_1): Only mark a7 register for copying in
23732 (xtensa_call_save_reg): New function.
23733 (compute_frame_size): Add space for callee saved register
23734 storage to the frame size in call0 ABI.
23735 (xtensa_expand_prologue): Generate code to set up stack frame
23736 and save callee-saved registers in call0 ABI.
23737 (xtensa_expand_epilogue): New function.
23738 (xtensa_set_return_address): New function.
23739 (xtensa_return_addr): Calculate return address in call0 ABI.
23740 (xtensa_builtin_saveregs): Only mark a7 register for copying and
23741 emit copying code in windowed ABI.
23742 (order_regs_for_local_alloc): Add preferred register allocation
23743 order for non-leaf function in call0 ABI.
23744 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23745 (xtensa_asm_trampoline_template): Add trampoline generation for
23747 (xtensa_trampoline_init): Add trampoline initialization for
23749 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
23751 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
23752 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
23753 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
23754 ABI call-used registers.
23755 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
23756 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
23758 (REG_CLASS_CONTENTS): Include all registers into the preferred
23759 reload registers set, adjust the set in the
23760 xtensa_conditional_register_usage.
23761 (xtensa_regno_to_class): Drop variable declaration.
23762 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
23764 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
23766 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
23767 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
23768 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
23769 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23770 location in call0 ABI.
23771 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23772 stack adjustment size when handling exception.
23773 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23774 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23776 ("return" pattern): Generate ret.n/ret in call0 ABI.
23777 ("epilogue" pattern): Expand epilogue.
23778 ("nonlocal_goto" pattern): Use default in call0 ABI.
23779 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23780 emit eh_set_a0_* depending on ABI.
23781 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23782 ("eh_set_a0_call0", "blockage"): New patterns.
23784 2015-03-03 Martin Liska <mliska@suse.cz>
23787 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23789 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23792 * config/rs6000/rs6000-tables.opt: Regenerate table.
23794 2015-03-03 Renlin Li <renlin.li@arm.com>
23796 * doc/md.texi (@item ^): Change ? into ^.
23798 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
23800 * doc/tm.texi: Regenerated.
23802 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23804 * builtins.c (expand_builtin_return_addr): Add
23805 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23806 surrounding #ifdef.
23807 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23809 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23811 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23813 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23816 2015-03-03 Martin Jambor <mjambor@suse.cz>
23817 Eric Botcazou <ebotcazou@adacore.com>
23819 * tree-sra.c (ipa_sra_check_caller_data): New type.
23820 (has_caller_p): Removed.
23821 (ipa_sra_check_caller): New function.
23822 (ipa_sra_preliminary_function_checks): Use it.
23824 2015-03-03 Martin Liska <mliska@suse.cz>
23826 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23827 instead of if branch.
23829 2015-03-03 Martin Liska <mliska@suse.cz>
23832 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23834 2015-03-23 Jeff Law <law@redhat.com>
23836 PR tree-optimization/65241
23837 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23838 hash table if INSERT is true.
23840 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23843 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23845 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23848 * config/avr/avr.c (context.h, tree-pass.h): Include them.
23849 (avr_pass_data_recompute_notes): New static variable.
23850 (avr_pass_recompute_notes): New class.
23851 (avr_register_passes): New static function.
23852 (avr_option_override): Call it.
23854 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23856 Fix various problems with specs file generation.
23859 * config.gcc (extra_gcc_objs) [avr]: Remove.
23860 * config/avr/driver-avr.c: Remove file.
23861 * config/avr/t-avr (driver-avr.o): Remove rule.
23862 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23863 INCLUDES to build. Depend on TM_H.
23864 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
23865 build warnings. Fix non-matching types and non-existing %-codes.
23867 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23868 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23869 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23870 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23871 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23872 (LIBGCC_SPEC): Remove definitions.
23874 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23876 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23877 to create a register in testing mode.
23879 2015-03-03 Martin Liska <mliska@suse.cz>
23880 Jan Hubicka <hubicka@ucw.cz>
23883 * cgraph.c (cgraph_node::has_thunk_p): New function.
23884 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23885 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23886 (sem_function::merge): Assert is changed.
23888 2015-03-03 Martin Liska <mliska@suse.cz>
23889 Martin Jambor <mjambor@suse.cz>
23892 * ipa-icf.c (sem_item_optimizer::execute): Change function
23893 return value to boolean.
23894 (sem_item_optimizer::merge_classes): Likewise.
23895 (ipa_icf_driver): Return TODO_remove_functions in case there's
23896 a merge operation processed.
23897 * ipa-icf.h: Change function return value to boolean.
23899 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23902 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23903 processor type for 64-bit little endian PowerPC.
23905 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23906 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
23907 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
23908 printing built-in mask so it does not pass NULL pointers.
23910 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23913 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
23916 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23917 !ISA_HAS_FP_CONDMOVE.
23919 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
23921 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23924 2015-03-02 Ulrich Drepper <drepper@gmail.com>
23926 * doc/invoke.texi (Options for Code Generation Conventions):
23927 Fix URL of DSO paper.
23929 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23932 * ipa-inline.c (check_callers): Looks for recursion.
23933 (inline_to_all_callers): Give up on uninlinable or recursive edges.
23934 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23935 summary of inline clones.
23936 (do_estimate_growth_1): Fix recursion check.
23938 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23941 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23944 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23945 Aldy Hernandez <aldyh@redhat.com>
23948 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23949 when checking TYPE_BINFO.
23951 2015-03-02 Richard Biener <rguenther@suse.de>
23954 * ipa-icf-gimple.c: Include builtins.h.
23955 (func_checker::compare_memory_operand): Compare base alignment.
23957 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23960 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23961 are never passed by reference.
23963 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23966 * tree-chkp.c (chkp_check_lower): Don't check against
23967 zero bounds for already instrumented functions.
23968 (chkp_check_upper): Likewise.
23969 (chkp_fini): Clean pass local data to avoid wrong reusage.
23971 2015-02-28 Martin Liska <mliska@suse.cz>
23972 Jan Hubicka <hubicka@ucw.cz>
23974 * ipa-icf.c (sem_variable::equals): Improve debug output;
23975 get variable constructor.
23976 (sem_variable::parse): Do not filter out too early; give up on
23977 volatile and register vars.
23978 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23980 * ipa-icf.h (sem_variable::init): Do not set ctor.
23981 (sem_variable::ctor): Remove.
23983 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
23985 PR middle-end/65233
23986 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23988 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23990 * ipa-icf.c: Include stor-layout.h
23991 (sem_function::compare_cgraph_references): Rename to ...
23992 (sem_item::compare_cgraph_references): ... this one.
23993 (sem_variable::equals_wpa): New function
23994 (sem_variable::equals): Do not check stuff already verified by
23996 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23997 * ipa-icf.h (sem_item): Add compare_cgraph_references.
23998 (sem_function): Remove compare_cgraph_references.
23999 (sem_variable): Turns equals_wpa into non-inline.
24001 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24003 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24004 (sem_item::add_expr): New function.
24005 (sem_function::hash_stmt): Handle operands of most statements.
24006 (sem_variable::get_hash): Hash the actual constructor.
24007 * ipa-icf.h (sem_item): Add add_expr.
24008 (sem_function): Update prototype of hash_stmt
24010 2015-02-28 Martin Liska <mliska@suse.cz>
24011 Jan Hubicka <hubicka@ucw.cz>
24014 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24016 (func_checker::compare_variable_decl): Skip symtab vars.
24017 (func_checker::compare_cst_or_decl): Update.
24018 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24019 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24020 use correct symtab predicates.
24021 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24022 (sem_variable::parse): Update comment.
24023 (sem_item_optimizer::build_graph): Consider ultimate aliases
24026 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24028 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24031 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24033 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24034 (sem_variable::merge) Likewise.
24036 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24038 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24039 target; also match flag_ipa_devirt.
24041 2015-03-01 Martin Liska <mliska@suse.cz>
24042 Jan Hubicka <hubicka@ucw.cz>
24044 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24045 Validate variable alignment.
24046 * ipa-icf.c (sem_function::equals_private): Be more precise
24047 about non-common function attributes.
24048 (sem_variable::equals): Likewise.
24050 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24053 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24054 across COMDAT group boundary.
24056 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24059 * ipa-icf.c (clear_decl_rtl): New function.
24060 (sem_function::merge): Clear RTL before forming alias.
24061 (sem_variable::merge): Clear RTL before forming alias.
24063 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24066 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24068 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24070 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24073 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24075 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24076 a typo in the description.
24078 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24081 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24082 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24083 * lra-constraints.c: Include "params.h".
24084 (EBB_PROBABILITY_CUTOFF): Use
24085 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24086 (lra_inheritance): Use '<' instead of '<=' for
24087 EBB_PROBABILITY_CUTOFF.
24088 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24091 2015-02-27 Martin Liska <mliska@suse.cz>
24093 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24094 vector length condition.
24096 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24098 * doc/extend.texi (x86 transactional memory intrinsics):
24099 Reorganize discussion of _xbegin. Clarify that the return
24100 value is a bit mask. Expand example and move to end of section.
24102 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24103 Aldy Hernandez <aldyh@redhat.com>
24105 PR rtl-optimization/65220
24106 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24108 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24111 * lra-remat.c (update_scratch_ops): New.
24112 (do_remat): Call it.
24113 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24114 (remove_scratches): ... here.
24115 * lra-int.h (lra_register_new_scratch_op): New prototype.
24117 2015-02-27 Marek Polacek <polacek@redhat.com>
24120 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24121 -Wformat-signedness anymore.
24123 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24125 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24127 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24129 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24131 * config/s390/s390.c (enum s390_builtin):
24132 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24133 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24134 (s390_init_builtins): Generate new builtin functions.
24135 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24136 (s390_sfpc, s390_efpc): New pattern definitions.
24138 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24140 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24141 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24142 (s390_builtin_decls): New array.
24143 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24144 (s390_builtin_decl): New function.
24145 (TARGET_BUILTIN_DECL): Define macro.
24147 2015-02-27 Richard Biener <rguenther@suse.de>
24149 PR middle-end/63175
24150 * builtins.c (get_object_alignment_2): Make sure to re-apply
24151 the ANDed mask after recursing to its operand gets us a new
24152 misalignment bit position.
24154 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24155 Martin Liska <mliska@suse.cz>
24158 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24159 Use address_matters_p.
24160 (redirect_all_callers, set_addressable): New functions.
24161 (sem_function::merge): Reorganize and fix merging issues.
24162 (sem_variable::merge): Likewise.
24163 (sem_variable::compare_sections): Remove.
24164 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24166 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24168 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24170 (address_matters_1): New function.
24171 (symtab_node::address_matters_p): New function.
24172 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24173 check for merged flag.
24174 * cgraph.h (address_matters_p): Declare.
24175 (symtab_node::address_taken_from_non_vtable_p): Remove.
24176 (symtab_node::address_can_be_compared_p): New method.
24177 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24178 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24180 (comdat_can_be_unshared_p_1) Use address_matters_p.
24181 (update_vtable_references): Fix formating.
24182 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24183 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24184 * cgraphclones.c: Preserve merged and icf_merged flags.
24186 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24188 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24189 (Label Attributes): Likewise.
24190 (Cilk Plus Builtins): Likewise.
24191 (ARC SIMD Built-in Functions): Likewise.
24192 (ARM C Language Extensions (ACLE)): Likewise.
24193 (PowerPC Built-in Functions): Likewise.
24194 (PowerPC Hardware Transactional Memory Built-in Functions):
24197 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24199 PR tree-optimization/65216
24200 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24201 new stmt and new SSA_NAME for lhs whenever the arguments have
24202 changed and weren't just swapped. Fix comment typo.
24204 PR tree-optimization/65215
24205 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24206 for PDP endian targets.
24207 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24208 Fix up formatting issues.
24209 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24210 size is smaller than the original, adjust MEM_REF offset by the
24211 difference of sizes. Use is_gimple_mem_ref_addr instead of
24212 is_gimple_min_invariant test to avoid adding address temporaries.
24214 2015-02-26 Martin Liska <mliska@suse.cz>
24215 Jan Hubicka <hubicka@ucw.cz>
24218 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24219 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24220 (sem_item_optimizer::process_cong_reduction): Include division by
24221 sensitive references.
24222 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24223 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24224 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24226 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24229 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24231 * config/avr/avr.c: Same.
24232 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24233 Refuse any constant address not in 0..0xbf.
24234 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24235 tiny_valid_direct_memory_access_range from insn conditions.
24236 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24238 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24241 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24242 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24243 * config/sh/predicates.md (const_logical_operand): New predicate.
24244 * config/sh/sh.md: Add new peephole2 patterns.
24246 2015-02-26 Marek Polacek <polacek@redhat.com>
24249 * ipa-inline.c (early_inliner): Recompute inline parameters.
24251 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24254 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24255 instructions with TImode operands are included in the analysis.
24257 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24259 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24260 of an EDGE_FSM_THREAD.
24262 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24264 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24266 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24269 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24271 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24273 PR tree-optimization/65048
24274 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24275 (thread_through_all_blocks): Call valid_jump_thread_path.
24276 Remove invalid FSM jump-thread paths.
24278 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24280 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24281 (ipa_write_optimization_summaries): Likewise.
24282 * tree-streamer.h: Include data-streamer.h.
24283 (streamer_mode_table): Declare extern variable.
24284 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24285 * lto-streamer-out.c (lto_output_init_mode_table,
24286 lto_write_mode_table): New functions.
24287 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24289 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24290 (lto_create_simple_input_block): Add mode_table argument to the
24291 lto_input_block constructors.
24292 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24294 * data-streamer-in.c (string_for_index): Likewise.
24295 * ipa-inline-analysis.c (inline_read_section): Likewise.
24296 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24297 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24298 * lto-streamer-in.c (lto_read_body_or_constructor,
24299 lto_input_toplevel_asms): Likewise.
24300 (lto_input_mode_table): New function.
24301 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24302 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24303 Use bp_pack_machine_mode.
24304 * real.h (struct real_format): Add name field.
24305 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24306 (class lto_input_block): Add mode_table member.
24307 (lto_input_block::lto_input_block): Add mode_table_ argument,
24308 initialize mode_table.
24309 (struct lto_file_decl_data): Add mode_table field.
24310 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24311 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24312 unpack_ts_decl_common_value_fields,
24313 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24314 * tree-streamer.c (streamer_mode_table): New variable.
24315 * real.c (ieee_single_format, mips_single_format,
24316 motorola_single_format, spu_single_format, ieee_double_format,
24317 mips_double_format, motorola_double_format,
24318 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24319 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24320 ibm_extended_format, mips_extended_format, ieee_quad_format,
24321 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24322 decimal_single_format, decimal_double_format, decimal_quad_format,
24323 ieee_half_format, arm_half_format, real_internal_format): Add name
24325 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24327 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24330 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24331 reordering for selective scheduling.
24333 2015-02-26 Terry Guo <terry.guo@arm.com>
24335 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24336 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24337 (arm_arch_no_volatile_ce): Declare new global variable.
24338 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24339 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24340 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24341 (TARGET_NO_VOLATILE_CE): New macro.
24342 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24343 volatile memory access in IT block
24345 2015-02-25 Kai Tietz <ktietz@redhat.com>
24347 PR tree-optimization/61917
24348 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24349 that reduc_def_stmt is null.
24351 2015-02-25 Martin Liska <mliska@suse.cz>
24353 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24354 hard register variables.
24356 2015-02-25 Kai Tietz <ktietz@redhat.com>
24359 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24360 (symtab::noninterposable_alias): Likewise.
24362 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24365 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24367 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24369 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24372 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24373 as split condition; force split via '#' in output pattern.
24375 2015-02-25 Richard Biener <rguenther@suse.de>
24376 Kai Tietz <ktietz@redhat.com>
24378 PR tree-optimization/61917
24379 * tree-vect-loop.c (vectorizable_reduction): Allow
24380 vect_internal_def without reduction to exit graceful.
24382 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24385 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24386 only with NONDEBUG_INSN_P.
24388 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24390 Use variadic macros with avr-log.c.
24392 * config/avr/avr-protos.h (avr_vdump): New prototype.
24393 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24394 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24395 * config/avr/avr-log.c: Adjust comments.
24396 (avr_vdump): New function.
24397 (avr_vadump): Pass caller as 2nd argument instead of format string.
24398 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24399 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24401 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24404 * target.def (target_option_stream_in): New target hook.
24405 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24406 targetm.target_option.post_stream_in if non-NULL.
24407 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24408 * doc/tm.texi: Updated.
24409 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24411 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24413 2015-02-24 Jeff Law <law@redhat.com>
24416 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24417 of operand 0 and operand 2.
24418 (zero_cost_loop_end, loop_end): Similarly.
24420 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24422 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24425 2015-02-24 DJ Delorie <dj@redhat.com>
24427 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24428 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24429 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24430 instead of hardcoding SImode.
24432 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24434 * omp-low.c (create_omp_child_function): Tag entrypoint
24435 functions with a special attribute.
24437 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24440 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24442 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24444 PR rtl-optimization/65123
24445 * lra-remat.c (operand_to_remat): Check hard regs in insn
24448 2015-02-24 Nick Clifton <nickc@redhat.com>
24450 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24453 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24456 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24457 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24458 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24459 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24460 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24461 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24462 (BUILT_IN_GOACC_PARALLEL): Specify as
24463 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24464 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24465 * builtin-types.def
24466 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24467 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24468 Remove function types.
24469 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24470 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24471 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24472 New function types.
24474 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24476 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24478 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24480 PR tree-optimization/65170
24481 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24482 if val[1] < 0, clear also val[2] and return 3.
24484 2015-02-24 Alan Modra <amodra@gmail.com>
24487 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24488 when *base is a reg. Handle nested plus addresses. Simplify
24491 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24493 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24494 use natural alignment when optimizing for size.
24496 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24499 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24500 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24501 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24503 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24506 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24507 too big for a wide_int. Implement missing wrapping operation.
24509 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24512 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24513 instead of const_int 4294901760.
24515 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24517 * config/avr/t-avr: Fix typo in comment.
24519 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24521 * doc/rtl.texi (fma): Clarify documentation.
24523 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24526 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24527 over input_location.
24529 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24531 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24532 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24533 restrict alignments to absolute_biggest_alignment.
24534 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24536 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24537 * doc/tm.texi: Regenerate.
24538 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24540 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24543 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24545 2015-02-20 Richard Biener <rguenther@suse.de>
24547 PR tree-optimization/65136
24548 * tree-ssa-propagate.c: Include cfgloop.h.
24549 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24550 arguments with constants.
24552 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24553 Martin Liska <mliska@suse.cz>
24556 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24557 don't try to create_thunk if stdarg_p. If
24558 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24559 redirect_callers if possible.
24560 (sem_item_optimizer::execute): Call unregister_hooks here...
24561 (ipa_icf_driver): ... instead of here.
24563 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24565 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24566 Mark operand 0 as earlyclobber in 2nd alternative.
24567 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24568 Write negated shift amount into QI lowpart operand 0 and use it
24570 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24572 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24574 * cgraph.h (clone_function_name_1): Declare.
24575 * cgraphclones.c (clone_function_name_1): New function.
24576 (clone_function_name): Use it.
24577 * lto-partition.c: Include "stringpool.h".
24578 (must_not_rename, maybe_rewrite_identifier)
24579 (validize_symbol_for_target): New static functions.
24580 (privatize_symbol_name): Use must_not_rename.
24581 (promote_symbol): Call validize_symbol_for_target.
24582 (lto_promote_cross_file_statics): Likewise.
24583 (lto_promote_statics_nonwpa): Likewise.
24585 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24588 * config/avr/avr.md (pushhi_insn): New insn.
24589 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24591 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24592 Jakub Jelinek <jakub@redhat.com>
24594 * tree-streamer.c (preload_common_nodes): Don't preload
24595 TI_VA_LIST* for offloading.
24596 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24599 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24601 * config/pa/pa.c (pa_emit_move_sequence): Always force
24602 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24605 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24606 (TARGET_ASM_RELOC_RW_MASK): Define.
24607 (pa_cannot_force_const_mem): Revert previous change.
24609 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24610 Jan Hubicka <hubicka@ucw.cz>
24613 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24614 across jump functions.
24616 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24618 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24620 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24622 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24624 2015-02-19 Richard Henderson <rth@redhat.com>
24626 PR middle-end/65074
24627 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24628 test DECL_EXTERNAL independent of symtab_node.
24630 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24633 * varpool.c (varpool_node::get_constructor): Return early
24634 if this->lto_file_data is NULL.
24636 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24638 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24639 (rank_for_schedule_debug): Update.
24640 (ready_sort): Make static. Move sorting logic to ...
24641 (ready_sort_debug, ready_sort_real): New static functions.
24642 (schedule_block): Sort both debug insns and real insns in preparation
24643 for ready list trimming. Improve debug output.
24644 * sched-int.h (ready_sort): Remove global declaration.
24646 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24648 * ipa-icf.c (sem_function::equals_private): Adjust.
24649 (sem_function::bb_dict_test): Take a vec<int> * instead of
24651 * ipa-icf.h (bb_dict_test): Likewise.
24653 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24655 PR gcov-profile/64634
24656 * tree-eh.c (frob_into_branch_around): Fix up typos
24657 in function comment.
24658 (lower_catch): Put eh_seq resulting from EH lowering of
24659 the cleanup sequence after the cleanup rather than before it.
24661 2015-02-18 Tom de Vries <tom@codesourcery.com>
24663 * common.opt (fstdarg-opt): New option.
24664 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24665 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24666 (@item -fstdarg-opt): New item.
24668 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
24671 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24672 for common symbols.
24674 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24676 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
24678 (ALL_HOST_OBJS): Add mkoffload.o.
24679 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
24681 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
24683 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
24684 (compare_virtual_tables): Be smarter about skipping typeinfos;
24685 do sane output on virtual table table mismatch.
24686 (warn_odr): Be ready for forward declarations of enums;
24687 output sane info on base mismatch and virtual table mismatch.
24688 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
24689 when only one type is polymorphic.
24690 (get_odr_type): Fix hashtable corruption.
24691 (dump_odr_type): Dump mangled names.
24693 2015-02-18 Richard Biener <rguenther@suse.de>
24695 PR tree-optimization/65063
24696 * tree-predcom.c (determine_unroll_factor): Return 1 if we
24697 have replaced looparound PHIs.
24699 2015-02-18 Martin Liska <mliska@suse.cz>
24701 * lto-streamer.c (lto_streamer_init): Encapsulate
24702 streamer_check_handled_ts_structures with checking macro.
24704 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24707 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
24708 section if !implicit_section.
24709 (cgraph_node::create_version_clone_with_body): Likewise.
24710 * trans-mem.c (ipa_tm_create_version): Likewise.
24712 2015-02-18 Richard Biener <rguenther@suse.de>
24714 PR tree-optimization/62217
24715 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
24718 2015-02-18 Marek Polacek <polacek@redhat.com>
24721 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24722 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24723 is in range [-16K, -1]. Don't issue run-time error if
24724 (ptr > ptr + offset).
24726 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
24728 * doc/install.texi (nvptx-*-none): New section.
24729 * doc/invoke.texi (Nvidia PTX Options): Likewise.
24730 * config/nvptx/nvptx.opt: Update.
24732 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24733 (access_check): New functions, copied from
24734 config/i386/intelmic-mkoffload.c.
24735 (main): For non-installed testing, look in all COMPILER_PATHs for
24738 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24740 2015-02-18 Andrew Pinski <apinski@cavium.com>
24741 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24743 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24744 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24746 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24748 * ipa-visibility.c (function_and_variable_visibility): Only
24749 check locality if node is not already local.
24750 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24751 call_for_symbol_and_aliases instead of
24752 call_for_symbol_thunks_and_aliases.
24753 (ipa_inline): Likewise.
24754 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24755 first walk aliases.
24756 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24757 call_for_symbol_and_aliases.
24758 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24759 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24760 (ipa_propagate_frequency): Update.
24761 (ipa_profile): Add opt_for_fn gueards.
24763 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24765 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
24766 * doc/invoke.texi (SH options): Document it.
24767 * config/sh/sh.c (sh_insn_length_adjustment): Check
24768 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24770 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
24772 * common.opt (fipa-cp-alignment): New.
24773 * ipa-cp.c (ipcp_store_alignment_results): Check
24774 flag_ipa_cp_alignment.
24775 * opts.c (default_options_table): Enable -fipa-cp-alignment for
24777 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24778 * doc/invoke.texi: Document -fipa-cp-alignment.
24780 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24783 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24784 to nil. Adjust comments.
24786 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24788 * ipa-visibility.c (function_and_variable_visibility): Only
24789 check locality if node is not already local.
24790 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24791 call_for_symbol_and_aliases instead of
24792 call_for_symbol_thunks_and_aliases.
24793 (ipa_inline): Likewise.
24794 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24795 first walk aliases.
24796 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24797 call_for_symbol_and_aliases.
24798 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24799 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24800 (ipa_propagate_frequency): Update.
24801 (ipa_profile): Add opt_for_fn guards.
24803 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
24805 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24806 skipping of "strange" tokens.
24808 2015-02-17 Jeff Law <law@redhat.com>
24810 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
24813 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
24815 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24816 as forcing a HARD_DEP between instructions, thereby
24817 disallowing rewriting to break dependencies.
24819 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24821 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24822 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24823 variables in boundary that have no inlitalizer encoded and are
24825 * varasm.c (default_binds_local_p_2): External definitions do not
24826 count as definitions here.
24828 2015-02-16 Jeff Law <law@redhat.com>
24830 PR tree-optimization/64823
24831 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24833 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24834 threading through blocks with PHIs, but no statements.
24835 (thread_through_normal_block): Distinguish between blocks where
24836 we did not process all the statements and blocks with no statements.
24838 2015-02-16 Jakub Jelinek <jakub@redhat.com>
24839 James Greenhalgh <james.greenhalgh@arm.com>
24842 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24843 section if not linkonce. Fix up formatting.
24844 (cgraph_node::create_version_clone_with_body): Copy section.
24845 * trans-mem.c (ipa_tm_create_version): Likewise.
24847 2015-02-16 Richard Biener <rguenther@suse.de>
24849 PR tree-optimization/65077
24850 * tree-ssa-structalias.c (get_constraint_for_1): Handle
24851 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24852 (find_func_aliases): Allow float values to carry pointers again.
24854 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24856 * doc/install.texi (Specific): Reorder targets list to put
24857 aarch64 in alphabetical order. Add a link to aarch64*-*-*
24860 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24861 David Edelsohn <dje.gcc@gmail.com>
24864 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24865 mapping class to external variable or function reference.
24866 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24869 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
24872 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24873 ASM_WEAKEN_DECL if defined.
24875 2015-02-16 Richard Biener <rguenther@suse.de>
24878 * varasm.c (default_file_start): For LTO produced units
24879 emit <artificial> as file directive.
24881 2015-02-16 Richard Biener <rguenther@suse.de>
24883 PR tree-optimization/63593
24884 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24885 stmts and releasing SSA names until...
24886 (execute_pred_commoning): ... after processing all chains.
24888 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24891 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24892 external functions.
24894 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
24896 * doc/bugreport.texi: Adjust section titles throughout the file
24897 to use "Title Case".
24898 * doc/extend.texi: Likewise.
24899 * doc/gcov.texi: Likewise.
24900 * doc/implement-c.texi: Likewise.
24901 * doc/implement-cxx.texi: Likewise.
24902 * doc/invoke.texi: Likewise.
24903 * doc/objc.texi: Likewise.
24904 * doc/standards.texi: Likewise.
24905 * doc/trouble.texi: Likewise.
24907 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
24909 * cgraph.h (symtab_node::has_aliases_p): Simplify.
24910 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24911 * tree.c (lookup_binfo_at_offset): Make static.
24912 (get_binfo_at_offset): Do not shadow offset; add explanatory
24915 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
24917 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24918 for all floading point loads and stores except those using a register
24920 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24923 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24925 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24926 (do_estimate_growth_1): Record if any uninlinable edge was seen.
24927 (estimate_growth): Handle uninlinable edges correctly.
24928 (check_callers): New.
24929 (growth_likely_positive): Handle aliases correctly.
24931 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24933 * ipa-chkp.c: Use iterate_direct_aliases.
24934 * symtab.c (resolution_used_from_other_file_p): Move inline.
24935 (symtab_node::create_reference): Fix formating.
24936 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24937 (symtab_node::iterate_reference): Move inline.
24938 (symtab_node::iterate_referring): Move inline.
24939 (symtab_node::iterate_direct_aliases): Move inline.
24940 (symtab_node::used_from_object_file_p_worker): Inline into ...
24941 (symtab_node::used_from_object_file_p): ... this one; move inline.
24942 (symtab_node::call_for_symbol_and_aliases): Move inline;
24943 use iterate_direct_aliases.
24944 (symtab_node::call_for_symbol_and_aliases_1): New method.
24945 (cgraph_node::call_for_symbol_and_aliases): Move inline;
24946 use iterate_direct_aliases.
24947 (cgraph_node::call_for_symbol_and_aliases_1): New method.
24948 (varpool_node::call_for_node_and_aliases): Rename to ...
24949 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24950 use iterate_direct_aliases.
24951 (varpool_node::call_for_symbol_and_aliases_1): New method.
24952 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24953 (ipa_discover_readonly_nonaddressable_var): Update.
24954 * ipa-devirt.c: Fix formating.
24955 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24957 (cgraph_node::call_for_symbol_and_aliases): Move inline.
24958 (cgraph_node::call_for_symbol_and_aliases_1): New function..
24959 * cgraph.h (used_from_object_file_p_worker): Remove.
24960 (resolution_used_from_other_file_p): Move inline.
24961 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24962 (symtab_node::iterate_reference): Move inline.
24963 (symtab_node::iterate_referring): Move inline.
24964 (symtab_node::iterate_direct_aliases): Move inline.
24965 (symtab_node::used_from_object_file_p_worker): Inline into ...
24966 (symtab_node::used_from_object_file_p): Move inline.
24967 * tree-emutls.c (ipa_lower_emutls): Update.
24968 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24969 (varpool_node::call_for_node_and_aliases): Remove.
24971 2015-02-14 Jakub Jelinek <jakub@redhat.com>
24973 PR tree-optimization/62209
24974 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24975 op == range->exp, insert seq and gimplified code after labels
24976 instead of after the phi.
24978 2015-02-13 Jeff Law <law@redhat.com>
24981 Revert my change for tree-optimization/64823.
24983 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24985 PR tree-optimization/65053
24986 * tree-ssa-phiopt.c (value_replacement): When moving assign before
24987 cond, either reset VR on lhs or set it to phi result VR.
24989 2015-02-13 Jeff Law <law@redhat.com>
24991 PR tree-optimization/64823
24992 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24993 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24994 threading through blocks with PHIs, but no statements.
24995 (thread_through_normal_block): Distinguish between blocks where
24996 we did not process all the statements and blocks with no statements.
24998 PR rtl-optimization/47477
24999 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25000 simplifier to narrow arithmetic.
25002 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25005 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25006 polymorphic call info when type is not known to be preserved.
25008 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25011 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25012 (inline_call): Use it.
25014 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25016 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25017 GOMP_DEVICE_NVIDIA_PTX.
25019 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25022 * stmt.c (emit_case_nodes): Use void_type_node instead of
25023 NULL_TREE as LABEL_DECL type.
25025 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25027 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25029 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25030 symbolic references to data to be forced to constant memory on the
25033 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25035 PR tree-optimization/65002
25036 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25038 * tree-sra.c (some_callers_have_no_vuse_p): New.
25039 (ipa_early_sra): Reject functions whose callers
25040 assume function is read only.
25042 2015-02-13 Richard Biener <rguenther@suse.de>
25045 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25046 for LTO produced CUs.
25048 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25050 PR tree-optimization/64705
25051 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25052 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25053 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25054 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25055 expand_simple_operations.
25057 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25058 Richard Henderson <rth@redhat.com>
25061 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25062 before notice_global_symbol.
25063 (varpool_node::finalize_decl): Likewise.
25064 * varasm.c (default_binds_local_p_2): Rename from
25065 default_binds_local_p_1, add weak_dominate argument. Use direct
25066 returns instead of assigning to local variable. Unify varpool and
25067 cgraph paths via symtab_node. Reject undef weak variables before
25068 testing visibility. Reorder tests for simplicity.
25069 (default_binds_local_p): Use default_binds_local_p_2.
25070 (default_binds_local_p_1): Likewise.
25071 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25073 (default_elf_asm_output_external): Emit visibility when specified.
25075 2015-02-13 Alan Modra <amodra@gmail.com>
25077 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25078 code setting up r11 for out-of-line fp restore.
25080 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25082 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25083 (muser-mode): Likewise.
25085 2015-02-13 Alan Modra <amodra@gmail.com>
25087 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25088 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25090 2015-02-12 David Howells <dhowells@redhat.com>
25092 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25094 * tree-ssa-uninit.c (dump_predicates): Likewise.
25095 * opts.c (print_filtered_help): Likewise.
25097 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25099 * dwarf2out.c (output_die): Use "%s", name instead of name to
25100 avoid -Wformat-security warning.
25102 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25103 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25104 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25105 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25107 2015-02-12 Jason Merrill <jason@redhat.com>
25109 * common.opt (-flifetime-dse): New.
25111 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25114 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25116 PR tree-optimization/65014
25117 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25118 use original second operand of arg0 or arg1 instead of
25119 that adjusted by STRIP_NOPS.
25121 2015-02-11 Jeff Law <law@redhat.com>
25124 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25125 that needs to be queued, just queue it for a single cycle.
25127 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25129 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25130 bodies of thunks; comment on why.
25131 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25132 symbols are extern.
25134 2015-02-11 Richard Henderson <rth@redhat.com>
25137 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25138 regions of __builtin_eh_copy_values.
25140 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25142 PR middle-end/65003
25143 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25144 ultimate alias is MEM with SYMBOL_REF satisfying
25145 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25146 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25148 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25150 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25151 "diagnostic-core.h".
25152 (main): Initialize progname, and call diagnostic_initialize.
25154 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25155 instead of __OPENMP_TARGET__.
25157 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25158 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25159 hard-coding PTX_ID.
25161 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25163 * doc/sourcebuild.texi (pie_enabled): Document.
25165 2015-02-11 Martin Liska <mliska@suse.cz>
25168 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25169 a return value for call to a function that is noreturn.
25171 2015-02-11 Richard Biener <rguenther@suse.de>
25174 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25177 2015-02-11 Andrew Pinski <apinski@cavium.com>
25180 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25181 Change the first argument type to size_type_node and add another
25183 (aarch64_simd_expand_builtin): Handle the new argument to
25184 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25185 print an out when the first two arguments are not
25186 nonzero integer constants.
25187 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25188 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25190 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25193 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25194 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25195 (ix86_set_current_function): Rewritten.
25196 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25197 when creating builtin fndecls.
25199 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25202 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25204 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25205 have no comdat group.
25206 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25207 (lto_output_varpool_node): Always output alias info.
25208 (output_refs): Output refs of boundary aliases, too.
25209 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25210 (output_symtab): Output call eges in thunks in boundary.
25211 (get_alias_symbol): Remove.
25212 (input_node, input_varpool_node): Do not special case weakrefs.
25213 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25214 alias and thunks targets in the boundary; do not take removed symbols
25215 from their comdat groups.
25216 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25217 (cgraph_node::global_info): Remove.
25218 (cgraph_node::rtl_info): Look through aliases and thunks.
25219 * cgrpah.h (global_info): Remove.
25220 (non_local_p): Remove.
25222 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25223 Sandra Loosemore <sandra@codesourcery.com>
25225 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25226 to inline asm. List dialects in proper order.
25228 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25229 Sandra Loosemore <sandra@codesourcery.com>
25231 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25233 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25235 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25236 modified) reference to Solaris.
25238 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25240 * doc/extend.texi (Extended Asm): Fix typos.
25242 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25245 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25247 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25250 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25251 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25252 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25253 * config/sh/constraints.md (Ara, Add): New constraints.
25254 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25256 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25257 atomic_mem_operand_0. Don't use force_reg on the memory address.
25258 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25259 Sra constraint. Convert to insn_and_split. Add workaround for
25261 (atomic_compare_and_swap<mode>_hard): Copy to
25262 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25263 Use atomic_mem_operand_0 predicate.
25264 (atomic_compare_and_swap<mode>_soft_gusa,
25265 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25266 AraAdd constraints.
25267 (atomic_compare_and_swap<mode>_soft_tcb,
25268 atomic_compare_and_swap<mode>_soft_imask,
25269 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25270 atomic_mem_operand_0 predicate and SraSdd constraints.
25271 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25273 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25274 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25275 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25276 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25277 force_reg on the memory address.
25278 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25279 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25280 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25281 atomic_mem_operand_1 predicate and Sra constraint.
25282 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25283 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25284 Use atomic_mem_operand_1 predicate.
25285 (atomic_<fetchop_name><mode>_hard): Copy to
25286 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25287 Use atomic_mem_operand_1 predicate.
25288 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25289 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25290 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25291 insn_and_split. Use atomic_mem_operand_1 predicate.
25292 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25293 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25294 Use atomic_mem_operand_1 predicate.
25295 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25296 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25297 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25298 in generated insn with original mem operand before emitting the insn.
25299 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25300 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25301 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25302 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25303 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25304 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25305 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25306 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25307 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25308 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25309 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25310 atomic_not_fetch<mode>_soft_tcb,
25311 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25312 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25313 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25314 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25316 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25318 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25319 and 3 earlyclobber operands.
25321 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25323 * common.opt (fstack-reuse): Mark as optimization.
25325 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25328 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25330 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25332 PR tree-optimization/64326
25333 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25335 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25337 PR gcov-profile/61889
25338 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25340 2015-02-10 Richard Biener <rguenther@suse.de>
25342 PR tree-optimization/64995
25343 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25344 value we use is final.
25345 (visit_reference_op_store): Always valueize op.
25346 (visit_use): Properly valueize vuses.
25348 2015-02-10 Richard Biener <rguenther@suse.de>
25350 PR tree-optimization/64909
25351 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25352 pass a scalar-stmt count estimate to the cost model.
25353 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25355 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25357 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25358 enabled by default together with var-tracking.
25360 2015-02-10 Nick Clifton <nickc@redhat.com>
25362 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25363 included in previous rl78 commit.
25365 2015-02-10 Richard Biener <rguenther@suse.de>
25367 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25368 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25369 return the bitpack.
25371 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25373 PR gcov-profile/61889
25374 * config.in: regenerate.
25375 * configure.in: Likewise.
25376 * configure.ac: Check for ftw.h.
25377 * gcov-tool.c: Check for ftw.h before using nftw.
25379 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25382 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25383 assert when not in lto mode.
25385 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25387 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25388 initialization/assignment of conflict_size.
25390 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25393 * ipa-cp.c (gather_caller_stats): Skip thunks.
25394 (propagate_constants_topo): Skip aliases.
25396 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25399 * config/sh/sh.c (sh_option_override): Don't change
25400 -freorder-blocks-and-partition to -freorder-blocks even when
25401 unwinding is enabled.
25402 (sh_can_follow_jump): Return false if the followee jump is
25403 a crossing jump when -freorder-blocks-and-partition is specified.
25404 * config/sh/sh.md (*jump_compact_crossing): New insn.
25406 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25407 Kaz Kojima <kkojima@gcc.gnu.org>
25410 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25411 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25412 (sh_can_redirect_branch): Rename to ...
25413 (sh_can_follow_jump): ... this. Constify argument types.
25414 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25415 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25416 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25417 * doc/tm.texi: Regenerate.
25419 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25422 * builtins.c (expand_builtin): Call targetm.expand_builtin
25423 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25425 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25428 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25430 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25433 * ipa-icf.c (set_local): New function.
25434 (sem_function::merge): Use it.
25436 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25438 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25439 (add_type_duplicate): Fix comparison of BINFOs.
25441 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25443 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25444 on getting VOID pointer.
25446 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25449 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25452 2015-02-09 Richard Biener <rguenther@suse.de>
25454 * genmatch.c (replace_id): Copy expr_type.
25456 2015-02-09 Richard Biener <rguenther@suse.de>
25458 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25459 (streamer_write_tree_bitfields): Declare.
25460 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25461 properly unpack padding.
25462 (unpack_value_fields): Inline ...
25463 (streamer_read_tree_bitfields): ... here.
25464 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25465 and properly add padding bits.
25466 (streamer_pack_tree_bitfields): Fold into ...
25467 (streamer_write_tree_bitfields): ... this new function,
25468 exposing the bitpack object.
25469 * lto-streamer-out.c (lto_write_tree_1): Call
25470 streamer_write_tree_bitfields.
25472 2015-02-09 Richard Biener <rguenther@suse.de>
25474 PR tree-optimization/54000
25475 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25476 (struct ivopts_data): Add loop_loc member.
25477 (tree_ssa_iv_optimize_loop): Dump loop location.
25478 (create_new_ivs): Likewise, also dump number of IVs generated.
25480 2015-02-09 Martin Liska <mliska@suse.cz>
25482 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25483 just if not yet registered.
25484 (ipa_icf_generate_summary): Register callgraph hooks.
25486 2015-02-08 Andrew Pinski <apinski@cavium.com>
25488 * config/aarch64/aarch64.c (gty_dummy): Delete.
25490 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25493 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25494 (cgraph_node::local_p): Remove thunk related FIXME.
25496 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25499 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25500 is local and optimized.
25501 (ix86_function_sseregparm): Likewise; also use target's SSE math
25502 settings; error out instead of silently generating wrong code
25504 (init_cumulative_args): Look through aliases.
25506 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25509 * ipa-split.c (execute_split_functions): Split if function has aliases.
25511 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25514 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25515 aliases before trying to expand it.
25516 (cgraph_node::expand_thunk): Fix formating.
25518 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25520 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25521 (Using Assembly Language with C): Expand introduction.
25522 (Basic Asm): Copy-edit. Add more information about uses of
25524 (Extended Asm): Copy-edit. Document new escape syntax and
25526 (Global Reg Vars): Copy-edit.
25527 (Local Reg Vars): Likewise.
25529 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25533 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25534 (DBX_CONTIN_CHAR): Define.
25536 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25537 Brian Rzycki <b.rzycki@samsung.com>
25539 PR tree-optimization/64878
25540 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25541 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25542 Stop recursion at loop phi nodes after having visited a loop phi node.
25544 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25546 * toplev.c (process_options): Change flag_ipa_ra before creating
25547 optimization_{default,current}_node.
25550 * cgraphunit.c (cgraph_node::expand_thunk): If
25551 restype is not is_gimple_reg_type nor the thunk_fndecl
25552 returns aggregate_value_p, set restmp to a temporary variable
25553 instead of resdecl.
25555 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25557 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25559 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25562 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25563 add a general secondary reload handler for SDmode, unless we have
25564 both read/write support for SDmode.
25566 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25568 PR middle-end/64937
25569 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25570 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25571 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25572 1 before, push it to abstract_vec.
25573 (dwarf2out_abstract_function): Adjust caller. Don't call
25574 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25575 DECL_ABSTRACT_P flags for all abstract_vec elts.
25577 2015-02-06 Renlin Li <renlin.li@arm.com>
25579 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25581 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25583 2015-02-06 Jeff Law <law@redhat.com>
25586 * config/h8300/h8300.c (push): New argument "in_prologue".
25587 Pass "in_prologue" along to "F".
25588 (h8300_push_pop): Corresponding changes.
25589 (h8300_expand_prologue): Likewise.
25590 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25592 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25594 PR rtl-optimization/64957
25596 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25597 IOR rather than for AND.
25599 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25602 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25603 of shift-add and (add + shift) operations. Rename local variable.
25605 2015-02-05 Jeff Law <law@redhat.com>
25608 * config/h8300/constraints.md (U): Correctly dectect
25609 "eightbit_data" memory addresses.
25610 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25611 handle (const (plus (symbol_ref (x)))) where x is declared
25612 as an 8-bit data memory address.
25613 * config/h8300/h8300.md (call, call_value): Correctly detect
25614 "funcvec" functions.
25617 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25618 24 to 28 bits for the H8/300.
25620 2015-02-06 Alan Modra <amodra@gmail.com>
25623 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25624 (rs6000_call_aix): Use it.
25626 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25628 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25631 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25633 * config/h8300/constraints.md ("U" constraint): Use strict
25634 variant of REG_OK_FOR_BASE_P after reload has started.
25636 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25638 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25639 define to zero if !TARGET_NEON.
25640 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25642 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25643 Trevor Saunders <tsaunders@mozilla.com>
25646 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25648 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25651 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25652 when removing varpool nodes.
25654 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25657 * varpool.c (varpool_node::remove): Fix order of variables.
25659 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25662 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25663 speculation resolution and key updates.
25665 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25667 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25668 about not letting any speculative edges unupdated.
25670 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25673 * gcov-io.c (gcov_var): Export.
25675 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25677 PR middle-end/64922
25678 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
25679 edges that become speculative.
25681 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25683 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
25684 or DW_LANG_Fortran08.
25685 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
25687 (gen_compile_unit_die): Handle "GNU Fortran2003" and
25688 "GNU Fortran2008" language strings.
25689 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
25690 * langhooks.h (lang_GNU_Fortran): New prototype.
25691 * langhooks.c (lang_GNU_Fortran): New function.
25692 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
25695 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25697 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
25698 (RTX_OK_FOR_OLO10_P): Likewise.
25700 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25702 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
25704 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25706 PR middle-end/64922
25707 * gimple.c: Include gimple-ssa.h.
25708 (maybe_remove_unused_call_args): New function.
25709 * gimple.h (maybe_remove_unused_call_args): Declare.
25710 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
25711 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25712 * gimple-fold.c (gimple_fold_call): Likewise.
25714 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
25716 PR rtl-optimization/64905
25717 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
25718 pointer alignment if it isn't needed.
25720 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25722 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25723 cortex-a72.cortex-a53.
25724 * config/aarch64/aarch64-tune.md: Regenerate.
25725 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25727 2015-02-04 Nick Clifton <nickc@redhat.com>
25729 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25732 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25734 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25735 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25736 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25738 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25739 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25740 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25741 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25742 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25743 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25744 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25745 * tree-core.h (enum built_in_function): In between
25746 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25747 for builtins that use DEF_BUILTIN_CHKP macro.
25749 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
25752 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
25753 operands for tcc_comparison exprs. Fix typos.
25756 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
25757 of two XORs that have an intervening AND or IOR.
25760 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
25761 simplification of XOR of AND to not allocate new rtx before
25762 committing to a simplification.
25764 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25766 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
25767 manual swaps in all peepholes.
25769 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25771 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25772 of manual swapping implementation.
25773 (aarch64_expand_vec_perm_const_1): Likewise.
25775 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
25777 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25778 (generic_addrcost_table): Remove NAMED_PARAM.
25779 (cortexa57_addrcost_table): Likewise.
25780 (xgene1_addrcost_table): Likewise.
25781 (generic_regmove_table): Likewise.
25782 (cortexa53_regmove_table): Likewise.
25783 (xgene1_regmove_table): Likewise.
25784 (generic_vector_table): Likewise.
25785 (cortexa57_vector_table): Likewise.
25786 (xgene1_vector_table): Likewise.
25787 (generic_tunings): Likewise.
25788 (cortexa53_tunings): Likewise.
25789 (cortexa57_tunings): Likewise.
25790 (xgene1_tunings): Likewise.
25792 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25794 * config/arm/arm-cores.def: Add cortex-a72 and
25795 cortex-a72.cortex-a53.
25796 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25797 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25798 * config/arm/arm-tune.md: Regenerate.
25799 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25800 "cortex-a72.cortex-a53".
25801 * doc/invoke.texi (ARM Options/-mtune): Likewise.
25803 2015-02-04 Nick Clifton <nickc@redhat.com>
25806 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25808 (nonimmediate_di_operand): Likewise.
25810 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25811 prefixes of known F5 using MSP430 MCUs.
25813 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25815 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25816 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25817 instead of __builtin_sqrt.
25819 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
25821 * varasm.c (do_assemble_alias): Follow transparent alias
25823 (default_assemble_visibility): Follow transparent alias
25824 chain for decl name.
25826 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25828 PR middle-end/62103
25829 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25830 to compute size of referenced value in the constant case.
25832 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25834 PR rtl-optimization/64756
25835 * cse.c (invalidate_dest): New function.
25836 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
25837 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25838 invalidate and do not record it.
25840 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25843 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25844 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25845 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25846 atomic_nand<mode>_soft_tcb): New insns.
25847 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25848 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25849 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25850 Split into atomic_not_fetchsi_hard if operands[0] is unused.
25851 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25852 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25853 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
25854 atomic_not<mode>_hard if operands[0] is unused.
25855 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25856 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25857 if operands[0] is unused.
25858 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
25859 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25860 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25861 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25863 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
25864 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25865 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25866 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25867 if operands[0] is unused.
25868 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
25869 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25870 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
25871 atomic_nand_fetchsi_hard if operands[0] is unused.
25872 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
25873 atomic_nand<mode>_hard if operands[0] is unused.
25874 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
25875 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25876 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
25877 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25878 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
25879 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25880 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25881 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25882 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
25883 atomic_not<mode>_hard if operands[0] is unused.
25884 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25885 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25887 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25888 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25889 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
25890 atomic_nand<mode>_hard if operands[0] is unused.
25891 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25892 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25894 2015-02-03 David Malcolm <dmalcolm@redhat.com>
25897 * Makefile.in (GCC_OBJS): Add gcc-main.o.
25898 * gcc-main.c: New file, containing "main" taken from gcc.c.
25899 * gcc.c (do_self_spec): Free decoded_options.
25900 (class driver): Move declaration to gcc.h.
25901 (main): Move declaration and implementation to new file
25903 (driver_get_configure_time_options): New function.
25904 * gcc.h (class driver): Move this declaration here, from
25906 (driver_get_configure_time_options): New declaration.
25908 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
25910 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25911 cross-module inlining.
25912 * cgraph.h (cgraph_node): Add flag merged.
25913 * ipa-icf.c (sem_function::merge): Maintain it.
25915 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
25917 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25918 instead of OBJECT_P.
25920 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
25923 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25924 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25925 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25926 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25928 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25931 * combine.c (reg_n_sets_max): New variable.
25932 (can_change_dest_mode, reg_nonzero_bits_for_combine,
25933 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25934 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25935 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25936 (rest_of_handle_combine): Initialize reg_n_sets_max.
25938 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
25940 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25941 if some always_inline was inlined, apply changes before inlining
25944 2015-02-02 David Malcolm <dmalcolm@redhat.com>
25947 * config/arm/arm.c (arm_option_override): Set
25948 arm_selected_arch/cpu/tune to NULL on entry.
25950 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
25951 Andrew Pinski <pinskia@gcc.gnu.org>
25952 Jakub Jelinek <jakub@gcc.gnu.org>
25955 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25956 integer typing for small model. Use IN_RANGE.
25958 2015-02-02 Richard Biener <rguenther@suse.de>
25960 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25961 * tree-vrp.c (vrp_valueize_1): Likewise.
25963 2015-02-02 Alan Modra <amodra@gmail.com>
25965 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25966 than mem for toc_restore.
25967 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25968 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25969 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25971 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
25974 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25975 explicit default options.
25977 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
25980 * ipa-utils.c (ipa_merge_profiles): Add release argument.
25981 * ipa-icf.c (sem_function::merge): Do not release body when merging.
25982 * ipa-utils.h (ipa_merge_profiles): Update prototype.
25984 2015-02-01 Jakub Jelinek <jakub@redhat.com>
25987 * cfgexpand.c (deep_ter_debug_map): New variable.
25988 (avoid_deep_ter_for_debug): New function.
25989 (expand_debug_expr): If TERed SSA_NAME is in
25990 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25991 instead of trying to expand SSA_NAME's def stmt.
25992 (expand_debug_locations): When expanding debug bind
25993 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25994 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25996 (pass_expand::execute): Call avoid_deep_ter_for_debug on
25997 all debug bind stmts. Delete deep_ter_debug_map after
25998 expand_debug_location if non-NULL and clear it.
26000 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26003 * config/sh/sync.md (atomic_fetch_notsi_hard,
26004 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26005 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26006 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26007 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26008 atomic_not_fetch<mode>_soft_imask): New insns.
26010 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26012 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26013 (rank_for_schedule_debug): Split from ...
26014 (rank_for_schedule): ... this.
26015 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26016 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26018 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26020 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26021 * doc/extend.texi (x86 Variable Attributes): Move section to
26022 correct alphabetization after renaming.
26023 (x86 Type Attributes): Likewise.
26024 (Target Builtins): Re-alphabetize menu.
26025 (x86 Built-in Functions): Move section to correct alphabetization
26027 (x86 transactional memory intrinsics): Likewise.
26028 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26029 and x86 Windows Options in table and menu.
26030 (x86 Options): Move section to correct alphabetization after
26032 (x86 Windows Options): Likewise.
26034 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26036 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26037 preferred names of the architecture and its 32- and 64-bit
26039 * doc/invoke.texi: Likewise.
26040 * doc/md.texi: Likewise.
26042 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26045 * config/i386/predicates.md (address_no_seg_operand): Reject
26046 non-CONST_INT_P operands in invalid mode.
26048 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26050 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26051 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26052 * config/i386/predicates.md (address_no_seg_operand): Call
26053 address_operand with VOIDmode.
26054 (vsib_address_operand): Ditto.
26055 (address_mpx_no_base_operand): Ditto.
26056 (address_mpx_no_index_operand): Ditto.
26058 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26061 * lra-constraints.c (original_subreg_reg_mode): New.
26062 (simplify_operand_subreg): Try to simplify subreg of const. Use
26063 original_subreg_reg_mode for it.
26064 (swap_operands): Update original_subreg_reg_mode.
26065 (curr_insn_transform): Set up original_subreg_reg_mode.
26067 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26070 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26072 (process_alt_operands): Use it.
26073 (curr_insn_transform): Check the optional reload pseudo class is
26076 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26078 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26079 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26081 * toplev.h (init_asm_output): Update comment on use of
26082 UNKNOWN_LOCATION with fatal_error.
26083 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26084 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26085 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26086 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26087 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26088 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26089 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26090 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26091 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26092 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26093 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26094 fatal_error changed to pass input_location as first argument.
26096 2015-01-30 Martin Liska <mliska@suse.cz>
26098 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26099 in #pragma GCC diagnostic guards.
26101 2015-01-30 Richard Biener <rguenther@suse.de>
26103 PR tree-optimization/64829
26104 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26105 not add a widening conversion pattern but hand off extra
26106 widenings to callers.
26107 (vect_recog_widen_mult_pattern): Handle extra widening produced
26108 by vect_handle_widen_op_by_const.
26109 (vect_recog_widen_shift_pattern): Likewise.
26110 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26111 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26112 (vect_init_vector_1): Likewise.
26113 (vect_get_vec_def_for_operand): Likewise.
26114 (vect_finish_stmt_generation): Likewise.
26115 (vectorizable_load): Likewise.
26116 (vect_analyze_stmt): Likewise.
26117 (vect_is_simple_use): Likewise.
26119 2015-01-29 Jeff Law <law@redhat.com>
26121 * combine.c (try_combine): Fix typo in comment.
26123 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26126 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26127 (rs6000_stack_info): Add assert.
26128 (rs6000_output_savres_externs): New function, split off from...
26129 (rs6000_output_function_prologue): ... here. Do not call it for
26132 2015-01-29 Jeff Law <law@redhat.com>
26135 * combine.c (try_combine): If I0 is a memory load and I3 a store
26136 to a related address, increase the "goodness" of doing a 4-insn
26137 combination with I0-I3.
26138 (make_field_assignment): Handle SUBREGs in the ior+and case.
26140 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26142 PR tree-optimization/64746
26143 * tree-if-conv.c (mask_exists): New function.
26144 (predicate_mem_writes): Save created mask with given size for further
26146 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26147 (ifcvt_repair_bool_pattern): Collect all statements that are root
26148 of bool pattern and use iterative algorithm to remove multiple uses
26149 of predicates, display number of required iterations.
26151 2015-01-29 Richard Biener <rguenther@suse.de>
26153 PR tree-optimization/64853
26154 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26155 stmt will get simulated again.
26156 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26158 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26160 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26161 return_in_pc. Remove redundant assignments.
26162 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26163 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26165 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26167 * config/i386/i386.c (ix86_mode_after): Make static.
26169 2015-01-29 Richard Biener <rguenther@suse.de>
26171 PR tree-optimization/64844
26172 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26173 dump cost model analysis.
26174 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26175 Do not register adjusted load/store costs here.
26177 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26178 Uros Bizjak <ubizjak@gmail.com>
26180 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26181 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26182 using x86_use_pseudo_pic_reg.
26183 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26184 support for fixed PIC register.
26185 (ix86_use_pseudo_pic_reg): Not static any more.
26187 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26189 PR middle-end/64805
26190 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26191 to avoid error in cgraph node verification.
26193 2015-01-29 Marek Polacek <polacek@redhat.com>
26195 * doc/standards.texi: Reflect that the default for C is gnu11.
26197 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26200 * reorg.c (switch_text_sections_between_p): New function.
26201 (relax_delay_slots): Call it when testing if the jump insn
26202 is removable. Use targetm.can_follow_jump when testing if
26203 the conditional branch can follow an unconditional jump.
26205 2015-01-27 Caroline Tice <cmtice@google.com>
26207 Committing VTV Cywin/Ming patch for Patrick Wollgast
26208 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26209 if -fvtable-verify=preinit/std is used.
26210 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26211 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26212 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26213 if -fvtable-verify=preinit/std is used.
26214 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26215 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26216 if -fvtable-verify=preinit/std is used.
26217 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26218 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26219 * varasm.c (assemble_variable): Add code to properly set the comdat
26220 section and name for the .vtable_map_vars section in case the
26221 target is PE or COFF.
26223 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26226 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26227 make sane BB profile.
26228 (cgraph_node::expand_thunk): Make sane BB profile.
26229 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26230 * cgraph.h (init_lowered_empty_function): Update prototype.
26231 * config/i386/i386.c (make_resolver_func): Update call.
26232 * predict.c (gate): Disable branch prediction pass if
26233 profile is already there.
26235 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26237 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26238 * opth-gen.awk: Likewise.
26239 * common.opt: Mark flag_fp_contract_mode as Optimization.
26241 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26243 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26244 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26246 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26249 * config/sh/predicates.md (atomic_arith_operand,
26250 atomic_logical_operand): Remove.
26251 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26252 (atomic_arith_operand_0): New predicate.
26253 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26254 Use atomic_arith_operand_0 for input values.
26255 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26256 atomic_compare_and_swap<mode>_soft_gusa,
26257 atomic_compare_and_swap<mode>_soft_tcb,
26258 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26259 arith_reg_operand instead of register_operand.
26260 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26261 atomic_arith_operand_0 for newval input.
26262 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26263 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26264 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26265 arith_reg_operand instead of register_operand.
26266 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26267 fetchop_predicate_1, fetchop_constraint_1_llcs,
26268 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26269 fetchop_constraint_1_imask): New code iterator attributes.
26270 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26271 register_operand. Use fetchop_predicate_1.
26272 (atomic_fetch_<fetchop_name>si_hard,
26273 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26274 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26275 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26276 and arith_reg_operand instead of register_operand. Use
26277 fetchop_predicate_1, fetchop_constraint_1_gusa.
26278 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26279 and arith_reg_operand instead of register_operand. Use
26280 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26282 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26283 and arith_reg_operand instead of register_operand. Use
26284 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26286 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26287 register_operand. Use atomic_logical_operand_1.
26288 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26289 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26290 arith_reg_operand instead of register_operand.
26291 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26292 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26293 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26294 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26295 register_operand. Use fetchop_predicate_1.
26296 (atomic_<fetchop_name>_fetchsi_hard,
26297 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26298 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26299 fetchop_constraint_1_llcs.
26300 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26301 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26302 fetchop_constraint_1_gusa.
26303 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26304 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26305 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26306 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26307 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26308 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26309 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26310 register_operand. Use atomic_logical_operand_1.
26311 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26312 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26313 arith_reg_operand instead of register_operand.
26314 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26315 arith_reg_operand instead of register_operand. Use logical_operand
26316 and K08. Adjust asm sequence to allow R0 usage.
26317 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26318 arith_reg_operand instead of register_operand. Use logical_operand
26321 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26324 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26325 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26326 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26327 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26328 all bits in *val_wide.
26330 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26332 * varpool.c (tls_model_names): Fix names.
26333 (varpool_node::dump): Dump tls- prefix for tls models.
26335 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26336 Bernd Schmidt <bernds@codesourcery.com>
26337 Nathan Sidwell <nathan@codesourcery.com>
26339 * config/nvptx/mkoffload.c: New file.
26340 * config/nvptx/t-nvptx: Add build rules for it.
26341 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26342 (extra_programs): Add mkoffload.
26343 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26345 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26347 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26349 PR middle-end/64809
26350 * cfgexpand.c (reorder_operands): Skip debug gimples.
26352 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26354 PR tree-optimization/64277
26355 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26356 range info when possible to refine estimation.
26358 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26360 PR tree-optimization/64718
26361 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26362 be a 16bit unsigned integer when n->range is 16.
26363 (bswap_replace): Convert src to that type if necessary for all bswap
26364 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26365 set in pass_optimize_bswap::execute ().
26367 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26369 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26370 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26371 integer and floating point variants.
26372 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26374 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26376 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26377 for all vector modes.
26379 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26382 * doc/sourcebuild.texi (comdat_group): Document.
26384 2015-01-28 Terry Guo <terry.guo@arm.com>
26386 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26388 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26390 * toplev.c (print_version): Add param "show_global_state", and
26391 only print GGC and plugin information if it is true.
26392 (init_asm_output): Pass in "true" for the new param when calling
26394 (process_options): Likewise.
26395 (toplev::main): Likewise.
26396 * toplev.h (print_version): Add new param to decl.
26398 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26402 * tree.c (lookup_binfo_at_offset): New function.
26403 (get_binfo_at_offset): Use it.
26405 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26408 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26409 on vtable being vtable.
26411 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26413 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26414 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26415 -mhotpatch= option.
26416 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26417 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26418 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26420 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26421 (s390_hotpatch_hw_max): New name.
26422 (s390_hotpatch_trampoline_halfwords): Renamed.
26423 (s390_hotpatch_hw_before_label): New name.
26424 (get_hotpatch_attribute): Removed.
26425 (s390_hotpatch_hw_after_label): New name.
26426 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26428 (s390_attribute_table): Ditto.
26429 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26430 (s390_function_num_hotpatch_hw): New name.
26431 Remove special handling of inline functions and hotpatching.
26432 Return number of nops before and after the function label.
26433 (s390_can_inline_p): Removed.
26434 (s390_asm_output_function_label): Emit a configurable number of nops
26435 after the function label.
26436 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26437 (TARGET_CAN_INLINE_P) Removed.
26438 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26440 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26441 Jiong Wang <jiong.wang@arm.com>
26443 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26445 (cb<optab><mode>1): Likewise.
26446 * config/aarch64/iterators.md (bcond): New define_code_attr.
26448 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26450 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26453 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26455 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26458 2015-01-27 Richard Biener <rguenther@suse.de>
26460 * tree-vrp.c (update_value_range): Intersect the range with
26461 old recorded SSA name range information.
26463 2015-01-27 Nick Clifton <nickc@redhat.com>
26465 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26466 BC, DE and HL registers directly, not via AX.
26467 When decrementing the stack pointer by a large amount, transfer SP
26468 into AX and perform the subtraction there.
26469 (rl78_expand_epilogue): Perform the inverse of the above
26472 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26474 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26476 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26477 Yury Gribov <y.gribov@samsung.com>
26480 * ubsan.c (ubsan_source_location): Refactor code.
26481 (ubsan_type_descriptor): Update type size. Refactor code.
26483 2015-01-27 Richard Biener <rguenther@suse.de>
26485 PR tree-optimization/56273
26486 PR tree-optimization/59124
26487 PR tree-optimization/64277
26488 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26489 from the first VRP pass.
26491 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26494 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26495 handle the first argument in the same loop as all the other arguments.
26497 PR rtl-optimization/61058
26498 * jump.c (cleanup_barriers): Update basic block boundaries
26499 if BLOCK_FOR_INSN is non-NULL on PREV.
26501 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26503 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26504 bounds narrowing, already instrumented calls and calls to
26505 not instrumentable functions.
26507 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26509 PR tree-optimization/64807
26510 * wide-int.cc (wi::divmod_internal): Clear
26511 b_dividend[dividend_blocks_needed].
26513 2015-01-26 DJ Delorie <dj@redhat.com>
26515 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26516 volatile memory references.
26518 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26521 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26523 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26524 shifts if it already fits into K08.
26526 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26529 * ipa-inline.c (inline_small_functions): Print "unknown" even
26530 if edge->call_stmt is non-NULL, but has builtins or unknown
26533 PR middle-end/64421
26534 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26535 with asterisk, skip the first character.
26537 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26540 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26543 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26546 * config/i386/i386.md (*movdi_internal): Also check operand 0
26547 to determine TYPE_LEA operand.
26548 (*movsi_internal): Ditto.
26550 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26552 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26553 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26555 2015-01-26 Renlin Li <renlin.li@arm.com>
26557 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26559 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26562 2015-01-26 Richard Biener <rguenther@suse.de>
26564 PR middle-end/64764
26565 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26566 combining two BIT_AND_EXPR predicates.
26568 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26571 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26573 2015-01-26 Terry Guo <terry.guo@arm.com>
26575 * config/arm/arm.c (arm_file_start): Update the assignment of
26576 Tag_ABI_HardFP_use.
26578 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26580 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26582 config/arm/arm.md: Include the new Cortex-A57 model.
26583 (generic_sched): Don't use generic_sched when tuning for
26586 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26587 Uros Bizjak <ubizjak@gmail.com>
26589 * config/i386/i386.c (get_builtin_code_for_version): Add
26590 support for BMI and BMI2 multiversion functions.
26592 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26594 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26595 (extract_bit_field): Likewise.
26596 (extract_low_bits): Likewise.
26597 (expand_mult): Likewise.
26598 (expand_mult_highpart_adjust): Likewise.
26600 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26602 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26603 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26604 * config/i386/i386.c (processor_model): Add
26605 M_INTEL_COREI7_BROADWELL.
26606 (arch_names_table): Add "broadwell".
26608 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26617 * config/sh/sh-protos.h
26618 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26619 sh_extending_set_of_reg::use_as_unextended_reg,
26620 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26621 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26622 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26623 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26624 (sh_treg_insns): New class.
26625 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26626 (scope_counter): New class.
26627 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26628 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26629 sh_extending_set_of_reg::can_use_as_unextended_reg,
26630 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26631 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26632 sh_split_treg_set_expr): New functions.
26633 (addsubcosts): Handle treg_set_expr.
26634 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26635 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26636 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26637 (sh_insn_operands_modified_between_p): Make non-static.
26638 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26639 simple_mem_operand in addition to displacement_mem_operand.
26640 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26641 (treg_set_expr, treg_set_expr_not_const01,
26642 arith_reg_or_treg_set_expr): New predicates.
26643 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26644 arith_or_int_operand instead of logical_operand. Convert to
26645 insn_and_split. Try to optimize constant operand in splitter.
26646 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26647 (*tstqi_t_zero): Delete.
26648 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26649 (tstsi_t_and_not): Delete.
26650 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26651 Convert to insn_and_split.
26652 (unnamed split, tstsi_t_zero_extract_xor,
26653 tstsi_t_zero_extract_subreg_xor_little,
26654 tstsi_t_zero_extract_subreg_xor_big): Delete.
26655 (*tstsi_t_shift_mask): New insn_and_split.
26656 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26657 to recombine with surrounding insns when splitting.
26658 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26659 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26660 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26661 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26662 (*cbranch_div0s: Delete.
26663 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26664 Try to recombine with surrounding insns when splitting. Add operand
26666 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26667 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26668 *addc_r_r_msb, *addc_2r_msb): Delete.
26669 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
26671 (*addc_negreg_t): New insn_and_split.
26672 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26673 Try to recombine with surrounding insns when splitting.
26674 Add operand order variants.
26675 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
26676 insn_and_split patterns.
26677 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
26678 surrounding insns when splitting.
26679 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
26680 (*rotcl): Likewise. Add zero_extract variant.
26681 (*ashrsi2_31): New insn_and_split.
26682 (*negc): Convert to insn_and_split. Use treg_set_expr.
26683 (*zero_extend<mode>si2_disp_mem): Update comment.
26684 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
26686 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
26687 with surrounding insns when splitting.
26688 (any_treg_expr_to_reg): New insn_and_split.
26689 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
26690 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
26691 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
26692 *zero_extract_2): New single bit zero extract patterns.
26693 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
26694 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
26695 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
26696 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
26698 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
26699 register_operand for set source.
26701 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
26703 * i386.opt (prefetch_sse): New targetsave.
26704 * i386.c (ix86_function_specific_save): Save prefetch_sse.
26705 (ix86_function_specific_restore): Restore prefetch_sse and initialize
26706 ix86_cost/ix86_tune_cost.
26708 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26710 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
26711 Support the JIT by using 0 as the language type.
26713 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
26716 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
26717 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
26718 (mark_regno_live, process_bb_lives): Pass new parameter value to
26719 make_hard_regno_born.
26721 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26723 PR rtl-optimization/63637
26724 PR rtl-optimization/60663
26725 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26726 if elt->cost is MAX_COST for ASM_OPERANDS.
26727 (find_sets_in_insn): Fix up comment typo.
26728 (cse_insn): Don't set src_volatile for all non-volatile
26729 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26730 or with "memory" clobber. Set elt->cost to MAX_COST
26731 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
26732 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26734 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26736 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26739 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26741 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26742 libgcc/config/i386/elf-lib.h.
26744 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26747 * gcc.c (print_configuration): Don't print a blank line at the end
26749 (run_attempt): ... but here unstead.
26751 PR middle-end/64734
26752 * omp-low.c (scan_sharing_clauses): Don't ignore
26753 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
26754 on target data/update constructs.
26756 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
26759 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
26760 (DEBUG_RELOAD): Removed define.
26761 (m32c_limit_reload_class): Enable traces with if DEBUG0.
26762 (m32c_function_arg): Added a type cast.
26763 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
26764 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
26765 * config/m32c/bitops.md (andqi3_16): Likewise.
26766 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
26767 (push_a01_l): Likewise.
26769 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26772 * main.c (main): Construct toplev instances with init_signals=true.
26773 * toplev.c (general_init): Add param "init_signals", and use it to
26774 conditionalize the calls to signal and host_hooks.extra_signals.
26775 (toplev::toplev): Add param "init_signals".
26776 (toplev::main): When invoking general_init, pass m_init_signals
26777 to control whether signal-handlers are installed.
26778 * toplev.h (toplev::toplev): Add param "init_signals".
26779 (toplev::m_init_signals): New field.
26781 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26784 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26785 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26786 latter may be affected by the former (e.g. on i686).
26788 2015-01-23 Martin Liska <mliska@suse.cz>
26790 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26791 false positive during profiledbootstrap.
26793 2015-01-23 Tom de Vries <tom@codesourcery.com>
26796 * lto-opts.c (lto_write_options): Output non-explicit conservative
26798 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26799 (append_compiler_options): Pass -fopenacc through.
26801 2015-01-23 Tom de Vries <tom@codesourcery.com>
26804 * lto-opts.c (lto_write_options): Output non-explicit conservative
26806 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26807 (append_compiler_options): Pass -fopenmp through.
26809 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26812 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26815 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26816 * diagnostic.def (DK_ICE_NOBT): New kind.
26817 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26818 like DK_ICE, but never print backtrace.
26819 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26820 (internal_error_no_backtrace): New function.
26821 * gcc.c (execute): Use internal_error_no_backtrace instead of
26824 2015-01-22 Jeff Law <law@redhat.com>
26827 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26828 improve code density for small immediate to memory case.
26829 (insv): Better handle bitfield assignments when the field is
26830 being set to all ones.
26831 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26834 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26835 Jakub Jelinek <jakub@redhat.com>
26837 PR middle-end/64729
26838 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26839 for !TARGET_LIBC_PROVIDES_SSP version and
26840 -fstack-protector-{all,strong,explicit} otherwise.
26841 * config/freebsd.h (LINK_SSP_SPEC): Handle
26842 -fstack-protector-{strong,explicit}.
26844 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
26845 H.J. Lu <hongjiu.lu@intel.com>
26848 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26851 2015-01-22 Wei Mi <wmi@google.com>
26853 PR rtl-optimization/64557
26854 * dse.c (record_store): Call get_addr for mem_addr.
26855 (check_mem_read_rtx): Likewise.
26857 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
26859 * fold-const.c (const_binop): Add early return for non-tcc_binary.
26861 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
26863 * toplev.c (init_local_tick): Process the failure when read
26864 fails for random_seed.
26866 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26867 'pretty_name' to avoid memory overflow.
26869 2015-01-22 Richard Biener <rguenther@suse.de>
26871 PR middle-end/64728
26872 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26873 abnormal coalescing on undefined SSA names.
26875 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
26879 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26881 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26883 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
26885 PR middle-end/63325
26886 * fold-const.c (fold_checksum_tree): Don't include value of
26887 expr->decl_with_vis.symtab_node in the checksum.
26889 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26891 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26893 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
26896 * gcc.c (insert_comments): New function.
26897 (try_generate_repro): Call it.
26898 (append_text): Removed.
26900 2015-01-22 Richard Biener <rguenther@suse.de>
26902 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26903 with IL incompatible options. Properly honor user optimize
26906 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
26908 PR rtl-optimization/64682
26909 * combine.c (distribute_notes): When moving a death note for
26910 a register that is set in the new I2, make sure to put it
26911 before that new I2.
26913 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
26915 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26916 not TARGET_DEFAULT.
26918 2015-01-21 Jakub Jelinek <jakub@redhat.com>
26921 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26922 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26923 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26926 * doc/invoke.texi (-fsanitize=vptr): Document.
26928 PR rtl-optimization/62078
26929 * dse.c: Include cfgcleanup.h.
26930 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26931 anything call purge_all_dead_edges and cleanup_cfg at the end
26934 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
26936 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26939 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26941 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26944 2015-01-21 David Sherwood <david.sherwood@arm.com>
26945 Tejas Belagod <Tejas.Belagod@arm.com>
26947 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26948 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26949 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26952 2015-01-21 David Sherwood <david.sherwood@arm.com>
26953 Tejas Belagod <Tejas.Belagod@arm.com>
26955 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26956 (aarch64_reverse_mask): New decls.
26957 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26958 (insn_count): New mode_attr.
26959 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26960 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26961 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26962 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26963 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26964 (aarch64_simd_st4): New patterns.
26965 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26966 (aarch64_reverse_mask): New functions.
26968 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
26970 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26972 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26973 addressing modes for BE.
26974 (aarch64_print_operand): Add 'R' specifier.
26975 (aarch64_simd_disambiguate_copy): Delete.
26976 (aarch64_simd_emit_reg_reg_move): New function.
26977 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26978 in define_splits for structural moves.
26979 (mov<mode>): Use less restrictive predicates.
26980 (*aarch64_mov<mode>): Simplify and only allow for LE.
26981 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26983 2015-01-21 Alan Hayward <alan.hayward@arm.com>
26985 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26987 2015-01-21 Richard Henderson <rth@redhat.com>
26990 * ccmp.c (used_in_cond_stmt_p): Remove.
26991 (expand_ccmp_expr): Don't use it.
26993 2015-01-21 Nick Clifton <nickc@redhat.com>
26995 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26998 2015-01-21 Richard Biener <rguenther@suse.de>
27000 PR middle-end/64313
27001 * tree-core.h (builtin_info, builtin_info_type): Turn from
27002 an object with two arrays into an array of an object with
27003 decl and two flags, implicit_p and declared_p.
27004 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27005 set_builtin_decl, set_builtin_decl_implicit_p,
27006 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27007 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27008 * builtins.c (builtin_info): Adjust.
27009 * gimplify.c (gimplify_addr_expr): References to builtins
27010 that have been declared by the user makes them eligible for
27011 use by the compiler. Call set_builtin_decl_implicit_p on them.
27013 2015-01-20 Jeff Law <law@redhat.com>
27016 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27017 allow pc-relative addresses in operand predicates or constraints.
27019 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27021 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27022 neon on aarch32 processors for stringops.
27024 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27027 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27029 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27032 * ipa-inline.c: Include lto-streamer.h
27033 (report_inline_failed_reason): Output source file differences and
27034 flags on optimization/target node mismatch.
27035 (can_inline_edge_p): Consider caller to be the outer inline function;
27036 be less restrictive about matching opimize and optimize_size attributes.
27037 (inline_account_function_p): Break out from ...
27038 (inline_small_functions): ... here.
27039 * ipa-inline-transform.c (clone_inlined_nodes): Use
27040 inline_account_function_p.
27041 (inline_call): Use optimize attribution; use inline_account_function_p.
27042 (inline_transform): Use opt_for_fn.
27043 * ipa-inline.h (inline_account_function_p): Declare.
27045 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27048 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27049 mode if bitsize <= 0.
27050 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27051 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27052 sizes and positions.
27054 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27056 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27057 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27059 (TARGET_ASM_FILE_END): Define.
27061 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27063 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27064 (struct tune_params): Use the enum.
27065 * arm.c (arm_*_tune): Update.
27066 (arm_option_override): Update.
27068 2015-01-20 Richard Biener <rguenther@suse.de>
27071 * ipa-reference.c (add_static_var): Inline ...
27072 (analyze_function): ... here after splitting out from ...
27073 (is_proper_for_analysis): ... this.
27075 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27078 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27079 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27080 replace the conditional with it's true branch.
27081 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27082 (arm_lra_p): Remove.
27084 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27086 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27088 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27090 * config/tilegx/mul-tables.c: Move symtab.h include after
27091 coretypes.h include.
27092 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27093 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27094 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27095 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27096 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27098 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27102 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27104 PR rtl-optimization/64081
27105 * loop-iv.c (def_pred_latch_p): New function.
27106 (latch_dominating_def): Allow specific cases with non-single
27108 (iv_get_reaching_def): Likewise.
27109 (check_complex_exit_p): New function.
27110 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27111 with exits not executing on any iteration.
27113 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27116 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27117 to set branch cost.
27119 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27122 * i386.c (gate): Check flag_expensive_optimizations and
27124 (ix86_option_override_internal): Drop optimize_size condition
27125 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27126 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27127 MASK_PREFER_AVX128.
27128 (ix86_avx256_split_vector_move_misalign,
27129 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27130 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27131 optimize_insn_for_speed_p check.
27133 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27135 * config/mips/mips.h (FP_ASM_SPEC): New define.
27136 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27139 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27142 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27143 nullptr for insn when reaching the first insn.
27144 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27145 (sh_insn_operands_modified_between_p): Add nullptr check.
27146 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27147 sign extending mem load if the insn contains any UNSPEC or
27150 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27152 * params.def (inline-unit-growth): Drop to 15%.
27153 * invoke.texi (inline-unit-growth): Document change.
27155 2015-01-19 Martin Liska <mliska@suse.cz>
27158 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27159 function for second argument of OBJ_TYPE_REF.
27161 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27164 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27165 whether function is an alias.
27167 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27169 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27172 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27174 PR rtl-optimization/64671
27175 * lra-remat.c (operand_to_remat): Don't consider jump and call
27178 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27181 * config/rs6000/default64.h: Include rs6000-cpus.def.
27182 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27183 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27184 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27186 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27188 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27189 pseudo-op to specify assembler dialect.
27191 2015-01-19 Martin Liska <mliska@suse.cz>
27194 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27195 Handle safe potentially removed nodes during filtering.
27197 2015-01-19 Martin Liska <mliska@suse.cz>
27199 * doc/extend.texi (no_icf): Add new attribute description.
27200 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27201 where the pass attempts to merge a function with no_icf attribute.
27203 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27206 * doc/md.texi (ARM Options): Document register constraints.
27208 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27209 Andrew Pinski <apinski@cavium.com>
27212 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27213 (ashl<mode>3): Don't expand if operands[2] is not constant.
27215 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27218 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27219 Match xor-and-xor RTL pattern.
27221 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27223 PR rtl-optimization/64081
27224 * loop-iv.c (def_pred_latch_p): New function.
27225 (latch_dominating_def): Allow specific cases with non-single
27227 (iv_get_reaching_def): Likewise.
27228 (check_complex_exit_p): New function.
27229 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27230 with exits not executing on any iteration.
27232 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27234 * common.opt (fgraphite): Fix a typo.
27236 2015-01-19 Felix Yang <felix.yang@huawei.com>
27238 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27240 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27241 uminp, smax_nanp, smin_nanp): New builtins.
27242 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27243 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27244 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27245 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27246 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27247 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27248 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27249 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27250 vpminnms_f32): Rewrite using builtin functions.
27252 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27255 * omp-low.c (offload_symbol_decl): Remove variable.
27256 (get_offload_symbol_decl): Remove function.
27257 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27258 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27259 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27260 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27261 BUILT_IN_GOACC_UPDATE don't pass it at all.
27263 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27265 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27268 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27270 * ipa-chkp.c (chkp_produce_thunks): Add early param
27271 to split thunks production into two passes. Keep
27272 'always_inline' function bodies after the first pass.
27273 (pass_data_ipa_chkp_early_produce_thunks): New.
27274 (pass_ipa_chkp_early_produce_thunks): New.
27275 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27276 chkp_produce_thunks signature.
27277 (make_pass_ipa_chkp_early_produce_thunks): New.
27278 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27279 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27280 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27282 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27284 * cgraph.c (cgraph_node::dump): Dump profile flags.
27286 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27289 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27290 reg appear first in the parallel.
27292 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27294 * ipa-reference.c (set_reference_optimization_summary,
27295 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27297 (ignore_module_statics): New static var.
27298 (propagate_bits): If ipa-reference is disabled, do not look into local
27300 (analyze_function): Disable analysis when ipa_reference is disabled.
27301 (generate_summary): Do not dump when reference is disabled;
27302 collect vars accessed from functions with ipa-reference disabled.
27303 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27305 (gate): Enable for LTO.
27306 (ignore_edge_p): New function.
27307 (propagate): Skip functions w/o ipa-reference analysis.
27308 * optc-save-gen.awk: Handle optimize_debug correctly.
27309 * opth-gen.awk: Likewise.
27310 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27311 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27312 fira-share-save-slots, fira-share-spill-slots,
27313 fmodulo-sched-allow-regmoves, fpartial-inlining,
27314 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27315 ftracer, ftree-parallelize-loops, fassociative-math,
27316 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27318 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27319 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27321 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27324 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27327 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27329 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27331 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27333 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27334 Remove duplicate option listings.
27336 2015-01-18 Felix Yang <felix.yang@huawei.com>
27338 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27339 (autofdo_source_profile::get_callsite_total_count,
27340 function_instance::get_function_instance_by_decl,
27341 string_table::get_index, string_table::get_index_by_decl,
27342 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27343 Fix comment typos. Reformatting and minor code rearrangement.
27345 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27347 * config/rs6000/rs6000.md (probe_stack): Delete.
27348 (probe_stack_address): New.
27350 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27352 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27353 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27355 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27357 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27358 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27359 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27361 (rs6000_libcall_value): Use the new function.
27363 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27365 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27367 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27369 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27370 implement a more precise life analysis for it during backward scan.
27372 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27374 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27376 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27378 PR rtl-optimization/52773
27379 * calls.c (emit_library_call_value): When pushing arguments use
27380 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27381 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27382 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27384 2015-01-17 Jeff Law <law@redhat.com>
27386 PR rtl-optimization/32790
27387 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27388 not ZERO_EXTEND in SET_DESTs.
27390 2015-01-17 Alan Modra <amodra@gmail.com>
27392 * cprop.c (do_local_cprop): Revert last change.
27394 2015-01-16 DJ Delorie <dj@redhat.com>
27395 Nick Clifton <nickc@redhat.com>
27397 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27398 (addhi3_real): Likewise. Fix [HL+0] syntax.
27399 (subqi3_real): Likewise.
27400 (subhi3_real): Likewise.
27401 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27402 (cbranchhi4_real): Likewise.
27403 (cbranchhi4_real_inverted): Likewise.
27404 (cbranchsi4_real_lt): Likewise.
27405 (cbranchsi4_real_ge): Likewise.
27406 (cbranchsi4_real_ge): Likewise.
27407 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27408 (sub<mode>3_virt): Likewise.
27409 (cbranchqi4_virt): Likewise.
27410 (cbranchhi4_virt): Likewise.
27411 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27412 always use '[reg+imm]' even when imm is zero.
27413 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27414 (rl78_general_operand): New.
27415 (rl78_nonimmediate_operand): New.
27416 (rl78_nonfar_operand): Use them.
27417 (rl78_nonfar_nonimm_operand): Likewise.
27418 (rl78_stack_based_mem): Fix.
27419 * config/rl78/constraints.md (Ibqi): New.
27424 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27425 (iorqi3): Likewise.
27426 (xorqi3): Likewise.
27427 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27429 * config/rl78/constrains (Qs8): New constraint.
27430 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27431 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27432 * config/rl78/rl78-real.md (update_Z): New attribute.
27433 Update patterns to set it.
27434 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27435 shorter compare and branch sequence can be used.
27436 (cbranchhi4_real): Likewise.
27437 (cbranchhi4_real_inverted): Likewise.
27439 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27440 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27442 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27443 (rl78_option_override): Allow -mes0 only if C.
27444 (characterize_address): Support subregs of symbol_refs.
27445 (rl78_addr_space_address_mode): Move. Add __near.
27446 (rl78_far_p): Likewise.
27447 (rl78_addr_space_pointer_mode): Likewise.
27448 (rl78_as_legitimate_address): Likewise.
27449 (rl78_addr_space_subset_p): Likewise.
27450 (rl78_addr_space_convert): Likewise.
27451 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27452 symbols with -mes0.
27453 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27455 (rl78_alloc_physical_registers_op1): Change logic to prefer
27456 symbol[BC] addressing.
27457 (frodata_section): New.
27458 (rl78_asm_init_sections): Initialize it.
27459 (rl78_select_section): Put __far readonly symbols in .frodata.
27460 (rl78_make_type_far): New.
27461 (rl78_insert_attributes): Force all readonly symbols to be
27463 (rl78_asm_out_integer): New.
27464 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27465 * config/rl78/rl78.opt (-mes0): New.
27467 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27468 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27469 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27470 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27471 (rl78_saddr_p): New.
27472 (rl78_output_aligned_common): New.
27473 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27474 (rl78_handle_saddr_attribute): New.
27475 (rl78_handle_naked_attribute): New.
27476 (rl78_attribute_table): Add saddr.
27477 (rl78_print_operand_1): Don't print '!' on saddr operands.
27478 (rl78_print_operand_1): Strip encodings.
27480 (rl78_strip_name_encoding): New.
27481 (rl78_attrlist_to_encoding): New.
27482 (rl78_encode_section_info): New.
27483 (rl78_asm_init_sections): New.
27484 (rl78_select_section): New.
27485 (rl78_output_labelref): New.
27486 (rl78_output_aligned_common): New.
27487 (rl78_asm_out_integer): New.
27488 (rl78_asm_ctor_dtor): New.
27489 (rl78_asm_constructor): New.
27490 (rl78_asm_destructor): New.
27492 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27493 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27494 (transcode_memory_rtx): Update.
27495 (rl78_expand_epilogue): Use A_REG instead of 0.
27497 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27499 * config/arm/arm-protos.h (struct tune_params): New field
27500 sched_autopref_queue_depth.
27501 * config/arm/arm.c (sched-int.h): Include header.
27502 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27503 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27504 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27505 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27506 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27507 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27508 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27509 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27510 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27511 * config/arm/t-arm (arm.o): Update.
27512 * haifa-sched.c (update_insn_after_change): Update.
27513 (rank_for_schedule): Use auto-prefetcher model, if requested.
27514 (autopref_multipass_init): New static function.
27515 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27516 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27517 variable for debug dumps.
27518 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27519 (autopref_multipass_dfa_lookahead_guard): New global function that
27520 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27521 (init_h_i_d): Update.
27522 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27523 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27524 (autopref_multipass_data_): Structure for auto-prefetcher data.
27525 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27526 (struct _haifa_insn_data:autopref_multipass_data): New field.
27527 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27528 (autopref_multipass_dfa_lookahead_guard): Declare.
27530 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27532 * rtlanal.c (get_base_term): Handle SCRATCH.
27534 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27536 * config/aarch64/aarch64.c
27537 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27538 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27540 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27541 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27543 2015-01-17 Alan Modra <amodra@gmail.com>
27545 * cprop.c (do_local_cprop): Disallow replacement of fixed
27548 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27551 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27554 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27556 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27557 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27559 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27561 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27562 * config/arm/thumb1.md: ... Here.
27564 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27566 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27567 TImode for TARGET_32BIT.
27569 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27571 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27572 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27574 (rs6000_abi_word_mode): New function.
27576 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27578 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27579 instead of UNITS_PER_WORD to describe the size of stack slots.
27581 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27583 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27584 as rs6000_promote_function_mode. Move comment to there.
27585 (rs6000_promote_function_mode): New function.
27587 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27589 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27590 -mpowerpc64 is active.
27592 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27594 PR middle-end/64353
27595 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27598 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27600 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27601 introduced in revision 219724.
27603 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27604 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27607 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27608 destination is not a GP reg.
27609 (*movdi_aarch64): Likewise.
27611 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27614 * config/rs6000/default64.h: Revert ISA change.
27616 2015-01-16 Richard Biener <rguenther@suse.de>
27618 PR middle-end/64614
27619 * tree-ssa-uninit.c: Include tree-cfg.h.
27620 (MAX_SWITCH_CASES): New define.
27621 (convert_control_dep_chain_into_preds): Handle switch statements.
27622 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27623 (normalize_one_pred_1): Do not split bit-manipulations.
27626 2015-01-16 Richard Biener <rguenther@suse.de>
27628 PR tree-optimization/64568
27629 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27630 complex load rewriting for TARGET_MEM_REFs.
27632 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27634 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27636 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27639 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27641 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27642 (aarch64_lra_p): Remove.
27644 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27647 * ipa-chkp.h (chkp_instrumentable_p): New.
27648 * ipa-chkp.c: Include tree-inline.h.
27649 (chkp_instrumentable_p): New.
27650 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27651 Fix processing of not instrumentable functions.
27652 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27653 not instrumentable functions.
27654 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27655 chkp_instrumentable_p.
27656 * tree-inline.h (copy_forbidden): New.
27657 * tree-inline.c (copy_forbidden): Not static anymore.
27659 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27661 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27664 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27666 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27667 type OP_OUT to OP_INOUT.
27669 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27671 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27672 (high x) y) to y if x and y have the same base.
27674 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27676 * config/arm/cortex-a57.md: New.
27677 * config/aarch64/aarch64.md: Include it.
27678 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
27679 * config/aarch64/aarch64-tune.md: Regenerate.
27681 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
27684 * ccmp.c (expand_ccmp_next): New function.
27685 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
27686 and compare insn sequence.
27687 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
27688 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
27689 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
27690 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
27691 (*ccmp_ior): Changed to ccmp_ior<mode>.
27692 (cmp<mode>): New pattern.
27693 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
27695 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
27697 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
27699 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
27700 _mm256_bsrli_epi128): New.
27701 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
27703 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27705 * expmed.c (store_bit_field_using_insv): Improve warning message.
27706 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
27708 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27710 PR rtl-optimization/64011
27711 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
27712 there is partial overflow.
27714 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27716 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
27718 (nds32_expand_epilogue_v3pop): Likewise.
27719 * config/nds32/nds32.md (sibcall): Define this for sibling call
27721 (sibcall_register): Likewise.
27722 (sibcall_immediate): Likewise.
27723 (sibcall_value): Likewise.
27724 (sibcall_value_register): Likewise.
27725 (sibcall_value_immediate): Likewise.
27726 (sibcall_epilogue): Likewise.
27727 (epilogue): Pass false to indicate this is not a sibcall epilogue.
27728 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27729 (nds32_expand_epilogue_v3pop): Likewise.
27731 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27733 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27734 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27735 (return_internal): New.
27736 (return): Define this named pattern.
27737 (simple_return): Define this named pattern.
27738 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27739 pattern instead of unspec_volatile_func_return.
27740 (nds32_expand_epilogue_v3pop): Likewise.
27741 (nds32_can_use_return_insn): New function.
27743 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27745 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27746 * config/nds32/nds32.md (pop25return): New.
27747 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27748 pop25return pattern.
27750 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27752 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
27753 -mforbid-fp-as-gp, and -mex9 options.
27755 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27757 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
27758 remove -mgp-direct option.
27760 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27762 * doc/invoke.texi (--param early-inlining-insns): Update default value.
27763 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
27765 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27767 * ipa-inline.c (inline_small_functions): Work around hints
27770 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
27773 * doc/invoke.texi (Option Summary): Document new Nios II
27775 (Nios II Options): Likewise.
27776 * config/nios2/nios2.opt: Add -mgpopt= option support.
27777 Modify existing -mgpopt and -mno-gpopt options to be aliases.
27778 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27779 * config/nios2/nios2.c (nios2_option_override): Adjust
27780 -mgpopt defaulting.
27781 (nios2_in_small_data_p): Return true for explicit small data
27782 sections even with -G0.
27783 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27786 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27789 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27791 (inline_call): Fix removal of aliases.
27793 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27795 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27796 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27797 * opts.c (common_handle_option): Add -fsanitize=vptr.
27798 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27799 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27800 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27801 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27802 (ubsan_expand_vptr_ifn): New prototype.
27803 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27804 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27805 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27806 expand_LOOP_VECTORIZED): Make argument nameless, remove
27808 (expand_UBSAN_VPTR): New function.
27809 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27811 (UBSAN_VPTR): New internal function.
27812 * sanopt.c (tree_map_traits): Renamed to ...
27813 (sanopt_tree_map_traits): ... this.
27814 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27815 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27816 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
27817 (maybe_optimize_ubsan_vptr_ifn): New function.
27818 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27819 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
27821 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27822 internal calls like pure functions for aliasing, even when they
27823 have other side-effects that prevent making them ECF_PURE.
27824 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27825 (ubsan_expand_vptr_ifn): New function.
27827 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
27829 PR rtl-optimization/64110
27830 * stmt.c (parse_output_constraint): Process '^' and '$'.
27831 (parse_input_constraint): Ditto.
27832 * lra-constraints.c (process_alt_operands): Process the new
27834 * ira-costs.c (record_reg_classes): Process the new constraint
27836 * genoutput.c (indep_constraints): Add '^' and '$'.
27837 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27838 * doc/md.texi: Add description of the new constraints.
27840 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
27841 Bernd Schmidt <bernds@codesourcery.com>
27842 Cesar Philippidis <cesar@codesourcery.com>
27843 James Norris <jnorris@codesourcery.com>
27844 Tom de Vries <tom@codesourcery.com>
27845 Ilmir Usmanov <i.usmanov@samsung.com>
27846 Dmitry Bocharnikov <dmitry.b@samsung.com>
27847 Evgeny Gavrin <e.gavrin@samsung.com>
27848 Jakub Jelinek <jakub@redhat.com>
27850 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27851 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27852 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27853 New function types.
27854 * builtins.c: Include "gomp-constants.h".
27855 (expand_builtin_acc_on_device): New function.
27856 (expand_builtin, is_inexpensive_builtin): Handle
27857 BUILT_IN_ACC_ON_DEVICE.
27858 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27860 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27862 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27863 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27864 i386/intelmic-offload.h.
27865 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27866 to libgomp and its dependencies.
27867 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27868 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27869 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27870 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27871 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27872 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27873 * doc/generic.texi: Update for OpenACC changes.
27874 * doc/gimple.texi: Likewise.
27875 * doc/invoke.texi: Likewise.
27876 * doc/sourcebuild.texi: Likewise.
27877 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27878 GF_OMP_FOR_KIND_OACC_LOOP.
27879 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27880 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27881 GF_OMP_TARGET_KIND_OACC_UPDATE,
27882 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27884 * gimple.c: Update comments for OpenACC changes.
27885 * gimple.def: Likewise.
27886 * gimple.h: Likewise.
27887 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27888 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27889 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27890 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27891 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27893 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27894 * gimplify.c: Include "gomp-constants.h".
27895 Update comments for OpenACC changes.
27896 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27897 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27898 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27899 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27900 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27901 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27902 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27903 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27904 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27906 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27907 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27908 OMP_CLAUSE_SET_MAP_KIND.
27909 (gimplify_oacc_cache): New function.
27910 (gimplify_omp_for): Handle OACC_LOOP.
27911 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27913 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27914 OACC_EXIT_DATA, OACC_UPDATE.
27915 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27916 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27917 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27918 (gimplify_body): Consider flag_openacc next to flag_openmp.
27919 * lto-streamer-out.c: Include "gomp-constants.h".
27920 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27921 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27922 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27923 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27924 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27925 (BUILT_IN_ACC_ON_DEVICE): New builtins.
27926 * omp-low.c: Include "gomp-constants.h".
27927 Update comments for OpenACC changes.
27928 (struct omp_context): Add reduction_map, gwv_below, gwv_this
27930 (extract_omp_for_data, use_pointer_for_field, install_var_field)
27931 (new_omp_context, delete_omp_context, scan_sharing_clauses)
27932 (create_omp_child_function, scan_omp_for, scan_omp_target)
27933 (check_omp_nesting_restrictions, lower_reduction_clauses)
27934 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27935 Update for OpenACC changes.
27936 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27937 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27938 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27939 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27940 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27941 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
27943 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27944 Handle GF_OMP_FOR_KIND_OACC_LOOP.
27945 (expand_omp_target, lower_omp_target): Handle
27946 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27947 GF_OMP_TARGET_KIND_OACC_UPDATE,
27948 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27949 GF_OMP_TARGET_KIND_OACC_DATA.
27950 (pass_expand_omp::execute, execute_lower_omp)
27951 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27953 (offload_symbol_decl): New variable.
27954 (oacc_get_reduction_array_id, oacc_max_threads)
27955 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27956 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27957 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27958 (oacc_gimple_assign, oacc_initialize_reduction_data)
27959 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27961 (is_targetreg_ctx): Remove function.
27962 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27963 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27964 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27965 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27966 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27967 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27968 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27969 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27970 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27971 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27972 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27973 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27974 * tree-core.h: Update comments for OpenACC changes.
27975 (enum omp_clause_map_kind): Remove.
27976 (struct tree_omp_clause): Change type of map_kind member from enum
27977 omp_clause_map_kind to unsigned char.
27978 * tree-inline.c: Update comments for OpenACC changes.
27979 * tree-nested.c: Likewise. Include "gomp-constants.h".
27980 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27981 (convert_tramp_reference_stmt, convert_gimple_call): Update for
27982 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27983 OMP_CLAUSE_SET_MAP_KIND.
27984 * tree-pretty-print.c: Include "gomp-constants.h".
27985 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27986 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27987 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27988 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27989 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27990 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
27991 instead of OMP_CLAUSE_MAP_*.
27992 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27993 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27994 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27995 * tree-streamer-in.c: Include "gomp-constants.h".
27996 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27997 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
27998 * tree-streamer-out.c: Include "gomp-constants.h".
27999 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28001 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28002 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28003 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28004 * tree.c (omp_clause_num_ops): Update accordingly.
28005 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28007 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28008 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28009 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28010 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28011 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28012 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28013 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28014 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28015 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28017 * config/i386/intelmic-offload.h: New file.
28018 * config/nvptx/offload.h: Likewise.
28020 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28022 * explow.h: Remove duplicate contents.
28023 * dojump.h: Likewise.
28025 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28027 * arm.c (arm_xgene_tune): Add default initializer for instruction
28030 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28034 * ipa.c (symbol_table::remove_unreachable_nodes):
28035 Do not put abstract origins into boundary.
28037 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28039 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28040 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28042 2015-01-15 Steve Ellcey <sellcey@mips.com>
28044 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28045 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28046 builtins.def, and chkp-builtins.def.
28048 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28050 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28053 2015-01-15 Richard Biener <rguenther@suse.de>
28055 PR tree-optimization/61743
28056 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28057 information on PHIs for some simple cases.
28059 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28061 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28063 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28064 * config/arm/arm-cores.def (xgene1): New entry.
28065 * config/arm/arm-tables.opt: Regenerate.
28066 * config/arm/arm-tune.md: Regenerate.
28067 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28069 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28071 * tree-if-conv.c: Include hash-map.h.
28072 (aggressive_if_conv): New variable.
28073 (fold_build_cond_expr): Add simplification of non-zero condition.
28074 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28075 destination block is not always executed.
28076 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28077 than two predecessors if AGGRESSIVE_IF_CONV is true.
28078 (if_convertible_stmt_p): Fix commentary.
28079 (all_preds_critical_p): New function.
28080 (has_pred_critical_p): New function.
28081 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28082 BB can have more than two predecessors and all incoming edges can be
28084 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28085 to compute predicate for true edge.
28086 (find_phi_replacement_condition): Delete this function.
28087 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28088 Allow interchange PHI arguments if EXTENDED is false.
28089 Change check that block containing reduction statement candidate
28090 is predecessor of phi-block since phi may have more than two arguments.
28091 (phi_args_hash_traits): New helper structure.
28092 (struct phi_args_hash_traits): New type.
28093 (phi_args_hash_traits::hash): New function.
28094 (phi_args_hash_traits::equal_keys): New function.
28095 (gen_phi_arg_condition): New function.
28096 (predicate_scalar_phi): Add handling of phi nodes with more than two
28097 arguments, delete COND and TRUE_BB arguments, insert body of
28098 find_phi_replacement_condition to predicate ordinary phi nodes.
28099 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28100 delete call of find_phi_replacement_condition and invoke
28101 predicate_scalar_phi with two arguments.
28102 (insert_gimplified_predicates): Add assert that non-predicated block
28103 don't have statements to insert.
28104 (ifcvt_split_critical_edges): New function.
28105 (ifcvt_split_def_stmt): Likewise.
28106 (ifcvt_walk_pattern_tree): Likewise.
28107 (stmt_is_root_of_bool_pattern): Likewise.
28108 (ifcvt_repair_bool_pattern): Likewise.
28109 (ifcvt_local_dce): Likewise.
28110 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28111 is copy of inner or outer loop force_vectorize field, invoke
28112 ifcvt_split_critical_edges, ifcvt_local_dce and
28113 ifcvt_repair_bool_pattern for aggressive if-conversion.
28115 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28117 * config/aarch64/aarch64.md: Include xgene1.md.
28118 * config/aarch64/xgene1.md: New file.
28120 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28122 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28123 xgene1 (APM XGene-1) core definition.
28124 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28125 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28126 * doc/invoke.texi: Document -mcpu=xgene1.
28128 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28130 * dojump.h: New header file.
28131 * explow.h: Likewise.
28132 * expr.h: Remove includes.
28133 Move expmed.c prototypes to expmed.h.
28134 Move dojump.c prototypes to dojump.h.
28135 Move alias.c prototypes to alias.h.
28136 Move explow.c prototypes to explow.h.
28137 Move calls.c prototypes to calls.h.
28138 Move emit-rtl.c prototypes to emit-rtl.h.
28139 Move varasm.c prototypes to varasm.h.
28140 Move stmt.c prototypes to stmt.h.
28141 (saved_pending_stack_adjust): Move to dojump.h.
28142 (adjust_address): Move to explow.h.
28143 (adjust_address_nv): Move to emit-rtl.h.
28144 (adjust_bitfield_address): Likewise.
28145 (adjust_bitfield_address_size): Likewise.
28146 (adjust_bitfield_address_nv): Likewise.
28147 (adjust_automodify_address_nv): Likewise.
28148 * explow.c (expr_size): Move to expr.c.
28149 (int_expr_size): Likewise.
28150 (tree_expr_size): Likewise.
28151 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28152 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28153 * genemit.c (main): Generate includes statistics.h, real.h,
28154 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28156 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28157 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28158 explow.h, emit-rtl.h, stmt.h.
28159 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28160 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28161 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28162 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28163 emit-rtl.h, varasm.h, stmt.h.
28164 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28165 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28166 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28167 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28168 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28169 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28170 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28171 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28172 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28173 tm.h tree.h varasm.h vec.h wide-int.h.
28174 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28175 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28176 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28177 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28178 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28179 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28180 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28181 * loop-iv.c: Likewise.
28182 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28183 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28184 statistics.h stmt.h tree.h varasm.h wide-int.h.
28185 * lra-constraints.c: Likewise.
28186 * lra-eliminations.c: Likewise.
28187 * lra-lives.c: Likewise.
28188 * lra-remat.c: Likewise.
28189 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28190 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28191 statistics.h stmt.h tree.h varasm.h wide-int.h.
28192 * hw-doloop.c: Likewise.
28193 * ira-color.c: Likewise.
28194 * ira-emit.c: Likewise.
28195 * loop-doloop.c: Likewise.
28196 * loop-invariant.c: Likewise.
28197 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28198 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28199 statistics.h stmt.h tree.h varasm.h wide-int.h.
28200 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28201 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28202 statistics.h stmt.h tree.h varasm.h wide-int.h.
28203 * combine-stack-adj.c: Likewise.
28206 * ifcvt.c: Likewise.
28207 * ira-costs.c: Likewise.
28208 * jump.c: Likewise.
28209 * lra-coalesce.c: Likewise.
28210 * lra-spills.c: Likewise.
28211 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28212 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28213 stmt.h varasm.h wide-int.h.
28214 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28215 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28217 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28218 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28219 statistics.h stmt.h varasm.h wide-int.h.
28220 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28221 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28222 varasm.h wide-int.h.
28223 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28224 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28225 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28226 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28227 statistics.h stmt.h.
28228 * config/tilepro/tilepro.c: Likewise.
28229 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28230 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28231 * config/pdp11/pdp11.c: Likewise.
28232 * config/xtensa/xtensa.c: Likewise.
28233 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28234 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28236 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28237 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28238 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28239 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28240 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28241 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28242 * rtl-chkp.c: Likewise.
28243 * tree-chkp-opt.c: Likewise.
28244 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28245 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28246 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28247 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28248 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28249 statistics.h stmt.h.
28250 * tree-vect-data-refs.c: Likewise.
28251 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28252 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28253 rtl.h statistics.h stmt.h varasm.h.
28254 * internal-fn.c: Likewise.
28255 * ipa-icf-gimple.c: Likewise.
28256 * lto-section-out.c: Likewise.
28257 * tree-data-ref.c: Likewise.
28258 * tree-nested.c: Likewise.
28259 * tree-outof-ssa.c: Likewise.
28260 * tree-predcom.c: Likewise.
28261 * tree-pretty-print.c: Likewise.
28262 * tree-scalar-evolution.c: Likewise.
28263 * tree-ssa-strlen.c: Likewise.
28264 * tree-vect-loop.c: Likewise.
28265 * tree-vect-patterns.c: Likewise.
28266 * tree-vect-slp.c: Likewise.
28267 * tree-vect-stmts.c: Likewise.
28268 * tsan.c: Likewise.
28269 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28270 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28272 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28273 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28274 statistics.h stmt.h varasm.h.
28275 * loop-unroll.c: Likewise.
28276 * ubsan.c: Likewise.
28277 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28278 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28280 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28281 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28282 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28283 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28284 statistics.h stmt.h.
28285 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28286 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28287 statistics.h stmt.h varasm.h.
28288 * gimple-match-head.c: Likewise.
28289 * lto-cgraph.c: Likewise.
28290 * lto-section-in.c: Likewise.
28291 * lto-streamer-in.c: Likewise.
28292 * lto-streamer-out.c: Likewise.
28293 * tree-affine.c: Likewise.
28294 * tree-cfg.c: Likewise.
28295 * tree-cfgcleanup.c: Likewise.
28296 * tree-if-conv.c: Likewise.
28297 * tree-into-ssa.c: Likewise.
28298 * tree-ssa-alias.c: Likewise.
28299 * tree-ssa-copyrename.c: Likewise.
28300 * tree-ssa-dse.c: Likewise.
28301 * tree-ssa-forwprop.c: Likewise.
28302 * tree-ssa-live.c: Likewise.
28303 * tree-ssa-math-opts.c: Likewise.
28304 * tree-ssa-pre.c: Likewise.
28305 * tree-ssa-sccvn.c: Likewise.
28306 * tree-tailcall.c: Likewise.
28307 * tree-vect-generic.c: Likewise.
28308 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28309 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28310 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28311 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28312 * varasm.c: Likewise.
28313 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28314 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28316 * init-regs.c: Likewise.
28318 * omp-low.c: Likewise.
28319 * stack-ptr-mod.c: Likewise.
28320 * tree-ssa-reassoc.c: Likewise.
28321 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28322 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28324 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28325 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28326 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28327 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28328 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28329 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28330 * tree-ssa-phiopt.c: Likewise.
28331 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28332 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28333 * config/fr30/fr30.c: Likewise.
28334 * config/frv/frv.c: Likewise.
28335 * expr.c: Likewise.
28336 * final.c: Likewise.
28337 * optabs.c: Likewise.
28338 * passes.c: Likewise.
28339 * simplify-rtx.c: Likewise.
28340 * stmt.c: Likewise.
28341 * toplev.c: Likewise.
28342 * var-tracking.c: Likewise.
28343 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28344 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28345 * lower-subreg.c: Likewise.
28346 * postreload-gcse.c: Likewise.
28348 * reginfo.c: Likewise.
28349 * store-motion.c: Likewise.
28350 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28351 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28352 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28353 fixed-value.h hashtab.h statistics.h stmt.h.
28354 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28355 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28356 * except.c: Likewise.
28357 * explow.c: Likewise.
28358 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28359 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28361 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28362 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28363 * tree-ssa-structalias.c: Likewise.
28364 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28365 fixed-value.h insn-config.h real.h statistics.h.
28366 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28367 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28368 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28369 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28370 * cfgbuild.c: Likewise.
28371 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28372 fixed-value.h real.h rtl.h statistics.h stmt.h.
28373 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28374 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28375 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28376 fixed-value.h real.h statistics.h stmt.h.
28377 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28378 fixed-value.h real.h statistics.h stmt.h varasm.h.
28379 * cprop.c: Likewise.
28380 * modulo-sched.c: Likewise.
28381 * postreload.c: Likewise.
28382 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28383 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28384 statistics.h stmt.h varasm.h.
28385 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28386 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28387 rtl.h statistics.h stmt.h varasm.h.
28388 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28389 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28391 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28392 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28394 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28395 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28397 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28398 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28399 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28400 function.h real.h statistics.h stmt.h varasm.h.
28401 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28402 insn-config.h real.h statistics.h stmt.h.
28403 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28404 statistics.h stmt.h.
28405 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28406 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28407 statistics.h stmt.h varasm.h.
28408 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28409 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28410 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28411 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28412 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28413 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28414 statistics.h stmt.h varasm.h.
28415 * ipa-polymorphic-call.c: Likewise.
28416 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28417 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28418 statistics.h stmt.h.
28419 * config/c6x/c6x.c: Likewise.
28420 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28421 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28422 statistics.h stmt.h varasm.h.
28423 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28424 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28426 * ipa-split.c: Likewise.
28427 * tree-eh.c: Likewise.
28428 * tree-ssa-dce.c: Likewise.
28429 * tree-ssa-loop-niter.c: Likewise.
28430 * tree-vrp.c: Likewise.
28431 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28432 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28434 * config/nds32/nds32-fp-as-gp.c: Likewise.
28435 * config/nds32/nds32-intrinsic.c: Likewise.
28436 * config/nds32/nds32-isr.c: Likewise.
28437 * config/nds32/nds32-md-auxiliary.c: Likewise.
28438 * config/nds32/nds32-memory-manipulation.c: Likewise.
28439 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28440 * config/nds32/nds32-predicates.c: Likewise.
28441 * config/nds32/nds32.c: Likewise.
28442 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28443 fixed-value.h hashtab.h real.h statistics.h.
28444 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28445 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28446 * config/arm/arm.c: Likewise.
28447 * config/avr/avr.c: Likewise.
28448 * config/bfin/bfin.c: Likewise.
28449 * config/h8300/h8300.c: Likewise.
28450 * config/i386/i386.c: Likewise.
28451 * config/ia64/ia64.c: Likewise.
28452 * config/iq2000/iq2000.c: Likewise.
28453 * config/m32c/m32c.c: Likewise.
28454 * config/m32r/m32r.c: Likewise.
28455 * config/m68k/m68k.c: Likewise.
28456 * config/mcore/mcore.c: Likewise.
28457 * config/mep/mep.c: Likewise.
28458 * config/mips/mips.c: Likewise.
28459 * config/mn10300/mn10300.c: Likewise.
28460 * config/moxie/moxie.c: Likewise.
28461 * config/pa/pa.c: Likewise.
28462 * config/rl78/rl78.c: Likewise.
28463 * config/rx/rx.c: Likewise.
28464 * config/s390/s390.c: Likewise.
28465 * config/sh/sh.c: Likewise.
28466 * config/sparc/sparc.c: Likewise.
28467 * config/spu/spu.c: Likewise.
28468 * config/stormy16/stormy16.c: Likewise.
28469 * config/v850/v850.c: Likewise.
28470 * config/vax/vax.c: Likewise.
28471 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28472 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28473 * config/msp430/msp430.c: Likewise.
28474 * predict.c: Likewise.
28475 * value-prof.c: Likewise.
28476 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28477 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28478 * config/microblaze/microblaze.c: Likewise.
28479 * config/nios2/nios2.c: Likewise.
28480 * config/rs6000/rs6000.c: Likewise.
28481 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28482 insn-config.h real.h rtl.h statistics.h stmt.h.
28483 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28484 insn-config.h real.h statistics.h stmt.h.
28485 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28486 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28487 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28488 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28489 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28490 fixed-value.h real.h statistics.h stmt.h.
28491 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28492 fixed-value.h statistics.h stmt.h.
28493 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28496 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28498 * gengtype.c (create_user_defined_type): Workaround
28499 -Wmaybe-uninitialized false positives.
28500 * cse.c (fold_rtx): Likewise.
28501 * loop-invariant.c (gain_for_invariant): Likewise.
28503 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28505 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28506 set the memory attributes in all cases but clear MEM_EXPR if need be.
28508 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28510 PR tree-optimization/64434
28511 * cfgexpand.c (reorder_operands): New function.
28512 (expand_gimple_basic_block): Insert call of reorder_operands if
28515 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28517 * config/mips/micromips.md (*swp): Remove explicit parallel.
28518 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28519 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28520 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28521 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28522 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28523 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28524 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28525 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28526 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28527 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28528 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28529 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28530 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28531 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28532 (mips_wrdsp): Likewise.
28533 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28535 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28536 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28537 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28538 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28539 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28540 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28541 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28542 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28543 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28545 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28547 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28548 (mips_print_operand): Support 'y' to print exact log2 in decimal
28550 * config/mips/mips.h (ISA_HAS_LSA): New define.
28551 (ISA_HAS_DLSA): Likewise.
28552 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28553 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28555 2015-01-15 Martin Liska <mliska@suse.cz>
28558 * optc-save-gen.awk: Add support for array types.
28560 2015-01-15 Richard Biener <rguenther@suse.de>
28562 PR middle-end/64365
28563 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28564 for MEM_REF access functions with the same base can never partially
28567 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28569 * common.opt: New option -fstack-protector-explicit.
28570 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28571 (stack_protect_decl_phase): Handle stack_protect attribute for
28572 explicit stack protection requests.
28573 (expand_used_vars): Similarly.
28574 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28575 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28576 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28578 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28581 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28583 (sh_extending_set_of_reg): New struct.
28584 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28585 sh_remove_reg_dead_or_unused_notes): New Declarations.
28586 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28587 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28588 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28589 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28590 convert to insn_and_split and use new function sh_split_tst_subregs.
28592 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28594 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28596 (Optimization Options): Move -fuse-ld documentation to...
28597 (Link Options): ...here.
28599 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28601 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28603 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28604 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28605 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28606 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28607 instead of ZR for the memory operand of LL/SC.
28608 (compare_and_swap_12, sync_add<mode>): Likewise.
28609 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28610 (sync_new_<optab>_12, sync_nand_12): Likewise.
28611 (sync_old_nand_12, sync_new_nand_12): Likewise.
28612 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28613 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28614 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28615 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28616 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28617 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28618 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28619 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28620 * doc/md.texi (ZC): Update description.
28622 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28624 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28625 memory model is CONSUME.
28626 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28627 expand_builtin_atomic_store): Change invalid memory model errors to
28629 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28630 and issue warning for CONSUME.
28632 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28634 * lto-cgraph: Update function comments for
28635 lto_symtab_encoder_encode_*.
28637 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28639 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28641 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28643 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28644 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28645 lto_stream_offload_p instead.
28646 * lto-streamer.h (select_what_to_stream): Remove argument.
28647 * passes.c (ipa_write_summaries): Likewise.
28648 * tree-pass.h (ipa_write_summaries): Likewise.
28650 2015-01-14 Richard Biener <rguenther@suse.de>
28652 PR tree-optimization/59354
28653 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28654 groups larger than the slp group size as having gaps.
28656 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28658 PR middle-end/59448
28659 * builtins.c (get_memmodel): Promote consume to acquire always.
28661 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28664 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28667 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28670 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28672 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28673 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
28674 AVX512VBMI, as it implies AVX512BW.
28676 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28679 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
28680 (vec_unpacks_hi_v16sf): Ditto.
28682 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28684 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
28687 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28689 * doc/invoke.texi (mapcs): Mention deprecation.
28690 (mapcs-frame): Likewise.
28692 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
28695 * config/arm/arm.c (callee_saved_reg_p): Define.
28696 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
28697 register is callee saved instead of !call_used_regs[reg].
28698 (thumb1_compute_save_reg_mask): Likewise.
28700 2015-01-14 Hale Wang <hale.wang@arm.com>
28702 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
28705 2015-01-14 Richard Biener <rguenther@suse.de>
28708 * tree-inline.c (insert_debug_decl_map): Check destination
28709 function MAY_HAVE_DEBUG_STMTS.
28710 (insert_init_debug_bind): Likewise.
28711 (insert_init_stmt): Remove redundant check.
28712 (remap_gimple_stmt): Drop debug stmts if the destination
28713 function has var-tracking assignments disabled.
28715 2015-01-14 Martin Liska <mliska@suse.cz>
28717 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
28718 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28720 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28723 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28724 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28726 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28728 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28729 level from an ARCH; do not inject the default.
28730 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28731 MIPS_ISA_LEVEL_SPEC.
28732 (MIPS_ISA_NAN2008_SPEC): Update comment.
28733 (BASE_DRIVER_SELF_SPECS): Likewise.
28734 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28735 MIPS_DEFAULT_ISA_LEVEL_SPEC.
28736 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28737 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28738 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28740 2015-01-14 Richard Biener <rguenther@suse.de>
28742 PR tree-optimization/64493
28743 PR tree-optimization/64495
28744 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28745 assign the proper vectorized PHI to the inner loop exit PHIs.
28747 2015-01-14 Joey Ye <joey.ye@arm.com>
28749 * config/arm/arm.c (arm_compute_save_reg_mask):
28750 Do not save lr in case of tail call.
28751 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
28753 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
28755 * tree-vrp.c (check_array_ref): Emit more warnings
28756 for warn_array_bounds >= 2.
28757 * common.opt: New option -Warray-bounds=.
28758 * doc/invoke.texi: Document -Warray-bounds=.
28760 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
28762 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
28763 (mforbid-fp-as-gp): Remove.
28765 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
28766 (nds32_symbol_load_store_p): Remove.
28767 (nds32_fp_as_gp_check_available): Clean up implementation.
28768 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
28770 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28771 fp-as-gp and ex9 cases.
28773 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28775 * tree-profile.c (init_ic_make_global_vars): Drop workaround
28776 for bintuils bug 14342.
28777 (init_ic_make_global_vars): Likewise.
28778 (gimple_init_edge_profiler): Likewise.
28779 (gimple_gen_ic_func_profiler): Likewise.
28781 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28783 * ipa-inline.c (inline_small_functions): Swap the operands in
28786 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28789 * ipa-inline-analysis.c (node_growth_cache): Remove.
28790 (initialize_growth_caches): Do not initialize it.
28791 (free_growth_caches): Do not free it.
28792 (do_estimate_growth): Rename to ...
28793 (estimate_growth): ... this one; drop growth cache code.
28794 (growth_likely_positive): Always go the heuristics way.
28795 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28796 (reset_edge_caches): Do not reset node growth.
28797 (heap_edge_removal_hook): Do not maintain cache.
28798 (inline_small_functions): Likewise; strenghten sanity check.
28799 (ipa_inline): Do not maintain caches.
28800 * ipa-inline.h (node_growth_cache): Remove.
28801 (do_estimate_growth): Remove to ...
28802 (estimate_growth): this one; remove inline version.
28803 (reset_node_growth_cache): Remove.
28805 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28808 * ipa-inline.c (inline_small_functions): Update callee keys after
28809 resolving speculation
28810 (inline_small_functions): Always check monotonicity of the queue.
28812 2015-01-13 Marek Polacek <polacek@redhat.com>
28814 PR middle-end/64391
28815 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28817 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28819 PR rtl-optimization/64286
28820 * ree.c (combine_reaching_defs): Move part of comment earlier,
28821 remove !SCALAR_INT_MODE_P check.
28822 (add_removable_extension): Don't add vector mode
28823 extensions if all uses of the source register aren't the same
28826 2015-01-13 Renlin Li <renlin.li@arm.com>
28828 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28829 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28831 2015-01-13 Martin Liska <mliska@suse.cz>
28833 * ipa-icf.c (sem_function::equals_private): Call new functions
28834 cl_target_option_print_diff and cl_optimization_print_diff.
28835 * optc-save-gen.awk (cl_target_option_print_diff): New function.
28836 (cl_optimization_print_diff): Likewise.
28837 * opth-gen.awk: Likewise.
28839 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
28841 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28842 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28843 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28844 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28845 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28846 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28848 2015-01-13 Andrew Pinski <apinski@cavium.com>
28850 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28851 instead of src mode.
28853 2015-01-13 Richard Biener <rguenther@suse.de>
28856 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28859 2015-01-13 Andrew Pinski <apinski@cavium.com>
28861 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28863 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28865 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28867 PR middle-end/63974
28868 * cfgexpand.c (expand_computed_goto): Don't call
28869 convert_memory_address here.
28871 2015-01-13 Richard Biener <rguenther@suse.de>
28873 PR tree-optimization/64406
28874 * tree-loop-distibution.c (pass_loop_distribution::execute):
28875 Reset the SCEV hashtable if we distributed anything.
28877 2015-01-13 Richard Biener <rguenther@suse.de>
28879 PR tree-optimization/64404
28880 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28881 SLP types for CSEd loads.
28883 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28885 PR tree-optimization/64436
28886 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28887 merge of two symbolic numbers for a bitwise OR to ...
28888 (perform_symbolic_merge): This. Also fix computation of the range and
28889 end of the symbolic number corresponding to the result of a bitwise OR.
28891 2015-01-13 Richard Biener <rguenther@suse.de>
28893 PR tree-optimization/64568
28894 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28895 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28897 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28899 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28900 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28902 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28904 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28905 target-specific symbol_ref flag.
28906 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28907 resides in rodata section.
28908 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28909 (nds32_encode_section_info): New function.
28911 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28913 * config/nds32/nds32.md (call): Use pseudo instruction bal which
28914 clobbers TA_REGNUM if large code model is specified.
28915 (call_register): Likewise.
28916 (call_immediate): Likewise.
28917 (call_value): Likewise.
28918 (call_value_register): Likewise.
28919 (call_value_immediate): Likewise.
28921 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28923 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28924 (TARGET_CMODEL_MEDIUM): New macro.
28925 (TARGET_CMODEL_LARGE): New macro.
28926 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28927 code model setting in assembly code.
28929 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28931 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28932 Remove MASK_GP_DIRECT flag.
28933 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28934 one of the multilib default options.
28935 * config/nds32/nds32.opt (mgp-direct): Remove.
28936 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28937 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
28939 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28941 * config/nds32/nds32.opt (mcmodel): Add new option.
28942 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28943 to describe code model.
28945 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
28948 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28950 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
28952 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28953 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28954 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28955 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28956 __builtin_sh_set_fpscr.
28958 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28960 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28961 after a funtion name just to indicate it is a function.
28962 ([-fsanitize-undefined-trap-on-error]): Likewise.
28963 ([-fdbg-cnt=]): Likewise.
28964 ([-mmemcpy]): Likewise.
28965 ([-mflush-func]): Likewise.
28966 ([-msynci]): Likewise.
28968 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28970 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28973 2015-01-12 Jakub Jelinek <jakub@redhat.com>
28975 PR tree-optimization/64563
28976 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28977 instead of != VR_VARYING.
28980 * config/i386/i386.c (ix86_expand_prologue): Add
28981 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28983 PR tree-optimization/64454
28984 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28985 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28986 for signed or [0, op1 - 1] for unsigned modulo.
28987 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28988 even if op1 does not satisfy integer_pow2p.
28991 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28993 2015-01-12 Jeff Law <law@redhat.com>
28996 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28997 (trunchiqi2, truncsihi2): Similarly.
28999 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29000 rather than calling F.
29002 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29004 * tsan.c (instrument_expr): Use force_gimple_operand.
29005 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29007 2015-01-12 Richard Biener <rguenther@suse.de>
29009 PR tree-optimization/64530
29010 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29013 2015-01-12 Richard Biener <rguenther@suse.de>
29015 PR middle-end/64357
29016 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29019 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29021 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29022 Cortex-A17 tuning parameters.
29023 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29025 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29027 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29028 * config/arm/arm.c (arm_macro_fusion_p): New function.
29029 (arm_macro_fusion_pair_p): Likewise.
29030 (TARGET_SCHED_MACRO_FUSION_P): Define.
29031 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29032 (ARM_FUSE_NOTHING): Likewise.
29033 (ARM_FUSE_MOVW_MOVT): Likewise.
29034 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29035 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29036 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29037 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29038 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29039 arm_cortex_a5_tune): Specify fuseable_ops value.
29041 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29044 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29045 test for PIE with copy reloc.
29046 * configure: Regenerated.
29048 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29050 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29052 (arm_tls_descseq_addr): Likewise.
29053 (arm_gen_movmemqi): Likewise.
29054 (arm_expand_epilogue_apcs_frame): Likewise.
29055 (arm_expand_epilogue): Likewise.
29056 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29059 2015-01-12 Martin Liska <mliska@suse.cz>
29062 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29063 volatility for correct operands.
29065 2015-01-12 Martin Liska <mliska@suse.cz>
29067 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29068 indication that a function is not leaf.
29069 (sem_function::compare_polymorphic_p): Likewise.
29071 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29073 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29074 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29075 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29076 fold-const.h, tree-check.h.
29078 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29082 * ipa-inline.c (compute_uninlined_call_time,
29083 compute_inlined_call_time): Use counts for extra precision when
29085 (big_speedup_p): Fix formating.
29086 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29087 (relative_time_benefit): Remove.
29088 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29089 merge guessed and read profile paths.
29090 (inline_small_functions): Count only !optimize_size functions into
29091 initial size; be more lax about sanity check when profile is used;
29092 be sure to update inlined function profile when profile is read.
29094 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29097 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29098 cost when edge becomes direct.
29099 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29100 is resolved or when introducing new speculation.
29102 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29106 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29107 '||' to fix typo issue.
29109 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29110 accept and return NULL.
29112 2015-01-12 Martin Liska <mliska@suse.cz>
29114 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29115 file for being inlined.
29116 (cgraph_set_edge_callee): Delete.
29117 (cgraph_edge::redirect_callee): Move function to header file
29119 (cgraph_edge::make_direct): Use new function.
29120 (cgraph_edge::dump_edge_flags): New function created from
29121 static dump_edge_flags function.
29122 (cgraph_node::dump): Use new function.
29123 (cgraph_edge::verify_count_and_frequency): New function created
29124 from verify_edge_count_and_frequency.
29125 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29126 from verify_edge_corresponds_to_fndecl.
29127 (verify_edge_corresponds_to_fndecl): Delete.
29128 (cgraph_node::verify_node): Use new function.
29129 * cgraph.h (cgraph_edge::set_callee): New function.
29130 (cgraph_edge::dump_edge_flags): Likewise.
29131 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29133 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29135 * ipa-utils.c (estimate_function_body_sizes): Do not
29136 free node params when called late with early=true.
29138 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29140 * doc/md.texi (Instruction Patterns): Rewrite text for
29142 (Example): Likewise.
29144 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29146 * doc/invoke.texi (Option Summary): Break long lines.
29147 [(-fdiagnostics-color)]: Put long literal in @smallexample
29149 [(-fsanitize-recover)]: Likewise.
29150 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29151 [(-ffast-math)]: Likewise.
29152 [(--param max-inline-insns-recursive)]: Likewise.
29153 [(--param max-inline-recursive-depth)]: Likewise.
29154 [(-mno-text-section-literals)]: Likewise.
29156 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29158 * doc/install.texi: Update for libgomp being renamed from "GNU
29159 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29161 * doc/sourcebuild.texi: Likewise.
29163 2015-01-10 Anthony Green <green@moxielogic.com>
29165 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29166 mul.x availability for moxiebox configuration.
29168 2015-01-09 Anthony Green <green@moxielogic.com>
29170 * config/moxie/moxie.md: Tabify assembly output.
29172 2015-01-09 Anthony Green <green@moxielogic.com>
29174 * config/moxie/moxie.md (CC_REG): Correct register definition.
29176 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29178 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29179 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29182 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29184 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29186 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29187 Jakub Jelinek <jakub@redhat.com>
29189 PR middle-end/64412
29190 * lto-streamer.h (lto_stream_offload_p): New declaration.
29191 * lto-streamer.c (lto_stream_offload_p): New variable.
29192 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29193 at the same time as section_name_prefix.
29194 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29195 if lto_stream_offload_p.
29196 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29197 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29198 (write_ts_function_decl_tree_pointers): Don't
29199 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29200 * tree-streamer-in.c (unpack_value_fields): Don't stream
29201 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29202 (lto_input_ts_function_decl_tree_pointers): Don't stream
29203 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29204 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29205 instead of section_name_prefix string comparisons.
29207 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29209 PR rtl-optimization/64536
29210 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29213 2015-01-09 Michael Collison <michael.collison@linaro.org>
29215 PR tree-optimization/64322
29216 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29217 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29219 2015-01-09 Tom de Vries <tom@codesourcery.com>
29221 PR rtl-optimization/64539
29222 * regcprop.c (kill_clobbered_values): Factor out of ...
29223 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29224 instead of note_stores with kill_clobbered_value.
29226 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29228 * ginclude/unwind-arm-common.h: Revert previous commit.
29230 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29232 * config.gcc (arm*-*-freebsd*): New configuration.
29233 * config/arm/freebsd.h: New file.
29234 * config.host: Add extra components for arm*-*-freebsd*.
29235 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29236 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29238 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29240 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29242 * config/rs6000/t-rtems: Add e6500 multilibs.
29244 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29246 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29249 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29251 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29252 MULTILIB_EXCEPTIONS.
29254 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29256 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29257 MULTILIB_EXCEPTIONS.
29259 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29261 * config/arm/t-rtems-eabi: Rename to...
29262 * config/arm/t-rtems: ...this.
29263 * config/arm/rtems-eabi.h: Rename to...
29264 * config/arm/rtems.h: ...this.
29265 * config.gcc (arm*-*-rtems*): Reflect changes above.
29267 2015-01-09 Richard Biener <rguenther@suse.de>
29269 PR tree-optimization/64410
29270 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29272 (execute_update_addresses_taken): Deal with that.
29273 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29274 loads/stores for complex variables.
29276 2015-01-09 Martin Liska <mliska@suse.cz>
29278 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29280 (func_checker::compare_memory_operand): New function.
29281 (func_checker::compare_operand): Split case to newly
29283 (func_checker::compare_cst_or_decl): New function.
29284 (func_checker::compare_gimple_call): Identify
29286 (func_checker::compare_gimple_assign): Likewise.
29287 * ipa-icf-gimple.h: New function.
29289 2015-01-09 Martin Liska <mliska@suse.cz>
29292 * sreal.c (sreal::dump): Change unsigned format to signed for
29294 (sreal::to_double): Replace exp2 with scalbln.
29296 2015-01-09 Martin Liska <mliska@suse.cz>
29298 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29299 * ipa-icf.c (sem_function::equals_private): Add support for target and
29300 (sem_item_optimizer::merge_classes): Remove redundant function
29301 optimization flags comparison.
29302 * tree.h (target_opts_for_fn): New function.
29304 2015-01-09 Tom de Vries <tom@codesourcery.com>
29306 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29308 2015-01-09 Kito Cheng <kito@0xlab.org>
29310 PR rtl-optimization/64348
29311 * lra-constraints.c (split_reg): Fix caller-save store/restore
29312 instruction generation.
29314 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29316 PR gcov-profile/61790
29317 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29318 long long. Fallback to int64_t if host doesn't have long long and
29319 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29321 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29323 PR tree-optimization/63989
29324 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29325 from 1000 to 10000.
29326 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29327 (get_stridx): If we don't have a record for certain SSA_NAME,
29328 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29329 constant offset, call get_stridx_plus_constant.
29330 (get_stridx_plus_constant): New function.
29331 (zero_length_string): Don't use get_stridx here.
29334 PR middle-end/64388
29335 * dse.c (struct insn_info): Mention frame_read set also
29336 before reload for tail calls on some targets.
29337 (scan_insn): Revert 2014-12-22 change. Set frame_read
29338 also before reload for tail calls if
29339 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29340 instead of add_non_frame_wild_read for non-const/memset
29341 tail calls after reload.
29343 2015-01-08 Jason Merrill <jason@redhat.com>
29345 * ubsan.c (do_ubsan_in_current_function): New.
29346 (pass_ubsan::gate): Use it.
29347 * ubsan.h: Declare it.
29348 * convert.c (convert_to_integer): Use it.
29350 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29353 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29354 compare_code when it is unconditionally overwritten afterwards.
29355 Use ix86_reverse_condition instead of reverse_condition. Don't
29356 change code if *reverse_condition* returned UNKNOWN and don't
29357 swap ct/cf and negate diff in that case.
29359 2015-01-08 Mike Stump <mikestump@comcast.net>
29361 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29362 (pass_tsan_O0::gate): Likewise.
29363 * extend.texi (Function Attributes): Add no_sanitize_thread
29366 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29368 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29369 for registering builtins.
29370 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29371 add -fopenmp to the argv_obstack used when invoking
29372 compile_for_target.
29374 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29375 add "-m32" or "-m64" to argv_obstack.
29376 (generate_host_descr_file): Likewise, when invoking host_compiler.
29377 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29380 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29382 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29385 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29388 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29389 constant load if constant operand fits into I08.
29391 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29394 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29395 and TREE_THIS_VOLATILE for MEM_REFs.
29396 (build5_stat): Fix up initialization of TREE_READONLY and
29397 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29399 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29402 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29403 of r for the second alternative of the destination operand.
29405 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29408 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29410 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29412 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29414 ([-fivar-visibility], [-fvisibility]): Likewise.
29416 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29418 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29419 the file where @code, @command, etc is more appropriate.
29421 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29423 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29424 of -mrecip= documentation.
29426 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29429 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29430 correct reload handler if -m32 -mpowerpc64 is used.
29432 2015-01-06 Tom de Vries <tom@codesourcery.com>
29434 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29436 2015-01-08 Christian Bruel <christian.bruel@st.com>
29439 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29441 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29443 PR tree-optimization/63259
29444 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29445 if optab exists for 16bit byteswap.
29447 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29449 * opts.c (common_handle_option): Add support for
29450 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29451 * doc/invoke.texi: Document -fno-sanitize=all,
29452 -f{,no-}sanitize-recover=all. Document that
29453 -fsanitize=float-cast-overflow is not enabled
29454 by -fsanitize=undefined. Fix up documentation
29455 of -f{,no-}sanitize-recover.
29457 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29459 * config.gcc: Add Visium support.
29460 * configure.ac: Likewise.
29461 * configure: Regenerate.
29462 * doc/extend.texi (interrupt attribute): Add Visium.
29463 * doc/invoke.texi: Document Visium options.
29464 * doc/install.texi: Document Visium target.
29465 * doc/md.texi: Document Visium constraints.
29466 * common/config/visium: New directory.
29467 * config/visium: Likewise.
29469 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29471 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29472 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29474 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29476 * combine.c (combine_validate_cost): Do not count the cost of a
29477 split I2 twice. Do not display it twice in the dump, either.
29479 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29481 Revert parts of r219199.
29482 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29484 ([-Wtraditional]): Restore markup on <limits.h>.
29486 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29489 * doc/invoke.texi: Document -Wsuggest-override.
29491 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29493 PR rtl-optimization/64287
29494 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29495 (process_options): Disable flag_ipa_ra if profiling.
29497 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29499 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29501 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29503 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29504 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29505 put under #if TARGET_LOOPS guard.
29507 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29509 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29511 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29513 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29514 * rtl.h (refers_to_regno_p): Add overload.
29516 * bt-load.c: Likewise.
29517 * combine.c: Likewise.
29518 * df-scan.c: Likewise.
29519 * sched-deps.c: Likewise.
29520 * config/s390/s390.c: Likewise.
29521 * config/m32r/m32r.c: Likewise.
29522 * config/rs6000/spe.md: Likewise.
29523 * config/rs6000/rs6000.c: Likewise.
29524 * config/pa/pa.c: Likewise.
29525 * config/stormy16/stormy16.c: Likewise.
29526 * config/cris/cris.c: Likewise.
29527 * config/arc/arc.md: Likewise.
29528 * config/arc/arc.c: Likewise.
29529 * config/sh/sh.md: Likewise.
29530 * config/sh/sh.c: Likewise.
29531 * config/frv/frv.c: Likewise.
29533 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29536 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29537 call as cleanup of the whole body.
29538 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29539 * tsan.c (replace_func_exit): New function.
29540 (instrument_func_exit): Moved earlier.
29541 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29542 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29544 (tsan_pass): Don't call instrument_func_exit.
29545 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29546 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29550 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29551 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29552 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29553 if the result is integer_zerop, return NULL_TREE.
29554 * convert.c (convert_to_integer): Pass expr as ARG.
29556 PR tree-optimization/64465
29557 * tree-inline.c (redirect_all_calls): During inlining
29558 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29559 changed the stmt to a non-throwing call.
29561 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29563 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29564 etc markup throughout the file.
29566 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29568 Enable experimental TSAN support for Ada.
29569 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29571 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29573 PR tree-optimization/64494
29574 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29575 clear SSA_NAME_ANTI_RANGE_P flag.
29577 2015-01-05 Marek Polacek <polacek@redhat.com>
29579 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29581 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29583 Update copyright years.
29585 * gcc.c (process_command): Update copyright notice dates.
29586 * gcov-dump.c: Ditto.
29588 * doc/cpp.texi: Bump @copying's copyright year.
29589 * doc/cppinternals.texi: Ditto.
29590 * doc/gcc.texi: Ditto.
29591 * doc/gccint.texi: Ditto.
29592 * doc/gcov.texi: Ditto.
29593 * doc/install.texi: Ditto.
29594 * doc/invoke.texi: Ditto.
29596 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29598 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29600 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29602 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29603 ([-Wabi]): Likewise.
29604 ([-fmessage-length]): Likewise.
29605 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29606 ([-Wno-discarded-qualifiers]): Likewise.
29607 ([-Wnodiscarded-array-qualifiers]): Likewise.
29608 ([-Wno-virtual-move-assign]): Likewise.
29609 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29610 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29611 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29612 ([-fsanitize-undefined-trap-on-error]): Likewise.
29613 ([-floop-interchange]): Likewise.
29614 ([-ftree-coalesce-inlined-vars]): Likewise.
29615 ([-fvect-cost-model]): Likewise.
29616 ([-flto]): Likewise.
29617 ([--param]): Likewise.
29618 (Spec Files): Likewise.
29619 ([-mstrict-align]): Likewise.
29620 ([-mfix-cortex-a53-835769]): Likewise.
29621 ([-march], [-mtune]): Likewise.
29622 ([-mpic-register]): Likewise.
29623 ([-munaligned-access]): Likewise.
29624 ([-msp8]): Likewise.
29625 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29626 (AVR Built-in Macros): Likewise.
29627 ([-mpreferred-stack-boundary]): Likewise.
29628 ([-mtune-crtl]): Likewise.
29629 ([-mashf]): Likewise.
29630 ([-mmcu=]): Likewise.
29631 ([-minrt]): Likewise.
29632 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29633 ([-mupper-regs]): Likewise.
29634 ([-matomic-model]): Likewise.
29635 ([-mdiv]): Likewise.
29636 ([-mzdcbranch]): Likewise.
29637 ([-mdisable-callt]): Likewise.
29638 ([-msoft-float]): Likewise.
29639 ([-m8byte-align]): Likewise.
29640 ([-fstack-reuse]): Likewise.
29642 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29644 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29645 Fix markup, light copy-editing.
29646 ([-fauto-profile]): Rewrite to fix formatting and content
29649 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29651 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29652 Copy-edit description.
29653 ([-fisolate-erroneous-paths-attribute]): Likewise.
29654 * common.opt (fisolate-erroneous-paths-dereference):
29655 Copy-edit description.
29656 (fisolate-erroneous-paths-attribute): Likewise.
29658 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29660 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29663 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29665 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29666 ([-fvtv-debug]): Likewise.
29667 ([-Wc++-compat]): Likewise.
29668 ([-Wc++11-compat]): Likewise.
29669 ([-Wc++14-compat]): Likewise.
29670 ([-Wno-sized-deallocation]): Likewise.
29671 ([-femit-class-debug-always]): Likewise.
29672 ([-femit-struct-debug-detailed]): Likewise.
29673 ([-fno-keep-inline-dllexport]): Likewise.
29674 ([-fira-algorithm]): Likewise.
29675 ([-fira-region]): Likewise.
29676 ([-flra-remat]): Likewise.
29677 ([-fipa-ra]): Likewise.
29678 ([-fhoist-adjacent-loads]): Likewise.
29679 ([-fisolate-erroneous-paths-dereference]): Likewise.
29680 ([-fisolate-erroneous-paths-attribute]): Likewise.
29681 ([-ftree-switch-conversion]): Likewise.
29682 ([-ftree-tail-merge]): Likewise.
29683 ([-ftree-loop-if-convert]): Likewise.
29684 ([-ftree-loop-if-convert-stores]): Likewise.
29685 ([-ftree-loop-distribution]): Likewise.
29686 ([-ftree-loop-distribute-patterns]): Likewise.
29687 ([-flto-compression-level]): Likewise.
29688 ([-flto-report]): Likewise.
29689 ([-flto-report-wpa]): Likewise.
29690 ([-fuse-linker-plugin]): Likewise.
29691 ([-mfix-cortex-a53-835769]): Likewise.
29692 ([-mno-fix-cortex-a53-835769]): Likewise.
29693 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
29694 explicit listing; add a note to the discussion indicating they
29695 exist. Reorder table to group similar options. Add missing
29696 @opindex entries. Add @need commands throughout the table to
29697 allow it to be split across multiple pages.
29698 ([-m8bit-idiv]): Fix @opindex.
29699 ([-mavx256-split-unaligned-load]): Likewise.
29700 ([-mavx256-split-unaligned-store]): Likewise.
29701 ([-mstack-protector-guard]): Likewise.
29702 ([-mcpu=]): Likewise.
29703 ([-mcpu]): Likewise.
29704 ([-mpointer-size=]): Likewise.
29706 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
29708 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
29709 instead of `m' constraint. Likewise for unnamed movb comparison
29710 patterns using reg_before_reload_operand predicate.
29711 * config/pa/predicates.md (reg_before_reload_operand): Tighten
29712 predicate to reject register index and LO_SUM DLT memory forms
29715 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29717 * doc/invoke.texi (Option Summary): Fix spelling of
29718 -fdevirtualize-at-ltrans.
29719 ([-fdevirtualize]): Fix markup.
29720 ([-fdevirtualize-speculatively]): Fix typo.
29721 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
29722 implementor-speaky.
29723 * common.opt (fdevirtualize-at-ltrans): Likewise.
29724 * ipa-devirt.c: Fix typos in comments throughout the file.
29725 (ipa_devirt): Fix typos in format strings for dump output.
29727 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29729 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29730 discussion of defaults, light copy-editing.
29732 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29734 * tsan.c (instrument_expr): corrected previous checkin.
29736 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29738 Instrument bit field and unaligned accesses for TSAN.
29739 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29740 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29741 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29742 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29743 unaligned memory regions.
29745 2015-01-01 Anthony Green <green@moxielogic.com>
29747 * config/moxie/predicates.md (moxie_general_movsrc_operand):
29748 Restrict move source register offsets to 16 bits.
29750 Copyright (C) 2015 Free Software Foundation, Inc.
29752 Copying and distribution of this file, with or without modification,
29753 are permitted in any medium without royalty provided the copyright
29754 notice and this notice are preserved.