Fix type in the changelog entry,
[official-gcc.git] / gcc / ChangeLog
blob910fd4f3d7ad8ede836f4965497abef29f3ea0c8
1 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3         PR target/61578
4         * lra-constarints.c (match_reload): Check presence of the input pseudo
5         in the output operand.
7 2015-09-25  Tobias Burnus  <burnus@net-b.de>
9         * doc/invoke.texi (-fsanitize): Minor wording tweak.
11 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13         * doc/invoke.texi (-fsanitize): Update URLs.
15 2015-09-25  Teresa Johnson  <tejohnson@google.com>
17         * opts.c (finish_options): Unset -freorder-blocks-and-partition
18         if not using profile.
20 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22         PR pretty-print/67567
23         * pretty-print.c (pp_string): Add gcc_checking_assert.
24         * pretty-print.h (output_buffer_append_r): Likewise.
26 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
28         PR target/67675
29         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
30         addr2 individually.  Don't emit logical or insn if one is known to
31         be aligned approriately.
32         (sh_expand_cmpnstr): Likewise.
34 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
36         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
37         __builtin_aarch64_fp[sc]r arguments into a register.
39 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
41         * config.gcc (x86_archs): Replace lakemount with lakemont.
42         (with_cpu): Likewise.
43         (with_arch): Likewise.
44         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
45         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
46         __tune_lakemount__ with __tune_lakemont__.
47         * config/i386/i386.c (lakemount_cost): Renamed to ...
48         (lakemont_cost): This.
49         (m_LAKEMOUNT): Renamed to ...
50         (m_LAKEMONT): This.
51         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
52         (processor_target_table): Replace "lakemount" with "lakemont".
53         (processor_alias_table): Likewise.
54         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
55         PROCESSOR_LAKEMONT.
56         (ix86_adjust_cost): Likewise.
57         (ia32_multipass_dfa_lookahead): Likewise.
58         * config/i386/i386.h (processor_type): Likewise.
59         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
60         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
61         Lakemount with Lakemont.
63 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
65         * config.gcc (x86_archs): Replace iamcu with lakemount.
66         (with_cpu): Likewise.
67         (with_arch): Likewise.
68         * doc/invoke.texi: Likewise.
69         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
70         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
71         __tune_iamcu__ with __tune_lakemount__.
72         * config/i386/i386.c (iamcu_cost): Renamed to ...
73         (lakemount_cost): This.
74         (m_IAMCU): Renamed to ...
75         (m_LAKEMOUNT): This.
76         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
77         (processor_target_table): Replace "iamcu" with "lakemount".
78         (processor_alias_table): Likewise.
79         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
80         PROCESSOR_LAKEMOUNT.
81         (ix86_adjust_cost): Likewise.
82         (ia32_multipass_dfa_lookahead): Likewise.
83         * config/i386/i386.h (processor_type): Likewise.
84         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
86 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
88         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
89         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
90         Declare.
91         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
92         (pa_expand_compare_and_swap_loop): New.
93         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
94         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
95         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
96         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
97         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
98         Revise.
100 2015-09-24  Michael Collison  <michael.collison@linaro.org>
102         PR other/57195
103         * read-md.c (read_name): Allow mode iterators inside angle
104         brackets in rtl expressions.
106 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
108         PR target/61578
109         * ira-color.c (update_allocno_cost): Add parameter.
110         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
111         parameter.
113 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
115         PR driver/67640
116         * opts-common.c (prune_options): Discard all -fdiagnostics-color
117         but the last one, which is moved to the front to be processed
118         first.
119         * opts.c (enable_warning_as_error): Reject options that do not
120         control warnings.
122 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
124         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
126 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
128         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
129         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
130         (aarch64_cannot_force_const_mem): Likewise.
131         (aarch64_classify_address): Likewise.
132         (aarch64_classify_symbolic_expression): Likewise.
133         (aarch64_print_operand): Likewise.
134         (aarch64_classify_symbol): Likewise.
135         (aarch64_mov_operand_p): Likewise.
136         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
137         (aarch64_mov_operand): Likewise.
139 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
141         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
142         for info->spe_gp_size.
144 2015-09-24  Richard Biener  <rguenther@suse.de>
146         PR lto/67699
147         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
148         abstract origins.
150 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
152         * tree-object-size.c (plus_stmt_object_size)
153         (cond_expr_object_size): Change the formal parameters from gimple
154         to gimple *.
155         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
156         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
157         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
159 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
161         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
162         Check for ld -type pie on Solaris 11.x and 12.
163         * configure: Regenerate.
164         * config.in: Regenerate.
166         * gcc.c (LD_PIE_SPEC): Allow redefinition.
168         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
169         (STARTFILE_SPEC): Use it.
170         (ENDFILE_CRTEND_SPEC): Define.
171         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
172         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
173         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
174         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
175         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
176         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
177         (ENDFILE_ARCH_SPEC): Define.
178         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
180 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
182         * configure.ac (gcc_cv_solaris_crts): New test.
183         * configure. Regenerate.
184         * config.in: Regenerate.
185         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
186         HAVE_SOLARIS_CRTS variant.
188 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
190         * tree-inline.h (count_insns_seq): Delete prototype.
191         (estimate_num_insns_seq): Define prototype.
192         * tree-inline.c (count_insns_seq): Delete.
193         (estimate_num_insns_seq): Remove static qualifier.
194         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
195         with estimate_num_insns_seq.
197 2015-09-24  Richard Biener  <rguenther@suse.de>
199         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
200         members.
201         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
202         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
203         offset.
204         (ao_ref_init_from_vn_reference): Record clique and base in the
205         built base.
206         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
208 2015-09-24  Richard Biener  <rguenther@suse.de>
210         PR tree-optimization/48885
211         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
212         as not including any restrict tags from other pointers.
214 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
216         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
217         character when appending to offload_targets.
219         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
220         offload targets by commas, not colons.
221         * config.in: Regenerate.
222         * configure: Likewise.
223         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
224         instead of setting up the default offload targets here...
225         (process_command): ..., do it here.
226         libgomp/
227         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
228         targets are separated by commas.
229         * config.h.in: Regenerate.
231 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
232             Nathan Sidwell  <nathan@codesourcery.com>
234         * omp-low.h (omp_reduction_init_op): Declare.
235         * omp-low.c (omp_reduction_init_op): New, broken out of ...
236         (omp_reduction_init): ... here.  Call it.
237         * tree-parloops.c (initialize_reductions): Use
238         omp_reduction_init_op.
240 2015-09-23   Richard Biener  <rguenther@suse.de>
242         PR middle-end/67662
243         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
244         undefined overflow unless they will cancel out.
246 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
248         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
249         insn emit.
251 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
253         PR c/49655
254         * opts.h (write_langs): Declare.
255         * opts-global.c (write_langs): Make it extern.
257 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
259         PR target/67391
260         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
261         overlapping regs when matching the pattern.
263 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
265         * config/aarch64/aarch64-simd.md
266         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
267         (aarch64_float_truncate_hi_v4sf_le): New.
268         (aarch64_float_truncate_hi_v4sf_be): Likewise.
270 2015-09-23  Richard Biener  <rguenther@suse.de>
272         * tree-ssa-structalias.c (intra_create_variable_infos): Build
273         representatives for all restrict qualified pointer destinations.
275 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
277         * config/i386/i386.md (define_code_attr mshift): New.
278         (define_mode_iterator SWI1248_AVX512BW): Rename ...
279         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
280         only.
281         (define_insn "*k<logic><mode>"): Use new iterator name.
282         (define_insn "*<mshift><mode>3"): New.
284 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
286         PR middle-end/67649
287         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
288         mark the block as accessible.
290 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
292         * function.c (thread_prologue_and_epilogue_insns): Delete
293         orig_entry_edge argument to try_shrink_wrapping.
294         * shrink-wrap.c (can_get_prologue): New function.
295         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
296         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
297         can_get_prologue where needed.  Remove code that finds a single
298         edge for the prologue.  Remove code that tests if any reg clobbered
299         by the prologue is live on the prologue edge.  Remove code that finds
300         the new prologue edge after duplicating blocks.  Make a new prologue
301         block and edge.
302         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
304 2015-09-22  Jeff Law  <law@redhat.com>
306         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
307         behavior.
309 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
311         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
312         -Wtemplates, -Wnamespaces): Document.
314 2015-09-22  Tom de Vries  <tom@codesourcery.com>
316         PR tree-optimization/67671
317         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
318         pointer references as restrict.
320 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
322         * config/nios2/nios2.c (nios2_legitimize_address): When handling
323         'reg + reloc' cases, allow first operand to be non-REG, and use
324         force_reg() to enforce address pattern.
326 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
328         PR target/67480
329         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
330         (define_mode_iterator VI12_AVX_AVX512F): New.
331         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
332         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
333         (define_insn "*<code><mode>3"): ... Into new pattern using
334         VI12_AVX_AVX512F iterators without masking.
336 2015-09-22  Kirill Yukhin <kirill.yukhin@intel.com>
338         * config.gcc: Support "skylake-avx512".
339         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
340         PROCESSOR_SKYLAKE_AVX512.
341         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
342         (processor_target_table): Add "skylake-avx512".
343         (PTA_SKYLAKE_AVX512): Define.
344         (ix86_option_override_internal): Add "skylake_avx512".
345         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
346         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
347         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
348         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
349         * doc/invoke.texi (skylake-avx512): New.
351 2015-09-22  Kirill Yukhin <kirill.yukhin@intel.com>
353         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
354         operand in pattern.
355         (define_insn "kunpcksi"): Ditto.
356         (define_insn "kunpckdi"): Ditto.
358 2015-09-22  Kirill Yukhin <kirill.yukhin@intel.com>
360         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
361         iterator instead of fixed modes.
363 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
365         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
366         Adjust declaration.
367         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
368         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
369         out_result.  Update to support update-fetch operations.
370         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
371         Adjust for change to aarch64_gen_atomic_ldop.
372         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
373         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
374         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
375         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
376         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
378 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
380         * config/aarch64/aarch64-protos.h
381         (aarch64_atomic_ldop_supported_p): Declare.
382         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
383         (enum aarch64_atomic_load_op_code): New.
384         (aarch64_emit_atomic_load_op): New.
385         (aarch64_gen_atomic_ldop): Update to support load-operate
386         patterns.
387         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
388         to an expander.
389         (aarch64_atomic_<atomic_optab><mode>): New.
390         (aarch64_atomic_<atomic_optab><mode>_lse): New.
391         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
392         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
393         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
395 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
397         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
398         (UNSPECV_ATOMIC_LDOP_OR): New.
399         (UNSPECV_ATOMIC_LDOP_BIC): New.
400         (UNSPECV_ATOMIC_LDOP_XOR): New.
401         (UNSPECV_ATOMIC_LDOP_PLUS): New.
402         (ATOMIC_LDOP): New.
403         (atomic_ldop): New.
404         (aarch64_atomic_load<atomic_ldop><mode>): New.
406 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
408         * config/aarch64/aarch64.md
409         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
410         pattern.
412 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
414         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
415         Declare.
416         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
417         (aarch64_gen_atomic_ldop): New.
418         (aarch64_split_atomic_op): Fix whitespace and add a comment.
419         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
420         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
421         (atomic_exchange<mode>): Replace with an expander.
422         (aarch64_atomic_exchange<mode>): New.
423         (aarch64_atomic_exchange<mode>_lse): New.
424         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
425         (aarch64_atomic_swp<mode>): New.
427 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
429         * tree-inline.c (expand_call_inline): Use inform for extra note.
430         Do not give a note with UNKNOWN_LOCATION.
431         Replace input_location with gimple_location (stmt).
432         Use true/false instead of TRUE/FALSE.
434 2015-09-22  Tom de Vries  <tom@codesourcery.com>
436         PR tree-optimization/67666
437         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
438         with single field non-conservative.
440 2015-09-21  David S. Miller  <davem@davemloft.net>
442         PR/67622
443         Revert:
444         2015-09-11  David S. Miller  <davem@davemloft.net>
446         * config/sparc/constraints.md: Make "U" constraint a real register
447         constraint.
448         * config/sparc/sparc.c (TARGET_LRA_P): Define.
449         (D_MODES, DF_MODES): Add missing cast.
450         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
451         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
452         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
453         cost to 8.
454         * config/sparc/sparc.h (PROMOTE_MODE): Define.
455         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
456         provide these insn when flag_pic.
458         2015-09-17  David S. Miller  <davem@davemloft.net>
460         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
461         Declare.
462         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
463         function.
464         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
465         (HARD_REGNO_CALLER_SAVE_MODE): Define.
466         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
467         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
468         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
469         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
470         provide when flag_pic.
472 2015-09-21  Jeff Law  <law@redhat.com>
474         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
475         behavior.
477 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
479         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
481 2015-09-21  Richard Biener  <rguenther@suse.de>
483         * passes.c (rest_of_decl_compilation): Do not call
484         dwarf2out_early_global_decl for aliases.
486 2015-09-21  Richard Biener  <rguenther@suse.de>
488         PR debug/67664
489         * dwarf2out.c (add_location_or_const_value_attribute): Remove
490         attribute parameter.  Early exit if either DW_AT_const_value
491         or DW_AT_location are present already.
492         (gen_variable_die): Adjust caller.
493         (dwarf2out_late_global_decl): Likewise.
495 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
497         PR target/67657
498         * config/sh/sh.c (sh_remove_overlapping_post_inc,
499         sh_peephole_emit_move_insn): Add new functions.
500         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
501         sh_peephole_emit_move_insn): Declere them.
502         * config/sh/sh.md: Use them in various peephole2 patterns.
504 2015-09-21  Richard Biener  <rguenther@suse.de>
506         PR middle-end/67651
507         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
508         address with -fno-delete-null-pointer-checks.
510 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
512         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
513         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
514         (reduc_uplus_v16qi): Remove.
516         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
517         (reduc_<VEC_reduc_name>_v2df): Remove.
518         (reduc_<VEC_reduc_name>_v4sf): Remove.
519         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
521         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
522         gen_ function by removing * prefix.
523         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
525 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
527         PR middle-end/60832
528         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
529         Print i_bound without converting it to a tree.
531 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
533         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
534         operands[4] operands[5] swap with std::swap, removed tmp variable.
535         (arm_evpc_neon_vzip): Replaced in0/in1 and
536         out0/out1 swaps with std::swap, removed x variable.
537         (arm_evpc_neon_vtrn): Replaced in0/int1 and
538         out0/out1 swaos with std::swap, removed x variable.
539         (arm_expand_vec_perm_const_1): Replaced
540         d->op0/d->op1 swap with std::swap, removed x variable.
541         (arm_evpc_neon_vuzp): Replaced in0/in1 and
542         out0/out1 swaps with std::swap, removed x variable.
544 2015-09-21  Jonathan Yong  <10walls@gmail.com>
546         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
547         sysroot/usr/lib/32api for additional win32 libraries,
548         fixes failing Cygwin bootstrapping.
550 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
552         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
554 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
556         PR target/67126
557         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
558         (*mov_t_msb_neg): Rewrite negc pattern.
560 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
562         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
563         immediate generation code.
565 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
567         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
568         redundant immediate generation code.
570 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
572         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
573         (AARCH64_NUM_BITMASKS): Remove.
574         (aarch64_bitmasks_cmp): Remove.
575         (aarch64_build_bitmask_table): Remove.
577 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
579         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
580         slow immediate matching loops with a faster algorithm.
582 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
584         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
585         faster algorithm.
587 2015-09-20  Jeff Law  <law@redhat.com>
589         PR tree-optimization/47679
590         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
591         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
592         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
593         (thread_through_normal_block): Use record_temporary_equivalences.
595 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
597         * coretypes.h (gimple): Change typedef to be a forward declaration.
598         * gimple.h (gimple_statement_base): rename to gimple.
599         * (all functions and types using gimple): Adjust.
600         * *.[ch]: Likewise.
602 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
603             David Edelsohn  <dje.gcc@gmail.com>
605         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
606         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
607         (EH_FRAME_THROUGH_COLLECT2): Define.
608         (EH_TABLES_CAN_BE_READ_ONLY): Define.
609         (ASM_OUTPUT_DWARF_PCREL): Define.
610         (ASM_OUTPUT_DWARF_DATAREL): Define.
612 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
614         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
615         of TARGET_ELF32.
617 2015-09-18  Jeff Law  <law@redhat.com>
619         PR tree-optimization/47679
620         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
621         it here ...
622         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
623         object.  Update constructor.
624         (pass_dominator::execute):  Corresponding chagnes to declaration
625         and initialization of avail_exprs_stack.  Update constructor call
626         for dom_opt_dom_walker object.
627         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
628         it down to children as needed.
629         (record_equivalences_from_incoming_edge): Likewise.
630         (eliminate_redundant_computations): Likewise.
631         (record_equivalences_from_stmt): Likewise.
632         (simplify_stmt_for_jump_threading): Likewise.
633         (record_temporary_equivalences): Likewise.
634         (optimize_stmt): Likewise.
635         (dom_opt_dom_walker::thread_across_edge): Update access to
636         avail_exprs_stack object and pass it to children as needed.
637         (dom_opt_dom_walker::before_dom_children): Similarly.
638         (dom_opt_dom_walker::after_dom_children): Similarly.
639         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
640         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
641         Add avail_expr_stack argument.  Pass it to children as needed.
642         (dummy_simplify): Likewise.
643         (simplify_control_stmt_condition): Likewise.
644         (thread_around_empty_blocks): Likewise.
645         (thread_through_normal_block): Likewise.
646         (thread_across_edge): Likewise.
647         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
648         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
650         PR tree-optimization/47679
651         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
652         it here ...
653         (dom_opt_dom_walker): New private member holding the const_and_copies
654         object.  Update constructor.
655         (pass_dominator::execute): Corresponding changes to declaration
656         and initialization of const_and_copies.  Update constructor call
657         for the dom_opt_dom_walker object.
658         (record_temporary_equivalences): Accept const_and_copies argument
659         pass it down to children as needed.
660         (record_equality): Likewise.
661         (record_equivalences_from_incoming_edge): Likewise.
662         (cprop_into_successor_phis, optimize_stmt): Likewise.
663         (eliminate_redundant_computations): Likewise.
664         (dom_opt_dom_walker::thread_across_edge): Update access to
665         const_and_copies object and pass it to children as needed.
666         (dom_opt_dom_walker::before_dom_children): Similarly.
667         (dom_opt_dom_walker::after_dom_children): Similarly.
669         PR tree-optimization/47679
670         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
671         it into the avail_exprs_stack class.
672         (pass_dominator::execute): Corresponding changes to declaration
673         and initialization of avail_exprs.  Pass avail_exprs to
674         dump_dominator_optimization_stats.
675         (record_cond): Extract avail_exprs from avail_exprs_stack.
676         (lookup_avail_expr): Similarly.
677         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
678         position in file.
679         (dump_dominator_optimization_stats): Make static and prototype.
680         Add argument for the hash table to dump.
681         (debug_dominator_optimization_stats): Remove.
682         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
683         prototype.
684         (debug_dominator_optimization_stats): Similarly.
685         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
686         "void" in prototype for pop_to_marker method.  Add accessor method
687         for the underlying avail_exprs table.
689         * tree-ssa-threadedge.c: Remove trailing whitespace.
691 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
693         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
694         unsigned.
695         (pa_ldil_cint_p): Likewise.
696         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
697         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
698         Update callers.
699         * config/pa/pa.md: Likewise.
701 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
703         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
704         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
705         (diagnostic_show_locus): Likewise.
706         (diagnostic_print_caret_line): Likewise.
707         * diagnostic-show-locus.c: New file.
709 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
711         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
712         "back" parameter. Declare label in #if block.
714 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
716         PR middle-end/67619
717         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
718         the address to a register.
720 2015-09-18  Jeff Law  <law@redhat.com>
722         PR tree-optimization/47679
723         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
724         * tree-ssa-dom.c: Remove unnecessary header includes.
725         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
726         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
727         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
728         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
729         (pass_phi_only_cprop::execute): Likewise.
730         (make_pass_phi_only_cprop): Likewise.
731         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
732         uses of file scoped statics by passing the required objects
733         as parameters wherever needed.
735 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
736             David Edelsohn  <dje.gcc@gmail.com>
738         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
739         EH_FRAME_THROUGH_COLLECT2.
740         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
741         DW_EH_PE_datarel.
742         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
743         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
744         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
745         * except.c (switch_to_exception_section): Use a read-only section
746         even if EH_FRAME_SECTION_NAME is undefined.
747         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
748         * collect2.c (write_c_file_stat): Provide dbase on AIX.
749         (scan_prog_file): Don't export __dso_handle nor
750         __gcc_unwind_dbase.
751         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
752         (EH_TABLES_CAN_BE_READ_ONLY): Define.
753         (ASM_OUTPUT_DWARF_PCREL): Define.
754         (ASM_OUTPUT_DWARF_DATAREL): Define.
755         (EH_FRAME_THROUGH_COLLECT2): Define.
756         (EH_FRAME_IN_DATA_SECTION): Delete.
757         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
758         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
759         Declare.
760         (rs6000_asm_output_dwarf_datarel): Declare.
761         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
762         (rs6000_aix_asm_output_dwarf_datarel): New.
763         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
764         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
765         (EH_FRAME_THROUGH_COLLECT2): Define.
766         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
767         (EH_FRAME_THROUGH_COLLECT2): Define.
768         (EH_TABLES_CAN_BE_READ_ONLY): Define.
769         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
770         (EH_FRAME_THROUGH_COLLECT2): New.
771         (ASM_OUTPUT_DWARF_DATAREL): New.
772         * doc/tm.texi: Regenerate.
774 2015-09-18  Richard Biener  <rguenther@suse.de>
776         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
777         we're in early phase.
778         (schedule_generic_params_dies_gen): Likewise.
779         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
780         work as possible, retaining unhandled cases.
781         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
782         clear out generic_type_instances at the end.
783         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
784         (dwarf2out_early_finish): ... here.  Do most of
785         gen_remaining_tmpl_value_param_die_attribute here.
787 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
789         PR tree-optimization/67283
790         * tree-sra.c (type_consists_of_records_p): Rename to...
791         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
792         (completely_scalarize_record): Rename to...
793         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
794         (scalarize_elem): New.
795         (analyze_all_variable_accesses): Follow renamings.
797 2015-09-18  Richard Biener  <rguenther@suse.de>
799         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
800         in early-dwarf.
802 2015-09-18  Richard Biener  <rguenther@suse.de>
804         PR tree-optimization/66142
805         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
806         treat MEM[&x] and x the same.
807         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
808         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
809         when we simplified sth.
810         (vn_reference_maybe_forwprop_address): Likewise.
811         (valueize_refs_1): When we simplified through
812         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
813         set valueized_anything to true.
814         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
815         one ref kills the other instead of just a offset-based test.
816         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
817         for the operand_equal_p test to compare bases and also compare
818         sizes.
820 2015-09-17  Christian Bruel  <christian.bruel@st.com>
822         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
824 2015-09-17  Richard Henderson  <rth@redhat.com>
826         PR libstdc++/65913
827         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
828         pointers that encode the alignment of the object.
830 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
832         PR rtl-optimization/66790
833         * df-problems.c (LIVE): Amend documentation.
835 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
837         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
838         and optabs-tree.o.
839         (GTFILES): Replace optabs.c with optabs-libfunc.c.
840         * genopinit.c (main): Add an include guard to insn-opinit.h.
841         Protect the rtx_code parts with NUM_RTX_CODE.
842         * optabs.h: Split parts out to...
843         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
844         * optabs.c: Split parts out to...
845         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
846         * cilk-common.c: Include optabs-query.h rather than optabs.h.
847         * fold-const.c: Likewise.
848         * target-globals.c: Likewise.
849         * tree-if-conv.c: Likewise.
850         * tree-ssa-forwprop.c: Likewise.
851         * tree-ssa-loop-prefetch.c: Likewise.
852         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
853         Remove unncessary include files.
854         * tree-ssa-phiopt.c: Likewise.
855         * tree-ssa-reassoc.c: Likewise.
856         * tree-switch-conversion.c: Likewise.
857         * tree-vect-data-refs.c: Likewise.
858         * tree-vect-generic.c: Likewise.
859         * tree-vect-loop.c: Likewise.
860         * tree-vect-patterns.c: Likewise.
861         * tree-vect-slp.c: Likewise.
862         * tree-vect-stmts.c: Likewise.
863         * tree-vrp.c: Likewise.
864         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
865         rather than optabs.h.
866         * expr.c: Include optabs-tree.h.
867         * function.c: Likewise.
869 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
871         PR middle-end/65958
872         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
873         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
874         * config/arm/arm.c: Include common/common-target.h.
875         (use_return_insn): Return 0 if the static chain register was saved
876         above a non-APCS frame.
877         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
878         (struct scratch_reg): New.
879         (get_scratch_register_on_entry): New function.
880         (release_scratch_register_on_entry): Likewise.
881         (arm_emit_probe_stack_range): Likewise.
882         (output_probe_stack_range): Likewise.
883         (arm_expand_prologue): Factor out code dealing with the IP register
884         for nested function and adjust it for stack checking.
885         Invoke arm_emit_probe_stack_range if static builtin stack checking
886         is enabled.
887         (thumb1_expand_prologue): Sorry out if static builtin stack checking
888         is enabled.
889         (arm_expand_epilogue): Add the saved static chain register, if any, to
890         the amount of pre-pushed registers to pop.
891         (arm_frame_pointer_required): Return true if static stack checking is
892         enabled and we want to catch the exception with the EABI unwinder.
893         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
894         (UNSPEC_PROBE_STACK_RANGE): Likewise.
895         * config/arm/arm.md (probe_stack): New insn.
896         (probe_stack_range): Likewise.
898 2015-09-17  Richard Biener  <rguenther@suse.de>
900         * genmatch.c (parser::parse_expr): Improve error message
901         for mis-placed flags.
903 2015-09-17  Richard Biener  <rguenther@suse.de>
905         * passes.c (rest_of_decl_compilation): Always call early_global_decl
906         debug hook when we created a varpool node.
907         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
908         dwarf2out_early_global_decl, when not just add location or
909         value attributes to existing DIEs.
911 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
913         * config/aarch64/aarch64.md (copysigndf3): New.
914         (copysignsf3): Likewise.
916 2015-09-17  David S. Miller  <davem@davemloft.net>
918         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
919         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
920         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
921         (HARD_REGNO_CALLER_SAVE_MODE): Define.
922         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
923         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
924         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
925         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
926         provide when flag_pic.
928 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
930         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
931         object_allocator change.
933 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
935         PR tree-optimization/66388
936         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
937         (dump_iv): Dump no_overflow information.
938         (alloc_iv): Initialize new field for struct iv.
939         (mark_bivs): Count number of no_overflow bivs.
940         (find_deriving_biv_for_expr, record_biv_for_address_use): New
941         functions.
942         (idx_find_step): Call new functions above.
943         (add_candidate_1, add_candidate): New paramter.
944         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
945         (get_computation_aff): Simplify convertion of cand for BIV.
946         (get_computation_cost_at): Step cand's base if necessary.
948 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
950         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
951         parameter.
952         (tree_simplify_using_condition): Ditto.
953         (simplify_using_initial_conditions): Ditto.
954         (loop_exits_before_overflow): Pass new argument to function
955         simplify_using_initial_conditions.  Remove case for type conversions
956         simplification.
957         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
958         parameter.
959         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
960         in iv base using loop initial conditions.
962 2015-09-16  Jeff Law  <law@redhat.com>
964         PR tree-optimization/47679
965         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
966         (free_all_edge_infos): Use it.
967         (allocate_edge_info): Free preexisting edge info data.
968         (pass_dominator::execute): Set up initial edge info structures.
969         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
970         thread_across_edge.
971         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
972         If non-null, then push/pop markers appropriately.
973         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
974         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
975         thread-across_edge.
977 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
979         * config/ft32/ft32.c: Fix the memory address space predicate.
981 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
983         PR target/67573
984         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
985         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
987 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
989         * toplev.h (check_global_declaration): Remove declaration.
990         * toplev.c (check_global_declaration): Move to ...
991         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
992         (analyze_functions): Update call.
994 2015-09-16  David S. Miller  <davem@davemloft.net>
996         * lra-constraints.c (simplify_operand_subreg): Do not assume that
997         lowpart of a SUBREG has offset zero.
999 2015-09-16  Jeff Law  <law@redhat.com>
1001         PR tree-optimization/47679
1002         * tree-ssa-dom.c (enum expr_kind): Moved from here to
1003         tree-ssa-scopedtables.h.
1004         (struct hashable_expr, class expr_hash_elt): Likewise.
1005         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1006         Move associated methods into tree-ssa-scopedtables.c.
1007         (avail_expr_hash, initialize_expr_from_cond): Similarly.
1008         (hashable_expr_equal_p, add_expr_commutative): Likewise.
1009         (add_hashable_expr): Likewise.
1010         (record_cond): Delete element directly.
1011         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1012         private copy ctor and assignment operator methods.
1013         (expr_elt_hasher): Inline trivial methods.
1014         (initialize_expr_from_cond): Prototype.
1015         * tree-ssa-scopedtables.c: Add necessary includes, functions and
1016         methods that were previously in tree-ssa-dom.c.  Improve various
1017         comments.
1019 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
1021         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1023 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
1025         PR bootstrap/67587
1026         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1027         fixup_partitions.
1029 2015-09-16  Richard Biener  <rguenther@suse.de>
1031         PR middle-end/67253
1032         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1033         location of possibly shared trees.
1035 2015-09-16  Richard Biener  <rguenther@suse.de>
1037         PR middle-end/67271
1038         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1040 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1042         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1043         offset and size computations instead of HOST_WIDE_INT.
1045 2015-09-16  Richard Biener  <rguenther@suse.de>
1047         PR middle-end/67442
1048         * fold-const.c (extract_muldiv_1): Properly extend multiplication
1049         result before builting a tree via wide_int_to_tree.
1051 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
1053         * Makefile.in: Add memory-block.cc
1054         (pool_allocator::initialize): Use fixed block size.
1055         (pool_allocator::release): Use memory_block_pool.
1056         (pool_allocator::allocate): Likewise.
1057         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1058         object pools.
1059         * cfg.c (initialize_original_copy_tables): Likewise.
1060         * cselib.c (elt_list_pool, elt_loc_list_pool,
1061         cselib_val_pool): Likewise.
1062         * df-problems.c (df_chain_alloc): Likewise.
1063         * df-scan.c (df_scan_alloc): Likewise.
1064         * dse.c (cse_store_info_pool, rtx_store_info_pool,
1065         read_info_type_pool, insn_info_type_pool, bb_info_pool,
1066         group_info_pool, deferred_change_pool): Likewise.
1067         * et-forest.c (et_nodes, et_occurrences): Likewise.
1068         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1069         ipcp_agg_lattice_pool): Likewise.
1070         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1071         * ipa-profile.c (histogram_pool): Likewise.
1072         * ipa-prop.c (ipa_refdesc_pool): Likewise.
1073         * ira-build.c (live_range_pool, allocno_pool, object_pool,
1074         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1075         * ira-color.c (update_cost_record_pool): Likewise.
1076         * lra-lives.c (lra_live_range_pool): Likewise.
1077         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1078         * memory-block.cc: New file.
1079         * memory-block.h: New file.
1080         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1081         * sched-deps.c (sched_deps_init): Likewise.
1082         * sel-sched-ir.c (sched_lists_pool): Likewise.
1083         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1084         * tree-sra.c (access_pool): Likewise.
1085         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1086         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1087         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1088         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1089         * tree-ssa-strlen.c (strinfo_pool): Likewise.
1090         * tree-ssa-structalias.c (variable_info_pool): Likewise.
1091         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1092         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1094 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
1096         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1097         definition.
1098         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1099         call0 ABI.
1101 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
1103         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1104         to pass TLS call argument, according to current ABI.
1105         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1106         callx0 for TLS call, according to current ABI.
1108 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
1110         * tree-eh.c (lower_try_finally_dup_block): Clear location information
1111         on stack restore statements.
1112         (decide_copy_try_finally): Do not consider a stack restore statement as
1113         coming from sources.
1115 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
1117         * config/alpha/alpha.c (alpha_expand_block_clear): Use
1118         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1120 2015-09-15  Jeff Law  <law@redhat.com>
1122         PR tree-optimization/47679
1123         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1124         methods and private members.
1125         (avail_exprs_stack): Similarly.  Change type of global
1126         from a pair of expr_hash_elt_t to the new class.
1127         (expr_elt_hasher::hash): Corresponding changes.
1128         (expr_elt_hasher::equal): Similarly.
1129         (avail_expr_hash): Similarly.
1130         (pass_dominator::execute): Similarly.
1131         (dom_opt_dom_walker::thread_across_edge): Similarly.
1132         (record_cond): Similarly.
1133         (dom_opt_dom_walker::before_dom_children): Similarly.
1134         (dom_opt_dom_walker::after_dom_children): Similarly.
1135         (lookup_avail_expr): Likewise.
1136         (initialize_hash_element): Now a expr_hash_elt constructor.
1137         (initialize_hash_element_from_expr): Similarly.
1138         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1139         (free_expr_hash_elt): Call dtor for the element.
1140         (remove_local_expressions_from_table): Now the "pop_to_marker"
1141         method in the available_exprs_stack class.
1142         (avail_expr_stack::record_expr): Method factored out.
1143         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1144         Fix formatting.
1145         (hashable_expr_equal_p): Fix formatting.
1147 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
1149         * input.h (location_get_source_line): Drop "expanded_location"
1150         param in favor of a file and line number.
1151         * input.c (location_get_source_line): Likewise.
1152         (dump_location_info): Update for change in signature of
1153         location_get_source_line.
1154         * diagnostic.c (diagnostic_print_caret_line): Likewise.
1156 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
1158         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1159         Bump to 4KB for SJLJ exceptions.
1160         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
1161         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1162         * doc/tm.texi: Regenerate.
1164 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1166         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1167         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
1168         Update prototype.
1170 2015-09-15  Richard Biener  <rguenther@suse.de>
1172         PR tree-optimization/67470
1173         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1174         structure for PHI hoisting by inserting a forwarder block
1175         if appropriate.
1177 2015-09-15  Christian Bruel  <christian.bruel@st.com>
1179         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1180         (arm_option_print): New function.
1182 2015-09-15  Christian Bruel  <christian.bruel@st.com>
1184         PR target/52144
1185         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1186         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1187         Remove flags parameter.
1188         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1189         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1190         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1191         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1192         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1193         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1194         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1195         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1197 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1199         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1201         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1202         AARCH64_VALID_SIMD_DREG_MODE.
1204 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1206         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1207         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1208         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1209         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1210         aarch64_ld4_lane<mode>): Combine together, making...
1211         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1212         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1213         aarch64_st4_lane<mode>): Combine together, making...
1214         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1215         * config/aarch64/iterators.md (nregs): Add comment.
1217 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1219         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1220         Change operand mode from <V_TWO_ELEM> to BLK.
1221         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1222         (aarch64_vec_store_lanesoi_lane<mode): Likewise
1223         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1224         (aarch64_ld2_lane<mode>): Likewise.
1225         (aarch64_st2_lane<VQ:mode>): Likewise.
1226         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1228 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1230         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1231         Change operand mode from <V_FOUR_ELEM> to BLK.
1232         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1233         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1234         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1235         (aarch64_ld4_lane<mode>): Likewise.
1236         (aarch64_st4_lane<mode>): Likewise.
1237         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1239 2015-09-15  Richard Biener  <rguenther@suse.de>
1241         PR middle-end/67563
1242         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1243         transfer EH info from old to new stmt.
1244         (replace_call_with_value): Likewise.
1245         (replace_call_with_call_and_fold): Likewise.
1246         (gimple_fold_builtin_memory_op): Likewise.
1247         (gimple_fold_builtin_memset): Likewise.
1248         (gimple_fold_builtin_stpcpy): Likewise.
1249         (gimple_fold_call): Likewise.
1251 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1253         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1254         comment.
1255         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1256         (aarch64_simd_intEI_type_node): Likewise.
1257         (aarch64_simd_builtin_std_type): Remove EImode case.
1258         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1259         * config/aarch64/aarch64-modes.def: Remove EImode.
1261 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1263         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1264         Change operand mode from <V_THREE_ELEM> to BLK.
1265         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1266         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1267         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1268         (aarch64_ld3_lane<mode>): Likewise.
1269         (aarch64_st3_lane<mode>): Likewise.
1270         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1272 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1274         * config/aarch64/aarch64-simd.md
1275         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1276         Change all TImode operands to BLKmode.
1277         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1278         Change all EImode operands to BLKmode.
1279         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1280         Change all OImode operands to BLKmode.
1282         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1283         and call set_mem_size.
1284         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1286         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1288 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
1290         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1291         to...
1292         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1294         (vec_store_lanesci_lane<mode>): Rename to...
1295         (aarch64_vec_store_lanesci_lane<mode>): ...this.
1297         (vec_store_lanesxi_lane<mode>): Rename to...
1298         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1300         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1301         aarch64_st4_lane<mode>): Follow renaming.
1303 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1305         * config/s390/s390.c (s390_const_operand_ok): Add missing
1306         brackets.
1308 2015-09-15  Richard Biener  <rguenther@suse.de>
1310         PR lto/67568
1311         * lto-streamer.h (lto_location_cache::current_sysp): Properly
1312         initialize.
1313         * lto-streamer-out.c (clear_line_info): Likewise.
1315 2015-09-15  Richard Biener  <rguenther@suse.de>
1317         * doc/match-and-simplify.texi: Fix wording.
1319 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
1321         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1322         unnecessary type conversion in op1.
1324 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
1326         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1327         (dup_block_and_redirect): Delete function.
1328         (can_dup_for_shrink_wrapping): New function.
1329         (fix_fake_fallthrough_edge): New function.
1330         (try_shrink_wrapping): Rewrite function.
1331         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1333 2015-09-14  Rich Felker  <dalias@libc.org>
1335         * configure.ac: Change target pattern for sh TLS support
1336         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1337         * configure: Regenerate.
1339 2015-09-14  Jeff Law  <law@redhat.com>
1341         PR tree-optimization/47679
1342         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1343         type rather than void *.
1345 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1347         PR fortran/67460
1348         * diagnostic.c (diagnostic_initialize): Do not set
1349         some_warnings_are_errors.
1350         (diagnostic_finish): Use DK_WERROR count instead.
1351         (diagnostic_report_diagnostic): Do not set
1352         some_warnings_are_errors.
1353         * diagnostic.h (struct diagnostic_context): Remove
1354         some_warnings_are_errors.
1356 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
1358         * config/sparc/predicates.md (const_all_ones_operand): Use
1359         CONSTM1_RTX to simplify definition.
1361 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
1363         PR target/67061
1364         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1365         Handle call insns.
1367 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
1369         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1370         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1371         OPT_fshow_column to handled saved option cases.
1372         (append_compiler_options): Do not skip the above added options.
1374 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1376         PR target/63304
1377         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1378         nopcrelative_literal_loads.
1379         (aarch64_classify_address): Likewise.
1380         (aarch64_constant_pool_reload_icode): Define.
1381         (aarch64_secondary_reload): Handle secondary reloads for
1382         literal pools.
1383         (aarch64_override_options): Handle nopcrelative_literal_loads.
1384         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1385         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1386         Define.
1387         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1388         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1389         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1390         predicate.
1391         * doc/invoke.texi (mpc-relative-literal-loads): Document.
1393 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
1395         PR middle-end/67401
1396         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1397         sync_compare_and_swap_optab libcall to target_oval.
1399 2015-09-14  Marek Polacek  <polacek@redhat.com>
1401         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1402         value.
1403         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1405 2015-09-11  Mark Wielaard  <mjw@redhat.com>
1407         PR c/28901
1408         * toplev.c (check_global_declaration): Check and use
1409         warn_unused_const_variable.
1410         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1411         (-Wunused-variable): Remove non-constant. For C implies
1412         -Wunused-const-variable.
1413         (-Wunused-const-variable): New.
1415 2015-09-14  Richard Biener  <rguenther@suse.de>
1417         * doc/match-and-simplify.texi: Update for changed syntax
1418         of inner ifs and the new switch expression.
1420 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
1422         * config/i386/haswell.md: New file describing Haswell pipeline.
1423         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1424         haswell-like processors.
1425         (ix86_reassociation_width): Increase reassociation width for 64-bit
1426         Haswell processor family.
1427         * config/i386/i386.md: Introduce haswell cpu and include new md file.
1429 2015-09-14  Richard Biener  <rguenther@suse.de>
1431         * doc/match-and-simplify.texi: Fixup some formatting issues
1432         and document the 's' flag.
1434 2015-09-13  Olivier Hainque  <hainque@adacore.com>
1435             Eric Botcazou  <ebotcazou@adacore.com>
1437         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
1438         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
1439         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
1440         (TARGET_CPU_gr5): Likewise.
1441         (TARGET_CPU_gr6): Likewise.
1442         (MULTILIB_DEFAULTS): Likewise.
1443         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
1444         for mcpu=gr5 and mcpu=gr6.
1445         (MULTILIB_DIRNAMES): Adjust accordingly.
1447 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1449         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
1450         (mem_ref_p): Likewise.
1451         (outermost_indep_loop): Adjust.
1452         (mem_ref_in_stmt): Likewise.
1453         (determine_max_movement): Likewise.
1454         (mem_ref_alloc): Likewise.
1455         (record_mem_ref_loc): Likewise.
1456         (set_ref_stored_in_loop): Likewise.
1457         (mark_ref_stored): Likewise.
1458         (gather_mem_refs_stmt): Likewise.
1459         (mem_refs_may_alias_p): Likewise.
1460         (for_all_locs_in_loop): Likewise.
1461         (struct rewrite_mem_ref_loc): Likewise.
1462         (rewrite_mem_refs): Likewise.
1463         (struct first_mem_ref_loc_1): Likewise.
1464         (first_mem_ref_loc): Likewise.
1465         (struct sm_set_flag_if_changed): Likewise.
1466         (execute_sm_if_changed_flag_set): Likewise.
1467         (execute_sm): Likewise.
1468         (hoist_memory_references):
1469         (struct ref_always_accessed): Likewise.
1470         (ref_always_accessed_p): Likewise.
1471         (refs_independent_p): Likewise.
1472         (record_dep_loop): Likewise.
1473         (ref_indep_loop_p_1): Likewise.
1474         (ref_indep_loop_p_2): Likewise.
1475         (ref_indep_loop_p): Likewise.
1476         (can_sm_ref_p): Likewise.
1477         (find_refs_for_sm): Likewise.
1478         (tree_ssa_lim_finalize): Likewise.
1480 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1482         * dwarf2out.c (dw_attr_ref): Remove typedef.
1483         (dw_line_info_ref): Likewise.
1484         (pubname_ref): Likewise.
1485         (dw_ranges_ref): Likewise.
1486         (dw_ranges_by_label_ref): Likewise.
1487         (comdat_type_node_ref): Likewise.
1488         (get_AT): Adjust.
1489         (get_AT_low_pc): Likewise.
1490         (get_AT_hi_pc): Likewise.
1491         (get_AT_string): Likewise.
1492         (get_AT_flag): Likewise.
1493         (get_AT_unsigned): Likewise.
1494         (get_AT_ref): Likewise.
1495         (get_AT_file): Likewise.
1496         (remove_AT): Likewise.
1497         (print_die): Likewise.
1498         (check_die): Likewise.
1499         (die_checksum): Likewise.
1500         (attr_checksum_ordered): Likewise.
1501         (struct checksum_attributes): Likewise.
1502         (collect_checksum_attributes): Likewise.
1503         (die_checksum_ordered): Likewise.
1504         (same_die_p): Likewise.
1505         (is_declaration_die): Likewise.
1506         (clone_die): Likewise.
1507         (clone_as_declaration): Likewise.
1508         (copy_declaration_context): Likewise.
1509         (break_out_comdat_types): Likewise.
1510         (copy_decls_walk): Likewise.
1511         (output_location_lists): Likewise.
1512         (external_ref_hasher::hash): Likewise.
1513         (optimize_external_refs_1): Likewise.
1514         (build_abbrev_table): Likewise.
1515         (size_of_die): Likewise.
1516         (unmark_all_dies): Likewise.
1517         (size_of_pubnames): Likewise.
1518         (output_die_abbrevs): Likewise.
1519         (output_die): Likewise.
1520         (output_pubnames): Likewise.
1521         (add_ranges_num): Likewise.
1522         (add_ranges_by_labels): Likewise.
1523         (add_high_low_attributes): Likewise.
1524         (gen_producer_string): Likewise.
1525         (dwarf2out_set_name): Likewise.
1526         (new_line_info_table): Likewise.
1527         (prune_unused_types_walk_attribs): Likewise.
1528         (prune_unused_types_update_strings): Likewise.
1529         (prune_unused_types): Likewise.
1530         (resolve_addr): Likewise.
1531         (optimize_location_lists_1): Likewise.
1532         (index_location_lists): Likewise.
1533         (dwarf2out_finish): Likewise.
1535 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1537         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1539 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1541         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1542         (dump_asserts_for): Adjust.
1543         (register_new_assert_for): Likewise.
1544         (process_assert_insertions): Likewise.
1545         (insert_range_assertions): Likewise.
1547 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1549         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1550         and remove typedef.
1551         (new_temp_expr_table): Adjust.
1552         (free_temp_expr_table): Likewise.
1553         (version_to_be_replaced_p): Likewise.
1554         (make_dependent_on_partition): Likewise.
1555         (add_to_partition_kill_list): Likewise.
1556         (remove_from_partition_kill_list): Likewise.
1557         (add_dependence): Likewise.
1558         (finished_with_expr): Likewise.
1559         (process_replaceable): Likewise.
1560         (kill_expr): Likewise.
1561         (kill_virtual_exprs): Likewise.
1562         (mark_replaceable): Likewise.
1563         (find_replaceable_in_bb): Likewise.
1564         (find_replaceable_exprs): Likewise.
1565         (debug_ter): Likewise.
1567 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1569         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1570         (struct btr_user): Rename from btr_user_s.
1571         (struct btr_def): Rename from btr_def_s.
1572         (find_btr_def_group): Adjust.
1573         (add_btr_def): Likewise.
1574         (new_btr_user): Likewise.
1575         (note_other_use_this_block): Likewise.
1576         (compute_defs_uses_and_gen): Likewise.
1577         (link_btr_uses): Likewise.
1578         (build_btr_def_use_webs): Likewise.
1579         (block_at_edge_of_live_range_p): Likewise.
1580         (btr_def_live_range): Likewise.
1581         (combine_btr_defs): Likewise.
1582         (move_btr_def): Likewise.
1583         (migrate_btr_def): Likewise.
1584         (migrate_btr_defs): Likewise.
1586 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1588         * var-tracking.c (shared_hash_def): Rename to shared_hash.
1589         (shared_hash): Remove typedef.
1590         (struct dataflow_set): Adjust.
1591         (shared_hash_unshare): Likewise.
1592         (dataflow_set_merge): Likewise.
1593         (vt_initialize): Likewise.
1594         (vt_finalize): Likewise.
1596 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1598         * var-tracking.c (struct location_chain): Rename from
1599         location_chain_def.
1600         (struct variable_part): Adjust.
1601         (variable_htab_free): Likewise.
1602         (unshare_variable): Likewise.
1603         (get_init_value): Likewise.
1604         (get_addr_from_local_cache): Likewise.
1605         (drop_overlapping_mem_locs): Likewise.
1606         (val_reset): Likewise.
1607         (struct variable_union_info): Likewise.
1608         (variable_union): Likewise.
1609         (find_loc_in_1pdv): Likewise.
1610         (insert_into_intersection): Likewise.
1611         (intersect_loc_chains): Likewise.
1612         (canonicalize_loc_order_check): Likewise.
1613         (canonicalize_values_mark): Likewise.
1614         (canonicalize_values_star): Likewise.
1615         (canonicalize_vars_star): Likewise.
1616         (variable_merge_over_cur): Likewise.
1617         (remove_duplicate_values): Likewise.
1618         (variable_post_merge_new_vals): Likewise.
1619         (variable_post_merge_perm_vals): Likewise.
1620         (find_mem_expr_in_1pdv): Likewise.
1621         (dataflow_set_preserve_mem_locs): Likewise.
1622         (dataflow_set_remove_mem_locs): Likewise.
1623         (variable_part_different_p): Likewise.
1624         (onepart_variable_different_p): Likewise.
1625         (find_src_set_src): Likewise.
1626         (dump_var): Likewise.
1627         (set_slot_part): Likewise.
1628         (clobber_slot_part): Likewise.
1629         (delete_slot_part): Likewise.
1630         (vt_expand_var_loc_chain): Likewise.
1631         (emit_note_insn_var_location): Likewise.
1632         (vt_finalize): Likewise.
1634 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1636         * dse.c (store_info_t): Remove typedef.
1637         (group_info_t): Likewise.
1638         (const_group_info_t): Likewise.
1639         (deferred_change_t): Likewise.
1640         (get_group_info): Adjust.
1641         (free_store_info): Likewise.
1642         (canon_address): Likewise.
1643         (clear_rhs_from_active_local_stores): Likewise.
1644         (record_store): Likewise.
1645         (replace_read): Likewise.
1646         (check_mem_read_rtx): Likewise.
1647         (scan_insn): Likewise.
1648         (remove_useless_values): Likewise.
1649         (dse_step1): Likewise.
1650         (dse_step2_init): Likewise.
1651         (dse_step2_nospill): Likewise.
1652         (scan_stores_nospill): Likewise.
1653         (scan_reads_nospill): Likewise.
1654         (dse_step3_exit_block_scan): Likewise.
1655         (dse_step3): Likewise.
1656         (dse_step5_nospill): Likewise.
1657         (dse_step6): Likewise.
1659 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1661         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1662         (alias_set_entry): Remove typedef.
1663         (alias_set_subset_of): Adjust.
1664         (alias_sets_conflict_p): Likewise.
1665         (init_alias_set_entry): Likewise.
1666         (get_alias_set): Likewise.
1667         (new_alias_set): Likewise.
1668         (record_alias_subset): Likewise.
1670 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
1672         * doc/install.texi (Downloading the source): Mark up
1673         contrib/download_prerequisites properly and drop leading "./".
1675 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1677         * config/arc/arc.h: Remove define of STRUCT_VALUE.
1678         * config/lm32/lm32.h: Likewise.
1679         * config/mep/mep.h: Likewise.
1680         * config/visium/visium.h: Likewise.
1681         * system.h: Poison STRUCT_VALUE macro.
1683 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
1685         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1686         CONSTANT_P operands.
1688 2015-09-11  David S. Miller  <davem@davemloft.net>
1690         * config/sparc/constraints.md: Make "U" constraint a real register
1691         constraint.
1692         * config/sparc/sparc.c (TARGET_LRA_P): Define.
1693         (D_MODES, DF_MODES): Add missing cast.
1694         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1695         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1696         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1697         cost to 8.
1698         * config/sparc/sparc.h (PROMOTE_MODE): Define.
1699         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1700         provide these insn when flag_pic.
1702 2015-09-11  Jeff Law  <law@redhat.com>
1704         PR tree-optimization/47679
1705         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1706         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1707         member with m_.  Update inline member functions as necessary.  Add
1708         toplevel comment.
1709         * tree-ssa-scopedtables.c: Update const_and_copies's member
1710         functions to use m_ prefix to access the stack.
1712 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
1714         * graphite-optimize-isl.c (disable_tiling): Remove.
1715         (get_schedule_for_band): Do not use disable_tiling.
1716         (get_prevector_map): Delete function.
1717         (enable_polly_vector): Remove.
1718         (get_schedule_for_band_list): Remove dead code.
1720 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
1722         * graphite-optimize-isl.c (get_tile_map): Refactor.
1723         (get_schedule_for_band): Same.
1724         (getScheduleForBand): Same.
1725         (get_prevector_map): Same.
1726         (get_schedule_for_band_list): Same.
1727         (get_schedule_map): Same.
1728         (get_single_map): Same.
1729         (apply_schedule_map_to_scop): Same.
1730         (optimize_isl): Same.
1732 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1734         PR target/63304
1735         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1736         (movtf): Delete.
1737         * config/aarch64/iterators.md (GPF_TF_F16): New.
1738         (GPF_F16): Delete.
1740 2015-09-10  Nathan Sidwell  <nathan@acm.org>
1742         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1743         (nvptx_reorg): Adjust comments.
1745 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
1747         PR bootstrap/67363
1748         * configure.ac: Check if setenv and unsetenv are declared.
1749         * configure: Rebuild.
1750         * config.in: Rebuild.
1751         * system.h: Declare setenv and unsetenv if not declared.
1753 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1755         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
1756         commentary to simplify permute mask adjustment equation.
1757         (special_handling_values): Add SH_VPERM.
1758         (const_load_sequence_p): New function.
1759         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
1760         the mask loaded from the constant pool.
1761         (adjust_vperm): New function.
1762         (handle_special_swappables): Call adjust_vperm.
1763         (dump_swap_insn_table): Handle SH_VPERM.
1765 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1767         * shrink-wrap.c (requires_stack_frame_p): Remove static.
1768         * shrink-wrap.h (requires_stack_frame_p): Put back.
1770 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
1772         * reload1.c (elimination_costs_in_insn): Locally turn
1773         -Wmaybe-uninitialized into a warning.
1775 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
1777         * shrink-wrap.c (requires_stack_frame_p): Make static.
1778         (prepare_shrink_wrap): Likewise.
1779         (dup_block_and_redirect): Likewise.
1780         * shrink-wrap.h: Remove declarations of those functions.
1782 2015-09-10  Mark Wielaard  <mjw@redhat.com>
1784         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
1786 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
1788         PR target/67506
1789         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1790         missing simplify_gen_subreg.
1792 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1794         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
1795         the vector element is bigger than 64 bit.
1797 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1799         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
1800         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
1802 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1804         * config/s390/s390.c: Add V1TImode to constant pool modes.
1806 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1808         PR target/67439
1809         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
1810         predicate.  Set predicable_short_it attr to "no".
1812 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
1814         PR rtl-optimization/67421
1815         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1816         left wide shift tranformation.
1818 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
1820         * common/config/arc/arc-common.c: Remove references to A5.
1821         * config/arc/arc-opts.h: Likewise.
1822         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1823         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1824         * config/arc/t-arc-newlib: Likewise.
1826 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
1828         * config/arc/arc.md (length): Fix attribute length for conditional
1829         executed instructions with long immediate.
1831 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1833         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1834         type for second alternative.
1836 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
1838         * doc/invoke.texi (Downloading GCC): Mention
1839         contrib/download_prerequisites script.
1841 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
1843         PR c++/67523
1844         * gimplify.c (gimplify_omp_for): If inner stmt is not found
1845         for combined loop, assert seen_error () and return GS_ERROR.
1847         PR middle-end/67521
1848         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1849         if decl is already in outer->variables.
1851         PR middle-end/67517
1852         * gimplify.c (gimplify_scan_omp_clauses): Instead of
1853         asserting that decl is not specified in octx->variables,
1854         break out of the loop if it is.
1856         PR c++/67514
1857         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1858         iterator is not explicitly determined, but is defined inside
1859         of the combined workshare region, handle it like if it has
1860         DECL_EXPR in OMP_FOR_PRE_BODY.
1862 2015-09-09  Nathan Sidwell  <nathan@acm.org>
1864         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1865         (*cmp<mode>): Add assembler spacing.
1866         (setcc_int<mode>, set_cc_float<mode>): Likewise.
1867         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1868         level.
1869         (write_func_decl_from_insn): Refactor argument loops & comma emission.
1870         (nvptx_expand_call): Likewise.
1871         (nvptx_output_call_insn): Likewise.
1872         (nvptx_reorg_subreg): Add spacing.
1874 2015-09-09  Marek Polacek  <polacek@redhat.com>
1876         PR middle-end/67512
1877         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1878         for comparisons.
1880 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1882         PR c++/53184
1883         * doc/invoke.texi ([Wsubobject-linkage]): Document.
1885 2015-09-09  Tom de Vries  <tom@codesourcery.com>
1887         * params-list.h: Add missing copyright notice.
1889 2015-09-09  Nathan Sidwell  <nathan@acm.org>
1891         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1892         sel_truesi, not andsi.
1894 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1896         * config/arm/arm.md (*subsi3_compare0): Rename to...
1897         (subsi3_compare0): ... This.
1898         (modsi3): New define_expand.
1899         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1900         when operand is power of 2.
1902 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1904         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1905         (*neg<mode>2_compare0): Rename to...
1906         (neg<mode>2_compare0): ... This.
1907         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1908         Move check for speed inside the if-then-elses.  Reflect
1909         CSNEG sequence in MOD by power of 2 case.
1911 2015-09-09  Alan Modra  <amodra@gmail.com>
1913         PR target/67378
1914         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1915         reload replacement for PRE_MODIFY address reg.
1917 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
1919         PR tree-optimization/53852
1920         * config.in: Regenerate.
1921         * configure: Regenerate.
1922         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1923         * graphite-optimize-isl.c (optimize_isl): Stop computation when
1924         PARAM_MAX_ISL_OPERATIONS is reached.
1925         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1926         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1927         result equal to isl_stat_ok as the status now can be isl_error_quota.
1928         (subtract_commutative_associative_deps): Same.
1929         (compute_deps): Same.
1931 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
1932             Sebastian Pop  <s.pop@samsung.com>
1934         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1935         Return the parameter if it was saved in corresponding
1936         parameter_rename_map of the region.
1937         (copy_def): Copy def from sese region to the newly created region.
1938         (copy_internal_parameters): Copy all the internal parameters defined
1939         within a region to the newly created region.
1940         (graphite_regenerate_ast_isl): Copy parameters to the new region before
1941         translating isl to gimple.
1942         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1943         the loop-nest does not have any data-references.
1944         (build_graphite_scops): Create a scop only when there is at least one
1945         loop inside it.
1946         (contains_only_close_phi_nodes): Deleted.
1947         (print_graphite_scop_statistics): Deleted
1948         (print_graphite_statistics): Deleted
1949         (limit_scops): Deleted.
1950         (build_scops): Removed call to limit_scops.
1951         * sese.c (new_sese): Construct.
1952         (free_sese): Destruct.
1953         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1954         added.
1955         (set_rename): Pass sese region so that parameters inside the region can
1956         be added to its parameter_rename_map.
1957         (rename_uses): Pass sese region.
1958         (graphite_copy_stmts_from_block): Do not copy parameters that have been
1959         generated in the header of the scop. For each SSA_NAME in the
1960         parameter_rename_map rename its usage.
1961         (invariant_in_sese_p_rec): Return false if tree t is defined outside
1962         sese region.
1963         (scalar_evolution_in_region): If the tree t is invariant just return t.
1964         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1965         struct sese to keep track of all the parameters which need renaming.
1966         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1967         any data-refs.
1968         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1970 2015-09-08  Tom de Vries  <tom@codesourcery.com>
1972         * Makefile.in (generated_files): Add params.list.
1973         (params.list, s-params.list): Add rule.
1974         * params.h (enum compiler_param): Include params-list.h.  Move define
1975         DEFPARAM, include params.def and undef DEFPARAM ...
1976         * params-list.h: ... here.  New file.
1978 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
1980         * pretty-print.h (printer_fn): Fix typo in comment.
1982 2015-09-07  Jeff Law  <law@redhat.com>
1984         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1986 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1988         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1989         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1990         (arm_neon_fp16_hw): New.
1992 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1994         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1995         UNITS_PER_WORD >= 4.
1997 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1999         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2000         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2001         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2002         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2003         (aarch64_float_extend_lo_v2df): Rename to...
2004         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2006         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2007         (float_extend_lo): Add v4sf.
2009         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2010         * config/aarch64/iterators.md (VQ_HSF): New iterator.
2011         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2012         (Vwide): New mode_attr.
2014 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2016         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2017         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2018         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2019         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2020         V4HF and V8HF variants to iterator.
2022         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2024         * config/aarch64/iterators.md (VDQF_F16): New.
2025         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2027 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2029         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2030         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2031         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2032         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2033         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2034         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2035         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2036         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2037         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2038         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2039         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2040         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2041         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2042         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2043         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2044         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2045         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2046         vld1q_dup_f16): New.
2048 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2050         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2051         Reparameterize to...
2052         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2053         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2054         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2056         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2057         v8hf variant.
2058         (float_truncate_lo_): Use BUILTIN_VDF iterator.
2060         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2062         * config/aarch64/iterators.md (VDF, Vdtype): New.
2063         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2065 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2067         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2068         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2069         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2070         Add __builtin_aarch64_simd_hf.
2071         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2072         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2073         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2074         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2075         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2076         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2077         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2078         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2079         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2081         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2082         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2083         (VDC, Vdbl): Add V4HF.
2085 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2087         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2088         V4HFmode and V8HFmode.
2089         (aarch64_split_simd_move): Add case for V8HFmode.
2090         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2091         (aarch64_simd_builtin_std_type): Handle HFmode.
2092         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2094         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2095         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2096         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2098         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2099         Float16x8_t.
2101         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2102         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2103         New typedefs.
2104         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2105         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2106         vst1q_lane_f16): New.
2107         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2108         (VALLDI_F16, VALL_F16): New.
2109         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2110         Add cases for V4HF and V8HF.
2111         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2113 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2115         * config/arm/arm-builtins.c (VAR11, VAR12): New.
2116         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2117         vld4_dup): Add v4hf variant.
2118         (vget_high, vget_low): Add v8hf variant.
2119         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2120         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2121         v4hf and v8hf variants.
2123         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2124         (VDX): Add V4HF.
2125         (V_DOUBLE): Add case for V4HF.
2126         (VQX): Add V8HF.
2127         (V_HALF): Add case for V8HF.
2128         (VDQX): Add V4HF, V8HF.
2129         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2130         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2132         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2133         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2134         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2135         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2136         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2137         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2138         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2139         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2140         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2142         (neon_vcreate, neon_vreinterpretv8qi<mode>,
2143         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2144         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2145         Change VDX to VD_RE.
2147         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2148         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2149         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2151         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2152         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2153         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2154         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2155         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2156         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2157         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2158         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2159         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2161 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2163         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2164         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2165         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2166         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2167         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2168         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2169         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2170         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2171         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2172         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2173         New.
2175 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2177         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2179         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2181         * config/arm/arm-builtins.c (v8hf_UP): New.
2182         (arm_init_simd_builtin_types): Initialise Float16x8_t.
2184         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2186         * config/arm/arm_neon.h (float16x8_t): New typedef.
2188 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2190         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2191         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2192         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2193         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2194         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2195         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2196         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2197         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2198         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2199         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2201 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
2203         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2204         non-alphanumeric characters in the symbol name.
2206 2015-09-07  Marek Polacek  <polacek@redhat.com>
2208         PR inline-asm/67448
2209         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2210         a memory input.
2212 2015-09-07  Marek Polacek  <polacek@redhat.com>
2214         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2216 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
2218         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2219         not warn.
2221 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
2223         PR middle-end/67452
2224         * tree-ssa-live.c: Include cfgloop.h.
2225         (remove_unused_locals): Clear loop->simduid if simduid is about
2226         to be removed from cfun->local_decls.
2228 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2230         PR target/65210
2231         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2232         attribute as well.
2234 2015-09-04  Tom de Vries  <tom@codesourcery.com>
2236         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2238 2015-09-04  Jeff Law  <law@redhat.com>
2240         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2241         unnecessary constructor.  It's now trivial and implemented inside...
2242         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2243         constructor.  Add comments to various methods.  Remove unused
2244         private fields.
2245         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2246         * tree-vrp.c (identify_jump_threads): Likewise.
2247         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2248         indentation issues.
2249         (thread_across_edge): Similarly.
2250         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2251         arguments in constructor call.
2253 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
2255         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2256         temp path contains a '-'.
2258 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
2259             Petr Murzin  <petr.murzin@intel.com>
2260             Kirill Yukhin <kirill.yukhin@intel.com>
2262         * config/i386/i386-builtin-types.def
2263         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2264         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2265         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2266         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2267         * config/i386/i386.c
2268         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2269         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2270         IX86_BUILTIN_SCATTERALTDIV16SI.
2271         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2272         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2273         __builtin_ia32_scatteraltdiv8si.
2274         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2275         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2276         IX86_BUILTIN_SCATTERALTDIV16SI.
2277         (ix86_vectorize_builtin_scatter): New.
2278         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2279         ix86_vectorize_builtin_scatter.
2281 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
2282             Petr Murzin  <petr.murzin@intel.com>
2283             Kirill Yukhin <kirill.yukhin@intel.com>
2285         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2286         * doc/tm.texi: Regenerate.
2287         * target.def: Add scatter builtin.
2288         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2289         for loads/stores in case of gather/scatter accordingly.
2290         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2291         STMT_VINFO_GATHER_P(S).
2292         (vect_check_gather): Rename to ...
2293         (vect_check_gather_scatter): this.
2294         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2295         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2296         (vect_check_gather_scatter): Use it instead of vect_check_gather.
2297         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2298         variable and new checkings for it accordingly.
2299         * tree-vect-stmts.c
2300         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2301         STMT_VINFO_GATHER_P(S).
2302         (vect_check_gather_scatter): Use it instead of vect_check_gather.
2303         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2305 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
2307         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2308         define_insn.
2309         (mulv16qi3): New define_expand.
2311 2015-09-03  Martin Sebor  <msebor@redhat.com>
2313         PR c/66516
2314         * doc/extend.texi (Other Builtins): Document when the address
2315         of a built-in function can be taken.
2317 2015-09-03  Richard Biener  <rguenther@suse.de>
2319         * dwarf2out.c (flush_limbo_die_list): Split out from ...
2320         (dwarf2out_early_finish): ... here.
2321         (dwarf2out_finish): Do not call dwarf2out_early_finish but
2322         flush_limbo_die_list.  Assert we have no deferred asm names.
2324 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2326         * optabs.c (expand_binop): Don't create a broadcast vector with a
2327         source element wider than the inner mode.
2329 2015-09-03  Richard Biener  <rguenther@suse.de>
2331         * varasm.c (output_constant): Use fold_convert instead of
2332         wide_int_to_tree.
2334 2015-09-03  Tom de Vries  <tom@codesourcery.com>
2336         PR tree-optimization/65637
2337         * omp-low.c (expand_omp_for_static_chunk): Handle case that
2338         fin_bb has 2 predecessors.
2340 2015-09-03  Tom de Vries  <tom@codesourcery.com>
2342         PR tree-optimization/65637
2343         * omp-low.c (find_phi_with_arg_on_edge): New function.
2344         (expand_omp_for_static_chunk): Fix inner loop phi.
2346 2015-09-03  Tom de Vries  <tom@codesourcery.com>
2348         PR tree-optimization/65637
2349         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2350         that head is NULL.
2352 2015-09-03  Tom de Vries  <tom@codesourcery.com>
2354         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2356 2015-09-03  Tom de Vries  <tom@codesourcery.com>
2358         * doc/invoke.texi (parloops-chunk-size): Add item.
2359         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2360         * tree-parloops.c: Include params.h.
2361         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2362         param parloops-chunk-size is used.
2364 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2366         PR middle-end/67351
2367         * fold-const.c (fold_binary_loc) : Move
2368         Transform (x >> c) << c into x & (-1<<c) or
2369         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2370         types using simplify and match.
2371         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2372         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2374 2015-09-03  Richard Biener  <rguenther@suse.de>
2376         PR ipa/66705
2377         * tree-ssa-structalias.c (ctor_for_analysis): New function.
2378         (create_variable_info_for_1): Use ctor_for_analysis instead
2379         of get_constructor.
2380         (create_variable_info_for): Likewise.
2382 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
2384         PR ipa/67280
2385         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2386         in new callgraph edge.
2388 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
2390         PR target/59810
2391         PR target/63652
2392         PR target/63653
2393         * config/aarch64/aarch64-simd.md
2394         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2395         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2396         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2397         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2399 2015-09-02  Alan Modra  <amodra@gmail.com>
2401         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2402         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2403         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2405 2015-09-02  Alan Modra  <amodra@gmail.com>
2407         PR target/67417
2408         * config/rs6000/predicates.md (current_file_function_operand): Don't
2409         return true for weak symbols.
2410         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2412 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
2413             Andrew Bennett  <andrew.bennett@imgtec.com>
2415         * config/mips/mips-opts.h (mips_cb_setting): New enum.
2416         * config/mips/mips-protos.h: Add definitions for
2417         mips_output_jump and mips_output_equal_conditional_branch
2418         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2419         JIC instruction.
2420         (mips_emit_compare): Add support for the MIPS R6 conditional
2421         compact branches.
2422         (mips_process_sync_loop): Likewise.
2423         (mips_output_order_conditional_branch): Likewise.
2424         (mips16_build_call_stub): Change MIPS_CALL to
2425         mips_output_jump.
2426         (mips_print_operand_punctuation): Update 's' case to only
2427         apply to micromips r2.
2428         (mips_adjust_insn_length): Add support for forbidden slot
2429         hazards.
2430         (mips_avoid_hazard): Likewise.
2431         (mips_reorg_process_insns): Likewise.
2432         (mips_output_jump): New function.
2433         (mips_output_equal_conditional_branch): Likewise.
2434         (mips_output_conditional_branch): Use jrc/bc if compact
2435         branch support is enabled.  Ensure the forbidden slots
2436         between the two branch instructions is filled with a nop.
2437         (mips_option_override): Add support to process the compact
2438         branch option and set the correct defaults.  Prevent
2439         non-explict relocs being using for MIPS R6.
2440         (mips_trampoline_init): Add compact branch support.
2441         (mips_mult_zero_zero_cost): Allow zero initialisation of
2442         accumulators with TARGET_DSP.
2443         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
2444         (TARGET_CB_MAYBE): New define.
2445         (TARGET_CB_ALWAYS): New define.
2446         (ISA_HAS_DELAY_SLOTS): New define.
2447         (ISA_HAS_COMPACT_BRANCHES): New define.
2448         (ISA_HAS_JRC): New define.
2449         (MIPS_BRANCH_C): New define.
2450         (MIPS_CALL): Removed.
2451         (MICROMIPS_J): Removed.
2452         * config/mips/mips.md (compact_form): New attr.
2453         (hazard): Add support for forbidden slots.
2454         (define_delay): Add support for compact branches.
2455         (*branch_order<mode>): Likewise.
2456         (*branch_order<mode>_inverted): Likewise.
2457         (*branch_equality<mode>): Likewise.
2458         (*branch_equality<mode>_inverted): Likewise.
2459         (*jump_absolute): Likewise.
2460         (*jump_pic): Likewise.
2461         (indirect_jump): Use mips_output_jump to produce assembly output.
2462         (tablejump_<mode>"): Likewise.
2463         (*<optab>"): Likewise.
2464         (<optab>_internal): Likewise.
2465         (sibcall_internal): Likewise.
2466         (sibcall_value_internal): Likewise.
2467         (sibcall_value_multiple_internal): Likewise.
2468         (call_internal): Likewise.
2469         (call_split): Likewise.
2470         (call_internal_direct): Likewise.
2471         (call_direct_split): Likewise.
2472         (call_value_internal): Likewise.
2473         (call_value_split): Likewise.
2474         (call_value_internal_direct): Likewise.
2475         (call_value_direct_split): Likewise.
2476         (call_value_multiple_internal): Likewise.
2477         (call_value_multiple_split): Likewise.
2478         (mips_get_fcsr_mips16_<mode>): Likewise.
2479         (mips_set_fcsr_mips16_<mode>): Likewise.
2480         (tls_get_tp_mips16_<mode>): Likewise.
2481         * config/mips/mips.opt: Add -mcompact-branches option.
2482         * config/mips/predicates.md (order_operator): Ensure the
2483         conditional compact branches are only used if the ISA them.
2484         * doc/invoke.texi: Document -mcompact-branches option.
2486 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
2488         PR target/61578
2489         * lra-lives.c (process_bb_lives): Process move pseudos with the
2490         same value for copies and preferences
2491         * lra-constraints.c (match_reload): Create match reload pseudo
2492         with the same value from single dying input pseudo.
2494 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
2496         PR target/67405
2497         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2499 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
2501         * trans-mem.c: Add contributed-by.
2502         * trans-mem.h: Same.
2504 2015-09-01  Richard Biener  <rguenther@suse.de>
2506         * expr.c (expand_expr_real_1): For expanding TERed defs
2507         set the current location to that of the def if not UNKNOWN.
2509 2015-09-01  David Sherwood  <david.sherwood@arm.com>
2511         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
2513 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2515         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
2516         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
2517         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
2518         Include rtl-iter.h.
2519         (noce_simple_bbs): New function.
2520         (noce_try_move): Bail if basic blocks are not simple.
2521         (noce_try_store_flag): Likewise.
2522         (noce_try_store_flag_constants): Likewise.
2523         (noce_try_addcc): Likewise.
2524         (noce_try_store_flag_mask): Likewise.
2525         (noce_try_cmove): Likewise.
2526         (noce_try_minmax): Likewise.
2527         (noce_try_abs): Likewise.
2528         (noce_try_sign_mask): Likewise.
2529         (noce_try_bitop): Likewise.
2530         (bbs_ok_for_cmove_arith): New function.
2531         (noce_emit_all_but_last): Likewise.
2532         (noce_emit_insn): Likewise.
2533         (noce_emit_bb): Likewise.
2534         (noce_try_cmove_arith): Handle non-simple basic blocks.
2535         (insn_valid_noce_process_p): New function.
2536         (contains_mem_rtx_p): Likewise.
2537         (bb_valid_for_noce_process_p): Likewise.
2538         (noce_process_if_block): Allow non-simple basic blocks
2539         where appropriate.
2541 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
2543         * tree-ssa-dom.c (record_equivalences_from_phis,
2544         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2545         (lookup_avail_expr): Likewise, and remove comment and unused temp.
2547 2015-09-01  Nick Clifton  <nickc@redhat.com>
2549         * config/msp430/msp430.opt (mcpu): Fix typo.
2551 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2553         * config/aarch64/aarch64.c (aarch64_set_current_function):
2554         Re-layout any vector parameters have non-simd layout.
2555         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2556         Delete.
2557         (aarch64_simd_expand_args): Delete call to the above.
2559 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
2561         * doc/invoke.texi (asan-stack): Add space before option.
2563 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
2565         * tree.h (zerop): New function.
2566         * tree.c (zerop): Likewise.
2567         (element_precision): Handle expressions.
2568         * match.pd (define_predicates): Add zerop.
2569         (x <= +Inf): Fix comment.
2570         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2571         * fold-const.c (fold_binary_loc): ... here. Remove.
2573 2015-08-31  Richard Biener  <rguenther@suse.de>
2575         PR middle-end/67381
2576         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2578 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
2580         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2581         (CEXPI): New operator list.
2582         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2583         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2584         Converted from ...
2585         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2587 2015-08-31  Tom de Vries  <tom@codesourcery.com>
2589         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2590         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2591         parameter.
2592         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2593         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2594         (rewrite_into_loop_closed_ssa): ... here.
2595         (replace_uses_in_dominated_bbs): Remove function.
2596         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2597         rewrite_into_loop_closed_ssa_1.
2599 2015-08-31  Michael Matz  <matz@suse.de>
2601         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2602         enter entry and exit blocks for reverse post order.
2604 2015-08-31  Richard Biener  <rguenther@suse.de>
2606         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2607         (lto_location_cache::current_sysp): Likewise.
2608         (output_block::current_sysp): Likewise.
2609         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2610         (lto_location_cache::apply_location_cache): Properly record
2611         system header locations.
2612         (lto_location_cache::input_location): Input whether a file
2613         is a system header.
2614         * lto-streamer-out.c (lto_output_location): Stream whether a file
2615         is a system header.
2617 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2619         PR bootstrap/67363
2620         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2622 2015-08-31  Tom de Vries  <tom@codesourcery.com>
2624         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2625         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2626         Improve function header comments.
2628 2015-08-30  Michael Collison  <michael.collison@linaro.org>
2630         PR other/67320
2631         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2632         standard names
2634 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2636         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2637         special_handling bitfield.
2638         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2639         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2640         that represents a general xxpermdi.
2641         (insn_is_swappable_p): Add handling for vec_concat of two
2642         doublewords, which maps to a specific xxpermdi.
2643         (adjust_xxpermdi): New function.
2644         (adjust_concat): Likewise.
2645         (handle_special_swappables): Call adjust_xxpermdi and
2646         adjust_concat.
2647         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2649 2015-08-30  Rich Felker <dalias@libc.org>
2651         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2652         case instead of sh[123456ble]-*-*.
2654 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
2656         * ira.c (print_unform_and_important_classes,
2657         print_translated_classes): Remove reg_class_names static array.
2658         (print_unform_and_important_classes): Rename to ...
2659         (print_uniform_and_important_classes): ... this.
2660         (ira_debug_allocno_classes): Update accordingly.
2662 2015-08-29  Tom de Vries  <tom@codesourcery.com>
2664         PR tree-optimization/46193
2665         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2666         clause.
2668 2015-08-28  Jeff Law  <law@redhat.com>
2670         PR lto/66752
2671         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2672         unable to find X NE 0 in the tables, return X as the simplified
2673         condition.
2674         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2675         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
2676         to VISISTED_BBS.
2677         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2678         after removing the control flow statement and unnecessary edges.
2680 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
2682         Revert:
2683         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
2685         PR tree-optimization/67283
2686         * tree-sra.c (type_consists_of_records_p): Rename to...
2687         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2689         (completely_scalarize_record): Rename to...
2690         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2691         code to:
2692         (scalarize_elem): New.
2694 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
2696         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2697         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2698         (aarch64_symbol_type): Likewise.
2699         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2700         Likewise.
2701         (aarch64_expand_mov_immediate): Likewise.
2702         (aarch64_print_operand): Likewise.
2703         (aarch64_classify_tls_symbol): Likewise.
2705 2015-08-28  Richard Biener  <rguenther@suse.de>
2707         * cgraphunit.c (symbol_table::compile): Move early debug generation
2708         and finish...
2709         (symbol_table::finalize_compilation_unit): ... back here and
2710         add a !seen_error () guard.
2712 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
2714         * toplev.c (process_options): Do not use flag_loop_block,
2715         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
2716         flag_loop_optimize_isl.
2718 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
2720         * Makefile.in (OBJS): Remove graphite-blocking.o and
2721         graphite-interchange.o.
2722         * common.opt (floop-strip-mine, floop-interchange, floop-block):
2723         Alias of floop-nest-optimize.
2724         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2725         Document as alias of -floop-nest-optimize.
2726         * graphite-blocking.c: Remove.
2727         * graphite-interchange.c: Remove.
2728         * graphite-optimize-isl.c: Include dumpfile.h.
2729         (getScheduleForBand): Add dump for tiled loops.  Use
2730         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2731         * graphite-poly.c (scop_max_loop_depth): Remove.
2732         (print_scattering_function_1): Remove.
2733         (print_scattering_function): Remove.
2734         (print_scattering_functions): Remove.
2735         (debug_scattering_function): Remove.
2736         (debug_scattering_functions): Remove.
2737         (apply_poly_transforms): Remove use of flag_loop_block,
2738         flag_loop_strip_mine, and flag_loop_interchange.
2739         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2740         PBB_ORIGINAL.
2741         (print_pdr_access_layout): Remove.
2742         (print_pdr): Print ISL representation.
2743         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2744         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2745         (free_scop): Same.
2746         (openscop_print_pbb_domain): Remove.
2747         (print_pbb): Remove call to print_scattering_function.
2748         (openscop_print_scop_context): Remove.
2749         (print_scop_context): Do not print matrices anymore.
2750         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2751         SCOP_TRANSFORMED_SCHEDULE.
2752         (print_isl_set): Add printing of a new line.
2753         (print_isl_map): Same.
2754         (print_isl_aff): Same.
2755         (print_isl_constraint): Same.
2756         (loop_to_lst): Remove.
2757         (scop_to_lst): Remove.
2758         (lst_indent_to): Remove.
2759         (print_lst): Remove.
2760         (debug_lst): Remove.
2761         (dot_lst_1): Remove.
2762         (dot_lst): Remove.
2763         (reverse_loop_at_level): Remove.
2764         (reverse_loop_for_pbbs): Remove.
2765         * graphite-poly.h (pdr_dim_iter_domain): Remove.
2766         (pdr_nb_params): Remove.
2767         (pdr_alias_set_dim): Remove.
2768         (pdr_subscript_dim): Remove.
2769         (pdr_iterator_dim): Remove.
2770         (pdr_parameter_dim): Remove.
2771         (same_pdr_p): Remove.
2772         (struct poly_scattering): Remove.
2773         (struct poly_bb): Remove _original, _transformed, _saved.
2774         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
2775         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
2776         (PBB_NB_LOCAL_VARIABLES): Remove.
2777         (PBB_NB_SCATTERING_TRANSFORM): Remove.
2778         (schedule_to_scattering): Remove.
2779         (number_of_write_pdrs): Remove.
2780         (pbb_dim_iter_domain): Remove.
2781         (pbb_nb_params): Remove.
2782         (pbb_nb_scattering_orig): Remove.
2783         (pbb_nb_scattering_transform): Remove.
2784         (pbb_nb_dynamic_scattering_transform): Remove.
2785         (pbb_nb_local_vars): Remove.
2786         (pbb_iterator_dim): Remove.
2787         (pbb_parameter_dim): Remove.
2788         (psco_scattering_dim): Remove.
2789         (psct_scattering_dim): Remove.
2790         (psct_local_var_dim): Remove.
2791         (psco_iterator_dim): Remove.
2792         (psct_iterator_dim): Remove.
2793         (psco_parameter_dim): Remove.
2794         (psct_parameter_dim): Remove.
2795         (psct_dynamic_dim): Remove.
2796         (psct_static_dim): Remove.
2797         (psct_add_local_variable): Remove.
2798         (new_lst_loop): Remove.
2799         (new_lst_stmt): Remove.
2800         (free_lst): Remove.
2801         (copy_lst): Remove.
2802         (lst_add_loop_under_loop): Remove.
2803         (lst_depth): Remove.
2804         (lst_dewey_number): Remove.
2805         (lst_dewey_number_at_depth): Remove.
2806         (lst_pred): Remove.
2807         (lst_succ): Remove.
2808         (lst_find_pbb): Remove.
2809         (find_lst_loop): Remove.
2810         (lst_find_first_pbb): Remove.
2811         (lst_empty_p): Remove.
2812         (lst_find_last_pbb): Remove.
2813         (lst_contains_p): Remove.
2814         (lst_contains_pbb): Remove.
2815         (lst_create_nest): Remove.
2816         (lst_remove_from_sequence): Remove.
2817         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2818         (lst_niter_for_loop): Remove.
2819         (pbb_update_scattering): Remove.
2820         (lst_update_scattering_under): Remove.
2821         (lst_update_scattering): Remove.
2822         (lst_insert_in_sequence): Remove.
2823         (lst_replace): Remove.
2824         (lst_substitute_3): Remove.
2825         (lst_distribute_lst): Remove.
2826         (lst_remove_all_before_including_pbb): Remove.
2827         (lst_remove_all_before_excluding_pbb): Remove.
2828         (struct scop): Remove original_schedule, transformed_schedule, and
2829         saved_schedule.
2830         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2831         (SCOP_SAVED_SCHEDULE): Remove.
2832         (poly_scattering_new): Remove.
2833         (poly_scattering_free): Remove.
2834         (poly_scattering_copy): Remove.
2835         (store_scattering_pbb): Remove.
2836         (store_lst_schedule): Remove.
2837         (restore_lst_schedule): Remove.
2838         (store_scattering): Remove.
2839         (restore_scattering_pbb): Remove.
2840         (restore_scattering): Remove.
2841         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2842         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
2843         compute the scattering polyhedron dimension from the dimension of
2844         pbb->domain.
2845         (build_scop_scattering): Update call to
2846         build_pbb_scattering_polyhedrons.
2847         (build_poly_scop): Remove call to scop_to_lst.
2848         * graphite.c (graphite_transform_loops): Add call to print_scop.
2849         (gate_graphite_transforms): Remove use of flag_loop_block,
2850         flag_loop_interchange, and flag_loop_strip_mine.
2852 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
2854         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2855         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2856         -floop-nest-optimize.
2857         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2858         (generate_luj_sepclass): Remove.
2859         (generate_luj_options): Remove.
2860         (set_options): Remove opt_luj.
2861         (scop_to_isl_ast): Remove opt_luj.
2862         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2863         flag_loop_unroll_jam.
2864         (getPrevectorMap_full): Remove.
2865         (getScheduleForBandList): Remove map_sepcl.
2866         (getScheduleMap): Same.
2867         (apply_schedule_map_to_scop): Remove sepcl.
2868         (optimize_isl): Same.
2869         * graphite-poly.c (apply_poly_transforms): Remove check for
2870         flag_loop_unroll_jam.
2871         (new_poly_bb): Remove map_sepclass.
2872         * graphite-poly.h (struct poly_bb): Same.
2873         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2874         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2875         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2876         * toplev.c (process_options): Remove flag_loop_unroll_jam.
2878 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
2880         PR target/67317
2881         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2882         (addqi3_cc): Ditto.
2883         (UNSPEC_ADD_CARRY): Remove.
2884         (addqi3_cconly_overflow): New expander.
2885         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2886         Adjust for changed add<mode>3_carry.
2887         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2888         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2889         (<plusminus_insn><mode>3_carry): Remove expander.
2890         (*<plusminus_insn><mode>3_carry): Split insn pattern to
2891         add<mode>3_carry and sub<mode>3_carry.
2892         (plusminus_carry_mnemonic): Remove code attribute.
2893         (add<mode>3_carry): Canonicalize insn pattern.
2894         (*addsi3_carry_zext): Ditto.
2895         (sub<mode>3_carry): Ditto.
2896         (*subsi3_carry_zext): Ditto.
2897         (adcx<mode>3): Remove insn pattern.
2898         (addcarry<mode>): New insn pattern.
2899         (subborrow<mode>): Ditto.
2900         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2901         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2902         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2903         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2904         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2905         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2906         Rewrite expander to not clobber carry flag chains.
2908 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
2910         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2911         instead of a rotate.
2913 2015-08-27  Marek Polacek  <polacek@redhat.com>
2915         PR middle-end/67005
2916         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2917         an entry into an irreducible region.
2919 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2921         * configure: Regenerate.
2923 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
2925         PR tree-optimization/67283
2926         * tree-sra.c (type_consists_of_records_p): Rename to...
2927         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2929         (completely_scalarize_record): Rename to...
2930         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2931         (scalarize_elem): New.
2933 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
2935         * tree-sra.c (completely_scalarize_var): Rename to...
2936         (create_total_scalarization_access): ... Here. Drop call to
2937         completely_scalarize_record.
2939         (analyze_all_variable_accesses): Replace completely_scalarize_var
2940         with create_total_scalarization_access and completely_scalarize_record.
2942 2015-08-27  Alan Modra  <amodra@gmail.com>
2944         PR target/67356
2945         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2946         for operand 1.
2948 2015-08-27  Richard Biener  <rguenther@suse.de>
2950         * passes.c (rest_of_decl_compilation): Guard early_global_decl
2951         call with !seen_error ().
2952         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2953         early debug generation and finish...
2954         (symbol_table::compile): ... here to put it after a !seen_error ()
2955         guard.
2957 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2959         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2960         Solaris 12+.
2962 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2963             Andre Vieira  <andre.simoesdiasvieira@arm.com>
2965         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2966         (*cb<optab><mode>1): Likewise.
2967         (*tb<optab><mode>1): Likewise.
2968         (*cb<optab><mode>1): Likewise.
2969         * config/aarch64/iterators.md (inv_cb): New code attribute.
2970         (inv_tb): Likewise.
2971         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2972         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2974 2015-08-27  Richard Biener  <rguenther@suse.de>
2976         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2978 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2980         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2981         trap to fix ICE.
2983 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2985         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2986         Add declaration.
2988         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2989         comment.
2990         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2991         floating point in VSX registers.
2992         (rs6000_output_move_128bit): Always print out the set insn if we
2993         can't generate an appropriate 128-bit move.
2994         (rs6000_generate_compare): Add support for IEEE 128-bit floating
2995         point in VSX registers comparisons.
2996         (rs6000_expand_float128_convert): Likewise.
2998         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2999         predicate for only GPR hard registers.
3001         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3002         modes to iterators. Add new iterators for moving 128-bit values in
3003         scalar FPR registers and VSX registers.
3004         (FMOVE128): Likewise.
3005         (FMOVE128_FPR): Likewise.
3006         (FMOVE128_GPR): Likewise.
3007         (FMOVE128_VSX): Likewise.
3008         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3009         in VSX registers.
3010         (IFKF): Likewise.
3011         (IBM128): Likewise.
3012         (TFIFKF): Likewise.
3013         (RELOAD): Add IEEE 128-bit floating point modes.
3014         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3015         floating point in VSX registers modes.
3016         (signbit<mode>2, IBM128 iterator): Likewise.
3017         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3018         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3019         (negtf2): Likewise.
3020         (neg<mode>2, TFIFKF iterator): Likewise.
3021         (negtf2_internal): Likewise.
3022         (abstf2): Likewise.
3023         (abs<mode>2, TFIFKF iterator): Likewise.
3024         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3025         VSX insn support for negate, absolute value, and negative absolute
3026         value.
3027         (ieee_128bit_vsx_neg<mode>2): Likewise.
3028         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3029         (ieee_128bit_vsx_abs<mode>2): Likewise.
3030         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3031         (ieee_128bit_vsx_nabs<mode>2): Likewise.
3032         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3033         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3034         floating point in VSX registers.
3035         (unpack<mode>_dm): Likewise.
3036         (unpack<mode>_nodm): Likewise.
3037         (pack<mode>): Likewise.
3038         (unpackv1ti): Likewise.
3039         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3040         (packv1ti): Likewise.
3041         (pack<mode>, FMOVE128_VSX iterator): Likewise.
3042         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3043         registers.
3044         (extenddftf2_internal): Likewise.
3045         (trunctfdf2): Likewise.
3046         (trunctfdf2_internal2): Likewise.
3047         (fix_trunc_helper): Likewise.
3048         (fix_trunctfdi2"): Likewise.
3049         (floatditf2): Likewise.
3050         (floatuns<mode>tf2): Likewise.
3051         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3052         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3053         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3054         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3055         (float<SDI:mode><IFKF:mode>2): Likewise.
3056         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3058 2015-08-26  Renlin Li  <renlin.li@arm.com>
3060         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3062 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3063             Jiong Wang  <jiong.wang@arm.com>
3065         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3066         (tlsie_tiny_<mode>): New define_insn.
3067         (tlsie_tiny_sidi): Likewise.
3068         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3069         SYMBOL_TINY_TLSIE.
3070         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3071         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3072         SYMBOL_TINY_TLSIE.
3073         (aarch64_expand_mov_immediate): Likewise.
3074         (aarch64_print_operand): Likewise.
3075         (arch64_classify_tls_symbol): Likewise.
3077 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
3079         * config/arm/arm-arches.def: Replace single value flags with
3080         an initializer built from ARM_FSET_MAKE_CPU1.
3081         * config/arm/arm-cores.def: Likewise.
3082         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3083         derivation from the ARM_CORE macro definition, use the given value
3084         instead.
3085         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3086         ARM_ARCH macro definition, use the given value instead.
3088 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
3090         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3091         feature set.
3092         (struct builtin_description): Replace field mask with field
3093         features.
3094         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3095         (IWMMXT2_BUILTIN): Likewise.
3096         (IWMMXT2_BUILTIN2): Likewise.
3097         (FP_BUILTIN): Likewise.
3098         (CRC32_BUILTIN): Likewise.
3099         (CRYPTO_BUILTIN): Likewise.
3100         (iwmmx_mbuiltin): Likewise.
3101         (iwmmx2_mbuiltin): Likewise.
3102         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3103         struct builtin_description.
3105 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
3107         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3108         (struct builtin_description): Change type of mask to unsigned
3109         long.
3110         * config/arm/arm-protos.h (insn_flags): Declare as type
3111         arm_feature_set.
3112         (tune_flags): Likewise.
3113         * config/arm/arm.c (feature_count): New.
3114         (insn_flags): Define as type arm_feature_set.
3115         (tune_flags): Likewise.
3116         (struct processors): Define field flags as type arm_feature_set.
3117         (all_cores): Update for change to struct processors.
3118         (all_architectures): Likewise.
3119         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3120         macros.
3121         (arm_option_override_internal): Likewise.
3122         (arm_option_override): Likewise.
3124 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3125             Jiong Wang  <jiong.wang@arm.com>
3127         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3128         tls size for tiny, small, large memory model.
3129         (aarch64_load_symref_appropriately): Support new symbol types.
3130         (aarch64_expand_mov_immediate): Likewise.
3131         (aarch64_print_operand): Likewise.
3132         (aarch64_classify_tls_symbol): Likewise.
3133         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3134         (aarch64_symbol_type): Likewise.
3135         * config/aarch64/aarch64.md (tlsle): Deleted.
3136         (tlsle12_<mode>): New define_insn.
3137         (tlsle24_<mode>): Likewise.
3138         (tlsle32_<mode>): Likewise.
3139         (tlsle48_<mode>): Likewise.
3140         * doc/sourcebuild.texi (AArch64-specific attributes): Document
3141         "aarch64_tlsle32".
3143 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
3145         * config/arm/arm-protos.h (FL_NONE): New.
3146         (FL_ANY): New.
3147         (arm_feature_set): New.
3148         (ARM_FSET_MAKE): New.
3149         (ARM_FSET_MAKE_CPU1): New.
3150         (ARM_FSET_MAKE_CPU2): New.
3151         (ARM_FSET_CPU1): New.
3152         (ARM_FSET_CPU2): New.
3153         (ARM_FSET_EMPTY): New.
3154         (ARM_FSET_ANY): New.
3155         (ARM_FSET_HAS_CPU1): New.
3156         (ARM_FSET_HAS_CPU2): New.
3157         (ARM_FSET_HAS_CPU): New.
3158         (ARM_FSET_ADD_CPU1): New.
3159         (ARM_FSET_ADD_CPU2): New.
3160         (ARM_FSET_DEL_CPU1): New.
3161         (ARM_FSET_DEL_CPU2): New.
3162         (ARM_FSET_UNION): New.
3163         (ARM_FSET_INTER): New.
3164         (ARM_FSET_XOR): New.
3165         (ARM_FSET_EXCLUDE): New.
3166         (AFM_FSET_IS_EMPTY): New.
3167         (ARM_FSET_CPU_SUBSET): New.
3169 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
3171         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3172         SYMBOL_TLSLE to SYMBOL_TLSLE24.
3173         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3174         Likewise.
3175         (aarch64_expand_mov_immediate): Likewise.
3176         (aarch64_print_operand): Likewise.
3177         (aarch64_classify_symbol): Likewise.
3179 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
3181         * config/aarch64/aarch64.opt (mtls-size): New entry.
3182         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3183         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3184         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3186 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
3188         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3189         ARM_CORE entry.  Fix some white-space.
3190         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3191         ARM_CORE definition.
3193 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3195         * fold-const.c (fold_binary_loc) : Move Optimize
3196         root(x)*root(y) as root(x*y) to match.pd.
3197         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3198         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3199         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3200         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3201         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3202         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3203         (mult (exps:s @0) (exps:s @1)) : New simplifier.
3204         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3205         (rdiv @0 (exps:s @1)) : New simplifier.
3207 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
3209         * gcc.c (driver::finalize): Only assign to extra_specs if
3210         [EXTRA_SPECS].
3212 2015-08-25  Marek Polacek  <polacek@redhat.com>
3214         PR middle-end/67330
3215         * varasm.c (declare_weak): Return after giving an error.
3217 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
3219         * gcc-main.c (main): Add params to driver ctor.
3220         * gcc.c (class env_manager): New.
3221         (env): New global.
3222         (env_manager::init): New.
3223         (env_manager::get): New.
3224         (env_manager::xput): New.
3225         (env_manager::restore): New.
3226         Poison getenv and putenv.
3227         (DEFAULT_TARGET_SYSTEM_ROOT): New.
3228         (target_system_root): Update initialization to use
3229         DEFAULT_TARGET_SYSTEM_ROOT.
3230         (struct spec_list): Add field "default_ptr".
3231         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3232         (init_spec): Likewise.
3233         (set_spec): Clear field "default_ptr".
3234         (read_specs): Free "spec" and "buffer".
3235         (xputenv): Reimplement in terms of env_manager.
3236         (process_command): Replace ::getenv calls with calls to the
3237         env_manager singleton.
3238         (process_brace_body): Free string in three places.
3239         (driver::driver): New.
3240         (driver::~driver): New.
3241         (used_arg): Convert from a function to...
3242         (class used_arg_t): ...this class, and...
3243         (used_arg): ...this new global instance.
3244         (used_arg_t::finalize): New function.
3245         (getenv_spec_function): Add "const" to local "value".  Replace
3246         ::getenv call with call to the env_manager singleton.
3247         (path_prefix_reset): New function.
3248         (driver::finalize): New function.
3249         * gcc.h (driver::driver): New.
3250         (driver::~driver): New.
3251         (driver::finalize): New.
3253 2015-08-25  Nathan Sidwell  <nathan@acm.org>
3255         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3256         target doesn't have one.
3258 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
3260         PR target/67346
3261         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3263 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
3265         PR target/67344
3266         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3267         a define_insn, remove second alternative.
3269 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
3270             Joseph Myers  <joseph@codesourcery.com>
3272         * gcc.c (struct switchstr): Expand comment.
3274 2015-08-25  Nathan Sidwell  <nathan@acm.org>
3276         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3277         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3279 2015-08-25  Richard Biener  <rguenther@suse.de>
3281         PR middle-end/67306
3282         * genmatch.c (expr::gen_transform): Verify the result of
3283         builtin_decl_implicit.
3284         (dt_simplify::gen_1): Likewise.
3286 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3288         * config/arm/constraints.md: Also list Cs and US ARM-specific
3289         constraints as used.
3291 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
3293         PR target/66609
3294         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3295         UNSPEC_PCREL.
3296         (nonpic_symbol_mentioned_p): Likewise.
3297         (sh_delegitimize_address): Likewise.
3298         (sh_function_ok_for_sibcall): Take into account weak symbols.
3299         (sh_expand_sym_label2reg): New.
3300         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3301         * config/sh/sh.md (UNSPEC_PCREL): New enum.
3302         (call_pcrel): Use sh_expand_sym_label2reg.
3303         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3304         (symPCREL_label2reg) New expand.
3306 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
3308         * graphite-poly.c: Change type of region from void* to sese.
3309         * graphite-poly.h (struct scop): Changing the type of scop::region
3310         from void* to sese. Change accessor macro accordingly.
3311         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3313 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
3315         * graphite-scop-detection.c (stmt_simple_for_scop_p):
3316         Constrain only on INTEGER_TYPE.
3318 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3320         PR target/67211
3321         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3322         -mefficient-unaligned-vsx on ISA 2.7.
3324         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3325         option to a masked option.
3327         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3328         logic for -mefficient-unaligned-vsx so that it is set via an arch
3329         ISA option, instead of being set if -mtune=power8 is set. Move
3330         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3331         near other default option handling.
3333 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3335         * genflags.c (gen_macro): Delete.
3336         (gen_proto): Don't create GEN.*CALL.* macros.
3337         * gensupport.h (get_file_location): Declare.
3338         * gensupport.c (rtx_locs): New variable.
3339         (read_md_rtx): Record rtx locations.
3340         (get_file_location): New function.
3341         * target-insns.def (call, call_pop, call_value, call_value_pop)
3342         (sibcall, sibcall_value): New patterns.
3343         * gentarget-def.c (parse_argument): New function.
3344         (def_target_insn): Use it.  Handle optional operands.  Raise an
3345         error if an .md pattern has the wrong number of operands for the
3346         pattern name.  Remove the names of unused operands from the prototype.
3347         * builtins.c (expand_builtin_apply): Use targetm functions
3348         instead of HAVE_call_value and GEN_CALL_VALUE.
3349         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
3350         and sibcall_value_pop.
3351         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3352         of GEN_CALL.
3353         * config/alpha/alpha.md (untyped_call): Likewise.
3354         * config/iq2000/iq2000.md (untyped_call): Likewise.
3355         * config/m68k/m68k.md (untyped_call): Likewise.
3356         * config/mips/mips.md (untyped_call): Likewise.
3357         * config/pa/pa.md (untyped_call): Likewise.
3358         * config/rs6000/rs6000.md (untyped_call): Likewise.
3359         * config/sparc/sparc.md (untyped_call): Likewise.
3360         * config/tilegx/tilegx.md (untyped_call): Likewise.
3361         * config/tilepro/tilepro.md (untyped_call): Likewise.
3362         * config/visium/visium.md (untyped_call): Likewise.
3363         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3364         gen_call_value instead of GEN_CALL_VALUE.
3365         * config/arm/arm.md (untyped_call): Likewise.
3366         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3367         GEN_CALL.
3369 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3371         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3372         (have_cbranchcc4): New variable.
3373         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3374         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3375         (if_convert): Initialize have_cbranchcc4.
3377 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3379         * builtins.c (expand_cmpstrn): Rename to...
3380         (expand_cmpstrn_or_cmpmem): ...this.
3381         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3382         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3383         Remove mode argument.
3384         (expand_builtin): Update accordingly.
3386 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3388         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3389         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
3390         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3391         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3392         Add predicates for operands 0 and 3.
3393         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3394         operand.
3395         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3396         immediate_operand to nonmemory_operand.
3398 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3400         * df-scan.c (df_insn_info_init_fields): New function, split out
3401         from...
3402         (df_insn_create_insn_record): ...here.
3403         (df_insn_info_free_fields): New function, split out from...
3404         (df_insn_info_delete): ...here.
3405         (df_insn_rescan): Use the new functions instead of freeing and
3406         reallocating the df_insn_info.
3408 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3410         * doc/install.texi (Binaries): Remove links no longer valid.
3412 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
3414         * config/nvptx/mkoffload.c (process): Replace
3415         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3417 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
3419         PR target/67329
3420         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3422 2015-08-24  Renlin Li  <renlin.li@arm.com>
3424         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3425         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3426         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3427         * config/arm/constraints.md ("j"): Add check for high code.
3429 2015-08-24  Tom de Vries  <tom@codesourcery.com>
3431         PR tree-optimization/65468
3432         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
3433         chunk_size is one.
3435 2015-08-24  Nathan Sidwell  <nathan@acm.org>
3437         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
3438         change to nvptx_type_from_mode call. Use arg_promotion for both
3439         split and non-split args.
3441 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3443         * target-insns.def (movstr): New pattern.
3444         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
3445         (expand_movstr): Use targetm rather than HAVE_movstr/
3446         CODE_FOR_movstr.
3448 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
3450         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
3451         cast syntax.
3453 2015-08-24  Andrew Pinski  <apinski@cavium.com>
3455         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
3456         AARCH64_EXTRA_TUNING_OPTION.
3457         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
3458         New enum.
3459         (aarch64_extra_tuning_flags): Base the shifted value on the index
3460         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
3461         * config/aarch64/aarch64.c: Remove the last argument to
3462         AARCH64_EXTRA_TUNING_OPTION.
3464 2015-08-23  Nathan Sidwell  <nathan@acm.org>
3466         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
3467         decls.
3468         (nvptx_declare_function_name): Insert formatting tabs for
3469         consistency.
3471 2015-08-23  Tom de Vries  <tom@codesourcery.com>
3473         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
3474         parm_decl, rather than generating a dummy default def in cfun.
3475         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
3476         ssa_name from cfun and child_fn do not share a stmt as def stmt.
3477         (move_stmt_op): Handle PARM_DECl.
3478         (gather_ssa_name_hash_map_from): New function.
3479         (move_sese_region_to_fn): Add default defs for function params, and add
3480         them to vars_map.  Release copied ssa names.
3481         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3483 2015-08-23  Tom de Vries  <tom@codesourcery.com>
3485         * doc/sourcebuild.texi: Rename vect_no_int_max with
3486         vect_no_int_min_max.  Update description.
3488 2015-08-22  Andrew Pinski  <apinski@cavium.com>
3490          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3491         * config/aarch64/aarch64-protos.h
3492         (aarch64_fusion_pairs_index): New enum.
3493         (aarch64_fusion_pairs): Base the shifted value on the index instead
3494         Rewrite AARCH64_FUSE_ALL to be based on the end index.
3495         of the argument to AARCH64_FUSION_PAIR.
3496         * config/aarch64/aarch64.c: Remove the last argument to
3497         AARCH64_FUSION_PAIR.
3499 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
3501         * dominance.c (new_zero_array): Define.
3502         (dom_info): Redefine as class with proper encapsulation.
3503         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
3504         Add new members.
3505         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
3506         allocations/deallocations.  Pass function as parameter (instead of
3507         using cfun).
3508         (dom_info::get_idom): Define accessor method.
3509         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
3510         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
3511         (calculate_dominance_info): Adjust to use dom_info class.
3512         (verify_dominators): Likewise.
3514 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
3516         * print-rtl.c (print_rtx): Check the correct range for
3517         flag_dump_unnumbered_links to behave as documented.
3519         PR rtl-optimization/67227
3520         PR rtl-optimization/64164
3521         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
3522         (nonoverlapping_memrefs_p): Test offsets and sizes when given
3523         identical gimple_reg exprs.
3525 2015-08-21  Nathan Sidwell  <nathan@acm.org>
3527         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3528         expansion.
3529         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3530         crtl->stack_alignment_needed to determine alignment.
3531         (nvptx_get_drap_rtx): New.
3532         (TARGET_GET_DRAP_RTX): Override.
3533         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3535 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3537         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3539 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3541         * configure.ac: Remove uwin* cases.
3542         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3543         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3544         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3545         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3546         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3547         i[34567]86-*-uwin*, powerpc-*-beos*.
3549 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
3551         * gencodes.c (gencodes): Print the comma for the preceding
3552         enum value rather than the current one.  Use aliased enum values
3553         rather than #defines for compiled-out patterns.
3554         (main): Update accordingly.  Replace LAST_INSN_CODE with
3555         NUM_INSN_CODES.
3556         * lra.c (insn_code_data): Update accordingly.
3557         (finish_insn_code_data_once, get_static_insn_data): Likewise.
3558         * recog.h (target_recog): Likewise.
3559         (preprocess_insn_constraints): Change parameter to unsigned int.
3560         * recog.c (preprocess_insn_constraints): Likewise.
3561         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3562         * tree-vect-stmts.c (vectorizable_operation): Simplify.
3564 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3566         PR rtl-optimization/61657
3567         * loop-iv.c (iv_number_of_iterations): Declare up and down as
3568         unsigned.  Remove superflous uint64_t cast.
3570 2014-08-21  Felix Yang  <felix.yang@huawei.com>
3571             Jiji Jiang  <jiangjiji@huawei.com>
3573         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
3574         argument and get builtin function code directly from CALL.
3575         (gimple_stringop_fixed_value): Modified accordingly.
3576         (gimple_stringops_transform, gimple_stringops_values_to_profile):
3577         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
3579 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3581         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3583 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3585         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3586         to match.pd.
3587         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3588         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3589         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3590         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3591         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3592         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3593         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3594         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3595         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3596         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3598         * match.pd (SIN ) : New Operator.
3599         (TAN) : New Operator.
3600         (mult (SQRT@1 @0) @1) : New simplifier.
3601         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3602         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3603         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3604         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3605         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3606         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3607         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3608         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3609         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3610         (rdiv @0 (POW:s @1 @2)) : New simplifier.
3612 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
3614         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3615         loop if EXPR is simplified to const value.
3617 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
3619         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3620         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3622 2015-08-21  Richard Biener  <rguenther@suse.de>
3624         PR middle-end/67285
3625         * gimple-fold.c (replace_stmt_with_simplification): Assert
3626         seq is empty when replacing a call with itself but different
3627         arguments.
3628         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3629         a call require that it is const.
3631 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3633         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3634         * builtins.c (get_object_alignment_2): Adjust.
3635         * varasm.c (align_variable): Likewise.
3636         (get_variable_align): Likewise.
3637         (build_constant_desc): Likewise.
3638         (force_const_mem): Likewise.
3639         * doc/tm.texi.in: Likewise.
3640         * doc/tm.texi: Regenerate.
3642 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3644         * genconfig.c (main): Always define HAVE_cc0.
3645         * recog.c (rest_of_handle_peephole2): Adjust.
3647 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3649         * reorg.c (relax_delay_slots): Don't use #if to check value of
3650         HAVE_cc0.
3652 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3654         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3655         * targhooks.c (default_have_conditional_execution): Adjust.
3657 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
3659         * rtl.h (rtvec_all_equal_p): Declare.
3660         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3661         * rtl.c (rtvec_all_equal_p): New function.
3662         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3663         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3664         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3665         * config/arm/arm.c (neon_vdup_constant): Likewise.
3666         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3667         * config/tilegx/constraints.md (W, Y): Likewise.
3668         * config/tilepro/constraints.md (W, Y): Likewise.
3669         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3670         (classify_immediate): Use unwrap_const_vec_duplicate.
3671         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3672         (reg_or_v2s8bit_operand): Likewise.
3673         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3674         (reg_or_v4s8bit_operand): Likewise.
3676 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3678         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3679         (vec_shasigma_be): New #define.
3680         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3681         (VPMSUMH): Likewise.
3682         (VPMSUMW): Likewise.
3683         (VPMSUMD): Likewise.
3684         (VPMSUM): New BU_P8V_OVERLOAD_2.
3685         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3686         entries for VEC_MADD and VEC_VPMSUM.
3688 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
3690         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3691         Multiply argument avr_n_flash by 64 to match unit of "KiB".
3692         (avr_pgm_check_var_decl): Same.
3694 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
3696         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3697         initialization of HFmode scalar type (float16_t) to...
3698         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3699         code.
3701         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3703         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3704         having an -mfp16-format.
3706 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
3708         * config/i386/predicates.md (vector_all_ones_operand): Use
3709         CONSTM1_RTX to simplify definition.
3711 2015-08-20  Richard Biener  <rguenther@suse.de>
3713         * toplev.c (compile_file): Remove loop calling late_global_decl
3714         on all symbols.
3715         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3716         on decls we assembled.
3718 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
3720         * common/config/aarch64/aarch64-common.c
3721         (AARCH64_CPU_NAME_LENGTH): Delete.
3722         (aarch64_option_extension): New.
3723         (all_extensions): Likewise.
3724         (processor_name_to_arch): Likewise.
3725         (arch_to_arch_name): Likewise.
3726         (all_cores): New.
3727         (all_architectures): Likewise.
3728         (aarch64_get_extension_string_for_isa_flags): Likewise.
3729         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3730         architecture names.
3731         * config/aarch64/aarch64-protos.h
3732         (aarch64_get_extension_string_for_isa_flags): New.
3733         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3734         (aarch64_option_print): Get the string to print from
3735         aarch64_get_extension_string_for_isa_flags.
3736         (aarch64_declare_function_name): Likewise.
3737         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3738         (MCPU_TO_MARCH_SPEC): This.
3739         (ASM_CPU_SPEC): Use it.
3740         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3741         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3742         (EXTRA_SPEC_FUNCTIONS): Use it.
3744 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
3746         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3747         expansion when !ISA_HAS_LWL_LWR.
3748         (mips_block_move_straight): Update the size of elements copied to
3749         account for alignment when !ISA_HAS_LWL_LWR.
3750         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3752 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
3754         * expr.c (expand_expr_real_2): Check gimple statement during
3755         LSHIFT_EXPR expand.
3757 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
3759         * common.opt (fstack-protector): Initialize to -1.
3760         (fstack-protector-all): Likewise.
3761         (fstack-protector-strong): Likewise.
3762         (fstack-protector-explicit): Likewise.
3763         * configure.ac: Add --enable-default-ssp.
3764         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
3765         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
3766         -1.
3767         * doc/install.texi: Document --enable-default-ssp.
3768         * config.in: Regenerated.
3769         * configure: Likewise.
3771 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
3773         PR rtl-optimization/64164
3774         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
3775         (parm_in_stack_slot_p): ... this.  Disregard mode, what
3776         matters is whether the parm will live in a pseudo or a stack
3777         slot.
3778         (expand_one_ssa_partition): Deal with params without a default
3779         def.  Disregard mode.
3780         * cfgexpand.h: Renamed function declaration.
3781         * tree-ssa-coalesce.c: Adjust.
3782         * function.c (split_complex_args): Allocate stack slot for
3783         unassigned parms before splitting.
3784         (parm_in_unassigned_mem_p): New.  Use it instead of
3785         parm_maybe_byref_p throughout this file.
3786         (assign_parm_setup_block): Use it.  Accept pseudos in the
3787         expand-assigned rtl.
3788         (assign_parm_setup_reg): Drop BLKmode requirement.
3789         (assign_parm_setup_stack): Allocate and fill in the address of
3790         unassigned MEM parms.
3792 2015-08-19  David Sherwood  <david.sherwood@arm.com>
3794         * genmodes.c (emit_mode_unit_size_inline): New function.
3795         (emit_mode_unit_precision_inline): New function.
3796         (emit_insn_modes_h): Emit new #define.  Emit new functions.
3797         (emit_mode_unit_size): New function.
3798         (emit_mode_unit_precision): New function.
3799         (emit_mode_adjustments): Add mode_unit_size adjustments.
3800         (emit_insn_modes_c): Emit new arrays.
3801         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
3802         use new inline methods.
3804 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3806         * config/aarch64/aarch64.c (bit_count): Delete prototype
3807         and definition.
3808         (aarch64_print_operand): Use popcount_hwi instead of the above.
3810 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3812         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3813         comment.
3815 2015-08-19  Marek Polacek  <polacek@redhat.com>
3817         PR middle-end/67133
3818         * gimple-ssa-isolate-paths.c
3819         (insert_trap_and_remove_trailing_statements): Rename to ...
3820         (insert_trap): ... this.  Don't remove trailing statements; split
3821         block instead.
3822         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3824 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
3826         PR other/67042
3827         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3828         conditionalize the whole on __GNUC__.  Add fallback code
3829         depending neither on undefined nor implementation-defined behaviour.
3831 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
3833         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3834         whitespaces with tab.
3836 2015-08-19  Florian Weimer  <fweimer@redhat.com>
3838         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3839         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3840         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3841         Move Name_Ids instantiation to the Prj.Proc package, to avoid
3842         trampolines.
3844 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3846         * config/arm/arm.c (bounds_check): Use %wd print format
3847         for HOST_WIDE_INT arguments.
3849 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
3851         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3852         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3853         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3854         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3855         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3856         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3857         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3858         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3859         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3860         typedefs.
3862 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
3864         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3865         function.c, graphite-scop-detection.c, haifa-sched.c,
3866         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3867         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3868         varasm.c: Remove typedefs of structs.
3870 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
3872         * config/rs6000/altivec.h (vec_adde): New define.
3873         (vec_addec): Likewise.
3874         (vec_double): Likewise.
3875         (vec_bperm): Likewise.
3876         (vec_gb): Likewise.
3877         * config/rs6000/rs6000-builtin.def (ADDE): New
3878         BU_ALTIVEC_OVERLOAD_3.
3879         (ADDEC): Likewise.
3880         (DOUBLE): New BU_VSX_OVERLOAD_1.
3881         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3882         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3883         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3884         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3885         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3886         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3887         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3888         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3889         and P8V_BUILTIN_VEC_VBPERMQ.
3891 2015-08-18  Jason Merrill  <jason@redhat.com>
3893         * print-tree.c (print_node): Handle TREE_BINFO.
3895 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3897         PR middle-end/36757
3898         * builtins.c (expand_builtin_signbit): Add asserts to make sure
3899         we can expand BUILT_IN_SIGNBIT inline.
3900         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3901         * doc/extend.texi: Document the type-generic __builtin_signbit.
3903 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
3905         PR rtl-optimization/67218
3906         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3907         (simplify_unary_operation_1): Use it.
3909 2015-08-18  Marek Polacek  <polacek@redhat.com>
3911         PR middle-end/67222
3912         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3913         if the call isn't valid.
3914         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3915         gimple_call_builtin_p.
3916         (call_may_clobber_ref_p_1): Likewise.
3917         (stmt_kills_ref_p): Likewise.
3919 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
3921         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3922         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3923         (mips_hard_regno_scratch_ok): Likewise.
3924         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3925         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3927 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
3929         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3930         (determine_value_range): Call refine_value_range_using_guard for
3931         each loop initial condition to improve value range.
3933 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
3935         * config/i386/i386.c: Remove include of fibheap.h.
3937 2015-08-17  Richard Biener  <rguenther@suse.de>
3939         PR tree-optimization/67221
3940         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3941         (sccvn_dom_walker::before_dom_children): Mark backedges of
3942         non-executable blocks as not executable.
3944 2015-08-17  David Sherwood  <david.sherwood@arm.com>
3946         * config/arm/arm.c (neon_element_bits): Replace call to
3947         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3948         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3949         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3950         (neon_vdup_lane<mode>): Likewise.
3951         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3952         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3953         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3954         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3955         * config/spu/spu.c (arith_immediate_p): Likewise.
3956         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3957         * expr.c (expand_expr_real_2): Likewise.
3958         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3959         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3960         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3961         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3962         New variable.
3963         * fold-const.c (fold_binary_loc): Replace call to
3964         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3965         GET_MODE_UNIT_PRECISION (m).
3967 2015-08-17  Mike Stump  <mikestump@comcast.net>
3969         * config/arm/arm.c (arm_block_move_unaligned_straight):
3970         Emit normal move instead of unaligned load when source or destination
3971         are appropriately aligned.
3973 2015-08-17  Richard Biener  <rguenther@suse.de>
3974             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3976         PR middle-end/16107
3977         * match.pd (div (coss (op @0) : New simplifier.
3979 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
3981         PR rtl-optimization/64164
3982         PR bootstrap/66978
3983         PR middle-end/66983
3984         PR rtl-optimization/67000
3985         PR middle-end/67034
3986         PR middle-end/67035
3987         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3988         * tree-ssa-copyrename.c: Removed.
3989         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
3990         -ftree-coalesce-vars.
3991         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3992         * common.opt (ftree-copyrename): Ignore.
3993         (ftree-coalesce-inlined-vars): Likewise.
3994         * doc/invoke.texi: Remove the ignored options above.
3995         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3996         * tree-ssa-coalesce.h: ... here.
3997         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3998         headers required by it.
3999         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4000         across variables when flag_tree_coalesce_vars.  Check register
4001         use and promoted modes to allow coalescing.  Do not coalesce
4002         maybe-byref parms with SSA_NAMEs of other variables, or
4003         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
4004         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4005         with its member functions to tree-ssa-coalesce.c.
4006         (var_map_base_init): Likewise.  Renamed to
4007         compute_samebase_partition_bases.
4008         (partition_view_normal): Drop want_bases parameter.
4009         (partition_view_bitmap): Likewise.
4010         * tree-ssa-live.h: Adjust declarations.
4011         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4012         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4013         default defs at the entry point.
4014         (dump_part_var_map): New.
4015         (compute_optimized_partition_bases): New, called by...
4016         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4017         of compute_samebase_partition_bases.  Adjust.
4018         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4019         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4020         (ssa_default_def_partition): New.
4021         (get_rtl_for_parm_ssa_default_def): New.
4022         (align_local_variable, add_stack_var): Support anonymous SSA
4023         names.
4024         (defer_stack_allocation): Likewise.  Declare earlier.
4025         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4026         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4027         Do no record deferred-allocation marker in
4028         SA.partition_to_pseudo.
4029         (expand_stack_vars): Adjust check for the marker in it.
4030         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4031         redundant MEM attr setting.
4032         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4033         from...
4034         (expand_one_stack_var): ... this.  New wrapper to check and
4035         skip already expanded SSA partitions.
4036         (record_alignment_for_reg_var): New, factored out of...
4037         (expand_one_var): ... this.
4038         (expand_one_ssa_partition): New.
4039         (adjust_one_expanded_partition_var): New.
4040         (expand_one_register_var): Check and skip already expanded SSA
4041         partitions.
4042         (expand_used_vars): Don't create DECLs for anonymous SSA
4043         names.  Expand all SSA partitions, then adjust all SSA names.
4044         (pass::execute): Replace the loops that set
4045         SA.partition_to_pseudo from partition leaders and cleared
4046         DECL_RTL for multi-location variables, and that which used to
4047         rename vars and set attrs, with one that clears DECL_RTL and
4048         checks that PARMs and RESULTs default_defs match DECL_RTL.
4049         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4050         * emit-rtl.c: Include stor-layout.h.
4051         (set_reg_attrs_for_parm): Handle NULL decl.
4052         (set_reg_attrs_for_decl_rtl): Take mode from expression if
4053         it's not a DECL.
4054         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4055         rather than its possibly-NULL DECL.
4056         * explow.c (promote_ssa_mode): New.
4057         * explow.h (promote_ssa_mode): Declare.
4058         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4059         (read_complex_part): Export.
4060         * expr.h (read_complex_part): Declare.
4061         * cfgexpand.h (parm_maybe_byref_p): Declare.
4062         * function.c: Include cfgexpand.h.
4063         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4064         (use_register_for_parm_decl): Wrapper for the above to
4065         special-case the result_ptr.
4066         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4067         (split_complex_args): Take assign_parm_data_all argument.
4068         Pass it to rtl_for_parm.  Set up rtl and context for split
4069         args.  Reset complex parm before fetching its default decl
4070         rtl.
4071         (assign_parms_unsplit_complex): Use the default-def complex
4072         parm rtl if it matches the components.
4073         (assign_parms_augmented_arg_list): Adjust.
4074         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4075         multiple locations.  Recognize split complex args.
4076         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4077         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4078         (assign_parm_setup_block): Prefer SSA-assigned location, and
4079         fill in its address if the memory location of a maybe-byref
4080         parm was not assigned by cfgexpand.
4081         (assign_parm_setup_reg): Likewise.  Adjust its mode as
4082         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
4083         sure passed_pointer parms don't need conversion.  Copy address
4084         or value as needed.
4085         (assign_parm_setup_stack): Prefer SSA-assigned location.
4086         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4087         rtl before testing for pointer bounds.  Special-case result_ptr.
4088         (expand_function_start): Maybe reset DECL_RTL of result.
4089         Prefer SSA-assigned location for result and static chain.
4090         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
4091         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
4092         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4093         anonymous SSA names.  Use promote_ssa_mode.
4094         (get_temp_reg): Likewise.
4095         (remove_ssa_form): Adjust.
4096         * stor-layout.c (layout_decl): Don't set mem attributes of
4097         non-MEMs.
4098         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4099         and get its reg_usage for reg invalidation.
4100         (compute_bb_dataflow): Pass it insn.
4101         (emit_notes_in_bb): Likewise.
4103 2015-08-14  Marek Polacek  <polacek@redhat.com>
4105         * tree-core.h (tree_base): Fix typo.
4107 2015-08-14  Marek Polacek  <polacek@redhat.com>
4109         PR middle-end/67133
4110         * gimple.c (infer_nonnull_range_by_attribute): Check that the
4111         nonnull argument position is not outside function arguments.
4113 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
4115         PR target/67143
4116         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4117         'lconst_atomic' with 'const_atomic'.
4118         (atomic_fetch_<optab><mode>): Likewise.
4119         (atomic_<optab>_fetch<mode>): Likewise.
4120         * config/aarch64/iterators.md (lconst-atomic): Move below
4121         'const_atomic'.
4122         (const_atomic): New.
4124 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
4125             Bernd Schmidt  <bernds@codesourcery.com>
4127         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4128         debug options.
4129         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4130         (DWARF2_DEBUGGING_INFO): Don't define.
4131         * debug.h (dwarf2_lineno_debug_hooks): Declare.
4132         * toplev.c (process_options): Add a case for it.
4133         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4134         (dwarf2out_init): Skip most initializations if
4135         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4136         case.
4137         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4138         DWARF2_LINENO_DEBUGGING_INFO.
4139         * opts.c (set_debug_level): Likewise.
4141 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
4143         * config/arm/types.md (is_neon_type): Add missing types.
4145 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
4147         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4148         for skylake.
4149         * config/i386/i386.c (PTA_SKYLAKE): New macros.
4150         (processor_alias_table): Add skylake description.
4151         (enum processor_model): Add skylake processor.
4152         (arch_names_table): Add skylake record.
4153         * doc/invoke.texi: Add skylake item.
4155 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
4157         * ira-int.h: Include recog.h.
4158         * ira-build.c: Don't include recog.h.
4159         * ira-color.c: Likewise.
4160         * ira-conflicts.c: Likewise.
4161         * ira-costs.c: Likewise.
4162         * ira-emit.c: Likewise.
4163         * ira-lives.c: Likewise.
4164         * ira.c: Likewise.
4165         * sched-deps.c: Likewise.
4166         * sel-sched.c: Likewise.
4167         * target-globals.c: Likewise.
4169 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
4171         PR bootstrap/55035
4172         * reload1.c (elimination_costs_in_insn): Make it obvious to the
4173         compiler that the n_dups and n_operands loop bounds are invariant.
4175 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4177         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4178         expressions in A and B.
4180 2015-08-13  Richard Biener  <rguenther@suse.de>
4182         * tree.c (nonnull_arg_p): Move from ...
4183         * tree-vrp.c (nonnull_arg_p): ... here.
4184         * tree.h (nonnull_arg_p): Declare.
4185         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4186         here, register ptr != 0 for nonnull_arg_p pointer arguments.
4187         Properly initialize static chain and by-reference result pointer.
4188         (run_scc_vn): Adjust.
4190 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
4192         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4193         TUNE_I6400.
4195 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
4197         * config/aarch64/aarch64-protos.h
4198         (aarch64_gen_atomic_cas): Declare.
4199         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4200         Choose appropriate instruction pattern for the target.
4201         (aarch64_gen_atomic_cas): New.
4202         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4203         (atomic_compare_and_swap<mode>_1): Rename to
4204         aarch64_compare_and_swap<mode>.  Fix some indentation.
4205         (aarch64_compare_and_swap<mode>_lse): New.
4206         (aarch64_atomic_cas<mode>): New.
4208 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
4210         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4211         (TARGET_LSE): New.
4213 2015-08-13  Richard Biener  <rguenther@suse.de>
4215         PR tree-optimization/67191
4216         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4217         assert we value-numbered last stmts operand because it can validly
4218         trigger for unreachable code.
4220 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4222         PR rtl-optimization/67103
4223         * ifcvt.c (noce_try_store_flag_constants): Move
4224         x = (-(test != 0) & (b - a)) + a transformation to...
4225         (noce_try_cmove): ... Here.  Try it if normal conditional
4226         move fails.
4228 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
4230         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4231         pseudo-processors.
4232         * config/mips/mips.md (processor): Remove w32 and w64.
4234 2015-08-13  Richard Biener  <rguenther@suse.de>
4236         PR tree-optimization/66502
4237         PR tree-optimization/67167
4238         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4239         backedge arguments.
4240         (vn_phi_lookup): Adjust.
4241         (vn_phi_insert): Likewise.
4242         (visit_phi): Prefer to value-number to another PHI node
4243         over value-numbering to a PHI argument.
4244         (init_scc_vn): Mark DFS back edges.
4246 2015-08-13  Richard Biener  <rguenther@suse.de>
4248         * gimple.h (gcall::code_): New constant static member.
4249         (gcond::code_): Likewise.
4250         * gimple.c (gcall::code_): Define.
4251         (gcond::code_): Likewise.
4252         (is_a_helper <const gcond *>): Add.
4253         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4254         and forward to a new gcall overload with less checking and a
4255         cheaper way to access the operand.
4256         (gimple_call_lhs_ptr): Likewise.
4257         (gimple_call_set_lhs): Likewise.
4258         (gimple_call_internal_p): Likewise.
4259         (gimple_call_with_bounds_p): Likewise.
4260         (gimple_call_set_with_bounds): Likewise.
4261         (gimple_call_internal_fn): Likewise.
4262         (gimple_call_set_ctrl_altering): Likewise.
4263         (gimple_call_ctrl_altering_p): Likewise.
4264         (gimple_call_fntype): Likewise.
4265         (gimple_call_fn): Likewise.
4266         (gimple_call_fn_ptr): Likewise.
4267         (gimple_call_set_fndecl): Likewise.
4268         (gimple_call_fndecl): Likewise.
4269         (gimple_call_chain): Likewise.
4270         (gimple_call_num_args): Likewise.
4271         (gimple_call_arg): Likewise.
4272         (gimple_call_arg_ptr): Likewise.
4273         (gimple_call_set_arg): Likewise.
4274         (gimple_call_noreturn_p): Likewise.
4275         (gimple_cond_code): Likewise.
4276         (gimple_cond_lhs): Likewise.
4277         (gimple_cond_rhs): Likewise.
4278         (gimple_has_lhs): Reduce checking.
4280 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4282         PR middle-end/25529
4283         * match.pd (div (mult @0 @1) @1) : New simplifier.
4285 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4287         PR target/67071
4288         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4289         predicate to allow construction of vector constants using the
4290         VSLDOI vector shift instruction.
4292         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4293         declaration.
4295         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4296         the number of bytes to be shifted left and filled in with either
4297         all zero or all one bits.
4298         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4299         methods exist.
4300         (output_vec_const_move): On power8, generate XXLORC to generate
4301         a vector constant with all 1's. Do a split if we need to use a
4302         VSLDOI instruction.
4304         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4305         properly test for the MSB.
4307         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4308         vector constants that can be created with VSLDOI.
4310 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
4312         revert:
4313         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4314         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4315         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4316         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4317         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4318         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4319         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4320         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4321         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4323 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
4325         * config/xtensa/constraints.md (define_constraint "Y"): New
4326         constraint.
4327         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4328         * config/xtensa/linux.h (ASM_SPEC): Likewise.
4329         * config/xtensa/predicates.md (move_operand): Match constants
4330         and symbols in the presence of TARGET_AUTO_LITPOOLS.
4331         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4332         immediate references to TLS data.
4333         (xtensa_emit_move_sequence): Don't force constants to memory in
4334         the presence of TARGET_AUTO_LITPOOLS.
4335         (print_operand): Add 'y' format, same as default, but capable of
4336         printing SF mode constants as well.
4337         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4338         (movsf_internal): Add movi pattern that loads literal.
4339         (movsf, movdf): Don't force constants to memory in the presence
4340         of TARGET_AUTO_LITPOOLS.
4341         (movdf_internal): Add 'Y' constraint.
4342         * config/xtensa/xtensa.opt (mauto-litpools): New option.
4343         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4345 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
4347         * config/arm/arm-fpus.def: Replace booleans with feature flags.
4348         Update comment.
4349         * config/arm/arm.c (ARM_FPU): Update macro.
4350         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4351         (TARGET_FP16): Likewise.
4352         (TARGET_CRYPTO): Likewise.
4353         (TARGET_NEON): Likewise.
4354         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
4355         field features.
4357 2015-08-12  Tom de Vries  <tom@codesourcery.com>
4359         PR other/67092
4360         PR other/67098
4361         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
4362         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4363         accordingly.  Mention default for --with-stage1-ldflags.
4365 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
4367         * config/arm/arm.h (arm_fpu_feature_set): New.
4368         (ARM_FPU_FSET_HAS): New.
4369         (FPU_FL_NONE): New.
4370         (FPU_FL_NEON): New.
4371         (FPU_FL_FP16): New.
4372         (FPU_FL_CRYPTO): New.
4374 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4376         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4377         after -mcmodel=large -fPIC sorry.
4379 2015-08-12  Richard Biener  <rguenther@suse.de>
4381         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4382         comparison operand order and commutative ternary op operand order.
4383         (sccvn_dom_walker::cond_stack): New state to track temporary
4384         expressions.
4385         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4386         no longer valid.
4387         (sccvn_dom_walker::record_cond): Add a single temporary conditional
4388         expression.
4389         (sccvn_dom_walker::record_conds): Add a temporary conditional
4390         expressions and all related expressions also true/false.
4391         (sccvn_dom_walker::before_dom_children): Record temporary
4392         expressions based on the controlling condition of a single
4393         predecessor.  When trying to simplify a conditional statement
4394         lookup expressions we might have inserted earlier.
4396 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
4398         PR target/67127
4399         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4400         to ARM core registers.
4402 2015-08-12  Nathan Sidwell  <nathan@acm.org>
4404         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4405         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4407 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
4409         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4410         line with comments.
4411         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4413 2015-08-12  Richard Biener  <rguenther@suse.de>
4415         * gimple.h (remove_pointer): New trait.
4416         (GIMPLE_CHECK2): New inline template function.
4417         (gassign::code_): New constant static member.
4418         (is_a_helper<const gassign *>): Add.
4419         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4420         and forward to a new gassign overload with less checking and a
4421         cheaper way to access the operand.
4422         (gimple_assign_lhs_ptr): Likewise.
4423         (gimple_assign_set_lhs): Likewise.
4424         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4425         Likewise.
4426         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
4427         Likewise.
4428         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
4429         Likewise.
4430         (gimple_assign_rhs_code): Likewise.
4431         * gimple.c (gassign::code_): Define.
4433 2015-08-12  Richard Biener  <rguenther@suse.de>
4435         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4436         Eliminate edges marked as not executable by SCCVN.
4437         * tree-ssa-sccvn.c: Include gimple-iterator.h.
4438         (cond_dom_walker): Rename to sccvn_dom_walker.
4439         (sccvn_dom_walker::before_dom_children): Value-number defs
4440         of all stmts.
4441         (run_scc_vn): Remove loop value-numbering all SSA names.
4442         Drop not visited SSA names to varying.
4444 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
4446         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4447         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4448         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4449         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4450         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4451         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4452         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4453         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4454         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4456 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
4458         PR target/66954
4459         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
4460         to enum feature_priority and feature_list.
4461         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
4462         and isa_names_table.
4464 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
4466         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
4467         vect_induction_def.
4469 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4471         PR c/66098
4472         PR c/66711
4473         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
4474         account when deciding what was the command-line status.
4476 2015-08-11  Nathan Sidwell  <nathan@acm.org>
4478         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4480         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4481         we're not the only contributor to target phi.
4483 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
4485         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4486         FIXED_REG0.
4488 2015-08-11  Tom de Vries  <tom@codesourcery.com>
4490         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4492 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
4494         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4495         with CPU_SLM.
4496         * config/i386/i386.md (cpu): Remove knl.
4498 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
4500         PR libgomp/65742
4501         PR middle-end/66332
4502         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4503         open-coded sequence.
4504         * omp-low.c (oacc_process_reduction_data): Remove handline of
4505         GOMP_DEVICE_HOST_NONSHM.
4507         * lto-streamer-in.c (lto_input_mode_table): Adjust to
4508         GET_MODE_INNER changes.
4510 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
4511             Ilya Verbin  <ilya.verbin@intel.com>
4513         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
4515 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4517         * doc/options.texi (EnabledBy): Document that the argument must be
4518         a Common option.
4519         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
4520         Not enabled by -Wall.
4521         * optc-gen.awk: Give nicer error messages. Detect if the argument
4522         of EnabledBy is not a Common option.
4523         * common.opt (Wnull-dereference): Not enabled by -Wall.
4524         * opt-functions.awk (lang_enabled_by): Nicer error messages.
4526 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4528         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4529         model == 0x4f as Broadwell.
4531 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
4533         PR rtl-optimization/67028
4534         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
4535         Add test to see if a const_int fits in the new mode.
4537 2015-08-07  DJ Delorie  <dj@redhat.com>
4539         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4541 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
4543         PR rtl-optimization/67029
4544         * ira-color.c: Include "recog.h" before including "ira-int.h".
4545         * target-globals.c: Likewise.
4546         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4547         adds an alternative_mask argument and use it instead of
4548         preferred_alternatives.
4549         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4550         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4551         * sched-deps.c: Include "ira-int.h" after including "ira.h".
4552         (sched_analyze_insn): Update call to
4553         ira_implicitly_set_insn_hard_regs.
4554         * sel-sched.c: Include "ira-int.h" after including "ira.h".
4555         (implicit_clobber_conflict_p): Update call to
4556         ira_implicitly_set_insn_hard_regs.
4558 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
4560         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4562 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4564         PR target/67002
4565         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4566         currently_expanding_to_rtl is set.
4568 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4570         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4571         * configure: Regenerate.
4573 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4574             Jiong Wang  <jiong.wang@arm.com>
4576         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4577         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4578         (REG_CLASS_NAMES): Likewise.
4579         (REG_CLASS_CONTENTS): Likewise.
4580         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4581         (aarch64_register_move_cost): Likewise.
4582         (aarch64_load_symref_appropriately): Invoke the new added pattern if
4583         possible.
4584         * config/aarch64/constraints.md (Uc0): New constraint.
4586 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
4588         * config/aarch64/constraints.md (Usf): Add the test of
4589         aarch64_is_noplt_call_p.
4591 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
4593         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4594         declaration.
4595         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4596         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4597         (call_symbol): Likewise.
4599 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4601         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4602         for vectorizing multiplication patterns.
4603         * tree-vectorizer.h: Adjust the number of patterns.
4605 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
4607         * config/i386/sse.md (*vec_concatv2df): Declare added
4608         alternatives as sselog type.
4610 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4612         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4613         all GPRs.
4615 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4617         * config/s390/s390.c (s390_expand_tbegin): Expand either
4618         tbegin_1_z13 or tbegin_1 depending on VX flag.
4619         * config/s390/s390.md ("tbegin_1_z13"): New expander.
4621 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4623         * config/s390/s390.opt: Clarify description for -mzvector
4624         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4625         -mzvector.
4627 2015-08-06  Richard Biener  <rguenther@suse.de>
4629         * gimple.h (gimple_call_set_fn): Access op member directly.
4630         (gimple_call_chain_ptr): Likewise.
4631         (gimple_call_set_chain): Likewise.
4632         (gimple_cond_lhs_ptr): Likewise.
4633         (gimple_cond_set_lhs): Likewise.
4634         (gimple_cond_rhs_ptr): Likewise.
4635         (gimple_cond_set_rhs): Likewise.
4636         (gimple_cond_true_label): Likewise.
4637         (gimple_cond_set_true_label): Likewise.
4638         (gimple_cond_set_false_label): Likewise.
4639         (gimple_cond_false_label): Likewise.
4640         (gimple_label_label): Likewise.
4641         (gimple_label_set_label): Likewise.
4642         (gimple_goto_set_dest): Likewise.
4643         (gimple_asm_input_op): Likewise.
4644         (gimple_asm_input_op_ptr): Likewise.
4645         (gimple_asm_set_input_op): Likewise.
4646         (gimple_asm_output_op): Likewise.
4647         (gimple_asm_output_op_ptr): Likewise.
4648         (gimple_asm_set_output_op): Likewise.
4649         (gimple_asm_clobber_op): Likewise.
4650         (gimple_asm_set_clobber_op): Likewise.
4651         (gimple_asm_label_op): Likewise.
4652         (gimple_asm_set_label_op): Likewise.
4653         (gimple_switch_index): Likewise.
4654         (gimple_switch_index_ptr): Likewise.
4655         (gimple_return_retval_ptr): Likewise.
4656         (gimple_return_retval): Likewise.
4657         (gimple_return_set_retval): Likewise.
4658         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
4659         (gimple_switch_label): Likewise.
4660         (gimple_switch_set_label): Likewise.
4662 2015-08-06  Richard Biener  <rguenther@suse.de>
4664         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4665         bool comparison canonicalization and restrict to integers.
4667 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
4669         * coretypes.h (enum symbol_visibility): Relocate here.
4670         * flag-types.h (enum symbol_visibility): Remove.
4671         * tree-core.h (enum symbol_visibility): Remove.
4673 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
4675         PR target/66870
4676         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4677         for no_split_stack function attribute along with
4678         flag_split_stack.
4679         (rs6000_expand_split_stack_prologue): Likewise.
4681 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4682             Jeff Law  <law@redhat.com>
4684         PR c/16351
4685         * doc/invoke.texi (Wnull-dereference): New.
4686         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4687         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4688         Warn for potential NULL dereferences.
4689         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4690         * ubsan.c (instrument_nonnull_arg): Call
4691         infer_nonnull_range_by_attribute.
4692         (instrument_nonnull_return): Likewise.
4693         * common.opt (Wnull-dereference); New.
4694         * gimple.c (infer_nonnull_range): Remove bool arguments.
4695         (infer_nonnull_range_by_dereference): New.
4696         (infer_nonnull_range_by_attribute): New.
4697         * gimple.h: Update declarations.
4699 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4701         * gensupport.c (sequence_num): Replace with...
4702         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4703         ...these new variables.
4704         (init_rtx_reader_args_cb): Update accordingly.
4705         (get_num_code_insns): Likewise.
4706         (read_md_rtx): Rework to use a while loop and get_c_test.
4707         Use the new counters.  Remove redundant DEFINE_SUBST case.
4708         * genoutput.c (gen_split): Delete.
4709         (main): Don't call it.
4711 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4713         * gensupport.h (get_c_test): Declare.
4714         * gensupport.c (get_c_test): New function.
4715         * genconditions.c (main): Use it.
4716         * genrecog.c (validate_pattern): Likewise.
4717         (match_pattern_1): Likewise.  Remove c_test argument.
4718         (match_pattern): Update accordingly and remove c_test argument.
4719         (main): Update accordingly.
4721 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4723         * gensupport.h (get_num_insn_codes): Declare.
4724         * gensupport.c (get_num_insn_codes): New function.
4725         * genattrtab.c (optimize_attrs): Rename max_insn_code to
4726         num_insn_codes.
4727         (main): Likewise.  Use get_num_insn_codes.
4728         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4730 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4732         PR middle-end/66311
4733         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4734         is zero- rather than sign-extended.
4736 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4738         * target-insns.def (can_extend): Delete.
4740 2015-08-05  Richard Biener  <rguenther@suse.de>
4742         PR tree-optimization/67121
4743         * tree-if-conv.c (combine_blocks): Clear range-info produced
4744         by stmts no longer executed conditionally.
4746 2015-08-05  Nick Clifton  <nickc@redhat.com>
4748         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4749         to allow identical far pointers to remain.
4751 2015-08-05  Richard Biener  <rguenther@suse.de>
4753         PR middle-end/67120
4754         * match.pd: Compare address bases with == if they are decls
4755         or SSA names, not operand_equal_p.  Otherwise fail.
4757 2015-08-05  Richard Biener  <rguenther@suse.de>
4759         PR tree-optimization/67055
4760         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
4761         NULL gimple_block.
4763         * g++.dg/torture/pr67055.C: New testcase.
4765 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
4767         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
4768         noavx512vl.
4769         (define_attr "enabled"): Handle avx521vl and noavx512vl.
4770         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
4771         AVX-512 alternative out of SSE.
4772         (define_insn "*vec_concatv2df"): Ditto.
4774 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
4776         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
4777         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
4778         CODE_FOR_avx_ptestv4di.
4779         * config/i386/sse.md (define_mode_iterator V_AVX): New.
4780         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
4781         (define_insn "avx_ptest256"): Merge this ...
4782         (define_insn "sse4_1_ptest"): And this ...
4783         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
4785 2015-08-05  Richard Biener  <rguenther@suse.de>
4787         PR tree-optimization/67109
4788         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
4789         against too big groups.  Print whether this is a load or store
4790         group.  Rename from ...
4791         (vect_analyze_group_access): ... this which is now a wrapper
4792         dissolving an invalid group.
4793         (vect_analyze_data_ref_accesses): Print whether this is a load
4794         or store group.
4796 2015-08-05  Richard Biener  <rguenther@suse.de>
4798         PR middle-end/67107
4799         * match.pd: Guard const_binop result checking against NULL_TREE
4800         result.
4802 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
4804         * cse.c (cse_insn): Restoring old behaviour for src_eqv
4805          when dest and value in the REG_EQUAL are same and dest
4806          is STRICT_LOW_PART.
4808 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
4810         * config/moxie/moxie.h (PRINT_OPERAND,
4811           PRINT_OPERAND_ADDRESS): Remove macros.
4812         * config/moxie/moxie-protos.h (moxie_print_operand,
4813           moxie_print_operand_address): Remove declaration.
4814         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4815           TARGET_PRINT_OPERAND_ADDRESS): Define.
4816           (moxie_print_operand, moxie_print_operand_address): Make static.
4818 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4820         PR target/66731
4821         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4822         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4824 2015-08-04  Richard Biener  <rguenther@suse.de>
4826         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4827         generated code.
4828         (dt_operand::gen_gimple_expr): Adjust.
4830 2015-08-04  Richard Biener  <rguenther@suse.de>
4832         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4833         bool compares on RHS.
4834         * match.pd: Add X ==/!= !X is false/true pattern.
4836 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
4838         * config/aarch64/aarch64.c: Change inner loop statement cost
4839         to be consistent with other targets.
4841 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
4843         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4844         targets.
4846 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4848         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4849         (machine_function): Remove pseudos field.
4851 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4853         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4854         Exit early and use target_option_current_node if processing current
4855         pragma.
4857 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4859         * doc/extend.texi (AArch64 Function Attributes): New node.
4860         (AArch64 Pragmas): Likewise.
4862 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4864         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4865         Initialize simd builtins if TARGET_SIMD.
4866         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4867         Make sure that the builtins are initialized only once no matter how
4868         many times the function is called.
4869         (aarch64_init_builtins): Unconditionally initialize crc builtins.
4870         (aarch64_relayout_simd_param): New function.
4871         (aarch64_simd_expand_args): Use above during argument expansion.
4872         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4873         simd builtins if TARGET_SIMD.
4874         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4875         prototype.
4876         (aarch64_relayout_simd_types): Likewise.
4878 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4880         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4881         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4882         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4883         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4884         static keyword.
4885         (aarch64_reset_previous_fndecl): New function.
4886         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4887         the string.
4888         * config/aarch64/aarch64-c.c: New file.
4889         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4890         Push and pop options at beginning and end.  Remove ifdef
4891         __ARM_FEATURE_CRC32.
4892         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4893         Add pragma +nothing+simd and +nothing+crypto where appropriate.
4894         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4895         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4896         Define prototype.
4897         (aarch64_register_pragmas): Likewise.
4898         (aarch64_reset_previous_fndecl): Likewise.
4899         (aarch64_process_target_attr): Likewise.
4900         (aarch64_override_options_internal): Likewise.
4902 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4904         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4905         New function.
4906         (aarch64_can_inline_p): Likewise.
4907         (TARGET_CAN_INLINE_P): Define.
4909 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4911         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4912         Remove static.  Handle OPT_mgeneral_regs_only,
4913         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4914         OPT_momit_leaf_frame_pointer.
4915         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4916         (aarch64_attr_opt_type): New enum.
4917         (aarch64_attribute_info): New struct.
4918         (aarch64_handle_attr_arch): New function.
4919         (aarch64_handle_attr_cpu): Likewise.
4920         (aarch64_handle_attr_tune): Likewise.
4921         (aarch64_handle_attr_isa_flags): Likewise.
4922         (aarch64_attributes): New table.
4923         (aarch64_process_one_target_attr): New function.
4924         (num_occurences_in_str): Likewise.
4925         (aarch64_process_target_attr): Likewise.
4926         (aarch64_option_valid_attribute_p): Likewise.
4927         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4928         * config/aarch64/aarch64-protos.h: Include input.h
4929         (aarch64_handle_option): Declare prototype.
4931 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4933         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4934         * config/aarch64/aarch64.c: Include target-globals.h
4935         (aarch64_previous_fndecl): New variable.
4936         (aarch64_set_current_function): New function.
4937         (TARGET_SET_CURRENT_FUNCTION): Define.
4939 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4941         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4942         (explicit_arch): Likewise.
4943         (x_aarch64_isa_flags): Likewise.
4944         (mgeneral-regs-only): Mark as Save.
4945         (mfix-cortex-a53-835769): Likewise.
4946         (mcmodel=): Likewise.
4947         (mstrict-align): Likewise.
4948         (momit-leaf-frame-pointer): Likewise.
4949         (mtls-dialect): Likewise.
4950         (master=): Likewise.
4951         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4952         (aarch64_isa_flags): Remove extern declaration.
4953         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4954         to indicate success or failure.
4955         (aarch64_validate_march): Likewise.
4956         (aarch64_validate_mtune): Likewise.
4957         (aarch64_isa_flags): Delete.
4958         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4959         instead of aarch64_isa_flags.
4960         (aarch64_get_tune_cpu): New function.
4961         (aarch64_get_arch): Likewise.
4962         (aarch64_override_options): Use above and set up explicit_tune_core
4963         and explicit_arch.
4964         (aarch64_print_extension): Move earlier in file.  Add isa_flags
4965         argument and use that instead of the global aarch64_isa_flags.
4966         (aarch64_option_save): New function.
4967         (aarch64_option_restore): Likewise.
4968         (aarch64_option_print): Likewise.
4969         (aarch64_declare_function_name): Likewise.
4970         (aarch64_start_file): Delete.
4971         (TARGET_ASM_FILE_START): Do not define.
4972         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4973         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4974         Declare prototype.
4976 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4978         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4979         flag_omit_leaf_frame_pointer to 2.
4981 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4983         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4984         define to 0 or 1.
4985         (TARGET_FIX_ERR_A53_835769): New macro.
4986         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4987         handling of opts->x_aarch64_fix_a53_err835769.
4988         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4989         than aarch64_fix_a53_err835769.
4990         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4991         * config/aarch64/aarch64-linux.h: Likewise.
4993 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
4995         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4996         ix86_expand_int_movcc as boolean.
4998 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5000         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5001         (aarch64_cpu_string): Likewise.
5002         (aarch64_tune_string): Likewise.
5003         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5004         (aarch64_parse_extension): Return aarch64_parse_opt_result.
5005         Add extra argument to put result into.
5006         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
5007         (aarch64_parse_cpu): Add arguments to put results into. Return
5008         aarch64_parse_opt_result.
5009         (aarch64_parse_tune): Likewise.
5010         (aarch64_override_options_after_change_1): New function.
5011         (aarch64_override_options_internal): New function.
5012         (aarch64_validate_mcpu): Likewise.
5013         (aarch64_validate_march): Likewise.
5014         (aarch64_validate_mtune): Likewise.
5015         (aarch64_override_options): Update to reflect above changes.
5016         Move some logic into aarch64_override_options_internal.
5017         Initialize target_option_default_node and target_option_current_node.
5018         (aarch64_override_options_after_change): Move logic into
5019         aarch64_override_options_after_change_1 and call it with global_options.
5020         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5021         flag values from that.
5023 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5025         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5026         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5027         * config/aarch64/aarch64.c (struct processor): Add arch field.
5028         (all_architectures): Handle above, move above all_cores.
5029         (all_cores): Handle above.
5030         (aarch64_parse_arch): Handle above changes.
5031         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5032         above.  Update comments.
5033         (armv8.1-a): Likewise.
5034         * config/aarch64/aarch64-cores.def: Update according to above.
5035         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5036         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5037         aarch64_arch_driver_info.
5039 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5041         * config/aarch64/aarch64.c (struct processor): Add ident field.
5042         Rename core sched_core.
5043         (all_cores): Handle above changes.
5044         (all_architectures): Likewise.
5045         (aarch64_parse_arch): Likewise.
5046         (aarch64_override_options): Likewise.
5048 2015-08-04  Richard Biener  <rguenther@suse.de>
5050         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5051         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5052         comparisons embedded in [VEC_]COND_EXPRs.
5054 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
5056         * tree-if-conv.c: Fix various typos in comments.
5057         * tree-vect-stmts.c: Likewise.
5059 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5061         PR tree-optimization/67043
5062         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5063         preheader after hoisting invariant in it.
5064         (find_defs): Force recomputation of all luids.
5066 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5068         * config/rs6000/htm.md (tabort.): Restrict the source operand to
5069         using a base register.
5071 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
5073         * main.c (main): Pass in NULL for toplev's external_timer.
5074         * timevar.c: Include coretypes.h.
5075         (class timer::named_items): New.
5076         (timer::named_items::named_items): New.
5077         (timer::named_items::~named_items): New.
5078         (timer::named_items::push): New.
5079         (timer::named_items::pop): New.
5080         (timer::named_items::print): New.
5081         (timer::timer): Initialize field "m_jit_client_items".
5082         (timer::~timer): New.
5083         (timer::push): Move bulk of implementation to...
5084         (timer::push_internal): ...here.  New function.
5085         (timer::pop): Move bulk of implementation to...
5086         (timer::pop_internal): ...here.  New function.
5087         (timer::push_client_item): New.
5088         (timer::pop_client_item): New.
5089         (timer::print_row): New function, taken from timer::print.
5090         (timer::print): Print "GCC items" header if we also have client
5091         items.  Move row-printing to timer::print_row.  Print any client
5092         items.
5093         (timer::get_topmost_item_name): New method.
5094         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5095         (TV_JIT_CLIENT_CODE): New.
5096         * timevar.h (timer::push_client_item): New declaration.
5097         (timer::pop_client_item): New declaration.
5098         (timer::get_topmost_item_name): New method.
5099         (timer::push_internal): New declaration.
5100         (timer::pop_internal): New declaration.
5101         (timer::print_row): New declaration.
5102         (timer::named_items): New declaration.
5103         (timer::m_jit_client_items): New field.
5104         (timer): Add friend class named_items.
5105         (auto_timevar::auto_timevar): Add timer param.
5106         (auto_timevar::~auto_timevar): Use field "m_timer".
5107         (auto_timevar::m_timer): New field.
5108         * toplev.c (initialize_rtl): Add g_timer as param when
5109         constructing auto_timevar instance.
5110         (toplev::toplev): Add "external_timer" param, and use it to
5111         initialize the "g_timer" global if non-NULL.
5112         (toplev::~toplev): If this created "g_timer", delete it.
5113         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5114         with "external_timer" timer *.
5116 2015-08-03  Alexander Basov <coohpt@gmail.com>
5118         PR middle-end/64744
5119         PR middle-end/48470
5120         PR middle-end/43404
5121         * cfgexpand.c (expand_one_var): Add check if stack is going to
5122         be used in naked function.
5123         * expr.c (expand_expr_addr_expr_1): Remove excess checking
5124         whether expression should not reside in MEM.
5125         * function.c (use_register_for_decl): Do not use registers for
5126         non-register things (volatile, float, BLKMode) in naked functions.
5128 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
5130         PR target/67060
5131         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5132         Adjust splits to match new pattern.
5134 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5136         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5137         (VEC_M): Likewise.
5138         (VEC_N): Likewise.
5139         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5140         point in VSX registers.
5142         * config/rs6000/constraints.md (wb constraint): Document unused
5143         w<x> constraint.
5144         (we constraint): Likewise.
5145         (wo constraint): Likewise.
5146         (wp constraint): New constraint for IEEE 128-bit floating point in
5147         VSX registers.
5148         (wq constraint): Likewise.
5150         * config/rs6000/predicates.md (easy_fp_constant): Add support for
5151         IEEE 128-bit floating point in VSX registers.
5152         (easy_scalar_constant): Likewise.
5154         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5155         constraints (wp, wq) for IEEE 128-bit floating point in VSX
5156         registers.
5157         (rs6000_init_hard_regno_mode_ok): Likewise.
5159         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5160         floating point in VSX registers.
5161         (VSX_L): Likewise.
5162         (VSX_M): Likewise.
5163         (VSX_M2): Likewise.
5164         (VSm): Likewise.
5165         (VSs): Likewise.
5166         (VSr): Likewise.
5167         (VSa): Likewise.
5168         (VSv): Likewise.
5169         (vsx_le_permute_<mode>): Add support to properly swap bytes for
5170         IEEE 128-bit floating point in VSX registers on little endian.
5171         (vsx_le_undo_permute_<mode>): Likewise.
5172         (vsx_le_perm_load_<mode>): Likewise.
5173         (vsx_le_perm_store_<mode>): Likewise.
5174         (splitters for IEEE 128-bit fp moves): Likewise.
5176         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5177         wq constraints.
5179         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5180         floating point in VSX registers.
5181         (VM2): Likewise.
5183         * doc/md.text (Machine Constraints): Document wp and wq
5184         constraints on PowerPC.
5186 2015-08-03  Jeff Law  <law@redhat.com>
5188         PR middle-end/66314
5189         PR gcov-profile/66899
5190         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5191         iterate over the jump threading paths when an element in the
5192         jump threading paths array is eliminated.
5194 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
5196         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5198 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
5200         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5201         is_use_properly_guarded the variable def_preds.  Free its
5202         contents before returning.
5203         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5204         (is_use_properly_guarded): Replace local variable def_preds with
5205         a parameter.  Adjust accordingly.  Only update *def_preds if it's
5206         the empty vector.
5208 2015-08-03  Richard Biener  <rguenther@suse.de>
5210         * genmatch.c (simplify::for_subst_vec): New member.
5211         (binary_ok): New helper for for lowering.
5212         (lower_for): Delay substituting operators into result expressions
5213         if we can merge the results eventually again.
5214         (capture_info::walk_result): Adjust for user_id appearing as
5215         result expression operator.
5216         (expr::gen_transform): Likewise.
5217         (dt_simplify::gen_1): Likewise.
5218         (dt_simplify::gen): Pass not substituted operators to tail
5219         functions or initialize local variable with it.
5220         (decision_tree::gen): Adjust function signature.
5221         * match.pd: Fix tests against global code and add default
5222         cases to switch stmts.
5224 2015-08-03  Richard Biener  <rguenther@suse.de>
5226         * genmatch.c (dt_simplify::gen): Create captures array
5227         with an initializer.
5229 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5231         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5232         the host compiler is affected by placement new aliasing bug.
5233         * configure: Regenerate.
5234         * Makefile.in (ALIASING_FLAGS): New variable.
5235         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5237 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5239         PR target/66731
5240         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5241         (negmulsf3_vfp): Likewise.
5242         (muldf3negdf_vfp): Disable for -frounding-math.
5243         (mulsf3negsf_vfp): Likewise.
5244         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5245         fix MULT cost with -frounding-math.
5247 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5249         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5250         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5251         explicit.  Prefer to add the flag whenever possible.
5252         (noce_process_if_block): Try noce_try_store_flag_constants before
5253         noce_try_cmove.
5255 2015-08-03  Richard Biener  <rguenther@suse.de>
5257         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5258         New hash-map to record equivalent transforms.
5259         (dt_node::analyze): Populate the equivalent transforms hash-map.
5260         (dt_simplify::info): Add reference to hash-map entry.
5261         (dt_simplify::gen): If we have split out a function for the
5262         transform, generate a call to it.
5263         (sinfo_hashmap_traits::hash): New function.
5264         (compare_op): New helper function for ...
5265         (sinfo_hashmap_traits::equal_keys): ... this new function.
5266         (decision_tree::gen): Split out common equivalent transforms
5267         into functions.
5269 2015-08-03  Richard Biener  <rguenther@suse.de>
5271         * gimple-fold.c (fold_gimple_assign): Remove folding of
5272         the comparison in COND_EXPRs.
5274 2015-08-03  Richard Biener  <rguenther@suse.de>
5276         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5277         on the rhs of assignments first simplify the embedded
5278         GENERIC condition.
5280 2015-08-03  Richard Biener  <rguenther@suse.de>
5282         PR tree-optimization/66917
5283         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5284         field.
5285         (DR_VECT_AUX): New macro.
5286         (set_dr_misalignment): Adjust.
5287         (dr_misalignment): Likewise.
5288         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5289         Compute whether the base is at least element aligned.
5290         * tree-vect-stmts.c (ensure_base_align): Adjust.
5291         (vectorizable_store): If the base is not element aligned
5292         preserve alignment of the original access if misalignment is unknown.
5293         (vectorizable_load): Likewise.
5295 2015-08-02  Martin Sebor  <msebor@redhat.com>
5297         * c-family/c.opt (-Wframe-address): New warning option.
5298         * doc/invoke.texi (Wframe-address): Document it.
5299         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5300         Clarify possible effects of calling the functions with non-zero
5301         arguments and mention -Wframe-address.
5302         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5304 2015-08-01  Michael Collison  <michael.collison@linaro.org
5305             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5307         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5308         (*arm_umin_cmp): Likewise.
5310 2015-08-01  Caroline Tice  <cmtice@google.com>
5312         PR 66521
5313         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5314         global variables.
5315         (vtbl_find_mangled_name):  New function.
5316         (vtbl_register_mangled_name):  New function.
5317         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
5318         mangled name in mangled name vectors.
5319         (find_or_create_vtbl_map_node):  Ditto.
5320         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
5321         update recursion_depth on function entry; pass it to every recursive
5322         call; automatically exit if depth > 25 (give up looking at that point).
5323         (verify_bb_vtables):  Initialize recursion_depth and pass it to
5324         var_is_used_for_virtual_call_p.
5325         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5326         global variable decls.
5327         (vtbl_register_mangled_name): New extern function decl.
5329 2015-08-01  Tom de Vries  <tom@codesourcery.com>
5331         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5332         function.
5333         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5334         Declare.
5335         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5336         operation_no_trapping_overflow.  Allow non-overflow operations.
5337         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5338         operations.
5340 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5342         PR target/67049
5343         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5345 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5347         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5348         Enable for TARGET_32BIT.
5349         (*if_move_neg): Likewise.
5351 2015-07-31  Nick Clifton  <nickc@redhat.com>
5353         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5354         Returns true for __model__.
5355         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5357 2015-07-31  Alan Modra  <amodra@gmail.com>
5359         PR target/66870
5360         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5361         (rs6000_emit_prologue): Set it.
5362         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5364 2015-07-31  Richard Biener  <rguenther@suse.de>
5366         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5367         -> X == (C1 ^ C2) which is already implemented in match.pd.
5368         Remove redundant dispatching to fold_relational_const.
5369         Move unordered self and NaN compares ...
5370         * match.pd: ... as patterns here.  Remove some stray captures
5371         and add a comment.
5373 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
5375         * config/i386/i386.c
5376         (bdesc_special_args): Convert mask type from signed to unsigned for
5377         masked builtins.
5378         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5379         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5380         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5381         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5382         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5383         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5384         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5385         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5386         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5387         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5388         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5389         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5390         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5391         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5392         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5393         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5394         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5395         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5396         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5397         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5398         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5399         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5400         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5401         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5402         * config/i386/i386-builtin-types.def
5403         (V16QI_FTYPE_V16SI): Remove.
5404         (V8DF_FTYPE_V8SI): Ditto.
5405         (V8HI_FTYPE_V8DI): Ditto.
5406         (V8SI_FTYPE_V8DI): Ditto.
5407         (V8SF_FTYPE_V8DF): Ditto.
5408         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5409         (V16HI_FTYPE_V16SI): Ditto.
5410         (V16SF_FTYPE_V16HI): Ditto.
5411         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5412         (V16SF_FTYPE_V16SI): Ditto.
5413         (V4DI_FTYPE_V4DI): Ditto.
5414         (V16SI_FTYPE_V16SF): Ditto.
5415         (V16SF_FTYPE_FLOAT): Ditto.
5416         (V8DF_FTYPE_DOUBLE): Ditto.
5417         (V8DI_FTYPE_INT64): Ditto.
5418         (V8DI_FTYPE_V4DI): Ditto.
5419         (V16QI_FTYPE_V8DI): Ditto.
5420         (UINT_FTYPE_V4SF): Ditto.
5421         (UINT64_FTYPE_V4SF): Ditto.
5422         (UINT_FTYPE_V2DF): Ditto.
5423         (UINT64_FTYPE_V2DF): Ditto.
5424         (V16SI_FTYPE_V16SI): Ditto.
5425         (V8DI_FTYPE_V8DI): Ditto.
5426         (V16SI_FTYPE_PV4SI): Ditto.
5427         (V16SF_FTYPE_PV4SF): Ditto.
5428         (V8DI_FTYPE_PV2DI): Ditto.
5429         (V8DF_FTYPE_PV2DF): Ditto.
5430         (V4DI_FTYPE_PV2DI): Ditto.
5431         (V4DF_FTYPE_PV2DF): Ditto.
5432         (V16SI_FTYPE_PV2SI): Ditto.
5433         (V16SF_FTYPE_PV2SF): Ditto.
5434         (V8DI_FTYPE_PV4DI): Ditto.
5435         (V8DF_FTYPE_PV4DF): Ditto.
5436         (V8SF_FTYPE_FLOAT): Ditto.
5437         (V4SF_FTYPE_FLOAT): Ditto.
5438         (V4DF_FTYPE_DOUBLE): Ditto.
5439         (V8SF_FTYPE_PV4SF): Ditto.
5440         (V8SI_FTYPE_PV4SI): Ditto.
5441         (V4SI_FTYPE_PV2SI): Ditto.
5442         (V8SF_FTYPE_PV2SF): Ditto.
5443         (V8SI_FTYPE_PV2SI): Ditto.
5444         (V16SF_FTYPE_PV8SF): Ditto.
5445         (V16SI_FTYPE_PV8SI): Ditto.
5446         (V8DI_FTYPE_V8SF): Ditto.
5447         (V4DI_FTYPE_V4SF): Ditto.
5448         (V2DI_FTYPE_V4SF): Ditto.
5449         (V64QI_FTYPE_QI): Ditto.
5450         (V32HI_FTYPE_HI): Ditto.
5451         (V8UHI_FTYPE_V8UHI): Ditto.
5452         (V16UHI_FTYPE_V16UHI): Ditto.
5453         (V32UHI_FTYPE_V32UHI): Ditto.
5454         (V2UDI_FTYPE_V2UDI): Ditto.
5455         (V4UDI_FTYPE_V4UDI): Ditto.
5456         (V8UDI_FTYPE_V8UDI): Ditto.
5457         (V4USI_FTYPE_V4USI): Ditto.
5458         (V8USI_FTYPE_V8USI): Ditto.
5459         (V16USI_FTYPE_V16USI): Ditto.
5460         (V2DF_FTYPE_V2DF_UINT64): Ditto.
5461         (V2DI_FTYPE_V2DF_V2DF): Ditto.
5462         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
5463         (V8DF_FTYPE_V8DF_V8DI): Ditto.
5464         (V4SF_FTYPE_V4SF_UINT64): Ditto.
5465         (V4SI_FTYPE_V4SF_V4SF): Ditto.
5466         (V16SF_FTYPE_V16SF_V16SI): Ditto.
5467         (V64QI_FTYPE_V32HI_V32HI): Ditto.
5468         (V32HI_FTYPE_V16SI_V16SI): Ditto.
5469         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5470         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
5471         (V32HI_FTYPE_V64QI_V64QI): Ditto.
5472         (V32HI_FTYPE_V32HI_V32HI): Ditto.
5473         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5474         (V16SI_FTYPE_V16SI_V4SI): Ditto.
5475         (V16SI_FTYPE_V16SI_V16SI): Ditto.
5476         (V16SI_FTYPE_V32HI_V32HI): Ditto.
5477         (V16SI_FTYPE_V16SI_SI): Ditto.
5478         (V8DI_FTYPE_V8DI_V8DI): Ditto.
5479         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5480         (V8DI_FTYPE_V16SI_V16SI): Ditto.
5481         (V8DI_FTYPE_V8DI_V2DI): Ditto.
5482         (QI_FTYPE_QI): Ditto.
5483         (SI_FTYPE_SI): Ditto.
5484         (DI_FTYPE_DI): Ditto.
5485         (QI_FTYPE_QI_QI): Ditto.
5486         (QI_FTYPE_QI_INT): Ditto.
5487         (HI_FTYPE_HI_INT): Ditto.
5488         (SI_FTYPE_SI_INT): Ditto.
5489         (DI_FTYPE_DI_INT): Ditto.
5490         (HI_FTYPE_V16QI_V16QI): Ditto.
5491         (SI_FTYPE_V32QI_V32QI): Ditto.
5492         (DI_FTYPE_V64QI_V64QI): Ditto.
5493         (QI_FTYPE_V8HI_V8HI): Ditto.
5494         (HI_FTYPE_V16HI_V16HI): Ditto.
5495         (SI_FTYPE_V32HI_V32HI): Ditto.
5496         (QI_FTYPE_V4SI_V4SI): Ditto.
5497         (QI_FTYPE_V8SI_V8SI): Ditto.
5498         (QI_FTYPE_V2DI_V2DI): Ditto.
5499         (QI_FTYPE_V4DI_V4DI): Ditto.
5500         (QI_FTYPE_V8DI_V8DI): Ditto.
5501         (HI_FTYPE_V16SI_V16SI): Ditto.
5502         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5503         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
5504         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
5505         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5506         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5507         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
5508         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
5509         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
5510         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5511         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
5512         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
5513         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
5514         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
5515         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
5516         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5517         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5518         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5519         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5520         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5521         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5522         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5523         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5524         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5525         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5526         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5527         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5528         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5529         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5530         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5531         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5532         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5533         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5534         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5535         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5536         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5537         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5538         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5539         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5540         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5541         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5542         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5543         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5544         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5545         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5546         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5547         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5548         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5549         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5550         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5551         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5552         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5553         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5554         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5555         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5556         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5557         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5558         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5559         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5560         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5561         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5562         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5563         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5564         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5565         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5566         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5567         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5568         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5569         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5570         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5571         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5572         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5573         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5574         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5575         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5576         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5577         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5578         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5579         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5580         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5581         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5582         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5583         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5584         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5585         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5586         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5587         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5588         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5589         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5590         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5591         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5592         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5593         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5594         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5595         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5596         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5597         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5598         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5599         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5600         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5601         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5602         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5603         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5604         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5605         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5606         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5607         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5608         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5609         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5610         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5611         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5612         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5613         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5614         (HI_FTYPE_HI): Ditto.
5615         (HI_FTYPE_V16QI): Ditto.
5616         (SI_FTYPE_V32QI): Ditto.
5617         (DI_FTYPE_V64QI): Ditto.
5618         (QI_FTYPE_V8HI): Ditto.
5619         (HI_FTYPE_V16HI): Ditto.
5620         (SI_FTYPE_V32HI): Ditto.
5621         (QI_FTYPE_V4SI): Ditto.
5622         (QI_FTYPE_V8SI): Ditto.
5623         (HI_FTYPE_V16SI): Ditto.
5624         (QI_FTYPE_V2DI): Ditto.
5625         (QI_FTYPE_V4DI): Ditto.
5626         (QI_FTYPE_V8DI): Ditto.
5627         (V16QI_FTYPE_HI): Ditto.
5628         (V32QI_FTYPE_SI): Ditto.
5629         (V64QI_FTYPE_DI): Ditto.
5630         (V8HI_FTYPE_QI): Ditto.
5631         (V16HI_FTYPE_HI): Ditto.
5632         (V32HI_FTYPE_SI): Ditto.
5633         (V4SI_FTYPE_QI): Ditto.
5634         (V4SI_FTYPE_HI): Ditto.
5635         (V8SI_FTYPE_QI): Ditto.
5636         (V8SI_FTYPE_HI): Ditto.
5637         (V2DI_FTYPE_QI): Ditto.
5638         (V4DI_FTYPE_QI): Ditto.
5639         (HI_FTYPE_HI_HI): Ditto.
5640         (SI_FTYPE_SI_SI): Ditto.
5641         (DI_FTYPE_DI_DI): Ditto.
5642         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5643         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5644         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5645         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5646         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5647         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5648         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5649         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5650         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5651         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5652         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5653         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5654         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5655         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5656         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5657         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5658         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5659         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5660         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5661         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5662         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5663         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5664         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5665         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5666         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5667         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5668         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5669         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5670         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5671         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5672         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5673         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5674         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5675         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5676         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5677         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5678         (V16SI_FTYPE_HI): Ditto.
5679         (V8DI_FTYPE_QI): Ditto.
5680         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5681         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5682         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5683         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5684         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5685         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5686         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5687         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5688         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5689         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5690         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5691         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5692         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5693         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5694         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5695         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5696         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5697         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5698         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5699         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5700         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5701         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5702         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5703         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5704         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5705         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5706         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5707         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5708         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5709         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5710         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5711         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5712         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5713         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5714         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5715         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5716         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5717         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5718         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5719         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5720         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5721         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5722         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5723         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5724         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5725         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5726         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5727         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5728         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5729         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5730         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5731         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5732         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5733         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5734         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5735         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5736         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5737         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5738         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5739         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5740         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5741         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5742         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5743         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5744         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5745         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5746         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5747         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5748         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5749         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5750         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5751         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5752         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5753         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
5754         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
5755         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
5756         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
5757         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
5758         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5759         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
5760         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
5761         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
5762         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
5763         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
5764         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
5765         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
5766         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
5767         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
5768         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
5769         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
5770         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
5771         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
5772         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
5773         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
5774         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
5775         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
5776         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
5777         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
5778         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
5779         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
5780         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
5781         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
5782         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
5783         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
5784         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
5785         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
5786         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
5787         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
5788         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
5789         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
5790         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
5791         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
5792         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
5793         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
5794         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
5795         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
5796         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
5797         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
5798         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
5799         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
5800         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
5801         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
5802         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
5803         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
5804         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
5805         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
5806         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
5807         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
5808         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
5809         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
5810         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
5811         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
5812         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
5813         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5814         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5815         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5816         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5817         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5818         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5819         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5820         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5821         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5822         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5823         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5824         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5825         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5826         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5827         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5828         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5829         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5830         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5831         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5832         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5833         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5834         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5835         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5836         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5837         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5838         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5839         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5840         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5841         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5842         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5843         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5844         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5845         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5846         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5847         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5848         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5849         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5850         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5851         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5852         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5853         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5854         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5855         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5856         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5857         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5858         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5859         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5860         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5861         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5862         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5863         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5864         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5865         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5866         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5867         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5868         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5869         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5870         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5871         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5872         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5873         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5874         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5875         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5876         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5877         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5878         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5879         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5880         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5881         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5882         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5883         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5884         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5885         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5886         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5887         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5888         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5889         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5890         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5891         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5892         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5893         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5894         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5895         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5896         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5897         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5898         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5899         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5900         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5901         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5902         (QI_FTYPE_V8DF_INT_QI): Ditto.
5903         (QI_FTYPE_V4DF_INT_QI): Ditto.
5904         (QI_FTYPE_V2DF_INT_QI): Ditto.
5905         (HI_FTYPE_V16SF_INT_HI): Ditto.
5906         (QI_FTYPE_V8SF_INT_QI): Ditto.
5907         (QI_FTYPE_V4SF_INT_QI): Ditto.
5908         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5910 2015-07-31  Richard Biener  <rguenther@suse.de>
5912         * gimple-fold.c (fold_gimple_assign): Remove folding of
5913         GIMPLE_BINARY_RHS.
5915 2015-07-31  Tom de Vries  <tom@codesourcery.com>
5917         PR tree-optimization/66846
5918         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5919         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5920         (expand_omp_target) [ENABLE_CHECKING]: Same.
5921         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5922         cfun if !LOOPS_NEED_FIXUP.
5923         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
5924         that omp_for already has its own loop struct.
5925         * tree-parloops.c (create_phi_for_local_result)
5926         (create_call_for_reduction): Handle simple latch bb.
5927         (create_parallel_loop): Add simple latch bb to preserve
5928         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
5929         (gen_parallel_loop): Remove call to cancel_loop_tree.
5930         (parallelize_loops): Skip loops that are inner loops of parallelized
5931         loops.
5932         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5933         verify_loop_structure.
5935 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
5937         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5938         * config/v850/v850.md (RV_REGNUM): New constants.
5939         * config/v850/v850.c (v850_libcall_value): New functions.
5940         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5941         (TARGET_LIBCALL_VALUE): Define.
5943 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
5945         * rtl.h (lowpart_subreg): Move in file.
5946         * loop-iv.c (lowpart_subreg): Move to...
5947         * simplify-rtx.c (lowpart_subreg): ...here.
5948           (simplify_binary_operation_1): Use lowpart_subreg instead of
5949           simplify_gen_subreg.
5950         * expr.c (expand_expr_real_2): Ditto.
5951         * emit-rtl.c (gen_lowpart_common): Ditto.
5952         * combine.c (gen_lowpart_for_combine): Ditto.
5953         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5954           expand_debug_source_expr): Ditto.
5956 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
5958         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5959         (expand_builtin_atomic_clear): Remove support for atomic_clear
5960         pattern.
5962 2015-07-30  Richard Biener  <rguenther@suse.de>
5964         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5965         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5966         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
5967         redundant operand canonicalization.
5969 2015-07-30  David Sherwood  <david.sherwood@arm.com>
5971         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5972         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5973         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5974         * config/arm/arm.c (neon_valid_immediate): Likewise.
5975         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5976         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5977         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5978         (expand_vec_perm_vpshufb2_vpermq): Likewise.
5979         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5980         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5981         * config/i386/sse.md
5982         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5983         (*ssse3_palignr<mode>_perm): Likewise.
5984         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5985         * config/spu/spu.c (arith_immediate_p): Likewise.
5986         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5987         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5989 2015-07-30  Richard Biener  <rguenther@suse.de>
5991         * genmatch.c (decision_tree::gen_gimple): Merge with ...
5992         (decision_tree::gen_generic): ... this into ...
5993         (decision_tree::gen): ... this.
5994         (main): Adjust callers.
5996 2015-07-30  Richard Biener  <rguenther@suse.de>
5998         * genmatch.c (verbose): New global.
5999         (warning_at): Add overload with source_location.
6000         (capture_info::capture_info): Add bool whether generating gimple
6001         or generic.  Add gimple member.
6002         (capture_info::cinfo): Add capture member.
6003         (capture_info::walk_match): Record capture.  Warn on
6004         non-captured leafs.
6005         (capture_info::walk_c_expr): Add more fragments captures cannot
6006         escape through.  Warn on escaped captures.
6007         (dt_simplify::gen_1): Warn on operands we force to have no
6008         side-effects.
6009         (main): Initialize verbose.
6010         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6012 2015-07-30  Richard Biener  <rguenther@suse.de>
6014         PR middle-end/67053
6015         * match.pd: Allow both operands to independently have conversion
6016         when simplifying compares of addresses.
6018 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
6020         PR target/66217
6021         PR target/67045
6022         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6023         around those cases that need one.
6025 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
6027         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6029 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
6031         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6032         New.  Copied from config/i386/gnu-user.h.
6033         (ASM_COMMENT_START): Likewise.
6034         (DBX_REGISTER_NUMBER): Likewise.
6036 2015-07-29  Richard Biener  <rguenther@suse.de>
6038         * gimple-fold.c (fold_gimple_cond): Remove.
6039         (fold_stmt_1): Do not call it.
6041 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
6043         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6044         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6046         * config/aarch64/aarch64-modes.def: Add HFmode.
6048         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6049         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6051         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6052         aarch64_promoted_type): New.
6054         (aarch64_float_const_representable_p): Disable HFmode.
6055         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6056         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6057         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6059         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6060         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6062         * config/aarch64/iterators.md (GPF_F16): New.
6064 2015-07-29  Richard Biener  <rguenther@suse.de>
6066         * match.pd: Merge address comparison patterns and make them
6067         handle some more cases.
6069 2015-07-29  Richard Biener  <rguenther@suse.de>
6071         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6072         (parser::parse_capture): Add bool argument on whether to reject
6073         unknown captures.
6074         (parser::parse_expr): Adjust.
6075         (parser::parse_op): Likewise.
6076         (parser::parse_pattern): Likewise.
6078 2015-07-29  Richard Biener  <rguenther@suse.de>
6080         * gimple-fold.c (has_use_on_stmt): New function.
6081         (replace_stmt_with_simplification): Use it to allow
6082         abnormals originally referenced in the stmt.
6083         (fold_stmt_1): Canonicalize operand order.
6085 2015-07-28  David Sherwood  <david.sherwood@arm.com>
6087         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6088         GET_MODE_INNER unconditionally.
6089         * config/spu/spu.c (arith_immediate_p): Likewise.
6090         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6091         * expmed.c (synth_mult): Remove check for VOIDmode result from
6092         GET_MODE_INNER.
6093         (expand_mult_const): Likewise.
6094         * fold-const.c (fold_binary_loc): Replace call to element_precision
6095         with call to GET_MODE_PRECISION.
6096         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6097         m->name.
6098         (emit_mode_inner): Likewise.
6099         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6100         result check.
6101         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6102         (GET_MODE_UNIT_PRECISION): Likewise.
6103         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6104         * simplify-rtx.c (simplify_immed_subreg): Likewise.
6105         * stor-layout.c (bitwise_type_for_mode): Update assert.
6106         (element_precision): Remove.
6108 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
6110         * target-insns.def (reload_load_address): New targetm instruction
6111         pattern.
6112         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6114 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
6116         * target-insns.def (atomic_test_and_set): New targetm instruction
6117         pattern.
6118         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6119         HAVE_*/gen_* interface.
6121 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
6123         * target-insns.def (can_extend, ptr_extend): New targetm instruction
6124         patterns.
6125         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6126         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6127         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6128         * rtlanal.c (nonzero_bits1): Likewise.
6129         (num_sign_bit_copies1): Likewise.
6131 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
6133         * target-insns.def (eh_return): New targetm instruction pattern.
6134         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6135         interface.
6136         * function.c (thread_prologue_and_epilogue_insns): Remove
6137         preprocessor condition.
6139 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
6141         * target-insns.def (indirect_jump): New targetm instruction pattern.
6142         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6143         interface.
6145 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
6147         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6148         instead of nonimmediate_operand.  Remove C condiition.
6150 2015-07-28  Richard Biener  <rguenther@suse.de>
6152         * match.pd: Add more simplification of address comparisons.
6154 2015-07-28  Richard Biener  <rguenther@suse.de>
6156         * match.pd: Re-order two cases in comparison with max/min
6157         value simplification to make it apply for bools.
6159 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6161         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6162         Handle simple SIGN_EXTEND or ZERO_EXTEND.
6163         (aarch64_rtx_costs): Properly strip extend or extract before
6164         passing down to rtx costs again.
6166 2015-07-28  Nick Clifton  <nickc@redhat.com>
6168         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6169         Optimizes the case where -mes0 is active and a constant symbolic
6170         address is used.
6171         * config/rl78/rl78-protos.h: Prototype the new function.
6172         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6174 2015-07-28  Tom de Vries  <tom@codesourcery.com>
6176         * tree-parloops.c (reduc_stmt_res): New function.
6177         (initialize_reductions, add_field_for_reduction)
6178         (create_phi_for_local_result, create_loads_for_reductions)
6179         (create_stores_for_reduction, build_new_reduction): Handle case that
6180         reduc_stmt is a phi.
6181         (gather_scalar_reductions): Allow double_reduc reductions.
6183 2015-07-28  Richard Biener  <rguenther@suse.de>
6185         * fold-const.c (fold_comparison): Remove equality folding
6186         of decl addresses ...
6187         * match.pd: ... here and merge with existing pattern.
6189 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6191         PR tree-optimization/66828
6192         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6193         from int64_t to uint64_t.
6195 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6197         * opts-common.c (read_cmdline_option): List DriverOnly enum values
6198         as valid only in the error message of the driver, not in the
6199         messages of the language compilers.
6201 2015-07-27  Tom de Vries  <tom@codesourcery.com>
6203         * tree-parloops.c (gather_scalar_reductions): Simplify function
6204         structure.
6206 2015-07-27  Marek Polacek  <polacek@redhat.com>
6208         * ipa-devirt.c (types_same_for_odr): Fix typo.
6210 2015-07-27  Jason Merrill  <jason@redhat.com>
6212         PR debug/66468
6213         * dwarf2out.c (gen_inlined_subroutine_die): Check
6214         cgraph_function_possibly_inlined_p.
6216 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
6218         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6219         Place integer variant first.
6220         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6222 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
6224         PR/63870
6225         * config/arm/arm-builtins.c (enum arm_builtins):
6226         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6227         (ARM_BUILTIN_NEON_BASE): Rename macro to....
6228         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6229         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6230         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6232 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
6234         PR/63870
6235         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6236         Add qualifier_lane_index.
6237         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6238         (arm_getlane_qualifiers): Use qualifier_lane_index.
6239         (arm_lanemac_qualifiers): Rename to...
6240         (arm_mac_n_qualifiers): ...this.
6241         (LANEMAC_QUALIFIERS): Rename to...
6242         (MAC_N_QUALIFIERS): ...this.
6243         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6244         (arm_setlane_qualifiers): Use qualifier_lane_index.
6245         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6246         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6247         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6248         (arm_expand_neon_builtin): Handle qualifier_lane_index.
6250         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6251         * config/arm/arm.c (bounds_check): Likewise, improve error message.
6252         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6253         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6254         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6255         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6256         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6257         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6258         qualifiers to TERNOP_IMM.
6259         (vdup_lane): Change qualifiers to GETLANE.
6260         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6261         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6262         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6263         vqdmlsl_n): Change qualifiers to MAC_N.
6265         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6266         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6267         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6268         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6269         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6270         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6271         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6272         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6273         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6274         Remove call to neon_lane_bounds.
6276 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
6278         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6279         Place integer variant first.
6281 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
6283         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6284         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6285         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6286         for armv6kz targets.
6287         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6288         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6289         (FL_FOR_ARCH6ZK): Remove.
6290         (FL_FOR_ARCH6KZ): New.
6291         (arm_arch6zk): New declaration.
6292         * config/arm/arm-tables.opt: Regenerate.
6293         * config/arm/arm.c (arm_arch6kz): New.
6294         (arm_option_override): Set arm_arch6kz.
6295         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6296         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6297         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6299 2015-07-27  Marek Polacek  <polacek@redhat.com>
6301         PR c++/66555
6302         PR c/54979
6303         * doc/invoke.texi: Document -Wtautological-compare.
6305 2015-07-27  Richard Biener  <rguenther@suse.de>
6307         * genmatch.c (decision_tree::gen_gimple): Split out large
6308         subtrees into separate functions.
6309         (decision_tree::gen_generic): Likewise.
6311 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
6313         * config/alpha/alpha.c: Use SUBREG_P predicate.
6314         * config/alpha/predicates.md: Ditto.
6316 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6318         * config.host (s390*-*-*): Include driver-native.c only when
6319         building with s390* as host *and* target.
6321 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
6323         PR target/66930
6324         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6325         T bit register modified_between_p check.
6327 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
6329         * config/i386/i386.c: Use SUBREG_P predicate.
6330         * config/i386/i386.md: Ditto.
6331         * config/i386/sse.md: Ditto.
6332         * config/i386/predicates.md: Ditto.
6334 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
6336         PR target/67004
6337         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6338         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6340 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
6342         * Makefile.in: Remove use of TREEBROWSER.
6343         * config.in: Regenerated.
6344         * configure: Regenerated.
6345         * configure.ac: Remove definition of TREEBROWSER.
6346         * tree-browser.c: Removed.
6347         * tree-browser.def: Removed.
6349 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
6351         * graphite-scop-detection.c: Include gimple-pretty-print.h.
6352         (stmt_simple_for_scop_p): Print when a stmt is not handled in
6353         Graphite.
6354         (scopdet_basic_block_info): Print when a loop or bb cannot be
6355         represented in Graphite.
6357 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
6359         PR target/66648
6360         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6361         execution guard when min_size is less than size_needed.
6363 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
6365         * doc/install.texi: Document supported versions of ISL.
6367 2015-07-25  Jeff Law  <law@redhat.com>
6369         Revert:
6370         PR lto/66752
6371         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6372         unable to find X NE 0 in the tables, return X as the simplified
6373         condition.
6374         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6375         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6376         to VISISTED_BBS.  */
6377         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6378         after removing the control flow statement and unnecessary edges.
6380 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
6382         Revert:
6383         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
6385         PR rtl-optimization/64164
6386         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6387         * tree-ssa-copyrename.c: Removed.
6388         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6389         -ftree-coalesce-vars.
6390         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6391         * common.opt (ftree-copyrename): Ignore.
6392         (ftree-coalesce-inlined-vars): Likewise.
6393         * doc/invoke.texi: Remove the ignored options above.
6394         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6395         * tree-ssa-coalesce.h: ... here.
6396         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6397         headers required by it.
6398         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6399         across variables when flag_tree_coalesce_vars.  Check register
6400         use and promoted modes to allow coalescing.  Moved to
6401         tree-ssa-coalesce.c.
6402         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6403         with its member functions to tree-ssa-coalesce.c.
6404         (var_map_base_init): Likewise.  Renamed to
6405         compute_samebase_partition_bases.
6406         (partition_view_normal): Drop want_bases parameter.
6407         (partition_view_bitmap): Likewise.
6408         * tree-ssa-live.h: Adjust declarations.
6409         * tree-ssa-coalesce.c: Include explow.h.
6410         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6411         default defs at the entry point.
6412         (dump_part_var_map): New.
6413         (compute_optimized_partition_bases): New, called by...
6414         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6415         of compute_samebase_partition_bases.  Adjust.
6416         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6417         * cfgexpand.c (leader_merge): New.
6418         (get_rtl_for_parm_ssa_default_def): New.
6419         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6420         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6421         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6422         redundant MEM attr setting.
6423         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6424         from...
6425         (expand_one_stack_var): ... this.  New wrapper to check and
6426         skip already expanded SSA partitions.
6427         (record_alignment_for_reg_var): New, factored out of...
6428         (expand_one_var): ... this.
6429         (expand_one_ssa_partition): New.
6430         (adjust_one_expanded_partition_var): New.
6431         (expand_one_register_var): Check and skip already expanded SSA
6432         partitions.
6433         (expand_used_vars): Don't create DECLs for anonymous SSA
6434         names.  Expand all SSA partitions, then adjust all SSA names.
6435         (pass::execute): Replace the loops that set
6436         SA.partition_to_pseudo from partition leaders and cleared
6437         DECL_RTL for multi-location variables, and that which used to
6438         rename vars and set attrs, with one that clears DECL_RTL and
6439         checks that PARMs and RESULTs default_defs match DECL_RTL.
6440         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6441         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6442         * explow.c (promote_ssa_mode): New.
6443         * explow.h (promote_ssa_mode): Declare.
6444         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6445         * function.c: Include cfgexpand.h.
6446         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6447         (use_register_for_parm_decl): Wrapper for the above to
6448         special-case the result_ptr.
6449         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6450         (split_complex_args): Take assign_parm_data_all argument.
6451         Pass it to rtl_for_parm.  Set up rtl and context for split
6452         args.
6453         (assign_parms_augmented_arg_list): Adjust.
6454         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6455         multiple locations.  Recognize split complex args.
6456         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6457         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6458         (assign_parm_setup_block): Prefer SSA-assigned location.
6459         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6460         if stack_parm is NULL.
6461         (assign_parm_setup_stack): Prefer SSA-assigned location.
6462         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6463         rtl before testing for pointer bounds.  Special-case result_ptr.
6464         (expand_function_start): Maybe reset DECL_RTL of result.
6465         Prefer SSA-assigned location for result and static chain.
6466         Factor out DECL_RESULT and SET_DECL_RTL.
6467         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6468         anonymous SSA names.  Use promote_ssa_mode.
6469         (get_temp_reg): Likewise.
6470         (remove_ssa_form): Adjust.
6471         * stor-layout.c (layout_decl): Don't set mem attributes of
6472         non-MEMs.
6473         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6474         and get its reg_usage for reg invalidation.
6475         (compute_bb_dataflow): Pass it insn.
6476         (emit_notes_in_bb): Likewise.
6478 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
6480         * config/i386/i386.c (ix86_va_start): Remove
6481         unneeded !TARGET_64BIT check.
6482         (ix86_gimplify_va_arg): Ditto.
6484 2015-07-24  Tom de Vries  <tom@codesourcery.com>
6486         * graphite-sese-to-poly.c (build_poly_scop): Always call
6487         rewrite_commutative_reductions_out_of_ssa.
6489 2015-07-24  Tom de Vries  <tom@codesourcery.com>
6491         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6492         flag_associative_math to FLOAT_TYPE_P.  Honour
6493         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6495 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6497         PR c++/64079
6498         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6499         and "%qD" in warning_at instead of "%q+D" in warning.
6501 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
6503         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
6504         (ix86_function_abi): Cleanup.
6506 2015-07-24  Michael Darling  <darlingm@gmail.com>
6508         PR other/66259
6509         * acinclude.m4: Reflects renaming of configure.in to configure.ac
6510         * configure: Likewise
6511         * configure.ac: Likewise
6512         * doc/install.texi: Likewise
6513         * doc/tm.texi: Likewise
6514         * doc/tm.texi.in: Likewise
6516 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6518         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
6519         manually swapping values.
6520         * cse.c (fold_rtx): Likewise.
6521         * lra-eliminations.c (form_sum): Likewise.
6523 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
6525         PR target/64003
6526         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6527         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6528         (*jcc_1, *jcc_2, jump, simple_return_internal)
6529         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6530         Set length_nobnd attribute instead of length attribute.
6531         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6532         (length_nobnd): Remove attribute.
6533         (length): Remove length_nobnd processing.
6535 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
6537         * gimplify.c (omp_default_clause): New function.  Reorganize flow
6538         for clarity. Broken out of ...
6539         (omp_notice_variable): ... here.
6541 2015-07-24  Gary Funck  <gary@intrepid.com>
6543         PR middle-end/66984
6544         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6545         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6547 2015-07-24  Tom de Vries  <tom@codesourcery.com>
6549         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6550         exit-first loop transform.
6552 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
6554         PR 66714
6555         * tree-cfg.c (struct replace_decls_d): New struct.
6556         (replace_block_vars_by_duplicates_1): New function.
6557         (replace_block_vars_by_duplicates): Use it to replace the decls
6558         in the value exprs by duplicates.
6560 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6562         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6563         -shared, -symbolic, -rdynamic.
6565 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6567         PR target/65711
6568         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6569         -dynamic-linker within %{!static %{!shared, and -rdynamic within
6570         %{!static.
6572 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
6574         PR ipa/66566
6575         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6576         edge summary is available.
6578 2015-07-24  Richard Biener  <rguenther@suse.de>
6580         * genmatch.c (struct dt_node): Add statistic fields.
6581         (dt_node::analyze): New method.
6582         (decision_tree::gen_gimple): Call analyze on the root node
6583         and print statistics to stderr.
6584         (decision_tree::gen_generic): Likewise.
6586 2015-07-24  Richard Biener  <rguenther@suse.de>
6588         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6589         against the highest or lowest possible integer ...
6590         * match.pd: ... as patterns here.
6592 2015-07-24  Richard Biener  <rguenther@suse.de>
6594         * genmatch.c (struct capture_info): Add same_as field.
6595         (capture_info::capture_info): Initialize same_as.
6596         (capture_info::walk_match): Compute same_as.
6597         (capture_info::walk_result): Compute stuff for the leader.
6598         (capture_info::walk_c_expr): Likewise.
6599         (dt_simplify::gen_1): Only look at leaders when deciding
6600         to force no side-effects or emit side-effects of omitted operands.
6602 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6604         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6605         reg note to the GPR -> FPR save instructions.
6607 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6609         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6610         cheaper.
6611         (s390_expand_insv): Don't generate risbg pattern for constant zero
6612         sources.
6613         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6614         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
6615         splitters.
6617 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6619         * config/s390/s390.c (s390_reorg): Clean up handling of processors
6620         with
6621         -mtune=
6622         (s390_issue_rate): Likewise.
6623         (s390_sched_reorder): Likewise.
6624         (s390_sched_variable_issue): Likewise.
6625         (s390_loop_unroll_adjust): Likewise.
6626         (s390_option_override):  Likewise.
6628 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6630         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6631         processor capabilities with -march=native.
6632         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6633         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
6634         (S390_TARGET_BITS_STRING): Macro to simplify specs.
6636 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6638         * config/s390/s390.c (s390_issue_rate): Handle
6639         PROCESSOR_2094_Z9_EC.
6640         (s390_option_override): Likewise.
6641         (s390_adjust_priority): Likewise.
6643 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6645         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6646         when cross compiling.
6648 2015-07-24  Richard Biener  <rguenther@suse.de>
6650         * fold-const.c (maybe_canonicalize_comparison_1): Move
6651         A code CST canonicalization ...
6652         * match.pd: ... to a pattern here.
6654 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
6656         Revert:
6657         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
6658         PR target/63521
6659         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6660         (HONOR_REG_ALLOC_ORDER): Define.
6662 2015-07-24  Richard Biener  <rguenther@suse.de>
6664         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6665         * fold-const.c (fold_comparison): Move parameter does not
6666         alias &local simplification ...
6667         * match.pd: ... as a pattern here.
6669 2015-07-24  Richard Biener  <rguenther@suse.de>
6671         * gimple-fold.c (replace_stmt_with_simplification): Special-case
6672         valueizing call operands.
6673         * gimple-match-head.c (maybe_push_res_to_seq): Take
6674         number of call arguments from ops array.
6675         (do_valueize): New function.
6676         (gimple_simplify): Return true if valueization changed
6677         any operand even if the result didn't simplify further.
6679 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6681         PR middle-end/25530
6682         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6684 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6686         PR middle-end/25529
6687         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6689 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
6691         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6692         instruction.
6694 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
6696         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6697         clean up.
6699 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
6701         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6702         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
6703         targets here.
6704         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6705         ms_va_list_type_node initialization.
6707 2015-07-23  Jeff Law  <law@redhat.com>
6709         PR lto/66752
6710         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6711         unable to find X NE 0 in the tables, return X as the simplified
6712         condition.
6713         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6714         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6715         to VISISTED_BBS.  */
6716         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6717         after removing the control flow statement and unnecessary edges.
6719 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6721         * tree-pass.h (get_current_pass_name): Removed.
6723 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
6725         PR rtl-optimization/64164
6726         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6727         * tree-ssa-copyrename.c: Removed.
6728         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6729         -ftree-coalesce-vars.
6730         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6731         * common.opt (ftree-copyrename): Ignore.
6732         (ftree-coalesce-inlined-vars): Likewise.
6733         * doc/invoke.texi: Remove the ignored options above.
6734         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6735         * tree-ssa-coalesce.h: ... here.
6736         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6737         headers required by it.
6738         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6739         across variables when flag_tree_coalesce_vars.  Check register
6740         use and promoted modes to allow coalescing.  Moved to
6741         tree-ssa-coalesce.c.
6742         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6743         with its member functions to tree-ssa-coalesce.c.
6744         (var_map_base_init): Likewise.  Renamed to
6745         compute_samebase_partition_bases.
6746         (partition_view_normal): Drop want_bases parameter.
6747         (partition_view_bitmap): Likewise.
6748         * tree-ssa-live.h: Adjust declarations.
6749         * tree-ssa-coalesce.c: Include explow.h.
6750         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6751         default defs at the entry point.
6752         (dump_part_var_map): New.
6753         (compute_optimized_partition_bases): New, called by...
6754         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6755         of compute_samebase_partition_bases.  Adjust.
6756         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6757         * cfgexpand.c (leader_merge): New.
6758         (get_rtl_for_parm_ssa_default_def): New.
6759         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6760         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6761         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6762         redundant MEM attr setting.
6763         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6764         from...
6765         (expand_one_stack_var): ... this.  New wrapper to check and
6766         skip already expanded SSA partitions.
6767         (record_alignment_for_reg_var): New, factored out of...
6768         (expand_one_var): ... this.
6769         (expand_one_ssa_partition): New.
6770         (adjust_one_expanded_partition_var): New.
6771         (expand_one_register_var): Check and skip already expanded SSA
6772         partitions.
6773         (expand_used_vars): Don't create DECLs for anonymous SSA
6774         names.  Expand all SSA partitions, then adjust all SSA names.
6775         (pass::execute): Replace the loops that set
6776         SA.partition_to_pseudo from partition leaders and cleared
6777         DECL_RTL for multi-location variables, and that which used to
6778         rename vars and set attrs, with one that clears DECL_RTL and
6779         checks that PARMs and RESULTs default_defs match DECL_RTL.
6780         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6781         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6782         * explow.c (promote_ssa_mode): New.
6783         * explow.h (promote_ssa_mode): Declare.
6784         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6785         * function.c: Include cfgexpand.h.
6786         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6787         (use_register_for_parm_decl): Wrapper for the above to
6788         special-case the result_ptr.
6789         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6790         (split_complex_args): Take assign_parm_data_all argument.
6791         Pass it to rtl_for_parm.  Set up rtl and context for split
6792         args.
6793         (assign_parms_augmented_arg_list): Adjust.
6794         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6795         multiple locations.  Recognize split complex args.
6796         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6797         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6798         (assign_parm_setup_block): Prefer SSA-assigned location.
6799         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6800         if stack_parm is NULL.
6801         (assign_parm_setup_stack): Prefer SSA-assigned location.
6802         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6803         rtl before testing for pointer bounds.  Special-case result_ptr.
6804         (expand_function_start): Maybe reset DECL_RTL of result.
6805         Prefer SSA-assigned location for result and static chain.
6806         Factor out DECL_RESULT and SET_DECL_RTL.
6807         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6808         anonymous SSA names.  Use promote_ssa_mode.
6809         (get_temp_reg): Likewise.
6810         (remove_ssa_form): Adjust.
6811         * stor-layout.c (layout_decl): Don't set mem attributes of
6812         non-MEMs.
6813         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6814         and get its reg_usage for reg invalidation.
6815         (compute_bb_dataflow): Pass it insn.
6816         (emit_notes_in_bb): Likewise.
6818 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
6820         PR target/66217
6821         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6822         prototype.
6823         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6824         (rs6000_emit_2insn_and): Handle dot forms.
6825         * config/rs6000/rs6000.md (and<mode>3): Adjust.
6826         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
6827         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6829 2015-07-23  Richard Biener  <rguenther@suse.de>
6831         * generic-match-head.c: Include cgraph.h.
6832         * gimple-match-head.c: Likewise.
6833         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6834         SSA names.
6835         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6836         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
6837         pattern.
6839 2015-07-23  Richard Biener  <rguenther@suse.de>
6841         * gimple-fold.c (fold_gimple_cond): Do not require folding
6842         results to pass valid_gimple_rhs_p.
6843         * tree-cfg.h (fold_cond_expr_cond): Remove.
6844         * tree-cfg.c (fold_cond_expr_cond): Likewise.
6845         (make_edges): Do not call it.
6846         * tree-inline.c (tree_function_versioning): Likewise.
6848 2015-07-23  Tom de Vries  <tom@codesourcery.com>
6850         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6851         vect_force_simple_reduction.
6852         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6853         (vect_is_simple_reduction_1): Add and handle
6854         need_wrapping_integral_overflow parameter.
6855         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6856         need_wrapping_integral_overflow parameter.
6857         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6858         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6859         decl.
6861 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
6863         PR tree-optimization/66926,66951
6864         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6865         INNER_LOOP and fix up condition for renaming virtual operands.
6867 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6869         * combine.c (try_combine): Use std::swap instead of manually
6870         swapping.
6872 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
6874         * config/mips/i6400.md: New file.
6875         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6876         (mips64r6): Likewise.
6877         (i6400): Define.
6878         * config/mips/mips-tables.opt: Regenerate.
6879         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6880         (mips_issue_rate): Add support for i6400.
6881         (mips_multipass_dfa_lookahead): Likewise.
6882         * config/mips/mips.h (TUNE_I6400): Define.
6883         * config/mips/mips.md: Include i6400.md.
6884         (processor): Add i6400.
6885         * doc/invoke.texi (-march=@var{arch}): Add i6400.
6887 2015-07-23  Richard Biener  <rguenther@suse.de>
6889         PR middle-end/66916
6890         * match.pd: Guard widen and sign-change comparison simplification
6891         with single_use.
6893 2015-07-23  Richard Biener  <rguenther@suse.de>
6895         PR tree-optimization/66945
6896         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6897         ::before_dom_children): Force the propagators idea of
6898         non-executable edges to materialize, not what the folder
6899         chooses.
6901 2015-07-23  Richard Biener  <rguenther@suse.de>
6903         * gimple.h (gimple_cond_make_false): Use 0 != 0.
6904         (gimple_cond_make_true): Use 1 != 0.
6906 2015-07-22  DJ Delorie  <dj@redhat.com>
6908         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6909         slashes.
6911         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6912         (ashrhi3): Likewise.
6913         (lshrhi3): Likewise.
6914         (movhi): Take advantage of zero-extend to load small constants.
6915         (movpsi): Likewise.
6916         (and<mode>3): Likewise.
6917         (zero_extendqihi2): Likewise.
6918         (zero_extendqisi2): New.
6919         * config/msp430/constraints.md (N,O): New.
6920         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6922 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
6924         PR target/66954
6925         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6926         to enum feature_priority and feature_list.
6927         (fold_builtin_cpu): Add F_AES to enum processor_features
6928         and isa_names_table.
6930 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
6932         PR driver/66737
6933         * config/i386/linux-common.h (MPX_SPEC): Use linker option
6934         for 64bit target only.
6936 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6938         * config/nvptx/nvptx.c: Expand some comments.
6940 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
6942         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6943         (cortex_a53_advsimd): ...This.
6945 2015-07-22  Richard Biener  <rguenther@suse.de>
6947         * genmatch.c (expr::gen_transform): Clarify error message
6948         and display location.
6950 2015-07-22  Richard Biener  <rguenther@suse.de>
6952         * genmatch.c (struct operand): Add location member.
6953         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6954         constructors.
6955         (struct simplify): Remove match_location and result_location
6956         members.
6957         (elsehwere): Adjust.
6959 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
6961         * config/mips/m5100.md: New file.
6962         * config/mips/mips-cpus.def (m5100, m5101): Define.
6963         * config/mips/mips-tables.opt: Regenerate.
6964         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6965         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6966         -march=m5101 to -mips32r5.
6967         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6968         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6969         !-msoft-float.
6970         * config/mips/mips.md: Include m5100.md.
6971         (processor): Add m5100.
6972         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6974 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
6976         * config/mips/mips-cpus.def (interaptiv): Define.
6977         * config/mips/mips-tables.opt: Regenerate.
6978         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6979         -mips32r2.
6980         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6981         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6983 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
6985         PR target/63521
6986         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6987         (HONOR_REG_ALLOC_ORDER): Define.
6989 2015-07-22  Richard Biener  <rguenther@suse.de>
6991         PR tree-optimization/66952
6992         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6993         blocks we end up executing unconditionally reset all SSA
6994         info such as range and alignment.
6995         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6996         * tree-ssanames.c (reset_flow_sensitive_info): New function.
6998 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
7000         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7001         typo in attribute.
7003 2015-07-22  Richard Biener  <rguenther@suse.de>
7005         * genmatch.c (parser::parse_result): Properly handle
7006         match with result operands and conditions.
7008 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
7010         PR target/63870
7011         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7012         Add qualifier_struct_load_store_lane_index.
7013         (aarch64_types_loadstruct_lane_qualifiers): Use
7014         qualifier_struct_load_store_lane_index for lane index argument for
7015         last argument.
7016         (aarch64_types_storestruct_lane_qualifiers): Ditto.
7017         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7018         (aarch64_simd_expand_args): Add new argument describing mode of
7019         builtin. Check lane bounds for arguments with
7020         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7021         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7022         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7023         (aarch64_simd_expand_builtin): Handle arguments with
7024         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7025         aarch64_simd_expand_args.
7026         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7027         vst[234]_lane with BUILTIN_VALLDIF.
7028         * config/aarch64/aarch64-simd.md:
7029         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7030         endianness reversal on lane index.
7031         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7032         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7033         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7034         (vec_store_lanesci_lane<mode>): Ditto.
7035         (vec_store_lanesxi_lane<mode>): Ditto.
7036         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7037         reversal of lane index.
7038         (aarch64_ld3_lane<mode>): Ditto.
7039         (aarch64_ld4_lane<mode>): Ditto.
7040         (aarch64_st2_lane<mode>): Ditto.
7041         (aarch64_st3_lane<mode>): Ditto.
7042         (aarch64_st4_lane<mode>): Ditto.
7043         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7044         to qmode. Add new mode parameter. Update uses.
7045         (__LD3_LANE_FUNC): Ditto.
7046         (__LD4_LANE_FUNC): Ditto.
7047         (__ST2_LANE_FUNC): Ditto.
7048         (__ST3_LANE_FUNC): Ditto.
7049         (__ST4_LANE_FUNC): Ditto.
7051 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
7053         * doc/invoke.texi (Language Independent Options): Rename node to
7054         Diagnostic Message Formatting Options.
7056 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
7058         PR ipa/66424.
7059         * lra-remat.c (operand_to_remat): Prevent using insns with input
7060         subregs processed separately by IRA.
7062 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
7064         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7065         straight loops.
7066         (single_imm_use): Check for iterator node.
7067         (num_imm_uses): Likewise.
7068         * tree-ssa-operands.c (has_zero_uses_1): Delete.
7069         (single_imm_use_1): Check for iterator node.
7071 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
7072             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7074         * configure.ac: Add check for new options in isl-0.15.
7075         * config.in, configure: Rebuilt.
7076         * graphite-blocking.c: Include <isl/constraint.h>
7077         * graphite-interchange.c,  graphite-poly.c: Likewise.
7078         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7079         * graphite.c: Likewise.
7080         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7081         <isl/union_set.h>.
7082         * graphite-dependences.c: Include <isl/constraint.h>.
7083         (max_number_of_out_dimensions): Returns isl_stat.
7084         (extend_schedule_1): Likewise
7085         (extend_schedule): Corresponding changes.
7086         * graphite-optimize-isl.c: Include <isl/constraint.h> and
7087         <isl/union_set.h>.
7088         (getSingleMap): Change return type of isl_stat.
7089         (optimize_isl): Conditionally use
7090         isl_options_set_schedule_serialize_sccs.
7091         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7092         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7094 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
7096         PR target/66956
7097         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7098         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7100 2015-07-21  Richard Biener  <rguenther@suse.de>
7102         PR tree-optimization/66948
7103         * genmatch.c (capture_info::walk_match): Also recurse to
7104         captures.  Properly compute expr state from captures of
7105         captures.
7106         * match.pd: Add single-use guards to
7107         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7109 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
7111         * config/nvptx/mkoffload.c (process): Add static destructor call.
7113 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7115         PR middle-end/66915
7116         * match.pd (A - B -> A + (-B)): Don't allow folding
7117         when type if a fixed-point type.
7119 2015-07-20  DJ Delorie  <dj@redhat.com>
7121         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7122         (iorqi3_real): Likewise for set1.
7124 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
7126         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7127         for !TARGET_64BIT.
7129 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
7131         * graphite-isl-ast-to-gimple.c:
7132         Refactor so that each function can access 'region'. This will help
7133         maintain a parameter rename_map within a region.
7135 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
7137         * config/rs6000/rs6000.md (*lt0_disi): New.
7139 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
7141         PR target/66217
7142         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
7143         "available letters" comment.
7144         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7145         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7146         and_2rld_operand):  Delete.
7147         (and_operand): Adjust.
7148         (rotate_mask_operator): New.
7149         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7150         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7151         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7152         extract_ME): Delete.
7153         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7154         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7155         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7156         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7157         rs6000_emit_2insn_and): New.
7158         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7159         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7160         includes_rldic_lshift_p, includes_rldicr_lshift_p,
7161         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7162         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7163         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7164         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7165         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7166         rs6000_emit_2insn_and): New.
7167         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7168         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7169         handling.
7170         <NOT>: Don't fall through to next case.
7171         <AND>: Handle the various rotate-and-mask cases directly.
7172         <IOR>: Always cost as one insn.
7173         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7174         (and<mode>3): Adjust expander for the new patterns.
7175         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7176         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7177         (*and<mode>3_imm_dot_shifted): New.
7178         (*and<mode>3_mask): Delete, rewrite as ...
7179         (and<mode>3_mask): ... New.
7180         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7181         (andsi3_internal0_nomc): Delete.
7182         (*andsi3_internal6): Delete.
7183         (*and<mode>3_2insn): New.
7184         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7185         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7186         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7187         *insvdi_internal3): Delete.
7188         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7189         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7190         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7191         *ior<mode>_mask): New.
7192         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7193         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7194         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7195         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7196         Delete.
7197         (ashr<mode>3): Delete expander.
7198         (*ashr<mode>3): Rename to ...
7199         (ashr<mode>3): ... This.
7200         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7201         (*rotldi3_internal4, *rotldi3_internal5 and split,
7202         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7203         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7204         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7205         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7206         (splitter for loading a mask): Adjust.
7207         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7209 2015-07-20  Marek Polacek  <polacek@redhat.com>
7211         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7212         output_add_clobbers, output_added_clobbers_hard_reg_p,
7213         gen_rtx_scratch): Remove declarations.
7215 2015-07-20  Marek Polacek  <polacek@redhat.com>
7217         PR c++/55095
7218         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7220 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7222         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7223         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7225 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7227         * combine.c (combine_simplify_rtx): Move simplification step
7228         before various transformations/substitutions.
7230 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
7232         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7233         (struct int_traits): Likewise.
7235 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7237         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7238         function to vmsdbgout_function_decl.
7240 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
7242         PR target/66922
7243         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7244         from misaligned positions.
7245         (ix86_expand_pinsr): Reject insertions to misaligned positions.
7247 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
7249         PR middle-end/46851
7250         PR middle-end/60340
7251         * Makefile.in: Removed omega.o.
7252         * common.opt: Document flag fcheck-data-deps as deprecated.
7253         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7254         its associated params: omega-max-vars, omega-max-geqs,
7255         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7256         omega-max-keys, omega-eliminate-redundant-constraints.
7257         * doc/loop.texi: Remove all the section on Omega.
7258         * graphite-blocking.c: Include missing params.h: it used to be
7259         included through tree-data-ref.h and omega.h.
7260         * graphite-isl-ast-to-gimple.c: Same.
7261         * graphite-optimize-isl.c: Same.
7262         * graphite-sese-to-poly.c: Same.
7263         * graphite.c: Same.
7264         * omega.c: Remove.
7265         * omega.h: Remove.
7266         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7267         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7268         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7269         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7270         * passes.def: Remove pass_check_data_deps.
7271         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7272         (dump_conflict_function): Same.
7273         (dump_subscript): Same.
7274         (print_direction_vector): Same.
7275         (print_dir_vectors): Same.
7276         (print_lambda_vector): Same.
7277         (print_dist_vectors): Same.
7278         (dump_data_dependence_relation): Same.
7279         (dump_data_dependence_relations): Same.
7280         (dump_dist_dir_vectors): Same.
7281         (dump_ddrs): Same.
7282         (init_omega_eq_with_af): Removed.
7283         (omega_extract_distance_vectors): Removed.
7284         (omega_setup_subscript): Removed.
7285         (init_omega_for_ddr_1): Removed.
7286         (init_omega_for_ddr): Removed.
7287         (ddr_consistent_p): Removed.
7288         (compute_affine_dependence): Do not use omega to check data
7289         dependences.
7290         (compute_data_dependences_for_bb): Removed.
7291         (analyze_all_data_dependences): Removed.
7292         (tree_check_data_deps): Removed.
7293         * tree-data-ref.h: Do not include omega.h.
7294         (compute_data_dependences_for_bb): Removed.
7295         (tree_check_data_deps): Removed.
7296         * tree-ssa-loop.c (pass_check_data_deps): Removed.
7297         (make_pass_check_data_deps): Removed.
7298         * tree-ssa-phiopt.c: Include params.h.
7299         * tree-vect-data-refs.c: Same.
7300         * tree-vect-slp.c: Same.
7302 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
7304         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7305         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
7306         (mem->fpreg splitters): Ditto.
7307         (general_operand->nonimmediate_operand splitter): Use explicit modes.
7308         Disable DFmode for TARGET_64BIT.
7310 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
7312         PR target/66906
7313         * config/i386/i386.c (ix86_expand_prologue): Replicate static
7314         chain on the stack.
7316 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
7318         * config/nvptx/mkoffload.c (process): Constify host data.
7319         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7320         Constify host data.
7321         (generate_host_descr_file): Likewise.
7323 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
7324             Sebastian Pop  <s.pop@samsung.com>
7326         PR middle-end/61929
7327         * graphite-dependences.c (add_pdr_constraints): Renamed
7328         pdr->extent to pdr->subscript_sizes.
7329         * graphite-interchange.c (build_linearized_memory_access): Add
7330         back all gcc_assert's that the "isl_int to isl_val conversion"
7331         patch has removed.  Refactored.
7332         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7333         * graphite-poly.c (new_poly_dr): Same.
7334         (free_poly_dr): Same.
7335         * graphite-poly.h (struct poly_dr): Same.
7336         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7337         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7338         * graphite-scop-detection.h: Fix space.
7339         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7340         back all gcc_assert's removed by a previous patch.
7341         (wrap): Remove the_isl_ctx global variable that the same patch has
7342         added.
7343         (build_loop_iteration_domains): Same.
7344         (add_param_constraints): Same.
7345         (pdr_add_data_dimensions): Same.  Refactored.
7346         (build_poly_dr): Renamed extent to subscript_sizes.
7348 2015-07-17  Marek Polacek  <polacek@redhat.com>
7350         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7351         * match.pd: ... here.
7353 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
7355         * config/nvptx/mkoffload.c (process): Constify target data.
7356         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7357         Constify target data.
7358         (generate_target_offloadend_file): Likewise.
7360 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
7362         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7363         to allow renaming of PHI arguments on edges incoming from outer
7364         loop header, add corresponding check before start PHI iterator.
7365         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7366         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7367         with true force_vectorize.  Set-up dominator for outer loop too.
7368         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7369         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7370         was marked with force_vectorize and has restricted cfg.
7371         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7372         inner loop.
7373         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7374         do peeling for outer loops.
7376 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
7377             Matthias Klose  <doko@ubuntu.com>
7379         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7380         build-sysroot, sysroot from the `Miscenalleous configure options' to
7381         the `Directories' section and strip trailing `/' from with_sysroot.
7382         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7383         * configure: Regenerated.
7385 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
7387         PR target/66824
7388         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7389         (TARGET_HARD_DF_REGS): Ditto.
7390         (TARGET_HARD_XF_REGS): Ditto.
7391         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7392         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7393         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7394         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7395         (*movsf_internal): Add alternatives 16 and 17. Enable
7396         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7398 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
7400         PR rtl-optimization/66891
7401         * calls.c (expand_call): Wrap precompute_register_parameters with
7402         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7404 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
7406         * config/nvptx/mkoffload.c (process): Constify mapping variables.
7407         Define target data struct and initialize it.
7409 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
7411         PR rtl-optimization/66626
7412         * ira.h (emit-rtl.h): Include.
7413         (non_spilled_static_chain_regno_p): New.
7414         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7415         unless it is non spilled static chain pseudo.
7416         (assign_hard_rego): Spill memory profitable allocno unless it is
7417         non spilled static chain pseudo.
7418         (allocno_spill_priority_compare): Put non spilled static chain
7419         pseudo at the end of sorted array.
7420         (improve_allocation): Do nothing if we have static chain and
7421         non-local goto.
7422         (allocno__priority_compare_func): Put non spilled static chain
7423         pseudo at the beginning of sorted array.
7424         (move_spill_restore): Ignore non spilled static chain pseudo.
7425         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7426         to non spilled static chain pseudo.
7427         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
7428         pseudo at the beginning of sorted array.
7429         (spill_for): Spill non spilled static chain pseudo last.
7430         * lra-constraints.c (lra_constraints): Remove static chain pseudo
7431         check for equivalence.
7433 2015-07-16  Martin Liska  <mliska@suse.cz>
7435         PR ipa/66896.
7436         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
7437         dst_ctx if it does not exist.
7439 2015-07-16  Martin Liska  <mliska@suse.cz>
7441         * hash-set.h (remove): New function.
7442         (iterator): New iteration class for hash_set.
7444 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7446         * genattrtab.c (make_canonical): Add a file_location parameter.
7447         Use fatal_at rather than fatal.
7448         (get_attr_value): Likewise.  Update call to make_canonical.
7449         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
7450         (make_internal_attr): Update calls accordingly.
7452 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7454         * read-md.h (message_with_line, error_with_line): Delete.
7455         * read-md.c (message_with_line, error_with_line): Delete.
7456         * gensupport.h: Include read-md.h.
7457         (md_rtx_info): New structure.
7458         (read_md_rtx): Use it.  Return a bool success value.
7459         * gensupport.c (read_md_rtx): Likewise.
7460         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
7461         (main): Update after interface changes.
7462         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
7463         (main): Update after interface changes.
7464         * genattrtab.c (insn_code_number): Delete.
7465         (optimize_attrs): Add a max_insn_code parameter and use it instead
7466         of insn_code_number.
7467         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
7468         Use *_at rather than *_with_line functions.
7469         (gen_insn): Likewise.
7470         (gen_delay): Likewise.
7471         (gen_insn_reserv): Likewise.
7472         (gen_bypass): Take an md_rtx_info rather than an rtx.
7473         (main): Update after interface changes.  Use a local max_insn_code
7474         variable instead of insn_code_number.
7475         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7476         an rtx.  Use fatal_at rather than fatal.
7477         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7478         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7479         (gen_absence_set, gen_final_absence_set, gen_automaton)
7480         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7481         (main): Update after interface changes.
7482         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7483         and code number.
7484         (main): Update after interface changes.
7485         * genconditions.c (main): Use new read_md_rtx interface.
7486         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7487         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7488         (main): Update after interface changes.
7489         * genemit.c (insn_code_number, insn_index_number): Delete.
7490         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7491         Use fatal_at rather than fatal.
7492         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
7493         rather than fatal.
7494         (gen_split): Likewise.
7495         (main): Update after interface changes.
7496         * genextract.c (line_no): Delete.
7497         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7498         Update call to walk_rtx.
7499         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
7500         rather than message_with_line.
7501         (walk_rtx): Add an md_rtx_info argument.  Update call to
7502         VEC_safe_set_locstr.
7503         (main): Update after interface changes.
7504         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
7505         and lineno.  Use error_at rather than separate message_with_line
7506         calls and have_error assignments.
7507         (main): Update after interface changes.
7508         * genmddump.c (main): Use new read_md_rtx interface.
7509         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
7510         (main): Update after interface changes.
7511         * genoutput.c (next_code_number): Delete.
7512         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7513         (gen_peephole, gen_expand, gen_split): Likewise.
7514         (note_constraint): Likewise.  Use *_at rather than *_with_line
7515         functions.
7516         (main): Update after interface changes.
7517         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
7518         rtx and lineno.
7519         (main): Update after interface changes.
7520         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
7521         than an rtx and lineno.
7522         (process_define_constraint): Likewise.
7523         (process_define_register_constraint): Likewise.
7524         (main): Update after interface changes.
7525         * genrecog.c (next_insn_code, pattern_lineno): Delete.
7526         (validate_pattern): Replace top-level rtx with an md_rtx_info.
7527         Use *_at rather than *_with_line functions.
7528         (match_pattern_2): Likewise.
7529         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7530         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7531         Use *_at rather than *_with_line functions.
7532         * gentarget-def.c (add_insn): New function.
7533         (main): Use it.  Use new read_md_rtx interface.
7535 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7537         * gensupport.h (compute_test_codes): Take a file_location rather
7538         than a line number.
7539         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
7540         rather than *_with_line functions.
7541         (process_define_predicate): Update call to compute_test_codes.
7542         * genpreds.c (validate_exp): Take a file_location rather than a
7543         line number.  Use *_at functions rather than *_with_line functions.
7544         (process_define_predicate): Update call to validate_exp.
7545         (constraint_data): Replace lineno field with a file_location.
7546         (add_constraint): Take a file_location rather than a line number.
7547         Use *_at functions rather than *_with_line functions.  Fix error
7548         message for address constraints.  Update after changes to
7549         validate_exp, constraint_data and compute_test_codes.
7550         (process_define_constraint): Update accordingly.
7551         (process_define_register_constraint): Likewise.
7553 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7555         * genoutput.c (data): Use a file_location to record the source
7556         position.
7557         (nothing): Delete.
7558         (idata, idata_end): Remove initialization.
7559         (constraint_data): Replace lineno with a file_location.
7560         (output_insn_data): Update after changes to data.
7561         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7562         (scan_operands): Likewise, using *_at rather than *_with_line
7563         functions.
7564         (process_template): Likewise.
7565         (validate_insn_alternatives): Likewise.
7566         (validate_insn_operands): Likewise.
7567         (validate_optab_operands): Likewise.
7568         (init_insn_for_nothing): Initialize idata and idata_end.
7569         (note_constraint): Update after changes to constraint_data,
7570         using at rather than with_line functions.
7571         (mdep_constraint_len): Take a file_location rather than a
7572         line number.  Use at rather than with_line functions.
7574 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7576         * read-md.h (fatal_at): Declare.
7577         * read-md.c (fatal_at): New function.
7578         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7579         to record the source position.
7580         (check_attr_test): Take a file_location instead of a line number.
7581         Use fatal_at instead of fatal.
7582         (check_attr_value): Update after above changes, using "at"
7583         rather than "with_line" reporting functions.
7584         (convert_set_attr_alternative): Likewise.
7585         (gen_attr): Likewise.
7586         (check_defs): Likewise.  Don't assign to read_md_filename.
7587         (gen_insn): Update initialization after above changes.
7588         (gen_delay): Likewise.
7589         (write_insn_cases): Print the filename for a define_peephole.
7590         (gen_insn_reserv): Take a line number as argument and update
7591         the call to check_attr_test.
7592         (main): Pass a line number to gen_insn_reserv.
7594 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7596         * read-md.h (file_location): New structure.
7597         (directive_handler_t): Take a file_location rather than a line number.
7598         (message_at, error_at): Declare.
7599         (read_skip_construct): Delete.
7600         * read-md.c (message_with_line_1): Replace with...
7601         (message_at_1): ...this new function.
7602         (message_at, error_at): New functions.
7603         (message_with_line, error_with_line): Update to use message_at_1.
7604         (handle_enum): Take a file_location rather than a line number
7605         and use error_at for error reporting.
7606         (handle_include): Likewise.
7607         (read_skip_construct): Likewise.  Make static.
7608         (handle_file): Update after above changes.  Pass a file_location
7609         rather than a line number to handle_directive.
7610         * gensupport.c (queue_elem): Replace separate filename and lineno
7611         with a file_location.
7612         (queue_pattern): Replace filename and lineno arguments with a
7613         file_location.  Update after change to queue_elem.
7614         (process_define_predicate): Replace lineno argument with a
7615         file_location and use error_at for error reporting.  Update
7616         after above changes.
7617         (process_rtx): Likewise.
7618         (subst_pattern_match): Likewise.
7619         (get_alternatives_number): Likewise.
7620         (alter_predicate_for_insn): Likewise.
7621         (rtx_handle_directive): Likewise.
7622         (is_predicable): Update after above changes, using error_at rather
7623         than error_with_line.
7624         (has_subst_attribute): Likewise.
7625         (identify_predicable_attribute): Likewise.
7626         (alter_attrs_for_subst_insn): Likewise.
7627         (process_one_cond_exec): Likewise.
7628         (process_substs_on_one_elem): Likewise.
7629         (process_define_subst): Likewise.
7630         (check_define_attr_duplicates): Likewise.
7631         (read_md_rtx): Update after change to queue_elem.
7633 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7635         * genoutput.c (next_index_number): Delete.
7636         (data): Remove index_number.
7637         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7638         (main): Remove manipulation of next_index_number.
7640 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7642         * genattrtab.c (check_attr_value): Remove handling of null attrs.
7643         (make_canonical): Likewise.
7645 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
7647         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7648         instead of adjust_address_nv.
7649         (restore_stack_nonlocal): Likewise.
7650         (nonlocal_goto): Likewise.
7652 2015-07-16  Tom de Vries  <tom@codesourcery.com>
7654         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7655         not have a corresponding loop header phi.
7657 2015-07-16  Tom de Vries  <tom@codesourcery.com>
7659         * tree-parloops.c (create_loads_for_reductions): Handle case that
7660         reduction is unused.
7662 2015-07-16  Richard Biener  <rguenther@suse.de>
7664         PR tree-optimization/66894
7665         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7666         about deriving NE_EXPR from truncated values.
7668 2015-07-16  Martin Liska  <mliska@suse.cz>
7670         * alloc-pool.h
7671         (object_allocator): Add new class.
7672         (pool_allocator::initialize): Use the underlying class.
7673         (pool_allocator::allocate): Likewise.
7674         (pool_allocator::remove): Likewise.
7675         (operator new): A new generic allocator.
7676         * asan.c (struct asan_mem_ref): Remove unused members.
7677         (asan_mem_ref_new): Replace new operator with
7678         object_allocator::allocate.
7679         (free_mem_ref_resources): Change deallocation.
7680         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7681         with object_allocator.
7682         * config/sh/sh.c (add_constant): Replace new operator with
7683         object_allocator::allocate.
7684         (sh_reorg): Change call to a release method.
7685         * cselib.c (struct elt_list): Remove unused members.
7686         (new_elt_list): Replace new operator with
7687         object_allocator::allocate.
7688         (new_elt_loc_list): Likewise.
7689         (new_cselib_val): Likewise.
7690         (unchain_one_elt_list): Change delete operator with remove method.
7691         (unchain_one_elt_loc_list): Likewise.
7692         (unchain_one_value): Likewise.
7693         (cselib_finish): Release newly added static allocators.
7694         * cselib.h (struct cselib_val): Remove unused members.
7695         (struct elt_loc_list): Likewise.
7696         * df-problems.c (df_chain_alloc): Replace pool_allocator with
7697         object_allocator.
7698         * df-scan.c (struct df_scan_problem_data): Likewise.
7699         (df_scan_alloc): Likewise.
7700         * df.h (struct dataflow): Likewise.
7701         * dse.c (struct read_info_type): Likewise.
7702         (struct insn_info_type): Likewise.
7703         (struct dse_bb_info_type): Likewise.
7704         (struct group_info): Likewise.
7705         (struct deferred_change): Likewise.
7706         (get_group_info): Likewise.
7707         (delete_dead_store_insn): Likewise.
7708         (free_read_records): Likewise.
7709         (replace_read): Likewise.
7710         (check_mem_read_rtx): Likewise.
7711         (scan_insn): Likewise.
7712         (dse_step1): Likewise.
7713         (dse_step7): Likewise.
7714         * et-forest.c (struct et_occ): Remove unused members.
7715         (et_new_occ): Use allocate instead of new operator.
7716         (et_new_tree): Likewise.
7717         (et_free_tree): Call release method explicitly.
7718         (et_free_tree_force): Likewise.
7719         (et_free_pools): Likewise.
7720         (et_split): Use remove instead of delete operator.
7721         * et-forest.h (struct et_node): Remove unused members.
7722         * ipa-cp.c: Change pool_allocator to object_allocator.
7723         * ipa-inline-analysis.c: Likewise.
7724         * ipa-profile.c: Likewise.
7725         * ipa-prop.c: Likewise.
7726         * ipa-prop.h: Likewise.
7727         * ira-build.c (initiate_cost_vectors): Cast return value.
7728         (ira_allocate_cost_vector): Likewise.
7729         * ira-color.c (struct update_cost_record): Remove unused members.
7730         * lra-int.h (struct lra_live_range): Likewise.
7731         (struct lra_copy): Likewise.
7732         (struct lra_insn_reg): Likewise.
7733         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7734         * lra.c (new_insn_reg): Replace new operator with allocate method.
7735         (free_insn_regs): Same for operator delete.
7736         (finish_insn_regs): Release new static allocator.
7737         (finish_insn_recog_data): Likewise.
7738         (lra_free_copies): Replace delete operator with remove method.
7739         (lra_create_copy): Replace operator new with allocate method.
7740         (invalidate_insn_data_regno_info): Same for remove method.
7741         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7742         (free_debug_insn_changes): Replace delete operator with remove method.
7743         (replace_oldest_value_reg): Replace operator new with allocate method.
7744         (pass_cprop_hardreg::execute): Release new static variable.
7745         * sched-deps.c (sched_deps_init): Change pool_allocator to
7746         object_allocator.
7747         * sel-sched-ir.c: Likewise.
7748         * sel-sched-ir.h: Likewise.
7749         * stmt.c (expand_case): Likewise.
7750         (expand_sjlj_dispatch_table): Likewise.
7751         * tree-sra.c (struct access): Remove unused members.
7752         (struct assign_link): Likewise.
7753         (sra_deinitialize): Release newly added static pools.
7754         (create_access_1):Replace operator new with allocate method.
7755         (build_accesses_from_assign): Likewise.
7756         (create_artificial_child_access): Likewise.
7757         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
7758         pool_allocator to object_allocator.
7759         * tree-ssa-pre.c: Likewise.
7760         * tree-ssa-reassoc.c: Likewise.
7761         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7762         * tree-ssa-strlen.c: Likewise.
7763         * tree-ssa-structalias.c: Likewise.
7764         * var-tracking.c (onepart_pool_allocate): New function.
7765         (unshare_variable): Use the newly added function.
7766         (variable_merge_over_cur): Likewise.
7767         (variable_from_dropped): Likewise.
7768         (variable_was_changed): Likewise.
7769         (set_slot_part): Likewise.
7770         (emit_notes_for_differences_1): Likewise.
7771         (vt_finalize): Release newly added static pools.
7773 2015-07-16  Martin Jambor  <mjambor@suse.cz>
7775         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
7776         all uses.  Fix two typos in its general comment.
7777         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
7779 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
7781         * config/i386/linux-common.h (LINK_MPX): New.
7782         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
7783         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
7784         indicating '-z bndplt' support by linker.
7785         * configure: Regenerate.
7786         * config.in: Regenerate.
7788 2015-07-16  Richard Biener  <rguenther@suse.de>
7790         * fold-const.c (fold_widened_comparison): Remove.
7791         (fold_sign_changed_comparison): Likewise.
7792         (fold_comparison): Move widened and sign-changed comparison
7793         simplification ...
7794         * match.pd: ... to patterns here.
7795         * generic-match-head.c: Include target.h.
7796         * gimple-match-head.c: Likewise.
7798 2015-07-16  Richard Biener  <rguenther@suse.de>
7800         * tree-ssa-dom.c (dom_valueize): New function.
7801         (record_temporary_equivalences): Also record equivalences
7802         for dominating stmts that have uses of equivalences we are
7803         about to record.
7805 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
7807         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
7808         add_autoinc_candidates.
7809         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
7810         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
7811         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
7812         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7813         Call new function.
7814         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7815         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7816         Remove parameter struct iv*.  Call add_autoinc_candidates here.
7817         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7818         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7819         Call new function.
7820         (find_iv_candidates): Call new functions.
7822 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
7824         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7825         uninitialized-variable warning.
7827 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
7829         PR target/65249
7830         * config/sh/sh.md (movdi): Split simple reg move to two movsi
7831         when the destination is R0.
7833 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
7835         PR target/66866
7836         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7837         * config/i386/i386.c (ix86_expand_pextr): New function.
7838         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
7839         for non-lowpart subregs.
7840         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7841         (insv<mode>): Use SWI248 mode iterator.
7842         (insv<mode>_1): Ditto.
7844 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7845             Sebastian Pop  <s.pop@samsung.com>
7847         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7848         iterator to use_stmt.
7850 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7851             Sebastian Pop <s.pop@samsung.com>
7853         * graphite-scop-detection.c (build_scops_1): Discard scops for
7854         which entry==exit.
7856 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7857             Sebastian Pop <s.pop@samsung.com>
7859         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7860         case of a return statement in scop.
7862 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7863             Sebastian Pop <s.pop@samsung.com>
7865         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7866         INTEGER_TYPE parameters.
7867         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7868         VECTOR_CST in scan_tree_for_params.
7869         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7871 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
7873         * gimple-pretty-print.h: Don't include pretty-print.h.
7874         * tree-streamer.h: Don't include lto-streamer.h.
7875         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7876         * gimple-streamer-in.c: Remove redundant includes.
7877         * gimple-streamer-out.c: Likewise.
7878         * ipa-devirt.c: Likewise.
7879         * ipa-icf.c: Likewise.
7880         * ipa-inline-analysis.c: Likewise.
7881         * ipa-polymorphic-call.c: Likewise.
7882         * ipa-profile.c: Likewise.
7883         * ipa-prop.c: Likewise.
7884         * ipa-pure-const.c: Likewise.
7885         * lto-cgraph.c: Likewise.
7886         * lto-streamer-in.c: Likewise.
7887         * lto-streamer-out.c: Likewise.
7888         * lto-streamer.c: Likewise.
7889         * tree-streamer-in.c: Likewise.
7890         * tree-streamer-out.c: Likewise.
7891         * tree-streamer.c: Likewise.
7893 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
7895         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7896         include input.h.
7897         * opts.c: Remove multiline #include comment.
7899 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
7901         * config/nvptx/mkoffload.c (process): Add C++ protection to
7902         emitted code.
7904 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7906         PR target/66854
7907         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7908         null before IEEE 128-bit floating point support patch.
7910 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7912         * simplify-rtx.c (simplify_ternary_operation): Add simplification
7913         for (!c) != {0,...,0} ? a : b for vector modes.
7915 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
7916             Martin Jambor  <mjambor@suse.cz>
7918         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7919         struct func_body_info* instead of struct ipa_node_params*, expecting
7920         fbi->info to be filled in.  Replace throughout.  Adjust call to
7921         ipa_load_from_parm_agg.
7922         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7923         instead of struct ipa_node_params*.  Adjust calls to other functions
7924         so that they pass either fbi or fbi->info.
7925         (set_switch_stmt_execution_predicate): Likewise.
7926         (will_be_nonconstant_predicate): Likewise.
7927         (compute_bb_predicates): Likewise.
7928         (estimate_function_body_sizes): Move asserts earlier.  Fill in
7929         struct func_body_info, replace parms_info with fbi.info.  Adjust
7930         calls to functions that now accept struct func_body_info.
7931         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7932         (struct func_body_info): Likewise.
7933         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7934         remove static.  Adjust callers.
7935         (ipa_load_from_parm_agg): Remove.
7936         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7937         (func_body_info): Likewise.
7938         (ipa_load_from_parm_agg): Adjust prototype.
7940 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7942         * gensupport.c (rtx_handle_directive): Adjust.
7943         * read-rtl.c (apply_iterators): Take vector to add rtxs to
7944         instead of expr list rtx.
7945         (add_define_attr_for_define_subst): Likewise.
7946         (add_define_subst_attr): Likewise.
7947         (read_subst_mapping): Likewise.
7948         (read_rtx): Likewise.
7949         * rtl.h (read_rtx): Adjust.
7951 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7953         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7955 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
7957         PR target/58066
7958         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7959         (*tls_local_dynamic_base_64_<mode>): Ditto.
7960         (*tls_local_dynamic_base_64_largepic): Ditto.
7961         (tls_global_dynamic_64_<mode>): Update expander pattern.
7962         (tls_local_dynamic_base_64_<mode>): Ditto.
7964 2015-07-15  Richard Biener  <rguenther@suse.de>
7966         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7967         and bool_var == 1 -> bool_var simplifications ...
7968         * match.pd: ... to patterns here.  Factor out negate_expr_p
7969         cases from the A - B -> A + (-B) patterns as negate_expr_p
7970         predicate and add a -(A + B) -> (-B) - A pattern.
7972 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
7974         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7976 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
7977             Robert Suchanek  <robert.suchanek@imgtec.com>
7979         * config/mips/mips.c (mips_int_mask): New enum.
7980         (mips_shadow_set): Likewise.
7981         (int_mask): New variable.
7982         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7983         (machine_function): Add int_mask and use_shadow_register_set.
7984         (mips_attribute_table): Add attribute handlers for interrupt and
7985         use_shadow_register_set.
7986         (mips_interrupt_mask): New static function.
7987         (mips_handle_interrupt_attr): Likewise.
7988         (mips_handle_use_shadow_register_set_attr): Likewise.
7989         (mips_use_shadow_register_set): Change return type to enum
7990         mips_shadow_set.  Add argument handling for use_shadow_register_set
7991         attribute.
7992         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7993         compare with mips_shadow_set enum.
7994         (mips_compute_frame_info): Add interrupt mask and
7995         use_shadow_register_set to per-function information structure.
7996         Add a stack slot for EPC unconditionally.
7997         (mips_expand_prologue): Compare use_shadow_register_set value
7998         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
7999         masked interrupt register but in EIC mode use K0 and save Cause in K0.
8000         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
8001         copying the stack pointer from the shadow register set.
8002         * config/mips/mips.h (SR_IM0): New define.
8003         * config/mips/mips.md (mips_rdpgpr): Rename to...
8004         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
8005         * doc/extend.texi (Declaring Attributes of Functions): Document
8006         optional arguments for interrupt and use_shadow_register_set
8007         attributes.
8009 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
8011         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8012         interrupt attribute.
8013         (mips_expand_prologue): Disable the floating point unit in an ISR.
8014         * config/mips/mips.h (SR_COP1): New define.
8016 2015-07-15  Richard Biener  <rguenther@suse.de>
8018         * genmatch.c (parser::peek, parser::peek_ident): Add argument
8019         to tell how many tokens to peek ahead (default 1).
8020         (parser::eat_token, parser::eat_ident): Return token consumed.
8021         (parser::parse_result): Parse new switch statement.
8022         * match.pd: Use case statements where appropriate.
8024 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
8026         PR rtl-optimization/58066
8027         * calls.c (expand_call): Precompute register parameters before stack
8028         alignment is performed.
8030 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
8032         PR rtl-optimization/66838
8033         * postreload.c (reload_cse_move2add): Also process
8034         CALL_INSN_FUNCTION_USAGE when resetting information of
8035         call-clobbered registers.
8037 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8038             Cesar Philippidis  <cesar@codesourcery.com>
8039             Chung-Lin Tang  <cltang@codesourcery.com>
8041         * config/nios2/constraints.md (U, v): New constraints.
8042         * config/nios2/predicates.md (rdprs_dcache_operand): New.
8043         (ldstex_memory_operand): New.
8044         * config/nios2/sync.md: New file.
8045         * config/nios2/nios2.md (unspecv): Add new builtin function
8046         UNSPECV codes.
8047         (rdprs, flushd, flushda, wrpie, eni): New patterns.
8048         (top-level): Include sync.md.
8049         * config/nios2/nios2.c (N2_FTYPES): Add function types for
8050         new builtins.
8051         (N2_BUILTINS): Add arch field setting, add new builtins.
8052         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8053         for arch field.
8054         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8055         Also handle ldex/stex/ldsex/stsex builtins.
8056         (nios2_expand_rdprs_builtin): New function.
8057         (nios2_expand_cache_builtin): New function.
8058         (nios2_expand_wrpie_builtin): New function.
8059         (nios2_expand_eni_builtin): New function.
8060         (nios2_expand_builtin): Add arch field handling and new builtin
8061         cases.
8062         * doc/extend.texi (Altera Nios II Built-in Functions): Document
8063         new builtins.
8064         * doc/md.texi (Machine Constraints): Document U and v constraints.
8066 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8067             Cesar Philippidis  <cesar@codesourcery.com>
8068             Chung-Lin Tang  <cltang@codesourcery.com>
8070         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8071         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8072         callee_save_reg_size and uses_anonymous_args fields.
8073         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8074         (nios2_create_cfa_notes): New function.
8075         (nios2_adjust_stack): New function for adjusting stack.
8076         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8077         Use nios2_adjust_stack.
8078         (nios2_expand_epilogue): Likewise.
8079         (nios2_expand_return): New function.
8080         (nios2_can_use_return_insn): Update for CDX pop.n usage.
8081         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8082         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8083         * config/nios2/nios2.md (return): Use nios2_expand_return.
8085 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8086             Cesar Philippidis  <cesar@codesourcery.com>
8087             Chung-Lin Tang  <cltang@codesourcery.com>
8089         * config/nios2/predicates.md (pop_operation): New.
8090         (ldwm_operation, stwm_operation): New.
8091         (nios2_hard_register_operand): New.
8092         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8093         (ldstwm_operation_p): Declare.
8094         (gen_ldstwm_peep): Declare.
8095         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8096         (base_reg_adjustment_p): New.
8097         (pop_operation_p): New.
8098         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8099         (nios2_ldstwm_regset_p): New.
8100         (ldstwm_operation_p): New.
8101         (gen_ldst): New.
8102         (nios2_ldst_parallel): New.
8103         (struct ldswm_operand): Declare.
8104         (compare_ldstwm_operands): New.
8105         (can_use_cdx_ldstw): New.
8106         (gen_ldstwm_peep): New.
8107         * config/nios2/nios2-ldstwm.sml: New.
8108         * config/nios2/nios2.md: Include ldstwm.md.
8109         * config/nios2/ldstwm.md: Generated.
8111 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8112             Cesar Philippidis  <cesar@codesourcery.com>
8113             Chung-Lin Tang  <cltang@codesourcery.com>
8115         * config/nios2/nios2.h (LABEL_ALIGN): Define.
8116         (REG_ALLOC_ORDER): Define.
8117         (ADJUST_REG_ALLOC_ORDER): Define.
8118         (HONOR_REG_ALLOC_ORDER): Define.
8119         (CDX_REG_P): Define.
8120         (ANDCLEAR_INT): Define.
8121         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8122         (nios2_label_align): Declare.
8123         (nios2_cdx_narrow_form_p): Declare.
8124         (nios2_adjust_reg_alloc_order): Declare.
8125         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8126         operation.
8127         (nios2_large_unspec_reloc_p): New function, split from...
8128         (nios2_legitimate_pic_operand_p): ...here.
8129         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8130         (nios2_print_operand_punct_valid_p): New.
8131         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
8132         (split_mem_address): New.
8133         (split_alu_insn): New.
8134         (cdxreg): New.
8135         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8136         (enum nios2_add_insn_kind): New.
8137         (nios2_add_insn_names, nios2_add_insn_narrow): New.
8138         (nios2_add_insn_classify): New.
8139         (nios2_add_insn_asm): New.
8140         (nios2_cdx_narrow_form_p): New.
8141         (label_align, min_labelno, max_labelno): New.
8142         (nios2_reorg): New.
8143         (nios2_label_align): New.
8144         (nios2_adjust_reg_alloc_order): New.
8145         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8146         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8147         * config/nios2/constraints.md (P): New constraint.
8148         * config/nios2/predicates.md (const_and_operand): New.
8149         (and_operand): New.
8150         (stack_memory_operand): New.
8151         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8152         (length): Update to use nios2_cdx_narrow_form_p().
8153         (type): Add new insn type values.
8154         (control, alu, st, ld, shift): Update insn reservations with
8155         new insn type values.
8156         (*high, *lo_sum): Define new insn patterns for constant generation.
8157         (movqi_internal, movhi_internal, movsi_internal): Reduce
8158         alternatives, update asm template to handle CDX variants, update
8159         type attributes.
8160         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8161         template, update type attributes.
8162         (extendhisi2, extendqi<mode>2): Likewise.
8163         (addsi3): Change to use function for asm string.
8164         (subsi3): Add CDX notation to asm template, update type attributes.
8165         (negsi3, one_cmplsi3): Likewise.
8166         (andsi3): New pattern, specialized from logical patterns.
8167         (<code>si3): Remove and case, combine alternatives, update asm
8168         template.
8169         (<shift_op>si3): Add CDX notation, update type attributes.
8170         (rotrsi3): Update type attribute.
8171         (*merge, extzv, insv): New insn patterns.
8172         (return): Change to define_expand.
8173         (simple_return): Add CDX notation, update type attributes.
8174         (indirect_jump): Add CDX notation.
8175         (jump): Update asm cases, update length attribute expression.
8176         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8177         (nios2_cbranch): Update asm cases and length attribute expression
8178         to handle CDX variants.
8179         (nios2_cmp<code>): Update asm template.
8180         (nop): Add CDX notation, update type attributes.
8181         (trap): Add CDX notation.
8182         (ctrapsi4): Update asm cases and length attribute expression to
8183         handle CDX variant.
8184         * doc/md.texi (Machine Constraints): Document P constraint.
8186 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8187             Cesar Philippidis  <cesar@codesourcery.com>
8188             Chung-Lin Tang  <cltang@codesourcery.com>
8190         * config/nios2/nios2.h (SMALL_INT12): New macro.
8191         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8192         (nios2_valid_addr_expr_p): Use it.
8193         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8194         with implicit "io" instructions on R2.
8195         * config/nios2/constraints.md (w): New constraint.
8196         * config/nios2/predicates.md (ldstio_memory_operand): New.
8197         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8198         operand predicate and constraint.
8199         (ld<bh>io_signed, st<bhw>io>): Likewise.
8200         * doc/md.texi (Machine Constraints): Document w constraint.
8202 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8203             Cesar Philippidis  <cesar@codesourcery.com>
8204             Chung-Lin Tang  <cltang@codesourcery.com>
8206         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8207         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8208         Nios II architecture level.
8209         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8210         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8211         (OPTION_DEFAULT_SPECS): Define.
8212         (ASM_SPEC): Add -march= spec strings.
8213         * config/nios2/nios2.c (nios2_option_override): Check for
8214         conflicts involving new options.
8215         * config.gcc (nios2*-*-*): Support --with-arch=.
8216         * doc/invoke.texi (Option Summary, Nios II Options): Document
8217         -march=, -mbmx, and -mcdx.
8219 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
8221         PR rtl-optimization/66626
8222         * lra-constraints.c (lra_constraints): Prevent equivalence
8223         substitution for static chain pseudo in functions with nonlocal
8224         goto.
8226 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8228         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8229         (nios2_emit_stack_limit_check): Add size parameter.  Handle
8230         -fstack-limit-symbol as well as -fstack-limit-register.
8231         (nios2_expand_prologue): Emit only a single stack limit check,
8232         even if multiple stack adjustments are required.
8233         (nios2_option_override): Diagnose unsupported combination of -fpic
8234         and -stack-limit-symbol.
8236 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
8238         * Makefile.in (top_srcdir): New.
8239         * configure.ac: Use AM_ZLIB.
8240         * configure: Regeneated.
8242 2015-07-14  Matthias Klose  <doko@ubuntu.com>
8244         PR target/66840
8245         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8247 2015-07-14  Richard Biener  <rguenther@suse.de>
8249         PR tree-optimization/66863
8250         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8251         what we record for conversion use stmt lhs inequalities.
8253 2015-07-14  Richard Biener  <rguenther@suse.de>
8255         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8256         (decision_tree::gen_gimple): Likewise.
8258 2015-07-14  Tom de Vries  <tom@codesourcery.com>
8260         * gcc.c (greater_than_spec_func): Declare forward.
8261         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8262         -ftree-parallelize-loops={0,1}.
8263         (static_spec_functions): Add greater_than_spec_func function with name
8264         "gt".
8265         (greater_than_spec_func): New function.
8267 2015-07-14  Richard Biener  <rguenther@suse.de>
8269         * tree-ssa-dom.c (record_temporary_equivalences): Merge
8270         wideing type conversion case from record_equivalences_from_incoming_edge
8271         and use record_equality to record equivalences.
8272         (record_equivalences_from_incoming_edge): Call
8273         record_temporary_equivalences.
8275 2015-07-14  Richard Biener  <rguenther@suse.de>
8277         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8278         (struct if_expr): New.
8279         (struct with_expr): Likewise.
8280         (is_a_helper): Add helpers for if_expr and with_expr.
8281         (struct simplify): Add simplify_kind enum and member.  Remove
8282         ifexpr_vec member.
8283         (simplify::simplify): Adjust.
8284         (lower_commutative): Adjust.
8285         (lower_opt_convert): Likewise.
8286         (lower_cond): Likewise.
8287         (replace_id): Handle with_expr and if_expr.
8288         (lower_for): Adjust.
8289         (dt_simplify::gen_1): New recursive worker, split out from ...
8290         (dt_simplify::gen): ... here.  Deal with if and with expansion
8291         recursively.
8292         (capture_info::capture_info): Take context argument
8293         (capture_info::walk_result): Only analyze specific result.
8294         (parser::parse_result): New function.
8295         (parser::parse_simplify): Adjust to parse ifs with then end
8296         else case.
8297         (parser::parse_if): Simplify.
8298         (parser::parse_pattern): Pass down simplify kind.
8299         * match.pd: Convert if structure to new syntax.
8301 2015-07-13  Marek Polacek  <polacek@redhat.com>
8303         * rtl.c (rtx_equal_p_cb): Fix typo.
8305 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
8307         * omega.h: Don't include config.h, don't include params.h again if
8308         omega.h has already been included.
8309         * graphite-poly.h: Include sese.h.
8310         * graphite.c: Don't include sese.h, remove needless includes and
8311         minimize includes outside #ifdef HAVE_isl block.
8312         * graphite-blocking.c: Don't include sese.h, remove needless includes,
8313         and wrap entire file in #ifdef HAVE_isl
8314         * graphite-dependences.c: Likewise.
8315         * graphite-interchange.c: Likewise.
8316         * graphite-isl-ast-to-gimple.c: Likewise.
8317         * graphite-optimize-isl.c: Likewise.
8318         * graphite-poly.c: Likewise.
8319         * graphite-scop-detection.c: Likewise.
8320         * graphite-sese-to-poly.c: Likewise.
8322 2015-07-13  Tom de Vries  <tom@codesourcery.com>
8324         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8326 2015-07-13  Renlin Li  <renlin.li@arm.com>
8328         PR rtl/66556
8329         * simplify-rtx.c (simplify_const_relational_operation): Add
8330         side_effects_p checks.
8332 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
8334         * bitmap.h: Fix double word typos.
8335         * builtins.c: Same.
8336         * calls.c: Same.
8337         * cfgloopmanip.c: Same.
8338         * cgraph.c: Same.
8339         * cgraph.h: Same.
8340         * cgraphclones.c: Same.
8341         * combine.c: Same.
8342         * config/aarch64/aarch64-protos.h: Same.
8343         * config/aarch64/aarch64.c: Same.
8344         * config/aarch64/aarch64.md: Same.
8345         * config/arm/arm.md: Same.
8346         * config/arm/arm1020e.md: Same.
8347         * config/arm/arm1026ejs.md: Same.
8348         * config/arm/arm926ejs.md: Same.
8349         * config/arm/fa526.md: Same.
8350         * config/arm/fa606te.md: Same.
8351         * config/arm/fa626te.md: Same.
8352         * config/arm/fa726te.md: Same.
8353         * config/arm/fmp626.md: Same.
8354         * config/darwin.c: Same.
8355         * config/epiphany/epiphany.c: Same.
8356         * config/frv/frv.c: Same.
8357         * config/ft32/ft32.c: Same.
8358         * config/gnu-user.h: Same.
8359         * config/h8300/constraints.md: Same.
8360         * config/i386/i386.c: Same.
8361         * config/i386/i386.md: Same.
8362         * config/iq2000/iq2000.md: Same.
8363         * config/mips/mips.c: Same.
8364         * config/mmix/mmix.md: Same.
8365         * config/moxie/moxie.c: Same.
8366         * config/nds32/nds32.md: Same.
8367         * config/pa/pa.h: Same.
8368         * config/rs6000/aix.h: Same.
8369         * config/rs6000/rs6000.h: Same.
8370         * config/sh/sh.c: Same.
8371         * config/tilegx/tilegx.md: Same.
8372         * config/tilepro/gen-mul-tables.cc: Same.
8373         * cse.c: Same.
8374         * dbxout.c: Same.
8375         * doc/invoke.texi: Same.
8376         * dse.c: Same.
8377         * dwarf2out.c: Same.
8378         * final.c: Same.
8379         * gcc.c: Same.
8380         * genmatch.c: Same.
8381         * gimplify.c: Same.
8382         * hash-table.h: Same.
8383         * internal-fn.c: Same.
8384         * ipa-cp.c: Same.
8385         * ipa-devirt.c: Same.
8386         * ipa-icf.c: Same.
8387         * ipa-icf.h: Same.
8388         * ipa-profile.c: Same.
8389         * ipa-prop.c: Same.
8390         * ipa-prop.h: Same.
8391         * ira.c: Same.
8392         * omp-low.c: Same.
8393         * reg-stack.c: Same.
8394         * regcprop.c: Same.
8395         * reorg.c: Same.
8396         * rtl.h: Same.
8397         * sbitmap.h: Same.
8398         * tree-eh.c: Same.
8399         * tree-inline.c: Same.
8400         * tree-sra.c: Same.
8401         * tree-ssa-dom.c: Same.
8402         * tree-ssa-loop-ivopts.c: Same.
8403         * tree-ssa-structalias.c: Same.
8404         * tree-ssa-tail-merge.c: Same.
8405         * tree-ssa-ter.c: Same.
8406         * tree-ssa-threadupdate.c: Same.
8407         * tree-ssa-uninit.c: Same.
8408         * tree-ssanames.c: Same.
8409         * tree-vect-loop-manip.c: Same.
8410         * tree-vrp.c: Same.
8411         * tree.c: Same.
8412         * valtrack.c: Same.
8413         * vec.h: Same.
8415 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8417         PR middle-end/66726
8418         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8419         tree_ssa_phiopt_worker): Call it.
8421 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8423         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8424         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8425         REG_EQUAL note.
8427 2015-07-11  Marek Polacek  <polacek@redhat.com>
8429         PR middle-end/66353
8430         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
8431         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
8432         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
8433         rather than bb_has_abnormal_call_pred.
8434         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
8435         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
8436         rather than bb_has_abnormal_call_pred.
8438 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
8440         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8441         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
8442         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8443         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
8444         v850_legitimate_address_p): New functions.
8445         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8447 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8449         PR target/66819
8450         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
8451         indirect sibcall with register arguments if register available
8452         for argument passing.
8453         (init_cumulative_args): Set cfun->machine->arg_reg_available
8454         to (cum->nregs > 0) or to true if function has a variable
8455         argument list.
8456         (function_arg_advance_32): Set cfun->machine->arg_reg_available
8457         to false if cum->nregs <= 0.
8458         * config/i386/i386.h (machine_function): Add arg_reg_available.
8460 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
8462         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
8463         and gen_higpart instead of gen_rtx_SUBREG.
8464         * config/i386/i386.md
8465         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
8466         (read-modify peephole2): Use gen_lowpart instead of
8467         gen_rtx_SUBREG for operand 5.
8469 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
8471         * config/tilepro/gen-mul-tables.cc (main): Change include list for
8472         generated files.
8473         * config/tilepro/mul-tables.c: Regenerate.
8474         * config/tilegx/mul-tables.c: Regenerate.
8476 2015-07-10  Richard Biener  <rguenther@suse.de>
8478         * fold-const.c (distribute_bit_expr): Remove.
8479         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8480         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8481         to A & (B | C) and simplifying A << C1 << C2 to ...
8482         * match.pd: ... patterns here.
8484 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
8486         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8487         Mark mem as READONLY and NOTRAP for PIC symbol.
8489 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
8491         * gimple-predict.h: New file.
8492         (gimple_predict_predictor, gimple_predict_set_predictor,
8493         gimple_predict_outcome, gimple_predict_set_outcome,
8494         gimple_build_predict): Relocate here.
8495         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8496         gimple_predict_outcome, gimple_predict_set_outcome): Move to
8497         gimple-predict.h.
8498         * gimple.c (gimple_build_predict): Move to gimple-predict.h
8499         * basic-block.h: Don't include cfghooks.h.
8500         * backend.h: Don't include predict.h.
8501         * cfghooks.h: Include predict.h.
8502         * gimple-pretty-print.c: Include gimple-predict.h.
8503         * gimplify.c: Likwise.
8504         * predict.c: Adjust includes.
8505         * tree-inline.c: Likewise.
8506         * asan.c: Likewise.
8507         * auto-inc-dec.c: Likewise.
8508         * auto-profile.c: Likewise.
8509         * bb-reorder.c: Likewise.
8510         * builtins.c: Likewise.
8511         * caller-save.c: Likewise.
8512         * calls.c: Likewise.
8513         * cfganal.c: Likewise.
8514         * cfgbuild.c: Likewise.
8515         * cfg.c: Likewise.
8516         * cfgcleanup.c: Likewise.
8517         * cfgexpand.c: Likewise.
8518         * cfghooks.c: Likewise.
8519         * cfgloopanal.c: Likewise.
8520         * cfgloop.c: Likewise.
8521         * cfgloopmanip.c: Likewise.
8522         * cfgrtl.c: Likewise.
8523         * cgraph.c: Likewise.
8524         * cgraphunit.c: Likewise.
8525         * combine.c: Likewise.
8526         * cprop.c: Likewise.
8527         * cse.c: Likewise.
8528         * dce.c: Likewise.
8529         * dojump.c: Likewise.
8530         * dse.c: Likewise.
8531         * except.c: Likewise.
8532         * expmed.c: Likewise.
8533         * expr.c: Likewise.
8534         * final.c: Likewise.
8535         * fold-const.c: Likewise.
8536         * function.c: Likewise.
8537         * fwprop.c: Likewise.
8538         * gcc-plugin.h: Likewise.
8539         * gcse.c: Likewise.
8540         * genattrtab.c: Likewise.
8541         * genemit.c: Likewise.
8542         * gengtype.c: Likewise.
8543         * genopinit.c: Likewise.
8544         * genoutput.c: Likewise.
8545         * genpreds.c: Likewise.
8546         * genrecog.c: Likewise.
8547         * gimple-fold.c: Likewise.
8548         * gimple-iterator.c: Likewise.
8549         * gimple-ssa-isolate-paths.c: Likewise.
8550         * gimple-ssa-strength-reduction.c: Likewise.
8551         * graph.c: Likewise.
8552         * graphite-blocking.c: Likewise.
8553         * graphite.c: Likewise.
8554         * graphite-dependences.c: Likewise.
8555         * graphite-interchange.c: Likewise.
8556         * graphite-isl-ast-to-gimple.c: Likewise.
8557         * graphite-optimize-isl.c: Likewise.
8558         * graphite-poly.c: Likewise.
8559         * graphite-scop-detection.c: Likewise.
8560         * graphite-sese-to-poly.c: Likewise.
8561         * haifa-sched.c: Likewise.
8562         * ifcvt.c: Likewise.
8563         * internal-fn.c: Likewise.
8564         * ipa-cp.c: Likewise.
8565         * ipa-profile.c: Likewise.
8566         * ipa-split.c: Likewise.
8567         * ipa-utils.c: Likewise.
8568         * ira-build.c: Likewise.
8569         * ira-color.c: Likewise.
8570         * ira-conflicts.c: Likewise.
8571         * ira-costs.c: Likewise.
8572         * ira-emit.c: Likewise.
8573         * ira-lives.c: Likewise.
8574         * jump.c: Likewise.
8575         * loop-doloop.c: Likewise.
8576         * loop-init.c: Likewise.
8577         * loop-invariant.c: Likewise.
8578         * loop-unroll.c: Likewise.
8579         * lower-subreg.c: Likewise.
8580         * lra-assigns.c: Likewise.
8581         * lra.c: Likewise.
8582         * lra-coalesce.c: Likewise.
8583         * lra-constraints.c: Likewise.
8584         * lra-lives.c: Likewise.
8585         * lto-cgraph.c: Likewise.
8586         * lto-streamer-in.c: Likewise.
8587         * mode-switching.c: Likewise.
8588         * modulo-sched.c: Likewise.
8589         * omp-low.c: Likewise.
8590         * optabs.c: Likewise.
8591         * passes.c: Likewise.
8592         * postreload.c: Likewise.
8593         * postreload-gcse.c: Likewise.
8594         * profile.c: Likewise.
8595         * recog.c: Likewise.
8596         * regstat.c: Likewise.
8597         * reload1.c: Likewise.
8598         * reorg.c: Likewise.
8599         * rtlanal.c: Likewise.
8600         * sched-ebb.c: Likewise.
8601         * sel-sched-ir.c: Likewise.
8602         * sese.c: Likewise.
8603         * shrink-wrap.c: Likewise.
8604         * simplify-rtx.c: Likewise.
8605         * stmt.c: Likewise.
8606         * store-motion.c: Likewise.
8607         * tracer.c: Likewise.
8608         * trans-mem.c: Likewise.
8609         * tree-call-cdce.c: Likewise.
8610         * tree-cfg.c: Likewise.
8611         * tree-cfgcleanup.c: Likewise.
8612         * tree-chkp.c: Likewise.
8613         * tree-complex.c: Likewise.
8614         * tree-eh.c: Likewise.
8615         * tree-if-conv.c: Likewise.
8616         * tree-loop-distribution.c: Likewise.
8617         * tree-outof-ssa.c: Likewise.
8618         * tree-parloops.c: Likewise.
8619         * tree-predcom.c: Likewise.
8620         * tree-pretty-print.c: Likewise.
8621         * tree-profile.c: Likewise.
8622         * tree-sra.c: Likewise.
8623         * tree-ssa.c: Likewise.
8624         * tree-ssa-coalesce.c: Likewise.
8625         * tree-ssa-dce.c: Likewise.
8626         * tree-ssa-dom.c: Likewise.
8627         * tree-ssa-forwprop.c: Likewise.
8628         * tree-ssa-ifcombine.c: Likewise.
8629         * tree-ssa-loop-ch.c: Likewise.
8630         * tree-ssa-loop-im.c: Likewise.
8631         * tree-ssa-loop-ivcanon.c: Likewise.
8632         * tree-ssa-loop-ivopts.c: Likewise.
8633         * tree-ssa-loop-manip.c: Likewise.
8634         * tree-ssa-loop-prefetch.c: Likewise.
8635         * tree-ssa-loop-unswitch.c: Likewise.
8636         * tree-ssa-math-opts.c: Likewise.
8637         * tree-ssa-phiopt.c: Likewise.
8638         * tree-ssa-pre.c: Likewise.
8639         * tree-ssa-reassoc.c: Likewise.
8640         * tree-ssa-sink.c: Likewise.
8641         * tree-ssa-tail-merge.c: Likewise.
8642         * tree-ssa-threadedge.c: Likewise.
8643         * tree-ssa-threadupdate.c: Likewise.
8644         * tree-switch-conversion.c: Likewise.
8645         * tree-tailcall.c: Likewise.
8646         * tree-vect-data-refs.c: Likewise.
8647         * tree-vect-loop.c: Likewise.
8648         * tree-vect-loop-manip.c: Likewise.
8649         * tree-vectorizer.c: Likewise.
8650         * tree-vrp.c: Likewise.
8651         * ubsan.c: Likewise.
8652         * value-prof.c: Likewise.
8653         * varasm.c: Likewise.
8654         * var-tracking.c: Likewise.
8655         * config/aarch64/aarch64-builtins.c: Likewise.
8656         * config/aarch64/aarch64.c: Likewise.
8657         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8658         * config/alpha/alpha.c: Likewise.
8659         * config/arc/arc.c: Likewise.
8660         * config/arm/arm.c: Likewise.
8661         * config/avr/avr.c: Likewise.
8662         * config/bfin/bfin.c: Likewise.
8663         * config/c6x/c6x.c: Likewise.
8664         * config/cr16/cr16.c: Likewise.
8665         * config/cris/cris.c: Likewise.
8666         * config/darwin.c: Likewise.
8667         * config/darwin-c.c: Likewise.
8668         * config/epiphany/epiphany.c: Likewise.
8669         * config/epiphany/mode-switch-use.c: Likewise.
8670         * config/epiphany/resolve-sw-modes.c: Likewise.
8671         * config/fr30/fr30.c: Likewise.
8672         * config/frv/frv.c: Likewise.
8673         * config/ft32/ft32.c: Likewise.
8674         * config/h8300/h8300.c: Likewise.
8675         * config/i386/i386.c: Likewise.
8676         * config/i386/winnt.c: Likewise.
8677         * config/ia64/ia64.c: Likewise.
8678         * config/iq2000/iq2000.c: Likewise.
8679         * config/lm32/lm32.c: Likewise.
8680         * config/m32c/m32c.c: Likewise.
8681         * config/m32r/m32r.c: Likewise.
8682         * config/m68k/m68k.c: Likewise.
8683         * config/mcore/mcore.c: Likewise.
8684         * config/mep/mep.c: Likewise.
8685         * config/microblaze/microblaze.c: Likewise.
8686         * config/mips/mips.c: Likewise.
8687         * config/mmix/mmix.c: Likewise.
8688         * config/mn10300/mn10300.c: Likewise.
8689         * config/moxie/moxie.c: Likewise.
8690         * config/msp430/msp430.c: Likewise.
8691         * config/nds32/nds32.c: Likewise.
8692         * config/nds32/nds32-cost.c: Likewise.
8693         * config/nds32/nds32-fp-as-gp.c: Likewise.
8694         * config/nds32/nds32-intrinsic.c: Likewise.
8695         * config/nds32/nds32-isr.c: Likewise.
8696         * config/nds32/nds32-md-auxiliary.c: Likewise.
8697         * config/nds32/nds32-memory-manipulation.c: Likewise.
8698         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8699         * config/nds32/nds32-predicates.c: Likewise.
8700         * config/nios2/nios2.c: Likewise.
8701         * config/nvptx/nvptx.c: Likewise.
8702         * config/pa/pa.c: Likewise.
8703         * config/pdp11/pdp11.c: Likewise.
8704         * config/rl78/rl78.c: Likewise.
8705         * config/rs6000/rs6000.c: Likewise.
8706         * config/rx/rx.c: Likewise.
8707         * config/s390/s390.c: Likewise.
8708         * config/sh/sh.c: Likewise.
8709         * config/sh/sh-mem.cc: Likewise.
8710         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8711         * config/sh/sh_treg_combine.cc: Likewise.
8712         * config/sparc/sparc.c: Likewise.
8713         * config/spu/spu.c: Likewise.
8714         * config/stormy16/stormy16.c: Likewise.
8715         * config/tilegx/tilegx.c: Likewise.
8716         * config/tilepro/tilepro.c: Likewise.
8717         * config/v850/v850.c: Likewise.
8718         * config/vax/vax.c: Likewise.
8719         * config/visium/visium.c: Likewise.
8720         * config/xtensa/xtensa.c: Likewise.
8722 2015-07-10  Richard Biener  <rguenther@suse.de>
8724         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8725         (decision_tree::gen_gimple): Likewise.
8726         (decision_tree::gen_generic): Likewise.
8728 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
8730         PR target/66813
8731         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8732         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8734 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
8736         PR middle-end/66820
8737         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8738         or ORT_TASK contexts.
8739         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8740         is non-zero.
8742 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8744         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8745         above function.
8747 2015-07-10  Tom de Vries  <tom@codesourcery.com>
8749         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8750         insert nit + 1 bound.
8752 2015-07-10  Richard Biener  <rguenther@suse.de>
8754         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
8755         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
8756         (if_convertible_loop_p_1): For this always compute bb predicates.
8757         (if_convertible_loop_p): And free them.
8759 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8761         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
8762         in dump message.
8764 2015-07-10  Richard Biener  <rguenther@suse.de>
8766         PR tree-optimization/66823
8767         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
8768         inverted predicate.
8770 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
8772         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
8773         to handle mips[32|64]r3 and mips[32|64]r5.
8775 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
8777         PR middle-end/66633
8778         * tree-nested.c (get_static_chain): Or in a flag into
8779         info->static_chain_added.
8780         (get_frame_field, get_nonlocal_debug_decl): Likewise.
8781         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
8782         2015-07-01 changes.
8783         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
8784         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
8785         add it to clauses.
8787         PR tree-optimization/66718
8788         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
8789         field.
8790         (vect_simd_lane_linear): New function.
8791         (vectorizable_simd_clone_call): Support using linear arguments for
8792         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
8794 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8796         PR target/66821
8797         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
8799 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
8801         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
8802         Use machine mode, not enum machine_mode in the prototype.
8804         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
8805         classify 128-bit floating point support.
8806         (FLOAT128_IBM_P): Likewise.
8807         (FLOAT128_VECTOR_P): Likewise.
8808         (FLOAT128_2REG_P): Likewise.
8809         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
8810         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
8811         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8812         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8814         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8815         tests against TFmode/TDmode, since those modes do not use VSX
8816         addresses.
8817         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8818         support.
8819         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8820         tests against TFmode, etc.
8821         (invalid_e500_subreg): Add tests against IFmode/KFmode.
8822         (reg_offset_addressing_ok_p): Likewise.
8823         (rs6000_legitimate_offset_address_p): Likewise.
8824         (rs6000_legitimize_address): Likewise.
8825         (rs6000_legitimize_reload_address): Likewise.
8826         (rs6000_legitimate_address_p): Clean up tests against TFmode and
8827         TDmode to use the new helper macros, which will include IFmode and
8828         KFmode.
8829         (rs6000_emit_move): Likewise.
8830         (rs6000_darwin64_record_arg_recurse): Likewise.
8831         (print_operand): Likewise.
8832         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8833         that uses a single vector register as a vector and not as a
8834         floating point register in terms of the calling sequence.
8835         (rs6000_discover_homogeneous_aggregate): Likewise.
8836         (rs6000_return_in_memory): Likewise.
8837         (init_cumulative_args): Likewise.
8838         (rs6000_function_arg_boundary): Likewise.
8839         (rs6000_function_arg_advance_1): Likewise.
8840         (rs6000_function_arg): Likewise.
8841         (rs6000_pass_by_reference): Likewise.
8842         (rs6000_gimplify_va_arg): Likewise.
8843         (rs6000_secondary_reload_memory): Use machine_mode not enum
8844         machine mode.
8845         (rs6000_split_multireg_move): Use new helper macros.
8846         (spe_func_has_64bit_regs_p): Likewise.
8847         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8848         (output_toc): Use new helper macros.
8849         (rs6000_register_move_cost): Likewise.
8850         (rs6000_function_value): Add IEEE 128-bit floating point calling
8851         sequence support.
8852         (rs6000_libcall_value): Likewise.
8853         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8854         floating point support.
8855         (rs6000_vector_mode_supported_p): Likewise.
8857 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
8859         PR rtl-optimization/66782
8860         * lra-int.h (struct lra_insn_recog_data): Add comment about
8861         clobbered hard regs for arg_hard_regs.
8862         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8863         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8864         Add condition for processing used hard regs.
8865         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8866         Process clobbered hard regs.
8868 2015-07-09  Michael Matz  <matz@suse.de>
8870         * genmatch.c (fprintf_indent): New function.
8871         (operand::gen_transform): Add indent parameter.
8872         (expr::gen_transform, c_expr::gen_transform,
8873         capture::gen_transform): Ditto and use fprintf_indent.
8874         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8875         (dt_operand::gen, dt_operand::gen_predicate,
8876         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8877         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8878         (decision_tree::gen_gimple): Adjust calls and indent generated
8879         code.
8880         (decision_tree::gen_generic): Ditto.
8881         (write_predicate): Ditto.
8883 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
8885         PR target/66814
8886         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8887         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8888         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8889         {GENERAL,SSE,MMX}_REG_P where appropriate.
8891 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
8893         * lto-streamer.h: Don't include target.h and alloc-pool.h.
8894         * builtins.c: Adjust includes.
8895         * gimple.c: Likewise.
8896         * ipa-icf.c: Likewise.
8897         * lto-opts.c: Likewise.
8898         * ipa-reference.c: Likewise.
8899         * lto-section-out.c: Likewise.
8900         * lto-streamer-in.c: Likewise.
8901         * lto-streamer-out.c: Likewise.
8902         * opts-global.c: Likewise.
8903         * symtab.c: Likewise.
8904         * tree-chkp.c: Likewise.
8905         * tree-ssa-live.c: Likewise.
8906         * tree-streamer-in.c: Likewise.
8907         * tree-streamer-out.c: Likewise.
8908         * config/darwin.c: Likewise.
8909         * config/i386/winnt.c: Likewise.
8911 2015-07-09  Richard Biener  <rguenther@suse.de>
8913         * genmatch.c (struct expr): Add force_single_use flag.
8914         (expr::expr): Add copy constructor.
8915         (capture_info::walk_match): Gather force_single_use captures.
8916         (expr::gen_transform): Use possibly NULLified sequence.
8917         (dt_simplify::gen): Apply single-use restrictions by NULLifying
8918         seq if any constrained expr is not single-use.
8919         (parser::parse_expr): Refactor to allow multiple flags.  Handle
8920         's' flag to force an expression have a single-use if the pattern
8921         simplifies to more than one statement.
8922         * match.pd: Convert most single_use conditionals to :s flags.
8924 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8926         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8927         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8928         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8930 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
8932         * flags.h: Don't include flag-types.h or options.h.
8933         * opts-common.c: Adjust includes.
8934         * opts-global.c: Likewise.
8935         * common/config/epiphany/epiphany-common.c: Likewise.
8937 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8939         PR target/66818
8940         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8941         for IA MCU.
8943 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8945         PR target/66817
8946         * config/i386/i386.c (ix86_return_in_memory): Return true
8947         if int_size_in_bytes returns negative for IA MCU.
8949 2015-07-09  Marek Polacek  <polacek@redhat.com>
8951         PR tree-optimization/66718
8952         * Makefile.in (OBJS): Add gimple-laddress.o.
8953         * passes.def: Schedule pass_laddress.
8954         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8955         * tree-pass.h (make_pass_laddress): Declare.
8956         * gimple-laddress.c: New file.
8958 2015-07-09  Richard Biener  <rguenther@suse.de>
8960         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8962 2015-07-09  Richard Biener  <rguenther@suse.de>
8964         PR tree-optimization/66807
8965         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8967 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
8969         * function.c (stack_protect_epilogue): Use if rather than switch for
8970         check targetm.have_stack_protect_test.
8972 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8974         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8975         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8976         * config/arc/arc.h: Likewise.
8977         * config/arm/arm.h: Likewise.
8978         * config/bfin/bfin.h: Likewise.
8979         * config/epiphany/epiphany.h: Likewise.
8980         * config/frv/frv.h: Likewise.
8981         * config/ia64/ia64.h: Likewise.
8982         * config/iq2000/iq2000.h: Likewise.
8983         * config/lm32/lm32.h: Likewise.
8984         * config/m32r/m32r.h: Likewise.
8985         * config/mcore/mcore.h: Likewise.
8986         * config/mep/mep.h: Likewise.
8987         * config/microblaze/microblaze.h: Likewise.
8988         * config/mips/mips.h: Likewise.
8989         * config/mmix/mmix.h: Likewise.
8990         * config/mn10300/mn10300.h: Likewise.
8991         * config/nds32/nds32.h: Likewise.
8992         * config/nios2/nios2.h: Likewise.
8993         * config/pa/pa.h: Likewise.
8994         * config/rl78/rl78.h: Likewise.
8995         * config/sh/sh.h: Likewise.
8996         * config/sparc/sparc.h: Likewise.
8997         * config/stormy16/stormy16.h: Likewise.
8998         * config/tilegx/tilegx.h: Likewise.
8999         * config/tilepro/tilepro.h: Likewise.
9000         * config/v850/v850.h: Likewise.
9001         * config/xtensa/xtensa.h: Likewise.
9002         * doc/tm.texi: Regenerate.
9003         * doc/tm.texi.in: Adjust.
9004         * combine.c (simplify_set): Likewise.
9005         (simplify_comparison): Likewise.
9006         * expr.c (store_constructor): Likewise.
9007         * internal-fn.c (expand_arith_overflow): Likewise.
9008         * reload.c (push_reload): Likewise.
9009         (find_reloads): Likewise.
9010         (find_reloads_subreg_address): Likewise.
9011         * reload1.c (eliminate_regs_1): Likewise.
9012         * rtlanal.c (nonzero_bits1): Likewise.
9013         (num_sign_bit_copies1): Likewise.
9014         * simplify-rtx.c (simplify_truncation): Likewise.
9016 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9018         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9019         of AUTO_INC_DEC with the preprocessor.
9020         * combine.c (combine_instructions): Likewise.
9021         (can_combine_p): Likewise.
9022         (try_combine): Likewise.
9023         * emit-rtl.c (try_split): Likewise.
9024         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9025         * lower-subreg.c (resolve_simple_move): Likewise.
9026         * lra.c (update_inc_notes): Likewise.
9027         * recog.c (asm_operand_ok): Likewise.
9028         (constrain_operands): Likewise.
9029         * regrename.c (scan_rtx_address): Likewise.
9030         * reload.c (update_auto_inc_notes): Likewise.
9031         (reg_inc_found_and_valid_p): Likewise.
9032         * reload1.c (reload): Likewise.
9033         (emit_input_reload_insns): Likewise.
9034         (delete_output_reload): Likewise.
9035         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9036         * valtrack.c (cleanup_auto_inc_dec): Likewise.
9038 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9040         * rtl.h: Always define AUTO_INC_DEC.
9041         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9042         * combine.c (combine_instructions): Likewise.
9043         (can_combine_p): Likewise.
9044         (try_combine): Likewise.
9045         * emit-rtl.c (try_split): Likewise.
9046         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9047         * lower-subreg.c (resolve_simple_move): Likewise.
9048         * lra.c (update_inc_notes): Likewise.
9049         * recog.c (asm_operand_ok): Likewise.
9050         (constrain_operands): Likewise.
9051         * regrename.c (scan_rtx_address): Likewise.
9052         * reload.c (update_auto_inc_notes): Likewise.
9053         (find_equiv_reg): Likewise.
9054         * reload1.c (reload): Likewise.
9055         (reload_as_needed): Likewise.
9056         (choose_reload_regs): Likewise.
9057         (emit_input_reload_insns): Likewise.
9058         (delete_output_reload): Likewise.
9059         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9060         * valtrack.c (cleanup_auto_inc_dec): Likewise.
9062 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9064         * combine.c (can_combine_def_p): Don't check the value of
9065         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9066         (combinable_i3pat): Likewise.
9067         (mark_used_regs_combine): Likewise.
9068         * regrename.c (rename_chains): Likewise.
9069         * reload.c (find_reloads_address): Likewise.
9070         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9072 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9074         * combine.c (update_rsp_from_reg_equal): Don't check if
9075         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9076         (reg_nonzero_bits_for_combine): Likewise.
9077         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9078         1.
9079         * config/frv/frv.h: Likewise.
9080         * config/lm32/lm32.h: Likewise.
9081         * config/mep/mep.h: Likewise.
9082         * config/mips/mips.h: Likewise.
9083         * config/rs6000/rs6000.h: Likewise.
9084         * config/sh/sh.h: Likewise.
9085         * config/tilegx/tilegx.h (enum reg_class): Likewise.
9086         * config/tilepro/tilepro.h: Likewise.
9087         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9088         * doc/tm.texi: Regenerate.
9089         * doc/tm.texi.in: Adjust.
9090         * rtlanal.c (nonzero_bits1): Likewise.
9092 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9094         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9095         with the preprocessor.
9096         (combine_instructions): Likewise.
9097         (try_combine): Likewise.
9098         (subst): Likewise.
9099         (distribute_notes): Likewise.
9101 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9103         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9104         defined.
9105         (simplify_set): Likewise.
9106         * cse.c (cse_insn): Likewise.
9107         * fold-const.c (fold_single_bit_test): Likewise.
9108         (fold_unary_loc): Likewise.
9109         * postreload.c (reload_cse_simplify_set): Likewise.
9110         (reload_cse_simplify_operands): Likewise.
9112 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
9114         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9115         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9117 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
9119         PR target/66746
9120         * config/i386/x86intrin.h: Include <adxintrin.h> even if
9121         __iamcu__ is defined.
9123 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
9125         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9127 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
9129         PR target/66523
9130         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9131         names from preservation.
9133 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
9135         PR target/66806
9136         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9137         change for IAMCU.
9138         (function_arg_advance_32): Don't pass vectors in registers for
9139         IAMCU.
9140         (function_arg_32): Likewise.
9141         (ix86_return_in_memory): Don't return vectors in registers for
9142         IAMCU.
9144 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
9146         PR middle-end/66334
9147         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9148         hard regno live at the start of BB with incoming abnormal edges.
9149         * lra-lives.c (process_bb_lives): Ditto.
9151 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
9153         PR libgomp/65099
9154         * config/nvptx/mkoffload.c (main): Create an offload image only in
9155         64-bit configurations.
9157 2015-07-08  Martin Liska  <mliska@suse.cz>
9159         PR bootstrap/66744
9160         * tree-sra.c (create_access_1): Call ctor without brackets.
9161         (create_artificial_child_access): Likewise.
9163 2015-07-08  Richard Biener  <rguenther@suse.de>
9165         PR tree-optimization/66793
9166         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9167         Properly split the block after stmts ending it.
9169 2015-07-08  Richard Biener  <rguenther@suse.de>
9171         PR tree-optimization/66794
9172         * passes.c (execute_function_todo): Assert that post-dominators
9173         are not computed.
9174         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9175         Free post-dominators.
9177 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9179         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9180         with early exit.
9182 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
9184         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9185         more than or equal 8 and less than 32 when optimizing for size.
9187 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9189         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9190         COSTS_N_INSNS (1) and increment it appropriately throughout the
9191         function.
9193 2015-07-08  Richard Biener  <rguenther@suse.de>
9195         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9197 2015-07-08  Alan Modra  <amodra@gmail.com>
9199         * target.def (rtx_costs): Remove "code" param, add "mode".
9200         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9201         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
9202         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9203         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
9204         call.  Track mode when given in rtx.
9205         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
9206         (default_address_cost): Pass Pmode to rtx_cost.
9207         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9208         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9209         with NULL set.
9210         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
9211         (notreg_cost): Add mode param.  Use it.
9212         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
9213         mode param and pass to set_src_cost.  Update all calls.
9214         (hash_scan_set): Formatting.
9215         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9216         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9217         * hooks.h: Ditto.
9218         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9219         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9220         emit_store_flag): Update set_src_cost and rtx_cost calls.
9221         * auto-inc-dec.c (attempt_change): Likewise.
9222         * calls.c (precompute_register_parameters): Likewise.
9223         * combine.c (expand_compound_operation, make_extraction,
9224         force_to_mode, distribute_and_simplify_rtx): Likewise.
9225         * dojump.c (prefer_and_bit_test): Likewise.
9226         * dse.c (find_shift_sequence): Likewise.
9227         * expr.c (compress_float_constant): Likewise.
9228         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9229         * ifcvt.c (noce_try_sign_mask): Likewise.
9230         * loop-doloop.c (doloop_optimize): Likewise.
9231         * loop-invariant.c (create_new_invariant): Likewise.
9232         * lower-subreg.c (shift_cost, compute_costs): Likewise.
9233         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9234         lshift_cheap_p): Likewise.
9235         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9236         try_replace_in_use, reload_cse_move2add): Likewise.
9237         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9238         Likewise.
9239         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9240         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9241         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9242         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9243         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9244         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
9245         to rtx_cost calls.
9246         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9247         * config/arc/arc.c (arc_rtx_costs): Likewise.
9248         * config/arm/arm.c (arm_rtx_costs): Likewise.
9249         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9250         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9251         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9252         * config/cris/cris.c (cris_rtx_costs): Likewise.
9253         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9254         * config/frv/frv.c (frv_rtx_costs): Likewise.
9255         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9256         * config/i386/i386.c (ix86_rtx_costs): Likewise.
9257         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9258         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9259         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9260         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9261         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9262         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9263         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9264         * config/mep/mep.c (mep_rtx_cost): Likewise.
9265         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9266         * config/mips/mips.c (mips_rtx_costs): Likewise.
9267         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9268         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9269         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9270         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9271         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9272         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9273         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9274         * config/pa/pa.c (hppa_rtx_costs): Likewise.
9275         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9276         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9277         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9278         * config/s390/s390.c (s390_rtx_costs): Likewise.
9279         * config/sh/sh.c (sh_rtx_costs): Likewise.
9280         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9281         * config/spu/spu.c (spu_rtx_costs): Likewise.
9282         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9283         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9284         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9285         * config/v850/v850.c (v850_rtx_costs): Likewise.
9286         * config/vax/vax.c (vax_rtx_costs): Likewise.
9287         * config/visium/visium.c (visium_rtx_costs): Likewise.
9288         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9289         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9290         "code" param, and pass as outer_code to first rtx_cost call.  Pass
9291         mode to rtx_cost calls.
9292         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9293         calls.
9294         (aarch64_rtx_costs_wrapper): Update.
9295         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9296         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9297         rtx_cost calls.
9298         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9299         and rtx_cost calls.
9300         (avr_operand_rtx_cost): Similarly.
9301         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9302         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9303         * config/mips/mips.c (mips_stack_address_p): Comment typo.
9304         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9305         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9306         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9307         rtx_cost.
9308         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9309         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9310         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9311         * doc/tm.texi: Regenerate.
9313 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
9315         * tree-core.h: Include symtab.h.
9316         * rtl.h: Include hard-reg-set.h but not flags.h.
9317         (HARD_CONST): Remove condition compilation involving HARD_CONST since
9318         hard-reg-set.h is always included.
9319         * regs.h: Don't include hard-reg-set.h or rtl.h.
9320         * cfg.h: Include dominance.h.
9321         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9322         * backend.h: New.  Aggregate commonly used backend header files.
9323         * gimple-ssa.h: Don't include tree-hasher.h.
9324         * ssa.h: New.  Aggregate commonly used SSA header files.
9325         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9326         * sel-sched-ir.h: Flatten includes.
9327         * lra-int.h: Flatten completely.
9328         * sel-sched-dump.h: Flatten includes.
9329         * ira-int.h: Flatten includes.
9330         * gimple-streamer.h: Remove all includes.
9331         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9332         * resource.h: Flatten hard-reg-set.h and df.h.
9333         * sched-int.h: Flatten insn-arrt.h and df.h.
9334         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9335         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9336         * genattrtab.c (write_header): Adjust generated includes.
9337         * genautomata.c (main): Likewise.
9338         * genconditions.c (write-header): Likewise.
9339         * genemit.c (main): Likewise.
9340         * gengtype.c (open_base_files): Likewise.
9341         * genopinit.c (main): Likewise.
9342         * genoutput.c (output_prologue): Likewise.
9343         * genpeep.c (main): Likewise.
9344         * genpreds.c (write_insn_preds_c): Likewise.
9345         * genrecog.c (write_header): Likewise.
9346         * alias.c: Adjust includes.
9347         * asan.c: Likewise.
9348         * attribs.c: Likewise.
9349         * auto-inc-dec.c: Likewise.
9350         * auto-profile.c: Likewise.
9351         * bb-reorder.c: Likewise.
9352         * bt-load.c: Likewise.
9353         * builtins.c: Likewise.
9354         * caller-save.c: Likewise.
9355         * calls.c: Likewise.
9356         * ccmp.c: Likewise.
9357         * cfg.c: Likewise.
9358         * cfganal.c: Likewise.
9359         * cfgbuild.c: Likewise.
9360         * cfgcleanup.c: Likewise.
9361         * cfgexpand.c: Likewise.
9362         * cfghooks.c: Likewise.
9363         * cfgloop.c: Likewise.
9364         * cfgloopanal.c: Likewise.
9365         * cfgloopmanip.c: Likewise.
9366         * cfgrtl.c: Likewise.
9367         * cgraph.c: Likewise.
9368         * cgraphbuild.c: Likewise.
9369         * cgraphclones.c: Likewise.
9370         * cgraphunit.c: Likewise.
9371         * cilk-common.c: Likewise.
9372         * combine-stack-adj.c: Likewise.
9373         * combine.c: Likewise.
9374         * compare-elim.c: Likewise.
9375         * convert.c: Likewise.
9376         * coverage.c: Likewise.
9377         * cppbuiltin.c: Likewise.
9378         * cprop.c: Likewise.
9379         * cse.c: Likewise.
9380         * cselib.c: Likewise.
9381         * data-streamer-in.c: Likewise.
9382         * data-streamer-out.c: Likewise.
9383         * data-streamer.c: Likewise.
9384         * dbxout.c: Likewise.
9385         * dce.c: Likewise.
9386         * ddg.c: Likewise.
9387         * debug.c: Likewise.
9388         * df-core.c: Likewise.
9389         * df-problems.c: Likewise.
9390         * df-scan.c: Likewise.
9391         * dfp.c: Likewise.
9392         * dojump.c: Likewise.
9393         * dominance.c: Likewise.
9394         * domwalk.c: Likewise.
9395         * double-int.c: Likewise.
9396         * dse.c: Likewise.
9397         * dumpfile.c: Likewise.
9398         * dwarf2asm.c: Likewise.
9399         * dwarf2cfi.c: Likewise.
9400         * dwarf2out.c: Likewise.
9401         * emit-rtl.c: Likewise.
9402         * et-forest.c: Likewise.
9403         * except.c: Likewise.
9404         * explow.c: Likewise.
9405         * expmed.c: Likewise.
9406         * expr.c: Likewise.
9407         * final.c: Likewise.
9408         * fixed-value.c: Likewise.
9409         * fold-const.c: Likewise.
9410         * function.c: Likewise.
9411         * fwprop.c: Likewise.
9412         * gcc-plugin.h: Likewise.
9413         * gcse-common.c: Likewise.
9414         * gcse.c: Likewise.
9415         * generic-match-head.c: Likewise.
9416         * ggc-page.c: Likewise.
9417         * gimple-builder.c: Likewise.
9418         * gimple-expr.c: Likewise.
9419         * gimple-fold.c: Likewise.
9420         * gimple-iterator.c: Likewise.
9421         * gimple-low.c: Likewise.
9422         * gimple-match-head.c: Likewise.
9423         * gimple-pretty-print.c: Likewise.
9424         * gimple-ssa-isolate-paths.c: Likewise.
9425         * gimple-ssa-strength-reduction.c: Likewise.
9426         * gimple-streamer-in.c: Likewise.
9427         * gimple-streamer-out.c: Likewise.
9428         * gimple-walk.c: Likewise.
9429         * gimple.c: Likewise.
9430         * gimplify-me.c: Likewise.
9431         * gimplify.c: Likewise.
9432         * godump.c: Likewise.
9433         * graph.c: Likewise.
9434         * graphite-blocking.c: Likewise.
9435         * graphite-dependences.c: Likewise.
9436         * graphite-interchange.c: Likewise.
9437         * graphite-isl-ast-to-gimple.c: Likewise.
9438         * graphite-optimize-isl.c: Likewise.
9439         * graphite-poly.c: Likewise.
9440         * graphite-scop-detection.c: Likewise.
9441         * graphite-sese-to-poly.c: Likewise.
9442         * graphite.c: Likewise.
9443         * haifa-sched.c: Likewise.
9444         * hw-doloop.c: Likewise.
9445         * ifcvt.c: Likewise.
9446         * init-regs.c: Likewise.
9447         * internal-fn.c: Likewise.
9448         * ipa-chkp.c: Likewise.
9449         * ipa-comdats.c: Likewise.
9450         * ipa-cp.c: Likewise.
9451         * ipa-devirt.c: Likewise.
9452         * ipa-icf-gimple.c: Likewise.
9453         * ipa-icf.c: Likewise.
9454         * ipa-inline-analysis.c: Likewise.
9455         * ipa-inline-transform.c: Likewise.
9456         * ipa-inline.c: Likewise.
9457         * ipa-polymorphic-call.c: Likewise.
9458         * ipa-profile.c: Likewise.
9459         * ipa-prop.c: Likewise.
9460         * ipa-pure-const.c: Likewise.
9461         * ipa-ref.c: Likewise.
9462         * ipa-reference.c: Likewise.
9463         * ipa-split.c: Likewise.
9464         * ipa-utils.c: Likewise.
9465         * ipa-visibility.c: Likewise.
9466         * ipa.c: Likewise.
9467         * ira-build.c: Likewise.
9468         * ira-color.c: Likewise.
9469         * ira-conflicts.c: Likewise.
9470         * ira-costs.c: Likewise.
9471         * ira-emit.c: Likewise.
9472         * ira-lives.c: Likewise.
9473         * ira.c: Likewise.
9474         * jump.c: Likewise.
9475         * langhooks.c: Likewise.
9476         * lcm.c: Likewise.
9477         * loop-doloop.c: Likewise.
9478         * loop-init.c: Likewise.
9479         * loop-invariant.c: Likewise.
9480         * loop-iv.c: Likewise.
9481         * loop-unroll.c: Likewise.
9482         * lower-subreg.c: Likewise.
9483         * lra-assigns.c: Likewise.
9484         * lra-coalesce.c: Likewise.
9485         * lra-constraints.c: Likewise.
9486         * lra-eliminations.c: Likewise.
9487         * lra-lives.c: Likewise.
9488         * lra-remat.c: Likewise.
9489         * lra-spills.c: Likewise.
9490         * lra.c: Likewise.
9491         * lto-cgraph.c: Likewise.
9492         * lto-compress.c: Likewise.
9493         * lto-opts.c: Likewise.
9494         * lto-section-in.c: Likewise.
9495         * lto-section-out.c: Likewise.
9496         * lto-streamer-in.c: Likewise.
9497         * lto-streamer-out.c: Likewise.
9498         * lto-streamer.c: Likewise.
9499         * mcf.c: Likewise.
9500         * mode-switching.c: Likewise.
9501         * modulo-sched.c: Likewise.
9502         * omega.c: Likewise.
9503         * omp-low.c: Likewise.
9504         * optabs.c: Likewise.
9505         * opts-global.c: Likewise.
9506         * passes.c: Likewise.
9507         * plugin.c: Likewise.
9508         * postreload-gcse.c: Likewise.
9509         * postreload.c: Likewise.
9510         * predict.c: Likewise.
9511         * print-rtl.c: Likewise.
9512         * print-tree.c: Likewise.
9513         * profile.c: Likewise.
9514         * real.c: Likewise.
9515         * realmpfr.c: Likewise.
9516         * recog.c: Likewise.
9517         * ree.c: Likewise.
9518         * reg-stack.c: Likewise.
9519         * regcprop.c: Likewise.
9520         * reginfo.c: Likewise.
9521         * regrename.c: Likewise.
9522         * regstat.c: Likewise.
9523         * reload.c: Likewise.
9524         * reload1.c: Likewise.
9525         * reorg.c: Likewise.
9526         * resource.c: Likewise.
9527         * rtl-chkp.c: Likewise.
9528         * rtlanal.c: Likewise.
9529         * rtlhooks.c: Likewise.
9530         * sanopt.c: Likewise.
9531         * sched-deps.c: Likewise.
9532         * sched-ebb.c: Likewise.
9533         * sched-rgn.c: Likewise.
9534         * sched-vis.c: Likewise.
9535         * sdbout.c: Likewise.
9536         * sel-sched-dump.c: Likewise.
9537         * sel-sched-ir.c: Likewise.
9538         * sel-sched.c: Likewise.
9539         * sese.c: Likewise.
9540         * shrink-wrap.c: Likewise.
9541         * simplify-rtx.c: Likewise.
9542         * stack-ptr-mod.c: Likewise.
9543         * stmt.c: Likewise.
9544         * stor-layout.c: Likewise.
9545         * store-motion.c: Likewise.
9546         * stringpool.c: Likewise.
9547         * symtab.c: Likewise.
9548         * target-globals.c: Likewise.
9549         * targhooks.c: Likewise.
9550         * toplev.c: Likewise.
9551         * tracer.c: Likewise.
9552         * trans-mem.c: Likewise.
9553         * tree-affine.c: Likewise.
9554         * tree-browser.c: Likewise.
9555         * tree-call-cdce.c: Likewise.
9556         * tree-cfg.c: Likewise.
9557         * tree-cfgcleanup.c: Likewise.
9558         * tree-chkp-opt.c: Likewise.
9559         * tree-chkp.c: Likewise.
9560         * tree-chrec.c: Likewise.
9561         * tree-complex.c: Likewise.
9562         * tree-data-ref.c: Likewise.
9563         * tree-dfa.c: Likewise.
9564         * tree-diagnostic.c: Likewise.
9565         * tree-dump.c: Likewise.
9566         * tree-eh.c: Likewise.
9567         * tree-emutls.c: Likewise.
9568         * tree-if-conv.c: Likewise.
9569         * tree-inline.c: Likewise.
9570         * tree-into-ssa.c: Likewise.
9571         * tree-iterator.c: Likewise.
9572         * tree-loop-distribution.c: Likewise.
9573         * tree-nested.c: Likewise.
9574         * tree-nrv.c: Likewise.
9575         * tree-object-size.c: Likewise.
9576         * tree-outof-ssa.c: Likewise.
9577         * tree-parloops.c: Likewise.
9578         * tree-phinodes.c: Likewise.
9579         * tree-predcom.c: Likewise.
9580         * tree-pretty-print.c: Likewise.
9581         * tree-profile.c: Likewise.
9582         * tree-scalar-evolution.c: Likewise.
9583         * tree-sra.c: Likewise.
9584         * tree-ssa-address.c: Likewise.
9585         * tree-ssa-alias.c: Likewise.
9586         * tree-ssa-ccp.c: Likewise.
9587         * tree-ssa-coalesce.c: Likewise.
9588         * tree-ssa-copy.c: Likewise.
9589         * tree-ssa-copyrename.c: Likewise.
9590         * tree-ssa-dce.c: Likewise.
9591         * tree-ssa-dom.c: Likewise.
9592         * tree-ssa-dse.c: Likewise.
9593         * tree-ssa-forwprop.c: Likewise.
9594         * tree-ssa-ifcombine.c: Likewise.
9595         * tree-ssa-live.c: Likewise.
9596         * tree-ssa-loop-ch.c: Likewise.
9597         * tree-ssa-loop-im.c: Likewise.
9598         * tree-ssa-loop-ivcanon.c: Likewise.
9599         * tree-ssa-loop-ivopts.c: Likewise.
9600         * tree-ssa-loop-manip.c: Likewise.
9601         * tree-ssa-loop-niter.c: Likewise.
9602         * tree-ssa-loop-prefetch.c: Likewise.
9603         * tree-ssa-loop-unswitch.c: Likewise.
9604         * tree-ssa-loop.c: Likewise.
9605         * tree-ssa-math-opts.c: Likewise.
9606         * tree-ssa-operands.c: Likewise.
9607         * tree-ssa-phiopt.c: Likewise.
9608         * tree-ssa-phiprop.c: Likewise.
9609         * tree-ssa-pre.c: Likewise.
9610         * tree-ssa-propagate.c: Likewise.
9611         * tree-ssa-reassoc.c: Likewise.
9612         * tree-ssa-sccvn.c: Likewise.
9613         * tree-ssa-scopedtables.c: Likewise.
9614         * tree-ssa-sink.c: Likewise.
9615         * tree-ssa-strlen.c: Likewise.
9616         * tree-ssa-structalias.c: Likewise.
9617         * tree-ssa-tail-merge.c: Likewise.
9618         * tree-ssa-ter.c: Likewise.
9619         * tree-ssa-threadedge.c: Likewise.
9620         * tree-ssa-threadupdate.c: Likewise.
9621         * tree-ssa-uncprop.c: Likewise.
9622         * tree-ssa-uninit.c: Likewise.
9623         * tree-ssa.c: Likewise.
9624         * tree-ssanames.c: Likewise.
9625         * tree-stdarg.c: Likewise.
9626         * tree-streamer-in.c: Likewise.
9627         * tree-streamer-out.c: Likewise.
9628         * tree-streamer.c: Likewise.
9629         * tree-switch-conversion.c: Likewise.
9630         * tree-tailcall.c: Likewise.
9631         * tree-vect-data-refs.c: Likewise.
9632         * tree-vect-generic.c: Likewise.
9633         * tree-vect-loop-manip.c: Likewise.
9634         * tree-vect-loop.c: Likewise.
9635         * tree-vect-patterns.c: Likewise.
9636         * tree-vect-slp.c: Likewise.
9637         * tree-vect-stmts.c: Likewise.
9638         * tree-vectorizer.c: Likewise.
9639         * tree-vrp.c: Likewise.
9640         * tree.c: Likewise.
9641         * tsan.c: Likewise.
9642         * ubsan.c: Likewise.
9643         * valtrack.c: Likewise.
9644         * value-prof.c: Likewise.
9645         * var-tracking.c: Likewise.
9646         * varasm.c: Likewise.
9647         * varpool.c: Likewise.
9648         * vmsdbgout.c: Likewise.
9649         * vtable-verify.c: Likewise.
9650         * web.c: Likewise.
9651         * wide-int.cc: Likewise.
9652         * xcoffout.c: Likewise.
9653         * config/aarch64/aarch64-builtins.c: Likewise.
9654         * config/aarch64/aarch64.c: Likewise.
9655         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9656         * config/alpha/alpha.c: Likewise.
9657         * config/arc/arc.c: Likewise.
9658         * config/arm/aarch-common.c: Likewise.
9659         * config/arm/arm-builtins.c: Likewise.
9660         * config/arm/arm-c.c: Likewise.
9661         * config/arm/arm.c: Likewise.
9662         * config/avr/avr-c.c: Likewise.
9663         * config/avr/avr-log.c: Likewise.
9664         * config/avr/avr.c: Likewise.
9665         * config/bfin/bfin.c: Likewise.
9666         * config/c6x/c6x.c: Likewise.
9667         * config/cr16/cr16.c: Likewise.
9668         * config/cris/cris.c: Likewise.
9669         * config/darwin-c.c: Likewise.
9670         * config/darwin.c: Likewise.
9671         * config/epiphany/epiphany.c: Likewise.
9672         * config/epiphany/mode-switch-use.c: Likewise.
9673         * config/epiphany/resolve-sw-modes.c: Likewise.
9674         * config/fr30/fr30.c: Likewise.
9675         * config/frv/frv.c: Likewise.
9676         * config/ft32/ft32.c: Likewise.
9677         * config/h8300/h8300.c: Likewise.
9678         * config/i386/i386-c.c: Likewise.
9679         * config/i386/i386.c: Likewise.
9680         * config/i386/msformat-c.c: Likewise.
9681         * config/i386/winnt-cxx.c: Likewise.
9682         * config/i386/winnt-stubs.c: Likewise.
9683         * config/i386/winnt.c: Likewise.
9684         * config/ia64/ia64-c.c: Likewise.
9685         * config/ia64/ia64.c: Likewise.
9686         * config/iq2000/iq2000.c: Likewise.
9687         * config/lm32/lm32.c: Likewise.
9688         * config/m32c/m32c-pragma.c: Likewise.
9689         * config/m32c/m32c.c: Likewise.
9690         * config/m32r/m32r.c: Likewise.
9691         * config/m68k/m68k.c: Likewise.
9692         * config/mcore/mcore.c: Likewise.
9693         * config/mep/mep-pragma.c: Likewise.
9694         * config/mep/mep.c: Likewise.
9695         * config/microblaze/microblaze-c.c: Likewise.
9696         * config/microblaze/microblaze.c: Likewise.
9697         * config/mips/mips.c: Likewise.
9698         * config/mmix/mmix.c: Likewise.
9699         * config/mn10300/mn10300.c: Likewise.
9700         * config/moxie/moxie.c: Likewise.
9701         * config/msp430/msp430-c.c: Likewise.
9702         * config/msp430/msp430.c: Likewise.
9703         * config/nds32/nds32-cost.c: Likewise.
9704         * config/nds32/nds32-fp-as-gp.c: Likewise.
9705         * config/nds32/nds32-intrinsic.c: Likewise.
9706         * config/nds32/nds32-isr.c: Likewise.
9707         * config/nds32/nds32-md-auxiliary.c: Likewise.
9708         * config/nds32/nds32-memory-manipulation.c: Likewise.
9709         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9710         * config/nds32/nds32-predicates.c: Likewise.
9711         * config/nds32/nds32.c: Likewise.
9712         * config/nios2/nios2.c: Likewise.
9713         * config/nvptx/nvptx.c: Likewise.
9714         * config/pa/pa.c: Likewise.
9715         * config/pdp11/pdp11.c: Likewise.
9716         * config/rl78/rl78-c.c: Likewise.
9717         * config/rl78/rl78.c: Likewise.
9718         * config/rs6000/rs6000-c.c: Likewise.
9719         * config/rs6000/rs6000.c: Likewise.
9720         * config/rx/rx.c: Likewise.
9721         * config/s390/s390-c.c: Likewise.
9722         * config/s390/s390.c: Likewise.
9723         * config/sh/sh-c.c: Likewise.
9724         * config/sh/sh-mem.cc: Likewise.
9725         * config/sh/sh.c: Likewise.
9726         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9727         * config/sh/sh_treg_combine.cc: Likewise.
9728         * config/sol2-c.c: Likewise.
9729         * config/sol2-cxx.c: Likewise.
9730         * config/sol2-stubs.c: Likewise.
9731         * config/sol2.c: Likewise.
9732         * config/sparc/sparc-c.c: Likewise.
9733         * config/sparc/sparc.c: Likewise.
9734         * config/spu/spu-c.c: Likewise.
9735         * config/spu/spu.c: Likewise.
9736         * config/stormy16/stormy16.c: Likewise.
9737         * config/tilegx/mul-tables.c: Likewise.
9738         * config/tilegx/tilegx-c.c: Likewise.
9739         * config/tilegx/tilegx.c: Likewise.
9740         * config/tilepro/mul-tables.c: Likewise.
9741         * config/tilepro/tilepro-c.c: Likewise.
9742         * config/tilepro/tilepro.c: Likewise.
9743         * config/v850/v850-c.c: Likewise.
9744         * config/v850/v850.c: Likewise.
9745         * config/vax/vax.c: Likewise.
9746         * config/visium/visium.c: Likewise.
9747         * config/vms/vms-c.c: Likewise.
9748         * config/vms/vms.c: Likewise.
9749         * config/vxworks.c: Likewise.
9750         * config/xtensa/xtensa.c: Likewise.
9752 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
9754         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
9755         Remove operand constraints.  Change operand 2 predicate to
9756         nonmemory operand.  Limit const_int values to mode bitsize.  Only
9757         allow const_int values less than 32 when optimizing for size.
9758         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
9759         Remove operand constraints.
9760         (*bt<mode>): Use SImode for const_int values less than 32.
9761         (regmode): Remove mode attribute.
9763 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
9765         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9766         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
9767           moxie_legitimate_address_p): New functions.
9768           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9770 2015-07-07  Tom de Vries  <tom@codesourcery.com>
9772         PR tree-optimization/66642
9773         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
9774         header comment.  Rename split_edge variable to edge_at_split.  Split
9775         exit edge to create new loop exit bb.  Insert loop exit phis in new
9776         loop exit bb.
9778 2015-07-07  Tom de Vries  <tom@codesourcery.com>
9780         * tree-cfg.c (get_virtual_phi): New function.
9781         * tree-cfg.h (get_virtual_phi): Declare.
9782         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
9783         (rewrite_virtuals_into_loop_closed_ssa): New function.
9784         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
9785         Declare.
9786         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
9787         (transform_to_exit_first_loop_alt): Use
9788         rewrite_virtuals_into_loop_closed_ssa.
9790 2015-07-07  Richard Biener  <rguenther@suse.de>
9792         * fold-const.c (fold_binary_loc): Move
9793         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
9794         * match.pd: ... here.
9795         Add (X * C1) % C2 -> 0 simplification pattern derived from
9796         extract_muldiv_1.
9798 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9800         PR target/66780
9801         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
9802         change for target/65249.
9804 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
9806         * symtab.c (address_matters_1): Fix typo in comment above.
9807         (can_increase_alignment_p): Likewise.
9809 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9811         * function.c (free_after_compilation): Clear PROP_cfg in
9812         f->curr_properties.
9814 2015-07-07  Richard Biener  <rguenther@suse.de>
9816         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9817         add which use to.
9818         (add_control_edge): Remove excessive vertical space in dumping.
9819         (process_ssa_edge_worklist): Simulate at most one statement and
9820         return whether we did.  Do not simulate PHIs if they are in a
9821         BB not yet simulated.
9822         (ssa_propagate): Adjust to always drain the BB worklist whenever
9823         a BB is available there, likewise the VARYING edges list before
9824         the interesting edge list.
9826 2015-07-07  Christian Bruel  <christian.bruel@st.com>
9828         PR target/52144
9829         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9831 2015-07-07  Richard Biener  <rguenther@suse.de>
9833         PR middle-end/66739
9834         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9835         A - B.
9837 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
9839         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
9840         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
9841         Copy operand 0 to a temporary if !ext_register_operand.  Remove
9842         ancient extract_bit_field workaround.
9843         (insv<mode>_1): Rename from mov<mode>_insv_1.
9844         (*insvqi): Rename from *movqi_insv_2.
9845         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9846         for renamed insvsi_1.
9847         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9849 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9851         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
9852         call to nvptx_reorg_subreg.
9854 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
9856         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9857         * graphite-dependencies.c, graphite-interchange.c,
9858         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9859         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9860         Likewise.
9862 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
9864         * match.pd: Remove element_mode inside HONOR_*.
9865         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9866         (~X | X -> -1, ~X ^ X -> -1): Merge.
9867         * tree.c (build_each_one_cst): New function.
9868         * tree.h (build_each_one_cst): Likewise.
9870 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9872         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9873         PROCESSOR_IAMCU.
9875 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
9877         * config.gcc <mips*-*-*>: Add fused-madd.opt.
9878         * config/mips/mips.opt (mfused-madd): Remove.
9879         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9880         * config/mips/mips.h (TARGET_MIPS8000): New.
9881         (ISA_HAS_FP_MADD4_MSUB4): Remove.
9882         (ISA_HAS_FP_MADDF_MSUBF): Remove.
9883         (ISA_HAS_FP_MADD3_MSUB3): Remove.
9884         (ISA_HAS_NMADD4_NMSUB4): Remove.
9885         (ISA_HAS_NMADD3_NMSUB3): Remove.
9886         (ISA_HAS_FUSED_MADD4): New.
9887         (ISA_HAS_UNFUSED_MADD4): New.
9888         (ISA_HAS_FUSED_MADDF): New.
9889         (ISA_HAS_FUSED_MADD3): New.
9890         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9891         (*fma<mode>4_madd3) New.
9892         (*fma<mode>4_madd4) New.
9893         (*fma<mode>4_maddf) New.
9894         (fms<mode>4) New.
9895         (*fms<mode>4_msub3) New.
9896         (*fms<mode>4_msub4) New.
9897         (fnma<mode>4) New.
9898         (*fnma<mode>4_nmadd3) New.
9899         (*fnma<mode>4_nmadd4) New.
9900         (fnms<mode>4) New.
9901         (*fnms<mode>4_nmsub3) New.
9902         (*fnms<mode>4_nmsub4) New.
9903         (*madd4<mode>) Modify to be unfused only.
9904         (*msub4<mode>) Modify to be unfused only.
9905         (*nmadd4<mode>) Modify to be unfused only.
9906         (*nmsub4<mode>) Modify to be unfused only.
9907         (*madd3<mode>) Remove.
9908         (*msub3<mode>) Remove.
9909         (*nmadd3<mode>) Remove.
9910         (*nmsub3<mode>) Remove.
9911         (*nmadd3<mode>_fastmath) Remove.
9912         (*nmsub3<mode>_fastmath) Remove.
9913         (*nmadd4<mode>_fastmath) Update condition.
9914         (*nmsub4<mode>_fastmath) Update condition.
9916 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
9918         PR target/65956
9919         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9920         alignment attribute, exploring one level down for records and arrays.
9922 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
9924         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
9925         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
9926         Copy operand 1 to a temporary if !ext_register_operand.  Remove
9927         ancient extract_bit_field workaround.
9928         (*extv<mode>): Rename from *mov<mode>_extv_1.
9929         (*extvqi): Rename from *movqi_extv_1.
9930         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
9931         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
9932         to a temporary if !ext_register_operand.  Remove ancient
9933         extract_bit_field workaround.
9934         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9935         (*extzvqi): Rename from *movqi_extzv_2.
9936         (*testqi_ext_3): Remove modes from const_int_operand predicated
9937         operands.  Add "n" constraint.
9938         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9939         operand.  Add "J" constraint.
9940         (*btsq, *btrq, *btcq peephole2s): Remove mode from
9941         const_0_to_63 predicated operand.
9942         (regmode): New insn attribute.
9943         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
9944         to nonmemory_operand.  Use regmode insn attribute.
9945         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9946         (*jcc_bt<mode>_mask): Remove mode from operand 3.
9947         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9948         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9949         operands.  Use "N" constraint instead of "n".
9951 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
9953         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9955 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9957         PR target/66749
9958         * config/i386/i386.c (iamcu_cost): New.
9959         (m_IAMCU): Likewise.
9960         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9961         (processor_target_table): Add an entry for "iamcu".
9962         (processor_alias_table): Likewise.
9963         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9964         (ix86_adjust_cost): Likewise.
9965         (ia32_multipass_dfa_lookahead): Likewise.
9966         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9967         * config/i386/x86-tune.def: Updated for m_IAMCU.
9969 2015-07-06  Richard Biener  <rguenther@suse.de>
9971         PR tree-optimization/66772
9972         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9973         values are available in the PHI node BB when there are
9974         still unexecutable edges.
9976 2015-07-06  Richard Biener  <rguenther@suse.de>
9978         PR tree-optimization/66767
9979         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9980         Make sure to build the alignment test on a SSA name without
9981         final alignment info valid only if the alignment test
9982         evaluates to true.
9984 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9986         PR target/66620
9987         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9988         loop start when inserting LSETUP.
9990 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9992         PR target/53383
9993         * config/i386/i386.c (ix86_option_override_internal): Allow
9994         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9996 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9998         * read-md.c (decimal_string): Rename to ...
9999         (md_decimal_string): ... this.
10000         (handle_enum): Reflect this.
10002 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10004         PR target/66731
10005         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10007 2015-07-06  Richard Biener  <rguenther@suse.de>
10009         PR middle-end/66759
10010         * match.pd: Add missing constraint of y to REAL_CST in
10011         REAL_CST - x CMP y to y - CST CMP x simplification.
10013 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
10015         PR tree-optimization/66757
10016         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10018 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
10019             Sandra Loosemore <sandra@codesourcery.com>
10021         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10022         Delete extern declaration.
10023         (gprel_constant_p): Add extern declaration.
10024         * config/nios2/constraints.md ("S"): Use gprel_constant_p
10025         instead of nios2_symbol_ref_in_small_data_p.
10026         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10027         (nios2_symbol_ref_in_small_data_p): Make static.
10028         (gprel_constant_p): Make non-static.
10030 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
10032         * doc/fragments.texi (Target Fragment): Convert debian.org
10033         link to use https.
10034         * doc/install.texi (Configuration): Ditto.
10036 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
10038         PR tree-optimization/66718
10039         * tree-vect-stmts.c (vectorizable_call): Replace uses of
10040         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10042         PR tree-optimization/66718
10043         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10044         vectorizable_load, vectorizable_condition): Move vectype,
10045         nunits, ncopies computation after checking what kind of statement
10046         stmt is.
10048 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10050         * target-insns.def (extv, extzv, insv): New targetm instruction
10051         patterns.
10052         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10053         interface.
10054         * recog.c (simplify_while_replacing): Likewise.
10056 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10058         * target-insns.def (doloop_begin, doloop_end): New targetm
10059         instruction patterns.
10060         * loop-init.c: Include target.h.
10061         (pass_loop2::gate): Use the new targetm patterns instead of
10062         HAVE_*/gen_* interface.
10063         (pass_rtl_doloop::gate): Likewise.
10064         (pass_rtl_doloop::execute): Remove preprocessor condition.
10065         * hw-doloop.c: Build unconditionally.
10066         * loop-doloop.c: Likewise.
10067         (doloop_optimize): Use the new targetm patterns instead of
10068         HAVE_*/gen_* interface.
10069         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10070         * modulo-sched.c (doloop_register_get): Likewise.
10072 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10074         * target-insns.def (clear_cache): New targetm instruction pattern.
10075         * builtins.c (expand_builtin___clear_cache): Use it instead of
10076         HAVE_*/gen_* interface.
10078 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10080         * target-insns.def (allocate_stack, check_stack, probe_stack)
10081         (probe_stack_address, split_stack_prologue, split_stack_space_check):
10082         New targetm instruction patterns.
10083         * explow.c (allocate_dynamic_stack_space): Use them instead of
10084         HAVE_*/gen_* interface.
10085         (emit_stack_probe): Likewise.
10086         (probe_stack_range): Likewise.
10087         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10089 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10091         * target-insns.def (stack_protect_set, stack_protect_test): New
10092         targetm instruction patterns.
10093         * cfgexpand.c (stack_protect_prologue): Use them instead of
10094         HAVE_*/gen_* interface.
10095         * function.c (stack_protect_epilogue): Likewise.
10097 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10099         * expr.h (gen_move_insn_uncast): Delete.
10100         * expr.c (gen_move_insn_uncast): Delete.
10102 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10104         * target-insns.def (restore_stack_block, restore_stack_function)
10105         (restore_stack_nonlocal, save_stack_block, save_stack_function)
10106         (save_stack_nonlocal): New targetm instruction patterns.
10107         * builtins.c (expand_builtin_apply): Use them instead of
10108         HAVE_*/gen_* interface.
10109         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10111 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10113         * target-insns.def (trap): New targetm instruction pattern.
10114         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10115         interface.
10116         * explow.c (allocate_dynamic_stack_space): Likewise.
10117         * ifcvt.c (find_if_header): Likewise.
10119 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10121         * target-insns.def (prefetch): New targetm instruction pattern.
10122         * tree-ssa-loop-prefetch.c: Include targeth.
10123         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10124         of HAVE_*/gen_* interface.
10125         * builtins.c (expand_builtin_prefetch): Likewise.
10126         * toplev.c (process_options): Likewise.
10128 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10130         * target-insns.def (untyped_call, untyped_return): New targetm
10131         instruction patterns.
10132         * builtins.c (expand_builtin_apply): Use them instead of
10133         HAVE_*/gen_* interface.
10134         (result_vector): Define unconditionally.
10136 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10138         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10139         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10140         (nonlocal_goto_receiver): New targetm instruction patterns.
10141         * builtins.c (expand_builtin_setjmp_setup): Use them instead
10142         of HAVE_*/gen_* interface.
10143         (expand_builtin_setjmp_receiver): Likewise.
10144         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10145         * except.c (expand_dw2_landing_pad_for_region): Likewise.
10147 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10149         * target.def: Add code_for_* hooks.
10150         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10151         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10152         * target-insns.def (casesi, tablejump): New targetm instruction
10153         patterns.
10154         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10155         (do_tablejump): Likewise.
10156         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10157         (expand_sjlj_dispatch_table): Likewise.
10158         * targhooks.c (default_case_values_threshold): Likewise.
10160 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
10162         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10163         Use rtx_insn * instead of rtx.
10164         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10165         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10166         (nios2_call_tls_get_addr): Likewise.
10167         (nios2_emit_expensive_div): Likewise.
10168         (nios2_emit_move_sequence): Change return type to bool.
10169         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10170         Change return type to bool.
10172 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10174         PR target/66747
10175         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10177 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
10179         PR target/66114
10180         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10181         of register_operand.  Remove constraint.
10183 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
10185         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10186         the first argument.
10188 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
10190         * attribs.c (decl_attributes): Guard inform with the return value
10191         of the preceding warning.
10193 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
10195         * doc/invoke.texi (moverride): Move to correct section.
10197 2015-07-03  Richard Biener  <rguenther@suse.de>
10199         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10200         Copy from tree.c
10201         (dt_operand::gen_gimple_expr): After valueizing operands
10202         re-canonicalize operand order for commutative tree codes.
10204 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
10206         PR target/66746.
10207         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10208         is defined.
10209         (__crc32w): Likewise.
10210         (__crc32d): Likewise.
10211         (__rdpmc): Likewise.
10212         (__rdtscp): Likewise.
10213         (_rdpmc): Likewise.
10214         (_rdtscp): Likewise.
10215         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10216         is defined.
10218 2015-07-03  Richard Biener  <rguenther@suse.de>
10220         * fold-const.c (fold_mathfn_compare): Remove.
10221         (fold_inf_compare): Likewise.
10222         (fold_comparison): Move floating point comparison simplifications...
10223         * match.pd: ... to patterns here.  Introduce simple_comparisons
10224         operator list and use it for patterns formerly in fold_comparison.
10226 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
10228         PR tree-optimization/66119
10229         * toplev.c (process_options): Don't set up default values for
10230         the sra_max_scalarization_size_{speed,size} parameters.
10231         * tree-sra (analyze_all_variable_accesses): If no values
10232         have been set for the sra_max_scalarization_size_{speed,size}
10233         parameters, call get_move_ratio to get target defaults.
10235 2015-07-03  Richard Biener  <rguenther@suse.de>
10237         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10238         * match.pd: ... here.
10240 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
10242         PR target/37072
10243         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10244         is not actually the default on FreeBSD.
10246 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10248         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10249         definition.
10250         (CMPGE_8HI): Likewise.
10251         (CMPGE_4SI): Likewise.
10252         (CMPGE_2DI): Likewise.
10253         (CMPGE_U16QI): Likewise.
10254         (CMPGE_U8HI): Likewise.
10255         (CMPGE_U4SI): Likewise.
10256         (CMPGE_U2DI): Likewise.
10257         (CMPLE_16QI): Likewise.
10258         (CMPLE_8HI): Likewise.
10259         (CMPLE_4SI): Likewise.
10260         (CMPLE_2DI): Likewise.
10261         (CMPLE_U16QI): Likewise.
10262         (CMPLE_U8HI): Likewise.
10263         (CMPLE_U4SI): Likewise.
10264         (CMPLE_U2DI): Likewise.
10265         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10266         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10267         ALTIVEC_BUILTIN_VEC_CMPLE.
10268         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10269         floating-point vector modes.
10270         (vector_nlt<mode>): New define_expand.
10271         (vector_nltu<mode>): Likewise.
10272         (vector_ngt<mode>): Likewise.
10273         (vector_ngtu<mode>): Likewise.
10275 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
10277         PR rtl-optimization/66706
10278         * combine.c (make_compound_operation): If an AND of SUBREG of
10279         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10281 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
10283         * tree-pass.h (make_pass_ch_vect): New.
10284         * passes.def: Add pass_ch_vect just before pass_if_conversion.
10286         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10287         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10288         make_pass_ch_vect): New.
10289         (pass_ch): Extend ch_base.
10291         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10292         (ch_base::copy_headers): ...here.
10294 2015-07-02  Richard Biener  <rguenther@suse.de>
10296         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10297         * fold-const.c (get_pointer_modulus_and_residue): Remove.
10298         (fold_binary_loc): Implement (T)ptr & CST in terms of
10299         get_pointer_alignment_1.
10300         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10301         Make sure to build the alignment test on a SSA name without
10302         final alignment info valid only after the prologue.
10304 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
10306         * config/cris/cris.md ("epilogue"): Remove condition.
10307         ("prologue"): Ditto.
10309 2015-07-02  Richard Biener  <rguenther@suse.de>
10311         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10312         parameter to record a condition that is false.
10313         (record_conditions): When recording an extra NE_EXPR that is
10314         true also record a EQ_EXPR that is false.
10316 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
10318         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10319         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10320         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
10321         (set_iv, find_interesting_uses_address, add_candidate_1): New
10322         argument to alloc_iv.
10323         (find_interesting_uses_op, find_interesting_uses_cond): Don't
10324         duplicate struct iv.
10325         (free_loop_data): Don't free struct iv explicitly.
10326         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10328 2015-07-01  DJ Delorie  <dj@redhat.com>
10330         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10331         (LIB_SPEC): Add.
10332         (SUPPORTS_DISCRIMINATOR): Define.
10334 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
10336         PR bootstrap/66685
10337         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10338         there are no CALLs in the same pattern.
10340 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10342         PR rtl-optimization/61047
10343         * rtlanal.c (get_initial_register_offset): New function.
10344         (rtx_addr_can_trap_p_1): Check offsets of stack references.
10346 2015-07-01  Richard Biener  <rguenther@suse.de>
10348         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10349         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10350         ~X CMP C -> X CMP' ~C to ...
10351         * match.pd: ... patterns here.
10353 2015-07-01  Nick Clifton  <nickc@redhat.com>
10355         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10356         a 16-bit value into a 20-bit memory slot.
10358 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
10360         * doc/sourcebuild.texi (AArch64-specific attributes): Document
10361         "aarch64_tiny", "aarch64_small", "aarch64_large",
10362         "aarch64_little_endian", "aarch64_big_endian".
10364 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
10366         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10367         Document "aarch64_small_fpic".
10369 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
10371         * configure.ac: Add check for aarch64 assembler -fpic relocation
10372         modifier support.
10373         * configure: Regenerate.
10374         * config.in: Regenerate.
10375         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10376         to -fPIC if not support of -fpic relocation modifier in assembler.
10378 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
10380         PR bootstrap/66685
10381         * rtl.c (classify_insn): Handle returns in PARALLELs.
10383 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
10385         PR middle-end/66633
10386         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10387         to true if the function is nested and if not optimizing.
10388         (convert_local_omp_clauses): Initialize need_frame to true if the
10389         function contains nested functions and if not optimizing.
10391 2015-07-01  Richard Biener  <rguenther@suse.de>
10393         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10394         (X & Y) ^ Y -> ~X & Y transforms to ...
10395         * match.pd: ... here.
10397 2015-07-01  Richard Biener <rguenther@suse.de>
10399         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10400         of converts to avoid uninteresting noise from the conversion
10401         simplifying patterns.
10403 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
10405         * config/c6x/c6x.c (try_rename_operands): Do not depend on
10406         gcc_assert evaluating its argument for side-effect.
10408 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
10410         PR target/64833
10411         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10412         flag_pic is set.
10414 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10416         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10417         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10418         (hash_scc): Add this_ref_p and ref_p parameters and pass them
10419         to the inner DFS walk.
10421 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
10423         * target-insns.def (jump): New targetm instruction pattern.
10424         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10425         instead of gen_jump.
10426         (fix_up_crossing_landing_pad): Likewise.
10427         (add_labels_and_missing_jumps): Likewise.
10428         (fix_crossing_conditional_branches): Likewise.
10429         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10430         (force_nonfallthru_and_redirect): Likewise.
10431         * cse.c (cse_insn): Likewise.
10432         * expmed.c (expand_divmod): Likewise.
10433         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
10434         * haifa-sched.c (init_before_recovery): Likewise.
10435         (sched_create_recovery_edges): Likewise.
10436         * ifcvt.c (find_cond_trap): Likewise.
10437         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
10438         (expand_float, expand_fix): Likewise.
10439         * stmt.c (emit_jump): Likewise.
10441 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
10443         * defaults.h (HAVE_load_multiple, gen_load_multiple)
10444         (HAVE_store_multiple, gen_store_multiple): Delete.
10445         * target-insns.def (load_multiple, store_multiple): New targetm
10446         instruction patterns.
10447         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
10448         of HAVE_*/gen_* interface.
10450 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
10452         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
10453         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
10454         (gen_mem_signal_fence): Delete.
10455         * target-insns.def (mem_signal_fence, mem_thread_fence)
10456         (memory_barrier): New targetm instruction patterns.
10457         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10458         interface.
10459         (expand_mem_signal_fence): Likewise.
10461 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
10463         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
10464         * target-insns.def (epilogue, prologue, sibcall_prologue): New
10465         targetm instruction patterns.
10466         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
10467         interface.
10468         * calls.c (expand_call): Likewise.
10469         * cfgrtl.c (cfg_layout_finalize): Likewise.
10470         * df-scan.c (df_get_entry_block_def_set): Likewise.
10471         (df_get_exit_block_use_set): Likewise.
10472         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
10473         * final.c (final_start_function): Likewise.
10474         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10475         (reposition_prologue_and_epilogue_notes): Likewise.
10476         * reorg.c (find_end_label): Likewise.
10477         * toplev.c (process_options): Likewise.
10479 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
10481         * typed-splay-tree.h: New file.
10483 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
10485         PR debug/66691
10486         * lra-int.h (lra_substitute_pseudo): Add a parameter.
10487         (lra_substitute_pseudo_within_insn): Ditto.
10488         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
10489         of constant.
10490         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
10491         to lra_substitute_pseudo.
10492         * lra-lives.c (process_bb_lives): Add an argument to
10493         lra_substitute_pseudo_within_insn call.
10494         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10495         argument to lra_substitute_pseudo and
10496         lra_substitute_pseudo_within_insn calls.
10497         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10499 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
10501         * configure: Regenerated.
10503 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
10505         * config.gcc: Support i[34567]86-*-elfiamcu target.
10506         * config/i386/iamcu.h: New.
10507         * config/i386/i386.opt: Add -miamcu.
10508         * doc/invoke.texi: Document -miamcu.
10509         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
10510         off x87/MMX/SSE/AVX codegen for -miamcu.
10511         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10512         __iamcu/__iamcu__ for -miamcu.
10513         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
10514         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
10515         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
10516         * config/i386/i386.c (ix86_option_override_internal): Ignore and
10517         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
10518         MCU by default.  Default long double to 64-bit for Intel MCU.
10519         Turn on -freg-struct-return for Intel MCU.  Issue an error when
10520         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
10521         AVX is turned on.
10522         (function_arg_advance_32): Pass value whose size is no larger
10523         than 8 bytes in registers for Intel MCU.
10524         (function_arg_32): Likewise.
10525         (ix86_return_in_memory): Return value whose size is no larger
10526         than 8 bytes in registers for Intel MCU.
10527         (iamcu_alignment): New function.
10528         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10529         true.
10530         (ix86_local_alignment): Don't increase alignment for Intel MCU.
10531         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10532         true.
10534 2015-06-30  Marek Polacek  <polacek@redhat.com>
10536         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
10537         both operands of the resulting expression.
10539         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
10540         the final expression with the operand's type and then convert
10541         it to the type of the expression.
10543 2015-06-30  Richard Biener  <rguenther@suse.de>
10545         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10546         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10547         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10548         * match.pd: ... to patterns here.
10550 2015-06-30  Richard Biener  <rguenther@suse.de>
10552         PR tree-optimization/66704
10553         * tree-vect-data-refs.c (vect_setup_realignment): Use
10554         make_ssa_name for non-SSA name source.
10556 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10558         PR middle-end/66702
10559         * omp-low.c (simd_clone_adjust): Handle addressable linear
10560         or uniform parameters or non-gimple type uniform parameters.
10562 2015-06-30  Richard Biener  <rguenther@suse.de>
10564         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10565         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10566         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10567         * match.pd: ... here.
10568         Add a few cases of A - B -> A + (-B) when B "easily" negates.
10569         Move (x & y) | x -> x and friends before
10570         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10572 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10574         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10575         -mfix-ut699 is not specified.
10576         (leon3_load): Rename into...
10577         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
10578         is specified.
10580 2015-06-30  Marek Polacek  <polacek@redhat.com>
10582         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10583         * match.pd: ... here.
10585 2015-06-30  Richard Biener  <rguenther@suse.de>
10587         * target-insns.def (canonicalize_funcptr_for_compare): Add.
10588         * fold-const.c (build_range_check): Replace uses of
10589         HAVE_canonicalize_funcptr_for_compare.
10590         (fold_widened_comparison): Likewise.
10591         (fold_sign_changed_comparison): Likewise.
10592         * dojump.c: Include "target.h".
10593         (do_compare_and_jump): Replace uses of
10594         HAVE_canonicalize_funcptr_for_compare and
10595         gen_canonicalize_funcptr_for_compare.
10596         * expr.c (do_store_flag): Likewise.
10598 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10600         PR tree-optimization/66652
10601         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10602         max_loop_iterations to determine if nit + 1 overflows.
10604 2015-06-30  Richard Biener  <rguenther@suse.de>
10606         * tree-vrp.c (register_edge_assert_for_2): Also register
10607         asserts for dominating conversion results.
10609 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
10611         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10612         field in struct iv.
10614 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
10616         PR target/66509
10617         * configure.ac: Fix filds and fildq test for 64-bit.
10618         * configure: Regenerated.
10620 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10622         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10623         (nvptx_reorg): Here.  Keep the non-subreg pieces.
10625 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
10627         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10628         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10630 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
10632         * config/i386/i386.md (*jcc_1): Use %! in asm template.
10633         Set attribute "length_nobnd" instead of "length".
10634         (*jcc_2): Ditto.
10635         (jump): Ditto.
10636         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10638 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
10640         * config/nios2/nios2.c (nios2_delegitimize_address): Make
10641         assert less restrictive.
10643 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10645         PR fortran/66605
10646         * cgraphunit.c (cgraph_node::finalize_function): Do not call
10647         do_warn_unused_parameter.
10648         * function.c (do_warn_unused_parameter): Move from here.
10649         * function.h (do_warn_unused_parameter): Do not declare.
10651 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10653         PR target/65697
10654         * gcc.target/arm/armv-sync-comp-swap.c: New.
10655         * gcc.target/arm/armv-sync-op-acquire.c: New.
10656         * gcc.target/arm/armv-sync-op-full.c: New.
10657         * gcc.target/arm/armv-sync-op-release.c: New.
10659 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10661         PR target/65697
10662         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10663         initial acquire barrier with final barrier.
10665 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10667         PR target/65697
10668         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10669         initial acquire barrier with final barrier.
10671 2015-06-29  Richard Henderson  <rth@redhat.com>
10673         * config/i386/constraints.md (Bf): New constraint.
10674         * config/i386/i386-c.c (ix86_target_macros): Define
10675         __GCC_ASM_FLAG_OUTPUTS__.
10676         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10677         as flags outputs.
10678         * doc/extend.texi (FlagOutputOperands): Document them.
10680 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
10682         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10683         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10684         unspec name.
10685         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10686         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10687         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10688         (aarch64_symbol_context): Ditto.
10689         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10690         and use new pattern name.
10691         (aarch64_expand_mov_immediate): Ditto.
10692         (aarch64_print_operand): Ditto.
10693         (aarch64_classify_tls_symbol): Ditto.
10695 2015-06-29  Marek Polacek  <polacek@redhat.com>
10696             Marc Glisse  <marc.glisse@inria.fr>
10698         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10699         * match.pd: ... pattern here.
10701 2015-06-29  Tom de Vries  <tom@codesourcery.com>
10703         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10704         function structure.
10706 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10708         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10709         feature description, split out the native option, add a link to
10710         the feature documentation, rearrange and slightly rewrite text.
10711         (Aarch64 options, -mcpu): Likewise.
10712         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
10713         +rdma implies Adv. SIMD.
10715 2015-06-29  Marek Polacek  <polacek@redhat.com>
10717         PR c/66322
10718         * function.c (stack_protect_epilogue): Remove a cast to int.
10719         * doc/invoke.texi: Update -Wswitch-bool description.
10721 2015-06-29  Richard Biener  <rguenther@suse.de>
10723         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10724         * fold-const.c (fold_binary_loc): Move &A - &B simplification
10725         via ptr_difference_const ...
10726         * match.pd: ... here.
10727         When matching (X ^ Y) == Y also match with swapped operands.
10729 2015-06-29  Richard Biener  <rguenther@suse.de>
10731         * lto-streamer.h (LTO_major_version): Bump to 5.
10733 2015-06-29  Richard Biener  <rguenther@suse.de>
10735         PR tree-optimization/66677
10736         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10737         STMT_VINFO_VEC_STMT clobbering less strict.
10739 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
10741         PR middle-end/64130
10742         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10743         division, compute max and min when value ranges for dividend and
10744         divisor are available.
10746 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
10747             Sandra Loosemore <sandra@codesourcery.com>
10749         * regrename.h (regrename_do_replace): Change to return bool.
10750         * regrename.c (rename_chains): Check return value of
10751         regname_do_replace.
10752         (regrename_do_replace): Re-validate the modified insns and
10753         return bool status.
10754         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10755         Update to match rename_chains changes.
10756         * config/c6x/c6x.c (try_rename_operands): Assert that
10757         regrename_do_replace returns true.
10759 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
10761         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
10762         operand 2 here.  Use copy_addr_to_reg to copy non-index
10763         register operand 2 to a temporary.
10764         (<mode>_stx): Ditto for operand 1.
10765         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
10766         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
10767         (ix86_store_bounds): Ditto.
10769 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
10771         * print-tree.c (print_node) [TREE_VEC]: Print its length.
10773 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
10775         * gimple.c (gimple_call_set_fndecl): Remove.
10776         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
10777         build1_loc directly instead of build_fold_addr_expr_loc.
10779 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
10781         * hash-map.h (hash_map::traverse): Use the definition of the
10782         Key typedef rather than the typedef itself.
10784 2015-06-26  Martin Jambor  <mjambor@suse.cz>
10786         PR debug/66301
10787         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
10788         NULL instead of calling dump_enabled_p.
10790 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10792         * config/aarch64/aarch64.opt: (override): New.
10793         * doc/invoke.texi (override): Document.
10794         * config/aarch64/aarch64.c (aarch64_flag_desc): New
10795         (aarch64_fusible_pairs): Likewise.
10796         (aarch64_tuning_flags): Likewise.
10797         (aarch64_tuning_override_function): Likewise.
10798         (aarch64_tuning_override_functions): Likewise.
10799         (aarch64_parse_one_option_token): Likewise.
10800         (aarch64_parse_boolean_options): Likewise.
10801         (aarch64_parse_fuse_string): Likewise.
10802         (aarch64_parse_tune_string): Likewise.
10803         (aarch64_parse_one_override_token): Likewise.
10804         (aarch64_parse_override_string): Likewise.
10805         (aarch64_override_options): Parse the -override string if it
10806         is present.
10808 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10810         * config/aarch64/aarch64-protos.h (tune_params): Remove
10811         const from members.
10812         (aarch64_tune_params): Remove const, change to no longer be
10813         a pointer.
10814         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10815         change to no longer be a pointer, initialize to generic_tunings.
10816         (aarch64_min_divisions_for_recip_mul): Change dereference of
10817         aarch64_tune_params to member access.
10818         (aarch64_reassociation_width): Likewise.
10819         (aarch64_rtx_mult_cost): Likewise.
10820         (aarch64_address_cost): Likewise.
10821         (aarch64_branch_cost): Likewise.
10822         (aarch64_rtx_costs): Likewise.
10823         (aarch64_register_move_cost): Likewise.
10824         (aarch64_memory_move_cost): Likewise.
10825         (aarch64_sched_issue_rate): Likewise.
10826         (aarch64_builtin_vectorization_cost): Likewise.
10827         (aarch64_override_options): Take a copy of the selected tuning
10828         struct in to aarch64_tune_params, rather than just setting
10829         a pointer, change dereferences of aarch64_tune_params to member
10830         accesses.
10831         (aarch64_override_options_after_change): Change dereferences of
10832         aarch64_tune_params to member access.
10833         (aarch64_macro_fusion_p): Likewise.
10834         (aarch_macro_fusion_pair_p): Likewise.
10835         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10837 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10839         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10840         (aarch64_tune_flags): Likewise.
10841         (AARCH64_TUNE_FMA_STEERING): Likewise.
10842         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10843         to AARCH64_FL_USE_FMA_STEERING_PASS.
10844         (cortex-a57.cortex-a53): Likewise.
10845         (cortex-a72): Use cortexa72_tunings.
10846         (cortex-a72.cortex-a53): Likewise.
10847         (exynos-m1): Likewise.
10848         * config/aarch64/aarch64-protos.h (tune_params): Add
10849         a field: extra_tuning_flags.
10850         * config/aarch64/aarch64-tuning-flags.def: New.
10851         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10852         (aarch64_extra_tuning_flags): Likewise.
10853         (aarch64_tune_params): Declare here.
10854         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10855         (cortexa53_tunings): Likewise.
10856         (cortexa57_tunings): Likewise.
10857         (thunderx_tunings): Likewise.
10858         (xgene1_tunings): Likewise.
10859         (cortexa72_tunings): New.
10860         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10861          (gate): Check against aarch64_tune_params.
10862         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10863         aarch64-protos.h.
10865 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10867         * config/aarch64/aarch64-fusion-pairs.def: New.
10868         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10869         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10870         aarch64_fusion_pairs.
10871         (AARCH64_FUSE_MOV_MOVK): Likewise.
10872         (AARCH64_FUSE_ADRP_ADD): Likewise.
10873         (AARCH64_FUSE_MOVK_MOVK): Likewise.
10874         (AARCH64_FUSE_ADRP_LDR): Likewise.
10875         (AARCH64_FUSE_CMP_BRANCH): Likewise.
10877 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
10879         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10880         SYMBOL_SMALL_GOT_28K.
10881         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10882         relocation modifiers.
10883         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10884         (ldr_got_small_28k_<mode>): New.
10885         (ldr_got_small_28k_sidi): New.
10886         * config/aarch64/iterators.md (got_modifier): New mode iterator.
10887         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10888         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10889         SYMBOL_SMALL_GOT_28K.
10890         (aarch64_rtx_costs): Add costs for new instruction sequences.
10891         (initialize_aarch64_code_model): Initialize new model.
10892         (aarch64_classify_symbol): Recognize new model and new symbol classification.
10893         (aarch64_asm_preferred_eh_data_format): Support new model.
10894         (aarch64_load_symref_appropriately): Generate new instruction
10895         sequences for -fpic.
10896         (TARGET_USE_PSEUDO_PIC_REG): New definition.
10897         (aarch64_use_pseudo_pic_reg): New function.
10899 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
10901         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10902         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10903         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10904         (aarch64_expand_mov_immediate): Ditto.
10905         (aarch64_print_operand): Ditto.
10906         (aarch64_classify_symbol): Ditto.
10908 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
10910         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10912 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
10914         PR bootstrap/66638
10915         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10916         assertion failed.  Remove assertion itself.
10918 2015-06-26  Richard Biener  <rguenther@suse.de>
10920         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10921         and -A CMP CST -> A CMP -CST which is redundant with a pattern
10922         in match.pd.
10923         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10924         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10925         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10926         * match.pd: ... patterns here.
10928 2015-06-26  Marek Polacek  <polacek@redhat.com>
10930         * match.pd ((x | y) & ~(x & y) -> x ^ y,
10931         (x | y) & (~x ^ y) -> x & y): New patterns.
10933 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
10935         * rtl.h (emit): Add an optional boolean parameter to control
10936         whether barriers are emitted.
10937         * emit-rtl.c (emit): Likewise.
10938         * gensupport.c (get_emit_function): Return null rather than "emit".
10939         * genemit.c (gen_emit_seq): Handle the null return value.
10940         Don't emit barriers after the final instruction in the sequence.
10941         * gentarget-def.c (main): Don't emit barriers after the instruction.
10943 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10945         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10946         TARGET_UNIFIED_ASM.
10948 2015-06-26  Richard Biener  <rguenther@suse.de>
10950         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10952 2015-06-26  Richard Biener  <rguenther@suse.de>
10954         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10955         irrespective on whether the inner operation has a single use
10956         of both off are constant.
10958 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
10959             Segher Boessenkool  <segher@kernel.crashing.org>
10961         PR target/66412
10962         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10963         before doing PUT_MODE or PUT_CODE on operands to avoid
10964         in-place RTX modification.
10966 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10968         * gentarget-def.c (def_target_insn): Cast return of strtol to
10969         unsigned int.
10971 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10973         * gimple.h (gimple_call_set_fn): Move inline function.
10974         * gimple.c (gimple_call_set_fn): Relocate here.
10976 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
10978         PR target/65979
10979         PR target/66611
10980         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10981         the replacement insn will work.
10983 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10985         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10986         by default.
10988 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10990         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10991         * cgraph.h: Include ipa-ref.h and plugin-api.h.
10992         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10993         (symtab_node::address_can_be_compared_p): Move function.
10994         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10995         definition here.
10996         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10997         * auto-profile.c: Likewise.
10998         * bb-reorder.c: Likewise.
10999         * builtins.c: Likewise.
11000         * calls.c: Likewise.
11001         * cfgexpand.c: Likewise.
11002         * cgraphbuild.c: Likewise.
11003         * cgraphclones.c: Likewise.
11004         * cgraphunit.c: Likewise.
11005         * combine.c: Likewise.
11006         * coverage.c: Likewise.
11007         * data-streamer-in.c: Likewise.
11008         * data-streamer-out.c: Likewise.
11009         * data-streamer.c: Likewise.
11010         * dbxout.c: Likewise.
11011         * dwarf2out.c: Likewise.
11012         * except.c: Likewise.
11013         * expr.c: Likewise.
11014         * final.c: Likewise.
11015         * fold-const.c: Likewise.
11016         * ggc-page.c: Likewise.
11017         * gimple-fold.c: Likewise.
11018         * gimple-iterator.c: Likewise.
11019         * gimple-pretty-print.c: Likewise.
11020         * gimple-streamer-in.c: Likewise.
11021         * gimple-streamer-out.c: Likewise.
11022         * gimple.c: Likewise.
11023         * gimplify.c: Likewise.
11024         * ipa-chkp.c: Likewise.
11025         * ipa-comdats.c: Likewise.
11026         * ipa-cp.c: Likewise.
11027         * ipa-devirt.c: Likewise.
11028         * ipa-icf-gimple.c: Likewise.
11029         * ipa-icf.c: Likewise.
11030         * ipa-inline-analysis.c: Likewise.
11031         * ipa-inline-transform.c: Likewise.
11032         * ipa-inline.c: Likewise.
11033         * ipa-polymorphic-call.c: Likewise.
11034         * ipa-profile.c: Likewise.
11035         * ipa-prop.c: Likewise.
11036         * ipa-pure-const.c: Likewise.
11037         * ipa-ref.c: Likewise.
11038         * ipa-reference.c: Likewise.
11039         * ipa-split.c: Likewise.
11040         * ipa-utils.c: Likewise.
11041         * ipa-visibility.c: Likewise.
11042         * ipa.c: Likewise.
11043         * langhooks.c: Likewise.
11044         * lto-cgraph.c: Likewise.
11045         * lto-compress.c: Likewise.
11046         * lto-opts.c: Likewise.
11047         * lto-section-in.c: Likewise.
11048         * lto-section-out.c: Likewise.
11049         * lto-streamer-in.c: Likewise.
11050         * lto-streamer-out.c: Likewise.
11051         * lto-streamer.c: Likewise.
11052         * omp-low.c: Likewise.
11053         * opts-global.c: Likewise.
11054         * passes.c: Likewise.
11055         * predict.c: Likewise.
11056         * print-tree.c: Likewise.
11057         * profile.c: Likewise.
11058         * ree.c: Likewise.
11059         * sanopt.c: Likewise.
11060         * stor-layout.c: Likewise.
11061         * symtab.c: Likewise.
11062         * toplev.c: Likewise.
11063         * trans-mem.c: Likewise.
11064         * tree-cfg.c: Likewise.
11065         * tree-chkp.c: Likewise.
11066         * tree-eh.c: Likewise.
11067         * tree-emutls.c: Likewise.
11068         * tree-inline.c: Likewise.
11069         * tree-nested.c: Likewise.
11070         * tree-parloops.c: Likewise.
11071         * tree-pretty-print.c: Likewise.
11072         * tree-profile.c: Likewise.
11073         * tree-sra.c: Likewise.
11074         * tree-ssa-alias.c: Likewise.
11075         * tree-ssa-live.c: Likewise.
11076         * tree-ssa-loop-ivcanon.c: Likewise.
11077         * tree-ssa-loop-ivopts.c: Likewise.
11078         * tree-ssa-pre.c: Likewise.
11079         * tree-ssa-sccvn.c: Likewise.
11080         * tree-ssa-strlen.c: Likewise.
11081         * tree-ssa-structalias.c: Likewise.
11082         * tree-streamer-in.c: Likewise.
11083         * tree-streamer-out.c: Likewise.
11084         * tree-streamer.c: Likewise.
11085         * tree-switch-conversion.c: Likewise.
11086         * tree-tailcall.c: Likewise.
11087         * tree-vect-data-refs.c: Likewise.
11088         * tree-vect-stmts.c: Likewise.
11089         * tree-vectorizer.c: Likewise.
11090         * tree.c: Likewise.
11091         * tsan.c: Likewise.
11092         * ubsan.c: Likewise.
11093         * value-prof.c: Likewise.
11094         * varasm.c: Likewise.
11095         * varpool.c: Likewise.
11096         * config/arm/arm.c: Likewise.
11097         * config/bfin/bfin.c: Likewise.
11098         * config/c6x/c6x.c: Likewise.
11099         * config/cris/cris.c: Likewise.
11100         * config/darwin-c.c: Likewise.
11101         * config/darwin.c: Likewise.
11102         * config/i386/i386.c: Likewise.
11103         * config/i386/winnt.c: Likewise.
11104         * config/microblaze/microblaze.c: Likewise.
11105         * config/mips/mips.c: Likewise.
11106         * config/rs6000/rs6000.c: Likewise.
11107         * config/rx/rx.c: Likewise.
11108         * config/s390/s390.c: Likewise.
11109         * config/tilegx/mul-tables.c: Likewise.
11111 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11113         * config/aarch64/aarch64.c, config/alpha/alpha.c,
11114         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11115         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11116         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11117         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11118         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11119         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11120         config/microblaze/microblaze.c, config/mips/mips.c,
11121         config/mmix/mmix.c, config/mn10300/mn10300.c,
11122         config/moxie/moxie.c, config/msp430/msp430.c,
11123         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11124         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11125         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11126         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11127         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11128         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11129         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11130         target-def.h include.
11131         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
11133 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11135         * Makefile.in (TARGET_DEF): Add target-insns.def.
11136         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11137         (build/gentarget-def.o): New rule.
11138         (genprogrtl): Add target-def.
11139         * target-insns.def, gentarget-def.c: New files.
11140         * target.def: Add targetm.have_* and targetm.gen_* hooks,
11141         based on the contents of target-insns.def.
11142         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11143         (HAVE_return, gen_return): Delete.
11144         * target-def.h: Include insn-target-def.h.
11145         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11146         instead of direct calls.  Rely on them to do the appropriate assertions.
11147         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
11148         (convert_jumps_to_returns): Use targetm interface instead of
11149         direct calls.
11150         (thread_prologue_and_epilogue_insns): Likewise.
11151         * reorg.c (find_end_label, dbr_schedule): Likewise.
11152         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11153         * shrink-wrap.c (convert_to_simple_return): Likewise.
11154         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11156 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11158         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11159         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11160         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11161         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11162         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11163         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11164         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11165         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11166         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11167         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11168         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11169         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11170         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11171         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11172         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11173         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11174         includes to end.
11176 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11178         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11179         (unbounded_int_hashmap_traits::key_type): Likewise.
11180         * hash-map.h (hash_map): Get the key type from the traits.
11181         * hash-traits.h (default_hash_traits): By default, inherit from the
11182         template parameter.
11183         * alias.c (alias_set_traits): Delete.
11184         (alias_set_entry_d::children): Use alias_set_hash as the first
11185         template parameter.
11186         (record_alias_subset): Update accordingly.
11187         * except.c (tree_hash_traits): Delete.
11188         (type_to_runtime_map): Use tree_hash as the first template parameter.
11189         (init_eh): Update accordingly.
11190         * genmatch.c (capture_id_map_hasher): Delete.
11191         (cid_map_t): Use nofree_string_hash as first template parameter.
11192         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11193         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11194         Use symbol_compare_hash as the first template parameter in
11195         subdivide_hash_map.
11196         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11197         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11198         template parameter.
11199         * passes.c (pass_registry_hasher): Delete.
11200         (name_to_pass_map): Use nofree_string_hash as the first template
11201         parameter.
11202         (register_pass_name): Update accordingly.
11203         * sanopt.c (sanopt_tree_map_traits): Delete.
11204         (sanopt_tree_triplet_map_traits): Delete.
11205         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11206         template parameter.
11207         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11208         the first template parameter.
11209         * sese.c (rename_map_hasher): Delete.
11210         (rename_map_type): Use tree_ssa_name_hash as the first template
11211         parameter.
11212         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11213         (function_summary::m_map): Use map_hash as the first template
11214         parameter.
11215         (function_summary::release): Update accordingly.
11216         * tree-if-conv.c (phi_args_hash_traits): Delete.
11217         (predicate_scalar_phi): Use tree_operand_hash as the first template
11218         parameter to phi_arg_map.
11219         * tree-inline.h (dependence_hasher): Delete.
11220         (copy_body_data::dependence_map): Use dependence_hash as the first
11221         template parameter.
11222         * tree-inline.c (remap_dependence_clique): Update accordingly.
11223         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11224         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11225         parameter.
11226         (addr_stridxptr): Update accordingly.
11227         * value-prof.c (profile_id_traits): Delete.
11228         (cgraph_node_map): Use profile_id_hash as the first template
11229         parameter.
11230         (init_node_map): Update accordingly.
11231         * config/alpha/alpha.c (string_traits): Delete.
11232         (machine_function::links): Use nofree_string_hash as the first
11233         template parameter.
11234         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11235         * config/m32c/m32c.c (pragma_traits): Delete.
11236         (pragma_htab): Use nofree_string_hash as the first template parameter.
11237         (m32c_note_pragma_address): Update accordingly.
11238         * config/mep/mep.c (pragma_traits): Delete.
11239         (pragma_htab): Use nofree_string_hash as the first template parameter.
11240         (mep_note_pragma_flag): Update accordingly.
11241         * config/mips/mips.c (mips16_flip_traits): Delete.
11242         (mflip_mips16_htab): Use nofree_string_hash as the first template
11243         parameter.
11244         (mflip_mips16_use_mips16_p): Update accordingly.
11245         (local_alias_traits): Delete.
11246         (mips16_local_aliases): Use nofree_string_hash as the first template
11247         parameter.
11248         (mips16_local_alias): Update accordingly.
11250 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11252         * hash-map-traits.h (default_hashmap_traits): Delete.
11254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11256         * hash-map-traits.h (unbounded_hashmap_traits): New class.
11257         (unbounded_int_hashmap_traits): Likewise.
11258         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11260 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11262         * ipa-icf.h (symbol_compare_hash): New class.
11263         (symbol_compare_hashmap_traits): Use it.
11264         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11265         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11266         (mem_alloc_description::reverse_mem_map_t): Remove redundant
11267         default_hashmap_traits.
11268         * sanopt.c (sanopt_tree_triplet_hash): New class.
11269         (sanopt_tree_triplet_map_traits): Use it.
11271 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11273         * gengtype-parse.c (require_template_declaration): Allow '+' in
11274         template parameters.  Consolidate cases.
11275         * hash-traits.h (int_hash): New class.
11276         * alias.c (alias_set_hash): New structure.
11277         (alias_set_traits): Use it.
11278         * symbol-summary.h (function_summary::map_hash): New class.
11279         (function_summary::summary_hashmap_traits): Use it.
11280         * tree-inline.h (dependence_hash): New class.
11281         (dependence_hasher): Use it.
11282         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11283         * value-prof.c (profile_id_hash): New class.
11284         (profile_id_traits): Use it.
11286 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11288         * config/mips/mips.c (mips16_flip_traits): Use it.
11289         (local_alias_traits, mips16_local_aliases): Convert from a map of
11290         rtxes to a map of symbol names.
11291         (mips16_local_alias): Update accordingly.
11293 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11295         * hash-traits.h (string_hash, nofree_string_hash): New classes.
11296         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11297         * passes.c (pass_registry_hasher): Likewise.
11298         * config/alpha/alpha.c (string_traits): Likewise.
11299         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11300         * config/m32c/m32c.c (pragma_traits): Likewise.
11301         * config/mep/mep.c (pragma_traits): Likewise.
11303 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11305         * tree-hash-traits.h (tree_hash): New class.
11306         * except.c: Include tree-hash-traits.h.
11307         (tree_hash_traits): Use tree_hash.
11309 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11311         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11312         * sese.c: Include tree-hash-traits.h.
11313         (rename_map_hasher): Use tree_ssa_name_hasher.
11315 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11317         * tree-hash-traits.h (tree_decl_hash): New class.
11318         * tree-ssa-strlen.c: Include tree-hash-traits.h.
11319         (stridxlist_hash_traits): Use tree_decl_hash.
11321 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11323         * tree-hash-traits.h: New file.
11324         (tree_operand_hash): New class.
11325         * sanopt.c: Include tree-hash-traits.h.
11326         (sanopt_tree_map_traits): Use tree_operand_hash.
11327         * tree-if-conv.c: Include tree-hash-traits.h.
11328         (phi_args_hash_traits): Use tree_operand_hash.
11329         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11330         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11332 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11334         * hash-map-traits.h: Include hash-traits.h.
11335         (simple_hashmap_traits): New class.
11336         * mem-stats.h (hash_map): Change the default traits to
11337         simple_hashmap_traits<default_hash_traits<Key> >.
11339 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11341         * hash-table.h: Update comments.
11343 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11345         * hash-traits.h (default_hash_traits): New structure.
11346         * hash-set.h (default_hashset_traits): Delete.
11347         (hash_set): Use default_hash_traits<Key> instead of
11348         default_hashset_traits.  Delete hash_entry type and use Key directly.
11349         * ipa-devirt.c (pair_traits): Delete.
11350         (default_hash_traits <type_pair>): Override.
11351         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11352         (odr_types_equivalent_p, add_type_duplicate): Likewise.
11354 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11356         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11358 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11360         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11361         (has_is_empty, is_empty_helper): Delete.
11362         (has_mark_deleted, mark_deleted_helper): Delete.
11363         (has_mark_empty, mark_empty_helper): Delete.
11364         (hash_table::is_deleted): Call the Descriptor unconditionally.
11365         (hash_table::is_empty): Likewise.
11366         (hash_table::mark_deleted): Likewise.
11367         (hash_table::mark_empty): Likewise.
11369 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11371         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
11372         redundant typedefs and members.
11373         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
11374         redundant typedefs.
11375         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11376         * ipa-devirt.c (odr_name_hasher): Likewise.
11377         (polymorphic_call_target_hasher): Likewise.
11378         * ira-costs.c (cost_classes_hasher): Likewise.
11379         * statistics.c (stats_counter_hasher): Likewise.
11380         * trans-mem.c (log_entry_hasher): Likewise.
11381         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11382         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11383         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11384         * var-tracking.c (variable_hasher): Likewise.
11385         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11386         Remove redundant typedefs and members.
11388 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11390         * hash-traits.h (ggc_cache_hasher): Rename to...
11391         (ggc_cache_remove): ...this and remove typedefs.
11392         (ggc_cache_ptr_hash): New class.
11393         * hash-table.h: Update commentary.
11394         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11395         rather than ggc_cache_hasher.
11396         (const_wide_int_hasher, reg_attr_hasher): Likewise.
11397         (const_double_hasher, const_fixed_hasher): Likewise.
11398         * function.c (insn_cache_hasher): Likewise.
11399         * trans-mem.c (tm_wrapper_hasher): Likewise.
11400         * tree.h (tree_decl_map_cache_hasher): Likewise.
11401         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11402         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11403         * ubsan.c (tree_type_map_cache_hasher): Likewise.
11404         * varasm.c (tm_clone_hasher): Likewise.
11405         * config/i386/i386.c (dllimport_hasher): Likewise.
11406         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11407         (tree_hasher): Likewise.
11409 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11411         * hash-traits.h (ggc_hasher): Rename to...
11412         (ggc_remover): ...this and remove typedefs.
11413         (ggc_cache_hasher): Update accordingly.  Add typedefs.
11414         (ggc_ptr_hash): New class.
11415         * hash-table.h: Update comment.
11416         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11417         ggc_hasher.
11418         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11419         (tree_descriptor_hasher): Likewise.
11420         * cgraph.c (function_version_hasher): Likewise.
11421         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11422         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11423         (dw_loc_list_hasher, addr_hasher): Likewise.
11424         * function.h (used_type_hasher): Likewise.
11425         * function.c (temp_address_hasher): Likewise.
11426         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11427         * libfuncs.h (libfunc_hasher): Likewise.
11428         * lto-streamer.h (decl_state_hasher): Likewise.
11429         * optabs.c (libfunc_decl_hasher): Likewise.
11430         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
11431         * varasm.c (section_hasher, object_block_hasher): Likewise.
11432         (const_rtx_desc_hasher): Likewise.
11433         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
11434         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
11436 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11438         * hash-traits.h (free_ptr_hash): New class.
11439         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
11440         rather than typed_free_remove.  Remove redudant typedefs.
11441         (external_ref_hasher): Likewise.
11442         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
11443         (ehspec_hasher): Likewise.
11444         * ggc-common.c (saving_hasher): Likewise.
11445         * gimplify.c (gimplify_hasher): Likewise.
11446         * haifa-sched.c (delay_i2_hasher): Likewise.
11447         * loop-invariant.c (invariant_expr_hasher): Likewise.
11448         * loop-iv.c (biv_entry_hasher): Likewise.
11449         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
11450         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
11451         * tree-cfg.c (locus_discrim_hasher): Likewise.
11452         * tree-eh.c (finally_tree_hasher): Likewise.
11453         * tree-into-ssa.c (var_info_hasher): Likewise.
11454         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
11455         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
11456         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
11457         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
11458         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
11459         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
11460         (shared_bitmap_hasher): Likewise.
11461         * tree-ssa-threadupdate.c (redirection_data): Likewise.
11462         * tree-vectorizer.h (peel_info_hasher): Likewise.
11463         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
11464         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
11466 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11468         * hash-table.h: Update comments.
11469         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
11470         (nofree_ptr_hash): New class.
11471         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
11472         than typed_noop_remove.  Remove redudant typedefs.
11473         * attribs.c (attribute_hasher): Likewise.
11474         * cfg.c (bb_copy_hasher): Likewise.
11475         * cselib.c (cselib_hasher): Likewise.
11476         * dse.c (invariant_group_base_hasher): Likewise.
11477         * dwarf2cfi.c (trace_info_hasher): Likewise.
11478         * dwarf2out.c (macinfo_entry_hasher): Likewise.
11479         (comdat_type_hasher, loc_list_hasher): Likewise.
11480         * gcse.c (pre_ldst_expr_hasher): Likewise.
11481         * genmatch.c (id_base): Likewise.
11482         * genrecog.c (test_pattern_hasher): Likewise.
11483         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11484         * haifa-sched.c (delay_i1_hasher): Likewise.
11485         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11486         * ipa-icf.h (congruence_class_group_hash): Likewise.
11487         * ipa-profile.c (histogram_hash): Likewise.
11488         * ira-color.c (allocno_hard_regs_hasher): Likewise.
11489         * lto-streamer.h (string_slot_hasher): Likewise.
11490         * lto-streamer.c (tree_entry_hasher): Likewise.
11491         * plugin.c (event_hasher): Likewise.
11492         * postreload-gcse.c (expr_hasher): Likewise.
11493         * store-motion.c (st_expr_hasher): Likewise.
11494         * tree-sra.c (uid_decl_hasher): Likewise.
11495         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11496         (ssa_name_var_hash): Likewise.
11497         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11498         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11499         * tree-ssa-pre.c (pre_expr_d): Likewise.
11500         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11501         * vtable-verify.h (registration_hasher): Likewise.
11502         * vtable-verify.c (vtbl_map_hasher): Likewise.
11503         * config/arm/arm.c (libcall_hasher): Likewise.
11504         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
11505         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
11506         * config/sol2.c (comdat_entry_hasher): Likewise.
11507         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
11508         (print_fold_checksum, fold_checksum_tree): Likewise.
11509         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
11510         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
11511         (fold_build_call_array_loc): Likewise.
11512         * tree-ssa-ccp.c (gimple_htab): Likewise.
11513         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
11514         rather than pointer_type.
11516 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11518         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
11519         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
11521 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11523         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11524         (ggc_hasher::ggc_mx): Likewise.
11525         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
11526         that duplicate ggc_hasher ones.
11528 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11530         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11531         (gt_cleare_cache): Check here for deleted and empty entries.
11532         Replace handle_cache_entry with a call to keep_cache_entry.
11533         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11534         (ggc_cache_hasher::keep_cache_entry): New function.
11535         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11536         (tm_wrapper_hasher::keep_cache_entry): New function.
11537         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11538         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11539         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11540         (type_cache_hasher::keep_cache_entry): New function.
11541         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11542         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11543         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11544         (tree_type_map_cache_hasher::keep_cache_entry): New function.
11545         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11546         (tm_clone_hasher::keep_cache_entry): New function.
11547         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11548         (dllimport_hasher::keep_cache_entry): New function.
11550 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11552         * hash-table.h: Include hash-traits.h.
11553         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11554         (ggc_cache_hasher): Move to...
11555         * hash-traits.h: ...this new file.
11557 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11559         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11560         struct cl_optimization.
11561         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11562         * tree.c (make_node_stat): Allocate cl_optimization struct.
11563         (copy_node_stat): Allocate and copy cl_optimization struct.
11565 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11567         * function.h (struct incoming_args): Move struct.
11568         (pass_by_reference, reference_callee_copied): Remove prototypes.
11569         * emit-rtl.h (struct incoming_args): Relocate struct here.
11570         * calls.h (pass_by_reference, reference_callee_copied): Relocate
11571         prototypes here.
11572         * function.c (pass_by_reference, reference_callee_copied): Move.
11573         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11574         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11575         * ipa-chkp.c: Include calls.h.
11577 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
11579         * alias.h (alias_set_type): Move typedef.
11580         * coretypes.h (alias_set_type): Relocate typedef here.
11581         * rtl.h: Don't include alias.h.
11583 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11585         * cgraph.h (cgraph_rtl_info): Move to rtl.h
11586         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11587         and instance.
11588         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11589         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11590         doesn't exist.
11591         * calls.c: Include hard-reg-set.h before rtl.h.
11592         * ira.c: Likewise.
11594 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11595             Vladimir Makarov  <vmakarov@redhat.com>
11597         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11598         Add assert.
11600 2015-06-25  Richard Biener  <rguenther@suse.de>
11602         * fold-const.c (fold_binary_loc): Move simplification of
11603         (X <<>> C1) & C2 ...
11604         * match.pd: ... here.
11606 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
11608         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11610 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11612         * match.pd: Add patterns for vec_conds between 1 and 0.
11614 2015-06-25  Richard Biener  <rguenther@suse.de>
11616         * tree-vect-stmts.c (vectorizable_conversion): Do not set
11617         STMT_VINFO_VEC_STMT for SLP.
11618         (vectorizable_store): Likewise.
11619         (vectorizable_load): Likewise.
11620         (vect_transform_stmt): Catch SLP vectorization clobbering
11621         STMT_VINFO_VEC_STMT.
11623 2015-06-25  Richard Biener  <rguenther@suse.de>
11625         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11626         dumping.
11627         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11628         cleanup resulting dead code and parameters.
11629         (vect_transform_slp_perm_load): Adjust.
11631 2015-06-25  Nick Clifton  <nickc@redhat.com>
11633         * config/bfin/bfin.c (bfin_expand_prologue): Set
11634         current_function_static_stack_size if flag_stack_usage_info is set.
11635         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11636         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11637         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11638         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11640 2015-06-25  Tom de Vries  <tom@codesourcery.com>
11642         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11643         comment that the generated IV is unsigned.
11645 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11647         PR target/29693
11648         * config/arm/arm.c (arm_dbx_register_number): Return
11649         DWARF_FRAME_REGISTERS by default.
11651 2015-06-25  Tom de Vries  <tom@codesourcery.com>
11653         * dominance.c (calculate_dominance_info): Fix verify_dominators call
11654         argument.  Call verify_dominator when reusing dominator info.
11656 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11658         PR target/66563
11659         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11660         an additional element of the unspec vector.  Modify indices
11661         of operands.
11662         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11663         * config/sh/sh.c (prepare_move_operands): Pass incremented
11664         const_int to gen_GOTaddr2picreg.
11665         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11667 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
11669         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11670         Condition on TARGET_FLOAT.
11672 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
11674         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11675         and (no)crypto.
11677 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
11679         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11681         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11682         aarch64_err_no_fpadvsimd.
11684         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11685         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11686         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11687         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11688         Turn error into assert, test TARGET_FLOAT.
11689         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11690         TARGET_FLOAT.
11692 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
11694         PR debug/66482
11695         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11697 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
11699         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11701 2015-06-24  Renlin Li <renlin.li@arm.com>
11703         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11704         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11706 2015-06-24  Richard Biener  <rguenther@suse.de>
11708         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11709         (main): Likewise.
11710         (lower_opt_convert): Support lowering of conditional view_convert.
11711         (parser::parse_operation): Likewise.
11712         (parser::parse_for): Likewise.
11714 2015-06-24  Renlin Li  <renlin.li@arm.com>
11716         * varasm.c (emit_local): Use unsigned int for align variable.
11718 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11720         PR target/63408
11721         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11722         for negative numbers.
11724 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11726         PR rtl-optimization/66306
11727         * reload.c (find_reloads): Swap the match_dup info for
11728         commutative operands.
11730 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11732         * config/s390/vx-builtins.md
11733         ("vec_scatter_element<mode>_<non_vec_int>")
11734         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11735         attribute with bhfgq.
11737 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11739         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11741 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11743         * config/s390/s390-builtin-types.def: Add flag to indicate the
11744         options under which the function type is needed.
11745         * config/s390/s390-builtins.def: Add flag to indicate the options
11746         under which the builtin is enabled.
11747         * config/s390/s390-builtins.h: Add flags parameter to macro
11748         definitions.
11749         (bflags_for_builtin): New function.
11750         (flags_for_builtin): Renamed to ...
11751         (opflags_for_builtin): ... this.
11752         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11753         flags_for_builtin to bflags_for_builtin and
11754         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
11755         * config/s390/s390.c: Add initialization of bflags_builtin and
11756         opflags_builtin arrays.
11757         Remove code for flags_builtin.
11758         (s390_init_builtins): Only create builtin function types if one of
11759         their flags is active.
11760         Only create builtins if all of their flags are active.
11761         (s390_expand_builtin): Rename flags_for_builtin to
11762         opflags_for_builtin.
11764 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11766         * config/s390/vecintrin.h: Remove internal builtins.
11768 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11770         * config/s390/s390.c (s390_secondary_reload): Fix check for
11771         GENERAL_REGS register class.
11773 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11775         * config/s390/s390.c (s390_support_vector_misalignment): Call
11776         default implementation for !TARGET_VX.
11778 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11780         * config/s390/s390.c (s390_legitimate_constant_p): Add
11781         TARGET_VX check.
11783 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11785         * config/s390/s390.c (s390_vector_abi): New variable definition.
11786         (s390_check_type_for_vector_abi): New function.
11787         (TARGET_ASM_FILE_END): New macro definition.
11788         (s390_asm_file_end): New function.
11789         (s390_function_arg): Call s390_check_type_for_vector_abi.
11790         (s390_gimplify_va_arg): Likewise.
11791         * configure: Regenerate.
11792         * configure.ac: Check for .gnu_attribute Binutils feature.
11794 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
11796         PR target/65803
11797         * config/bfin/bfin.c (hwloop_optimize): Initialize
11798         JUMP_LABEL for newly created jump.
11800 2015-06-23  Tristan Gingold  <gingold@adacore.com>
11802         * collect-utils.c (collect_wait): Unlink the response file here
11803         instead of...
11804         (do_wait): ...here.
11805         (utils_cleanup): ...and here.
11807 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
11809         * df-scan.c: Don't include target-def.h.
11810         * targhooks.c: Likewise.
11811         * config/arm/arm-c.c: Likewise.
11812         * config/i386/i386-c.c: Likewise.
11813         * config/nds32/nds32-cost.c: Likewise.
11814         * config/nds32/nds32-fp-as-gp.c: Likewise.
11815         * config/nds32/nds32-intrinsic.c: Likewise.
11816         * config/nds32/nds32-isr.c: Likewise.
11817         * config/nds32/nds32-md-auxiliary.c: Likewise.
11818         * config/nds32/nds32-memory-manipulation.c: Likewise.
11819         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11820         * config/nds32/nds32-predicates.c: Likewise.
11822 2015-06-23  Richard Biener  <rguenther@suse.de>
11824         PR tree-optimization/66636
11825         * tree-vect-stmts.c (vectorizable_store): Properly compute the
11826         def type for further defs for strided stores.
11828 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
11830         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11831         conditional selects.
11832         (setcc_int<mode>, setcc_float<mode>): Reformat.
11834 2015-06-23  Marek Polacek  <polacek@redhat.com>
11836         * match.pd ((x + y) - (x | y) -> x & y,
11837         (x + y) - (x & y) -> x | y): New patterns.
11839 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
11841         PR 65711
11842         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11843         '-dynamic-linker' within %{!shared: ...}.
11845 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
11847         PR target/66560
11848         * config/i386/predicates.md (addsub_vm_operator): New predicate.
11849         (addsub_vs_operator): Ditto.
11850         (addsub_vs_parallel): Ditto.
11851         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11852         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11853         Put minus RTX before plus and adjust vec_merge selector.
11854         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11855         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11856         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11857         (addsub vec_merge splitters): New combiner splitters.
11858         (addsub vec_select/vec_concat splitters): Ditto.
11860 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
11862         PR tree-optimization/66449
11863         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11864         POINTER_PLUS_EXPR for pointers.
11866 2015-06-23  Alan Modra  <amodra@gmail.com>
11868         * rtlanal.c (commutative_operand_precedence): Correct comments.
11869         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11870         declaration.  Return an int.  Distinguish REG,REG return from
11871         others.
11872         (struct simplify_plus_minus_op_data): Make local to function.
11873         (simplify_plus_minus): Don't set canonicalized if merely sorting
11874         registers.  Avoid packing ops if nothing changes.  White space fixes.
11876 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
11878         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11879         -fdump-ada-spec is passed but not if -fsyntax-only is.
11881 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
11883         PR bootstrap/63740
11884         * lra-lives.c (process_bb_lives): Check insn copying the same
11885         reload pseudo and don't create a copy for it.
11887 2015-06-22  Tom de Vries  <tom@codesourcery.com>
11889         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11890         for cond_stmt.
11892 2015-06-22  Tom de Vries  <tom@codesourcery.com>
11894         * builtins.def (DEF_GOMP_BUILTIN): Test
11895         'flag_tree_parallelize_loops > 1' instead of
11896         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
11898 2015-06-22  Tom de Vries  <tom@codesourcery.com>
11900         * dominance.c (calculate_dominance_info): Verify dominators if
11901         early-out.
11903 2015-06-22  Marek Polacek  <polacek@redhat.com>
11905         * match.pd ((x ^ y) ^ (x | y) -> x & y,
11906         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11907         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11908         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11910 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
11912         PR target/65871
11913         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11914         cost of embedded comparison.
11916 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11918         PR target/65914
11919         * config/rs6000/predicates.md (altivec_register_operand): Permit
11920         virtual stack registers.
11921         (vsx_register_operand): Likewise.
11922         (vfloat_operand): Likewise.
11923         (vint_operand): Likewise.
11924         (vlogical_operand): Likewise.
11926 2015-06-22  Richard Biener  <rguenther@suse.de>
11928         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11929         and single_scalar_iteration_cost members.
11930         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11931         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11932         (vect_get_single_scalar_iteration_cost): Remove.
11933         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11934         Use LOOP_VINFO_SCALAR_ITERATION_COST.
11935         * tree-vect-loop.c (destroy_loop_vec_info): Free
11936         scalar_cost_vec.
11937         (vect_get_single_scalar_iteration_cost): Compute result into
11938         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11939         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
11940         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11941         (vect_estimate_min_profitable_iters): Use them.
11943 2015-06-22  Christian Bruel  <christian.bruel@st.com>
11945         PR target/52144
11946         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11947         (TARGET_INSERT_ATTRIBUTES): Define.
11948         (thumb_flipper): New var.
11949         * config/arm/arm.opt (-mflip-thumb): New switch.
11951 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
11952             Martin Liska  <mliska@suse.cz>
11954         PR ipa/65908
11955         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11956         construction of arg_types.
11957         (sem_function::sem_function): Likewise.
11958         (sem_function::~sem_function): Remove destruction of arg_types.
11959         (sem_function::compatible_parm_types_p): New function.
11960         (sem_function::equals_wpa): Reorg matching of return values
11961         and parameter types.
11962         (sem_function::equals_private): Reorg mathcing of argument types.
11963         (sem_function::parse_tree_args): Remove.
11964         * ipa-icf.h (init_wpa): Do not call it.
11965         (parse_tree_args): Remove.
11966         (compatible_parm_types_p): Declare.
11967         (result_type): Remove.
11968         (arg_types): Remove.
11970 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
11972         PR ipa/66351
11973         * ipa-polymorphic-call.c
11974         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11975         initializing alias oracle; fix formating; set base_alias_set if it
11976         is known.
11978 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
11980         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11981         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11982         (find_inc): Likewise.
11983         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11984         swapping.
11985         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11986         * df-scan.c (df_swap_refs): Remove.
11987         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11988         * dominance.c (link_roots): Use std::swap instead of manually swapping.
11989         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11990         * fold-const.c (fold_relational_const): Likewise.
11991         * genattrtab.c (simplify_test_exp): Likewise.
11992         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11993         gimple_simplify): Likewise.
11994         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11995         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11996         * ipa-devirt.c (add_type_duplicate): Likewise.
11997         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11998         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11999         * lra.c (lra_create_copy): Likewise.
12000         * lto-streamer-out.c (DFS::DFS): Likewise.
12001         * modulo-sched.c (get_sched_window): Likewise.
12002         * omega.c (omega_pretty_print_problem): Likewise.
12003         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12004         * reload1.c (reloads_unique_chain_p): Likewise.
12005         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12006         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12007         use std::swap.
12008         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12009         manually swapping.
12010         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12011         predicate_mem_writes): Likewise.
12012         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12013         * tree-predcom.c (combine_chains): Likewise.
12014         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12015         refs_may_alias_p_1): Likewise.
12016         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12017         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12018         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12019         number_of_iterations_cond): Likewise.
12020         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12021         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12022         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12023         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12024         * tree-vrp.c (extract_range_from_binary_expr_1,
12025         extract_range_from_unary_expr_1): Likewise.
12027 2015-06-20  Marek Polacek  <polacek@redhat.com>
12029         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12031 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
12033         PR target/66591
12034         * config/sh/sh.c (prepare_move_operands): Replace subreg
12035         index term with R0 for base and index addressing.
12037 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
12039         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12040         op1 is an fp zero.
12041         (movsf_aarch64): Change condition from register_operand to
12042         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
12043         load1.  Change type for alternative 7 to store1.
12044         (movdf_aarch64): Likewise.
12046 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
12048         * config/vax/vax.md: Adjust sign/zero extend patterns to
12049         handle SUBREGs in operands[1].
12051 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12053         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12054         of manually swapping.
12055         (expand_vec_perm_interleave2): Likewise.
12057 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
12059         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12060         reuse bounds created for abnormal ssa names.
12062 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
12064         * config/nvptx/nvptx.md (allocate_stack): Rename to...
12065         (allocate_stack_<mode>): ... this, and add :P on both
12066         match_operand and unspec.
12067         (allocate_stack): New expander.
12069 2015-06-19  Christian Bruel  <christian.bruel@st.com>
12071         PR target/66541
12072         PR target/52144
12073         * config/arm/arm.c (arm_set_current_function): Handle
12074         explicit default options.
12076 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
12078         * config/i386/i386.md (*movsicc_noc_zext): New insn.
12079         (zero-extended cmove with mem peephole2): New pattern.
12080         (cmove with mem peephole2): Merge patterns.
12082 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
12084         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12086 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
12088         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12089         * config/mips/mips.md (*madd4<mode>): Ditto.
12090         (*nmadd3<mode>) Ditto.
12091         (*nmadd4<mode>_fastmath): Ditto.
12092         (*nmadd3<mode>_fastmath): Ditto.
12093         (*nmsub4<mode>): Ditto.
12094         (*nmsub3<mode>): Ditto.
12095         (*nmsub4<mode>_fastmath): Ditto.
12096         (*nmsub3<mode>_fastmath): Ditto.
12098 2015-06-18  Michael Matz  <matz@suse.de>
12100         PR middle-end/66253
12101         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12102         grouped strided stores.
12103         (vectorizable_load): Don't use the DR from first_stmt in
12104         the non-SLP grouped strided case.
12106 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12108         PR target/66569
12109         * function.c (assign_bounds): Add arguments assign_regs,
12110         assign_special, assign_bt.
12111         (assign_parms): For vararg functions handle bounds in BT
12112         and special slots after incoming vararg bounds.
12114 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12116         PR middle-end/66568
12117         * cfgexpand.c (expand_return): Handle missing bounds.
12118         (expand_gimple_stmt_1): Likewise.
12119         * tree-chkp.c (chkp_expand_zero_bounds): New.
12120         * tree-chkp.h (chkp_expand_zero_bounds): New.
12122 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12124         PR middle-end/66567
12125         * ipa-chkp.c (chkp_maybe_create_clone): Require
12126         functions to be instrumentable.
12127         * tree-chkp.c (chkp_replace_function_pointer): Use
12128         chkp_instrumentable_p instead of attribute check.
12130 2015-06-18  Richard Biener  <rguenther@suse.de>
12132         PR tree-optimization/66510
12133         * tree-vect-stmts.c (vectorizable_load): Properly compute the
12134         number of vector loads for SLP permuted loads.
12135         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12136         check the stride for loop vectorization.
12137         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12138         vectorization factor.
12139         (vect_analyze_group_access): If the group size is not a power
12140         of two require a epilogue loop.
12141         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12142         compute and optimizing and alias test pruning after final
12143         vectorization factor computation.
12144         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12145         vector alignment.
12146         (vect_transform_slp_perm_load): Properly compute the original
12147         number of vector load stmts.
12149 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
12151         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12152         "unlikely character , in @var" warning.
12154 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
12156         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12157         (ix86_function_arg_advance): Ditto.
12158         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
12160 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
12162         * function.h (struct rtl_data): Remove struct and accessor macros.
12163         * emit-rtl.h (struct rtl_data): Relocate to here.
12164         * Makefile.in (GTFILES): Add emit-rtl.h.
12165         * df-core.c: Include emit-rtl.h.
12166         * genattrtab.c: Likewise.
12167         * genconditions.c: Likewise.
12168         * genpreds.c: Likewise.
12169         * genrecog.c: Likewise.
12170         * regcprop.c: Likewise.
12171         * resource.c: Likewise.
12172         * sched-rgn.c: Likewise.
12173         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12174         * config/i386/winnt.c: Likewise.
12176 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
12178         PR middle-end/66429
12179         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12180         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
12181         and has_force_vectorize_loops flags from cfun into
12182         child_cfun.
12183         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12184         if simduid is non-NULL.
12185         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12186         * passes.def (pass_simduid_cleanup): Add new pass after loop
12187         passes.
12188         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12189         indirection from htab argument's type.
12190         (shrink_simd_arrays): New function.
12191         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
12192         Don't call adjust_simduid_builtins if there are no loops.
12193         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12194         (pass_simduid_cleanup::execute): New method.
12195         (make_pass_simduid_cleanup): New function.
12197 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
12199         * tree-core.h (tree_target_option): Make opts field a pointer to a
12200         cl_target_option instead of an instance of the struct.
12201         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12202         the structure.
12203         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12204         TARGET_OPTION_NODE.
12205         (copy_node_stat): Allocate and copy struct cl_target_option.
12207 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
12209         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12210         Remove conditional exposure of prototypes.
12211         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12212         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
12213         definitions in tree.h with functions.
12214         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12215         anon_aggrname_p.
12216         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12218 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
12220         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12221         (*cmp<mode>_signed): ... this.
12222         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12223         (*cmp<mode>_unsigned): ... this.  Remove %b.
12225 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
12227         * coretypes.h: Include input.h and as-a.h.
12228         * rtl.h: Include input.h and as-a.h for generator files.
12229         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12230         * vec.c: Don't include diagnostic-core.h.
12231         * alias.c: Do not include input.h, line-map.h or is-a.h.
12232         * asan.c: Likewise.
12233         * attribs.c: Likewise.
12234         * auto-inc-dec.c: Likewise.
12235         * auto-profile.c: Likewise.
12236         * bb-reorder.c: Likewise.
12237         * bt-load.c: Likewise.
12238         * builtins.c: Likewise.
12239         * caller-save.c: Likewise.
12240         * calls.c: Likewise.
12241         * ccmp.c: Likewise.
12242         * cfg.c: Likewise.
12243         * cfganal.c: Likewise.
12244         * cfgbuild.c: Likewise.
12245         * cfgcleanup.c: Likewise.
12246         * cfgexpand.c: Likewise.
12247         * cfghooks.c: Likewise.
12248         * cfgloop.c: Likewise.
12249         * cfgloop.h: Likewise.
12250         * cfgloopanal.c: Likewise.
12251         * cfgloopmanip.c: Likewise.
12252         * cfgrtl.c: Likewise.
12253         * cgraph.c: Likewise.
12254         * cgraphbuild.c: Likewise.
12255         * cgraphclones.c: Likewise.
12256         * cgraphunit.c: Likewise.
12257         * cilk-common.c: Likewise.
12258         * combine-stack-adj.c: Likewise.
12259         * combine.c: Likewise.
12260         * compare-elim.c: Likewise.
12261         * convert.c: Likewise.
12262         * coverage.c: Likewise.
12263         * cppbuiltin.c: Likewise.
12264         * cprop.c: Likewise.
12265         * cse.c: Likewise.
12266         * cselib.c: Likewise.
12267         * data-streamer-in.c: Likewise.
12268         * data-streamer-out.c: Likewise.
12269         * data-streamer.c: Likewise.
12270         * dbxout.c: Likewise.
12271         * dce.c: Likewise.
12272         * ddg.c: Likewise.
12273         * debug.c: Likewise.
12274         * df-core.c: Likewise.
12275         * df-problems.c: Likewise.
12276         * df-scan.c: Likewise.
12277         * df.h: Likewise.
12278         * dfp.c: Likewise.
12279         * diagnostic-core.h: Likewise.
12280         * diagnostic.c: Likewise.
12281         * dojump.c: Likewise.
12282         * dominance.c: Likewise.
12283         * domwalk.c: Likewise.
12284         * double-int.c: Likewise.
12285         * dse.c: Likewise.
12286         * dumpfile.c: Likewise.
12287         * dumpfile.h: Likewise.
12288         * dwarf2asm.c: Likewise.
12289         * dwarf2cfi.c: Likewise.
12290         * dwarf2out.c: Likewise.
12291         * emit-rtl.c: Likewise.
12292         * et-forest.c: Likewise.
12293         * except.c: Likewise.
12294         * explow.c: Likewise.
12295         * expmed.c: Likewise.
12296         * expr.c: Likewise.
12297         * final.c: Likewise.
12298         * fixed-value.c: Likewise.
12299         * fold-const.c: Likewise.
12300         * function.c: Likewise.
12301         * fwprop.c: Likewise.
12302         * gcc-plugin.h: Likewise.
12303         * gcse.c: Likewise.
12304         * generic-match-head.c: Likewise.
12305         * ggc-page.c: Likewise.
12306         * gimple-builder.c: Likewise.
12307         * gimple-expr.c: Likewise.
12308         * gimple-fold.c: Likewise.
12309         * gimple-iterator.c: Likewise.
12310         * gimple-low.c: Likewise.
12311         * gimple-match-head.c: Likewise.
12312         * gimple-pretty-print.c: Likewise.
12313         * gimple-ssa-isolate-paths.c: Likewise.
12314         * gimple-ssa-strength-reduction.c: Likewise.
12315         * gimple-streamer-in.c: Likewise.
12316         * gimple-streamer-out.c: Likewise.
12317         * gimple-streamer.h: Likewise.
12318         * gimple-walk.c: Likewise.
12319         * gimple.c: Likewise.
12320         * gimplify-me.c: Likewise.
12321         * gimplify.c: Likewise.
12322         * godump.c: Likewise.
12323         * graph.c: Likewise.
12324         * graphite-blocking.c: Likewise.
12325         * graphite-dependences.c: Likewise.
12326         * graphite-interchange.c: Likewise.
12327         * graphite-isl-ast-to-gimple.c: Likewise.
12328         * graphite-optimize-isl.c: Likewise.
12329         * graphite-poly.c: Likewise.
12330         * graphite-scop-detection.c: Likewise.
12331         * graphite-sese-to-poly.c: Likewise.
12332         * graphite.c: Likewise.
12333         * haifa-sched.c: Likewise.
12334         * hw-doloop.c: Likewise.
12335         * ifcvt.c: Likewise.
12336         * init-regs.c: Likewise.
12337         * input.c: Likewise.
12338         * internal-fn.c: Likewise.
12339         * ipa-chkp.c: Likewise.
12340         * ipa-comdats.c: Likewise.
12341         * ipa-cp.c: Likewise.
12342         * ipa-devirt.c: Likewise.
12343         * ipa-icf-gimple.c: Likewise.
12344         * ipa-icf.c: Likewise.
12345         * ipa-inline-analysis.c: Likewise.
12346         * ipa-inline-transform.c: Likewise.
12347         * ipa-inline.c: Likewise.
12348         * ipa-polymorphic-call.c: Likewise.
12349         * ipa-profile.c: Likewise.
12350         * ipa-prop.c: Likewise.
12351         * ipa-pure-const.c: Likewise.
12352         * ipa-ref.c: Likewise.
12353         * ipa-reference.c: Likewise.
12354         * ipa-split.c: Likewise.
12355         * ipa-utils.c: Likewise.
12356         * ipa-visibility.c: Likewise.
12357         * ipa.c: Likewise.
12358         * ira-build.c: Likewise.
12359         * ira-color.c: Likewise.
12360         * ira-conflicts.c: Likewise.
12361         * ira-costs.c: Likewise.
12362         * ira-emit.c: Likewise.
12363         * ira-lives.c: Likewise.
12364         * ira.c: Likewise.
12365         * jump.c: Likewise.
12366         * langhooks.c: Likewise.
12367         * lcm.c: Likewise.
12368         * loop-doloop.c: Likewise.
12369         * loop-init.c: Likewise.
12370         * loop-invariant.c: Likewise.
12371         * loop-iv.c: Likewise.
12372         * loop-unroll.c: Likewise.
12373         * lower-subreg.c: Likewise.
12374         * lra-assigns.c: Likewise.
12375         * lra-coalesce.c: Likewise.
12376         * lra-constraints.c: Likewise.
12377         * lra-eliminations.c: Likewise.
12378         * lra-lives.c: Likewise.
12379         * lra-remat.c: Likewise.
12380         * lra-spills.c: Likewise.
12381         * lra.c: Likewise.
12382         * lto-cgraph.c: Likewise.
12383         * lto-compress.c: Likewise.
12384         * lto-opts.c: Likewise.
12385         * lto-section-in.c: Likewise.
12386         * lto-section-out.c: Likewise.
12387         * lto-streamer-in.c: Likewise.
12388         * lto-streamer-out.c: Likewise.
12389         * lto-streamer.c: Likewise.
12390         * mcf.c: Likewise.
12391         * mode-switching.c: Likewise.
12392         * modulo-sched.c: Likewise.
12393         * omega.c: Likewise.
12394         * omp-low.c: Likewise.
12395         * optabs.c: Likewise.
12396         * opts-global.c: Likewise.
12397         * opts.h: Likewise.
12398         * passes.c: Likewise.
12399         * plugin.c: Likewise.
12400         * postreload-gcse.c: Likewise.
12401         * postreload.c: Likewise.
12402         * predict.c: Likewise.
12403         * pretty-print.h: Likewise.
12404         * print-rtl.c: Likewise.
12405         * print-tree.c: Likewise.
12406         * profile.c: Likewise.
12407         * real.c: Likewise.
12408         * realmpfr.c: Likewise.
12409         * recog.c: Likewise.
12410         * ree.c: Likewise.
12411         * reg-stack.c: Likewise.
12412         * regcprop.c: Likewise.
12413         * reginfo.c: Likewise.
12414         * regrename.c: Likewise.
12415         * regstat.c: Likewise.
12416         * reload.c: Likewise.
12417         * reload1.c: Likewise.
12418         * reorg.c: Likewise.
12419         * resource.c: Likewise.
12420         * rtl-chkp.c: Likewise.
12421         * rtl-error.c: Likewise.
12422         * rtlanal.c: Likewise.
12423         * rtlhooks.c: Likewise.
12424         * sanopt.c: Likewise.
12425         * sched-deps.c: Likewise.
12426         * sched-ebb.c: Likewise.
12427         * sched-rgn.c: Likewise.
12428         * sched-vis.c: Likewise.
12429         * sdbout.c: Likewise.
12430         * sel-sched-dump.c: Likewise.
12431         * sel-sched-ir.c: Likewise.
12432         * sel-sched.c: Likewise.
12433         * sese.c: Likewise.
12434         * shrink-wrap.c: Likewise.
12435         * simplify-rtx.c: Likewise.
12436         * stack-ptr-mod.c: Likewise.
12437         * statistics.c: Likewise.
12438         * stmt.c: Likewise.
12439         * stor-layout.c: Likewise.
12440         * store-motion.c: Likewise.
12441         * streamer-hooks.c: Likewise.
12442         * stringpool.c: Likewise.
12443         * symtab.c: Likewise.
12444         * target-globals.c: Likewise.
12445         * targhooks.c: Likewise.
12446         * toplev.c: Likewise.
12447         * tracer.c: Likewise.
12448         * trans-mem.c: Likewise.
12449         * tree-affine.c: Likewise.
12450         * tree-browser.c: Likewise.
12451         * tree-call-cdce.c: Likewise.
12452         * tree-cfg.c: Likewise.
12453         * tree-cfgcleanup.c: Likewise.
12454         * tree-chkp-opt.c: Likewise.
12455         * tree-chkp.c: Likewise.
12456         * tree-chrec.c: Likewise.
12457         * tree-complex.c: Likewise.
12458         * tree-data-ref.c: Likewise.
12459         * tree-dfa.c: Likewise.
12460         * tree-diagnostic.c: Likewise.
12461         * tree-dump.c: Likewise.
12462         * tree-eh.c: Likewise.
12463         * tree-emutls.c: Likewise.
12464         * tree-if-conv.c: Likewise.
12465         * tree-inline.c: Likewise.
12466         * tree-into-ssa.c: Likewise.
12467         * tree-iterator.c: Likewise.
12468         * tree-loop-distribution.c: Likewise.
12469         * tree-nested.c: Likewise.
12470         * tree-nrv.c: Likewise.
12471         * tree-object-size.c: Likewise.
12472         * tree-outof-ssa.c: Likewise.
12473         * tree-parloops.c: Likewise.
12474         * tree-phinodes.c: Likewise.
12475         * tree-predcom.c: Likewise.
12476         * tree-pretty-print.c: Likewise.
12477         * tree-profile.c: Likewise.
12478         * tree-scalar-evolution.c: Likewise.
12479         * tree-sra.c: Likewise.
12480         * tree-ssa-address.c: Likewise.
12481         * tree-ssa-alias.c: Likewise.
12482         * tree-ssa-ccp.c: Likewise.
12483         * tree-ssa-coalesce.c: Likewise.
12484         * tree-ssa-copy.c: Likewise.
12485         * tree-ssa-copyrename.c: Likewise.
12486         * tree-ssa-dce.c: Likewise.
12487         * tree-ssa-dom.c: Likewise.
12488         * tree-ssa-dse.c: Likewise.
12489         * tree-ssa-forwprop.c: Likewise.
12490         * tree-ssa-ifcombine.c: Likewise.
12491         * tree-ssa-live.c: Likewise.
12492         * tree-ssa-loop-ch.c: Likewise.
12493         * tree-ssa-loop-im.c: Likewise.
12494         * tree-ssa-loop-ivcanon.c: Likewise.
12495         * tree-ssa-loop-ivopts.c: Likewise.
12496         * tree-ssa-loop-manip.c: Likewise.
12497         * tree-ssa-loop-niter.c: Likewise.
12498         * tree-ssa-loop-prefetch.c: Likewise.
12499         * tree-ssa-loop-unswitch.c: Likewise.
12500         * tree-ssa-loop.c: Likewise.
12501         * tree-ssa-math-opts.c: Likewise.
12502         * tree-ssa-operands.c: Likewise.
12503         * tree-ssa-phiopt.c: Likewise.
12504         * tree-ssa-phiprop.c: Likewise.
12505         * tree-ssa-pre.c: Likewise.
12506         * tree-ssa-propagate.c: Likewise.
12507         * tree-ssa-reassoc.c: Likewise.
12508         * tree-ssa-sccvn.c: Likewise.
12509         * tree-ssa-scopedtables.c: Likewise.
12510         * tree-ssa-sink.c: Likewise.
12511         * tree-ssa-strlen.c: Likewise.
12512         * tree-ssa-structalias.c: Likewise.
12513         * tree-ssa-tail-merge.c: Likewise.
12514         * tree-ssa-ter.c: Likewise.
12515         * tree-ssa-threadedge.c: Likewise.
12516         * tree-ssa-threadupdate.c: Likewise.
12517         * tree-ssa-uncprop.c: Likewise.
12518         * tree-ssa-uninit.c: Likewise.
12519         * tree-ssa.c: Likewise.
12520         * tree-ssanames.c: Likewise.
12521         * tree-stdarg.c: Likewise.
12522         * tree-streamer-in.c: Likewise.
12523         * tree-streamer-out.c: Likewise.
12524         * tree-streamer.c: Likewise.
12525         * tree-switch-conversion.c: Likewise.
12526         * tree-tailcall.c: Likewise.
12527         * tree-vect-data-refs.c: Likewise.
12528         * tree-vect-generic.c: Likewise.
12529         * tree-vect-loop-manip.c: Likewise.
12530         * tree-vect-loop.c: Likewise.
12531         * tree-vect-patterns.c: Likewise.
12532         * tree-vect-slp.c: Likewise.
12533         * tree-vect-stmts.c: Likewise.
12534         * tree-vectorizer.c: Likewise.
12535         * tree-vrp.c: Likewise.
12536         * tree.c: Likewise.
12537         * tsan.c: Likewise.
12538         * ubsan.c: Likewise.
12539         * valtrack.c: Likewise.
12540         * value-prof.c: Likewise.
12541         * var-tracking.c: Likewise.
12542         * varasm.c: Likewise.
12543         * varpool.c: Likewise.
12544         * vmsdbgout.c: Likewise.
12545         * vtable-verify.c: Likewise.
12546         * web.c: Likewise.
12547         * wide-int.cc: Likewise.
12548         * xcoffout.c: Likewise.
12549         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12550         * common/common-targhooks.c: Likewise.
12551         * config/aarch64/aarch64-builtins.c: Likewise.
12552         * config/aarch64/aarch64.c: Likewise.
12553         * config/alpha/alpha.c: Likewise.
12554         * config/arc/arc.c: Likewise.
12555         * config/arm/aarch-common.c: Likewise.
12556         * config/arm/arm-builtins.c: Likewise.
12557         * config/arm/arm-c.c: Likewise.
12558         * config/arm/arm.c: Likewise.
12559         * config/avr/avr-c.c: Likewise.
12560         * config/avr/avr-log.c: Likewise.
12561         * config/avr/avr.c: Likewise.
12562         * config/bfin/bfin.c: Likewise.
12563         * config/c6x/c6x.c: Likewise.
12564         * config/cr16/cr16.c: Likewise.
12565         * config/cris/cris.c: Likewise.
12566         * config/darwin-c.c: Likewise.
12567         * config/darwin.c: Likewise.
12568         * config/default-c.c: Likewise.
12569         * config/epiphany/epiphany.c: Likewise.
12570         * config/epiphany/mode-switch-use.c: Likewise.
12571         * config/epiphany/resolve-sw-modes.c: Likewise.
12572         * config/fr30/fr30.c: Likewise.
12573         * config/frv/frv.c: Likewise.
12574         * config/ft32/ft32.c: Likewise.
12575         * config/glibc-c.c: Likewise.
12576         * config/h8300/h8300.c: Likewise.
12577         * config/i386/i386-c.c: Likewise.
12578         * config/i386/i386.c: Likewise.
12579         * config/i386/msformat-c.c: Likewise.
12580         * config/i386/winnt-cxx.c: Likewise.
12581         * config/i386/winnt-stubs.c: Likewise.
12582         * config/i386/winnt.c: Likewise.
12583         * config/ia64/ia64-c.c: Likewise.
12584         * config/ia64/ia64.c: Likewise.
12585         * config/iq2000/iq2000.c: Likewise.
12586         * config/lm32/lm32.c: Likewise.
12587         * config/m32c/m32c-pragma.c: Likewise.
12588         * config/m32c/m32c.c: Likewise.
12589         * config/m32r/m32r.c: Likewise.
12590         * config/m68k/m68k.c: Likewise.
12591         * config/mcore/mcore.c: Likewise.
12592         * config/mep/mep-pragma.c: Likewise.
12593         * config/mep/mep.c: Likewise.
12594         * config/microblaze/microblaze-c.c: Likewise.
12595         * config/microblaze/microblaze.c: Likewise.
12596         * config/mips/mips.c: Likewise.
12597         * config/mmix/mmix.c: Likewise.
12598         * config/mn10300/mn10300.c: Likewise.
12599         * config/moxie/moxie.c: Likewise.
12600         * config/msp430/msp430-c.c: Likewise.
12601         * config/msp430/msp430.c: Likewise.
12602         * config/nds32/nds32-cost.c: Likewise.
12603         * config/nds32/nds32-fp-as-gp.c: Likewise.
12604         * config/nds32/nds32-intrinsic.c: Likewise.
12605         * config/nds32/nds32-isr.c: Likewise.
12606         * config/nds32/nds32-md-auxiliary.c: Likewise.
12607         * config/nds32/nds32-memory-manipulation.c: Likewise.
12608         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12609         * config/nds32/nds32-predicates.c: Likewise.
12610         * config/nds32/nds32.c: Likewise.
12611         * config/nios2/nios2.c: Likewise.
12612         * config/nvptx/nvptx.c: Likewise.
12613         * config/pa/pa.c: Likewise.
12614         * config/pdp11/pdp11.c: Likewise.
12615         * config/rl78/rl78-c.c: Likewise.
12616         * config/rl78/rl78.c: Likewise.
12617         * config/rs6000/rs6000-c.c: Likewise.
12618         * config/rs6000/rs6000.c: Likewise.
12619         * config/rx/rx.c: Likewise.
12620         * config/s390/s390-c.c: Likewise.
12621         * config/s390/s390.c: Likewise.
12622         * config/sh/sh-c.c: Likewise.
12623         * config/sh/sh-mem.cc: Likewise.
12624         * config/sh/sh.c: Likewise.
12625         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12626         * config/sh/sh_treg_combine.cc: Likewise.
12627         * config/sol2-c.c: Likewise.
12628         * config/sol2-cxx.c: Likewise.
12629         * config/sol2-stubs.c: Likewise.
12630         * config/sol2.c: Likewise.
12631         * config/sparc/sparc-c.c: Likewise.
12632         * config/sparc/sparc.c: Likewise.
12633         * config/spu/spu-c.c: Likewise.
12634         * config/spu/spu.c: Likewise.
12635         * config/stormy16/stormy16.c: Likewise.
12636         * config/tilegx/mul-tables.c: Likewise.
12637         * config/tilegx/tilegx-c.c: Likewise.
12638         * config/tilegx/tilegx.c: Likewise.
12639         * config/tilepro/mul-tables.c: Likewise.
12640         * config/tilepro/tilepro-c.c: Likewise.
12641         * config/tilepro/tilepro.c: Likewise.
12642         * config/v850/v850-c.c: Likewise.
12643         * config/v850/v850.c: Likewise.
12644         * config/vax/vax.c: Likewise.
12645         * config/visium/visium.c: Likewise.
12646         * config/vms/vms-c.c: Likewise.
12647         * config/vms/vms.c: Likewise.
12648         * config/vxworks.c: Likewise.
12649         * config/winnt-c.c: Likewise.
12650         * config/xtensa/xtensa.c: Likewise.
12652 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
12654         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12655         function.
12656         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12658 2015-06-17  Richard Biener  <rguenther@suse.de>
12660         PR tree-optimization/66251
12661         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12662         stmts for SLP strided stores.
12664         Revert
12665         2015-05-22  Richard Biener  <rguenther@suse.de>
12667         PR tree-optimization/66251
12668         * tree-vect-stmts.c (vectorizable_conversion): Properly
12669         set STMT_VINFO_VEC_STMT even for the SLP case.
12671         2015-05-26  Michael Matz  <matz@suse.de>
12673         PR middle-end/66251
12674         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12675         STMT_VINFO_VEC_STMT, also with SLP.
12677 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
12679         PR target/56766
12680         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12681         (*avx_addsubv4df3_1s): Ditto.
12682         (*sse3_addsubv2df3_1): Ditto.
12683         (*sse3_addsubv2df3_1s): Ditto.
12684         (*avx_addsubv8sf3_1): Ditto.
12685         (*avx_addsubv8sf3_1s): Ditto.
12686         (*sse3_addsubv4sf3_1): Ditto.
12687         (*sse3_addsubv4sf3_1s): Ditto.
12689 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
12691         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12692         (SYSROOT_SUFFIX_SPEC): Update.
12693         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12694         (STARTFILE_PREFIX_SPEC): Update.
12695         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12696         (MULTILIB_REQUIRED): New.
12697         (MULTILIB_OSDIRNAMES): New.
12698         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12699         (MULTILIB_REQUIRED): New.
12700         (MULTILIB_OSDIRNAMES): New.
12702 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
12704         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12705         * config/aarch64/aarch64-options-extensions.def: Update "fP",
12706         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
12707         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12708         (AARCH64_FL_PAN): New.
12709         (AARCH64_FL_LOR): New.
12710         (AARCH64_FL_RDMA): New.
12711         (AARCH64_FL_FOR_ARCH8_1): New.
12712         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12713         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12715 2015-06-16  Martin Liska  <mliska@suse.cz>
12717         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12718         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12719         guard.
12721 2015-06-16  Richard Biener  <rguenther@suse.de>
12723         * tree-vect-stmts.c (vectorizable_store): Adjust.
12724         (vectorizable_load): Likewise.
12725         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12726         Simplify.
12727         (vect_create_data_ref_ptr): Likewise.
12728         (bump_vector_ptr): Adjust.
12730 2015-06-16  Richard Biener  <rguenther@suse.de>
12732         * tree-vect-stmts.c (vectorizable_load): Properly start loads
12733         with the first element if this is grouped loads.
12735 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
12737         * config/arm/arm-protos.h (struct tune_params): Rename
12738         log_op_non_sc to log_op_non_short_circuit, and rename enum
12739         values to expand SC to SHORT_CIRCUIT.
12740         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12741         to LOG_OP_NON_SHORT_CIRCUIT.
12742         (arm_fastmul_tune):Likewise
12743         (arm_strongarm_tune): Likewise.
12744         (arm_xscale_tune): Likewise.
12745         (arm_9e_tune): Likewise.
12746         (arm_marvell_pj4_tune): Likewise.
12747         (arm_v6t2_tune): Likewise.
12748         (arm_cortex_tune): Likewise.
12749         (arm_cortex_a8_tune): Likewise.
12750         (arm_cortex_a7_tune): Likewise.
12751         (arm_cortex_a15_tune): Likewise.
12752         (arm_cortex_a53_tune): Likewise.
12753         (arm_cortex_a57_tune): Likewise.
12754         (arm_xgene1_tune): Likewise.
12755         (arm_cortex_a5_tune): Likewise.
12756         (arm_cortex_a9_tune): Likewise.
12757         (arm_cortex_a12_tune): Likewise.
12758         (arm_v7m_tune): Likewise.
12759         (arm_cortex_m7_tune): Likewise.
12760         (arm_v6m_tune): Likewise.
12761         (arm_fa726te_tune): Likewise.
12763 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
12765         * altivec.md: Delete UNSPEC_VMLADDUHM.
12766         (mulv4si3_p8): New pattern.
12767         (mulv4si3): Use it for POWER8.
12768         (mulv8hi3): Use vmladduhm with zero addend.
12769         (altivec_vmladduhm): Descriptive RTL.
12771 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
12773         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
12774         to use neon_move instead of mov_imm.
12775         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
12776         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
12778         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
12779         aarch64_float_const_zero_rtx_p check before TFmode check.
12780         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
12781         an fp zero.
12782         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
12783         code and attributes to match.  Change condition from register_operand
12784         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
12785         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
12786         to store2.
12788 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
12790         PR debug/66535
12791         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
12792         there is no parent.
12794 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
12796         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
12797         HOST_WIDE_INT parameter.
12799 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
12801         PR ipa/66181
12802         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
12803         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
12804         TYPE_NO_FORCE_BLK.
12805         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
12807 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
12809         * rtl.h (classify_insn): Declare.
12810         * emit-rtl.c (classify_insn): Move to...
12811         * rtl.c: ...here and add generator support.
12812         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
12813         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12814         * genemit.c (gen_emit_seq): New function.
12815         (gen_expand, gen_split): Use it.
12817 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
12819         * tree.c (make_vector_stat): Fix comment to state that the
12820         function returns a VECTOR_CST.
12822 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
12824         * gensupport.h (add_implicit_parallel): Declare.
12825         * genrecog.c (add_implicit_parallel): Move to...
12826         * gensupport.c (add_implicit_parallel): ...here.
12827         (process_one_cond_exec): Use it.
12828         * genemit.c (gen_insn): Likewise.
12830 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
12832         PR bootstrap/66448
12833         * passes.c (rest_of_decl_compilation): Do not register globals for
12834         early debug if they are declared in built-ins.
12836 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
12838         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12840 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12842         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12843         manually swapping.
12844         (noce_try_cmove_arith): Likewise.
12845         (noce_get_alt_condition): Likewise.
12847 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12849         * common/config/i386/i386-common.c
12850         (OPTION_MASK_ISA_MWAITX_SET): New.
12851         (ix86_handle_option): Handle mwaitx.
12852         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12853         (x86_64-*-*): Likewise.
12854         * config/i386/mwaitxintrin.h: New header.
12855         * config/i386/cpuid.h (bit_MWAITX):  Define.
12856         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12857         MWAITX support.
12858         * config/i386/i386.opt (mwaitx): New.
12859         * config/i386/i386-builtin-types.def
12860         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12861         * config/i386/i386-c.c: Define __MWAITX__ if needed.
12862         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12863         (PTA_MWAITX): New.
12864         (ix86_option_override_internal): Handle new option.
12865         (processor_alias_table): Added PTA_MWAITX.
12866         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12867         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12868         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12869         IX86_BUILTIN_MONITORX  built-ins.
12870         * config/i386/i386.h (TARGET_MWAITX): New.
12871         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12872         UNSPEC_MONITORX.
12873         (mwaitx):  New pattern.
12874         (monitorx_<mode>): New pattern.
12875         * config/i386/x86intrin.h: Include mwaitxintrin.h.
12876         * doc/extend.texi: Document monitorx and mwaitx builtins.
12877         * doc/invoke.texi: Document -mmwaitx option.
12879 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
12881         * emit-rtl.c (need_atomic_barrier_p): Mask model with
12882         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
12884 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
12886         * dbxout.c (xcoff_debug_hooks): Provide a function for
12887         register_main_translation_unit hook.
12889 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
12891         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12892         variants cases from switch.
12893         (rs6000_post_atomic_barrier): Same.
12894         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12895         (rs6000_expand_atomic_exchange): Same.
12896         (rs6000_expand_atomic_op): Same.
12897         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12898         SYNC variants cases from switch.
12899         (atomic_load): Same.
12900         (atomic_store): Same.
12902 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
12904         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12905         CONST_INT for goto.
12907 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
12909         PR bootstrap/66448
12910         * dwarf2out.c (check_die): Check for common duplicate attributes.
12911         (add_location_or_const_value_attribute): Do not add duplicate
12912         attributes.
12913         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12914         time around.
12915         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12916         (gen_type_die_with_usage): Call check_die.
12917         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12919 2015-06-11  Jason Merrill  <jason@redhat.com>
12921         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12922         dies.
12924 2015-06-11  Marek Polacek  <polacek@redhat.com>
12926         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12928 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
12930         PR bootstrap/66252
12931         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12932         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12933         (*addx_extend_sp32): Fix pasto.
12934         (*subx_extend): Rename into...
12935         (*subx_extend_sp32): ...this.
12936         (*adddi3_extend_sp32): Add earlyclobber.
12937         (*subdi3_insn_sp32): Likewise.
12938         (*subdi3_extend_sp32): Likewise.
12939         (*and_not_di_sp32): Likewise.
12940         (*or_not_di_sp32): Likewise.
12941         (*xor_not_di_sp32): Likewise.
12942         (*negdi2_sp32): Likewise.
12943         (*one_cmpldi2_sp32): Likewise.
12945 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
12947         * debug.h (struct gcc_debug_hooks): Add a
12948         register_main_translation_unit hook.
12949         * debug.c (do_nothing_debug_hooks): Provide a function for this
12950         new hook.
12951         * dbxout.c (dbx_debug_hooks): Likewise.
12952         * sdbout.c (sdb_debug_hooks): Likewise.
12953         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12954         * dwarf2out.c (main_translation_unit): New global variable.
12955         (dwarf2out_register_main_translation_unit): New function
12956         implementing the new hook.
12957         (dwarf2_debug_hooks): Assign
12958         dwarf2out_register_main_translation_unit to this new hook.
12959         (dwarf2out_init): Associate any main translation unit to
12960         comp_unit_die ().
12962 2015-06-11  Marek Polacek  <polacek@redhat.com>
12964         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12966 2015-06-11  Marek Polacek  <polacek@redhat.com>
12968         * match.pd: Use single_use throughout.
12970 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12972         * config/arm/arm.c (arm_option_params_internal): When optimising
12973         for speed set max_insns_skipped when arm_restrict_it.
12975 2015-06-11  Christian Bruel  <christian.bruel@st.com>
12977         PR target/52144
12978         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12979          macros in ...
12980         (arm_cpu_builtins): New function.
12981         (arm_pragma_target_parse): Call arm_cpu_builtins.
12982         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12983         (arm_register_target_pragmas): Likewise.
12984         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12985          Call arm_register_target_pragmas.
12986         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12987         (arm_pragma_target_parse): Likewise.
12989 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
12991         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12992         of the second operand.
12994 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
12996         PR target/66473
12997         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12998         to prepare mask operand for AVX512 modes.
13000 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13002         PR target/66474
13003         * doc/md.texi (Machine Constraints): Document that on the PowerPC
13004         if you use a constraint that targets a VSX register, you must use
13005         %x<n> in the template.
13007 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
13009         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13010         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13011         (define_insn "trap"): New definition.
13013 2015-06-10  Richard Biener  <rguenther@suse.de>
13015         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13016         out from ...
13017         (vect_supported_load_permutation_p): ... here.  Handle
13018         supportable permutations in reductions.
13019         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13020         for vectorizing strided group loads.
13022 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
13024         PR target/66470
13025         * config/i386/i386.c (ix86_split_long_move): For collisions
13026         involving direct tls segment refs, move the UNSPEC_TP possibly
13027         wrapped in ZERO_EXTEND out of the address for lea, to each of
13028         the memory loads.
13030 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13032         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13033         dmb sy. Adjust tabs.
13035 2015-06-10  Tom de Vries  <tom@codesourcery.com>
13037         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13039 2015-06-10  Martin Liska  <mliska@suse.cz>
13041         PR bootstrap/66471
13042         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13043         all enum values in mem_alloc_origin.
13044         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13045         name.
13046         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13047         * bitmap.c (bitmap_register): Likewise.
13048         (dump_bitmap_statistics): Likewise.
13049         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13050         (ggc_record_overhead): Likewise.
13051         * hash-map.h: Likewise.
13052         * hash-set.h: Likewise.
13053         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13054         * hash-table.h: Likewise.
13055         * vec.c (vec_prefix::register_overhead): Likewise.
13056         (vec_prefix::release_overhead): Likewise.
13057         (dump_vec_loc_statistics): Likewise.
13059 2015-06-09  Christian Bruel  <christian.bruel@st.com>
13061         PR target/52144
13062         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13063         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13064         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13065         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13066         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13067         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13068         (arm_valid_target_attribute_p): Likewise.
13069         (arm_set_current_function, arm_can_inline_p): Likewise.
13070         (arm_valid_target_attribute_rec): Likewise.
13071         (arm_previous_fndecl): New variable.
13072         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13073         (TARGET_CAN_INLINE_P): Define.
13074         (arm_asm_trampoline_template): Emit mode.
13075         (arm_file_start): Don't set unified syntax.
13076         (arm_declare_function_name): Set unified syntax and mode.
13077         (arm_option_override): Init target_option_default_node.
13078         and target_option_current_node.
13079         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13080         (*call_symbol): Likewise.
13081         * doc/extend.texi: Document ARM/Thumb target attribute.
13082         * doc/invoke.texi: Likewise.
13084 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
13086         Revert:
13087         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
13088         PR rtl-optimization/64164
13089         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13090         * tree-ssa-copyrename.c: Removed.
13091         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13092         -ftree-coalesce-vars.
13093         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13094         * common.opt (ftree-copyrename): Ignore.
13095         (ftree-coalesce-inlined-vars): Likewise.
13096         * doc/invoke.texi: Remove the ignored options above.
13097         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13098         * tree-ssa-coalesce.h: ... here.
13099         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13100         headers required by it.
13101         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13102         across variables when flag_tree_coalesce_vars.  Check register
13103         use and promoted modes to allow coalescing.  Moved to
13104         tree-ssa-coalesce.c.
13105         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13106         with its member functions to tree-ssa-coalesce.c.
13107         (var_map_base_init): Likewise.  Renamed to
13108         compute_samebase_partition_bases.
13109         (partition_view_normal): Drop want_bases parameter.
13110         (partition_view_bitmap): Likewise.
13111         * tree-ssa-live.h: Adjust declarations.
13112         * tree-ssa-coalesce.c: Include explow.h.
13113         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13114         default defs at the entry point.
13115         (dump_part_var_map): New.
13116         (compute_optimized_partition_bases): New, called by...
13117         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13118         of compute_samebase_partition_bases.  Adjust.
13119         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13120         * cfgexpand.c (leader_merge): New.
13121         (get_rtl_for_parm_ssa_default_def): New.
13122         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13123         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13124         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13125         redundant MEM attr setting.
13126         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13127         from...
13128         (expand_one_stack_var): ... this.  New wrapper to check and
13129         skip already expanded SSA partitions.
13130         (record_alignment_for_reg_var): New, factored out of...
13131         (expand_one_var): ... this.
13132         (expand_one_ssa_partition): New.
13133         (adjust_one_expanded_partition_var): New.
13134         (expand_one_register_var): Check and skip already expanded SSA
13135         partitions.
13136         (expand_used_vars): Don't create DECLs for anonymous SSA
13137         names.  Expand all SSA partitions, then adjust all SSA names.
13138         (pass::execute): Replace the loops that set
13139         SA.partition_to_pseudo from partition leaders and cleared
13140         DECL_RTL for multi-location variables, and that which used to
13141         rename vars and set attrs, with one that clears DECL_RTL and
13142         checks that PARMs and RESULTs default_defs match DECL_RTL.
13143         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13144         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13145         * explow.c (promote_ssa_mode): New.
13146         * explow.h (promote_ssa_mode): Declare.
13147         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13148         * function.c: Include cfgexpand.h.
13149         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13150         (use_register_for_parm_decl): Wrapper for the above to
13151         special-case the result_ptr.
13152         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13153         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13154         multiple locations.
13155         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13156         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13157         (assign_parm_setup_block): Prefer SSA-assigned location.
13158         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
13159         if stack_parm is NULL.
13160         (assign_parm_setup_stack): Prefer SSA-assigned location.
13161         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13162         rtl before testing for pointer bounds.  Special-case result_ptr.
13163         (expand_function_start): Maybe reset DECL_RTL of result.
13164         Prefer SSA-assigned location for result and static chain.
13165         Factor out DECL_RESULT and SET_DECL_RTL.
13166         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13167         anonymous SSA names.  Use promote_ssa_mode.
13168         (get_temp_reg): Likewise.
13169         (remove_ssa_form): Adjust.
13170         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13171         and get its reg_usage for reg invalidation.
13172         (compute_bb_dataflow): Pass it insn.
13173         (emit_notes_in_bb): Likewise.
13174         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13175         fail assert on conversion between unsigned types.
13177 2015-06-09  Tom de Vries  <tom@codesourcery.com>
13179         PR tree-optimization/65460
13180         * omp-low.c (expand_omp_target): Set parallelized_function on
13181         cgraph_node for child_fn.
13183 2015-06-09  Tom de Vries  <tom@codesourcery.com>
13185         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13186         parallelized_function before add_new_function.
13188 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
13190         * gcc-plugin.h: Move decls to plugin.h and include it.
13191         * plugin.h: Relocate decls from gcc-plugin.h
13192         * ggc-page.c: Include required header files.
13193         * passes.c: Likewise.
13194         * cgraphunit.c: Likewise.
13196 2015-06-09  Tom de Vries  <tom@codesourcery.com>
13198         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13200 2015-06-09  Jason Merrill  <jason@redhat.com>
13202         PR bootstrap/66448
13203         * toplev.c (check_global_declaration): Don't warn about a clone.
13205 2015-06-09  Marek Polacek  <polacek@redhat.com>
13207         PR tree-optimization/66299
13208         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13209         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13210         patterns.
13212 2015-06-09  Richard Biener  <rguenther@suse.de>
13214         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13215         (vect_analyze_slp_instance): Instead do not falsely drop
13216         load permutations.
13218 2015-06-09  Richard Biener  <rguenther@suse.de>
13220         PR middle-end/66423
13221         * match.pd: Handle A % (unsigned)(1 << B).
13223 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
13225         * varasm.c (output_object_block_htab): Remove.
13226         (output_object_block_compare): New.
13227         (output_object_blocks): Sort named object_blocks before outputting
13228         them.
13230 2015-06-09  Richard Biener  <rguenther@suse.de>
13232         PR tree-optimization/66419
13233         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13234         consider GROUP_GAP when detecting a perfect subchain.
13236 2015-06-09  Nick Clifton  <nickc@redhat.com>
13238         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13239         place read only data in the .frodata section.
13241 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
13243         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13244         (atomic_store<mode>): Likewise.
13246 2015-06-09  Richard Biener  <rguenther@suse.de>
13248         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13250 2015-06-09  Richard Biener  <rguenther@suse.de>
13252         PR middle-end/66413
13253         * tree-inline.c (insert_init_debug_bind): Unshare value.
13255 2015-06-09  Richard Biener  <rguenther@suse.de>
13257         PR tree-optimization/66396
13258         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13259         Rename virtual operands.
13261 2015-06-09  Tom de Vries  <tom@codesourcery.com>
13263         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13264         always return false.
13266 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
13268         PR rtl-optimization/64164
13269         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13270         * tree-ssa-copyrename.c: Removed.
13271         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13272         -ftree-coalesce-vars.
13273         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13274         * common.opt (ftree-copyrename): Ignore.
13275         (ftree-coalesce-inlined-vars): Likewise.
13276         * doc/invoke.texi: Remove the ignored options above.
13277         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13278         * tree-ssa-coalesce.h: ... here.
13279         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13280         headers required by it.
13281         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13282         across variables when flag_tree_coalesce_vars.  Check register
13283         use and promoted modes to allow coalescing.  Moved to
13284         tree-ssa-coalesce.c.
13285         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13286         with its member functions to tree-ssa-coalesce.c.
13287         (var_map_base_init): Likewise.  Renamed to
13288         compute_samebase_partition_bases.
13289         (partition_view_normal): Drop want_bases parameter.
13290         (partition_view_bitmap): Likewise.
13291         * tree-ssa-live.h: Adjust declarations.
13292         * tree-ssa-coalesce.c: Include explow.h.
13293         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13294         default defs at the entry point.
13295         (dump_part_var_map): New.
13296         (compute_optimized_partition_bases): New, called by...
13297         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13298         of compute_samebase_partition_bases.  Adjust.
13299         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13300         * cfgexpand.c (leader_merge): New.
13301         (get_rtl_for_parm_ssa_default_def): New.
13302         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13303         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13304         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13305         redundant MEM attr setting.
13306         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13307         from...
13308         (expand_one_stack_var): ... this.  New wrapper to check and
13309         skip already expanded SSA partitions.
13310         (record_alignment_for_reg_var): New, factored out of...
13311         (expand_one_var): ... this.
13312         (expand_one_ssa_partition): New.
13313         (adjust_one_expanded_partition_var): New.
13314         (expand_one_register_var): Check and skip already expanded SSA
13315         partitions.
13316         (expand_used_vars): Don't create DECLs for anonymous SSA
13317         names.  Expand all SSA partitions, then adjust all SSA names.
13318         (pass::execute): Replace the loops that set
13319         SA.partition_to_pseudo from partition leaders and cleared
13320         DECL_RTL for multi-location variables, and that which used to
13321         rename vars and set attrs, with one that clears DECL_RTL and
13322         checks that PARMs and RESULTs default_defs match DECL_RTL.
13323         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13324         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13325         * explow.c (promote_ssa_mode): New.
13326         * explow.h (promote_ssa_mode): Declare.
13327         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13328         * function.c: Include cfgexpand.h.
13329         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13330         (use_register_for_parm_decl): Wrapper for the above to
13331         special-case the result_ptr.
13332         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13333         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13334         multiple locations.
13335         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13336         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13337         (assign_parm_setup_block): Prefer SSA-assigned location.
13338         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
13339         if stack_parm is NULL.
13340         (assign_parm_setup_stack): Prefer SSA-assigned location.
13341         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13342         rtl before testing for pointer bounds.  Special-case result_ptr.
13343         (expand_function_start): Maybe reset DECL_RTL of result.
13344         Prefer SSA-assigned location for result and static chain.
13345         Factor out DECL_RESULT and SET_DECL_RTL.
13346         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13347         anonymous SSA names.  Use promote_ssa_mode.
13348         (get_temp_reg): Likewise.
13349         (remove_ssa_form): Adjust.
13350         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13351         and get its reg_usage for reg invalidation.
13352         (compute_bb_dataflow): Pass it insn.
13353         (emit_notes_in_bb): Likewise.
13354         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13355         fail assert on conversion between unsigned types.
13357 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
13359         PR debug/58315
13360         * tree-inline.c (reset_debug_binding): New.
13361         (reset_debug_bindings): Likewise.
13362         (expand_call_inline): Call it.
13364 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
13366         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13367         TYPE_STRING_FLAG.
13369 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
13371         * lto-streamer-out.c (lto_output_location): Stream
13372         reserved locations correctly.
13373         * lto-streamer-in.c (lto_output_location): Likewise.
13375 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
13377         * coretypes.h: Include hash-table.h and hash-set.h for host files.
13378         * ggc.h: Don't include statistics.h>
13379         * hash-map.h: Remove all includes.
13380         * hash-set.h: Likewise.
13381         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13382         the include list. Remove <new>.
13383         * inchash.h: Remove all includes.
13384         * mem-stats.h: Likewise.
13385         * vec.h: No special processing for generators or ggc.
13386         * alias.c : Adjust include files.
13387         * alloc-pool.c : Likewise.
13388         * alloc-pool.h : Likewise.
13389         * asan.c : Likewise.
13390         * attribs.c : Likewise.
13391         * auto-inc-dec.c : Likewise.
13392         * auto-profile.c : Likewise.
13393         * bb-reorder.c : Likewise.
13394         * bitmap.c : Likewise.
13395         * bitmap.h : Likewise.
13396         * bt-load.c : Likewise.
13397         * builtins.c : Likewise.
13398         * caller-save.c : Likewise.
13399         * calls.c : Likewise.
13400         * ccmp.c : Likewise.
13401         * cfg.c : Likewise.
13402         * cfganal.c : Likewise.
13403         * cfgbuild.c : Likewise.
13404         * cfgcleanup.c : Likewise.
13405         * cfgexpand.c : Likewise.
13406         * cfghooks.c : Likewise.
13407         * cfgloop.c : Likewise.
13408         * cfgloop.h : Likewise.
13409         * cfgloopanal.c : Likewise.
13410         * cfgloopmanip.c : Likewise.
13411         * cfgrtl.c : Likewise.
13412         * cgraph.c : Likewise.
13413         * cgraphbuild.c : Likewise.
13414         * cgraphclones.c : Likewise.
13415         * cgraphunit.c : Likewise.
13416         * cilk-common.c : Likewise.
13417         * combine-stack-adj.c : Likewise.
13418         * combine.c : Likewise.
13419         * compare-elim.c : Likewise.
13420         * context.c : Likewise.
13421         * convert.c : Likewise.
13422         * coverage.c : Likewise.
13423         * cppbuiltin.c : Likewise.
13424         * cprop.c : Likewise.
13425         * cse.c : Likewise.
13426         * cselib.c : Likewise.
13427         * data-streamer-in.c : Likewise.
13428         * data-streamer-out.c : Likewise.
13429         * data-streamer.c : Likewise.
13430         * data-streamer.h : Likewise.
13431         * dbxout.c : Likewise.
13432         * dce.c : Likewise.
13433         * ddg.c : Likewise.
13434         * debug.c : Likewise.
13435         * df-core.c : Likewise.
13436         * df-problems.c : Likewise.
13437         * df-scan.c : Likewise.
13438         * df.h : Likewise.
13439         * dfp.c : Likewise.
13440         * dojump.c : Likewise.
13441         * dominance.c : Likewise.
13442         * domwalk.c : Likewise.
13443         * double-int.c : Likewise.
13444         * dse.c : Likewise.
13445         * dumpfile.c : Likewise.
13446         * dwarf2asm.c : Likewise.
13447         * dwarf2cfi.c : Likewise.
13448         * dwarf2out.c : Likewise.
13449         * emit-rtl.c : Likewise.
13450         * et-forest.c : Likewise.
13451         * except.c : Likewise.
13452         * except.h : Likewise.
13453         * explow.c : Likewise.
13454         * expmed.c : Likewise.
13455         * expr.c : Likewise.
13456         * final.c : Likewise.
13457         * fixed-value.c : Likewise.
13458         * fold-const.c : Likewise.
13459         * function.c : Likewise.
13460         * fwprop.c : Likewise.
13461         * gcc-plugin.h : Likewise.
13462         * gcc.c : Likewise.
13463         * gcse-common.c : Likewise.
13464         * gcse.c : Likewise.
13465         * genattrtab.c : Likewise.
13466         * genautomata.c : Likewise.
13467         * genconditions.c : Likewise.
13468         * genemit.c : Likewise.
13469         * generic-match-head.c : Likewise.
13470         * genextract.c : Likewise.
13471         * gengtype-state.c : Likewise.
13472         * gengtype.c : Likewise.
13473         * genhooks.c : Likewise.
13474         * genmatch.c : Likewise.
13475         * genmodes.c : Likewise.
13476         * genrecog.c : Likewise.
13477         * gensupport.c : Likewise.
13478         * ggc-common.c : Likewise.
13479         * ggc-internal.h : Likewise.
13480         * ggc-none.c : Likewise.
13481         * ggc-page.c : Likewise.
13482         * gimple-builder.c : Likewise.
13483         * gimple-expr.c : Likewise.
13484         * gimple-fold.c : Likewise.
13485         * gimple-iterator.c : Likewise.
13486         * gimple-low.c : Likewise.
13487         * gimple-match-head.c : Likewise.
13488         * gimple-pretty-print.c : Likewise.
13489         * gimple-ssa-isolate-paths.c : Likewise.
13490         * gimple-ssa-strength-reduction.c : Likewise.
13491         * gimple-ssa.h : Likewise.
13492         * gimple-streamer-in.c : Likewise.
13493         * gimple-streamer-out.c : Likewise.
13494         * gimple-streamer.h : Likewise.
13495         * gimple-walk.c : Likewise.
13496         * gimple.c : Likewise.
13497         * gimplify-me.c : Likewise.
13498         * gimplify.c : Likewise.
13499         * godump.c : Likewise.
13500         * graph.c : Likewise.
13501         * graphds.c : Likewise.
13502         * graphite-blocking.c : Likewise.
13503         * graphite-dependences.c : Likewise.
13504         * graphite-interchange.c : Likewise.
13505         * graphite-isl-ast-to-gimple.c : Likewise.
13506         * graphite-optimize-isl.c : Likewise.
13507         * graphite-poly.c : Likewise.
13508         * graphite-scop-detection.c : Likewise.
13509         * graphite-sese-to-poly.c : Likewise.
13510         * graphite.c : Likewise.
13511         * haifa-sched.c : Likewise.
13512         * hard-reg-set.h : Likewise.
13513         * hw-doloop.c : Likewise.
13514         * ifcvt.c : Likewise.
13515         * inchash.c : Likewise.
13516         * incpath.c : Likewise.
13517         * init-regs.c : Likewise.
13518         * input.c : Likewise.
13519         * internal-fn.c : Likewise.
13520         * ipa-chkp.c : Likewise.
13521         * ipa-comdats.c : Likewise.
13522         * ipa-cp.c : Likewise.
13523         * ipa-devirt.c : Likewise.
13524         * ipa-icf-gimple.c : Likewise.
13525         * ipa-icf.c : Likewise.
13526         * ipa-inline-analysis.c : Likewise.
13527         * ipa-inline-transform.c : Likewise.
13528         * ipa-inline.c : Likewise.
13529         * ipa-polymorphic-call.c : Likewise.
13530         * ipa-profile.c : Likewise.
13531         * ipa-prop.c : Likewise.
13532         * ipa-pure-const.c : Likewise.
13533         * ipa-ref.c : Likewise.
13534         * ipa-reference.c : Likewise.
13535         * ipa-split.c : Likewise.
13536         * ipa-utils.c : Likewise.
13537         * ipa-visibility.c : Likewise.
13538         * ipa.c : Likewise.
13539         * ira-build.c : Likewise.
13540         * ira-color.c : Likewise.
13541         * ira-conflicts.c : Likewise.
13542         * ira-costs.c : Likewise.
13543         * ira-emit.c : Likewise.
13544         * ira-lives.c : Likewise.
13545         * ira.c : Likewise.
13546         * jump.c : Likewise.
13547         * langhooks.c : Likewise.
13548         * lcm.c : Likewise.
13549         * libfuncs.h : Likewise.
13550         * lists.c : Likewise.
13551         * loop-doloop.c : Likewise.
13552         * loop-init.c : Likewise.
13553         * loop-invariant.c : Likewise.
13554         * loop-iv.c : Likewise.
13555         * loop-unroll.c : Likewise.
13556         * lower-subreg.c : Likewise.
13557         * lra-assigns.c : Likewise.
13558         * lra-coalesce.c : Likewise.
13559         * lra-constraints.c : Likewise.
13560         * lra-eliminations.c : Likewise.
13561         * lra-lives.c : Likewise.
13562         * lra-remat.c : Likewise.
13563         * lra-spills.c : Likewise.
13564         * lra.c : Likewise.
13565         * lto-cgraph.c : Likewise.
13566         * lto-compress.c : Likewise.
13567         * lto-opts.c : Likewise.
13568         * lto-section-in.c : Likewise.
13569         * lto-section-out.c : Likewise.
13570         * lto-streamer-in.c : Likewise.
13571         * lto-streamer-out.c : Likewise.
13572         * lto-streamer.c : Likewise.
13573         * lto-streamer.h : Likewise.
13574         * mcf.c : Likewise.
13575         * mode-switching.c : Likewise.
13576         * modulo-sched.c : Likewise.
13577         * omega.c : Likewise.
13578         * omp-low.c : Likewise.
13579         * optabs.c : Likewise.
13580         * opts-global.c : Likewise.
13581         * opts.h : Likewise.
13582         * passes.c : Likewise.
13583         * plugin.c : Likewise.
13584         * postreload-gcse.c : Likewise.
13585         * postreload.c : Likewise.
13586         * predict.c : Likewise.
13587         * print-rtl.c : Likewise.
13588         * print-tree.c : Likewise.
13589         * profile.c : Likewise.
13590         * read-md.c : Likewise.
13591         * read-md.h : Likewise.
13592         * read-rtl.c : Likewise.
13593         * real.c : Likewise.
13594         * realmpfr.c : Likewise.
13595         * recog.c : Likewise.
13596         * ree.c : Likewise.
13597         * reg-stack.c : Likewise.
13598         * regcprop.c : Likewise.
13599         * reginfo.c : Likewise.
13600         * regrename.c : Likewise.
13601         * regstat.c : Likewise.
13602         * reload.c : Likewise.
13603         * reload1.c : Likewise.
13604         * reorg.c : Likewise.
13605         * resource.c : Likewise.
13606         * rtl-chkp.c : Likewise.
13607         * rtl.c : Likewise.
13608         * rtl.h : Likewise.
13609         * rtlanal.c : Likewise.
13610         * rtlhash.c : Likewise.
13611         * rtlhash.h : Likewise.
13612         * rtlhooks.c : Likewise.
13613         * sanopt.c : Likewise.
13614         * sched-deps.c : Likewise.
13615         * sched-ebb.c : Likewise.
13616         * sched-rgn.c : Likewise.
13617         * sched-vis.c : Likewise.
13618         * sdbout.c : Likewise.
13619         * sel-sched-dump.c : Likewise.
13620         * sel-sched-ir.c : Likewise.
13621         * sel-sched-ir.h : Likewise.
13622         * sel-sched.c : Likewise.
13623         * sese.c : Likewise.
13624         * shrink-wrap.c : Likewise.
13625         * shrink-wrap.h : Likewise.
13626         * simplify-rtx.c : Likewise.
13627         * stack-ptr-mod.c : Likewise.
13628         * statistics.c : Likewise.
13629         * stmt.c : Likewise.
13630         * stor-layout.c : Likewise.
13631         * store-motion.c : Likewise.
13632         * stringpool.c : Likewise.
13633         * symtab.c : Likewise.
13634         * target-globals.c : Likewise.
13635         * targhooks.c : Likewise.
13636         * tlink.c : Likewise.
13637         * toplev.c : Likewise.
13638         * tracer.c : Likewise.
13639         * trans-mem.c : Likewise.
13640         * tree-affine.c : Likewise.
13641         * tree-affine.h : Likewise.
13642         * tree-browser.c : Likewise.
13643         * tree-call-cdce.c : Likewise.
13644         * tree-cfg.c : Likewise.
13645         * tree-cfgcleanup.c : Likewise.
13646         * tree-chkp-opt.c : Likewise.
13647         * tree-chkp.c : Likewise.
13648         * tree-chrec.c : Likewise.
13649         * tree-complex.c : Likewise.
13650         * tree-data-ref.c : Likewise.
13651         * tree-dfa.c : Likewise.
13652         * tree-diagnostic.c : Likewise.
13653         * tree-dump.c : Likewise.
13654         * tree-eh.c : Likewise.
13655         * tree-eh.h : Likewise.
13656         * tree-emutls.c : Likewise.
13657         * tree-hasher.h : Likewise.
13658         * tree-if-conv.c : Likewise.
13659         * tree-inline.c : Likewise.
13660         * tree-inline.h : Likewise.
13661         * tree-into-ssa.c : Likewise.
13662         * tree-iterator.c : Likewise.
13663         * tree-loop-distribution.c : Likewise.
13664         * tree-nested.c : Likewise.
13665         * tree-nrv.c : Likewise.
13666         * tree-object-size.c : Likewise.
13667         * tree-outof-ssa.c : Likewise.
13668         * tree-parloops.c : Likewise.
13669         * tree-phinodes.c : Likewise.
13670         * tree-predcom.c : Likewise.
13671         * tree-pretty-print.c : Likewise.
13672         * tree-profile.c : Likewise.
13673         * tree-scalar-evolution.c : Likewise.
13674         * tree-sra.c : Likewise.
13675         * tree-ssa-address.c : Likewise.
13676         * tree-ssa-alias.c : Likewise.
13677         * tree-ssa-ccp.c : Likewise.
13678         * tree-ssa-coalesce.c : Likewise.
13679         * tree-ssa-copy.c : Likewise.
13680         * tree-ssa-copyrename.c : Likewise.
13681         * tree-ssa-dce.c : Likewise.
13682         * tree-ssa-dom.c : Likewise.
13683         * tree-ssa-dse.c : Likewise.
13684         * tree-ssa-forwprop.c : Likewise.
13685         * tree-ssa-ifcombine.c : Likewise.
13686         * tree-ssa-live.c : Likewise.
13687         * tree-ssa-loop-ch.c : Likewise.
13688         * tree-ssa-loop-im.c : Likewise.
13689         * tree-ssa-loop-ivcanon.c : Likewise.
13690         * tree-ssa-loop-ivopts.c : Likewise.
13691         * tree-ssa-loop-manip.c : Likewise.
13692         * tree-ssa-loop-niter.c : Likewise.
13693         * tree-ssa-loop-prefetch.c : Likewise.
13694         * tree-ssa-loop-unswitch.c : Likewise.
13695         * tree-ssa-loop.c : Likewise.
13696         * tree-ssa-math-opts.c : Likewise.
13697         * tree-ssa-operands.c : Likewise.
13698         * tree-ssa-phiopt.c : Likewise.
13699         * tree-ssa-phiprop.c : Likewise.
13700         * tree-ssa-pre.c : Likewise.
13701         * tree-ssa-propagate.c : Likewise.
13702         * tree-ssa-reassoc.c : Likewise.
13703         * tree-ssa-sccvn.c : Likewise.
13704         * tree-ssa-scopedtables.c : Likewise.
13705         * tree-ssa-sink.c : Likewise.
13706         * tree-ssa-strlen.c : Likewise.
13707         * tree-ssa-structalias.c : Likewise.
13708         * tree-ssa-tail-merge.c : Likewise.
13709         * tree-ssa-ter.c : Likewise.
13710         * tree-ssa-threadedge.c : Likewise.
13711         * tree-ssa-threadupdate.c : Likewise.
13712         * tree-ssa-uncprop.c : Likewise.
13713         * tree-ssa-uninit.c : Likewise.
13714         * tree-ssa.c : Likewise.
13715         * tree-ssanames.c : Likewise.
13716         * tree-stdarg.c : Likewise.
13717         * tree-streamer-in.c : Likewise.
13718         * tree-streamer-out.c : Likewise.
13719         * tree-streamer.c : Likewise.
13720         * tree-streamer.h : Likewise.
13721         * tree-switch-conversion.c : Likewise.
13722         * tree-tailcall.c : Likewise.
13723         * tree-vect-data-refs.c : Likewise.
13724         * tree-vect-generic.c : Likewise.
13725         * tree-vect-loop-manip.c : Likewise.
13726         * tree-vect-loop.c : Likewise.
13727         * tree-vect-patterns.c : Likewise.
13728         * tree-vect-slp.c : Likewise.
13729         * tree-vect-stmts.c : Likewise.
13730         * tree-vectorizer.c : Likewise.
13731         * tree-vectorizer.h : Likewise.
13732         * tree-vrp.c : Likewise.
13733         * tree.c : Likewise.
13734         * tsan.c : Likewise.
13735         * ubsan.c : Likewise.
13736         * valtrack.c : Likewise.
13737         * valtrack.h : Likewise.
13738         * value-prof.c : Likewise.
13739         * var-tracking.c : Likewise.
13740         * varasm.c : Likewise.
13741         * varpool.c : Likewise.
13742         * vec.c: Likewise.
13743         * vmsdbgout.c : Likewise.
13744         * vtable-verify.c : Likewise.
13745         * vtable-verify.h : Likewise.
13746         * web.c : Likewise.
13747         * wide-int.cc : Likewise.
13748         * xcoffout.c : Likewise.
13749         * config/aarch64/aarch64-builtins.c : Likewise.
13750         * config/aarch64/aarch64.c : Likewise.
13751         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13752         * config/alpha/alpha.c : Likewise.
13753         * config/arc/arc.c : Likewise.
13754         * config/arm/aarch-common.c : Likewise.
13755         * config/arm/arm-builtins.c : Likewise.
13756         * config/arm/arm-c.c : Likewise.
13757         * config/arm/arm.c : Likewise.
13758         * config/avr/avr-c.c : Likewise.
13759         * config/avr/avr-log.c : Likewise.
13760         * config/avr/avr.c : Likewise.
13761         * config/bfin/bfin.c : Likewise.
13762         * config/c6x/c6x.c : Likewise.
13763         * config/cr16/cr16.c : Likewise.
13764         * config/cris/cris.c : Likewise.
13765         * config/darwin-c.c : Likewise.
13766         * config/darwin.c : Likewise.
13767         * config/default-c.c : Likewise.
13768         * config/epiphany/epiphany.c : Likewise.
13769         * config/epiphany/mode-switch-use.c : Likewise.
13770         * config/epiphany/resolve-sw-modes.c : Likewise.
13771         * config/fr30/fr30.c : Likewise.
13772         * config/frv/frv.c : Likewise.
13773         * config/ft32/ft32.c : Likewise.
13774         * config/glibc-c.c : Likewise.
13775         * config/h8300/h8300.c : Likewise.
13776         * config/i386/i386-c.c : Likewise.
13777         * config/i386/i386.c : Likewise.
13778         * config/i386/msformat-c.c : Likewise.
13779         * config/i386/winnt-cxx.c : Likewise.
13780         * config/i386/winnt-stubs.c : Likewise.
13781         * config/i386/winnt.c : Likewise.
13782         * config/ia64/ia64-c.c : Likewise.
13783         * config/ia64/ia64.c : Likewise.
13784         * config/iq2000/iq2000.c : Likewise.
13785         * config/lm32/lm32.c : Likewise.
13786         * config/m32c/m32c-pragma.c : Likewise.
13787         * config/m32c/m32c.c : Likewise.
13788         * config/m32r/m32r.c : Likewise.
13789         * config/m68k/m68k.c : Likewise.
13790         * config/mcore/mcore.c : Likewise.
13791         * config/mep/mep-pragma.c : Likewise.
13792         * config/mep/mep.c : Likewise.
13793         * config/microblaze/microblaze-c.c : Likewise.
13794         * config/microblaze/microblaze.c : Likewise.
13795         * config/mips/mips.c : Likewise.
13796         * config/mmix/mmix.c : Likewise.
13797         * config/mn10300/mn10300.c : Likewise.
13798         * config/moxie/moxie.c : Likewise.
13799         * config/msp430/msp430-c.c : Likewise.
13800         * config/msp430/msp430.c : Likewise.
13801         * config/nds32/nds32-cost.c : Likewise.
13802         * config/nds32/nds32-fp-as-gp.c : Likewise.
13803         * config/nds32/nds32-intrinsic.c : Likewise.
13804         * config/nds32/nds32-isr.c : Likewise.
13805         * config/nds32/nds32-md-auxiliary.c : Likewise.
13806         * config/nds32/nds32-memory-manipulation.c : Likewise.
13807         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
13808         * config/nds32/nds32-predicates.c : Likewise.
13809         * config/nds32/nds32.c : Likewise.
13810         * config/nios2/nios2.c : Likewise.
13811         * config/nvptx/nvptx.c : Likewise.
13812         * config/pa/pa.c : Likewise.
13813         * config/pdp11/pdp11.c : Likewise.
13814         * config/rl78/rl78-c.c : Likewise.
13815         * config/rl78/rl78.c : Likewise.
13816         * config/rs6000/rs6000-c.c : Likewise.
13817         * config/rs6000/rs6000.c : Likewise.
13818         * config/rx/rx.c : Likewise.
13819         * config/s390/s390-c.c : Likewise.
13820         * config/s390/s390.c : Likewise.
13821         * config/sh/sh-c.c : Likewise.
13822         * config/sh/sh-mem.cc : Likewise.
13823         * config/sh/sh.c : Likewise.
13824         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13825         * config/sh/sh_treg_combine.cc : Likewise.
13826         * config/sol2-c.c : Likewise.
13827         * config/sol2-cxx.c : Likewise.
13828         * config/sol2-stubs.c : Likewise.
13829         * config/sol2.c : Likewise.
13830         * config/sparc/sparc-c.c : Likewise.
13831         * config/sparc/sparc.c : Likewise.
13832         * config/spu/spu-c.c : Likewise.
13833         * config/spu/spu.c : Likewise.
13834         * config/stormy16/stormy16.c : Likewise.
13835         * config/tilegx/mul-tables.c : Likewise.
13836         * config/tilegx/tilegx-c.c : Likewise.
13837         * config/tilegx/tilegx.c : Likewise.
13838         * config/tilepro/mul-tables.c : Likewise.
13839         * config/tilepro/tilepro-c.c : Likewise.
13840         * config/tilepro/tilepro.c : Likewise.
13841         * config/v850/v850-c.c : Likewise.
13842         * config/v850/v850.c : Likewise.
13843         * config/vax/vax.c : Likewise.
13844         * config/visium/visium.c : Likewise.
13845         * config/vms/vms-c.c : Likewise.
13846         * config/vms/vms.c : Likewise.
13847         * config/vxworks.c : Likewise.
13848         * config/winnt-c.c : Likewise.
13849         * config/xtensa/xtensa.c : Likewise.
13851 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
13853         PR lto/65378
13854         * ipa-utils.h (warn_types_mismatch): Update prototype.
13855         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13856         parameters.
13857         (type_mismatch_p): New function.
13858         (warn_types_mismatch): Reorg to work better on non-C++ types.
13859         (odr_types_equivalent_p): Add loc1/loc2 parameters.
13860         (add_type_duplicate): Update.
13862 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13864         PR rtl-optimization/66444
13865         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13866         call_used_regs.
13868 2015-06-08  Richard Biener  <rguenther@suse.de>
13870         PR tree-optimization/66422
13871         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13872         block after inserted gcc_unreachable.
13874 2015-06-08  Nick Clifton  <nickc@redhat.com>
13876         * config/rx/rx.c (rx_function_value): Do not promote vector types.
13877         (rx_promote_function_mode): Likewise.
13878         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13880 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
13882         * genattrtab.c (insn_alternatives): Change type from int *
13883         to uint64_t *.
13884         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13885         (get_attr_value): Change type of num_alt to uint64_t.
13886         (compute_alternative_mask): Change return type from
13887         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13888         (make_alternative_compare, mk_attr_alt): Change argument type
13889         from int to uint64_t.
13890         (simplify_test_exp): Change type of i from int to uint64_t.
13891         Shift ((uint64_t) 1) instead of 1 up.
13892         (main): Adjust oballocvec first argument from int to uint64_t.
13893         Shift ((uint64_t) 1) instead of 1 up.
13895 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
13897         PR other/65366
13898         * gdbhooks.py: Import sys.
13899         (intptr): New function.  Replace int(...) by intptr(...).
13901 2015-06-08  Richard Biener  <rguenther@suse.de>
13903         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13904         adjustment for gaps at the end of a SLP load group properly.
13905         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13906         all permutations we can generate.
13907         (vect_transform_slp_perm_load): Use the correct group-size.
13909 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
13911         * genmatch.c (expr::gen_transform): For conditions, guess the type
13912         from the second operand.
13914 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13916         PR tree-optimization/66442
13917         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13918         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13919         if the loop latch is not a singleton.  Use
13920         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13922 2015-06-08  Marek Polacek  <polacek@redhat.com>
13924         PR sanitizer/66452
13925         * toplev.c (check_global_declaration): Don't warn about artificial
13926         decls.
13928 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13930         PR tree-optimization/66436
13931         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13932         dump file.
13933         * gimplify.c: Add tree-dump.h include.
13934         (gimplify_function_tree): Dump function to gimple dump file.
13935         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13936         dump file.
13938 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13940         PR tree-optimization/66435
13941         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13942         function.
13944 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
13946         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13947         of ptr_type_node to not be ptr_to_node.
13948         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13949         TREE_TYPE of pointers.
13950         * gimple-expr.c (useless_type_conversion): Reorder the check for
13951         function pointers and TYPE_CANONICAL.
13953 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
13955         PR bootstrap/66319
13956         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13957         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13958         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13959         later.
13960         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13961         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13962         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13963         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13964         and non iso if unix2003.
13966 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
13968         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13970 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
13972         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13973         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13974         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13975         except.c, final.c, function.c, gcse-common.c, genemit.c,
13976         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13977         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13978         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13979         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13980         more derived ones.
13982 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
13984         * combine.c (combine_split_insns): Remove cast.
13985         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13986         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13987         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13988         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13989         * genemit.c (gen_split): Change return type of generated functions to
13990         rtx_insn.
13991         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13992         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13993         gen_peephole2_* functions.
13994         (print_subroutine, main): Likewise.
13995         * recog.c (peephole2_optimize): Remove cast.
13996         (peep2_next_insn): Promote return type to rtx_insn.
13997         * recog.h (peep2_next_insn): Fix prototype.
13998         * rtl.h (try_split, split_insns): Likewise.
14000 2015-06-06  DJ Delorie  <dj@redhat.com>
14002         * config/msp430/msp430.c (msp430_asm_integer): Support addition
14003         and subtraction too.
14005 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
14007         PR target/66410
14008         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14009         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14010         instead of Snd.  Disparage Sid/z alternative with '^'.
14012 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
14014         * dwarf2out.c: Remove deferred_locations*.
14015         (dwarf2_debug_hooks): Add early_finish hook.
14016         Remove global_decl hook.
14017         Add early_global_decl and late_global_decl hook.
14018         New global early_dwarf.
14019         New structure set_early_dwarf.
14020         (output_die): Indicate whether a DIE was generated early
14021         when generating assembly with -dA.
14022         (struct limbo_die_struct): Document created_for field.
14023         Remove file_table_last_lookup.
14024         (remove_AT): Return TRUE if successful.
14025         (remove_child_TAG): Clear die_parent.
14026         (reparent_child): New function abstracted from...
14027         (splice_child_die): ...here.
14028         (new_die): ICE if a DIE ends up in limbo too late.
14029         (check_die): New.
14030         (defer_location): Remove.
14031         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14032         (fill_variable_array_bounds): New.
14033         (decl_start_label): Call fill_variable_array_bounds.
14034         (gen_formal_parameter_die): Rewrite to reuse previously generated
14035         DIEs.
14036         (gen_subprogram_die): Same.
14037         (gen_variable_die): Same.
14038         (gen_const_die): Same.
14039         (gen_label_die): Same.
14040         (gen_lexical_block_die): Same.
14041         (decl_will_get_specification_p): New.
14042         (local_function_static): New.
14043         (gen_struct_or_union_type_die): Fill in variable-length fields.
14044         (gen_typedef_die): Fill in variable-length typedefs.
14045         (gen_tagged_type_die): Gracefully return on error_mark_node.
14046         Handle re-entrancy.
14047         (gen_type_die_with_usage): Handle variable-length types.
14048         Remove duplicate code for ARRAY_TYPE case.
14049         (process_scope_var): Only process imported modules during early
14050         dwarf.
14051         (dwarf2out_early_global_decl): New.
14052         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14053         (dwarf2out_type_decl): Set early_dwarf while calling
14054         dwarf2out_decl.
14055         (dwarf2out_decl): Verify that we did not recreate a previously
14056         generated DIE.
14057         Do not return on DECL_EXTERNALs in VAR_DECLs.
14058         Abstract some code to local_function_static.
14059         (lookup_filename): Remove use of file_table_last_lookup.
14060         Gracefully exit on missing file_name.
14061         (dwarf2out_finish): Verify limbo list.
14062         Remove deferred_locations_list use.
14063         Move deferred_asm_name and limbo flushing to...
14064         (dwarf2out_early_finish): ...here.  New.
14065         (dwarf2out_c_finalize): Remove set of deferred_location_list,
14066         deferred_asm_name, and file_table_last_lookup.
14067         * cgraph.h (referred_to_p): Add default argument.
14068         * cgraphunit.c (referred_to_p): Add and handle include_self
14069         argument.
14070         (analyze_functions): Add first_time argument.
14071         Call check_global_declaration for all symbols.
14072         Call late_global_decl for nodes for moribund nodes.
14073         (finalize_compilation_unit): Add new argument to
14074         analyze_functions.
14075         Call early_global_decl for functions.
14076         Call early_finish debug hook.
14077         * dbxout.c (dbxout_early_global_decl): New.
14078         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
14079         (dbx_debug_hooks): Add new hooks.
14080         (xcoff_debug_hooks): Same.
14081         * debug.c (do_nothing_debug_hooks): Add early_finish field.
14082         Add early and late debug hooks.
14083         Remove global_decl hook.
14084         * debug.h (struct gcc_debug_hooks): Add early_finish,
14085         early_global_decl, and late_global_decl fields.
14086         Remove global_decl field.
14087         Document gcc_debug_hooks.
14088         * gengtype.c (output_typename): Remove.
14089         * godump.c (go_early_global_decl): New.
14090         (go_late_global_decl): New.
14091         (go_global_decl): Remove.
14092         (dump_go_spec_init): Remove global_decl.  Add
14093         {early,late}_global_decl.
14094         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14095         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14096         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14097         (write_global_declarations): Remove.
14098         (global_decl_processing): New.
14099         * langhooks.h (struct lang_hooks_for_decls): Remove
14100         final_write_globals field.
14101         Add post_compilation_parsing_cleanups field.
14102         * passes.c (rest_of_decl_compilation): Call early_global_decl.
14103         * sdbout.c: Add early and late_global_decl hooks.  Remove
14104         sdbout_global_decl hook.
14105         Add early_finish field for sdb_debug_hooks.
14106         (sdbout_global_decl): Remove.
14107         (sdbout_early_global_decl): New.
14108         (sdbout_late_global_decl): New.
14109         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14110         * toplev.c (check_global_declaration): Rename from
14111         check_global_declaration_1.
14112         Adapt to use symtab infrastructure.
14113         (check_global_declarations): Remove.
14114         (emit_debug_global_declarations): Remove.
14115         (compile_file): Remove call to final_write_globals langhook.
14116         Run the actual compilation process.
14117         Perform any post compilation parser cleanups.
14118         Generate late debug info.
14119         * toplev.h (check_global_declaration): New.
14120         (check_global_declaration_1): Remove.
14121         (check_global_declarations): Remove.
14122         (write_global_declarations): Remove.
14123         (emit_debug_global_declarations): Remove.
14124         (global_decl_processing): New.
14125         * tree-core.h (struct tree_block): Add DIE field.
14126         * tree.h (BLOCK_DIE): New.
14127         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14128         throughout.
14129         (vmsdbgout_early_global_decl): New.
14130         (vmsdbgout_late_global_decl): New.
14131         Add early_finish debug hook field to vmsdbg_debug_hooks.
14132         Remove vmsdbgout_decl to vmsdbgout_function_decl.
14133         Add early and late_global_decl debug hooks.
14135 2015-06-05  Julian Brown  <julian@codesourcery.com>
14136             Sandra Loosemore  <sandra@codesourcery.com>
14138         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14139         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14140         to print-sysroot-suffix.sh script.
14142 2015-06-05  Tom de Vries  <tom@codesourcery.com>
14144         merge from gomp4 branch:
14145         2015-05-28  Tom de Vries  <tom@codesourcery.com>
14147         PR tree-optimization/65443
14148         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14149         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14150         (try_transform_to_exit_first_loop_alt): New function.
14151         (transform_to_exit_first_loop): Use
14152         try_transform_to_exit_first_loop_alt.
14154 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
14156         * builtins.c (expand_builtin_atomic_compare_exchange): Call
14157         emit_cmp_and_jump_insns with the mode of target.
14159 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14161         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14163 2015-06-04  DJ Delorie  <dj@redhat.com>
14165         * config/msp430/msp430.md (movsi_s): New.  Special case for
14166         storing a 20-bit symbol into a 32-bit register.
14167         * config/msp430/msp430.c (msp430_subreg): Add support for it.
14168         * config/msp430/predicates.md (msp430_symbol_operand): New.
14170 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
14172         * c-family/c-common.c (noplt): New attribute.
14173         (handle_noplt_attribute): New handler.
14174         * calls.c (prepare_call_address): Check for noplt
14175         attribute.
14176         * config/i386/i386.c (ix86_expand_call): Check
14177         for noplt attribute.
14178         (ix86_nopic_noplt_attribute_p): New function.
14179         (ix86_output_call_insn): Output indirect call for non-pic
14180         no plt calls.
14181         * doc/extend.texi (noplt): Document new attribute.
14182         * doc/invoke.texi: Document new attribute.
14184 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
14186         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14187         real.h, and fixed-value.h when included in host source files.
14188         * double-int.h: Remove redundant #includes listed above.
14189         * fixed-value.h: Likewise.
14190         * real.h: Likewise.
14191         * wide-int.h: Likewise.
14192         * inchash.h: Likewise.
14193         * rtl.h: Add some include files When included from a generator file.
14194         * target.h: Remove wide-int.h and insn-modes.h from the include list.
14195         * internal-fn.h: Don't include coretypes.h.
14196         * alias.c: Adjust includes for restructured coretypes.h.
14197         * asan.c: Likewise.
14198         * attribs.c: Likewise.
14199         * auto-inc-dec.c: Likewise.
14200         * auto-profile.c: Likewise.
14201         * bb-reorder.c: Likewise.
14202         * bt-load.c: Likewise.
14203         * builtins.c: Likewise.
14204         * caller-save.c: Likewise.
14205         * calls.c: Likewise.
14206         * ccmp.c: Likewise.
14207         * cfg.c: Likewise.
14208         * cfganal.c: Likewise.
14209         * cfgbuild.c: Likewise.
14210         * cfgcleanup.c: Likewise.
14211         * cfgexpand.c: Likewise.
14212         * cfghooks.c: Likewise.
14213         * cfgloop.c: Likewise.
14214         * cfgloop.h: Likewise.
14215         * cfgloopanal.c: Likewise.
14216         * cfgloopmanip.c: Likewise.
14217         * cfgrtl.c: Likewise.
14218         * cgraph.c: Likewise.
14219         * cgraphbuild.c: Likewise.
14220         * cgraphclones.c: Likewise.
14221         * cgraphunit.c: Likewise.
14222         * cilk-common.c: Likewise.
14223         * combine-stack-adj.c: Likewise.
14224         * combine.c: Likewise.
14225         * compare-elim.c: Likewise.
14226         * convert.c: Likewise.
14227         * coverage.c: Likewise.
14228         * cppbuiltin.c: Likewise.
14229         * cprop.c: Likewise.
14230         * cse.c: Likewise.
14231         * cselib.c: Likewise.
14232         * data-streamer-in.c: Likewise.
14233         * data-streamer-out.c: Likewise.
14234         * data-streamer.c: Likewise.
14235         * dbxout.c: Likewise.
14236         * dce.c: Likewise.
14237         * ddg.c: Likewise.
14238         * debug.c: Likewise.
14239         * df-core.c: Likewise.
14240         * df-problems.c: Likewise.
14241         * df-scan.c: Likewise.
14242         * df.h: Likewise.
14243         * dfp.c: Likewise.
14244         * dojump.c: Likewise.
14245         * dominance.c: Likewise.
14246         * domwalk.c: Likewise.
14247         * double-int.c: Likewise.
14248         * dse.c: Likewise.
14249         * dumpfile.c: Likewise.
14250         * dwarf2asm.c: Likewise.
14251         * dwarf2cfi.c: Likewise.
14252         * dwarf2out.c: Likewise.
14253         * dwarf2out.h: Likewise.
14254         * emit-rtl.c: Likewise.
14255         * et-forest.c: Likewise.
14256         * except.c: Likewise.
14257         * explow.c: Likewise.
14258         * expmed.c: Likewise.
14259         * expr.c: Likewise.
14260         * final.c: Likewise.
14261         * fixed-value.c: Likewise.
14262         * fold-const.c: Likewise.
14263         * function.c: Likewise.
14264         * fwprop.c: Likewise.
14265         * gcc-plugin.h: Likewise.
14266         * gcse.c: Likewise.
14267         * generic-match-head.c: Likewise.
14268         * ggc-page.c: Likewise.
14269         * gimple-builder.c: Likewise.
14270         * gimple-expr.c: Likewise.
14271         * gimple-fold.c: Likewise.
14272         * gimple-iterator.c: Likewise.
14273         * gimple-low.c: Likewise.
14274         * gimple-match-head.c: Likewise.
14275         * gimple-pretty-print.c: Likewise.
14276         * gimple-ssa-isolate-paths.c: Likewise.
14277         * gimple-ssa-strength-reduction.c: Likewise.
14278         * gimple-streamer-in.c: Likewise.
14279         * gimple-streamer-out.c: Likewise.
14280         * gimple-streamer.h: Likewise.
14281         * gimple-walk.c: Likewise.
14282         * gimple.c: Likewise.
14283         * gimplify-me.c: Likewise.
14284         * gimplify.c: Likewise.
14285         * godump.c: Likewise.
14286         * graph.c: Likewise.
14287         * graphite-blocking.c: Likewise.
14288         * graphite-dependences.c: Likewise.
14289         * graphite-interchange.c: Likewise.
14290         * graphite-isl-ast-to-gimple.c: Likewise.
14291         * graphite-optimize-isl.c: Likewise.
14292         * graphite-poly.c: Likewise.
14293         * graphite-scop-detection.c: Likewise.
14294         * graphite-sese-to-poly.c: Likewise.
14295         * graphite.c: Likewise.
14296         * haifa-sched.c: Likewise.
14297         * hooks.h: Likewise.
14298         * hw-doloop.c: Likewise.
14299         * ifcvt.c: Likewise.
14300         * incpath.c: Likewise.
14301         * init-regs.c: Likewise.
14302         * internal-fn.c: Likewise.
14303         * ipa-chkp.c: Likewise.
14304         * ipa-comdats.c: Likewise.
14305         * ipa-cp.c: Likewise.
14306         * ipa-devirt.c: Likewise.
14307         * ipa-icf-gimple.c: Likewise.
14308         * ipa-icf.c: Likewise.
14309         * ipa-inline-analysis.c: Likewise.
14310         * ipa-inline-transform.c: Likewise.
14311         * ipa-inline.c: Likewise.
14312         * ipa-polymorphic-call.c: Likewise.
14313         * ipa-profile.c: Likewise.
14314         * ipa-prop.c: Likewise.
14315         * ipa-pure-const.c: Likewise.
14316         * ipa-ref.c: Likewise.
14317         * ipa-reference.c: Likewise.
14318         * ipa-split.c: Likewise.
14319         * ipa-utils.c: Likewise.
14320         * ipa-visibility.c: Likewise.
14321         * ipa.c: Likewise.
14322         * ira-build.c: Likewise.
14323         * ira-color.c: Likewise.
14324         * ira-conflicts.c: Likewise.
14325         * ira-costs.c: Likewise.
14326         * ira-emit.c: Likewise.
14327         * ira-lives.c: Likewise.
14328         * ira.c: Likewise.
14329         * jump.c: Likewise.
14330         * langhooks.c: Likewise.
14331         * lcm.c: Likewise.
14332         * loop-doloop.c: Likewise.
14333         * loop-init.c: Likewise.
14334         * loop-invariant.c: Likewise.
14335         * loop-iv.c: Likewise.
14336         * loop-unroll.c: Likewise.
14337         * lower-subreg.c: Likewise.
14338         * lra-assigns.c: Likewise.
14339         * lra-coalesce.c: Likewise.
14340         * lra-constraints.c: Likewise.
14341         * lra-eliminations.c: Likewise.
14342         * lra-lives.c: Likewise.
14343         * lra-remat.c: Likewise.
14344         * lra-spills.c: Likewise.
14345         * lra.c: Likewise.
14346         * lto-cgraph.c: Likewise.
14347         * lto-compress.c: Likewise.
14348         * lto-opts.c: Likewise.
14349         * lto-section-in.c: Likewise.
14350         * lto-section-out.c: Likewise.
14351         * lto-streamer-in.c: Likewise.
14352         * lto-streamer-out.c: Likewise.
14353         * lto-streamer.c: Likewise.
14354         * mcf.c: Likewise.
14355         * mode-switching.c: Likewise.
14356         * modulo-sched.c: Likewise.
14357         * omega.c: Likewise.
14358         * omp-low.c: Likewise.
14359         * optabs.c: Likewise.
14360         * opts-global.c: Likewise.
14361         * passes.c: Likewise.
14362         * plugin.c: Likewise.
14363         * postreload-gcse.c: Likewise.
14364         * postreload.c: Likewise.
14365         * predict.c: Likewise.
14366         * print-rtl.c: Likewise.
14367         * print-tree.c: Likewise.
14368         * profile.c: Likewise.
14369         * real.c: Likewise.
14370         * realmpfr.c: Likewise.
14371         * realmpfr.h: Likewise.
14372         * recog.c: Likewise.
14373         * ree.c: Likewise.
14374         * reg-stack.c: Likewise.
14375         * regcprop.c: Likewise.
14376         * reginfo.c: Likewise.
14377         * regrename.c: Likewise.
14378         * regs.h: Likewise.
14379         * regstat.c: Likewise.
14380         * reload.c: Likewise.
14381         * reload1.c: Likewise.
14382         * reorg.c: Likewise.
14383         * resource.c: Likewise.
14384         * rtl-chkp.c: Likewise.
14385         * rtlanal.c: Likewise.
14386         * rtlhooks.c: Likewise.
14387         * sanopt.c: Likewise.
14388         * sched-deps.c: Likewise.
14389         * sched-ebb.c: Likewise.
14390         * sched-rgn.c: Likewise.
14391         * sched-vis.c: Likewise.
14392         * sdbout.c: Likewise.
14393         * sel-sched-dump.c: Likewise.
14394         * sel-sched-ir.c: Likewise.
14395         * sel-sched.c: Likewise.
14396         * sese.c: Likewise.
14397         * shrink-wrap.c: Likewise.
14398         * shrink-wrap.h: Likewise.
14399         * simplify-rtx.c: Likewise.
14400         * stack-ptr-mod.c: Likewise.
14401         * statistics.c: Likewise.
14402         * stmt.c: Likewise.
14403         * stor-layout.c: Likewise.
14404         * store-motion.c: Likewise.
14405         * stringpool.c: Likewise.
14406         * symtab.c: Likewise.
14407         * target-globals.c: Likewise.
14408         * targhooks.c: Likewise.
14409         * toplev.c: Likewise.
14410         * tracer.c: Likewise.
14411         * trans-mem.c: Likewise.
14412         * tree-affine.c: Likewise.
14413         * tree-affine.h: Likewise.
14414         * tree-browser.c: Likewise.
14415         * tree-call-cdce.c: Likewise.
14416         * tree-cfg.c: Likewise.
14417         * tree-cfgcleanup.c: Likewise.
14418         * tree-chkp-opt.c: Likewise.
14419         * tree-chkp.c: Likewise.
14420         * tree-chrec.c: Likewise.
14421         * tree-complex.c: Likewise.
14422         * tree-data-ref.c: Likewise.
14423         * tree-dfa.c: Likewise.
14424         * tree-diagnostic.c: Likewise.
14425         * tree-dump.c: Likewise.
14426         * tree-eh.c: Likewise.
14427         * tree-emutls.c: Likewise.
14428         * tree-if-conv.c: Likewise.
14429         * tree-inline.c: Likewise.
14430         * tree-into-ssa.c: Likewise.
14431         * tree-iterator.c: Likewise.
14432         * tree-loop-distribution.c: Likewise.
14433         * tree-nested.c: Likewise.
14434         * tree-nrv.c: Likewise.
14435         * tree-object-size.c: Likewise.
14436         * tree-outof-ssa.c: Likewise.
14437         * tree-parloops.c: Likewise.
14438         * tree-phinodes.c: Likewise.
14439         * tree-predcom.c: Likewise.
14440         * tree-pretty-print.c: Likewise.
14441         * tree-pretty-print.h: Likewise.
14442         * tree-profile.c: Likewise.
14443         * tree-scalar-evolution.c: Likewise.
14444         * tree-sra.c: Likewise.
14445         * tree-ssa-address.c: Likewise.
14446         * tree-ssa-alias.c: Likewise.
14447         * tree-ssa-ccp.c: Likewise.
14448         * tree-ssa-coalesce.c: Likewise.
14449         * tree-ssa-copy.c: Likewise.
14450         * tree-ssa-copyrename.c: Likewise.
14451         * tree-ssa-dce.c: Likewise.
14452         * tree-ssa-dom.c: Likewise.
14453         * tree-ssa-dse.c: Likewise.
14454         * tree-ssa-forwprop.c: Likewise.
14455         * tree-ssa-ifcombine.c: Likewise.
14456         * tree-ssa-live.c: Likewise.
14457         * tree-ssa-loop-ch.c: Likewise.
14458         * tree-ssa-loop-im.c: Likewise.
14459         * tree-ssa-loop-ivcanon.c: Likewise.
14460         * tree-ssa-loop-ivopts.c: Likewise.
14461         * tree-ssa-loop-manip.c: Likewise.
14462         * tree-ssa-loop-niter.c: Likewise.
14463         * tree-ssa-loop-prefetch.c: Likewise.
14464         * tree-ssa-loop-unswitch.c: Likewise.
14465         * tree-ssa-loop.c: Likewise.
14466         * tree-ssa-loop.h: Likewise.
14467         * tree-ssa-math-opts.c: Likewise.
14468         * tree-ssa-operands.c: Likewise.
14469         * tree-ssa-phiopt.c: Likewise.
14470         * tree-ssa-phiprop.c: Likewise.
14471         * tree-ssa-pre.c: Likewise.
14472         * tree-ssa-propagate.c: Likewise.
14473         * tree-ssa-reassoc.c: Likewise.
14474         * tree-ssa-sccvn.c: Likewise.
14475         * tree-ssa-scopedtables.c: Likewise.
14476         * tree-ssa-sink.c: Likewise.
14477         * tree-ssa-strlen.c: Likewise.
14478         * tree-ssa-structalias.c: Likewise.
14479         * tree-ssa-tail-merge.c: Likewise.
14480         * tree-ssa-ter.c: Likewise.
14481         * tree-ssa-threadedge.c: Likewise.
14482         * tree-ssa-threadupdate.c: Likewise.
14483         * tree-ssa-uncprop.c: Likewise.
14484         * tree-ssa-uninit.c: Likewise.
14485         * tree-ssa.c: Likewise.
14486         * tree-ssanames.c: Likewise.
14487         * tree-stdarg.c: Likewise.
14488         * tree-streamer-in.c: Likewise.
14489         * tree-streamer-out.c: Likewise.
14490         * tree-streamer.c: Likewise.
14491         * tree-switch-conversion.c: Likewise.
14492         * tree-tailcall.c: Likewise.
14493         * tree-vect-data-refs.c: Likewise.
14494         * tree-vect-generic.c: Likewise.
14495         * tree-vect-loop-manip.c: Likewise.
14496         * tree-vect-loop.c: Likewise.
14497         * tree-vect-patterns.c: Likewise.
14498         * tree-vect-slp.c: Likewise.
14499         * tree-vect-stmts.c: Likewise.
14500         * tree-vectorizer.c: Likewise.
14501         * tree-vrp.c: Likewise.
14502         * tree.c: Likewise.
14503         * tsan.c: Likewise.
14504         * ubsan.c: Likewise.
14505         * valtrack.c: Likewise.
14506         * value-prof.c: Likewise.
14507         * var-tracking.c: Likewise.
14508         * varasm.c: Likewise.
14509         * varpool.c: Likewise.
14510         * vmsdbgout.c: Likewise.
14511         * vtable-verify.c: Likewise.
14512         * web.c: Likewise.
14513         * wide-int-print.cc: Likewise.
14514         * wide-int-print.h: Likewise.
14515         * wide-int.cc: Likewise.
14516         * xcoffout.c: Likewise.
14517         * config/aarch64/aarch64-builtins.c: Likewise.
14518         * config/aarch64/aarch64.c: Likewise.
14519         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14520         * config/alpha/alpha.c: Likewise.
14521         * config/arc/arc.c: Likewise.
14522         * config/arm/aarch-common.c: Likewise.
14523         * config/arm/arm-builtins.c: Likewise.
14524         * config/arm/arm-c.c: Likewise.
14525         * config/arm/arm.c: Likewise.
14526         * config/avr/avr-c.c: Likewise.
14527         * config/avr/avr-log.c: Likewise.
14528         * config/avr/avr.c: Likewise.
14529         * config/bfin/bfin.c: Likewise.
14530         * config/c6x/c6x.c: Likewise.
14531         * config/cr16/cr16.c: Likewise.
14532         * config/cris/cris.c: Likewise.
14533         * config/darwin-c.c: Likewise.
14534         * config/darwin.c: Likewise.
14535         * config/default-c.c: Likewise.
14536         * config/epiphany/epiphany.c: Likewise.
14537         * config/epiphany/mode-switch-use.c: Likewise.
14538         * config/epiphany/resolve-sw-modes.c: Likewise.
14539         * config/fr30/fr30.c: Likewise.
14540         * config/frv/frv.c: Likewise.
14541         * config/ft32/ft32.c: Likewise.
14542         * config/glibc-c.c: Likewise.
14543         * config/h8300/h8300.c: Likewise.
14544         * config/i386/i386-c.c: Likewise.
14545         * config/i386/i386.c: Likewise.
14546         * config/i386/msformat-c.c: Likewise.
14547         * config/i386/winnt-cxx.c: Likewise.
14548         * config/i386/winnt-stubs.c: Likewise.
14549         * config/i386/winnt.c: Likewise.
14550         * config/ia64/ia64-c.c: Likewise.
14551         * config/ia64/ia64.c: Likewise.
14552         * config/iq2000/iq2000.c: Likewise.
14553         * config/lm32/lm32.c: Likewise.
14554         * config/m32c/m32c-pragma.c: Likewise.
14555         * config/m32c/m32c.c: Likewise.
14556         * config/m32r/m32r.c: Likewise.
14557         * config/m68k/m68k.c: Likewise.
14558         * config/mcore/mcore.c: Likewise.
14559         * config/mep/mep-pragma.c: Likewise.
14560         * config/mep/mep.c: Likewise.
14561         * config/microblaze/microblaze-c.c: Likewise.
14562         * config/microblaze/microblaze.c: Likewise.
14563         * config/mips/mips.c: Likewise.
14564         * config/mmix/mmix.c: Likewise.
14565         * config/mn10300/mn10300.c: Likewise.
14566         * config/moxie/moxie.c: Likewise.
14567         * config/msp430/msp430-c.c: Likewise.
14568         * config/msp430/msp430.c: Likewise.
14569         * config/nds32/nds32-cost.c: Likewise.
14570         * config/nds32/nds32-fp-as-gp.c: Likewise.
14571         * config/nds32/nds32-intrinsic.c: Likewise.
14572         * config/nds32/nds32-isr.c: Likewise.
14573         * config/nds32/nds32-md-auxiliary.c: Likewise.
14574         * config/nds32/nds32-memory-manipulation.c: Likewise.
14575         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14576         * config/nds32/nds32-predicates.c: Likewise.
14577         * config/nds32/nds32.c: Likewise.
14578         * config/nios2/nios2.c: Likewise.
14579         * config/nvptx/nvptx.c: Likewise.
14580         * config/pa/pa.c: Likewise.
14581         * config/pdp11/pdp11.c: Likewise.
14582         * config/rl78/rl78-c.c: Likewise.
14583         * config/rl78/rl78.c: Likewise.
14584         * config/rs6000/rs6000-c.c: Likewise.
14585         * config/rs6000/rs6000.c: Likewise.
14586         * config/rx/rx.c: Likewise.
14587         * config/s390/s390-c.c: Likewise.
14588         * config/s390/s390.c: Likewise.
14589         * config/sh/sh-c.c: Likewise.
14590         * config/sh/sh-mem.cc: Likewise.
14591         * config/sh/sh.c: Likewise.
14592         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14593         * config/sh/sh_treg_combine.cc: Likewise.
14594         * config/sol2-c.c: Likewise.
14595         * config/sol2-cxx.c: Likewise.
14596         * config/sol2-stubs.c: Likewise.
14597         * config/sol2.c: Likewise.
14598         * config/sparc/sparc-c.c: Likewise.
14599         * config/sparc/sparc.c: Likewise.
14600         * config/spu/spu-c.c: Likewise.
14601         * config/spu/spu.c: Likewise.
14602         * config/stormy16/stormy16.c: Likewise.
14603         * config/tilegx/mul-tables.c: Likewise.
14604         * config/tilegx/tilegx-c.c: Likewise.
14605         * config/tilegx/tilegx.c: Likewise.
14606         * config/tilepro/mul-tables.c: Likewise.
14607         * config/tilepro/tilepro-c.c: Likewise.
14608         * config/tilepro/tilepro.c: Likewise.
14609         * config/v850/v850-c.c: Likewise.
14610         * config/v850/v850.c: Likewise.
14611         * config/vax/vax.c: Likewise.
14612         * config/visium/visium.c: Likewise.
14613         * config/vms/vms-c.c: Likewise.
14614         * config/vms/vms.c: Likewise.
14615         * config/vxworks.c: Likewise.
14616         * config/winnt-c.c: Likewise.
14617         * config/xtensa/xtensa.c: Likewise.
14618         * common/config/bfin/bfin-common.c: Likewise.
14620 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
14622         * tree.h (tree_code_for_canonical_type_merging): New function.
14623         * tree.c (gimple_canonical_types_compatible_p): Use
14624         tree_code_for_canonical_type_merging..
14626 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14628         PR c++/66192
14629         PR target/66200
14630         * doc/tm.texi: Regenerate.
14631         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14632         * target.def (TARGET_RELAXED_ORDERING): Likewise.
14633         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14634         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14635         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14636         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14637         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14638         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14639         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14641 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14643         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14644         register fma steering pass.
14645         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14646         AARCH64_TUNE_FMA_STEERING.
14648 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
14650         * tree.c (verify_type_variant): Verify that type and variant is
14651         compatible.
14652         (gimple_canonical_types_compatible_p): Look for main variants.
14654 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14656         * config.gcc (powerpc*-*-*): Add support for a new configure
14657         option --with-advance-toolchain=<xxx> which overrides using the
14658         default header files, libraries and dynamic linker.
14660         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14661         specs to support the configure --with-advance-toolchain=<xxx>
14662         option.
14663         (INCLUDE_EXTRA_SPEC): Likewise.
14664         (LINK_OS_EXTRA_SPEC32): Likewise.
14665         (LINK_OK_EXTRA_SPEC64): Likewise.
14666         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14667         (DYNAMIC_LINKER_PREFIX): Likewise.
14668         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14669         toolchain support.
14670         (GLIBC_DYNAMIC_LINKER32): Likewise.
14671         (GLIBC_DYNAMIC_LINKER64): Likewise.
14672         (LINK_OS_LINUX_SPEC32): Likewise.
14673         (LINK_OS_LINUX_SPEC64): Likewise.
14675         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14676         configuration option.
14678 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
14680         PR target/66275
14681         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14682         to determine current function ABI.
14683         (ix86_function_value_regno_p): Ditto.
14685 2015-06-03  Martin Liska  <mliska@suse.cz>
14687         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14688         * bitmap.h (struct bitmap_usage): Likewise.
14689         * ggc-common.c (struct ggc_usage): Likewise.
14690         * mem-stats.h (struct mem_location): Likewise.
14691         (struct mem_usage): Likewise.
14692         * vec.c (struct vec_usage): Likewise.
14694 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
14696         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14697         -Bsymbolic.
14699 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
14701         * doc/plugins.texi (enum plugin_event): New event.
14702         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14703         and PLUGIN_FINISH_FUNCTION.
14704         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14705         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14707 2015-06-03  Richard Biener  <rguenther@suse.de>
14709         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14710         compute GROUP_GAP for the first element.
14711         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14712         on in-group gaps.
14714 2015-06-03  Nick Clifton  <nickc@redhat.com>
14716         * config/rl78/rl78-real.md: Add peepholes to avoid a register
14717         copy when calling a function.
14718         * config/rl78/rl78.c (need_to_save): Do not push the frame
14719         pointer in an interrupt handler prologue if it is never used.
14721 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14723         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14725 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
14727         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14728         reference when cloning alias node.
14730 2015-06-03  Martin Liska  <mliska@suse.cz>
14732         * alloc-pool.h (struct pool_usage): Correct space padding.
14733         * ggc-page.c (ggc_print_statistics): Align columns in a report.
14734         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14735         * tree.c (dump_tree_statistics): Align columns in a report.
14737 2015-06-03  Martin Liska  <mliska@suse.cz>
14739         * alloc-pool.c (allocate_pool_descriptor): Remove.
14740         (struct pool_output_info): Likewise.
14741         (print_alloc_pool_statistics): Likewise.
14742         (dump_alloc_pool_statistics): Likewise.
14743         * alloc-pool.h (struct pool_usage): New struct.
14744         (pool_allocator::initialize): Change usage of memory statistics
14745         to a new interface.
14746         (pool_allocator::release): Likewise.
14747         (pool_allocator::allocate): Likewise.
14748         (pool_allocator::remove): Likewise.
14749         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14750         for a pool allocator.
14751         * mem-stats.h (struct mem_location): Add new ctor.
14752         (struct mem_usage): Add counter for number of
14753         instances.
14754         (mem_alloc_description::register_descriptor): New overload of
14755         * mem-stats.h (mem_location::to_string): New function.
14756         * bitmap.h (struct bitmap_usage): Use this new function.
14757         * ggc-common.c (struct ggc_usage): Likewise.
14758         the function.
14760 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
14762         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
14763         of GCC_INSN_FLAGS_H block.
14765 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
14767         * explow.c (plus_constant): Update check after force_const_mem call
14768         to see if the value returned is not a NULL_RTX.
14770 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
14772         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
14773         remove instumentation thunks calling reachable functions.
14774         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
14775         * lto/lto-partition.c (privatize_symbol_name_1): New.
14776         (privatize_symbol_name): Privatize both decl and orig_decl
14777         names for instrumented functions.
14778         * cgraph.c (cgraph_node::verify_node): Add transparent
14779         alias chain check for instrumented node.
14781 2015-06-03  Marek Polacek  <polacek@redhat.com>
14783         PR c/64223
14784         PR c/29358
14785         * tree.c (attribute_value_equal): Handle attribute format.
14786         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
14788 2015-06-03  Richard Biener  <rguenther@suse.de>
14790         PR tree-optimization/63916
14791         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14792         Forward-propagate non-invariant addresses by splicing their
14793         reference ops if the result isn't going to be used by PRE.
14794         (vn_reference_lookup_3): Remove pointless assert.
14796 2015-06-03  Richard Biener  <rguenther@suse.de>
14798         PR tree-optimization/66375
14799         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
14800         add to the evolution before following SSA edges.
14802 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
14804         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
14805         (dump_use, dump_cand, find_induction_variables): Pass new argument
14806         to dump_iv.
14807         (record_use): Preserve the ssa name information in IV.
14809 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
14811         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
14812         NO_MODE_TEST.
14813         (add_mode_tests): Don't add mode tests if the predicate only
14814         accepts scalar constant integers.  Otherwise, allow the mode
14815         of "op" to be VOIDmode if the predicate does accept such integers.
14817 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
14819         PR target/66258
14820         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14821         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14822         (aarch64_secondary_reload): Likewise
14823         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14824         to !TARGET_FLOAT.
14825         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14826         Likewise.
14828 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
14829             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14831         PR target/65768
14832         * cprop.c (try_replace_reg): Check cost of constants before propagating.
14834 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14836         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14837         provide access to the IBM extended double floating point mode if
14838         long double is IEEE 128-bit floating point.
14839         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14840         point if long double is the IBM extended double type.
14842         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14843         enable adding IEEE 128-bit floating point support.
14844         (-mfloat128-software): Likewise.
14845         (-mfloat128-sw): Likewise.
14847         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14848         128-bit floating point types to occupy any register if
14849         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
14850         -mfloat128-software is enabled.
14851         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14852         support.
14853         (rs6000_option_override_internal): Add -mfloat128-* support.
14854         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14856         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14857         and float128 type nodes.
14858         (ieee128_float_type_node): Likewise.
14859         (ibm128_float_type_node): Likewise.
14861 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14863         PR target/66136
14864         * config/aarch64/geniterators.sh: Rewrite in awk.
14866 2015-06-02  Martin Liska  <mliska@suse.cz>
14868         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14869         values to avoid -Wmaybe-uninitialized errors.
14871 2015-06-02  Richard Biener  <rguenther@suse.de>
14873         PR debug/65549
14874         * dwarf2out.c (lookup_context_die): New function.
14875         (resolve_addr): Avoid forcing a full DIE for the
14876         target of a DW_TAG_GNU_call_site during late compilation.
14877         Instead create a stub DIE without a type if we have a
14878         context DIE present.
14880 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
14882         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14884 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
14886         PR tree-optimization/48052
14887         * cfgloop.h (struct control_iv): New.
14888         (struct loop): New field control_ivs.
14889         * tree-ssa-loop-niter.c : Include "stor-layout.h".
14890         (number_of_iterations_lt): Set no_overflow information.
14891         (number_of_iterations_exit): Init control iv in niter struct.
14892         (record_control_iv): New.
14893         (estimate_numbers_of_iterations_loop): Call record_control_iv.
14894         (loop_exits_before_overflow): New.  Interface factored out of
14895         scev_probably_wraps_p.
14896         (scev_probably_wraps_p): Factor loop niter related code into
14897         loop_exits_before_overflow.
14898         (free_numbers_of_iterations_estimates_loop): Free control ivs.
14899         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14901 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14903         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14904         the target doesn't belong to the current function.
14906 2015-06-02  Marek Polacek  <polacek@redhat.com>
14908         PR middle-end/66345
14909         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14910         get_maxval_strlen does not produce an INTEGER_CST.
14912 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
14914         * config/arc/constraints.md: Use lower-case names in match_code.
14915         * config/mmix/constraints.md: Likewise.
14917 2015-06-02  Richard Biener  <rguenther@suse.de>
14919         PR tree-optimization/65961
14920         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14921         check and clarify dump message.
14922         (vect_build_slp_tree): If all children are built up from scalars
14923         build up the parent from scalars instead.
14924         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14926 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14928         PR other/65366
14929         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
14930         instead of print ... .
14932 2015-06-02  Alan Modra  <amodra@gmail.com>
14934         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14935         2014-08-11 change.
14937 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
14939         PR tree-optimization/52563
14940         PR tree-optimization/62173
14941         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
14942         (alloc_iv, set_iv): New parameter.
14943         (determine_biv_step): Delete.
14944         (find_bivs): Inline original determine_biv_step.  Pass new
14945         argument to set_iv.
14946         (idx_find_step): Use no_overflow information for conversion.
14947         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14948         resolve_mixers handle folded_casts.
14949         (instantiate_scev_name): Change bool parameter to bool pointer.
14950         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14951         (instantiate_array_ref, instantiate_scev_not): Ditto.
14952         (instantiate_scev_3, instantiate_scev_2): Ditto.
14953         (instantiate_scev_1, instantiate_scev_r): Ditto.
14954         (instantiate_scev_convert, ): Change parameter.  Pass argument
14955         to chrec_convert_aggressive.
14956         (instantiate_scev): Change argument.
14957         (resolve_mixers): New parameter and set it.
14958         (scev_const_prop): New argument.
14959         * tree-scalar-evolution.h (resolve_mixers): New parameter.
14960         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14961         of chrec_conert_1.
14962         (chrec_convert): New parameter.  Move definition below.
14963         (chrec_convert_aggressive): New parameter and set it.  Call
14964         convert_affine_scev.
14965         * tree-chrec.h (chrec_convert): New parameter.
14966         (chrec_convert_aggressive): Ditto.
14968 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
14970         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14971         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14972         the LHS of a no-return call if its type has variable size.
14973         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14974         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14976 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
14978         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14979         * config.in: Regenerate.
14981 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
14983         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14984         consecutive accesses within outer-loop with force_vectorize
14985         for references with zero step in inner-loop.
14987 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
14989         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14990         rather than from gcc/build directory.
14992 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
14994         PR target/65697
14995         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14996         for __sync memory models, emit initial loads and final barriers as
14997         appropriate.
14999 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
15001         PR target/65697
15002         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15003         (aarch64_split_atomic_op): Check for __sync memory models, emit
15004         appropriate initial loads and final barriers.
15006 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
15008         * Makefile.in: Fix gcov dependencies that should
15009         not point to a build folder.
15011 2015-06-01  Richard Biener  <rguenther@suse.de>
15013         Revert
15014         2015-05-29  Richard Biener  <rguenther@suse.de>
15016         PR tree-optimization/66314
15017         * tree-ssa-threadupdate.c (create_block_for_threading): Add
15018         parameter that says which loop the new block belongs to.
15019         (ssa_create_duplicates): Blocks duplicated for the threaded
15020         path belong to the loop of the thread destination.
15022 2015-06-01  Martin Liska  <mliska@suse.cz>
15024         * sched-deps.c: Include pool-alloc.h before
15025         cselib.h header file is included.
15027 2015-06-01  Richard Biener  <rguenther@suse.de>
15029         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15030         functions.
15032 2015-06-01  Martin Liska  <mliska@suse.cz>
15034         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15035         a function local variable.
15037 2015-06-01  Martin Liska  <mliska@suse.cz>
15039         * alloc-pool.c (create_alloc_pool): Remove.
15040         (empty_alloc_pool): Likewise.
15041         (free_alloc_pool): Likewise.
15042         (free_alloc_pool_if_empty): Likewise.
15043         (pool_alloc): Likewise.
15044         (pool_free): Likewise.
15045         * alloc-pool.h: Remove old declarations.
15047 2015-06-01  Martin Liska  <mliska@suse.cz>
15049         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15050         (ira_create_object): Likewise.
15051         (ira_create_allocno): Likewise.
15052         (ira_create_live_range): Likewise.
15053         (copy_live_range): Likewise.
15054         (ira_finish_live_range): Likewise.
15055         (ira_free_allocno_costs): Likewise.
15056         (finish_allocno): Likewise.
15057         (finish_allocnos): Likewise.
15058         (initiate_prefs): Likewise.
15059         (ira_create_pref): Likewise.
15060         (finish_pref): Likewise.
15061         (finish_prefs): Likewise.
15062         (initiate_copies): Likewise.
15063         (ira_create_copy): Likewise.
15064         (finish_copy): Likewise.
15065         (finish_copies): Likewise.
15066         (finish_prefs): Likewise.
15068 2015-06-01  Martin Liska  <mliska@suse.cz>
15070         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15071         (allocate_and_init_ipcp_value): Likewise.
15072         (ipcp_lattice::add_value): Likewise.
15073         (merge_agg_lats_step): Likewise.
15074         (ipcp_driver): Likewise.
15075         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15076         (ipa_free_all_structures_after_iinln): Likewise.
15077         * ipa-prop.h: Likewise.
15079 2015-06-01  Martin Liska  <mliska@suse.cz>
15081         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15082         pool allocator.
15083         (set_hint_predicate): Likewise.
15084         (inline_summary_alloc): Likewise.
15085         (reset_inline_edge_summary): Likewise.
15086         (reset_inline_summary): Likewise.
15087         (set_cond_stmt_execution_predicate): Likewise.
15088         (set_switch_stmt_execution_predicate): Likewise.
15089         (compute_bb_predicates): Likewise.
15090         (estimate_function_body_sizes): Likewise.
15091         (inline_free_summary): Likewise.
15093 2015-06-01  Martin Liska  <mliska@suse.cz>
15095         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15096         (ipa_edge_duplication_hook): Likewise.
15097         (ipa_free_all_structures_after_ipa_cp): Likewise.
15098         (ipa_free_all_structures_after_iinln): Likewise.
15100 2015-06-01  Martin Liska  <mliska@suse.cz>
15102         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15103         (ipa_profile_generate_summary): Likewise.
15104         (ipa_profile_read_summary): Likewise.
15105         (ipa_profile): Likewise.
15107 2015-06-01  Martin Liska  <mliska@suse.cz>
15109         * tree-ssa-structalias.c (new_var_info): Use new type-based
15110         pool allocator.
15111         (new_constraint): Likewise.
15112         (init_alias_vars): Likewise.
15113         (delete_points_to_sets): Likewise.
15115 2015-06-01  Martin Liska  <mliska@suse.cz>
15117         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15118         (free_strinfo): Likewise.
15119         (pass_strlen::execute): Likewise.
15121 2015-06-01  Martin Liska  <mliska@suse.cz>
15123         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15124         pool allocator.
15125         (vn_reference_insert_pieces): Likewise.
15126         (vn_phi_insert): Likewise.
15127         (visit_reference_op_call): Likewise.
15128         (copy_phi): Likewise.
15129         (copy_reference): Likewise.
15130         (process_scc): Likewise.
15131         (allocate_vn_table): Likewise.
15132         (free_vn_table): Likewise.
15134 2015-06-01  Martin Liska  <mliska@suse.cz>
15136         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15137         pool allocator.
15138         (add_repeat_to_ops_vec): Likewise.
15139         (get_ops): Likewise.
15140         (maybe_optimize_range_tests): Likewise.
15141         (init_reassoc): Likewise.
15142         (fini_reassoc): Likewise.
15144 2015-06-01  Martin Liska  <mliska@suse.cz>
15146         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15147         pool allocator.
15148         (bitmap_set_new): Likewise.
15149         (get_or_alloc_expr_for_constant): Likewise.
15150         (get_or_alloc_expr_for): Likewise.
15151         (phi_translate_1): Likewise.
15152         (compute_avail): Likewise.
15153         (init_pre): Likewise.
15154         (fini_pre): Likewise.
15156 2015-06-01  Martin Liska  <mliska@suse.cz>
15158         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15159         (delete_dep_node): Likewise.
15160         (create_deps_list): Likewise.
15161         (free_deps_list): Likewise.
15162         (sched_deps_init): Likewise.
15163         (sched_deps_finish): Likewise.
15165 2015-06-01  Martin Liska  <mliska@suse.cz>
15167         * regcprop.c (free_debug_insn_changes): Use new type-based
15168         pool allocator.
15169         (replace_oldest_value_reg): Likewise.
15170         (pass_cprop_hardreg::execute): Likewise.
15172 2015-06-01  Martin Liska  <mliska@suse.cz>
15174         * ira-build.c (initiate_cost_vectors): Use new type-based
15175         pool allocator.
15176         (ira_allocate_cost_vector): Likewise.
15177         (ira_free_cost_vector): Likewise.
15178         (finish_cost_vectors): Likewise.
15180 2015-06-01  Martin Liska  <mliska@suse.cz>
15182         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15183         pool allocator.
15184         (free_sched_pools): Likewise.
15185         * sel-sched-ir.h (_list_alloc): Likewise.
15186         (_list_remove): Likewise.
15188 2015-06-01  Martin Liska  <mliska@suse.cz>
15190         * stmt.c (add_case_node): Use new type-based pool allocator.
15191         (expand_case): Likewise.
15192         (expand_sjlj_dispatch_table): Likewise.
15194 2015-06-01  Martin Liska  <mliska@suse.cz>
15196         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15197         (free_bb): Likewise.
15198         (pass_cse_reciprocals::execute): Likewise.
15200 2015-06-01  Martin Liska  <mliska@suse.cz>
15202         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15203         (sra_deinitialize) Likewise.
15204         (create_access_1) Likewise.
15205         (build_accesses_from_assign) Likewise.
15206         (create_artificial_child_access) Likewise.
15208 2015-06-01  Martin Liska  <mliska@suse.cz>
15210         * dse.c (get_group_info):Use new type-based pool allocator.
15211         (dse_step0) Likewise.
15212         (free_store_info) Likewise.
15213         (delete_dead_store_insn) Likewise.
15214         (free_read_records) Likewise.
15215         (record_store) Likewise.
15216         (replace_read) Likewise.
15217         (check_mem_read_rtx) Likewise.
15218         (scan_insn) Likewise.
15219         (dse_step1) Likewise.
15220         (dse_step7) Likewise.
15222 2015-06-01  Martin Liska  <mliska@suse.cz>
15224         * df-scan.c (struct df_scan_problem_data):Use new type-based
15225         pool allocator.
15226         (df_scan_free_internal) Likewise.
15227         (df_scan_alloc) Likewise.
15228         (df_grow_reg_info) Likewise.
15229         (df_free_ref) Likewise.
15230         (df_insn_create_insn_record) Likewise.
15231         (df_mw_hardreg_chain_delete) Likewise.
15232         (df_insn_info_delete) Likewise.
15233         (df_free_collection_rec) Likewise.
15234         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15235         (df_sort_and_compress_mws) Likewise.
15236         (df_ref_create_structure) Likewise.
15237         (df_ref_record) Likewise.
15239 2015-06-01  Martin Liska  <mliska@suse.cz>
15241         * df-problems.c (df_chain_create):Use new type-based pool allocator.
15242         (df_chain_unlink_1) Likewise.
15243         (df_chain_unlink) Likewise.
15244         (df_chain_remove_problem) Likewise.
15245         (df_chain_alloc) Likewise.
15246         (df_chain_free) Likewise.
15247         * df.h (struct dataflow) Likewise.
15249 2015-06-01  Martin Liska  <mliska@suse.cz>
15251         * cselib.c (new_elt_list):Use new type-based pool allocator.
15252         (new_elt_loc_list) Likewise.
15253         (unchain_one_elt_list) Likewise.
15254         (unchain_one_elt_loc_list) Likewise.
15255         (unchain_one_value) Likewise.
15256         (new_cselib_val) Likewise.
15257         (cselib_init) Likewise.
15258         (cselib_finish) Likewise.
15260 2015-06-01  Martin Liska  <mliska@suse.cz>
15262         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15263         (sh_reorg) Likewise.
15265 2015-06-01  Martin Liska  <mliska@suse.cz>
15267         * cfg.c (initialize_original_copy_tables):Use new type-based
15268         pool allocator.
15269         (free_original_copy_tables) Likewise.
15270         (copy_original_table_clear) Likewise.
15271         (copy_original_table_set) Likewise.
15273 2015-06-01  Martin Liska  <mliska@suse.cz>
15275         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15276         pool allocator.
15277         (asan_mem_ref_new) Likewise.
15278         (free_mem_ref_resources) Likewise.
15280 2015-06-01  Martin Liska  <mliska@suse.cz>
15282         * var-tracking.c (variable_htab_free):Use new type-based
15283         pool allocator.
15284         (attrs_list_clear) Likewise.
15285         (attrs_list_insert) Likewise.
15286         (attrs_list_copy) Likewise.
15287         (shared_hash_unshare) Likewise.
15288         (shared_hash_destroy) Likewise.
15289         (unshare_variable) Likewise.
15290         (var_reg_delete_and_set) Likewise.
15291         (var_reg_delete) Likewise.
15292         (var_regno_delete) Likewise.
15293         (drop_overlapping_mem_locs) Likewise.
15294         (variable_union) Likewise.
15295         (insert_into_intersection) Likewise.
15296         (canonicalize_values_star) Likewise.
15297         (variable_merge_over_cur) Likewise.
15298         (dataflow_set_merge) Likewise.
15299         (remove_duplicate_values) Likewise.
15300         (variable_post_merge_new_vals) Likewise.
15301         (dataflow_set_preserve_mem_locs) Likewise.
15302         (dataflow_set_remove_mem_locs) Likewise.
15303         (variable_from_dropped) Likewise.
15304         (variable_was_changed) Likewise.
15305         (set_slot_part) Likewise.
15306         (clobber_slot_part) Likewise.
15307         (delete_slot_part) Likewise.
15308         (loc_exp_insert_dep) Likewise.
15309         (notify_dependents_of_changed_value) Likewise.
15310         (emit_notes_for_differences_1) Likewise.
15311         (vt_emit_notes) Likewise.
15312         (vt_initialize) Likewise.
15313         (vt_finalize) Likewise.
15315 2015-06-01  Martin Liska  <mliska@suse.cz>
15317         * ira-color.c (init_update_cost_records):Use new type-based
15318         pool allocator.
15319         (get_update_cost_record) Likewise.
15320         (free_update_cost_record_list) Likewise.
15321         (finish_update_cost_records) Likewise.
15322         (initiate_cost_update) Likewise.
15324 2015-06-01  Martin Liska  <mliska@suse.cz>
15326         * lra.c (init_insn_regs): Use new type-based pool allocator.
15327         (new_insn_reg) Likewise.
15328         (free_insn_reg) Likewise.
15329         (free_insn_regs) Likewise.
15330         (finish_insn_regs) Likewise.
15331         (init_insn_recog_data) Likewise.
15332         (init_reg_info) Likewise.
15333         (finish_reg_info) Likewise.
15334         (lra_free_copies) Likewise.
15335         (lra_create_copy) Likewise.
15336         (invalidate_insn_data_regno_info) Likewise.
15338 2015-06-01  Martin Liska  <mliska@suse.cz>
15340         * lra-lives.c (free_live_range): Use new type-based pool allocator.
15341         (free_live_range_list) Likewise.
15342         (create_live_range) Likewise.
15343         (copy_live_range) Likewise.
15344         (lra_merge_live_ranges) Likewise.
15345         (remove_some_program_points_and_update_live_ranges) Likewise.
15346         (lra_live_ranges_init) Likewise.
15347         (lra_live_ranges_finish) Likewise.
15349 2015-06-01  Martin Liska  <mliska@suse.cz>
15351         * et-forest.c (et_new_occ): Use new type-based pool allocator.
15352         (et_new_tree): Likewise.
15353         (et_free_tree): Likewise.
15354         (et_free_tree_force): Likewise.
15355         (et_free_pools): Likewise.
15356         (et_split): Likewise.
15358 2015-06-01  Martin Liska  <mliska@suse.cz>
15360         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15361         to header file.
15362         * alloc-pool.h (pool_allocator::pool_allocator): New function.
15363         (pool_allocator::release): Likewise.
15364         (inline pool_allocator::release_if_empty): Likewise.
15365         (inline pool_allocator::~pool_allocator): Likewise.
15366         (pool_allocator::allocate): Likewise.
15367         (pool_allocator::remove): Likewise.
15369 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
15371         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15372         in comment.
15374 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
15376         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15377         to fusible_ops.
15378         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15379         (arm_macro_fusion_p): Likewise.
15380         (arm_macro_fusion_pair_p): Likewise.
15382 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
15384         * config/aarch64/aarch64-protos.h (tune_params): Rename
15385         fuseable_ops to fusible_ops.
15386         * config/aarch64/aarch64.c (generic_tunings): Rename
15387         fuseable_ops to fusible_ops.
15388         (cortexa53_tunings): Likewise.
15389         (cortexa57_tunings): Likewise.
15390         (thunderx_tunings): Likewise.
15391         (xgene1_tunings): Likewise.
15392         (aarch64_macro_fusion_p): Likewise.
15393         (aarch64_macro_fusion_pair_p): Likewise.
15395 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15397         * config/s390/driver-native.c: New file.
15398         * config/s390/x-native: New file.
15399         * config.host: Add new files for s390.
15400         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15401         and -march=native
15402         * config.gcc: Likewise.
15403         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15404         * config/s390/s390-opts.h (enum processor_type): Ditto.
15405         * config/s390/s390.c (s390_option_override): Catch unhandled
15406         PROCESSOR_NATIVE
15408 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
15410         PR target/65527
15411         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15412         redirection for instrumented calls.
15413         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15414         (append_compiler_options): Append -fcheck-pointer-bounds.
15415         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15416         (chkp_redirect_edge): New.
15417         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15418         (chkp_redirect_edge): New.
15420 2015-06-01  Richard Biener  <rguenther@suse.de>
15422         PR tree-optimization/66280
15423         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15424         def-use walking.
15426 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15428         * config/aarch64/aarch64.md
15429         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
15430         logic_shift_imm.
15432 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
15434         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
15435         Remove obsolete kludge.
15437 2015-06-01  Richard Biener  <rguenther@suse.de>
15439         * tree-ssa-reassoc.c (get_rank): Simplify.
15441 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
15443         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
15444         * configure: Regenerated.
15446 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
15448         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
15449         issue (add space between string literal and macro).
15450         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
15452 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
15454         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
15455         implict or explicit -fPIE or -fpie.
15457 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
15459         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
15461 2015-05-28  DJ Delorie  <dj@redhat.com>
15463         * expmed.c (extract_bit_field_1): Avoid clobbering a
15464         yet-to-be-used base/index register.
15466 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
15468         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
15469         (alias_stats): Add num_universal.
15470         (alias_set_subset_of): Special case pointers; be ready for NULL
15471         children.
15472         (alias_sets_conflict_p): Special case pointers; be ready for NULL
15473         children.
15474         (init_alias_set_entry): Break out from ...
15475         (record_alias_subset): ... here; propagate new fields;
15476         allocate children only when really needed.
15477         (get_alias_set): Do less generous pointer globbing.
15478         (dump_alias_stats_in_alias_c): Update statistics.
15480 2015-05-30  Alan Modra  <amodra@gmail.com>
15482         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15483         correct block for use of r12.
15484         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15486 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15488         PR target/66215
15489         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15490         with -mhotpatch=.
15492 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
15494         PR tree-optimization/66142
15495         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15496         virtual phis that feed themselves.
15498 2015-05-29  Richard Biener  <rguenther@suse.de>
15500         PR tree-optimization/66314
15501         * tree-ssa-threadupdate.c (create_block_for_threading): Add
15502         parameter that says which loop the new block belongs to.
15503         (ssa_create_duplicates): Blocks duplicated for the threaded
15504         path belong to the loop of the thread destination.
15506 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15508         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
15509         to cleanup-saved-temps.
15510         * doc/sourcebuild.texi (Clean up generated test files): Expand
15511         introduction.
15512         (dg-keep-saved-temps): Document new proc.
15513         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
15514         cleanup-saved-temps): Remove.
15516 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
15518         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
15519         gcc_AC_CHECK_DECLS.
15520         * configure: Regenerate.
15522 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
15524         * config/nios2/linux.h (CPP_SPEC): Define.
15526 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
15528         * config/microblaze/linux.h (CPP_SPEC): Define.
15530 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
15532         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15533         -pthread is specified.
15535 2015-05-28  Richard Biener  <rguenther@suse.de>
15537         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15538         (vect_fixup_scalar_cycles_with_patterns): Likewise.
15539         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15540         after pattern recog.
15541         (vect_create_epilog_for_reduction): Properly handle reductions
15542         with patterns.
15543         (vectorizable_reduction): Likewise.
15544         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15545         reduction chains.
15546         (vect_get_constant_vectors): Create the correct number of
15547         initial values for reductions.
15548         (vect_schedule_slp_instance): Handle reduction chains that are
15549         type changing properly.
15550         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15552 2015-05-28  Richard Biener  <rguenther@suse.de>
15554         PR tree-optimization/66142
15555         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15556         values better in memcpy destination handling.  Handle non-aliasing
15557         we discover here.
15559 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
15561         PR target/63810
15562         * config/darwin-c.c (version_components): New global enum.
15563         (parse_version, version_as_legacy_macro)
15564         (version_as_modern_macro, macosx_version_as_macro): New functions.
15565         (version_as_macro): Remove.
15566         (darwin_cpp_builtins): Use new function.
15568 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
15570         * builtins.c (expand_builtin_acc_on_device): Mark parameters
15571         with ATTRIBUTE_UNUSED.
15573 2015-05-28  Julian Brown  <julian@codesourcery.com>
15575         PR libgomp/65742
15577         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15578         sequence for !ACCEL_COMPILER.
15580 2015-05-28  Nick Clifton  <nickc@redhat.com>
15582         * config/rx/rx.c (push_regs): New function.  Extracts code from...
15583         (rx_expand_prologue): ... here.  Use push_regs to push even small
15584         spans of registers.
15585         (pop_regs): New function.
15586         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
15587         registers.
15589 2015-05-28  Richard Biener  <rguenther@suse.de>
15591         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15592         member.
15593         (SLP_INSTANCE_BODY_COST_VEC): Remove.
15594         (vect_update_slp_costs_according_to_vf): Likewise.
15595         (vect_slp_analyze_operations): Update prototype.
15596         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15597         vect_update_slp_costs_according_to_vf, adjust.
15598         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15599         (vect_analyze_slp_cost_1): Likewise.
15600         (vect_analyze_slp_cost): Likewise.  Properly deal with
15601         widening reduction ops.  Commit body costs.
15602         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
15603         cost for loops from here.
15604         (vect_slp_analyze_operations): But do it from here when
15605         the vectorization factor is known and stmts are analyzed.
15606         (vect_bb_vectorization_profitable_p): Simplify.
15607         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15608         (vect_update_slp_costs_according_to_vf): Remove.
15610 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
15611             H.J. Lu  <hongjiu.lu@intel.com>
15613         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15614         (BUILD_CFLAGS): Likewise.
15615         (BUILD_CXXFLAGS): Likewise.
15616         (LINKER): Add @NO_PIE_FLAG@.
15617         (BUILD_LDFLAGS): Likewise.
15618         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15619         --enable-default-pie.
15620         * common.opt (fPIE): Initialize to -1.
15621         (fpie): Likewise.
15622         (no-pie): New option.
15623         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15624         * configure.ac: Add --enable-default-pie.
15625         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
15626         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
15627         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
15628         * gcc.c (NO_PIE_SPEC): New.
15629         (PIE_SPEC): Likewise.
15630         (NO_FPIE1_SPEC): Likewise.
15631         (FPIE1_SPEC): Likewise.
15632         (NO_FPIE2_SPEC): Likewise.
15633         (FPIE2_SPEC): Likewise.
15634         (NO_FPIE2_SPEC): Likewise.
15635         (FPIE_SPEC): Likewise.
15636         (NO_FPIE_SPEC): Likewise.
15637         (NO_FPIC1_SPEC): Likewise.
15638         (FPIC1_SPEC): Likewise.
15639         (NO_FPIC2_SPEC): Likewise.
15640         (FPIC2_SPEC): Likewise.
15641         (NO_FPIC2_SPEC): Likewise.
15642         (FPIC_SPEC): Likewise.
15643         (NO_FPIC_SPEC): Likewise.
15644         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15645         (FPIE1_OR_FPIC1_SPEC): Likewise.
15646         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15647         (FPIE2_OR_FPIC2_SPEC): Likewise.
15648         (NO_FPIE_AND_FPIC_SPEC): Likewise.
15649         (FPIE_OR_FPIC_SPEC): Likewise.
15650         (LD_PIE_SPEC): Likewise.
15651         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
15652         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15653         * config/darwin.h (PIE_SPEC): Renamed to ...
15654         (DARWIN_PIE_SPEC): This.
15655         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15656         * config/darwin9.h (PIE_SPEC): Renamed to ...
15657         (DARWIN_PIE_SPEC): This.
15658         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15659         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15660         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15661         FPIE2_OR_FPIC2_SPEC.
15662         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15663         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15664         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15665         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15666         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15667         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15668         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15669         * config/m32r/m32r.h (ASM_SPEC): Likewise.
15670         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15671         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15672         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15673         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15674         * config/sparc/linux.h (ASM_SPEC): Likewise.
15675         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15676         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15677         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15678         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15679         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15680         * config/sparc/sparc.h (ASM_SPEC): Likewise.
15681         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15682         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15683         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15684         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15685         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15686         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15687         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15688         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15689         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15690         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15691         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15692         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15693         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15694         * config/vax/linux.h (ASM_SPEC): Likewise.
15695         * doc/install.texi: Document --enable-default-pie.
15696         * doc/invoke.texi: Document -no-pie.
15697         * config.in: Regenerated.
15698         * configure: Likewise.
15700 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15702         PR rtl-optimization/66168
15703         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15704         can_move_invariant_reg.
15706 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
15708         PR target/66148
15709         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15710         REG_EQUAL note when doing insert.
15712         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15713         instead of "%d" for 'o' operand.
15715 2015-05-27  Nathan Sidwell  <nathan@acm.org>
15717         PR c++/66270
15718         * tree.c (build_pointer_type_for_mode): Canonical type does not
15719         inherit can_alias_all.
15720         (build_reference_type_for_mode): Likewise.
15722 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15724         * expr.h (array_at_struct_end_p): Move to...
15725         (array_ref_element_size): Likewise.
15726         (component_ref_field_offset): Likewise.
15727         * tree.h (array_ref_element_size): ...here.
15728         (array_at_struct_end_p): Likewise.
15729         (component_ref_field_offset): Likewise.
15730         * expr.c (array_ref_element_size): Move to...
15731         (array_ref_low_bound): Likewise.
15732         (array_at_struct_end_p): Likewise.
15733         (array_ref_up_bound): Likewise.
15734         (component_ref_field_offset): Likewise.
15735         * tree.c (array_ref_element_size): ...here.
15736         (array_ref_low_bound): Likewise.
15737         (array_ref_up_bound): Likewise.
15738         (array_at_struct_end_p): Likewise.
15739         (component_ref_field_offset): Likewise.
15741 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
15742             Szabolcs Nagy  <szabolcs.nagy@arm.com>
15744         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15746 2015-05-27  Jason Merrill  <jason@redhat.com>
15748         PR bootstrap/66304
15749         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15750         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15751         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15753 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
15755         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
15756         is true.
15758         * statistics.c (statistics_fini_pass): Print pass name.
15760 2015-05-27  Richard Biener  <rguenther@suse.de>
15762         PR tree-optimization/66272
15763         Revert parts of
15764         2014-08-15  Richard Biener  <rguenther@suse.de>
15766         PR tree-optimization/62031
15767         * tree-data-ref.c (dr_analyze_indices): Do not set
15768         DR_UNCONSTRAINED_BASE.
15769         (dr_may_alias_p): All indirect accesses have to go the
15770         formerly DR_UNCONSTRAINED_BASE path.
15771         * tree-data-ref.h (struct indices): Remove
15772         unconstrained_base member.
15773         (DR_UNCONSTRAINED_BASE): Remove.
15775 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
15777         * dwarf2out.c: Remove block_map.
15778         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
15779         (gen_lexical_block_die): Same.
15780         (dwarf2out_function_decl): Remove block_map use.
15781         (dwarf2out_c_finalize): Same.
15782         * tree-core.h (struct tree_block): Add die field.
15783         * tree.h (BLOCK_DIE): New.
15785 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15787         PR target/65358
15788         * expr.c (memory_load_overlap): New function.
15789         (emit_push_insn): When pushing partial args to the stack would
15790         clobber the register part load the overlapping part into a pseudo
15791         and put it into the hard reg after pushing.  Change return type
15792         to bool.  Add bool argument.
15793         * expr.h (emit_push_insn): Change return type to bool.
15794         Add bool argument.
15795         * calls.c (expand_call): Cancel sibcall optimization when encountering
15796         partial argument on targets with ARGS_GROW_DOWNWARD and
15797         !STACK_GROWS_DOWNWARD.
15798         (emit_library_call_value_1): Update callsite of emit_push_insn.
15799         (store_one_arg): Likewise.
15801 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
15803         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15805 2015-05-27  Martin Liska  <mliska@suse.cz>
15807         * Makefile.in: Add additional dependencies related to memory report
15808         enhancement.
15809         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
15810         * bitmap.c (struct bitmap_descriptor_d): Remove.
15811         (struct loc): Likewise.
15812         (struct bitmap_desc_hasher): Likewise.
15813         (bitmap_desc_hasher::hash): Likewise.
15814         (bitmap_desc_hasher::equal): Likewise.
15815         (get_bitmap_descriptor): Likewise.
15816         (bitmap_register): User new memory descriptor API.
15817         (register_overhead): Likewise.
15818         (bitmap_find_bit): Register nsearches and search_iter statistics.
15819         (struct bitmap_output_info): Remove.
15820         (print_statistics): Likewise.
15821         (dump_bitmap_statistics): Use new memory descriptor.
15822         * bitmap.h (struct bitmap_usage): New class.
15823         * genmatch.c: Extend header file inclusion.
15824         * genpreds.c: Likewise.
15825         * ggc-common.c (struct ggc_usage): New class.
15826         (struct ggc_loc_desc_hasher): Remove.
15827         (ggc_loc_desc_hasher::hash): Likewise.
15828         (ggc_loc_desc_hasher::equal): Likewise.
15829         (struct ggc_ptr_hash_entry): Likewise.
15830         (struct ptr_hash_hasher): Likewise.
15831         (ptr_hash_hasher::hash): Likewise.
15832         (ptr_hash_hasher::equal): Likewise.
15833         (make_loc_descriptor): Likewise.
15834         (ggc_prune_ptr): Likewise.
15835         (dump_ggc_loc_statistics): Use new memory descriptor.
15836         (ggc_record_overhead): Likewise.
15837         (ggc_free_overhead): Likewise.
15838         (final_cmp_statistic): Remove.
15839         (cmp_statistic): Likewise.
15840         (ggc_add_statistics): Liekwise.
15841         (ggc_prune_overhead_list): Likewise.
15842         * hash-map-traits.h: New file.
15843         * hash-map.h (struct default_hashmap_traits): Move the traits to a
15844         separate header file.
15845         * hash-set.h: Pass memory statistics info to ctor.
15846         * hash-table.c (void dump_hash_table_loc_statistics): New function.
15847         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15848         (hash_table::~hash_table): Register memory release operation.
15849         (hash_table::alloc_entries): Handle memory allocation operation.
15850         (hash_table::expand): Likewise.
15851         * inchash.c (iterative_hash_hashval_t): Move implementation to header
15852         file.
15853         (iterative_hash_host_wide_int): Likewise.
15854         * inchash.h (class hash): Likewise.
15855         * mem-stats-traits.h: New file.
15856         * mem-stats.h: New file.
15857         (mem_location): Add new class.
15858         (mem_usage): Likewise.
15859         (mem_alloc_description): Likewise.
15860         * sese.c: Add new header file inclusision.
15861         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15862         and hash_set.
15863         * tree-sra.c: Add new header file inclusision.
15864         * vec.c (struct vec_descriptor): Remove.
15865         (hash_descriptor): Likewise.
15866         (struct vec_usage): Likewise.
15867         (struct ptr_hash_entry): Likewise.
15868         (hash_ptr): Likewise.
15869         (eq_ptr): Likewise.
15870         (vec_prefix::register_overhead): Use new memory descriptor API.
15871         (vec_prefix::release_overhead): Likewise.
15872         (add_statistics): Remove.
15873         (dump_vec_loc_statistics): Use new memory descriptor API.
15874         * vec.h (struct vec_prefix): Likewise.
15875         (va_heap::reserve): Likewise.
15876         (va_heap::release): Likewise.
15877         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15879 2015-05-27  Richard Biener  <rguenther@suse.de>
15881         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15882         earlier and remove ??? comment.
15883         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15884         and got called from loop analysis bail out.  Always pass the SLP
15885         node to the vectorizable_* functions.
15886         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15887         the premature SLP check here.
15888         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15889         detected SLP stmts.
15890         (vect_detect_hybrid_slp_1): Likewise.
15892 2015-05-26  Jeff Law  <law@redhat.com>
15894         * combine.c (find_split_point): Verify that the shift count is a
15895         constant when choosing (plus (ashift ...)) as a split point.
15897         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15898         No functional changes.
15900 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
15902         * ipa-polymorphic-call.c
15903         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15904         case when call target is already known.
15906 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
15908         PR target/65979
15909         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15910         take into account the case that operands[1] and operands[2]
15911         are the same register.
15913 2015-05-26  Michael Matz  <matz@suse.de>
15915         PR middle-end/66251
15917         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15918         stores.
15919         (vect_create_vectorized_demotion_stmts): Always set
15920         STMT_VINFO_VEC_STMT, also with SLP.
15921         (vectorizable_store): Handle strided group stores.
15923 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15925         PR target/66049
15926         * config/aarch64/aarch64.md
15927         (*adds_shift_imm_<mode>):  New pattern.
15928         (*subs_shift_imm_<mode>):  Likewise.
15929         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
15930         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15931         (*add_uxt<mode>_shift2): Likewise.
15932         (*add_uxtsi_shift2_uxtw): Likewise.
15933         (*sub_uxt<mode>_shift2): Likewise.
15934         (*sub_uxtsi_shift2_uxtw): Likewise.
15936 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
15938         * config/rs6000/constraints.md (Y, U): Use match_test.
15940 2015-05-26  Christian Bruel  <christian.bruel@st.com>
15942         PR target/52144
15943         * config/arm/arm.c (arm_option_check_internal)
15944         (arm_option_params_internal): Check opts->target_flags to set macros.
15945         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15946         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15947         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15948         (builtin_define): Replaced with def_or_undef_macro.
15949         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15950         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15951         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15952         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15953         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15954         (TARGET_ARM_FEATURE_LDREX_P)
15955         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15956         * config/arm/arm-c.c (def_or_undef_macro): New function.
15957         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15959 2015-05-26  Christian Bruel  <christian.bruel@st.com>
15961         * c-common.h (builtin_define_with_int_value)
15962         (builtin_define_type_sizeof): Declare.
15963         * c-cppbuiltin.c (builtin_define_with_int_value)
15964         (builtin_define_type_sizeof): Externalize.
15965         (builtin_define_std): Cleanup declaration.
15966         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15967         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15968         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15969         (builtin_define, builtin_assert): New macros.
15971 2015-05-26  Richard Biener  <rguenther@suse.de>
15973         PR tree-optimization/66142
15974         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15975         MEM_REFs for the same base address.
15977 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15979         PR ipa/66181
15980         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15982 2015-05-26  Jason Merrill  <jason@redhat.com>
15984         * configure.ac: Set CXXFLAGS for ISL test.
15985         * configure: Regenerate.
15987         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
15988         strstr and basename.
15989         * configure: Regenerate.
15991 2015-05-26  Richard Biener  <rguenther@suse.de>
15993         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15994         X % C -> X & (C - 1) for C being a power-of two to ...
15995         * match.pd: ... patterns.
15997 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
15999         * match.pd (swapped_tcc_comparison): New operator list.
16000         (-A CMP -B): New simplification.
16001         * fold-const.c (fold_comparison): Remove corresponding code.
16003 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
16005         * caller-save.c (init_caller_save): Base temporary register numbers
16006         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16007         * cfgloopanal.c (init_set_costs): Likewise.
16008         * dojump.c (prefer_and_bit_test): Likewise.
16009         * expr.c (init_expr_target): Likewise.
16010         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16011         * lower-subreg.c (init_lower_subreg): Likewise.
16012         * postreload.c (reload_cse_regs_1): Likewise.
16014 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
16016         * gensupport.h (compute_test_codes): Declare.
16017         * gensupport.c (compute_predicate_codes): Rename to...
16018         (compute_test_codes): ...this.  Generalize error message.
16019         (process_define_predicate): Update accordingly.
16020         * genpreds.c (compute_maybe_allows): Delete.
16021         (add_constraint): Use compute_test_codes to determine whether
16022         something can accept a SUBREG, REG or MEM.
16024 2015-05-26  Torvald Riegel  <triegel@redhat.com>
16026         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16027         'memory model' to align with C++11; fix description of memory orders;
16028         fix a few typos.
16030 2015-05-26  Richard Biener  <rguenther@suse.de>
16032         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16033         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
16034         detect whether we apply SLP.  Remove call to
16035         vect_update_slp_costs_according_to_vf.
16036         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16037         vect_update_slp_costs_according_to_vf from here.  Dispatch
16038         to vect_slp_analyze_operations to analyze SLP stmts.
16039         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16040         unused bb_vec_info parameter, adjust assert.
16041         (vect_slp_analyze_operations): Pass in the slp instance tree
16042         instead of bb_vec_info.
16043         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16044         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16046 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
16048         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16049         Q_REGS.  Expand comment.
16050         (REG_CLASS_NAMES): Ditto.
16051         (REG_CLASS_CONTENTS): Ditto.
16053 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
16055         PR target/66274
16056         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16057         when LEGACY_INT_REGNO_P is processed.
16059 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
16061         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16063 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16065         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16066         register if not marked dead/unused, before return.
16068 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
16070         PR lto/66180
16071         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16072         is set; check for assembler name at LTO time.
16073         (type_in_anonymous_namespace): Remove hacks, check that all
16074         anonymous types are called "<anon>"
16075         (odr_type_p): Simplify; add check for "<anon>"
16076         (odr_subtypes_equivalent): Add odr_type_p check.
16077         * tree.c (need_assembler_name_p): Even anonymous namespace needs
16078         assembler name.
16080 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
16082         * ipa-utils.h (method_class_type): Remove.
16083         * cgraphunit.c (walk_polymorphic_call_targets): Use
16084         TYPE_METHOD_BASETYPE.
16085         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16086         on main variants only.
16087         (method_class_type): Remove.
16088         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16089         (build_type_inheritance_graph): Likewise.
16090         * ipa-icf.c (sem_function::equals_wpa): Likewise.
16091         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16092         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16094 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
16096         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16097         is_typedef_decl, typedef_variant_p): Constify.
16098         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16099         is_typedef_decl, typedef_variant_p): Constify.
16101 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16103         * defaults.h (gen_tablejump): New function.
16104         (HAVE_tablejump): Add default value.
16105         * expr.c: Adjust.
16106         * stmt.c: Likewise.
16108 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16110         * defaults.h (gen_store_multiple): New function.
16111         (HAVE_store_multiple): Add default value.
16112         * expr.c (move_block_from_reg): Adjust.
16114 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16116         * defaults.h (gen_load_multiple): New function.
16117         (HAVE_load_multiple): Add default value.
16118         * expr.c (move_block_to_reg): Adjust.
16120 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16122         * defaults.h (gen_mem_signal_fence): New function.
16123         (HAVE_mem_signal_fence): Add default value.
16124         * optabs.c: Adjust.
16126 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16128         * defaults.h (gen_memory_barrier): New function.
16129         (HAVE_memory_barrier): Add default value.
16130         * optabs.c: Adjust.
16132 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16134         * defaults.h (gen_mem_thread_fence): New function.
16135         (HAVE_mem_thread_fence): Add default definition.
16136         * optabs.c: Adjust.
16138 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16140         * combine.c (find_split_point): Check the value of HAVE_lo_sum
16141         instead of if it is defined.
16142         (combine_simplify_rtx): Likewise.
16143         * lra-constraints.c (process_address_1): Likewise.
16144         * config/darwin.c: Adjust.
16145         * genconfig.c (main): Always define HAVE_lo_sum.
16147 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16149         * genmatch.c (parser::parse_operation): Reject expanding
16150         operator-list inside 'for'.
16152 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16154         * genmatch.c (parser::parse_for): Reject iterator if used as
16155         operator-list.
16157 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16159         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16160         after end of id-list.
16162 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
16164         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16165         we do not try to compute canonical type for type that does not need
16166         alias set.
16167         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16168         FUNCITON_TYPE.
16169         * tree.h (type_with_alias_set_p): New.
16171 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
16173         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
16174         function attributes.
16175         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16177 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
16179         * Makefile.in (check_gcc_parallelize): Delete.
16180         (lang_checks_parallelized): Update comment.
16182 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
16184         PR rtl-optimization/66237
16185         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16186         location of an "as_a" cast.
16188 2015-05-22  Jeff Law  <law@redhat.com>
16190         * config/pa/pa.md (non-canonical shift-add insns): Remove.
16191         (peepholes with non-canonical RTL sources): Remove.
16192         (peepholes for indexed stores of FP regs in integer modes): Match and
16193         generate canonical RTL.
16195 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
16197         PR tree-optimization/63387
16198         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16199         ((x ord x) & (y ord y) -> (x ord y),
16200         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16201         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16202         vectors like scalars.
16204 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
16206         * convert.c (convert_to_integer, convert_to_vector): Include the
16207         types in the error message.
16209 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
16211         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16212         simplifications.
16214 2015-05-22  Jeff Law  <law@redhat.com>
16216         * config/pa/pa.md (integer_indexed_store splitters): Use
16217         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
16218         insns -- adjusting the constant 2nd operand accordingly.
16220         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16221         (plus (ashift X log2) Y) if it is a split point.
16223         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16224         out of hppa_legitimize_address to handle both forms of a multiply
16225         by 2, 4 or 8.
16226         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16227         Always generate the ASHIFT variant as the result is not directly
16228         used in a MEM.  Update comments and refactor slightly to improve
16229         readability.
16231 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16233         PR target/65491
16234         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16235         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
16236         (aarch64_composite_type_p): Return false if given type and mode are
16237         for a short vector.
16239 2015-05-22  Richard Biener  <rguenther@suse.de>
16241         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16242         member.
16243         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16244         patterns when determining whether SLP is pure.
16245         (vect_is_slp_reduction): Remove check for pattern stmts.
16246         (vect_is_simple_reduction_1): Remove dead code.
16247         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16248         (vect_get_and_check_slp_defs): Pass in the stmt number.
16249         Allow the first def in a reduction to be not a pattern stmt when
16250         the rest of the stmts def are patterns.
16251         (vect_build_slp_tree_1): Allow tcc_expression codes like
16252         SAD_EXPR and DOT_PROD_EXPR.
16253         (vect_build_slp_tree): Adjust.
16254         (vect_analyze_slp): Refactor and move BB vect error message ...
16255         (vect_slp_analyze_bb_1): ... here.
16257 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
16259         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16260         for CSWTCH temporary.
16262 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16264         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16265         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
16266         unknown unspecs.
16268 2015-05-22  Richard Biener  <rguenther@suse.de>
16270         PR tree-optimization/66251
16271         * tree-vect-stmts.c (vectorizable_conversion): Properly
16272         set STMT_VINFO_VEC_STMT even for the SLP case.
16274 2015-05-22  Marek Polacek  <polacek@redhat.com>
16276         * doc/extend.texi: Use @pxref instead of @xref.
16278 2015-05-22  hiraditya  <hiraditya@msn.com>
16280         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16281         redundant if.
16283 2015-05-22  Richard Biener  <rguenther@suse.de>
16285         PR tree-optimization/65701
16286         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16287         Move peeling cost models into one place.  Peel for alignment
16288         for single loads only if an aligned load is cheaper than
16289         an unaligned load.
16291 2015-05-22  Marek Polacek  <polacek@redhat.com>
16293         PR c/47043
16294         * doc/extend.texi (Enumerator Attributes): New section.
16295         Document syntax of enumerator attributes.
16297 2015-05-22  Richard Biener  <rguenther@suse.de>
16299         * tree-vect-loop.c (get_reduction_op): New function.
16300         (vect_model_reduction_cost): Use it, add reduc_index parameter.
16301         Make ready for BB reductions.
16302         (vect_create_epilog_for_reduction): Use get_reduction_op.
16303         (vectorizable_reduction): Init reduc_index to a valid value.
16304         Adjust vect_model_reduction_cost call.
16305         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16306         operand for reduction defaults.  Add SAD_EXPR support.
16307         Assert we have a neutral op for SLP reductions.
16308         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16309         walking pattern stmt ops only recurse to SSA names.
16311 2015-05-22  Richard Biener  <rguenther@suse.de>
16313         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16314         assert with guard, remove check on detected reduction.
16315         (vect_recog_sad_pattern): Likewise.
16316         (vect_recog_widen_sum_pattern): Likewise.
16318 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16320         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16321         __always_inline__ attribute.
16322         (vaesdq_u8): Likewise.
16323         (vaesmcq_u8): Likewise.
16324         (vaesimcq_u8): Likewise.
16325         (vsha1cq_u32): Likewise.
16326         (vsha1mq_u32): Likewise.
16327         (vsha1pq_u32): Likewise.
16328         (vsha1h_u32): Likewise.
16329         (vsha1su0q_u32): Likewise.
16330         (vsha1su1q_u32): Likewise.
16331         (vsha256hq_u32): Likewise.
16332         (vsha256h2q_u32): Likewise.
16333         (vsha256su0q_u32): Likewise.
16334         (vsha256su1q_u32): Likewise.
16335         (vmull_p64): Likewise.
16336         (vmull_high_p64): Likewise.
16338 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16340         * final.c (final_scan_insn): Don't check HAVE_peephole with the
16341         preprocessor.
16342         * output.h: Likewise.
16343         * genconfig.c (main): Alwways define HAVE_peephole.
16344         * genpeep.c: Don't emit checks of HAVE_peephole.
16346 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16348         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16349         check HAVE_conditional_move with the preprocessor.
16351 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16353         * genconfig.c (main): Always define HAVE_conditional_move.
16354         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16355         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16356         is defined.
16358 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16360         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16361         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16362         and FRAME_POINTER_REGNUM with the preprocessor.
16364 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16366         * defaults.h: Add default for STACK_PUSH_CODE.
16367         * expr.c: Don't redefine STACK_PUSH_CODE.
16368         * recog.c: Likewise.
16370 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16372         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16373         sched-deps.c: Use if instead of preprocessor checks with
16374         STACK_GROWS_DOWNWARD.
16376 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16378         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16379         is defined.
16380         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16381         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16382         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16383         * doc/tm.texi: Regenerate.
16385 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16387         PR target/66232
16388         * config/i386/constraints.md (Bg): New constraint for GOT memory
16389         operand.
16390         * config/i386/i386.md (*call_got_x32): New pattern.
16391         (*call_value_got_x32): Likewise.
16392         * config/i386/predicates.md (GOT_memory_operand): New predicate.
16394 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
16396         PR tree-optimization/66233
16397         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16398         Simplify.
16400 2015-05-21  Jeff Law  <law@redhat.com>
16402         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16403         than MULT for shadd sequences.
16405 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
16407         * alias.c (alias_stats): New static var.
16408         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16409         (dump_alias_stats_in_alias_c): New function.
16410         * alias.h (dump_alias_stats_in_alias_c): Declare.
16411         * tree-ssa-alias.c (dump_alias_stats): Call it.
16413 2015-05-08  Michael Matz  <matz@suse.de>
16415         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16416         to strided_p.
16417         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16418         (STMT_VINFO_STRIDED_P): ... this.
16419         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16420         (vect_verify_datarefs_alignment): Likewise.
16421         (vect_enhance_data_refs_alignment): Likewise.
16422         (vect_analyze_data_ref_access): Likewise.
16423         (vect_analyze_data_refs): Accept strided stores.
16424         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16425         (vect_model_load_cost): Adjust for macro rename.
16426         (vectorizable_mask_load_store): Likewise.
16427         (vectorizable_load): Likewise.
16428         (vectorizable_store): Open code strided stores.
16430 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16432         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
16433         Document sqrt_insn.
16435 2015-05-21  Richard Biener  <rguenther@suse.de>
16437         PR c++/66211
16438         * match.pd: Guard pattern optimzing (int)(float)int
16439         conversions to apply only on GIMPLE.
16441 2015-05-21  Jeff Law  <law@redhat.com>
16443         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
16444         multiply-accumulate/shift-add insn generation.
16446 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
16448         PR target/54236
16449         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
16450         operands[1] are the same.
16452 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
16454         PR middle-end/66221
16455         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
16456         build_distinct_type_copy to copy bounds.
16458 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
16460         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
16461         Change to unsigned int.
16463 2015-05-20  Jeff Law  <law@redhat.com>
16465         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
16466         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
16467         (pa_shadd_constant_p): Allow constants for shadd insns rather
16468         than valid scaling constants for memory addresses.
16469         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
16470         * config/pa/predicates.md (mem_shadd_operand): New predicate.
16471         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
16472         (shift-add insns using ASHIFT): New patterns.
16474 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
16476         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16477         feasible.
16478         (fix_up_fall_thru_edges): Likewise.
16479         (fix_crossing_conditional_branches): Likewise. Promote jump targets
16480         from to rtx_insn to rtx_code_label where feasible.
16481         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16482         gen_move_insn (returned type changed to rtx_insn).
16483         * builtins.c (expand_errno_check): Fix arguments of
16484         do_compare_rtx_and_jump (now expects rtx_code_label).
16485         (expand_builtin_acc_on_device): Likewise.
16486         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16487         invert_jump (now exprects rtx_jump_insn).
16488         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16489         (construct_init_block): Use rtx_code_label.
16490         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16491         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16492         calling redirect_jump.
16493         (patch_jump_insn): Likewise.
16494         (redirect_branch_edge): Likewise.
16495         (force_nonfallthru_and_redirect): Likewise.
16496         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16497         when suitable.
16498         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16499         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16500         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16501         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16502         to store the value retured by gen_label_rtx.
16503         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
16504         rtx_jump_insn.
16505         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
16506         (split_branches): Fix calls of redirect_jump.
16507         * dojump.c (jumpifnot): Promote argument type from rtx to
16508         rtx_code_label.
16509         (jumpifnot_1): Likewise.
16510         (jumpif): Likewise.
16511         (jumpif_1): Likewise.
16512         (do_jump_1): Likewise.
16513         (do_jump): Likewise. Use rtx_code_label when feasible.
16514         (do_jump_by_parts_greater_rtx): Likewise.
16515         (do_jump_by_parts_zero_rtx): Likewise.
16516         (do_jump_by_parts_equality_rtx): Likewise.
16517         (do_compare_rtx_and_jump): Likewise.
16518         * dojump.h: Update function prototypes.
16519         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
16520         returns rtx_insn).
16521         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
16522         rtx_jump_insn.
16523         (emit_label_before): Likewise.
16524         (emit_jump_insn_after_noloc): Likewise.
16525         (emit_jump_insn_after_setloc): Likewise.
16526         (emit_jump_insn_after): Likewise
16527         (emit_jump_insn_before_setloc): Likewise.
16528         (emit_jump_insn_before): Likewise.
16529         (emit_label_before): Promote return type to rtx_code_label.
16530         (emit_label): Likewise.
16531         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16532         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16533         gen_move_insn.
16534         (emit_stack_restore): Likewise.
16535         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16536         (do_cmp_and_jump): Likewise.
16537         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16538         from rtx to rtx_code_label.
16539         (gen_move_insn_uncast): New function.
16540         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16541         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16542         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16543         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16544         invert_jump_1 and redirect_jump_1.
16545         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16546         do_compare_rtx_and_jump.
16547         (expand_addsub_overflow): Likewise.
16548         (expand_neg_overflow): Likewise.
16549         (expand_mul_overflow): Likewise.
16550         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16551         return value of gen_move_insn.
16552         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16553         * loop-doloop.c (add_test): Use rtx_code_label.
16554         (doloop_modify): Likewise.
16555         (doloop_optimize): Likewise.
16556         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16557         * lra-constraints.c (emit_spill_move): Remove cast of value returned
16558         by gen_move_insn.
16559         (inherit_reload_reg): Add cast when calling dump_insn_slim.
16560         (split_reg): Likewise.
16561         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16562         gen_move_insn.
16563         * optabs.c (expand_binop_directly): Remove casts of values returned by
16564         maybe_gen_insn.
16565         (expand_unop_direct): Likewise.
16566         (expand_abs): Likewise.
16567         (maybe_emit_unop_insn): Likewise.
16568         (maybe_gen_insn): Promote return type to rtx_insn.
16569         * optabs.h: Update prototype of maybe_gen_insn.
16570         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16571         redundant cast.
16572         * recog.c (struct peep2_insn_data): Promote type of insn field to
16573         rtx_insn.
16574         (peep2_reinit_state): Use NULL instead of NULL_RTX.
16575         (peep2_attempt): Remove casts of insn in peep2_insn_data.
16576         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16577         * recog.h (struct insn_gen_fn): Promote return types of function
16578         pointers and operator ().from rtx to rtx_insn.
16579         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16580         (fill_eager_delay_slots): Likewise.
16581         (relax_delay_slots): Likewise.
16582         (make_return_insns): Likewise.
16583         (dbr_schedule): Likewise.
16584         (optimize_skips): Likewise.
16585         (reorg_redirect_jump): Likewise.
16586         (fill_slots_from_thread): Likewise.
16587         * reorg.h: Update prototypes.
16588         * resource.c (find_dead_or_set_registers): Use dyn_cast to
16589         rtx_jump_insn instead of check.  Use it's jump_target method.
16590         * rtl.h (rtx_jump_insn::jump_label): Define new method.
16591         (rtx_jump_insn::jump_target): Define new method.
16592         (rtx_jump_insn::set_jump_target): Define new method.
16593         * rtlanal.c (tablejump_p): Promote type of one local variable.
16594         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16595         (sched_analyze_insn): Likewise.
16596         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16597         (print_insn): Likewise.
16598         * stmt.c (label_rtx): Promote return type to rtx_insn.
16599         (force_label_rtx): Likewise.
16600         (jump_target_rtx): Define new function.
16601         (expand_label): Use it, get rid of one cast.
16602         (expand_naked_return): Promote rtx to rtx_code_label.
16603         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16604         (expand_case): Use rtx_code_label instread of rtx where feasible.
16605         (expand_sjlj_dispatch_table): Likewise.
16606         (emit_case_nodes): Likewise.
16607         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
16608         * store-motion.c (insert_store): Make use of new return type of
16609         gen_move_insn and remove a cast.
16610         (replace_store_insn): Likewise.
16612 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
16614         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16615         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16617 2015-05-20  Jeff Law  <law@redhat.com>
16619         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16620         dispose of the jump thread path when the jump threading
16621         opportunity is cancelled.
16623 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16625         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16626         when printing the caret character.
16628 2015-05-20  Marek Polacek  <polacek@redhat.com>
16630         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16632 2015-05-20  Marek Polacek  <polacek@redhat.com>
16634         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16635         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16636         * gimple-fold.c (canonicalize_bool): Likewise.
16637         (same_bool_result_p): Likewise.
16638         * tree-if-conv.c (parse_predicate): Likewise.
16640 2015-05-20  Marek Polacek  <polacek@redhat.com>
16642         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16643         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16645 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16647         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16648         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16649         values.
16651 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
16653         * config/mips/mips.h (micromips_globals): Declare.
16655 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
16657         * timevar.def (TV_INITIALIZE_RTL): New.
16658         * toplev.c (initialize_rtl): Use an auto_timevar to account this
16659         function's time to TV_INITIALIZE_RTL.
16661 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
16663         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16664         gimple_build_nop calls.
16665         (chkp_find_bounds_for_elem): Likewise.
16666         (chkp_get_zero_bounds): Likewise.
16667         (chkp_get_none_bounds): Likewise.
16668         (chkp_get_bounds_by_definition): Likewise.
16669         (chkp_generate_extern_var_bounds): Likewise.
16670         (chkp_get_bounds_for_decl_addr): Likewise.
16671         (chkp_get_bounds_for_string_cst): Likewise.
16673 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
16675         PR tree-optimization/65447
16676         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16677         (dump_use, dump_uses): Support to dump sub use.
16678         (record_use): New parameters to support sub use.  Remove call to
16679         dump_use.
16680         (record_sub_use, record_group_use): New functions.
16681         (compute_max_addr_offset, split_all_small_groups): New functions.
16682         (group_address_uses, rewrite_use_address): New functions.
16683         (strip_offset): New declaration.
16684         (find_interesting_uses_address): Call record_group_use.
16685         (add_candidate): New assertion.
16686         (infinite_cost_p): Move definition forward.
16687         (add_costs): Check INFTY cost and return immediately.
16688         (get_computation_cost_at): Clear setup cost and dependent bitmap
16689         for sub uses.
16690         (determine_use_iv_cost_address): Compute cost for sub uses.
16691         (rewrite_use_address_1): Rename from old rewrite_use_address.
16692         (free_loop_data): Free sub uses.
16693         (tree_ssa_iv_optimize_loop): Call group_address_uses.
16695 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16696             Jim Wilson  <jim.wilson@linaro.org>
16698         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16699         new  fields loadv and storev.
16700         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16701         Initialize loadv and storev.
16702         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16703         (cortexa53_extra_costs): Likewise.
16704         (cortexa57_extra_costs): Likewise.
16705         (xgene1_extra_costs): Likewise.
16706         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16707         rtx_costs.
16709 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16711         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16712          storev.
16713         (cortexa8_extra_costs): Likewise.
16714         (cortexa5_extra_costs): Likewise.
16715         (cortexa7_extra_costs): Likewise.
16716         (cortexa12_extra_costs): Likewise.
16717         (cortexa15_extra_costs): Likewise.
16718         (v7m_extra_costs): Likewise.
16720 2015-05-20  Jeff Law  <law@redhat.com>
16722         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16723         instead of open-coded version.  Also delete the jump thread created
16724         within this function.
16726 2015-05-20  Alan Modra  <amodra@gmail.com>
16728         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16729         stack adjusting insn.  Formatting.
16730         (rs6000_emit_prologue): Track stack adjusting insn, and use of
16731         r12.  If possible, emit first -fsplit-stack arg pointer insn
16732         before stack adjust.  Don't use r12 to save cr if split-stack.
16734 2015-05-20  Alan Modra  <amodra@gmail.com>
16736         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16737         Define.
16738         (rs6000_supports_split_stack): New function.
16739         * gcc/config/rs6000/rs6000.c (machine_function): Add
16740         split_stack_arg_pointer.
16741         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16742         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16743         rather than virtual_incoming_args_rtx.
16744         (rs6000_va_start): Likewise.
16745         (split_stack_arg_pointer_used_p): New function.
16746         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16747         (morestack_ref): New var.
16748         (gen_add3_const, rs6000_expand_split_stack_prologue,
16749         rs6000_internal_arg_pointer, rs6000_live_on_entry,
16750         rs6000_split_stack_space_check): New functions.
16751         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16752         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16753         (UNSPECV_SPLIT_STACK_RETURN): Define.
16754         (split_stack_prologue, load_split_stack_limit,
16755         load_split_stack_limit_di, load_split_stack_limit_si,
16756         split_stack_return, split_stack_space_check): New expands and insns.
16757         * gcc/config/rs6000/rs6000-protos.h
16758         (rs6000_expand_split_stack_prologue): Declare.
16759         (rs6000_split_stack_space_check): Declare.
16761 2015-05-20  Alan Modra  <amodra@gmail.com>
16763         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
16764         (direct_return): Test vrsave_size rather than vrsave_mask.
16765         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
16766         (rs6000_emit_epilogue): Likewise.
16768 2015-05-20  Alan Modra  <amodra@gmail.com>
16770         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
16771         when not saving registers.
16772         (debug_stack_info): Adjust to omit printing unused offsets,
16773         as before.
16774         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
16775         expression.
16777 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16779         PR c++/65835
16780         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
16781         value_type to const char *.
16783 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
16785         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
16786         to build a biarch toolchain again.
16788 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
16790         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
16791         or implicit declarations.
16792         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
16793         into it.
16794         (get_odr_type): Check type has linkage before adding bases.
16795         (register_odr_type): Check that type has linkage before adding it.
16796         (type_known_to_have_no_deriavations_p): Rename to ..
16797         (type_known_to_have_no_derivations_p): This one.
16798         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
16799         (type_known_to_have_no_derivations_p): This one.
16800         * ipa-polymorphic-call.c
16801         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
16802         type has linkage.
16804 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16806         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
16807         (layout_type): Use RECORD_OR_UNION_TYPE_P.
16809 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16811         * config/s390/s390.c (s390_vector_bool_type_p): New function.
16812         (s390_invalid_binary_op): New function.
16813         (TARGET_INVALID_BINARY_OP): Define macro.
16815 2015-05-19  David Sherwood  <david.sherwood@arm.com>
16817         * loop-invariant.c (create_new_invariant): Don't calculate address cost
16818         if mode is not a scalar integer.
16819         (get_inv_cost): Increase computational cost for unused invariants.
16821 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16823         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
16824         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
16825         * config/s390/s390-builtin-types.def: New file.
16826         * config/s390/s390-builtins.def: New file.
16827         * config/s390/s390-builtins.h: New file.
16828         * config/s390/s390-c.c: New file.
16829         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16830         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16831         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16832         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16833         prototypes.
16834         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16835         Include.
16836         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16837         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16838         variable definitions.
16839         (s390_const_operand_ok): New function.
16840         (s390_expand_builtin): Rewrite.
16841         (s390_init_builtins): New function.
16842         (s390_handle_vectorbool_attribute): New function.
16843         (s390_attribute_table): Add s390_vector_bool attribute.
16844         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16845         (s390_branch_condition_mask): Generate masks for new modes.
16846         (s390_expand_vec_compare_cc): New function.
16847         (s390_mangle_type): Add mangling for vector bool types.
16848         (enum s390_builtin): Remove.
16849         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16850         efpc builtins.
16851         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16852         s390_cpu_cpp_builtins.
16853         (REGISTER_TARGET_PRAGMAS): New macro.
16854         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16855         (insn_cmp mode attribute): Add new CC modes.
16856         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16857         (lcbb): New pattern definition.
16858         * config/s390/s390intrin.h: Include vecintrin.h.
16859         * config/s390/t-s390: New file.
16860         * config/s390/vecintrin.h: New file.
16861         * config/s390/vector.md: Include vx-builtins.md.
16862         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16863         support.
16865 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16867         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16868         CCVFHE.
16869         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16870         (s390_select_ccmode): Likewise.
16871         (s390_canonicalize_comparison): Swap operands if necessary.
16872         (s390_expand_vec_compare_scalar): Expand DFmode compare using
16873         single element vector instructions.
16874         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16875         (s390_branch_condition_mask): Generate CC masks for the new modes.
16876         * config/s390/s390.md (v0, vf, vd): New mode attributes.
16877         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16878         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16879         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16880         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16881         (*extend<DSF:mode><BFP:mode>2): New insn definition.
16882         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16883         (extend<DSF:mode><BFP:mode>2): Turn into expander.
16884         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16885         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16886         (sqrt<mode>2): Add vector instruction.
16888 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16890         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16891         constraints.
16892         * config/s390/predicates.md (const0_operand, constm1_operand)
16893         (constable_operand): Accept vector operands.
16894         * config/s390/s390-modes.def: Add supported vector modes.
16895         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16896         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16897         (s390_bytemask_vector_p, s390_expand_vec_strlen)
16898         (s390_expand_vec_compare, s390_expand_vcond)
16899         (s390_expand_vec_init): Add prototypes.
16900         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16901         (s390_vector_mode_supported_p): New function.
16902         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16903         (s390_contiguous_bitmask_vector_p): New function.
16904         (s390_bytemask_vector_p): New function.
16905         (s390_split_ok_p): Vector regs don't work either.
16906         (regclass_map): Add VEC_REGS.
16907         (s390_legitimate_constant_p): Handle vector constants.
16908         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16909         (legitimate_reload_vector_constant_p): New function.
16910         (s390_preferred_reload_class): Handle CONST_VECTOR.
16911         (s390_reload_symref_address):  Likewise.
16912         (s390_secondary_reload): Vector memory instructions only support
16913         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
16914         (s390_emit_ccraw_jump): New function.
16915         (s390_expand_vec_strlen): New function.
16916         (s390_expand_vec_compare): New function.
16917         (s390_expand_vcond): New function.
16918         (s390_expand_vec_init): New function.
16919         (s390_dwarf_frame_reg_mode): New function.
16920         (print_operand): Handle addresses with 'O' and 'R' constraints.
16921         (NR_C_MODES, constant_modes): Add vector modes.
16922         (s390_output_pool_entry): Handle vector constants.
16923         (s390_hard_regno_mode_ok): Handle vector registers.
16924         (s390_class_max_nregs): Likewise.
16925         (s390_cannot_change_mode_class): New function.
16926         (s390_invalid_arg_for_unprototyped_fn): New function.
16927         (s390_function_arg_vector): New function.
16928         (s390_function_arg_float): Remove size variable.
16929         (s390_pass_by_reference): Handle vector arguments.
16930         (s390_function_arg_advance): Likewise.
16931         (s390_function_arg): Likewise.
16932         (s390_return_in_memory): Vector values are returned in a VR if
16933         possible.
16934         (s390_function_and_libcall_value): Handle vector arguments.
16935         (s390_gimplify_va_arg): Likewise.
16936         (s390_call_saved_register_used): Consider the arguments named.
16937         (s390_conditional_register_usage): Disable v16-v31 for non-vec
16938         targets.
16939         (s390_preferred_simd_mode): New function.
16940         (s390_support_vector_misalignment): New function.
16941         (s390_vector_alignment): New function.
16942         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16943         (TARGET_VECTOR_MODE_SUPPORTED_P)
16944         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16945         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16946         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16947         (TARGET_VECTOR_ALIGNMENT): Define target macro.
16948         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16949         (FIRST_PSEUDO_REGISTER): Increase value.
16950         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16951         (VECTOR_REG_P): Define macros.
16952         (FIXED_REGISTERS, CALL_USED_REGISTERS)
16953         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16954         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16955         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16956         Add vector registers.
16957         (CANNOT_CHANGE_MODE_CLASS): Call C function.
16958         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16959         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16960         memory.
16961         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16962         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16963         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16964         (VR*_REGNUM): New constants.
16965         (ALL): New mode iterator.
16966         (INTALL): Remove mode iterator.
16967         Include vector.md.
16968         (movti): Implement TImode moves for VRs.
16969         Disable TImode splitter for VR targets.
16970         Implement splitting TImode GPR<->VR moves.
16971         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16972         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16973         reload<mode>_la_in, reload<mode>_la_out.
16974         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16975         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16976         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16977         (mov<mode> SF SD): Prefer lder, lde for loading.
16978         Add lrl and strl instructions.
16979         Add vector instructions.
16980         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16981         Call s390_expand_vec_strlen on z13.
16982         (*cc_to_int): Change predicate to nonimmediate_operand.
16983         (addti3): Rename to *addti3.  New expander.
16984         (subti3): Rename to *subti3.  New expander.
16985         * config/s390/vector.md: New file.
16987 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16989         * common/config/s390/s390-common.c (processor_flags_table): Add
16990         z13.
16991         * config.gcc: Add z13.
16992         * config/s390/s390-opts.h (enum processor_type): Add
16993         PROCESSOR_2964_Z13.
16994         * config/s390/s390.c (s390_adjust_priority): Check for
16995         PROCESSOR_2964_Z13.
16996         (s390_reorg): Likewise.
16997         (s390_sched_reorder): Likewise.
16998         (s390_sched_variable_issue): Likewise.
16999         (s390_loop_unroll_adjust): Likewise.
17000         (s390_option_override): Likewise. Default to -mvx when available.
17001         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17002         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17003         (TARGET_VX_ABI): Define macros.
17004         macros.
17005         (TARGET_DEFAULT): Add MASK_OPT_VX.
17006         * config/s390/s390.md ("cpu" attribute): Add z13.
17007         ("cpu_facility" attribute): Add vec.
17008         * config/s390/s390.opt (processor_type): Add z13.
17009         (mvx): New options.
17010         * doc/invoke.texi: Add z13 option for -march.
17012 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17014         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17015         mode check to make sure that only scalar integer values are
17016         accepted.
17018 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
17020         * tree.c (verify_type_variant): Fix #undef.
17021         (gimple_canonical_types_compatible_p): Move here from lto.c
17022         (verify_type): Verify TYPE_CANONICAL compatibility.
17023         * tree.h (gimple_canonical_types_compatible_p): Declare.
17025 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
17027         PR middle-end/66199
17028         * tree.h (OMP_TEAMS_COMBINED): Define.
17029         * gimplify.c (enum gimplify_omp_var_data): Add
17030         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17031         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17032         (omp_notice_variable): Accept both ORT_TEAMS
17033         and ORT_COMBINED_TEAMS.  Don't recurse if
17034         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17035         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17036         GOVD_FIRSTPRIVATE.
17037         (omp_no_lastprivate): New function.
17038         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17039         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17040         notice_outer and set appropriate bits, otherwise make
17041         sure default(none) combined constructs won't complain.
17042         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17043         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17044         omp_no_lastprivate either remove the clause or turn it
17045         into OMP_CLAUSE_PRIVATE.
17046         (gimplify_omp_for): Fix up handling of implicit
17047         lastprivate or linear iterators.
17048         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17049         ORT_COMBINED_TEAMS.
17050         * omp-low.c (lower_omp_for_lastprivate): For combined
17051         for simd use fd.loop.n2 from the for rather than simd.
17053 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17055         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17056         instead of gen_rtx_raw_REG.
17057         (cris_expand_epilogue): Likewise.
17058         * config/microblaze/microblaze.c (microblaze_classify_address):
17059         Likewise.
17060         * config/sparc/sparc.md: Likewise.
17062 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
17064         * config/alpha/alpha.c (alpha_legitimize_reload_address)
17065         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17066         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17067         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17068         Use CASE_CONST_SCALAR_INT.
17069         (print_operand) <case 'M'>: Use mode_width_operand to check the
17070         value of the constant.
17071         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17072         * config/alpha/predicates.md (input_operand): Use general_operand
17073         instead of match_code as operand check.
17074         (symbolic_operand): Use match_code with subexpression digits.
17075         * config/alpha/constraints.md (Q): Ditto.
17077 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17079         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17081 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17083         * config/s390/s390.c (s390_secondary_reload): Fix check for
17084         load/store relative.
17086 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17088         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
17089         alternative_mask to uint64_t.
17091 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
17093         PR tree-optimization/66187
17094         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17095         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
17096         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17098 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
17100         * diagnostic.c (diagnostic_report_current_module): Strengthen
17101         local "new_map" from const line_map * to
17102         const line_map_ordinary *.
17103         * genmatch.c (error_cb): Likewise for local "map".
17104         (output_line_directive): Likewise for local "map".
17105         * input.c (expand_location_1): Likewise for local "map".
17106         Pass NULL rather than &map to
17107         linemap_unwind_to_first_non_reserved_loc, since the value is never
17108         read from there, and the value written back not read from here.
17109         (is_location_from_builtin_token): Strengthen local "map" from
17110         const line_map * to const line_map_ordinary *.
17111         (dump_location_info): Strengthen locals "map" from
17112         line_map *, one to const line_map_ordinary *, the other
17113         to const line_map_macro *.
17114         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17115         const line_map * to const line_map_macro *.
17116         (maybe_unwind_expanded_macro_loc): Add a call to
17117         linemap_check_macro when writing to the "map" field of the
17118         loc_map_pair.
17119         Introduce local const line_map_ordinary * "ord_map", using it in
17120         place of "map" in the part of the function where we know we have
17121         an ordinary map.  Strengthen local "m" from const line_map * to
17122         const line_map_ordinary *.
17124 2015-05-19  Nick Clifton  <nickc@redhat.com>
17126         PR target/66156
17127         * config/msp430/msp430.md (zero_extendhisi2): Add support for
17128         separate source and destination registers.
17130 2015-05-19  Richard Biener  <rguenther@suse.de>
17132         PR tree-optimization/66165
17133         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17134         for no load permutation.
17136         PR tree-optimization/66185
17137         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17138         when building the SLP node from scalars.
17140 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
17141             Tristan Gingold  <gingold@adacore.com>
17143         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17144         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17145         (expand_stack_restore): Call record_new_stack_level.
17146         (expand_stack_save): Do not call do_pending_stack_adjust.
17147         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17148         * calls.c (expand_call): Call record_new_stack_level for alloca.
17149         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17150         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17151         (update_sjlj_context): New global function.
17152         * except.h (update_sjlj_context): Declare.
17153         * explow.c (record_new_stack_level): New global function.
17154         (allocate_dynamic_stack_space): Call record_new_stack_level.
17155         * explow.h (record_new_stack_level): Declare.
17156         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17157         * cfgrtl.c (duplicate_insn_chain): Likewise.
17159 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17161         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17162         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17163         STACK_GROWS_DOWNWARD as normal if.
17164         (expand_call): Likewise.
17166 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
17168         PR target/54236
17169         * config/sh/sh.md (*round_int_even): New insn_and_split and
17170         accompanying new unnamed split.
17172 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17174         * bitmap.c (bitmap_set_range): Handle count==1 specially.
17175         (bitmap_clear_range): Likewise.
17176         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17177         bitmap_set_range unconditionally.
17178         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17179         * df-scan.c (df_mark_reg): Likewise.
17180         * haifa-sched.c (setup_ref_regs): Likewise.
17181         * sched-rgn.c (update_live_1): Likewise.
17183 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17185         * regs.h (END_HARD_REGNO): Delete.
17186         (END_REGNO): Move to...
17187         * rtl.h: ...here.
17188         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17189         * caller-save.c (mark_set_regs): Likewise.
17190         * combine.c (move_deaths, distribute_notes): Likewise.
17191         * cse.c (invalidate, invalidate_for_call): Likewise.
17192         * df-scan.c (df_ref_record): Likewise.
17193         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17194         (record_last_reg_set_info): Likewise.
17195         * reg-stack.c (convert_regs_exit): Likewise.
17196         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17197         * resource.c (update_live_status): Likewise.
17198         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17200 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17202         * rtl.h (reg_info): Add an nregs field.
17203         (REG_NREGS): Use it.
17204         (SET_REGNO_RAW): Delete.
17205         (set_regno_raw): New function.
17206         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17207         (END_REGNO): Redefine in terms of REG_NREGS.
17208         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17209         SET_REGNO_RAW.
17210         * emit-rtl.c (set_mode_and_regno): Likewise.
17211         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17212         instead of SET_REGNO_RAW.
17214 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17216         * rtl.h (PUT_MODE_RAW): New macro.
17217         (PUT_REG_NOTE_KIND): Use it.
17218         (set_mode_and_regno): Declare.
17219         (gen_raw_REG): Change regno to "unsigned int".
17220         (gen_rtx_REG): Change "unsigned" to "unsigned int".
17221         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17222         use set_mode_and_regno to change the mode of registers.
17223         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17224         * emit-rtl.c (set_mode_and_regno): New function.
17225         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
17226         * caller-save.c (reg_save_code): Use set_mode_and_regno.
17227         * expr.c (init_expr_target): Likewise.
17228         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17229         * postreload.c (reload_cse_simplify_operands): Likewise.
17231 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17233         * caller-save.c (init_caller_save): Use word_mode and
17234         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17235         * expr.c (init_expr_target): Likewise.
17236         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17237         * postreload.c (reload_cse_regs_1): Likewise.
17239 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17241         * rtl.def (REG): Change format to "r".
17242         * rtl.h (rtunion): Remove rt_reg.
17243         (reg_info): New structure.
17244         (rtx_def): Add reg field to main union.
17245         (X0REGATTR): Delete.
17246         (REG_CHECK): New macro.
17247         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17248         * rtl.c (rtx_format): Document "r".
17249         (rtx_code_size): Handle REG specially.
17250         * gengenrtl.c (special_format): Return true for formats
17251         that include 'r'.
17252         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17253         Deal with REG_ATTRS after the field loop.
17254         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17255         * expmed.c (init_expmed): Call gen_raw_REG instead of
17256         gen_rtx_raw_REG.
17257         * expr.c (init_expr_target): Likewise.
17258         * regcprop.c (maybe_mode_change): Likewise.
17259         * varasm.c (make_decl_rtl): Likewise.
17260         * final.c (leaf_renumber_regs_insn): Return early after
17261         handling REGs.
17262         * genemit.c (gen_exp): Handle 'r' fields.
17263         * genpeep.c (match_rtx): Likewise.
17264         * gensupport.c (subst_pattern_match): Likewise.
17265         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17266         (alter_constraints, subst_dup): Likewise.
17267         * read-rtl.c (read_rtx_code): Likewise.
17268         * print-rtl.c (print_rtx): Likewise.
17269         * genrecog.c (find_operand, find_matching_operand): Likewise.
17270         (validate_pattern, match_pattern_2): Likewise.
17271         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17272         (rtx_test::regno_field): New function.
17273         (operator ==, safe_to_hoist_p, transition_parameter_type)
17274         (parameter_type_string, print_parameter_value)
17275         (print_nonbool_test, print_test): Handle new enum values.
17276         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17277         * lra-constraints.c (operands_match_p): Likewise.
17279 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17281         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17282         Change type of new_regno to unsigned int.
17283         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17284         new_regno to unsigned int.
17285         (df_ref_change_reg_with_loc): Remove old_regno parameter.
17286         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
17287         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17288         (SET_REGNO_RAW): Add space after ",".
17290 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17292         * rtl.h (REG_NREGS): New macro
17293         * alias.c (record_set): Use it.
17294         * cfgcleanup.c (mark_effect): Likewise.
17295         * combine.c (likely_spilled_retval_1): Likewise.
17296         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17297         (move_deaths, distribute_notes): Likewise.
17298         * cselib.c (cselib_record_set): Likewise.
17299         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17300         * df-scan.c (df_mark_reg): Likewise.
17301         * dse.c (look_for_hardregs): Likewise.
17302         * dwarf2out.c (reg_loc_descriptor): Likewise.
17303         (multiple_reg_loc_descriptor): Likewise.
17304         * expr.c (write_complex_part, read_complex_part): Likewise.
17305         (emit_move_complex): Likewise.
17306         * haifa-sched.c (setup_ref_regs): Likewise.
17307         * ira-lives.c (mark_hard_reg_live): Likewise.
17308         * lra.c (lra_set_insn_recog_data): Likewise.
17309         * mode-switching.c (create_pre_exit): Likewise.
17310         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17311         (reload_combine_recognize_pattern): Likewise.
17312         (reload_combine_note_use, move2add_record_mode): Likewise.
17313         (reload_cse_move2add): Likewise.
17314         * reg-stack.c (subst_stack_regs_pat): Likewise.
17315         * regcprop.c (kill_value, copy_value): Likewise.
17316         (copyprop_hardreg_forward_1): Likewise.
17317         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17318         (build_def_use): Likewise.
17319         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17320         (deps_analyze_insn): Likewise.
17321         * sched-rgn.c (check_live_1, update_live_1): Likewise.
17322         * sel-sched.c (count_occurrences_equiv): Likewise.
17323         * valtrack.c (dead_debug_insert_temp): Likewise.
17325 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17327         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17328         * dse.c (note_add_store): Likewise.
17329         * ira-lives.c (mark_hard_reg_dead): Likewise.
17330         * loop-invariant.c (mark_reg_store): Likewise.
17331         (mark_reg_death): Likewise.
17332         * postreload.c (reload_combine): Likewise.
17333         (reload_combine_note_store): Likewise.
17334         (reload_combine_note_use): Likewise.
17335         * recog.c (peep2_reg_dead_p): Likewise.
17337 2015-05-19  Alan Modra  <amodra@gmail.com>
17339         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17340         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17341         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17342         unused predicates.
17343         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17344         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
17345         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17346         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17348 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
17350         * config/mips/mips.md (JOIN_MODE): New mode iterator.
17351         (join2_load_Store<JOIN_MODE:mode>): New pattern.
17352         (join2_loadhi): Likewise.
17353         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17354         load-load and store-stores.
17355         * config/mips/mips.opt (mload-store-pairs): New option.
17356         (TARGET_LOAD_STORE_PAIRS): New macro.
17357         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17358         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17359         * config/mips/mips.c (mips_load_store_bonding_p): New function.
17361 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
17363         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17364         explicit swaps.
17365         * dojump.c (do_compare_rtx_and_jump): Likewise.
17366         * expmed.c (emit_store_flag_1): Likewise.
17367         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17368         * final.c (sprint_ul): Use std::reverse for reversing a string.
17369         * fold-const.c (extract_muldiv_1): Use std::swap.
17370         * genmodes.c (emit_mode_int_n): Likewise.
17371         * ifcvt.c (dead_or_predicable): Likewise.
17372         * ira-build.c (ira_merge_live_ranges): Likewise.
17373         (swap_allocno_copy_ends_if_necessary): Likewise.
17374         * ira.c (ira_setup_alts): Likewise.
17375         * loop-iv.c (iv_analyze_expr): Likewise.
17376         (implies_p): Likewise.
17377         (canon_condition): Likewise.
17378         * lra-constraints.c (swap_operands): Likewise.
17379         * lra-lives.c (lra_merge_live_ranges): Likewise.
17380         * omega.c (swap): Remove.
17381         (bswap): Remove.
17382         (omega_unprotect_1): Use std::swap.
17383         (omega_solve_geq): Likewise.
17384         * optabs.c (expand_binop_directly): Likewise.
17385         (expand_binop): Likewise.
17386         (emit_conditional_move): Likewise.
17387         (emit_conditional_add): Likewise.
17388         * postreload.c (reload_cse_simplify_operands): Likewise.
17389         * reg-stack.c (emit_swap_insn): Likewise.
17390         (swap_to_top): Likewise.
17391         (compare_for_stack_reg): Likewise.
17392         (subst_asm_stack_regs): Likewise.
17393         * reload.c (find_reloads): Likewise.
17394         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17395         * sel-sched.c (invoke_reorder_hooks): Likewise.
17396         (create_block_for_bookkeeping): Likewise.
17397         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17398         (lambda_matrix_right_hermite): Use std::swap.
17399         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17400         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17401         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17402         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17403         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17404         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17405         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17406         * tree-vrp.c (compare_ranges): Likewise.
17407         * var-tracking.c (add_with_sets): Likewise.
17408         (vt_find_locations): Likewise.
17410 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
17412         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17413         pie executables.
17414         (FBSD_ENDFILE_SPEC): Likewise.
17415         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17416         config/freebsd-spec.h.
17417         (ENDFILE_SPEC): Likewise.
17419 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
17420             Richard Henderson  <rth@redhat.com>
17422         PR target/57032
17423         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17424         Check for a memory location that is not a reference (using an AND)
17425         to an unaligned location here.
17426         * config/alpha/predicates.md (normal_memory_operand): Remove.
17428 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
17430         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
17431         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
17433 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17435         * config/mips/mips.c (micromips_globals): New variable.
17436         (mips_set_compression_mode): Save and reinitialize target-dependent
17437         state for microMIPS.
17439 2015-05-18  Martin Liska  <mliska@suse.cz>
17441         * dbgcnt.def: Add new counter.
17442         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
17444 2015-05-18  Martin Liska  <mliska@suse.cz>
17446         * dbgcnt.def: Sort counters.
17447         * opts.c (common_handle_option): Do not compile if
17448         -fdbg-cnt-list is enabled.
17450 2015-05-18  Tom de Vries  <tom@codesourcery.com>
17452         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
17453         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
17454         address operator to va_list operand.
17455         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
17456         unconditionally.
17457         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
17458         operand.
17459         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
17460         * config/s390/s390.c (s390_gimplify_va_arg): Same.
17461         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
17463 2015-05-18  Tom de Vries  <tom@codesourcery.com>
17465         * tree-ssa-tail-merge.c: Fix whitespace.
17467 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
17469         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
17470         cortex-a17, and cortex-a17.cortex-a7.
17472 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
17474         PR target/54236
17475         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17477 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
17479         PR target/66174
17480         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17481         QImode inner modes for TARGET_AVX512BW.  Force mask operand
17482         to a register for AVX512F modes.
17484 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
17486         * toplev.c (emit_debug_global_declarations): Do not output debug info
17487         when doing slim LTO objects.
17489 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
17491         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17492         odr_types_equivalent_p): Declare.
17493         (odr_type_p): Use gcc_checking_assert.
17494         (type_in_anonymous_namespace_p) Declare.
17495         (type_with_linkage_p): Declare.
17496         * common.opt (Wlto-type-mismatch): New warning.
17497         * ipa-devirt.c (compound_type_base): New function.
17498         (odr_or_derived_type_p): New function.
17499         (odr_types_equivalent_p): New function.
17500         (add_type_duplicate): Simplify.
17501         (type_with_linkage_p): Add hack to prevent false positives on C types
17502         (type_in_anonymous_namespace_p): Likewise.
17503         * tree.c (need_assembler_name_p): Use type_with_linkage.
17504         * tree.h (type_in_anonymous_namespace_p): Remove.
17505         * doc/invoke.texi (-Wlto-type-mismatch): Document
17507 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
17509         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
17510         (verify_type): Verify STRING_FLAG.
17512 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17514         PR fortran/44054
17515         * tree-pretty-print.c (percent_K_format): Replace locus pointer
17516         with accessor function.
17517         * tree-diagnostic.c (diagnostic_report_current_function): Use
17518         diagnostic_location function.
17519         (maybe_unwind_expanded_macro_loc): Likewise.
17520         (virt_loc_aware_diagnostic_finalizer): Likewise.
17521         (default_tree_printer): Replace locus pointer with accessor function.
17522         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
17523         (diagnostic_set_info_translated): Initialize second location.
17524         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17525         (diagnostic_show_locus): Handle two locations. Call
17526         diagnostic_print_caret_line.
17527         (diagnostic_print_caret_line): New.
17528         (default_diagnostic_starter): Use diagnostic_location function.
17529         (diagnostic_report_diagnostic): Use diagnostic_location function.
17530         (verbatim): Do not set text.locus.
17531         * diagnostic.h (struct diagnostic_info): Remove location field.
17532         (struct diagnostic_context): Make caret_chars an array of two.
17533         (diagnostic_location): New inline.
17534         (diagnostic_expand_location): Handle two locations.
17535         (diagnostic_same_line): New inline.
17536         (diagnostic_print_caret_line): Declare.
17537         (CARET_LINE_MARGIN): New constant.
17538         * pretty-print.c (pp_printf): Do not set text.locus.
17539         (pp_verbatim): Do not set text.locus.
17540         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17541         (struct text_info): Replace locus pointer with locations
17542         array. Add accessor functions.
17544 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
17545             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17547         PR target/65768
17548         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17549         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17550          large constants in register instead of splitting them.
17552 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
17554         PR target/66140
17555         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17556         replacements in memory addresses.
17557         (get_unaligned_address): Ditto.
17559 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
17561         * config/ft32/*: New files for FT32 port.
17562         * doc/install.texi: Add FT32 information.
17563         * doc/invoke.texi: Add FT32 information.
17564         * doc/md.texi: Add FT32 information.
17565         * doc/contrib.texi: Self added.
17567 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
17569         PR tree-optimization/64454
17570         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17571         (-1 - A -> ~A): Remove unnecessary condition.
17573 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
17575         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17576         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17577         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17579 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
17581         * ipa-chkp.h (chkp_wrap_function): New.
17582         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17583         (chkp_wrap_function_name): New.
17584         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17585         to get wrapper name.
17586         * lto-cgraph.c: Include ipa-chkp.h.
17587         (input_cgraph_1): Avoid alias chain for wrappers.
17589 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17591         PR middle-end/66134
17592         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17593         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17595 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17597         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17598         (AARCH64_FL_SLOWMUL): Delete.
17599         (AARCH64_FL_CRC): Redefine to 1<<3.
17600         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17602 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17604         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17605         casting.
17607 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
17609         * config/alpha/alpha.md (extendqidi2): Use general_operand
17610         instead of some_operand for operand[1] predicate.
17611         (extendhidi2): Ditto.
17612         (cbranchdi4): Use general_operand instead of some_operand
17613         for operand[1] and operands[2] predicates.
17614         (cstoredi4): Ditto.
17615         * config/alpha/predicates.md (some_operand): Remove unused predicate.
17616         (some_ni_operand): Ditto.
17618 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
17620         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17621         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
17622         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17623         low part of the constant using alpha_emit_set_const_1.
17624         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17626 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
17628         * varasm.c (output_constant_pool_1): Pass down alignment from
17629         constant pool entry's descriptor to output_constant_pool_2.
17630         (output_object_block): Add comment prior to call to
17631         output_constant_pool_1.
17633 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
17635         PR rtl-optimization/65862
17636         * target.def (ira_change_pseudo_allocno_class): New hook.
17637         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17638         value of the hook.
17639         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17640         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17641         hook.
17642         * ira-costs.c (find_costs_and_classes): Call the hook and change
17643         classes when it is necessary.
17644         * doc/tm.texi: Update.
17646 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
17648         * config/i386/i386.md (sibcall_memory): Check that register with
17649         callee address is not also used as one of the arguments, instead
17650         of checking that it is not live after the sibcall.
17651         (sibcall_pop_memory): Ditto.
17652         (sibcall_value_memory): Ditto.
17653         (sibcall_value_pop_memory): Ditto.
17655 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
17657         * generic-match-head.c (types_match): Handle non-types.
17658         * gimple-match-head.c (types_match): Likewise.
17659         * match.pd: Remove unnecessary TREE_TYPE for types_match.
17661 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
17663         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17664         (csneg3<mode>_insn): Enable expansion of pattern.
17666 2015-05-14  Nick Clifton  <nickc@redhat.com>
17668         * config/rl78/rl78.c (rl78_select_section): Select the correct
17669         default section based upon the category of the decl.
17671 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
17673         PR rtl-optimization/30967
17674         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17675         destination mode for the cost of scc patterns.
17677 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
17679         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17680         using SWIM248 mode iterator.
17681         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17682         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
17683         for operand[2] constraint.
17684         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17686 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
17688         PR middle-end/66133
17689         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17690         make sure it is never noreturn, even when the task body does not
17691         return.
17692         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17693         right before GIMPLE_OMP_RETURN.
17694         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17695         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
17696         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17698 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17700         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17701         * tree-ssa-math-opts.c: Include params.h
17702         (pow_synth_sqrt_info): New struct.
17703         (representable_as_half_series_p): New function.
17704         (get_fn_chain): Likewise.
17705         (print_nested_fn): Likewise.
17706         (dump_fractional_sqrt_sequence): Likewise.
17707         (dump_integer_part): Likewise.
17708         (expand_pow_as_sqrts): Likewise.
17709         (gimple_expand_builtin_pow): Use above to attempt to expand
17710         pow as series of square roots.  Removed now unused variables.
17712 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
17714         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17715         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17716         Remove *p0 and *p1 arguments.  Rewrite function.
17717         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17718         (alpha_split_const_mov): Update calls to alpha_extract_integer and
17719         alpha_emit_set_long_const.
17720         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17721         (alpha_output_mi_thunk_osf): Ditto.
17722         * config/alpha/alpha.md (movti): Do not check operands[1]
17723         for CONST_DOUBLE.
17725 2015-05-13  Richard Biener  <rguenther@suse.de>
17727         PR tree-optimization/66129
17728         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17729         commutative.
17730         (vect_schedule_slp_instance): Fix typo.
17732 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
17734         * common.opt (fdump-internal-locations): New option.
17735         * input.c: Include diagnostic-core.h.
17736         (get_end_location): New function.
17737         (write_digit): New function.
17738         (write_digit_row): New function.
17739         (dump_location_range): New function.
17740         (dump_labelled_location_range): New function.
17741         (dump_location_info): New function.
17742         * input.h (dump_location_info): New prototype.
17743         * toplev.c (compile_file): Handle flag_dump_locations.
17745 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17747         * gimple-expr.h (is_gimple_constant): Reorder.
17748         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17750 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
17752         * combine.c (simplify_set): When generating a CC set, if the
17753         source already is in the correct mode, do not wrap it in a
17754         compare.  Simplify the rest of that code.
17756 2015-05-13  Richard Biener  <rguenther@suse.de>
17758         PR tree-optimization/66123
17759         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
17760         a taken edge.
17762 2015-05-13  Richard Biener  <rguenther@suse.de>
17764         PR middle-end/66110
17765         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
17766         specially.
17767         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
17769 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
17771         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
17772         * aclocal.m4: Regenerated with automake-1.11.6.
17774 2015-05-13  Tom de Vries  <tom@codesourcery.com>
17776         PR tree-optimization/66010
17777         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
17778         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
17779         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
17780         and rval based on do_deref.
17782 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17784         PR target/65103
17785         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
17786         link time constants into adress expressions and therefore set
17787         their cost to 0.
17789 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
17791         PR target/66112
17792         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
17793         Use SWI248 iterator instead of SWI.
17794         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
17795         Use eq_attr "alternative" "0" instead of match_test in
17796         length_immediate attribute computation.
17797         (*mulvhi4, *mulvhi4_1): New define_insns.
17799         PR target/66112
17800         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
17801         SIGNED to get precision of non-negative value.
17803 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17805         PR target/66048
17806         * function.c (diddle_return_value_1): Process bounds first.
17807         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
17808         register.
17810 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17812         PR rtl-optimization/64616
17813         * loop-invariant.c (can_move_invariant_reg): New.
17814         (move_invariant_reg): Call above new function to decide whether
17815         instruction can just be moved, skipping creation of temporary
17816         register.
17818 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
17820         PR target/pr66047.c
17821         * i386.c (ix86_function_sseregparm): Only return -1 if local function
17822         with implied regparm is called from -mno-sse function.
17823         (init_cumulative_args): Output error if ix86_function_sseregparm
17824         return -1 and SSE register would be needed.
17825         (function_arg_advance_32): Likewise.
17826         (function_arg_32): Likewise.
17827         * i386.h (ix86_args): Add decl field.
17829 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
17831         PR ipa/65873
17832         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17833         inlines across optimization boundary.
17835 2015-05-12  Jason Merrill  <jason@redhat.com>
17837         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17838         string literal and macro name.
17840 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
17842         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17843         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17844         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17846 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
17848         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17849         (-Wmisleading-indentation): New option.
17850         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17852 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
17854         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17855         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17856         (alpha_extract_integer): Ditto.
17857         (alpha_legitimate_constant_p): Ditto.
17858         (alpha_split_tmode_pair): Ditto.
17859         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17860         (alpha_expand_mov): Ditto.
17861         (print_operand): Remove handling of 'H' modifier.
17862         <case 'm'>: Remove CONST_DOUBLE handling.
17863         (summarize_insn): Handle CONST_WIDE_INT.
17864         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17865         (anddi3): Ditto.
17866         (movti): Handle CONST_WIDE_INT.
17867         * config/alpha/constraints.md ('H'): Remove constraint definition.
17868         ('G'): Do not match MODE_FLOAT class.
17869         * config/alpha/predicates.md (const0_operand): Also match
17870         const_wide_int.
17871         (non_add_const_operand): Ditto.
17872         (non_zero_const_operand): Ditto.
17873         (some_operand): Ditto.
17874         (input_operand): Ditto.  Handle CONST_WIDE_INT.
17875         (and_operand): Do not match const_double.
17876         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17878 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
17880         PR target/65697
17881         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17882         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17883         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17884         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17885         is_mm_seq_cst, is_mm_sync): New accessor functions.
17886         * builtins.c (expand_builtin_sync_operation,
17887         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17888         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17889         (get_memmodel,  expand_builtin_atomic_compare_exchange,
17890         expand_builtin_atomic_load, expand_builtin_atomic_store,
17891         expand_builtin_atomic_clear): Use new accessor routines.
17892         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17893         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17894         (maybe_emit_sync_lock_test_and_set): Use new accessors and
17895         MEMMODEL_SYNC_ACQUIRE.
17896         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17897         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17898         expand_atomic_store): Use new accessors.
17899         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17900         * tsan.c (instrument_builtin_call): Update check for memory model beyond
17901         final enum to use MEMMODEL_LAST.
17902         * c-family/c-common.c: Use new accessor for memmodel_base.
17903         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17904         accessors.
17905         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17906         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17907         mem_thread_fence, *dmb): Likewise.
17908         * config/alpha/alpha.c (alpha_split_compare_and_swap,
17909         alpha_split_compare_and_swap_12): Likewise.
17910         * config/arm/arm.c (arm_expand_compare_and_swap,
17911         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17912         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17913         atomic_loaddi): Likewise.
17914         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17915         Likewise.
17916         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17917         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17918         use new accessors.
17919         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17920         atomic_store<mode>, atomic_compare_and_swap<mode>,
17921         atomic_exchange<mode>): Use new accessors.
17922         * config/mips/mips.c (mips_process_sync_loop): Likewise.
17923         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17924         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17925         rs6000_post_atomic_barrier): Add new cases.
17926         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17927         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17928         (atomic_load<mode>): Add new cases and use new accessors.
17929         (store_quadpti): Add new cases.
17930         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17931         accessors.
17932         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17933         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17934         model, not 8.
17936 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
17938         * ipa-devirt.c (type_with_linkage_p): New function.
17939         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17940         type has linkage.
17941         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17942         (can_be_name_hashed_p): Simplify.
17943         (hash_odr_name): Check that type has linkage before checking if it is
17944         anonymous.
17945         (types_same_for_odr): Likewise.
17946         (odr_name_hasher::equal): Likewise.
17947         (odr_subtypes_equivalent_p): Likewise.
17948         (warn_types_mismatch): Likewise.
17949         (get_odr_type): Likewise.
17950         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17951         * ipa-utils.h (odr_type_p): Move offline.
17952         * tree.c (need_assembler_name_p): Fix handling of types
17953         without linkages.
17954         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17956 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
17958         * timevar.c (timevar_enable): Delete in favor of...
17959         (g_timer): New global.
17960         (struct timevar_def): Move to timevar.h inside class timer.
17961         (struct timevar_stack_def): Likewise.
17962         (timevars): Delete global in favor of field "m_timevars" within
17963         class timer in timevar.h
17964         (stack): Likewise, in favor of field "m_stack".
17965         (unused_stack_instances): Likewise, in favor of field
17966         "m_unused_stack_instances".
17967         (start_time): Likewise, in favor of field "m_start_time".
17968         (get_time): Eliminate check for timevar_enable.
17969         (timer::timer): New function, built from part of timevar_init.
17970         (timevar_init): Rewrite idempotency test from using
17971         "timevar_enable" bool to using dynamic allocation of "g_timer".
17972         Move rest of implementation into timer's constructor.
17973         (timevar_push_1): Rename to...
17974         (timer::push): ...this, adding "m_" prefixes to variables that
17975         are now fields of timer.
17976         (timevar_pop_1): Likewise, rename to...
17977         (timer::pop): ...this, and add "m_" prefixes.
17978         (timevar_start): Replace test for "timevar_enable" with one for
17979         "g_timer", and move bulk of implementation to...
17980         (timer::start): ...here, adding "m_" prefixes.
17981         (timevar_stop): Likewise, from here...
17982         (timer::stop): ...to here.
17983         (timevar_cond_start): Likewise, from here...
17984         (timer::cond_start): ...to here.
17985         (timevar_cond_stop): Likewise, from here...
17986         (timer::cond_stop): ...to here.
17987         (validate_phases): Rename to...
17988         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
17989         locals "total" and "tv" const.
17990         (timevar_print): Rename to...
17991         (timer::print): ...this, and add "m_" prefixes.  Make locals
17992         "total" and "tv" const.  Eliminate test for timevar_enable.
17993         * timevar.h (timevar_enable): Eliminate.
17994         (g_timer): New declaration.
17995         (timevar_push_1): Eliminate.
17996         (timevar_pop_1): Eliminate.
17997         (timevar_print): Eliminate.
17998         (class timer): New class.
17999         (timevar_push): Rewrite to use g_timer.
18000         (timevar_pop): Likewise.
18001         * toplev.c (toplev::~toplev): Likewise.
18003 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
18005         * arm-protos.h (arm_sched_autopref): Delete.
18006         (tune_params): Re-organize, use enums for flag values.
18007         (FUSE_OPS): New macro.
18008         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18009         (ARM_PREFETCH_BENEFICIAL): Likewise.
18010         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18011         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18012         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18013         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18014         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18015         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
18016         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18017         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18018         format.
18019         (arm_option_override, thumb2_reorg, arm_print_tune_info)
18020         (aarch_macro_fusion_pair_p): Update uses of current_tune.
18021         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18023 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
18025         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18026         "break".
18028 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
18029             Sandra Loosemore <sandra@codesourcery.com>
18031         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18032         value.
18033         (REG_CLASS_NAMES): Add "IJMP_REGS".
18034         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18035         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18036         use new "c" register constraint.
18037         * config/nios2/constraint.md (c): New register constraint
18038         corresponding to IJMP_REGS.
18040 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18042         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18043         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18044         define_splits): Delete, revamp, transmogrify into ...
18045         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18046         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18047         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18048         New.
18050 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18052         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18053         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18055 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18057         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18058         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18059         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18060         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18061         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18062         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18063         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18064         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18065         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18066         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18067         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18068         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18069         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18070         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18071         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18072         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18073         and 30 corresponding splitters): Delete.
18075 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18077         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18078         zero_extract.
18080 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18082         * combine.c (recog_for_combine_1): New function, factored out
18083         from recog_for_combine.
18084         (change_zero_ext): New function.
18085         (recog_for_combine): If recog fails, try again with the pattern
18086         modified by change_zero_ext; if that still fails, restore the
18087         pattern.
18089 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18091         * combine.c (get_undo_marker): New function.
18092         (undo_to_marker): New function, largely factored out from ...
18093         (undo_all): ... this.  Adjust.
18095 2015-05-12  Richard Biener  <rguenther@suse.de>
18097         PR tree-optimization/66101
18098         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18099         fixup if we turn a loop exit edge to a fallthru edge.
18101 2015-05-12  Richard Biener  <rguenther@suse.de>
18103         PR tree-optimization/37021
18104         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18105         (SLP_TREE_TWO_OPERATORS): New define.
18106         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18107         SLP_TREE_TWO_OPERATORS.
18108         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18109         SLP node.
18110         (vect_build_slp_tree): Adjust.
18111         (vect_analyze_slp_cost_1): Likewise.
18112         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18113         emitting two vector stmts and mixing the results.
18115 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18117         * call.c (print_z_candidates): Remove dead code.
18119 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18121         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18122         and zEC12_simple_fp.
18123         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18124         to 1.
18126 2015-05-12  Tom de Vries  <tom@codesourcery.com>
18128         PR tree-optimization/66010
18129         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18130         ifn_va_arg.
18131         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18132         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
18133         va_lists are passed, and remove corresponding handling.
18134         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
18135         do_deref argument to ifn_va_arg.
18136         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18137         ifn_va_arg.
18139 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18141         PR target/65955
18142         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18143         REG before taking its REGNO.
18145 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18147         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18148         rsp->sign_bit_copies and rsp->nonzero_bits into ...
18149         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
18150         present to get more accurate information about the number of sign bit
18151         copies and non zero bits.
18153 2015-05-12  Richard Biener  <rguenther@suse.de>
18155         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18156         do not allow unrolling.
18158 2015-05-11  Richard Henderson  <rth@redhat.com>
18160         * config/i386/i386-modes.def (CCP): New.
18161         * config/i386/i386.c (put_condition_code): Handle it.
18162         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18164 2015-05-11  Richard Henderson  <rth@redhat.com>
18166         * target.def (md_asm_clobbers): Replace with...
18167         (md_asm_adjust): this.
18168         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18169         (TARGET_MD_ASM_ADJUST): New.
18170         * tm.texi: Rebuild.
18171         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18172         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18173         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18175         * cfgexpand.c (check_operand_nalternatives): Accept vector of
18176         constraints instead of lists of outputs and inputs.
18177         (expand_asm_stmt): Save and restore input_location around the
18178         body of the function.  Move asm data into vectors instead of
18179         building tree lists.  Generate cleanup sequences as needed,
18180         rather than waiting til the end.  Use new md_asm_adjust hook.
18182         * config/vxworks.c: Include vec.h before target.h.
18183         * gimple.c: Likewise.
18184         * incpath.c: Likewise.
18185         * mode-switching.c: Likewise.
18187         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18188         (cris_md_asm_adjust): this.
18189         (TARGET_MD_ASM_CLOBBERS): Remove.
18190         (TARGET_MD_ASM_ADJUST): New.
18191         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18192         (ix86_md_asm_adjust): this.
18193         (TARGET_MD_ASM_CLOBBERS): Remove.
18194         (TARGET_MD_ASM_ADJUST): New.
18195         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18196         (mn10300_md_asm_adjust): this.
18197         (TARGET_MD_ASM_CLOBBERS): Remove.
18198         (TARGET_MD_ASM_ADJUST): New.
18199         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18200         (rs6000_md_asm_adjust): this.
18201         (TARGET_MD_ASM_CLOBBERS): Remove.
18202         (TARGET_MD_ASM_ADJUST): New.
18203         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18204         (visium_md_asm_adjust): this.
18205         (TARGET_MD_ASM_CLOBBERS): Remove.
18206         (TARGET_MD_ASM_ADJUST): New.
18208 2015-05-11  Richard Henderson  <rth@redhat.com>
18210         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18211         if noutputs is zero.
18212         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18214         * cfgexpand.c (expand_asm_operands): Merge into...
18215         (expand_asm_stmt): ... here.
18217         * cfgexpand.c (expand_asm_operands): Don't call
18218         resolve_asm_operand_names.
18219         * stmt.c (resolve_asm_operand_names): Clarify block comment.
18221 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
18223         * dwarf2out.c (gen_member_die): Sanity check that we access
18224         TYPE_MAIN_VARIANT for TYPE_METHODS.
18225         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18226         checking TYPE_METHODS.
18227         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18228         if non-null.
18229         (build_distinct_type_copy): Clear TYPE_METHODS.
18230         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18231         (verify_type): Allow TYPE_METHODS to be error_mark_node.
18232         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18234 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18236         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18237         (emit_pattern_before_setloc): Likewise.
18239 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
18241         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18242         for define_peephole2s.
18243         (get_peephole2_pattern): New function.
18244         (main): Use it.  Call validate_pattern.
18246 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18248         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18249         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18250         (Last callee saved reg is different for AVR_TINY architecture)
18252 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
18254         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18255         when looking for memory references.
18257 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
18259         PR target/65753
18260         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18261         via function pointers.
18263 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
18265         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18266         indirect call by forcing address into a pseudo with -fno-plt.
18267         * common.opt (flag_plt): New option.
18268         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18269         ([-fno-plt]): Document.
18271 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
18273         PR bootstrap/66105
18274         * config/rs6000/option-defaults.h: Add space between string literal
18275         and macro name.
18277 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18279         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18280         accross ARM targets.
18282 2015-05-11  Christian Bruel  <christian.bruel@st.com>
18284         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18285         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18287 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
18289         PR rtl-optimization/66076
18290         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18291         Don't grow the heap array if it is already big enough from a
18292         previous iteration.
18294 2015-05-11  Christian Bruel  <christian.bruel@st.com>
18296         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18297         (is_called_in_ARM_mode): Remove.
18298         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18299         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18300         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18301          arm_declare_function_name.
18303 2015-05-11  Christian Bruel  <christian.bruel@st.com>
18305         * config/arm/arm.c (arm_option_override): Reoganized and split into :
18306         (arm_option_params_internal); New function.
18307         (arm_option_check_internal): New function.
18308         (arm_option_override_internal): New function.
18309         (thumb_code, thumb1_code): Remove.
18310         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18311         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18312         (thumb_code, thumb1_code): Remove.
18313         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18315 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
18317         * config/alpha/alpha.c (alpha_emit_set_const_1)
18318         (alpha_emit_set_long_const, alpha_extract_integer)
18319         (alpha_legitimate_constant_p, alpha_split_const_mov)
18320         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18321         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18322         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18323         HOST_WIDE_INT_1U.
18324         * config/alpha/predicates.md (mode_mask_operand): Do not match
18325         const_double RTX.
18326         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18327         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18328         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18329         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18330         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18332 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
18334         PR target/65780
18335         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18336         default_binds_local_p_2.
18337         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18338         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18340 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
18342         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18344 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
18346         Patch by Richard Biener
18347         * coverage.c (coverage_obj_init): Delay building of type variant
18348         until the type is finished.
18350 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
18352         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18353         mismatch between C and C++ type; compoare correctly ARG_TYPES
18354         for non-prototypes and output correctly parameter index for METHOD_TYPE.
18355         (odr_types_equivalent_p): Fix wording of warning about attributes;
18356         it is OK to match prototype and non-prototype.
18358 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
18360         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18361         TYPE_ARG_TYPES list.
18362         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18363         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18365 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
18367         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18368         * tree.h (is_lang_specific): Constify.
18370 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
18372         PR tree-optimization/64454
18373         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18374         Rewrite.
18376 2015-05-08  Jason Merrill  <jason@redhat.com>
18378         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18379         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18380         config/darwin.h, config/darwin9.h, config/elfos.h,
18381         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18382         config/microblaze/microblaze.h, config/mips/mips.h,
18383         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18384         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18385         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18386         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18387         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18388         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18389         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18390         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18391         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18392         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18393         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18394         between string literal and macro name.
18396 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18398         * jump.c: Change argument types to rtx_insn *.
18399         * rtl.h: Adjust.
18401 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18403         * lra-constraints.c: Change argument type to rtx_insn *.
18405 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18407         * df-problems.c: Change argument type to rtx_insn *.
18409 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18411         * combine.c: Change argument type to rtx_insn *.
18413 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18415         * rtl.h: Adjust.
18416         * rtlanal.c: Change argument type to rtx_insn *.
18418 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18420         * sched-deps.c: Change argument types to rtx_insn *.
18421         * sched-int.h: Adjust.
18423 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18425         * dwarf2cfi.c: Change argument type to rtx_insn *.
18427 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18429         * ira.c (decrease_live_ranges_number): Changetype of local
18430         variable to rtx_insn *.
18431         * recog.c: Change argument types to rtx_insn *.
18432         * recog.h: Adjust.
18434 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18436         * reorg.c: Change argument types to rtx_insn *.
18438 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18440         * ira-color.c: Change argument types to rtx_insn *.
18441         * lra-eliminations.c: Likewise.
18442         * ira.h: Adjust.
18444 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18446         * gcse.c: Change argument types to rtx_insn *.
18448 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18450         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
18452 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18454         * emit-rtl.c (emit_debug_insn_before): Change argument type to
18455         rtx_insn *.
18456         * rtl.h: Adjust.
18458 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18460         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
18461         * rtl.h: Adjust.
18463 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18465         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
18466         * rtl.h: Adjust.
18468 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18470         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
18471         * rtl.h: Adjust.
18473 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18475         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18476         * rtl.h: Adjust.
18478 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18480         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18481         to rtx_insn *.
18482         * rtl.h: Adjust.
18484 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18486         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18487         to rtx_insn *.
18488         * rtl.h: Likewise.
18490 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18492         * except.c (can_nonlocal_goto): Change type of argument to
18493         rtx_insn *.
18494         * rtl.h: Adjust.
18496 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18498         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18499         * rtl.h: Adjust.
18501 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18503         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
18504         * cfgrtl.c (can_delete_label_p): Adjust.
18505         * rtl.h: likewise.
18507 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18509         * reorg.c (stop_search_p): Change argument to rtx_insn *.
18511 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18513         * except.c (make_reg_eh_region_note): Change argument to
18514         rtx_insn *.
18515         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
18516         * except.h: Adjust.
18518 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18520         * mode-switching.c (commit_mode_sets): Change type of local
18521         variable from rtx to rtx_insn *.
18523 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
18525         * doc/install.texi (--enable-languages): Add missing jit and lto info.
18526         Add ^ to grep command.
18527         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18528         arg to last gimple_simplify declaration.  Add missing gimple_build
18529         declaration for built-in function case with four tree args.
18531 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
18532             Szabolcs Nagy  <szabolcs.nagy@arm.com>
18534         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18535         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18536         (GNU_USER_DYNAMIC_LINKERN32): Update.
18538 2015-05-08  Richard Biener  <rguenther@suse.de>
18540         PR tree-optimization/66036
18541         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18542         Handle strided group loads.
18543         (vect_verify_datarefs_alignment): Likewise.
18544         (vect_enhance_data_refs_alignment): Likewise.
18545         (vect_analyze_group_access): Likewise.
18546         (vect_analyze_data_ref_access): Likewise.
18547         (vect_analyze_data_ref_accesses): Likewise.
18548         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18549         (vectorizable_load): Likewise.
18551 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
18553         * config/rs6000/rs6000.md: Require operand inequality in one
18554         of the peepholes.
18556 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
18557             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18559         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18560         from (set ...).
18561         * config/rx/rx.md (movdi, movdf): Likewise.
18562         Likewise for define_peephole2s.
18564 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
18566         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18567         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18568         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18569         vtst_u64): Rewrite using gcc vector extensions.
18571 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
18573         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18574         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18576 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
18578         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18580 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18582         * config/glibc-stdint.h (OPTION_MUSL): Define.
18583         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18584         Change the definition based on OPTION_MUSL for 64 bit targets.
18585         * config/linux.h (OPTION_MUSL): Redefine.
18586         * config/alpha/linux.h (OPTION_MUSL): Redefine.
18587         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18588         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18590 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
18591             Szabolcs Nagy  <szabolcs.nagy@arm.com>
18593         * config.gcc (LIBC_MUSL): New tm_defines macro.
18594         * config/linux.h (OPTION_MUSL): Define.
18595         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18596         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18597         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18598         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18599         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18600         * config/linux.opt (mmusl): New option.
18601         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18602         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18603         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18604         * configure: Regenerate.
18606 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18607             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18609         PR target/48904
18610         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18611         * config/i386/knetbsd-gnu64.h: New file.
18613 2015-05-08  Marek Polacek  <polacek@redhat.com>
18615         PR c/64918
18616         * doc/invoke.texi: Document -Woverride-init-side-effects.
18618 2015-05-07  Marek Polacek  <polacek@redhat.com>
18620         PR c/65179
18621         * doc/invoke.texi: Document -Wshift-negative-value.
18623 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
18625         * gcov-tool.c (do_merge): Refactore to remove int ret.
18626         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18627         !type == FUNC to type != FUNC.
18628         * reload.h (struct target_reload): Changee to type of
18629         x_spill_indirect_levels from bool to unsigned char.
18631 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
18633         * rtl.h (always_void_p): New function.
18634         * gengenrtl.c (always_void_p): Likewise.
18635         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18636         with code foo are always VOIDmode.
18637         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18638         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18639         compare-elim.c, config/aarch64/aarch64.c,
18640         config/aarch64/aarch64.md, config/alpha/alpha.c,
18641         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18642         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18643         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18644         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18645         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18646         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18647         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18648         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18649         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18650         config/ia64/vect.md, config/iq2000/iq2000.c,
18651         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18652         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18653         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18654         config/mep/mep.c, config/microblaze/microblaze.c,
18655         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18656         config/mn10300/mn10300.c, config/msp430/msp430.c,
18657         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18658         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18659         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18660         config/rs6000/altivec.md, config/rs6000/rs6000.c,
18661         config/rs6000/rs6000.md, config/rs6000/vector.md,
18662         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18663         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18664         config/sh/sh.md, config/sh/sh_treg_combine.cc,
18665         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18666         config/spu/spu.md, config/stormy16/stormy16.c,
18667         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18668         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18669         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18670         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18671         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18672         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18673         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18674         var-tracking.c: Update calls accordingly.
18676 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
18678         PR middle-end/192
18679         PR middle-end/54303
18680         * varasm.c (function_mergeable_rodata_prefix): New function.
18681         (mergeable_string_section): Use it.
18682         (mergeable_constant_section): Use it.
18684 2015-05-07  Jeff Law  <law@redhat.com>
18686         PR target/39726
18687         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18688         simplifier to narrow arithmetic.
18689         * generic-match-head.c: (types_match, single_use): New functions.
18690         * gimple-match-head.c: (types_match, single_use): New functions.
18692 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18694         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18695         rtx type.
18697 2015-05-07  Richard Biener  <rguenther@suse.de>
18699         PR tree-optimization/66002
18700         * passes.def: Schedule another pass_merge_phi after ifcombine, right
18701         before phiopt.
18703 2015-05-07  Marek Polacek  <polacek@redhat.com>
18704             Martin Uecker  <uecker@eecs.berkeley.edu>
18706         * doc/invoke.texi: Document -fsanitize=bounds-strict.
18707         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18708         into SANITIZE_NONDEFAULT.
18709         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18711 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
18713         PR target/66015
18714         * config/alpha/alpha.c (alpha_override_options_after_change): New.
18715         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18716         (alpha_override_options): Move align_loops, align_jumps and
18717         align_functions handling into alpha_override_options_after_change.
18719 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
18720             Chris Jones  <chrisj@nvidia.com>
18721             Joshua Conner  <jconner@nvidia.com>
18723         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18724         linking of crtfastmath.o.
18725         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18727 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
18729         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18730         (cstore<mode>4_unsigned_imm): New expander.
18731         (cstore<mode>4): Remove empty constraint strings.  Use the new
18732         expanders.
18734 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
18736         PR target/64208
18737         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18738         alternatives.
18740 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18742         * config/aarch64/geniterators.sh: Use standard BRE in sed.
18744 2015-05-06  Alan Modra  <amodra@gmail.com>
18746         PR target/66033
18747         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18748         (UNSPEC_NOP): Define.
18749         (reload_vsx_from_gpr<mode>): Add missing DONE.
18750         (reload_gpr_from_vsx<mode>): Likewise.
18751         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18752         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
18754 2015-05-06  Christian Bruel  <christian.bruel@st.com>
18756         PR target/66015
18757         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
18758         align_jumps, align_functions into aarch64_override_options_after_change.
18760 2015-05-06  Richard Biener  <rguenther@suse.de>
18762         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
18763         vect_transform_slp_perm_load to check if we support a permutation
18764         for basic-block vectorization.
18766 2015-05-06  Nick Clifton  <nickc@redhat.com>
18768         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
18769         used, even if it is not being used as a frame pointer.
18771 2015-05-05  Jason Merrill  <jason@redhat.com>
18773         * dwarf2out.c (gen_member_die): Don't emit anything for an
18774         anonymous class constructor.
18776 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
18778         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
18779         that it reflects the block structure.
18780         (afdo_propagate_edge): Likewise.
18781         (afdo_calculate_branch_prob): Likewise.
18782         (afdo_annotate_cfg): Likewise.
18783         * cfgcleanup.c (equal_different_set_p): Likewise.
18784         (try_crossjump_to_edge): Likewise.
18785         * cgraph.c (cgraph_node::verify_node): Likewise.
18786         * cgraphunit.c (expand_all_functions): Likewise.
18787         * config/i386/i386.c (ix86_expand_copysign): Likewise.
18788         (exact_dependency_1): Likewise.
18789         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
18790         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
18791         * gensupport.c (process_define_subst): Likewise.
18792         * lto-wrapper.c (merge_and_complain): Likewise.
18793         * tree-if-conv.c (if_convertible_bb_p): Likewise.
18794         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
18795         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
18796         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18797         * tree-vect-loop.c (vectorizable_reduction): Likewise.
18798         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
18799         * tree-vect-stmts.c (vectorizable_shift): Likewise.
18800         * tree-vrp.c (vrp_finalize): Likewise.
18801         * tree.c (variably_modified_type_p): Likewise.
18803 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
18805         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
18806         on darwin12 and later.
18807         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
18808         file to pass -rdynamic on darwin12 and later.
18809         * config/darwin.opt (rdynamic): Add.
18811 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18813         * doc/extend.texi (C Extensions): Update menu for moved Variable
18814         Attributes and Type Attributes sections.
18816 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18818         PR target/65990
18819         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18820         if rep_8byte stringop strategy was specified for 32-bit target.
18822 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
18824         PR target/65915
18825         * config/i386/i386.md (vector convert to float spltiter): Check for
18826         xmm16+, when splitting scalar float conversion.
18827         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18829 2015-05-05  Nick Clifton  <nickc@redhat.com>
18831         * config/msp430/msp430-opts.h (enum msp430_regions): New.
18832         * config/msp430/msp430.c (msp430_override_options): Complain if
18833         -mcode-region or -mdata-region is used on a non MSP430X.
18834         (msp430_section_attr): New function.  Checks lower, upper and
18835         either attributes.
18836         (msp430_attribute_table): Add lower, upper and either.
18837         (gen_prefix): New function.  Generates a prefix for a section
18838         name.
18839         (msp430_select_section): New function - handles the choice of
18840         section for an object.  Takes into account memory region
18841         attributes and options.
18842         (msp430_function_section): Use gen_prefix.
18843         (TARGET_SECTION_TYPE_FLAGS): Define.
18844         (msp430_section_type_flags): New function.
18845         (TARGET_ASM_UNIQUE_SECTION): Define.
18846         (msp430_unique_section): New function.
18847         (msp430_output_aligned_decl_common): New function.
18848         (msp430_do_not_relax_short_jumps): New function.
18849         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18850         Define.
18851         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18852         * config/msp430/msp430-protos.h
18853         (msp430_do_not_relax_short_jumps): New prototype.
18854         (msp430_output_aligned_decl_common): New prototype.
18855         * config/msp430/msp430.md (length): New attribute.
18856         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18857         then use a long code sequence for short jumps.
18858         * config/msp430/msp430.opt (mcode-region): New.
18859         (mdata-region): New.
18860         * doc/invoke.texi: Document new options.
18861         * doc/extend.texi: Document new attributes.
18863 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
18865         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18866         (tune_params): Add field branch_costs.
18867         (aarch64_branch_cost): Declare.
18868         * gcc/config/aarch64.c (generic_branch_cost): New.
18869         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18870         (cortexa53_tunings): Likewise.
18871         (cortexa57_tunings): Likewise.
18872         (thunderx_tunings): Likewise.
18873         (xgene1_tunings): Likewise.
18874         (aarch64_branch_cost): Define.
18875         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18877 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18879         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18880         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18881         * config/i386/i386.md: Ditto.
18882         * config/i386/winnt.c: Ditto.
18884 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
18886         * doc/extend.texi (__atomic Builtins): Move implementation details
18887         to the end of the description, rewrite opening paragraphs, state
18888         difference with __sync builtins, state C11/C++11 assumptions,
18889         weaken itemized descriptions, add explanation of memory model
18890         behaviour, expand description of compare-exchange, simplify text.
18892 2015-05-05  Renlin Li  <renlin.li@arm.com>
18894         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18896 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
18898         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18899         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18900         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18901         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18902         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18903         * configure: Regenerate.
18904         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18905         * doc/install.texi (aarch64*-*-*): Document new
18906         --enable-fix-cortex-a53-843419 option.
18907         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18908         and -mno-fix-cortex-a53-843419 options.
18910 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18912         PR target/65871
18913         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18915 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
18917         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18918         fix overactive TYPE_MIN_VALUE check and add FIXME for type
18919         compatibility problems.
18921 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
18923         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18924         constraints.
18925         (cbranchsi4_reg): New.
18926         * config/microblaze/microblaze.c
18927         (microblaze_expand_conditional_branch_reg): New.
18928         * config/microblaze/microblaze-protos.h
18929         (microblaze_expand_conditional_branch_reg): New prototype.
18931 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
18933         * config/microblaze/microblaze.md (peephole2): New.
18935 2015-05-04  Jeff Law  <law@redhat.com>
18937         Revert:
18938         2015-05-04  Jeff Law  <law@redhat.com>
18940         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18941         simplifier to narrow arithmetic.
18942         * generic-match-head.c: (types_match, single_use): New functions.
18943         * gimple-match-head.c: (types_match, single_use): New functions.
18945 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18947         PR target/65987
18948         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18949         (split_branches): Likewise.
18951 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
18953         * common.opt (fdelete-null-pointer-checks): Init to -1.
18954         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18955         override flag_delete_null_pointer_checks default.
18956         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18957         behavior re address zero.  Better document target-specific behavior.
18958         (-fisolate-errneous-paths-dereference): Mention relationship to
18959         -fdelete-null-pointer-checks.
18961 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
18963         PR tree-optimization/65984
18964         * ubsan.c: Include tree-cfg.h.
18965         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18966         stmt_could_throw_p test, rename can_throw variable to ends_bb.
18968 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
18970         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18971         to CONST_DOUBLE_P predicate.
18972         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18973         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18974         allow only operands that satisfy standard_sse_constant_p predicate.
18975         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18976         to CONST_DOUBLE_P predicate.
18978 2015-05-04  Jeff Law  <law@redhat.com>
18980         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18981         simplifier to narrow arithmetic.
18982         * generic-match-head.c: (types_match, single_use): New functions.
18983         * gimple-match-head.c: (types_match, single_use): New functions.
18985 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
18987         * config/arm/arm.c: Restore bootstrap.
18989 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
18991         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18992         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18993         as CONST_WIDE_INT, not CONST_DOUBLE.
18994         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18995         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18996         (ix86_find_base_term): Do not check for CONST_DOUBLE.
18997         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18998         (ix86_build_signbit_mask): Rewrite using wide ints.
18999         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19000         (ix86_rtx_costs): Handle CONST_WIDE_INT.
19001         (find_constant): Ditto.
19002         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19003         using gen_int_mode.
19004         * config/i386/predicates.md (x86_64_immediate_operand)
19005         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19006         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19007         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19008         (const0_operand): Also match const_wide_int.
19009         (constm1_operand): Ditto.
19010         (const1_operand): Ditto.
19012 2015-05-04  Richard Biener  <rguenther@suse.de>
19014         PR tree-optimization/65965
19015         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19016         store groups at gaps.
19018 2015-05-04  Richard Biener  <rguenther@suse.de>
19020         PR tree-optimization/65935
19021         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19022         then make sure to apply that swapping to the IL.
19024 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
19026         * Makefile.in (PATCHLEVEL_c): New variable.
19027         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19028         expand the same way as if DEVPHASE_c was non-empty.
19030 2015-05-04  Kai Tietz  <ktietz@redhat.com>
19032         PR target/65559
19033         * lto-wrapper.c (run_gcc): Open filename
19034         in binary-mode.
19036 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
19038         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
19039         sections up in file, to immediately after the Function Attributes
19040         section.
19042 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
19044         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19046 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19048         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19049         (insert_partition_copy_on_edge): Adjust.
19050         (insert_rtx_to_part_on_edge): Likewise.
19051         (insert_part_to_rtx_on_edge): Likewise.
19053 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19055         * function.c (set_return_jump_label): Change type of argument to
19056         rtx_insn *.
19057         * function.h (set_return_jump_label): Adjust.
19059 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19061         * reload.h (struct reg_equivs_t): Change type of init to
19062         rtx_insn *.
19063         * ira.c (fix_reg_equiv_init): Adjust.
19064         * reload1.c (eliminate_regs_1): Likewise.
19065         (init_eliminable_invariants): Likewise.
19067 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19069         * cselib.c (fp_setter_insn): Take a rtx_insn *.
19070         * cselib.h (fp_setter_insn): Adjust.
19072 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19074         * recog.c (struct validate_replace_src_data): Change type of
19075         insn field to rtx_insn *.
19076         (validate_replace_src_group): Change type of argument to rtx_insn *.
19077         * recog.h (validate_replace_src_group): Adjust.
19079 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19081         * haifa-sched.c: Change the type of some variables to rtx_insn *.
19082         * sched-deps.c: Likewise.
19083         * sched-int.h: Likewise.
19084         * sched-rgn.c: Likewise.
19085         * sel-sched.c: Likewise.
19087 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19089         to rtx_insn *.
19090         * config/i386/i386.c: Change the type of some arguments to
19091         rtx_insn *.
19092         * config/arm/arm.c: Likewise.
19094 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19096         * lra-constraints.c: Change type of some arguments to rtx_insn *.
19098 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19100         * regcprop.c (kill_autoinc_value): Change type of argument to
19101         rtx_insn *.
19103 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19105         * genrecog.c (print_subroutine): Adjust.
19106         * recog.c (get_bool_attr_mask_uncached): Likewise.
19107         * recog.h (struct recog_data_d): Change the type of insn to
19108         rtx_insn *.
19110 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19112         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19114 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19116         * df-problems.c (df_set_note): Change type of argument to
19117         rtx_insn *.
19119 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19121         * builtins.c (expand_builtin_trap): Change type of local
19122         variable to rtx_insn *.
19123         (add_sched_insns_for_speculation): Likewise.
19124         (ix86_emit_save_regs): Likewise.
19125         (get_scratch_register_on_entry): Likewise.
19126         (ix86_emit_restore_reg_using_pop): Likewise.
19127         (ix86_emit_leave): Likewise.
19128         (ix86_emit_restore_regs_using_mov): Likewise.
19129         (ix86_expand_epilogue): Likewise.
19130         Likewise.
19131         (rl78_alloc_physical_registers_umul): Likewise.
19132         * cselib.c (discard_useless_locs): Likewise.
19133         (cselib_invalidate_regno): Likewise.
19134         (cselib_invalidate_mem): Likewise.
19135         * function.c (expand_function_start): Likewise.
19136         (emit_use_return_register_into_block): Likewise.
19137         * gcse.c: Likewise.
19138         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19139         * ifcvt.c (noce_get_alt_condition): Likewise.
19140         * loop-doloop.c (doloop_condition_get): Likewise.
19141         * lra-constraints.c (inherit_in_ebb): Likewise.
19142         * modulo-sched.c (sms_schedule_by_order): Likewise.
19143         * recog.c (next_insn_tests_no_inequality): Likewise.
19144         * reorg.c (emit_delay_sequence): Likewise.
19145         (update_reg_dead_notes): Likewise.
19146         (fix_reg_dead_note): Likewise.
19147         (fill_slots_from_thread): Likewise.
19148         (delete_computation): Likewise.
19150 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
19152         * doc/extend.texi (Variable Attributes): Add menu and proper
19153         @nodes to subsections.  Move Microsoft Windows attributes to
19154         their own subsection.
19155         (Type Attributes): Reorganize introduction to remove duplicate
19156         list of attributes.  Add menu and proper @nodes to subsections.
19157         Alphabetize the main table of common attributes.
19159 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
19161         * match.pd: New simplification patterns.
19162         (x + (x & 1))  -> ((x + 1) & ~1)
19163         (x & ~(x & y)) -> ((x & ~y))
19164         (x | ~(x | y)) -> ((x | ~y))
19166 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19168         * target.def (attribute_table): Mention that struct attribute_spec
19169         is defined in tree-core.h rather than tree.h
19170         * doc/tm.texi: Regenerate.
19172 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
19174         * genrecog.c (test): Rename to rtx_test.  Update rest of file
19175         accordingly.
19177 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
19179         PR translation/65959
19180         * params.h (DEFPARAM): Rename msgid to nocmsgid.
19182 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
19184         * gcc/config/aarch64/aarch64-protos.h (tune_params):
19185         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19186         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19187         Return value depending on target.
19188         (generic_tunings): Initialize new target settings.
19189         (cortexa53_tunings): Likewise.
19190         (cortexa57_tunings): Likewise.
19191         (thunderx_tunings): Likewise.
19192         (xgene1_tunings): Likewise.
19194 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
19196         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19197         Make Cortex-A53 shift costs more accurate.
19199 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19201         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19202         UNSIGNED_FLOAT.
19204 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
19206         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19207         Calculate cost of op0 and op1 in PLUS and MINUS cases.
19209 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19211         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19212         Add cost of op0 in the compare-with-fpzero case.
19214 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
19216         * builtins.c (fold_builtin_1): Remove spurious second
19217         semicolon.
19218         * cgraph.h (symtab_node::get_availability): Likewise.
19219         * opts.c (common_handle_option): Remove spurious second semicolon.
19220         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19221         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19223 2015-04-30  Caroline Tice  <cmtice@google.com>
19225         PR gcov-profile/65929
19226         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19227         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19228         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19229         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19230         * doc/tm.texi: Regenerate.
19231         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
19232         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19233         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
19234         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19236 2015-04-30  Marek Polacek  <polacek@redhat.com>
19238         * varasm.c (handle_cache_entry): Fix logic.
19240 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19242         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19243         (*extrsi5_insn_uxtw_alt): Likewise.
19244         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19245         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19246         operations.
19248 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19250         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19251         fabd in ABS case.
19253 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19255         * config/aarch64/aarch64.md
19256         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19257         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19258         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19259         appropriately.  Handle alternative EON form.
19261 2015-04-30  Renlin Li  <renlin.li@arm.com>
19263         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19264         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19266 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
19268         PR ipa/65873
19269         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19270         -fstrict-aliasing boundaries.
19272 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19274         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19275         and [SU]MNEGL patterns.
19277 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19279         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19280         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19281         combined arithmetic-shift ops.  Properly handle all shift and extend
19282         operations that can occur in combination with PLUS/MINUS.
19283         Rename maybe_fma to compound_p.
19284         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19285         arithmetic and shift operations.
19287 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19289         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19290         rather than arith_shift cost when costing ADD/MINUS of an
19291         extended value.
19293 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
19295         PR lto/65948
19296         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19297         to itself.
19299 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
19301         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19302         are for the same position.
19304 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
19306         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
19307         vectorize_loops.
19308         (vectorize_loops): Use it.
19310 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
19312         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19313         for aggregate types.
19314         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19315         type to be non_ODR.
19316         * tree.c (need_assembler_name_p): Compute mangled name for
19317         non-fundamental types and integer types.
19319 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
19321         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19322         manual swaps.
19323         * expr.c (expand_expr_real_2): Likewise.
19325 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
19327         * tree.c (build_common_builtin_nodes): Do not build
19328         __builtin_alloca_with_align as equivalent of library alloca.
19330 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
19332         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19333         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19334         bugus variants.
19335         * tree.c: Include print-tree.h and ipa-utils.h
19336         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19337         (free_lang_data_in_cgraph): Call verify_type.
19338         (verify_type_variant): New function.
19339         (verify_type): New function.
19340         * tree.h (verify_type): Declare.
19342 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
19344         * config/mips/mips-cpus.def: (mips4): Change default processor
19345         from PROCESSOR_R8000 to PROCESSOR_R10000.
19347 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19349         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19350         la/jalr instead of jal.
19352 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
19354         PR target/65871
19355         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19356         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19357         (setcc+movzbl peephole2): Check also clobbered reg.
19358         (setcc+andl peephole2): Ditto.
19360 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
19362         PR libgomp/65099
19363         * config/nvptx/mkoffload.c (target_ilp32): New variable.
19364         (main): Set it depending on "-foffload-abi=[...]".
19365         (compile_native, main): Use it to pass "-m32" or "-m64" to the
19366         compiler.
19368 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
19370         PR target/65770
19371         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19372         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19373         Flip lane index back at assembly time for bigendian.
19375 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
19377         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19378         * gimplify.c (gimplify_omp_workshare): Use it.
19380 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
19382         * Makefile.in (build/genrecog.o): Depend on inchash.h.
19383         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19384         build/inchash.o
19385         * genrecog.c: Rewrite most of the code except for the third page.
19387 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
19389         * inchash.h, inchash.c: Include bconfig.h for build objects.
19390         * Makefile.in (build/inchash.o): New rule.
19392 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
19394         PR target/65924
19395         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19396         number in type attribute expression.
19398 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
19400         * loop-iv.c (canon_condition): Generalize to all types of integer
19401         constant.
19403 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
19405         * gimple-walk.c: Prune duplicate or unneeded includes.
19406         (walk_gimple_asm): Only call parse_input_constraint or
19407         parse_output_constraint if their findings are used.
19408         Honour parse_input_constraint and parse_output_constraint
19409         result.
19411 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
19413         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19415 2015-04-29  Tom de Vries  <tom@codesourcery.com>
19417         PR tree-optimization/65893
19418         * passes.def (pass_all_optimizations): Move pass_stdarg to after
19419         pass_dce.
19421 2015-04-29  Richard Biener  <rguenther@suse.de>
19423         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19424         compute GROUP_SIZE for basic-block SLP.
19425         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19426         take into account gaps.
19427         (vect_get_mask_element): Properly reject references to previous
19428         vectors.
19429         (vect_transform_slp_perm_load): Likewise.
19431 2015-04-29  Christian Bruel  <christian.bruel@st.com>
19433         PR target/64835
19434         * config/i386/i386.c (ix86_default_align): New function.
19435         (ix86_override_options_after_change): Call ix86_default_align.
19436         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
19437         (ix86_override_options_after_change): New function.
19439 2015-04-28  Jeff Law  <law@redhat.com>
19441         * tree-ssa-dom.c (record_equality); Fix comment typos.
19443 2015-04-28  Tom de Vries  <tom@codesourcery.com>
19445         PR tree-optimization/65887
19446         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
19448 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
19450         * doc/extend.texi (Declaring Attributes of Functions): Split into
19451         subsections by target.  Alphabetize the table of common attributes.
19452         Rewrite some of the introductory text to reflect the new structure.
19453         Update some cross-references to point to the new subsections.
19454         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
19455         duplicate copies in the discussion of function, label, and type
19456         attributes.
19458 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
19460         PR bootstrap/65910
19461         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
19463 2015-04-28  Jason Merrill  <jason@redhat.com>
19465         PR c++/65734
19466         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
19467         (finalize_type_size): Respect TYPE_USER_ALIGN.
19468         (layout_type) [ARRAY_TYPE]: Likewise.
19470 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
19472         * config/arm/arm.md (*arm_movt): Fix type attribute.
19473         (*cmpsi_shiftsi): Likewise.
19474         (*cmpsi_shiftsi_swp): Likewise.
19475         (*movsicc_insn): Likewise.
19476         (*cond_move): Likewise.
19477         (*if_plus_move): Likewise.
19478         (*if_move_plus): Likewise.
19479         (*if_arith_move): Likewise.
19480         (*if_move_arith): Likewise.
19481         (*if_shift_move): Likewise.
19482         (*if_move_shift): Likewise.
19483         (*arm_movtas_ze): Likewise.
19484         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19485         redundancy and type attribute.
19486         (*thumb2_movsi_insn): Fix type attribute.
19487         (*thumb2_addsi_short): Likewise.
19488         (thumb2_addsi3_compare0): Likewise.
19489         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19490         attributes accordingly.
19492 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
19494         PR other/65911
19495         * function.c (pad_to_arg_alignment): Add parentheses.
19497 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
19499         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19500         libgcc/config/frv/elf-lib.h.
19502 2015-04-28  Tom de Vries  <tom@codesourcery.com>
19504         * tree-call-cdce.c: Fix example in header comment.
19506 2015-04-28  Richard Biener  <rguenther@suse.de>
19508         PR tree-optimization/62283
19509         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
19510         fails fatally and we are vectorizing a basic-block simply
19511         cause the child to be constructed piecewise.
19512         (vect_analyze_slp_cost_1): Adjust.
19513         (vect_detect_hybrid_slp_stmts): Likewise.
19514         (vect_bb_slp_scalar_cost): Likewise.
19515         (vect_get_constant_vectors): For piecewise constructed
19516         constants place them after the last def.
19517         (vect_get_slp_defs): Adjust.
19518         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
19519         externals for basic-block vectorization.
19521 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19523         PR target/63503
19524         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19525         aarch64-*-*.
19526         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19527         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19528         (AARCH64_TUNE_FMA_STEERING): Likewise.
19529         * config/aarch64/aarch64-cores.def: Set
19530         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19531         FMUL/FMADD instructions.
19532         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19533         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
19534         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19535         * config/aarch64/cortex-a57-fma-steering.h: New file.
19536         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19538 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
19540         * gensupport.c (std_preds): Add missing codes to address_operand entry.
19542 2015-04-28  Richard Biener  <rguenther@suse.de>
19544         PR tree-optimization/65851
19545         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19546         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
19547         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
19548         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19549         (ccp_visit_phi_node): Adjust.
19550         (evaluate_stmt): For simplifications to SSA names return its
19551         lattice value if that isn't VARYING.  Return immediately when
19552         simplified to a constant.
19553         (visit_assignment): Adjust.
19554         (ccp_visit_stmt): Likewise.
19556 2015-04-28  Tom de Vries  <tom@codesourcery.com>
19558         PR tree-optimization/65818
19559         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19560         evaluated.
19562 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19564         * calls.c (save_fixed_argument_area): Don't check
19565         ARGS_GROW_DOWNWARD with the preprocessor.
19566         (restore_fixed_argument_area): Likewise.
19567         (mem_overlaps_already_clobbered_arg_p): Likewise.
19568         (check_sibcall_argument_overlap): Likewise.
19569         (expand_call): Likewise.
19570         (emit_library_call_value_1): Likewise.
19571         (store_one_arg): Likewise.
19572         * function.c (assign_parms): Likewise.
19573         (locate_and_pad_parm): Likewise.
19574         (pad_to_arg_alignment): Likewise.
19575         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19577 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19579         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19580         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19581         * calls.c (save_fixed_argument_area): Don't chekc if
19582         ARGS_GROW_DOWNWARD is defined.
19583         (restore_fixed_argument_area): Likewise.
19584         (mem_overlaps_already_clobbered_arg_p): Likewise.
19585         (check_sibcall_argument_overlap): Likewise.
19586         (expand_call): Likewise.
19587         (emit_library_call_value_1): Likewise.
19588         (store_one_arg): Likewise.
19589         * function.c (assign_parms): Likewise.
19590         (locate_and_pad_parm): Likewise.
19591         (pad_to_arg_alignment): Likewise.
19592         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19594 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19596         * defaults.h (gen_epilogue): New function.
19597         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19598         defined.
19599         * cfgrtl.c (cfg_layout_finalize): Likewise.
19600         * df-scan.c: Likewise.
19601         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19602         (reposition_prologue_and_epilogue_notes): Likewise.
19603         * reorg.c (find_end_label): Likewise.
19604         * toplev.c: Likewise.
19606 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19608         * bb-reorder.c (HAVE_return): Don't check if its undefined.
19609         * defaults.h (gen_simple_return): New function.
19610         (gen_simple_return): Likewise.
19611         (HAVE_return): Add default definition to false.
19612         (HAVE_simple_return): Likewise.
19613         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19614         HAVE_return and HAVE_simple_return are defined.
19615         * function.c (gen_return_pattern): Likewise.
19616         (convert_jumps_to_returns): Likewise.
19617         (thread_prologue_and_epilogue_insns): Likewise.
19618         * reorg.c (find_end_label): Likewise.
19619         (dbr_schedule): Likewise.
19620         * shrink-wrap.c: Likewise.
19621         * shrink-wrap.h: Likewise.
19623 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19625         * defaults.h (EPILOGUE_USES): Add default definition of false.
19626         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19627         * resource.c (init_resource_info): Likewise.
19629 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19631         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19632         to false.
19633         * dwarf2out.c (field_byte_offset): REmove check if
19634         PCC_BITFIELD_TYPE_MATTERS is defined.
19635         * stor-layout.c (layout_decl): Likewise.
19636         (update_alignment_for_field): Likewise.
19637         (place_field): Likewise.
19639 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19641         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19642         true.
19643         * regrename.c (check_new_reg_p): Remove check if
19644         HARD_REGNO_RENAME_OK is defined.
19645         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19647 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19649         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19650         * cse.c (fold_rtx): Likewise.
19651         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19652         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19653         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19654         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19655         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19656         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19657         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19658         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19659         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19660         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19661         * Likewise.
19662         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19663         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19664         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19665         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19666         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19667         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19668         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19669         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19670         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19671         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19672         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19673         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19674         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19675         * doc/tm.texi: Regenerate.
19676         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19677         either true or false.
19679 2015-04-27  Jeff Law  <law@redhat.com>
19681         PR tree-optimization/65217
19682         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19683         of them has a single use, make sure it is the LHS of the implied
19684         copy.
19686 2015-04-28  Alan Modra  <amodra@gmail.com>
19688         PR target/65810
19689         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19690         (offsettable_ok_by_alignment): Use minimum of decl and toc
19691         pointer alignment.  Replace dead code with assertion.
19692         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
19693         case if size exceeds toc pointer alignment.
19694         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19695         (rs6000_emit_move): Likewise.
19696         * configure.ac: Add linker toc pointer alignment check.
19697         * configure: Regenerate.
19698         * config.in: Regenerate.
19700 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
19702         * config.gcc: Add h8300-*-linux.
19703         * config/h8300/linux.h: New.
19704         * config/h8300/t-linux: New.
19705         * config/h8300/h8300.c (h8300_option_override): Normal mode
19706         is not supported for h8300-*-linux.
19707         (h8300_file_start): Target priority change.
19708         (get_shift_alg): Likewise.
19709         (h8300_shift_need_scratch_p): Likewise.
19710         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19711         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19713 2015-04-27  Caroline Tice  <cmtice@google.com>
19715         * final.c (final_scan_insn):  Output cold_function_name as function
19716         type.
19717         * varasm.c (cold_function_name):  Make global.
19718         (assemble_start_function):  Re-set cold_function_name.
19719         (assemble_end_function): Output cold partition size.
19720         * varasm.h (cold_function_name):  Declare global.
19722 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
19724         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19725         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19726         constraint.
19727         (*movxi_internal_avx512f): Ditto.
19728         (define_split): Check for xmm16+, when splitting scalar float_extend.
19729         (*extendsfdf2_mixed): Use "v" constraint.
19730         (define_split): Check for xmm16+, when splitting scalar float_truncate.
19731         (*truncdfsf_fast_sse): Use "v" constraint.
19732         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19733         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19734         (define_peephole2): Check for xmm16+, when converting scalar
19735         float_truncate.
19736         (define_peephole2): Check for xmm16+, when converting scalar
19737         float_extend.
19738         (*fop_<mode>_comm_mixed): Use "v" constraint.
19739         (*fop_<mode>_comm_sse): Ditto.
19740         (*fop_<mode>_1_mixed): Ditto.
19741         (*sqrt<mode>2_sse): Ditto.
19742         (*ieee_s<ieee_maxmin><mode>3): Ditto.
19744 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19746         * combine.c (simplify_if_then_else): Use std::swap instead
19747         of manually swapping.
19748         (known_cond): Likewise.
19749         (simplify_comparison): Likewise.
19751 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
19753         PR target/64579
19754         * config/rs6000/htm.md: Remove all define_expands.
19755         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
19756         UNSPECV_HTM_TABORTWCI): Remove.
19757         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
19758         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
19759         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
19760         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
19761         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
19762         tabortwci_internal): Remove define_insns.
19763         (tabort<wd>c, tabort<wd>ci): New define_insns.
19764         (tabort): Use gpc_reg_operand.
19765         (tcheck): Remove operand.
19766         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
19767         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
19768         expected value.
19769         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
19770         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
19771         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
19772         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
19773         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
19774         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
19775         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
19776         (tcheck): Remove builtin argument.
19777         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
19778         not TARGET_64BIT.
19779         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
19780         tabortdc and tabortdci builtins when not in 64-bit mode.
19781         Modify code to handle the loss of the HTM define_expands.
19782         Emit code to copy the CR register to TARGET.
19783         (htm_init_builtins): Modify code to handle the loss of the HTM
19784         define_expands.
19785         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
19786         (RS6000_BTC_64BIT): Likewise.
19787         (RS6000_BTC_CR): New macro.
19788         * doc/extend.texi: Update documentation for htm builtins.
19790 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19792         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
19793         of manually swapping.
19794         (simplify_associative_operation): Likewise.
19795         (simplify_binary_operation): Likewise.
19796         (simplify_plus_minus): Likewise.
19797         (simplify_relational_operation): Likewise.
19798         (simplify_ternary_operation): Likewise.
19800 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
19802         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
19803         (xs_hi_nonmemory_operand): Remove error.
19804         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
19805         general_operand rather than xs_hi_general_operand.
19807 2015-04-27  Richard Biener  <rguenther@suse.de>
19809         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
19810         (record_equivalences_from_stmt): Valueize rhs.
19811         (record_equality): Canonicalize x and y order via
19812         tree_swap_operands_p.  Do not swap operands for same loop depth.
19814 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
19816         PR target/65296
19817         PR target/65895
19818         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19819         Add hint how to use own spec file.
19821 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
19823         PR tree-optimization/65875
19824         * tree-vrp.c (update_value_range): If in is_new case setting
19825         old_vr to VR_VARYING, also set new_vr to it.  Remove
19826         old_vr->type == VR_VARYING test.
19827         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19828         SSA_PROP_INTERESTING if update_value_range returned true,
19829         but new range is VR_VARYING.
19831 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19833         * combine.c (sign_extend_short_imm): New.
19834         (set_nonzero_bits_and_sign_copies): Use above new function for sign
19835         extension of src short immediate.
19836         (reg_nonzero_bits_for_combine): Likewise for tem.
19838 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19840         * stor-layout.c (self_referential_component_ref_p): New predicate.
19841         (copy_self_referential_tree_r): Use it.
19842         (self_referential_size): Punt for simple operations directly involving
19843         self-referential component references.
19844         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19846 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19848         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19850 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
19852         * vec.h (vec): Make splice arguments const.  Update definitions
19853         accordingly.
19855 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
19857         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19858         alternatives.
19860 2015-04-26  Tom de Vries  <tom@codesourcery.com>
19862         PR tree-optimization/65826
19863         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19865 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
19867         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19868         (*madd3<mode>): Ditto.
19869         (*msub4<mode>): Ditto.
19870         (*msub3<mode>): Ditto.
19871         (*nmadd4<mode>): Ditto.
19872         (*nmadd3<mode>): Ditto.
19873         (*nmadd4<mode>_fastmath): Ditto.
19874         (*nmadd3<mode>_fastmath): Ditto.
19875         (*nmsub4<mode>): Ditto.
19876         (*nmsub3<mode>): Ditto.
19877         (*nmsub4<mode>_fastmath): Ditto.
19878         (*nmsub3<mode>_fastmath): Ditto.
19880 2015-04-24  Jason Merrill  <jason@redhat.com>
19882         PR c++/50800
19883         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19884         down when building TYPE_CANONICAL.
19885         (build_pointer_type_for_mode): Likewise.
19887 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
19889         * genrecog.c (validate_pattern): Check matching constraint refers
19890         to a lower numbered operand.
19892 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19894         PR target/65849
19895         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19896         save to independent variables use the Save attribute.  This will
19897         allow these options to be modified with the #pragma/attribute
19898         target support.
19899         (-mallow-movmisalign): Likewise.
19900         (-mallow-df-permute): Likewise.
19901         (-msched-groups): Likewise.
19902         (-malways-hint): Likewise.
19903         (-malign-branch-targets): Likewise.
19904         (-mvectorize-builtins): Likewise.
19905         (-msave-toc-indirect): Likewise.
19907         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19908         can be set via the #pragma/attribute target support.
19909         (rs6000_opt_vars): Likewise.
19910         (rs6000_inner_target_options): If VSX was set, also set
19911         -mno-avoid-indexed-addresses.
19913 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19915         * config/arm/iterators.md (shiftable_ops): Rename to...
19916         (SHIFTABLE_OPS): ... This.  Update use in comments.
19917         (ior_xor): Rename to...
19918         (IOR_XOR): ... This.
19919         (vqh_ops): Rename to...
19920         (VQH_OPS): ... This.
19921         (vqhs_ops): Rename to...
19922         (VQHS_OPS): ... This.
19923         (rshifts): Rename to...
19924         (RSHIFTS): ... This.
19925         (returns): Rename to...
19926         (RETURNS): ... This.
19927         * config/arm/arm.md: Update uses of the above.
19928         * config/arm/neon.md: Likewise.
19930 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19932         * config.host (case ${host}): Add aarch64*-*-linux case.
19933         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19934         fields to all the cores.
19935         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19936         Add MCPU_MTUNE_NATIVE_SPECS.
19937         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19938         field to all extensions.
19939         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19940         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19941         Adjust definition of AARCH64_OPT_EXTENSION.
19942         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19943         (MCPU_MTUNE_NATIVE_SPECS): Define.
19944         * config/aarch64/driver-aarch64.c: New file.
19945         * config/aarch64/x-arch64: New file.
19946         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19947         -mtune and -march.
19949 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
19950             Wei Mi  <wmi@google.com>
19952         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19953         * config/i386/i386.c (extract_base_offset_in_addr): New function.
19954         (ix86_operands_ok_for_move_multiple): Ditto.
19955         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19956         (movlpd/movhpd to movupd peephole2): Ditto.
19958 2015-04-24  Marek Polacek  <polacek@redhat.com>
19960         PR c/61534
19961         * input.h (from_macro_expansion_at): Define.
19963         PR c/63357
19964         * doc/invoke.texi: Update description of -Wlogical-op.
19966 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19968         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19969         ternary operator in fprintf and harmonize spacing.
19971 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
19973         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19974         Mark operand1 commutative.
19976 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
19978         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19979         input operands in memory.
19980         (*vec_concatv2si_sse4_1): Ditto.
19981         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19982         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19983         register_operand.
19984         (vec_extract_hi_v32hi): Ditto.
19985         (vec_extract_hi_v64hi): Ditto.
19986         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19988 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19989             Steven Bosscher <steven@gcc.gnu.org>
19991         PR rtl-optimization/34503
19992         * cprop.c (cprop_reg_p): New.
19993         (hash_scan_set): Use above function to check if register can be
19994         propagated.
19995         (find_avail_set): Return up to two sets, one whose source is a
19996         register and one whose source is a constant.  Sets are returned in an
19997         array passed as parameter rather than as a return value.
19998         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
19999         sets returned by find_avail_set, starting with the one whose source is
20000         a constant. Use cprop_reg_p to check if register can be propagated.
20001         (do_local_cprop): Use cprop_reg_p to check if register can be
20002         propagated.
20003         (implicit_set_cond_p): Likewise.
20005 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20007         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20008         (sem_function::equals): IGNORED_NODES parameter is now unused;
20009         update call of equals_private.
20010         (sem_function::equals_private): Do not call equals_wpa; skip
20011         gimple body matching if there is no body.
20012         (sem_function::init): Add logic to hash tthunk info.
20013         (sem_function::parse): Also parse thunks.
20014         * ipa-icf.h (equals_private): Update declaration.
20016 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20018         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20019         asterisk from name so this can be generated directly.
20020         (*altivec_stvx_<mode>_internal): Likewise.
20021         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20022         that this is never called during or after reload/lra.
20023         (rs6000_frame_related): Remove split_reg
20024         argument and logic that references it.
20025         (emit_frame_save): Remove last parameter from call to
20026         rs6000_frame_related.
20027         (rs6000_emit_prologue): Remove last parameter from eight calls to
20028         rs6000_frame_related.  Force generation of stvx instruction for
20029         Altivec register saves.  Remove split_reg handling, which is no
20030         longer needed.
20031         (rs6000_emit_epilogue):  Force generation of lvx instruction for
20032         Altivec register restores.
20034 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20036         * config/rs6000/rs6000.opt (mcrypto): Change option description to
20037         match category changes in ISA 2.07B.
20039 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20041         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20042         iterators.
20043         (cmp_op, cmp_type): New code attributes.
20044         (NEON_VCMP, NEON_VACMP): New int iterators.
20045         (cmp_op_unsp): New int attribute.
20046         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20047         (neon_vceq<mode>): Delete.
20048         (neon_vc<cmp_op><mode>_insn): New pattern.
20049         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20050         (neon_vcgeu<mode>): Delete.
20051         (neon_vcle<mode>): Likewise.
20052         (neon_vclt<mode>: Likewise.
20053         (neon_vcage<mode>): Likewise.
20054         (neon_vcagt<mode>): Likewise.
20055         (neon_vca<cmp_op><mode>): New define_expand.
20056         (neon_vca<cmp_op><mode>_insn): New pattern.
20057         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20059 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20061         * tree.h (attribute_value_equal): Declare.
20062         * tree.c (attribute_value_equal): Export.
20064 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20066         * ipa-icf.c (sem_item::compare_attributes): New function.
20067         (sem_item::compare_referenced_symbol_properties): Compare variable
20068         attributes.
20069         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20070         (sem_function::param_used_p): New function.
20071         (sem_function::equals_wpa): Fix attribute comparsion; match
20072         parameter type codes; do not compare paremter flags when
20073         they are not used; compare edge flags; compare indirect calls.
20074         (sem_item::update_hash_by_addr_refs): Hash reference type.
20075         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20076         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20077         reference use type.
20078         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20079         * ipa-icf.h (compare_attributes, param_used_p): Declare.
20081 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20083         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20084         cleanup.
20085         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20086         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20087         (sem_item::compare_referenced_symbol_properties): New.
20088         (sem_item::hash_referenced_symbol_properties): New.
20089         (sem_item::compare_cgraph_references): Rename to ...
20090         (sem_item::compare_symbol_references): ... this one; use
20091         compare_referenced_symbol_properties.
20092         (sem_function::equals_wpa): Do not compare
20093         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20094         DECL_IS_OPERATOR_NEW; compare pointer sizes.
20095         (sem_item::update_hash_by_addr_refs): Call
20096         hash_referenced_symbol_properties.
20097         (sem_item::update_hash_by_local_refs): Cleanup.
20098         (sem_function::merge): Do not mix up symbol properties.
20099         (sem_variable::equals_wpa): Use compare_symbol_references.
20100         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20101         (sem_item::hash_referenced_symbol_properties): New.
20102         (sem_item::compare_symbol_references): New.
20103         (sem_item::compare_cgraph_references): Remove.
20105 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
20107         PR target/26702
20108         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20109         Emit size of local.
20111 2015-04-23  Nick Clifton  <nickc@redhat.com>
20113         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20114         ATTRIBUTE_UNUSED to x parameter.
20115         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20117 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20119         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20120         TARGET_CRYPTO to TARGET_P8_VECTOR>
20121         (crypto_vpermxor_<mode>): Likewise.
20122         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20123         (BU_CRYPTO_3A): Likewise.
20124         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20125         (BU_CRYPTO_OVERLOAD_3A): New #define.
20126         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20127         (VPMSUMH): Likewise.
20128         (VPMSUMW): Likewise.
20129         (VPMSUMD): Likewise.
20130         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20131         (VPERMXOR_V4SI): Likewise.
20132         (VPERMXOR_V8HI): Likewise.
20133         (VPERMXOR_V16QI): Likewise.
20134         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20135         BU_CRYPTO_OVERLOAD_2A.
20136         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20137         BU_CRYPTO_OVERLOAD_3A.
20138         * config/rs6000/rs6000.opt (mcrypto): Change description of
20139         option.
20141 2015-04-23  Richard Biener  <rguenther@suse.de>
20143         * passes.def: Remove copy propagation passes run directly after CCP.
20144         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20145         SSA names.
20146         (ccp_visit_phi_node): Rework to handle first executable edge
20147         specially.
20149 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
20151         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20152         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20153         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20154         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20155         (thumb_legimitimize_reload_address): Remove.
20156         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20157         Remove.
20158         (thumb_legimitimize_reload_address): Remove.
20160 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20162         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20164 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20166         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20167         MAX_LDM_STM_OPS.
20168         (store_multiple): Likewise.
20170 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20172         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20173         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20174         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20175         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20176         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20177         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20178         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20179         Specify issue_rate value.
20180         (arm_issue_rate): Look up issue rate from tuning structs. Remove
20181         large switch statement.
20182         (arm_marvell_pj4_tune): New struct.
20183         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20184         struct.
20186 2015-04-23  Richard Biener  <rguenther@suse.de>
20188         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20189         (vect_find_last_store_in_slp_instance): Rename to ...
20190         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20191         (vect_analyze_slp_cost_1): Use vector_load for constant defs
20192         and vec_construct for external defs when estimating prologue cost.
20193         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20194         Compute costs here only when vectorizing loops.
20195         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20196         have been determined.
20197         (vect_schedule_slp_instance): Simplify vectorized code placement
20198         and prepare for in-BB external defs.
20199         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20200         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20201         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20202         guard.
20203         (vect_model_load_cost): Likewise.
20204         (vectorizable_store): Instead add it here.
20205         (vectorizable_load): Likewise.
20206         (vect_is_simple_use): Dump def type textually.
20208 2015-04-23  Richard Biener  <rguenther@suse.de>
20210         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20211         * cfgloop.c (verify_loop_structure): Verify the root loop node.
20212         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20213         instead of get_eh_region_from_lp_number.
20214         * loop-init.c (fix_loop_structure): If we removed a loop, reset
20215         the SCEV cache.
20217 2015-04-23  Anton Blanchard  <anton@samba.org>
20219         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20220         need for -mprofile-kernel to save LR to stack.
20222 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20224         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20225         adjustments.
20226         (insn_is_swappable_p): Return 1 for a convert from double to
20227         single precision when all of its uses are splats of BE element
20228         zero.
20230 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20232         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20234 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20236         PR target/65456
20237         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
20238         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20239         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20240         option.
20241         (rs6000_builtin_mask_for_load): Return 0 for targets with
20242         efficient unaligned VSX accesses so that the vectorizer will use
20243         direct unaligned loads.
20244         (rs6000_builtin_support_vector_misalignment): Always return true
20245         for targets with efficient unaligned VSX accesses.
20246         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20247         stores on targets with efficient unaligned VSX accesses is almost
20248         always the same as the cost of an aligned load or store, so model
20249         it that way.
20250         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20251         unaligned vectors if we have efficient unaligned VSX accesses.
20252         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20253         undocumented option.
20255 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20257         Revert:
20258         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
20260         * config.gcc (LIBC_MUSL): New tm_defines macro.
20261         * config/linux.h (OPTION_MUSL): Define.
20262         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20263         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20264         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20266         * config/linux.opt (mmusl): New option.
20267         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20268         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20270         * configure: Regenerate.
20272 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
20274         * config.gcc (LIBC_MUSL): New tm_defines macro.
20275         * config/linux.h (OPTION_MUSL): Define.
20276         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20277         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20278         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20280         * config/linux.opt (mmusl): New option.
20281         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20282         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20284         * configure: Regenerate.
20286 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
20288         * doc/invoke.texi (-fsanitize-sections): Update description.
20289         * asan.c (set_sanitized_sections): Parse incoming arg.
20290         (section_sanitized_p): Support wildcards.
20292 2015-04-22  Tom de Vries  <tom@codesourcery.com>
20294         PR tree-optimization/65823
20295         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20296         equality between ap_copy and ap.
20298 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20300         PR target/47098
20301         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20303 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20305         PR target/47122
20306         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20308 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20310         PR target/55144
20311         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20312         remove already contained t-files.
20314 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20316         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20317         Remove unneeded forward declarations.
20318         (suitable_for_tail_call_opt_p): Commentary typo fix.
20320 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20322         * varasm.c (emit_bss): Remove redundant guard.
20324 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20326         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20328 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20330         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20332 2015-04-22  Hale Wang  <hale.wang@arm.com>
20333             Terry Guo  <terry.guo@arm.com>
20335         PR rtl-optimization/64818
20336         * combine.c (can_combine_p): Don't combine user-specified
20337         register if it is in an asm input.
20339 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
20341         PR ipa/65076
20342         * passes.def (early_optimizations): Add pass_dse.
20344 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20346         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20347         * reorg.c (redundant_insn): Remove ifdef
20348         INSN_REFERENCES_ARE_DELAYED.
20349         * resource.c (mark_referenced_resources): Likewise.
20351 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20353         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20354         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20355         * resource.c (mark_set_resources): Likewise.
20357 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20359         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20360         * cfgcleanup.c (flow_find_cross_jump): Likewise.
20361         (flow_find_head_matching_sequence): Likewise.
20362         (try_head_merge_bb): Likewise.
20363         * combine.c (can_combine_p): Likewise.
20364         (try_combine): Likewise.
20365         (distribute_notes): Likewise.
20366         * df-problems.c (can_move_insns_across): Likewise.
20367         * final.c (final): Likewise.
20368         * gcse.c (insert_insn_end_basic_block): Likewise.
20369         * ira.c (find_moveable_pseudos): Likewise.
20370         * reorg.c (try_merge_delay_insns): Likewise.
20371         (fill_simple_delay_slots): Likewise.
20372         (fill_slots_from_thread): Likewise.
20373         * sched-deps.c (sched_analyze_2): Likewise.
20375 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20377         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20378         PIC_OFFSET_TABLE_REGNUM.
20380 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20382         * alias.c (init_alias_target): Remove ifdef
20383         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20384         * df-scan.c (df_insn_refs_collect): Likewise.
20385         (df_get_regular_block_artificial_uses): Likewise.
20386         (df_get_eh_block_artificial_uses): Likewise.
20387         (df_get_entry_block_def_set): Likewise.
20388         (df_get_exit_block_use_set): Likewise.
20389         * emit-rtl.c (gen_rtx_REG): Likewise.
20390         * ira.c (ira_setup_eliminable_regset): Likewise.
20391         * reginfo.c (init_reg_sets_1): Likewise.
20392         * regrename.c (rename_chains): Likewise.
20393         * reload1.c (reload): Likewise.
20394         (eliminate_regs_in_insn): Likewise.
20395         * resource.c (mark_referenced_resources): Likewise.
20396         (init_resource_info): Likewise.
20398 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20400         * defaults.h (MASK_RETURN_ADDR): New definition.
20401         * except.c (expand_builtin_extract_return_addr): Remove ifdef
20402         MASK_RETURN_ADDR.
20404 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20406         * defaults.h (RETURN_ADDR_OFFSET): New definition.
20407         * except.c (expand_builtin_extract_return_addr): Remove ifdef
20408         RETURN_ADDR_OFFSET.
20409         (expand_builtin_frob_return_addr): Likewise.
20411 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20413         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20414         (try_redirect_by_replacing_jump): Likewise.
20415         (rtl_tidy_fallthru_edge): Likewise.
20416         * combine.c (insn_a_feeds_b): Likewise.
20417         (find_split_point): Likewise.
20418         (simplify_set): Likewise.
20419         * cprop.c (cprop_jump): Likewise.
20420         * cse.c (cse_extended_basic_block): Likewise.
20421         * df-problems.c (can_move_insns_across): Likewise.
20422         * function.c (emit_use_return_register_into_block): Likewise.
20423         * haifa-sched.c (sched_init): Likewise.
20424         * ira.c (find_moveable_pseudos): Likewise.
20425         * loop-invariant.c (find_invariant_insn): Likewise.
20426         * lra-constraints.c (curr_insn_transform): Likewise.
20427         * postreload.c (reload_combine_recognize_const_pattern):
20428         * Likewise.
20429         * reload.c (find_reloads): Likewise.
20430         * reorg.c (delete_scheduled_jump): Likewise.
20431         (steal_delay_list_from_target): Likewise.
20432         (steal_delay_list_from_fallthrough): Likewise.
20433         (redundant_insn): Likewise.
20434         (fill_simple_delay_slots): Likewise.
20435         (fill_slots_from_thread): Likewise.
20436         (delete_computation): Likewise.
20437         * sched-rgn.c (add_branch_dependences): Likewise.
20439 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20441         * genconfig.c (main): Always define HAVE_cc0.
20442         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
20443         HAVE_cc0.
20444         * cfgcleanup.c (flow_find_cross_jump): Likewise.
20445         (flow_find_head_matching_sequence): Likewise.
20446         (try_head_merge_bb): Likewise.
20447         * cfgrtl.c (rtl_merge_blocks): Likewise.
20448         (try_redirect_by_replacing_jump): Likewise.
20449         (rtl_tidy_fallthru_edge): Likewise.
20450         * combine.c (do_SUBST_MODE): Likewise.
20451         (insn_a_feeds_b): Likewise.
20452         (combine_instructions): Likewise.
20453         (can_combine_p): Likewise.
20454         (try_combine): Likewise.
20455         (find_split_point): Likewise.
20456         (subst): Likewise.
20457         (simplify_set): Likewise.
20458         (distribute_notes): Likewise.
20459         * cprop.c (cprop_jump): Likewise.
20460         * cse.c (cse_extended_basic_block): Likewise.
20461         * df-problems.c (can_move_insns_across): Likewise.
20462         * final.c (final): Likewise.
20463         (final_scan_insn): Likewise.
20464         * function.c (emit_use_return_register_into_block): Likewise.
20465         * gcse.c (insert_insn_end_basic_block): Likewise.
20466         * haifa-sched.c (sched_init): Likewise.
20467         * ira.c (find_moveable_pseudos): Likewise.
20468         * loop-invariant.c (find_invariant_insn): Likewise.
20469         * lra-constraints.c (curr_insn_transform): Likewise.
20470         * optabs.c (prepare_cmp_insn): Likewise.
20471         * postreload.c (reload_combine_recognize_const_pattern):
20472         * Likewise.
20473         * reload.c (find_reloads): Likewise.
20474         (find_reloads_address_1): Likewise.
20475         * reorg.c (delete_scheduled_jump): Likewise.
20476         (steal_delay_list_from_target): Likewise.
20477         (steal_delay_list_from_fallthrough): Likewise.
20478         (try_merge_delay_insns): Likewise.
20479         (redundant_insn): Likewise.
20480         (fill_simple_delay_slots): Likewise.
20481         (fill_slots_from_thread): Likewise.
20482         (delete_computation): Likewise.
20483         (relax_delay_slots): Likewise.
20484         * sched-deps.c (sched_analyze_2): Likewise.
20485         * sched-rgn.c (add_branch_dependences): Likewise.
20487 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20489         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20490         that is trivially ded on non cc0 targets.
20491         (simplify_set): Likewise.
20492         (mark_used_regs_combine): Likewise.
20493         * cse.c (new_basic_block): Likewise.
20494         (fold_rtx): Likewise.
20495         (cse_insn): Likewise.
20496         (cse_extended_basic_block): Likewise.
20497         (set_live_p): Likewise.
20498         * rtlanal.c (canonicalize_condition): Likewise.
20499         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20501 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20503         * conditions.h: Define macros even if HAVE_cc0 is undefined.
20504         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
20505         * final.c: Likewise.
20506         * jump.c: Likewise.
20507         * recog.c: Likewise.
20508         * recog.h: Declare functions even when HAVE_cc0 is undefined.
20509         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
20511 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20513         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
20514         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
20515         * builtins.c (expand_builtin): Remove check if
20516         EH_RETURN_DATA_REGNO is defined.
20517         * df-scan.c (df_bb_refs_collect): Likewise.
20518         (df_get_exit_block_use_set): Likewise.
20519         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20520         * ira-lives.c (process_bb_node_lives): Likewise.
20521         * lra-lives.c (process_bb_lives): Likewise.
20523 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
20525         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20526         FIRST_PSEUDO_REG): New.
20527         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20528         (ARG_POINTER_REGNUM): Define to ARGP_REG.
20529         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20530         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20531         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20532         (FIRST_INT_REG): New.
20533         (LAST_INT_REG): New.
20534         (FIRST_*_REG): Define using *_REG.
20535         (LAST_*_REG): Ditto.
20536         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20537         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20538         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20540 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20542         * expmed.c: (synth_mult): Only assume overlapping
20543         shift with previous steps in alg_sub_t_m2 case.
20545 2015-04-21  Richard Biener  <rguenther@suse.de>
20547         PR tree-optimization/65650
20548         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20549         transitions involving copies.
20550         (set_lattice_value): Adjust for copy lattice state.
20551         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20552         if that doesn't dominate the merge point.
20553         (bit_value_unop): Adjust what we treat as varying mask.
20554         (bit_value_binop): Likewise.
20555         (bit_value_assume_aligned): Likewise.
20556         (evaluate_stmt): When we simplified to a SSA name record a copy
20557         instead of dropping to varying.
20558         (visit_assignment): Simplify.
20560         * gimple-match.h (gimple_simplify): Add another callback.
20561         * gimple-fold.c (fold_stmt_1): Adjust caller.
20562         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20563         for the 2nd callback.
20564         * gimple-match-head.c (gimple_simplify): Add a callback that is
20565         used to valueize the stmt operands and use it that way.
20567 2015-04-21  Richard Biener  <rguenther@suse.de>
20569         PR tree-optimization/65788
20570         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20572 2015-04-21  Richard Biener  <rguenther@suse.de>
20574         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20575         vec_construct cost by vec_stmt_cost.
20577 2015-04-21  Richard Biener  <rguenther@suse.de>
20579         * cfghooks.h (create_basic_block): Replace with two overloads
20580         for RTL and GIMPLE.
20581         (split_block): Likewise.
20582         * cfghooks.c (split_block): Rename to ...
20583         (split_block_1): ... this.
20584         (split_block): Add two type-safe overloads for RTL and GIMPLE.
20585         (split_block_after_labels): Call split_block_1.
20586         (create_basic_block): Rename to ...
20587         (create_basic_block_1): ... this.
20588         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20589         (create_empty_bb): Call create_basic_block_1.
20590         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20591         split_block_after_labels.
20592         * omp-low.c (expand_parallel_call): Likewise.
20593         (expand_omp_target): Likewise.
20594         (simd_clone_adjust): Likewise.
20595         * tree-chkp.c (chkp_get_entry_block): Likewise.
20596         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20597         create_basic_block overload.
20598         (cgraph_node::expand_thunk): Likewise.
20599         * tree-cfg.c (make_blocks): Likewise.
20600         (handle_abnormal_edges): Likewise.
20601         * tree-inline.c (copy_bb): Likewise.
20603 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20605         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20606         New pattern.
20607         (*xor_one_cmplsidi3_ze): Likewise.
20609 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20611         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20612         use df_remove_problem rather than manually removing problems, leaving
20613         holes in df->problems_in_order[].
20615 2015-04-21  Tom de Vries  <tom@codesourcery.com>
20617         PR tree-optimization/65802
20618         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20620 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20622         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20623         Increase to 128.
20624         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20625         at '.'.  Assert that there's enough space for everything.
20627 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
20629         PR tree-optimization/64950
20630         Revert:
20631         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
20633         PR target/41089
20634         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20635         as volatile.
20637 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
20639         PR rtl-optimization/64916
20640         * cfgcleanup.c (values_equal_p): New function.
20641         (can_replace_by): Use it.
20643 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
20645         PR c++/65801
20646         * doc/invoke.texi ([-Wnarrowing]): Update.
20648 2015-04-20  Jeff Law  <law@redhat.com>
20650         PR tree-optimization/65658
20651         * tree-ssa-threadupdate.c (redirection_block_p): Remove
20652         redundant test for GIMPLE_ASSIGN in last change.
20654 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
20656         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20657         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20658         (legitimize_tls_address): Ditto.
20659         (ix86_expand_move): Ditto.
20660         (ix86_expand_binary_operator): Remove reload_in_progress checks.
20661         (ix86_expand_unary_operator): Ditto.
20662         * config/i386/predicates.md (index_register_operand): Ditto.
20664 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
20666         * reorg.c (try_merge_delay_insns): Improve correctness checking
20667         for targets with multiple delay slots.
20669 2015-04-20  Jeff Law  <law@redhat.com>
20671         PR tree-optimization/65658
20672         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20673         statements too.
20675 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
20677         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20678         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20679         Delete.
20681 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
20683         PR debug/65807
20684         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20686 2015-04-20  Richard Biener  <rguenther@suse.de>
20688         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20689         * gimple-fold.c (gimple_build_valueize): New function.
20690         (gimple_build): Always use gimple_build_valueize as valueize hook.
20692 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
20694         PR target/64134
20695         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20696         and overwrite variable parts if <= 1/2 the elements are variable.
20698 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
20700         PR rtl-optimization/65805
20701         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20702         Don't use difference of offset and previous offset if
20703         update_sp_offset is non-zero.
20704         (eliminate_regs_in_insn): Ditto.
20705         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20706         lra_eliminate_regs_1 call.
20707         * lra-constraints.c (get_equiv_with_elimination): Ditto.
20709 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
20711         * hash-table.h: Remove version of hash_table that stored value_type *.
20712         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20713         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20714         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20715         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20716         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20717         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20718         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20719         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20720         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20721         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20722         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20723         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20724         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20725         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20726         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20727         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20729 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20730             Jakub Jelinek  <jakub@redhat.com>
20732         PR target/65787
20733         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20734         subsequent SH_NONE operand does not overwrite an existing *special
20735         value.
20736         (adjust_extract): Handle case where a vec_extract operation is
20737         wrapped in a PARALLEL.
20739 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
20741         PR target/65780
20742         * config/i386/i386.c (ix86_binds_local_p): Define only if
20743         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20745 2015-04-17  Jeff Law  <law@redhat.com>
20747         PR tree-optimization/47679
20748         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20749         * tree-ssa-scopedtables.c: New file.
20750         * tree-ssa-scopedtables.h: New file.
20751         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20752         (const_and_copies): Change name/type.
20753         (record_const_or_copy): Move into tree-ssa-scopedtables.c
20754         (record_const_or_copy_1): Similarly.
20755         (restore_vars_to_original_value): Similarly.
20756         (pass_dominator::execute): Create and destroy const_and_copies table.
20757         (thread_across_edge): Update passing of const_and_copies.
20758         (record_temporary_equivalence): Use method calls rather than
20759         manipulating const_and_copies directly.
20760         (record_equality, cprop_into_successor_phis): Similarly.
20761         (dom_opt_dom_walker::before_dom_children): Similarly.
20762         (dom_opt_dom_walker::after_dom_children): Similarly.
20763         (eliminate_redundant_computations): Similarly.
20764         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
20765         (record_temporary_equivalence): Likewise.
20766         (invalidate_equivalences): Likewise.
20767         (record_temporary_equivalences_from_phis): Update due to type
20768         change of const_and_copies.  Use method calls rather than
20769         manipulating the stack directly.
20770         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
20771         (thread_through_normal_block, thread_across_edge): Likewise.
20772         (thread_across_edge): Likewise.
20773         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
20774         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
20775         of equiv_stack.
20776         (identify_jump_threads): Update due to type change of equiv_stack.
20777         (finalize_jump_threads): Delete the equiv_stack when complete.
20779 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
20781         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20782         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
20783         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
20785 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
20787         PR target/65535
20788         * config.gcc: Exit with a comment when we do not have a major version
20789         number for the FreeBSD target.
20791 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
20793         PR target/65689
20794         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
20795         maybe_allows_mem bitfields.
20796         (maybe_allows_none_start, maybe_allows_none_end,
20797         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
20798         maybe_allows_mem_end): New variables.
20799         (compute_maybe_allows): New function.
20800         (add_constraint): Use it to initialize maybe_allows_reg and
20801         maybe_allows_mem fields.
20802         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
20803         is_address constraints such that those that allow neither mem nor
20804         reg come first, then those that only allow reg but not mem, then
20805         those that only allow mem but not reg, then the rest.
20806         (write_allows_reg_mem_function): New function.
20807         (write_tm_preds_h): Call it.
20808         * stmt.c (parse_output_constraint, parse_input_constraint): Use
20809         the generated insn_extra_constraint_allows_reg_mem function
20810         instead of always setting *allows_reg = true; *allows_mem = true;
20811         for unknown extra constraints.
20813 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
20815         PR target/65780
20816         * output.h (default_binds_local_p_3): New.
20817         * varasm.c (default_binds_local_p_3): Make it public.  Take an
20818         argument to indicate if common symbol may be local.  If common
20819         symbol may be local, treat non-external variable as defined
20820         locally.
20821         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20822         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20823         * config/i386/i386.c (ix86_binds_local_p): New.
20824         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20825         ix86_binds_local_p.
20827 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
20829         PR debug/65771
20830         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20831         trying mem_loc_descriptor on XEXP (rtl, 0).
20833 2015-04-17  Martin Liska  <mliska@suse.cz>
20835         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20836         Release symbol_compare_collection.
20837         * ipa-reference.c: Add TODO that a vector should be released.
20839 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20841         PR target/65296
20842         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20843         to new AVR-LibC file layout (bug #44574).
20844         (*avrlibc_devicelib): Same.
20845         * config/avr/avr-mcus.def: Adjust comments.
20846         * config/avr/avr.opt (nodevicelib): Adjust help.
20848 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
20850         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20852 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
20854         PR c++/64527
20855         * gimplify.c (gimplify_init_constructor): Always emit a
20856         side-effecting constructor.
20858 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20860         PR tree-optimization/64950
20861         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20862         in cfun->curr_properties.
20863         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20864         if we generate an IFN_VA_ARG.
20865         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20866         function if PROP_gimple_lva is not set in src function.
20868 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20869             Michael Matz  <matz@suse.de>
20871         PR tree-optimization/64950
20872         * gimple-iterator.c (update_modified_stmts): Remove static.
20873         * gimple-iterator.h (update_modified_stmts): Declare.
20874         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20875         (gimplify_va_arg_internal): New function.
20876         (gimplify_va_arg_expr): Use IFN_VA_ARG.
20877         * gimplify.h (gimplify_va_arg_internal): Declare.
20878         * internal-fn.c (expand_VA_ARG): New unreachable function.
20879         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20880         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20881         (expand_ifn_va_arg): New function.
20882         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20883         (pass_stdarg::execute): Call expand_ifn_va_arg.
20884         (pass_data_lower_vaarg): New pass_data.
20885         (pass_lower_vaarg): New gimple_opt_pass.
20886         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20887         (make_pass_lower_vaarg): New function.
20888         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20889         properties_required field.
20890         * passes.def (all_passes): Add pass_lower_vaarg.
20891         * tree-pass.h (PROP_gimple_lva): Add define.
20892         (make_pass_lower_vaarg): Declare.
20894 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20896         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20897         * calls.c (call_expr_flags): Same.
20899 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20901         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20902         (pass_stdarg::execute): ... here.
20904 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20905             Michael Matz  <matz@suse.de>
20907         * tree-cfg.c (make_blocks_1): Factor out of ...
20908         (make_blocks): ... here.
20909         (make_edges_bb): Factor out of ...
20910         (make_edges): ... here.
20911         (gimple_find_sub_bbs): New function.
20912         * tree-cfg.h (gimple_find_sub_bbs): Declare.
20914 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20916         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20918 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
20920         * asan.c (set_sanitized_sections): New function.
20921         (section_sanitized_p): Ditto.
20922         (asan_protect_global): Optionally sanitize user-defined
20923         sections.
20924         * asan.h (set_sanitized_sections): Declare new function.
20925         * common.opt (fsanitize-sections): New option.
20926         * doc/invoke.texi (-fsanitize-sections): Document new option.
20927         * opts-global.c (handle_common_deferred_options): Handle new
20928         option.
20930 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
20932         PR debug/65771
20933         * dwarf2out.c (loc_list_from_tree): Return NULL
20934         for DEBUG_EXPR_DECL.
20936 2015-04-17  Christian Bruel  <christian.bruel@st.com>
20938         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20939         same attributes.
20941 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20943         * ira-color.c (setup_left_conflict_sizes_p): Do not process
20944         node itself when computing left conflict subnode size.
20946 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
20948         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20949         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20950         *fop_<mode>_1_sse using enabled attribute.  Use
20951         register_mixssei387nonimm_operand operand 1 predicate. Change
20952         alternative 3 constraints from "x" to "v".
20954 2015-04-16  Richard Biener  <rguenther@suse.de>
20956         PR tree-optimization/65774
20957         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20958         bit-value tracking on.
20960 2015-04-16  Richard Biener  <rguenther@suse.de>
20962         PR tree-optimization/64277
20963         * tree-vrp.c (check_array_ref): Fix anti-range handling,
20964         simplify upper bound handling.
20965         (search_for_addr_array): Simplify.
20966         (check_array_bounds): Handle ADDR_EXPRs here.
20967         (check_all_array_refs): Simplify.
20969 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
20971         * config/i386/i386.c (print_reg): Rewrite function.
20973 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20975         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20976         Invert the condition.
20978 2015-04-16  Renlin Li  <renlin.li@arm.com>
20980         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20981         simplifications for UNSIGNED_FLOAT.
20983 2015-04-16  Nick Clifton  <nickc@redhat.com>
20985         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20986         MUL_UNINIT.
20987         (enum rl78_cpu_type): New.
20988         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20989         (umulhi3_shift_virt): Remove m constraint from operand 1.
20990         (umulqihi3_virt): Likewise.
20991         * config/rl78/rl78.c (rl78_option_override): Add code to process
20992         -mcpu and -mmul options.
20993         (rl78_alloc_physical_registers): Add code to handle divhi and
20994         divsi valloc attributes.
20995         (set_origin): Likewise.
20996         * config/rl78/rl78.h (RL78_MUL_G14): Define.
20997         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20998         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20999         __RL78_Gxx__.
21000         (ASM_SPEC): Pass -mcpu on to assembler.
21001         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21002         (mulqi3_rl78): Likewise.
21003         (mulhi3_g13): Likewise.
21004         (mulhi3): Generate the G13 or G14 versions of the insn directly.
21005         (mulsi3): Likewise.
21006         (mulhi3_g14): Add clobbers of AX and BC.
21007         (mulsi3_g14): Likewise.
21008         (mulsi3_g13): Likewise.
21009         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21010         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21011         * config/rl78/rl78.opt (mmul): Initialise value to
21012         RL78_MUL_UNINIT.
21013         (mcpu): New option.
21014         (m13, m14, mrl78): New option aliases.
21015         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21016         (MULTILIB_DIRNAMES): Add g13 and g14.
21017         * doc/invoke.texi: Document -mcpu and -mmul options.
21019 2015-04-16  Richard Biener  <rguenther@suse.de>
21021         * tree-ssa-ccp.c (likely_value): See if we have operands that
21022         are marked as never simulate again and return CONSTANT in this
21023         case.
21024         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21025         not have any operands that will be simulated again as
21026         not being simulated again.
21028 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
21030         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21031         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21032         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21033         attribute.
21034         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21035         enabled attribute.
21036         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21037         *float<SWI48:mode><MODEF:mode>2_sse.
21038         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21039         enabled attribute.
21040         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21041         enabled attribute.
21043 2015-04-15  Tom de Vries  <tom@codesourcery.com>
21045         PR other/65487
21046         * function.c (push_dummy_function): New function.
21047         (init_dummy_function_start): Use push_dummy_function.
21048         (pop_dummy_function): New function.  Factored out of ...
21049         (expand_dummy_function_end): ... here.
21050         * function.h (push_dummy_function, pop_dummy_function): Declare.
21051         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21052         pop_dummy_function.
21053         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21055 2015-04-15  Jeff Law  <law@redhat.com>
21057         PR tree-optimization/47679
21058         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21059         need for forward declaration in upcoming changes.
21060         (record_conditions, record_edge_info): Likewise.
21062         PR rtl-optimization/42522
21063         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21064         SIGN_EXTRACT as a whole object rather than simplifying
21065         its operand.
21067 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
21069         PR ipa/65765
21070         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21071         and GIMPLE_PREDICT use break instead of return true. For
21072         GIMPLE_EH_DISPATCH, compare dispatch region.
21074 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
21076         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
21077         details about the implementation.  Make clear preference for
21078         __atomic builtins.  Reduce possibility of future change.
21080 2015-04-15  Nick Clifton  <nickc@redhat.com>
21082         * config/rx/rx.opt (mallow-string-insns): New option.
21083         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21084         builtin if string instructions are denied.
21085         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21086         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21087         appropriate.
21088         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21089         * config/rx/rx.md (movstr): Enable pattern only if string
21090         instructions are allowed.
21091         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21092         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21093         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21094         (MULTILIB_DIRNAMES): Add no-strings.
21095         * doc/invoke.texi: Document -mno-allow-string-insns.
21097 2015-04-15  Alan Modra  <amodra@gmail.com>
21099         PR target/65408
21100         PR target/58744
21101         PR middle-end/36043
21102         * calls.c (load_register_parameters): Don't load past end of
21103         mem unless suitably aligned.
21105 2015-04-15  Nick Clifton  <nickc@redhat.com>
21107         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21108         decrement instruction as being frame related.
21109         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21110         based addresses.
21111         If zero extending a function address enclose the operation in
21112         %code(...).
21113         (rl78_preferred_reload_class): New function.
21114         (TARGET_PREFERRED_RELOAD_CLASS): Define.
21115         * config/rl78/rl78.md: Remove useless constraints in expanders.
21116         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21117         (mulhi3_rl78): Likewise.
21118         (mulhi3_g13): Likewise.
21119         (mulsi3_rl78): Likewise.
21120         (es_addr): Move to before the multiply patterns.
21122 2015-04-15  Alan Modra  <amodra@gmail.com>
21124         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21125         and sequence_stack.  Add seq.
21126         (seq_stack): Delete.
21127         * function.c (prepare_function_start): Don't access x_last_insn.
21128         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21129         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21130         * emit_rtl.c (start_sequence, push_topmost_sequence,
21131         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21132         sequence accessors.
21133         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21134         remove_insn): Likewise.  Simplify.
21135         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21136         and pop_topmost_sequence.
21137         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
21138         debug insns.
21139         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21141 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
21143         PR target/65729
21144         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21145         the assertiion.
21147 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
21149         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21150         (LEGACY_INT_REGNO_P): Ditto.
21151         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21152         (ANY_MASK_REG_P): Remove.
21153         (BND_REG_P): Rename from ANY_BND_REG_P.
21154         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21155         legacy integer registers.  Do not handle MMX_REG_P in a special way.
21156         Merge 64byte and 32byte SSE handling.
21158 2015-04-14  Nick Clifton  <nickc@redhat.com>
21160         * expr.c (expand_assignment): Force an address offset computation
21161         into a register before changing its mode.
21162         (expand_expr_real_1): Likewise.
21164 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
21166         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21167         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21168         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21169         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21170         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21171         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21172         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21173         and __aarch64_vget_lane_any.
21175 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
21177         PR rtl-optimization/65761
21178         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21179         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21181 2015-04-14  Richard Biener  <rguenther@suse.de>
21183         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21184         (graphite_can_represent_scev): Use POINTER_TYPE_P.
21186 2015-04-14  Richard Biener  <rguenther@suse.de>
21188         PR tree-optimization/65758
21189         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21190         against -1.
21191         (ccp_lattice_meet): Likewise.
21192         (bit_value_unop): Likewise.
21193         (bit_value_binop): Likewise.
21194         (bit_value_assume_aligned): Likewise.
21196 2015-04-14  Christian Bruel  <christian.bruel@st.com>
21198         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21199         function.
21201 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
21203         PR tree-optimization/63387
21204         * match.pd ((x unord x) | (y unord y) -> (x unord y),
21205         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21207 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
21209         * config/i386/predicates.md (any_QIreg_operand): Rename from
21210         q_regs_operand.  Do not process subregs.
21211         (QIreg_operand): Use QI_REGNO_P predicate.
21212         (ext_QIreg_operand): Ditto.
21213         (ext_register_operand): Ditto.
21214         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21215         (AND splitters): Ditto.
21216         (AND with -65536 splitter): Add SWI48 mode for operand 0.
21217         (AND with -256 splitter): Use any_QIreg_operand predicate and
21218         SWI248 mode for operand 0.
21219         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21220         mode for operand 0.
21221         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21223 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
21225         * doc/plugins.texi: Rewrite first introductory paragraph.
21227 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
21229         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21230         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21232 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
21234         * ipa-profie.c (ipa_profile): Check number of parameters
21235         and possible polymorphic call targets before
21236         devirtualizing.
21238 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
21240         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21241         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21243 2015-04-13  Richard Biener  <rguenther@suse.de>
21245         PR tree-optimization/65204
21246         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21247         takens for bit-CCP.
21249 2015-04-13  Richard Biener  <rguenther@suse.de>
21251         PR target/65660
21252         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21253         and cond_not_taken_branch_cost to 4 and 2.
21254         (bdver2_cost): Likewise.
21255         (bdver3_cost): Likewise.
21256         (bdver4_cost): Likewise.
21258 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
21260         * hash-table.h (hash_table constructor): Add mem stats.
21261         (alloc_entries): Likewise.
21263 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
21265         * ipa-cp.c (ipcp_driver): Relase prev_edge.
21266         * passes.c (execute_one_pass): Only add transform if pass has one.
21268 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
21270         * config/i386/i386.c (ix86_option_override_internal): Don't set
21271         -fprefetch-loop-arrays if optimizing for size.
21273 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
21274             Gerald Pfeifer  <gerald@pfeifer.com>
21276         * doc/contrib.texi (Contributors): Add Martin Jambor and
21277         Michael Matz.
21279 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
21281         * BASE-VER: Set to 6.0.0.
21283         PR tree-optimization/65747
21284         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21285         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21287 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
21289         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21290         sentence.  Improve grammar.
21292 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
21294         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21296 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
21298         PR ipa/65743
21299         * ipa-inline-transform.c (speculation_removed): Remove static var.
21300         (check_speculations): New function.
21301         (clone_inlined_nodes): Do not check spculations.
21302         (inline_call): Call check_speculations.
21303         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21304         consider non-invariants.
21306 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
21307             Martin Liska  <mliska@suse.cz>
21309         PR ipa/65722
21310         * ipa-icf.c (sem_item::compare_cgraph_references): function and
21311         variable can not match.
21312         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21313         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21315 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
21317         PR tree-optimization/65735
21318         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21319         Remove visited_phis argument, add visited_bbs, avoid recursing into the
21320         same bb rather than just into the same phi node.
21321         (thread_through_normal_block): Adjust caller.
21323 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
21325         * doc/contrib.texi (Contributors): Add Ira Rosen.
21327 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
21329         * gcov.c (find_source): Fix miswording in error message.
21330         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21331         (ix86_expand_sse_comi_round): Fix typo in error message.
21333 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
21335         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21337 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
21339         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21341 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
21343         PR target/65710
21344         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21345         Print bad_spills_num and insn_pseudos_num.
21347 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21349         PR target/65694
21350         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21351         when creating +1 values for SImode.
21353 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
21355         PR target/65729
21356         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21357         assert.
21359 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
21360             Iain Sandoe  <iain@codesourcery.com>
21362         PR target/65351
21363         * configure: Regenerate.
21365 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
21367         PR target/65671
21368         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21370 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
21372         * doc/contrib.texi (Contributors): Add John Marino.
21374 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
21376         PR tree-optimization/65709
21377         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21378         TREE_TYPE (TREE_TYPE (t)).
21380 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
21382         PR target/65710
21383         * lra-int.h (lra_bad_spill_regno_start): New.
21384         * lra.c (lra_bad_spill_regno_start): New.
21385         (lra): Set up lra_bad_spill_regno_start.  Set up
21386         lra_constraint_new_regno_start unconditionally.
21387         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21388         spill preferences.
21390 2015-04-09  Marek Polacek  <polacek@redhat.com>
21391             Jakub Jelinek  <jakub@redhat.com>
21393         PR middle-end/65554
21394         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21395         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21396         of STRIP_NOPS.
21398 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
21400         PR rtl-optimization/65693
21401         * combine.c (is_parallel_of_n_reg_sets): Move outside of
21402         #ifndef HAVE_cc0.
21404 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
21406         PR target/65296
21407         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21408         device specs file if "device-specs%s" didn't resolve to a path.
21410 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
21412         PR target/65676
21413         * config/i386/i386.c (fixup_modeless_constant): New.
21414         (ix86_expand_args_builtin): Fixup modeless constant operand.
21415         (ix86_expand_round_builtin): Ditto.
21416         (ix86_expand_special_args_builtin): Ditto.
21417         (ix86_expand_builtin): Ditto.
21419 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
21421         PR target/65693
21422         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21423         any pow2 integer in between 2 and 0x80000000U inclusive.
21425 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
21427         PR rtl-optimization/65693
21428         * combine.c (is_parallel_of_n_reg_sets): Change first argument
21429         from an rtx_insn * to an rtx.
21430         (try_combine): Adjust both callers.  Use it once more.
21432 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
21434         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
21435         (chkp_make_static_const_bounds): Search existing
21436         symbol by assembler name.  Use make_decl_one_only.
21437         (chkp_get_zero_bounds_var): Remove node search which
21438         is now performed in chkp_make_static_const_bounds.
21439         (chkp_get_none_bounds_var): Likewise.
21441 2015-04-08  Michael Witten  <mfwitten@gmail.com>
21443         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
21444         to an example.
21446 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21448         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
21450 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
21452         * doc/extend.texi (__sync Builtins): Fix grammar.
21454 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21456         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
21458 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21460         * varasm.c (emit_local): Move definition of align.
21462 2015-04-08  Julian Brown  <julian@codesourcery.com>
21464         * config/nvptx/mkoffload.c (process): Support variable mapping.
21466 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
21468         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
21469         alpha_links **.
21470         (alpha_write_one_linkage): Correct typo.
21472 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
21474         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21476 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
21478         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21480 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
21482         * tree-chkp.h (chkp_insert_retbnd_call): New.
21483         * tree-chkp.c (chkp_insert_retbnd_call): New.
21484         * ipa-split.c (insert_bndret_call_after): Remove.
21485         (split_function): Use chkp_insert_retbnd_call.
21486         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21487         bounds for instrumented functions.
21489 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
21491         PR ipa/65540
21492         * calls.c (initialize_argument_information): When producing tail
21493         call also turn SSA_NAMES passed by references to original PARM_DECLs
21495 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
21497         PR target/65648
21498         * lra-remat.c (do_remat): Process input and non-input insn
21499         registers separately.
21501 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
21503         PR debug/65678
21504         * valtrack.c (debug_lowpart_subreg): New function.
21505         (dead_debug_insert_temp): Use it.
21507         PR middle-end/65680
21508         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
21509         into signed HOST_WIDE_INT the same as negative bit_offset.
21511 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
21513         * ipa-comdats.c (ipa_comdats): Visit all thunks
21514         to set proper comdat group.
21516 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21518         PR target/65489
21519         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
21520         on constants for NEON VSTRUCT modes.
21522 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
21523             Iain Sandoe  <iain@codesourcery.com>
21525         PR target/65351
21526         * configure: Regenerate.
21528 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21530         PR target/65614
21531         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21532         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21533         that LFD is used to load double constants instead of LFS.  Add
21534         defaults for all costs structures.  Add comments for missing
21535         initialization fields.
21536         (size32_cost): Likewise.
21537         (size64_cost): Likewise.
21538         (rs64a_cost): Likewise.
21539         (mpccore_cost): Likewise.
21540         (ppc403_cost): Likewise.
21541         (ppc405_cost): Likewise.
21542         (ppc440_cost): Likewise.
21543         (ppc476_cost): Likewise.
21544         (ppc601_cost): Likewise.
21545         (ppc603_cost): Likewise.
21546         (ppc604_cost): Likewise.
21547         (ppc604e_cost): Likewise.
21548         (ppc620_cost): Likewise.
21549         (ppc630_cost): Likewise.
21550         (ppccell_cost): Likewise.
21551         (ppc750_cost): Likewise.
21552         (ppc7450_cost): Likewise.
21553         (ppc8540_cost): Likewise.
21554         (ppce300c2c3_cost): Likewise.
21555         (ppce500mc_cost): Likewise.
21556         (ppce500mc64_cost): Likewise.
21557         (ppce5500_cost): Likewise.
21558         (ppce6500_cost): Likewise.
21559         (titan_cost): Likewise.
21560         (power4_cost): Likewise.
21561         (power6_cost): Likewise.
21562         (power7_cost): Likewise.
21563         (power8_cost): Likewise.
21564         (ppca2_cost): Likewise.
21565         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21567         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21568         instead of XXLOR to copy SFmode to clear out dirty bits created
21569         when SFmode denormals are generated.
21570         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21571         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21573 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
21575         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21576         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21577         * config/aarch64/aarch64-tune.md: Regenerate.
21579 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
21581         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21582         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21583         * config/arm/arm-cores.def (exynos-m1): New core.
21584         * config/arm/arm-tune.md: Regenerate.
21585         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21586         * config/arm/bpabi.h: Likewise.
21588 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
21590         * ipa-cp (set_single_call_flag): Remove too
21591         restrictive assert.
21593 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
21595         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21596         GOMP_offload_unregister from the destructor.
21598 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
21600         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21601         flags for instrumentation thunk.
21602         (chkp_produce_thunks): Likewise.
21604 2015-04-05  Martin Liska  <mliska@suse.cz>
21606         PR ipa/65665
21607         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21608         has computed data structure.
21609         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21611 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
21613         * invoke.texi (inline-unit-growth): Increase growth to 20%
21614         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21616 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
21618         PR target/65647
21619         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
21620         value checking.
21621         (lra_rematerialization_iter): New.
21622         * lra.c (lra): Initialize lra_rematerialization_iter.
21623         Stop updating lra_constraint_new_regno_start after switching of
21624         inheritance and rematerialization.
21625         * lra-remat.c (lra_rematerialization_iter): New.
21626         (lra_remat): Add printing pass iteration.  Do rematerialization
21627         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21629 2015-04-04  Richard Biener  <rguenther@suse.de>
21631         PR tree-optimization/64909
21632         PR tree-optimization/65660
21633         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21634         to take a cost vector for scalar iteration cost.
21635         (vect_get_single_scalar_iteration_cost): Likewise.
21636         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21637         Compute the scalar iteration cost into a cost vector.
21638         (vect_get_known_peeling_cost): Use the scalar cost vector to
21639         account for the cost of the peeled iterations.
21640         (vect_estimate_min_profitable_iters): Likewise.
21641         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21642         Likewise.
21644 2015-04-04  Alan Modra  <amodra@gmail.com>
21646         PR target/65576
21647         PR target/65240
21648         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21649         0.0 constant unless TARGET_VSX.
21650         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21651         alternative.
21653 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
21655         PR ipa/65654
21656         * ipa-inline-transform.c (inline_call): Skip sanity check to work
21657         around the ICE
21659 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
21661         PR ipa/65655
21662         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21663         speculative indirect edges to avoid ordering issue.
21665 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
21667         PR ipa/65076
21668         * ipa-inline.c (edge_badness): Add combined size to the denominator.
21670 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
21672         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21673         TYPE_ARTIFICIAL on the .omp_data* types.
21675 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21677         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21678         instrumentation thunks.
21680 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21682         * config/i386/i386.c (ix86_expand_call): Avoid nested
21683         PARALLEL in returned call value.
21685 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21687         * lto-cgraph.c (input_cgraph_1): Always link instrumented
21688         assembler name with original one.
21690 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
21692         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21694 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
21696         Revert parts of r216820.
21697         * config/i386/i386.md (movqi_internal): Correct type calculation
21698         for alternatives 3 and 5.
21700 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
21702         PR preprocessor/61977
21703         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21704         predefine __vector/__bool/__pixel macros nor context sensitive
21705         macros for CLK_ASM.
21706         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21708 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
21710         * config/pa/pa.c (pa_output_move_double): Directly handle register
21711         indexed memory operand.  Simplify handling of scaled register indexed
21712         memory operands.
21714 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21716         PR driver/65444
21717         * config/i386/linux-common.h (MPX_SPEC): New.
21718         (CHKP_SPEC): Add MPX_SPEC.
21719         * doc/invoke.texi (-fcheck-pointer-boudns): Document
21720         possible issues with '-z bndplt' support in linker.
21722 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
21724         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21725         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21726         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21727         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21728         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21730 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
21732         * config/i386/sync.md (UNSPEC_MOVA): Remove.
21733         (atomic_load<mode>): Change operand 0 predicate to
21734         nonimmediate_operand and fix up the destination when needed.
21735         Use UNSPEC_LDA.
21736         (atomic_loaddi_fpu): Use UNSPEC_LDA.
21737         (atomic_store<mode>): Change operand 1 predicate to
21738         nonimmendate_operand and move the source to register when needed.
21739         Use UNSPEC_STA.
21740         (atomic_store<mode>_1): Use UNSPEC_STA.
21741         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21742         Fix moves from memory operand.  Use UNSPEC_STA.
21744 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21746         * expmed.c (strict_volatile_bitfield_p): Check that the access will
21747         not cross a MODESIZE boundary.
21748         (store_bit_field, extract_bit_field): Added assertions in the
21749         strict volatile bitfields code path.
21751 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
21753         PR target/65624
21754         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
21755         Increase args array size by one to avoid buffer overflow.
21757 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
21759         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21760         split_part.
21761         * ipa-inline.c (edge_badness): Add wrapper penalty.
21762         (sum_callers): Move up.
21763         (inline_small_functions): Set single_caller.
21764         * ipa-inline.h (inline_summary): Add single_caller.
21765         * ipa-split.c (split_function): Set split_part.
21766         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
21767         * cgraph.h (cgraph_node): Add split_part.
21769 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
21771         PR target/58945
21772         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
21773         Do not split operands 0 and operands 2 to halfmode.
21774         (atomic_compare_and_swap<mode>): Update for
21775         atomic_compare_and_swap<dwi>_doubleword changes.
21777 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
21779         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
21780         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
21781         no caching is done.
21783 2015-03-31  Martin Liska  <mliska@suse.cz>
21785         PR ipa/65557
21786         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
21787         has already filled up function summary.
21788         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21790 2015-03-31  Richard Biener  <rguenther@suse.de>
21792         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
21793         of types.
21795 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21797         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
21798         nested functions.
21799         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
21800         (s390_asm_output_function_label): Adapt to new signature of
21801         s390_function_num_hotpatch_hw
21802         Optimise the code generating assembler output.
21803         Add comments to assembler file.
21805 2015-03-31  Richard Biener  <rguenther@suse.de>
21807         PR middle-end/65626
21808         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
21809         of the noreturn call so it is last and cleanup_control_flow_bb
21810         can do the CFG part.
21812 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
21814         PR target/65531
21815         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21816         same_comdat_group for external symbols.
21817         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21818         infinite same_comdat_group traversal loop.
21820 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
21822         PR plugins/61176
21823         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21824         automatically to $headers.
21826 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
21828         PR ipa/65610
21829         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21830         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21831         function.
21832         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21833         Use it.
21834         * ipa-prop.c (param_type_may_change_p): Likewise.
21835         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21836         (remove_unused_scope_block_p): Add in_ctor_dtor_block
21837         argument.  Before inlining, preserve
21838         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21839         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
21840         recursive calls.
21841         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21843 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21845         PR ipa/65076
21846         * ipa-inline.c (edge_badness): Base denominator on callee's
21847         grwoth squared.
21849 2015-03-27  Martin Jambor  <mjambor@suse.cz>
21851         PR ipa/65478
21852         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21853         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21854         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21855         node_calling_single_call.
21856         * ipa-cp.c (count_callers): New function.
21857         (set_single_call_flag): Likewise.
21858         (initialize_node_lattices): Count callers and set single_flag_call if
21859         necessary.
21860         (incorporate_penalties): New function.
21861         (good_cloning_opportunity_p): Use it, dump new flags.
21862         (propagate_constants_topo): Set node_within_scc flag if appropriate.
21863         * doc/invoke.texi (ipa-cp-recursion-penalty,
21864         ipa-cp-single-call-pentalty): Document.
21866 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21868         PR ipa/65588
21869         * symtab.c (symtab_node::get_partitioning_class): Register vars
21870         are duplicated.
21871         * varpool.c (symbol_table::output_variables) Do not assemble unefined
21872         decls for non-symbols.
21874 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21876         PR target/65248
21877         * output.h (default_binds_local_p_2): New.
21878         * varasm.c (default_binds_local_p_2): Renamed to ...
21879         (default_binds_local_p_3): This.  Don't return true on protected
21880         data symbol if protected data may be external.
21881         (default_binds_local_p): Use default_binds_local_p_3.
21882         (default_binds_local_p_1): Likewise.
21883         (default_binds_local_p_2): New.
21884         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21885         default_binds_local_p_2 if TARGET_MACHO is undefined.
21887 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
21889         PR target/65593
21890         * config/i386/i386.c (legitimize_pic_address): If base
21891         is SYMBOL_REF or LABEL_REF using %rip addressing, force
21892         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21894 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21896         PR target/65531
21897         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21898         comdat groups.
21900 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21902         PR ipa/65600
21903         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21904         of optimized out indirect call.
21905         (redirect_to_unreachable): Always build symbol table node for
21906         BUILT_IN_UNREACHABLE
21908 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
21910         PR target/65407
21911         * ira-costs.c (record_reg_classes): Process all constraint string
21912         containing 0-9.
21914 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
21916         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21917         memory_operand.
21919         PR target/65052
21920         * config/c6x/constraints.md (S3): New constraint.
21921         * config/c6x/c6x.md (real_jump): Use it.
21923 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21925         PR middle-end/65595
21926         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21927         do redirection if the call is not optimized out.
21929 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
21931         PR target/65495
21932         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21933         (fchkp-check-incomplete-type): Add LTO.
21934         (fchkp-zero-input-bounds-for-main): Likewise.
21935         (fchkp-first-field-has-own-bounds): Likewise.
21936         (fchkp-narrow-bounds): Likewise.
21937         (fchkp-narrow-to-innermost-array): Likewise.
21938         (fchkp-use-static-bounds): Likewise.
21939         (fchkp-use-static-const-bounds): Likewise.
21940         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21942 2015-03-27  Marek Polacek  <polacek@redhat.com>
21944         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21946 2015-03-27  Marek Polacek  <polacek@redhat.com>
21948         PR sanitizer/65583
21949         * ubsan.c (ubsan_create_edge): New function.
21950         (instrument_bool_enum_load): Call it.
21951         (instrument_nonnull_arg): Likewise.
21952         (instrument_nonnull_return): Likewise.
21953         (instrument_object_size): Likewise.
21955 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21957         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21958         auto_vec.
21960 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21962         PR lto/65536
21963         * lto-streamer.h (class lto_location_cache): New.
21964         (struct data_in): Add location_cache.
21965         (lto_input_location): Update prototype.
21966         (stream_input_location_now): New.
21967         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21968         pointer to location.
21969         (stream_input_location): Update.
21970         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21971         (warn_odr): Apply location cache before warning.
21972         (lto_input_location): Update prototype.
21973         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21974         Use stream_input_location_now.
21975         * lto-streamer-in.c (lto_location_cache::current_cache): New static
21976         variable.
21977         (lto_location_cache::cmp_loc): New function.
21978         (lto_location_cache::apply_location_cache): New function.
21979         (lto_location_cache::accept_location_cache): New function.
21980         (lto_location_cache::revert_location_cache): New function.
21981         (lto_location_cache::input_location): New function.
21982         (lto_input_location): Do location caching.
21983         (stream_input_location_now): New function.
21984         (input_eh_region, input_struct_function_base): Use
21985         stream_input_location_now.
21986         (lto_data_in_create): use new.
21987         (lto_data_in_delete): Use delete.
21988         * tree-streamer-in.c (unpack_ts_block_value_fields,
21989         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21990         lto_input_ts_exp_tree_pointers): Update for cached location api.
21992 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21994         PR ipa/65076
21995         * passes.def: Add pass_nothrow.
21996         * ipa-pure-const.c: (pass_data_nothrow): New.
21997         (pass_nothrow): New.
21998         (pass_nothrow::execute): New.
21999         (make_pass_nothrow): New.
22000         * tree-pass.h (make_pass_nothrow): Declare.
22002 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22004         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22005         edge to change by speculation resolution or redirection.
22006         (edge_set_predicate): Likewise.
22007         (inline_summary_t::duplicate): Likewise.
22008         (remap_edge_summaries): Likewise.
22010 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22012         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22013         New macros.
22014         (can_inline_edge_p): Relax option matching for always inline functions.
22016 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
22018         PR target/65561
22019         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22020         Check operand 4 and operand 0 for equality.
22021         (avx512f_vextract<shuffletype>32x4_1_maskm):
22022         Check operand 6 and operand 0 for equality.
22023         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22024         for equality.
22025         (vec_extract_hi_<mode>_maskm): Ditto.
22027 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22029         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22030         dead calls back to live.
22031         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22032         cross check to ...
22033         (cgraph_node::verify_node): ... here; verify only callee edges,
22034         not caller.
22035         * cif-code.def (CILK_SPAWN): New code.
22037 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22039         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22040         (edge_set_predicate): Use it to mark unreachable edges.
22041         (inline_summary_t::duplicate): Remove unnecesary code.
22042         (remap_edge_summaries): Likewise.
22043         (dump_inline_summary): Report contains_cilk_spawn.
22044         (compute_inline_parameters): Compute contains_cilk_spawn.
22045         (inline_read_section, inline_write_summary): Stream
22046         contains_cilk_spawn.
22047         * ipa-inline.c (can_inline_edge_p): Do not touch
22048         DECL_STRUCT_FUNCTION that may not be available;
22049         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22050         remove check for callee_fun->can_throw_non_call_exceptions and
22051         replace it by optimization attribute check; check for flag_exceptions.
22052         * ipa-inline-transform.c (inline_call): Maintain
22053         DECL_FUNCTION_PERSONALITY
22054         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22056 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
22058         PR tree-optimization/65551
22059         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22060         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22062 2015-03-26  Richard Biener  <rguenther@suse.de>
22064         PR middle-end/65555
22065         * tree-cfg.c (verify_gimple_call): Do not require a call to
22066         have no LHS if it wasn't recognized as control altering yet.
22068 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
22070         PR tree-optimization/64715
22071         * passes.def: Add another instance of pass_object_sizes before ccp1.
22072         * tree-object-size.c (pass_object_sizes::execute): In
22073         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22074         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22075         __bos result and the computed constant.  Remove redundant
22076         checks, obsoleted by gimple_call_builtin_p test.
22078         * var-tracking.c (variable_tracking_main_1): Don't track
22079         variables for targetm.no_register_allocation targets.
22081 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
22083         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22084         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22086 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
22088         PR target/65569
22089         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22090         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
22091         0.0 is correctly setup.
22092         (extenddftf2_internal): Likewise.
22094 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
22096         PR tree-optimization/65177
22097         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22098         (bb_in_bbs): New.
22099         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
22100         edges not adjacent on the path to the original code.
22102 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
22104         PR bootstrap/65537
22105         * doc/install.texi (Building a native compiler): Document new
22106         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
22107         configuration assumes that the host supports the linker plugin.
22109 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
22111         PR target/65508
22112         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22113         chain for generated call.
22115 2015-03-25  Richard Biener  <rguenther@suse.de>
22117         * passes.c (pass_manager::execute_early_local_passes): Guard
22118         execution of pass_chkp_instrumentation_passes with
22119         flag_check_pointer_bounds.
22120         (pass_chkp_instrumentation_passes::gate): Likewise.
22122 2015-03-25  Martin Liska  <mliska@suse.cz>
22124         PR tree-optimization/65538
22125         * symbol-summary.h (function_summary::~function_summary):
22126         Relese memory for allocated summaries.
22127         (function_summary::release): New function.
22129 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
22131         PR lto/65515
22132         * lto-streamer-out.c (DFS::worklist): New struct.
22133         (DFS::worklist_vec): New data member.
22134         (DFS::next_dfs_num): Remove.
22135         (DFS::DFS): Rewritten using worklist instead of recursion,
22136         using most of code from DFS::DFS_write_tree.
22137         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22138         pass it to DFS_write_tree calls.
22139         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22140         quick initial checks push it into worklist_vec and return.
22142 2015-03-25  Richard Biener  <rguenther@suse.de>
22144         PR middle-end/65519
22145         * genmatch.c (expr::gen_transform): Re-write to avoid
22146         using gimple_build.
22148 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
22150         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22152 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
22154         * config/arm/arm.opt (print_tune_info): New option.
22155         * config/arm/arm.c (arm_print_tune_info): New function.
22156         (arm_file_start): Call arm_print_tune_info.
22157         * config/arm/arm-protos.h (struct tune_params): Add comment.
22158         * doc/invoke.texi (@item -mprint-tune-info): New item.
22159         (-mtune): mention it in ARM Option Summary.
22161 2015-03-25  DJ Delorie  <dj@redhat.com>
22163         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22164         correct clause.
22166 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
22167             Martin Liska  <mliska@suse.cz>
22169         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22170         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22171         (sem_item::add_type): New function.
22172         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22173         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22174         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22175         (sem_function::equals_wpa): Fix typo.
22176         * ipa-icf.h (sem_item::add_type): New function.
22177         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22178         order.
22180 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
22182         PR tree-optimization/65533
22183         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22184         with swapped operands, call vect_free_slp_tree on
22185         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22186         vector.
22188 2015-03-24  Richard Biener  <rguenther@suse.de>
22190         PR middle-end/65517
22191         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22192         for fixup if necessary.
22194 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
22196         * doc/extend.texi (Function Attributes): Add @cindex entries
22197         for all attributes and regularize their format.  Delete text
22198         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
22199         information about "eightbit_data", "tiny_data", and "model"
22200         variable attributes to the Variable Attributes section.  Fix
22201         some obvious typos and copy-editing issues.
22202         (Variable Attributes, Type Attributes): Likewise add/fix
22203         @cindex entries for all attributes.
22205 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
22207         PR target/65523
22208         * tree-chkp.c (chkp_build_returned_bound): Ignore
22209         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22211 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
22213         PR target/65505
22214         * config/sh/predicates.md (simple_mem_operand,
22215         displacement_mem_operand): Add test for reg.
22216         (short_displacement_mem_operand): Test for displacement_mem_operand
22217         before invoking sh_disp_addr_displacement.
22218         * config/sh/constraints.md (Sdd, Sra): Simplify.
22219         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22220         Remove redundant displacement_mem_operand tests.
22222 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
22224         PR target/65296
22225         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22226         the same -mmcu=MCU more than once.
22228 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
22230         PR bootstrap/65522
22231         * ipa-devirt.c: Remove duplicate demangle.h include.
22233         PR target/65504
22234         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22235         on the pseudo.
22236         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22237         REG_POINTER on *destptr after adjusting it for prologue size.
22239         PR ipa/65521
22240         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22241         ultimate_alias_target ()->order ints instead of
22242         ultimate_alias_target () pointers.
22244 2015-03-23  Richard Biener  <rguenther@suse.de>
22246         PR tree-optimization/65518
22247         * tree-vect-stmts.c (vectorizable_load): Reject single-element
22248         interleaving cases we generate absymal code for.
22250 2015-03-23  Richard Biener  <rguenther@suse.de>
22252         PR tree-optimization/65494
22253         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22254         matches here.
22255         (vect_analyze_slp_instance): But do that here, always and once.
22257 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22259         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22260         adding T or multiplying by T+1 and subracting T.
22262 2015-03-22  Jeff Law  <law@redhat.com>
22264         PR rtl-optimization/64317
22265         * Makefile.in (OBJS): Add gcse-common.c
22266         * gcse.c: Include gcse-common.h
22267         (struct modify_pair_s): Move structure definition to gcse-common.h
22268         (compute_transp): Move function to gcse-common.c.
22269         (canon_list_insert): Similarly.
22270         (record_last_mem_set_info): Break out some code and put it into
22271         gcse-common.c.  Call into the new common code.
22272         (compute_local_properties): Pass additional arguments to compute_transp.
22273         * postreload-gcse.c: Include gcse-common.h and df.h
22274         (modify_mem_list_set, blocks_with_calls): New variables.
22275         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22276         (get_bb_avail_insn): Pass in the expression index too.
22277         (alloc_mem): Allocate memory for the new bitmaps and lists.
22278         (free_mem): Free memory for the new bitmaps and lists.
22279         (insert_expr_in_table): Record a bitmap index for each entry we
22280         add to the table.
22281         (record_last_mem_set_info): Call into common code in gcse-common.c.
22282         (get_bb_avail_insn): If no available insn was found in the requested
22283         BB.  If BB has a single predecessor, see if the expression is
22284         transparent in BB and available in that single predecessor.
22285         (compute_expr_transp): New wrapper for compute_transp.
22286         (eliminate_partially_redundant_load): Pass expression's bitmap_index
22287         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
22288         (gcse_after_reload_main): If there are elements in the hash table,
22289         then compute transparency for all the elements in the hash table.
22290         * gcse-common.h: New file.
22291         * gcse-common.c: New file.
22293 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
22295         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22296         as an adjective.
22297         (System Headers): Likewise.
22298         (Ifdef): Likewise.
22299         (Traditional macros): Likewise.
22300         (Invocation): Likewise.
22301         (Option Index): Likewise.
22302         * doc/cppopts.texi (-M): Likewise.
22303         (-finput-charset): Likewise.
22304         (--help): Likewise.
22305         * doc.invoke.texi (AVR Options): Likewise.
22306         (V850 Options): Likewise.
22308 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
22310         PR ipa/65475
22311         * ipa-devirt.c: Include demangle.h
22312         (odr_type_d): Add field rtti_broken.
22313         (odr_subtypes_equivalent_p): Do not require name to match.
22314         (compare_virtual_tables): Fix typo; if type already has ODR violation,
22315         bypass the tests; be ready for function referneces in vtables that are
22316         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22317         (warn_odr): Give up for nameless types.
22318         (warn_types_mismatch): Report mismatch in mangled names;
22319         report mismatch in anonymous namespaces; look into component types to
22320         give useful error; report when mismatch is dragged in from other ODR
22321         type.
22322         (odr_types_equivalent_p): Match types for being polymorphic; avoid
22323         duplicated diagnostics.
22324         (add_type_duplicate): Reorder checks so more informative ones come
22325         first; fix typo; do not output "the extra base is defined here" when
22326         we did not warn.
22327         (BINFO_N_BASE_BINFOS): Relax sanity check.
22329 2015-03-22  Martin Liska  <mliska@suse.cz>
22330             Jakub Jelinek  <jakub@redhat.com>
22332         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22333         masks that can potentially include a builtin.
22334         (ix86_add_new_builtins): Introduce fast filter for isa values
22335         that cannot trigger builtin inclusion.
22337 2015-03-22  Martin Liska  <mliska@suse.cz>
22339         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22340         (sem_item::update_hash_by_local_refs): Likewise.
22341         (sem_variable::get_hash): Empty line is fixed.
22342         (sem_item_optimizer::execute): Include adding of hash references.
22343         (sem_item_optimizer::update_hash_by_addr_refs): New function.
22344         (sem_item_optimizer::build_hash_based_classes): Use local hash.
22345         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22346         (sem_item::update_hash_by_local_refs): Likewise.
22348 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
22350         PR ipa/65502
22351         * ipa-comdats.c (enqueue_references): Walk through thunks.
22352         (ipa_comdats): Likewise.
22353         (set_comdat_group_1): New function.
22355 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
22357         PR ipa/65475
22358         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22359         non-polymorphic
22361 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
22362             Gerald Pfeifer  <gerald@pfeifer.com>
22364         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22366 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22367             Sandra Loosemore  <sandra@codesourcery.com>
22369         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22370         function parameter declaration.
22371         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22372         Update arguments to nios2_adjust_call_address().
22373         (sibcall_internal): Rename from *sibcall.
22374         (sibcall_value_internal): Rename from *sibcall_value.
22375         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22376         (nios2_large_got_address): Add target temp reg parameter.
22377         (nios2_got_address): Adjust call to nios2_large_got_address, add
22378         force_reg around it.
22379         (nios2_load_pic_address): Add target temp reg parameter, replace call
22380         to nios2_got_address with corresponding code.
22381         (nios2_legitimize_constant_address): Update call to
22382         nios2_load_pic_address.
22383         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22384         to use temp reg for PIC loading purposes.
22385         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22386         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22387         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22389 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
22391         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22392         usage of "the @option{...}".
22393         (-Wopenmp-simd): Likewise.
22394         (-fsanitize-recover): Likewise.
22395         (-fsanitize-undefined-trap-on-error): Likewise.
22396         (-flto): Likewise.
22397         (tracer-dynamic-coverage-feedback): Likewise.
22398         (reorder-block-duplicate-feedback): Likewise.
22399         (loop-unroll-jam-size): Likewise.
22400         (-B): Likewise.
22401         (-I-): Likewise.
22402         (-mabs=legacy): Likewise.
22403         (-mupper-regs-df): Likewise.
22404         (-mupper-regs-sf): Likewise.
22405         (-mpointers-to-nested-functions): Likewise.
22407 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
22409         * doc/extend.texi (Cilk Plus Builtins): Add markup.
22411 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
22413         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22414         additional index entries and cross-references.
22415         (-fchkp-check-incomplete-type): Likewise.
22416         (-fchkp-first-field-has-own-bounds): Likewise.
22417         (-fchkp-narrow-to-innermost-array): Likewise.
22418         (-fchkp-use-fast-string-functions): Likewise.
22419         (-fchkp-use-nochk-string-functions): Likewise.
22420         (-fchkp-use-static-const-bounds): Likewise.
22421         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22422         (-fchkp-instrument-marked-only): Likewise.
22423         (-fchkp-use-wrappers): Likewise.
22424         (-static-libmpx): Likewise.
22425         (-static-libmpxwrappers): Likewise.
22426         * doc/extend.texi (bnd_legacy): Likewise.
22427         (bnd_instrument): Likewise.
22428         (bnd_variable_size): Likewise.
22429         (Pointer Bounds Checker builtins): Likewise.
22431 2015-03-21  Tom de Vries  <tom@codesourcery.com>
22433         PR tree-optimization/65458
22434         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
22435         * cgraph.h (cgraph_node): Add parallelized_function field.
22436         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
22437         (input_overwrite_node): Read parallelized_function field.
22438         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
22439         parallelized_function on cgraph_node for child_fn.
22440         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
22441         Remove include of gt-tree-parloops.h.
22442         (parallelized_functions): Remove static variable.
22443         (parallelized_function_p): Rewrite using parallelized_function field of
22444         cgraph_node.
22445         (create_loop_fn): Remove adding to parallelized_functions.
22446         * Makefile.in (GTFILES): Remove tree-parloops.c
22448 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
22450         PR rtl-optimization/64366
22451         * lra.c (lra_update_insn_regno_info): Consider regs in
22452         CALL_INSN_FUNCTION_USAGE memory.
22454 2015-03-20  Richard Biener  <rguenther@suse.de>
22456         PR middle-end/64715
22457         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
22458         for type comparison and gcc_checking_assert.
22459         (chrec_fold_plus_poly_poly): Likewise.
22460         (chrec_fold_multiply_poly_poly): Likewise.
22461         (chrec_convert_1): Likewise.
22462         * gimplify.c (gimplify_expr): Remove premature folding of
22463         &X + CST to &MEM[&X, CST].
22465 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
22467         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
22468         already is final.
22469         (ipa_inline): Recompute inline_failed codes.
22470         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22471         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22472         CIF_FINAL_ERROR.
22474 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
22476         PR rtl-optimization/60851
22477         * recog.c (constrain_operands): Accept a pseudo register before reload
22478         for LRA enabled targets.
22480 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
22482         PR target/65240
22483         * config/rs6000/predicates.md (easy_fp_constant): Remove special
22484         -ffast-math handling that kept non-0 constants live in the RTL
22485         until reload.  Remove logic testing the number of instructions it
22486         took to create a constant in a GPR that was never used, due to a
22487         test for soft-float earlier.
22488         (memory_fp_constant): Delete, no longer used.
22490         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22491         alternatives for loading non-0 constants into GPRs for hard
22492         floating point that is no longer needed due to changes in
22493         easy_fp_constant.  Add support for loading 0.0 into GPRs.
22494         (mov<mode>_hardfloat32): Likewise.
22495         (mov<mode>_hardfloat64): Likewise.
22496         (mov<mode>_64bit_dm): Likewise.
22497         (movtd_64bit_nodm): Likewise.
22498         (pre-reload move FP constant define_split): Delete define_split,
22499         since it is no longer used.
22500         (extenddftf2_internal): Remove GHF constraints that are not valid
22501         for extenddftf2.
22503 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
22505         PR rtl-optimization/63491
22506         * lra-constraints.c (check_and_process_move): Use src instead of
22507         sreg.  Remove some dead code.
22509 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
22511         PR ipa/65380
22512         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
22513         (sem_variable::merge): Likewise.
22515 2015-03-19  Martin Liska  <mliska@suse.cz>
22517         PR ipa/65465
22518         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
22519         all fields of cgraph_thunk_info.
22521 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
22523         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22524         clone instrumented thunks.
22526 2015-03-19  Richard Biener  <rguenther@suse.de>
22528         Revert
22529         2015-03-10  Richard Biener  <rguenther@suse.de>
22531         PR middle-end/63155
22532         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22533         * tree-ssa-coalesce.c: Include timevar.h.
22534         (attempt_coalesce): Handle graph being NULL.
22535         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22536         Split out abnormal coalescing to ...
22537         (perform_abnormal_coalescing): ... this function.
22538         (coalesce_ssa_name): Perform abnormal coalescing without computing
22539         live/conflict.
22540         (verify_ssa_coalescing_worker): New function.
22541         (verify_ssa_coalescing): Likewise.
22543 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22544             Jakub Jelinek  <jakub@redhat.com>
22546         PR sanitizer/65400
22547         * tsan.c (instrument_gimple): Clear tail call flag on
22548         calls.
22550 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
22552         PR sanitizer/65400
22553         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22554         call in the return bb.
22555         (find_split_points): Add RETURN_BB argument, don't call
22556         find_return_bb.
22557         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
22558         if true append TSAN_FUNC_EXIT internal call after the call to
22559         the split off function.
22560         (execute_split_functions): Call find_return_bb here.
22561         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22562         Adjust find_split_points and split_function calls.
22564 2015-03-18  DJ Delorie  <dj@redhat.com>
22566         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22567         (iorqi3_virt): Likewise.
22569 2015-03-18  Tom de Vries  <tom@codesourcery.com>
22571         * tree-parloops.c (parallelize_loops): Make static.
22572         * tree-parloops.h (parallelize_loops): Remove extern declaration.
22574 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
22576         PR middle-end/64491
22577         Revert:
22578         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
22580         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22581         condition would be removed due to undefined behaviour.
22583 2015-03-18  Martin Liska  <mliska@suse.cz>
22585         PR ipa/65432
22586         * cgraph.c (cgraph_node::get_create): Remove unnecessary
22587         xstrdup_for_dump wrapper.
22588         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22589         sem_item::name.
22590         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22591         with xstrdup_for_dump.
22592         (sem_variable::equals): Likewise.
22593         (sem_item_optimizer::read_section): Use symtab_node::name instead of
22594         sem_item::name.
22595         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22596         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22597         symtab_node::asm_name with xstrdup_for_dump.
22598         (congruence_class::dump): Use symtab_node::name instead of
22599         sem_item::name.
22600         * ipa-icf.h (symtab_node::name): Remove.
22601         (symtab_node::asm_name): Likewise.
22603 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
22605         PR tree-optimization/65450
22606         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22607         function.
22608         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22609         it instead of duplicate_ssa_name_ptr_info.
22611         PR target/65222
22612         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22614 2015-03-18  Richard Biener  <rguenther@suse.de>
22616         * tree-data-ref.h (struct access_matrix): Remove.
22617         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22618         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22619         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22620         (am_vector_index_for_loop): Likewise.
22621         (struct data_reference): Remove access_matrix member.
22622         (DR_ACCESS_MATRIX): Remove.
22623         (lambda_vector_new): Add comment.
22624         (lambda_matrix_new): Use XOBNEWVEC.
22626 2015-03-18  Richard Biener  <rguenther@suse.de>
22628         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22629         (pass_ch::execute): Cleanup the CFG only if we did sth.
22630         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22632 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22634         * expmed.c (synth_mult): Use std::swap instead of manually
22635         swapping algorithms.
22637 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
22639         PR target/65078
22640         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22642 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
22644         PR target/65296
22645         * config/avr/avr.opt (-nodevicelib): New option.
22646         * doc/invoke.texi (AVR Options): Document it.
22647         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22648         libgcc.a, libc.a, libm.a.
22649         * config/avr/specs.h: Same.
22650         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22651         which don't (directly) depend on the device.  Print more help.
22652         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22653         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22654         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22655         case of an error.
22656         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22657         for specs file name.
22658         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22659         * config/avr/avr-mcus.def: Adjust initializers and comments.
22661 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
22663         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22664         DECL_ONE_ONLY to check if decl is one only.
22665         * ipa-split.c (consider_split): Limit splitt of one only functions.
22667 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
22669         PR tree-optimization/65427
22670         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22671         functions.
22672         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22674 2015-03-16  Marek Polacek  <polacek@redhat.com>
22676         * cgraph.h (add_new_static_var): Remove declaration.
22677         * varpool.c (add_new_static_var): Remove function.
22679 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
22681         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22682         instead of vec<tree> * with vec_alloc and release for args.
22683         Adjust all users.
22685         PR middle-end/65431
22686         * omp-low.c (delete_omp_context): Only splay_tree_delete
22687         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22688         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
22690 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22692         PR sanitizer/64820
22693         * cfgexpand.c (align_base): New function.
22694         (alloc_stack_frame_space): Call it.
22695         (expand_stack_vars): Align prev_frame to be sure
22696         data->asan_vec elements aligned properly.
22698 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
22700         PR middle-end/65409
22701         * expr.c (store_field): Do not do a direct block copy if the source is
22702         a PARALLEL with BLKmode.
22704 2015-03-16  Tom de Vries  <tom@codesourcery.com>
22706         PR middle-end/65414
22707         Revert:
22708         2015-03-12  Tom de Vries  <tom@codesourcery.com>
22710         PR rtl-optimization/64895
22711         * lra-lives.c (check_pseudos_live_through_calls): Use
22712         actual_call_used_reg_set instead of call_used_reg_set, if available.
22714 2015-03-16  Alan Modra  <amodra@gmail.com>
22716         PR target/63150
22717         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22718         Modify Z->r bswapdi splitter to use dest in place of scratch.
22719         In r->Z and Z->r bswapdi splitter rename word_high, word_low
22720         to word1, word2 and rearrange logic to suit.
22721         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22722         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
22723         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22724         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
22725         early clobber.
22727 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
22729         PR tree-optimization/65369
22730         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22731         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22732         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22734         PR tree-optimization/65418
22735         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22736         are casts in the first PLUS_EXPR operand, ensure tbias and
22737         *totallowp are in the inner type.
22739         PR rtl-optimization/65401
22740         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22741         argument.  If true, adjust_address_nv of x with big-endian
22742         correction for the mode widening to GET_MODE (y).
22743         (make_field_assignment): Don't do MEM mode widening here.
22744         Use MEM_P instead of GET_CODE == MEM.
22746 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
22748         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22749         the external decls.
22751 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22753         PR target/64600
22754         * config/arm/arm.c (arm_gen_constant, AND case): Use
22755         ARM_SIGN_EXTEND when constructing AND mask.
22757 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22759         * graph.c (print_graph_cfg): Make function names visible and append
22760         parenthesis to it.  Also make groups of basic blocks belonging to the
22761         same function visible.
22763 2015-03-12  Richard Biener  <rguenther@suse.de>
22765         PR middle-end/44563
22766         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
22767         to avoid quadratic behavior with inline expansion splitting blocks.
22768         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
22769         with the successor if the predecessor will be merged with it.
22770         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
22771         entry block with its successor.
22773 2015-03-13  Richard Biener  <rguenther@suse.de>
22775         PR middle-end/44563
22776         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
22777         (cleanup_tree_cfg_1): Do not call it.
22778         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
22779         (fixup_noreturn_call): Mark the stmt as control altering.
22780         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
22781         here.
22782         (pass_data_fixup_cfg): Produce a dump file.
22783         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
22784         (need_noreturn_fixup): New global.
22785         (pass_dominator::execute): Fixup queued noreturn calls.
22786         (optimize_stmt): Queue calls that became noreturn for fixup.
22787         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
22788         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
22789         (el_to_fixup): New global.
22790         (eliminate_dom_walker::before_dom_childre): Queue calls that
22791         became noreturn for fixup.
22792         (eliminate): Fixup queued noreturn calls.
22793         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22794         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
22795         (substitute_and_fold_dom_walker::before_dom_children): Queue
22796         alls that became noreturn for fixup.
22797         (substitute_and_fold): Fixup queued noreturn calls.
22799 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
22801         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
22802         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
22803         are building; for methods check ODR type of class they belong to if
22804         they may lead to a polymorphic call.
22805         (sem_function::compare_polymorphic_p): Be bit smarter about testing
22806         when function may lead to a polymorphic call.
22807         (sem_function::compare_type_list): Remove.
22808         (sem_variable::equals): Update use of compatible_types_p.
22809         (sem_variable::parse_tree_refs): Remove.
22810         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
22811         cdtor.
22812         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22813         matching here.
22814         (func_checker::compatible_polymorphic_types_p): Break out from ...
22815         (unc_checker::compatible_types_p): ... here.
22816         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22817         Declare.
22818         (unc_checker::compatible_types_p): Update.
22819         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22820         Remove.
22822 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22824         PR rtl-optimization/65235
22825         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22826         When first element of vec_concat is const_int, calculate its size
22827         using second element.
22829 2015-03-12  Richard Biener  <rguenther@suse.de>
22831         PR middle-end/65270
22832         * fold-const.c (operand_equal_p): Fix ordering of resetting
22833         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22835 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22837         * config/s390/s390.c (s390_reorg): Move code to output nops after label
22838         to s390_reorg ().
22839         (s390_asm_output_function_label): Likewise.
22840         * config/s390/s390.c (s390_asm_output_function_label):
22841         Fix function label alignment with -mhtopatch.
22842         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22843         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22844         ("nop_2_byte"): New define_insn.
22845         ("nop_4_byte"): Likewise.
22846         ("nop_6_byte"): Likewise.
22847         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22848         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22850 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
22852         PR target/65103
22853         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22854         register.
22856 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
22858         PR target/65044
22859         * toplev.c (process_options): Restrict Pointer Bounds Checker
22860         usage with Address Sanitizer.
22862 2015-03-12  Richard Biener  <rguenther@suse.de>
22864         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22865         to split on.
22866         * omp-low.c (expand_omp_taskreg): Split block before removing
22867         the stmt.
22868         (expand_omp_target): Likewise.
22869         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22870         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22871         stmt to split_block.
22873 2015-03-12  Tom de Vries  <tom@codesourcery.com>
22875         PR rtl-optimization/64895
22876         * lra-lives.c (check_pseudos_live_through_calls): Use
22877         actual_call_used_reg_set instead of call_used_reg_set, if available.
22879 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
22881         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22882         (cgraph_node::remove): Likewise.
22883         (cgraph_node::get_untransformed_body): Likewise.
22884         * varpool.c (varpool_node::remove): Likewise.
22885         (varpool_node::get_constructor): Add sanity check.
22887 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
22889         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22890         old GCC versions.
22891         (-fabi-compat-version): Likewise.
22892         (-ffriend-injection): Likewise.
22893         (-Wdeclaration-after-statement): Likewise.
22894         (-fomit-frame-pointer): Likewise.
22895         (-ftree-coalesce-inlined-vars): Likewise.
22896         (-fvisibility=): Likewise.
22897         * doc/extend.texi (Typeof): Likewise.
22898         (Zero Length): Likewise.
22899         (Escaped Newlines): Likewise.
22900         (Compound Literals): Likewise.
22901         (Function Attributes): Likewise.
22902         (Label Attributes): Likewise.
22903         (Type Attributes): Likewise.
22904         (Function Names): Likewise.
22905         (Other Builtins): Likewise.
22906         (Function Specific Option Pragmas): Likewise.
22907         (C++ Interface): Likewise.
22909 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
22911         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22913 2015-03-11  Marek Polacek  <polacek@redhat.com>
22915         PR tree-optimization/65388
22916         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22918 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
22920         PR target/65296
22921         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22922         * configure: Regenerate.
22923         * config.in: Regenerate.
22924         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22925         [-mn-flash]: Document it.
22926         [__AVR_ARCH__]: Document avrtiny.
22928         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22929         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22930         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22932 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22934         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22936 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22938         PR target/65242
22939         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22940         allow reloads of PLUS in floating point/VSX registers.
22942 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
22944         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22945         crypto_sha256_fast.
22946         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22948 2015-03-11  Richard Biener  <rguenther@suse.de>
22950         PR tree-optimization/65310
22951         * tree-sra.c (build_ref_for_offset): Also preserve larger
22952         alignment.
22954 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
22956         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22958 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
22960         PR target/65368
22961         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22962         new define_expand.
22963         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22965 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
22967         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22968         (sem_function::equals_wpa): ... here.
22970 2015-03-10  Marek Polacek  <polacek@redhat.com>
22971             Jakub Jelinek  <jakub@redhat.com>
22973         PR sanitizer/65367
22974         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22975         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
22976         separately.
22978 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
22980         PR target/65286
22981         * config/rs6000/t-linux: For powerpc64* target set
22982         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22984 2015-03-10  Richard Biener  <rguenther@suse.de>
22986         PR middle-end/44563
22987         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22988         for redirect_all_calls.
22990 2015-03-10  Marek Polacek  <polacek@redhat.com>
22992         * gdbinit.in (pcfun): Define and document.
22994 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
22996         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22997         of libgomp-plugin.h.
22998         (find_target_compiler): Support a case when the path to gcc is
22999         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23000         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23001         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23002         libgomp-plugin.h.
23003         (main): Use GCC_INSTALL_NAME as target_driver_name.
23004         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23005         define.
23006         (mkoffload.o): Remove obsolete include path and defines.
23007         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23009 2015-03-10  Richard Biener  <rguenther@suse.de>
23011         PR middle-end/63155
23012         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23013         * tree-ssa-coalesce.c: Include timevar.h.
23014         (attempt_coalesce): Handle graph being NULL.
23015         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23016         Split out abnormal coalescing to ...
23017         (perform_abnormal_coalescing): ... this function.
23018         (coalesce_ssa_name): Perform abnormal coalescing without computing
23019         live/conflict.
23020         (verify_ssa_coalescing_worker): New function.
23021         (verify_ssa_coalescing): Likewise.
23023 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
23025         PR target/65296
23026         * config.gcc (extra_options) [avr]: Remove.
23027         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23028         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23029         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23031         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23032         (-mmcu=): Add Var and MissingArgError properties.
23033         (-march=): Remove.
23034         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23035         * config/avr/t-multilib: Regenerate.
23036         * config/avr/specs.h: New file.
23037         * config/avr/driver-avr.c: New file.
23038         * config/avr/genopt.sh: Remove file.
23039         * config/avr/avr-tables.opt: Remove file.
23040         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23041         * config/avr/avr-c.c: Same.
23042         * avr-arch.h: Same.
23043         (avr_current_device): Remove proto.
23044         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23045         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23046         (EXTRA_SPEC_FUNCTIONS): Define.
23047         (avr_devicespecs_file): New specs function proto.
23048         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23049         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23050         (avr_current_device): Remove definition and usage.
23051         (avr_set_core_architecture): New static function.
23052         (avr_option_override): Use it.
23053         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23054         (mcu_name): New static array.
23055         (comparator, avr_archs_str, avr_mcus_str): New static functions.
23056         (avr_inform_devices, avr_inform_core_architectures): New functions.
23057         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23058         (avrlibc.h) [WITH_AVRLIBC]: Include.
23059         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23060         (print_mcu): Rewrite from scratch.
23061         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23062         Forward to avr-specific specs defined in device-specs file.
23063         * config/avr/t-avr (driver-avr.o): New rule.
23064         (avr-devices.o): Depend on avr-arch.h.
23065         (avr-mcus): No more depend on avr-tables.opt.
23066         (avr-tables.opt): Remove rule.
23067         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23069 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
23071         * c-family/c.opt (fchkp-use-wrappers): New.
23072         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23073         (chkp_wrap_function): New.
23074         (chkp_build_instrumented_fndecl): Support wrapped
23075         functions.
23076         * doc/invoke.texi (-fcheck-pointer-bounds): New.
23077         (-fchkp-check-incomplete-type): New.
23078         (-fchkp-first-field-has-own-bounds): New.
23079         (-fchkp-narrow-bounds): New.
23080         (-fchkp-narrow-to-innermost-array): New.
23081         (-fchkp-optimize): New.
23082         (-fchkp-use-fast-string-functions): New.
23083         (-fchkp-use-nochk-string-functions): New.
23084         (-fchkp-use-static-bounds): New.
23085         (-fchkp-use-static-const-bounds): New.
23086         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23087         (-fchkp-check-read): New.
23088         (-fchkp-check-write): New.
23089         (-fchkp-store-bounds): New.
23090         (-fchkp-instrument-calls): New.
23091         (-fchkp-instrument-marked-only): New.
23092         (-fchkp-use-wrappers): New.
23093         (-static-libmpx): New.
23094         (-static-libmpxwrappers): New.
23096 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
23098         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23099         (CHKP_SPEC): Add wrappers library.
23100         * c-family/c.opt (static-libmpxwrappers): New.
23102 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
23104         * config/i386/linux-common.h (LIBMPX_LIBS): New.
23105         (LIBMPX_SPEC): New.
23106         (CHKP_SPEC): New.
23107         * gcc.c (CHKP_SPEC): New.
23108         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23109         * c-family/c.opt (static-libmpx): New.
23111 2015-03-10  Richard Biener  <rguenther@suse.de>
23113         PR middle-end/44563
23114         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23115         for compare_type.
23116         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23117         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23118         (cgraph_add_edge_to_call_site_hash): Likewise.
23119         (cgraph_node::get_edge): Likewise.
23120         (cgraph_edge::set_call_stmt): Likewise.
23121         (cgraph_edge::remove_caller): Likewise.
23123 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
23125         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23126         (callee_saved_gpr_regs_size): ... this.
23127         (callee_saved_regs_first_regno): Rename to ...
23128         (callee_saved_first_gpr_regno): ... this.
23129         (callee_saved_regs_last_regno) Rename to ...
23130         (callee_saved_last_gpr_regno): ... this.
23131         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23132         variables.
23133         (nds32_initial_elimination_offset): Likewise.
23134         (nds32_expand_prologue): Likewise.
23135         (nds32_expand_epilogue): Likewise.
23136         (nds32_expand_prologue_v3push): Likewise.
23137         (nds32_expand_epilogue_v3pop): Likewise.
23138         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23139         Adjust renamed variables.
23140         (nds32_output_stack_pop): Likewise.
23142 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23144         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23145         code in comment.
23147 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
23149         PR rtl-optimization/65321
23150         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23151         than shift mode.
23152         * var-tracking.c (use_narrower_mode): Likewise.
23154 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
23156         PR tree-optimization/65355
23157         * varasm.c (notice_global_symbol): Do not produce RTL.
23158         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23159         anchor.
23160         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23161         check for section anchors.
23163 2015-03-10  Alan Modra  <amodra@gmail.com>
23165         PR target/65286
23166         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23167         to be single-arch by default.  Set cpu_is_64bit for powerpc64
23168         given --with-cpu=native.
23169         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23170         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23171         and powerpc64le.
23172         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23173         rs6000_isa_flags rather than TARGET_64BIT.
23175 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
23176             Kaz Kojima  <kkojima@gcc.gnu.org>
23178         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23180 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
23182         PR lto/65361
23183         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23184         on a TREE_BINFO, instead use BINFO_TYPE.
23186 2015-03-09  Richard Biener  <rguenther@suse.de>
23188         PR middle-end/65270
23189         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23190         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23191         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
23192         of that.  When comparing dereferences compare alignment.
23193         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23195 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
23197         * ipa-inline-analysis.c (check_callers): Check
23198         node->can_remove_if_no_direct_calls_and_refs_p.
23199         (growth_likely_positive): Reorganize to call
23200         can_remove_if_no_direct_calls_p later.
23201         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23202         will_be_removed_from_program_if_no_direct_calls_p): Add
23203         will_inline parameter.
23204         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23205         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23206         Handle inliner case correctly.
23208 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23210         PR tree-optimization/63743
23211         * cfgexpand.c (reorder_operands): Also reorder if only second operand
23212         had its definition forwarded by TER.
23214 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
23216         PR lto/65316
23217         * ipa-utils.h (types_odr_comparable): Add strict argument.
23218         * ipa-devirt.c: Fix whitespace;
23219         (odr_hasher): Remove.
23220         (odr_name_hasher, odr_vtable_hasher): New hashers.
23221         (can_be_name_hashed_p): New predicate.
23222         (hash_type_name): remove.
23223         (hash_odr_name): New.
23224         (odr_name_hasher::hash): new.
23225         (can_be_vtable_hashed_p): New.
23226         (hash_odr_vtable): New.
23227         (odr_vtable_hasher::hash): New.
23228         (types_same_for_odr): Add strict parameter.
23229         (types_odr_comparable): Likewise.
23230         (odr_name_hasher::equal): New.
23231         (odr_vtable_hasher::equal): New.
23232         (odr_name_hasher::remove): New.
23233         (odr_hash_type): Change to hash_table<odr_name_hasher>.
23234         (odr_vtable_hash_type): New.
23235         (odr_vtable_hash): New.
23236         (odr_subtypes_equivalent_p): Do strict comparsion.
23237         (add_type_duplicate): Merge type names; cleanup; avoid type
23238         duplicates.
23239         (register_odr_type): Initialize vtable hash.
23240         (build_type_inheritance_graph): Likewise
23241         (get_odr_type): Reorg to use two hashes.
23242         (dump_possible_polymorphic_call_targets): Move sanity check after debug
23243         output.
23244         (ipa_devirt): Dump type_inheritance_graph.
23245         (types_same_for_odr): Add strict mode.
23247 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
23249         PR ipa/65334
23250         * cgraph.h (symtab_node): Add definition_alignment,
23251         can_increase_alignment_p and increase_alignment.
23252         * symtab.c (symtab_node::can_increase_alignment_p,
23253         increase_alignment_1, symtab_node::increase_alignment,
23254         symtab_node::definition_alignment): New.
23255         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23256         can_increase_alignment_p.
23257         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23258         * tree-vect-stmts.c (ensure_base_align): Likewise.
23259         * varasm.c (function_section_1): Use definition_alignment.
23260         (assemble_start_function): Likewise.
23261         (emit_local): likewise.
23262         (build_constant_desc): Likewsie.
23263         (output_constant_def_contents): Likewise.
23264         (place_block_symbol): Likewise.
23265         (output_object_block): Likewise.
23267 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
23269         PR ipa/65316
23270         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23271         when outputting debug.
23273 2015-03-07  Marek Polacek  <polacek@redhat.com>
23274             Martin Uecker  <uecker@eecs.berkeley.edu>
23276         PR sanitizer/65280
23277         * doc/invoke.texi: Update description of -fsanitize=bounds.
23279 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
23281         * tree-ssa-phiopt.c (neg_replacement): Remove.
23282         (tree_ssa_phiopt_worker): Remove negate optimization.
23284 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
23286         PR ipa/65302
23287         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23289 2015-03-06  Richard Biener  <rguenther@suse.de>
23291         PR middle-end/64928
23292         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23293         and liveout_obstack members.
23294         (calculate_live_on_exit): Remove.
23295         (calculate_live_ranges): Change declaration.
23296         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23297         (new_tree_live_info): Adjust.
23298         (calculate_live_ranges): Delete livein when not wanted.
23299         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23300         Deal with partly deleted live info.
23301         (loe_visit_block): Remove temporary bitmap by using
23302         bitmap_ior_and_compl_into.
23303         (live_worklist): Adjust accordingly.
23304         (calculate_live_on_exit): Make static.
23305         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23306         we do not need livein.
23308 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
23310         * real.c (real_from_string): Fix typo in assertion.
23312 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
23314         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23315         the patch.
23317 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
23319         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23321 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
23323         PR target/64342
23324         * lra-assigns.c (find_hard_regno_for): Rename to
23325         find_hard_regno_for_1.  Add a new parameter.
23326         (find_hard_regno_for): New function using find_hard_regno_for_1.
23328 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23330         PR rtl-optimization/65067
23331         * expmed.c (store_bit_field, extract_bit_field): Reworked the
23332         strict volatile bitfield handling.
23334 2015-03-05  Martin Liska  <mliska@suse.cz>
23336         PR ipa/65318
23337         * ipa-icf.c (sem_variable::equals): Compare variables types.
23339 2015-03-05  Richard Henderson  <rth@redhat.com>
23341         PR target/65121
23342         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23343         correctly check weak symbol binding.
23345 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
23347         PR middle-end/65315
23348         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23349         needed alignment.
23351 2015-03-05  Martin Liska  <mliska@suse.cz>
23353         * ipa-inline.c (inline_small_functions): Set default value to
23354         prevent warning during bootstrap.
23355         * tree.h: Add pragma guard that ignores false positives during
23356         bootstrap.
23358 2015-03-05  Richard Biener  <rguenther@suse.de>
23360         PR tree-optimization/65310
23361         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23362         Properly preserve alignment of the base of the access.
23364 2015-03-05  Richard Biener  <rguenther@suse.de>
23366         PR ipa/65270
23367         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23368         Compare dependence info.
23370 2015-03-05  Richard Biener  <rguenther@suse.de>
23372         PR middle-end/65233
23373         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23374         tree-into-ssa.h.
23375         (walk_ssa_copies): Revert last chage.  Instead do not walk
23376         SSA names registered for SSA update.
23378 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
23380         PR ipa/65270
23381         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23382         vtable references for their containing type.
23383         (sem_function::equals_wpa): Compare TYPE_RESTRICT
23384         and type attributes.
23386 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
23388         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23389         before negating it.
23390         * stor-layout.c (finalize_record_size): Revert latest change.
23392 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
23394         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23396 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
23398         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23399         for correct comdat handling.
23400         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23401         Likewise.
23402         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23403         (used_from_object_file_p_worker): Remove.
23404         (cgraph_node::only_called_directly_or_alised): Add
23405         used_from_object_file_p.
23406         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23407         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23408         can_remove_if_no_direct_calls_and_refs_p.
23410 2015-03-04  Nick Clifton  <nickc@redhat.com>
23412         * config/rl78/rl78.h (enum reg_class): Remove real registers from
23413         General register class.
23414         * config/rl78/rl78-real.md: Replace general register constraints
23415         with real+virtual register constraints.
23417 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23419         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23420         from checking for -mhtm option.
23422 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
23424         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23425         (struct ipa_sra_check_caller_data): Add has_thunk field.
23426         (ipa_sra_check_caller): Check for thunk.
23427         (ipa_sra_preliminary_function_checks): Give up on function with
23428         thunks.
23429         (ipa_early_sra): Use call_for_symbol_and_aliases.
23431 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
23433         PR target/65249
23434         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
23435         called for __stack_chk_guard symbol.
23437 2015-03-03  DJ Delorie  <dj@redhat.com>
23439         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
23440         inc/dec.
23441         (*addhi3_real): Likewise.
23442         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
23443         pattern to match incrementing memory.
23444         * config/rl78/predicates.md (rl78_1_2_operand): New.
23445         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
23446         it's the same and only mem.
23447         (rl78_alloc_physical_registers_op2): If there's effectively only
23448         one MEM, transcode it into HL.
23449         (rl78_far_p): Reject addresses that aren't legitimate.
23451 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23453         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
23454         negating it.
23456         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
23458 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
23460         Implement call0 ABI for xtensa
23461         * config/xtensa/constraints.md ("a" constraint): Include stack
23462         pointer in case of call0 ABI.
23463         ("q" constraint): Make empty in case of call0 ABI.
23464         ("D" constraint): Include stack pointer in case of call0 ABI.
23465         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
23466         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
23467         prototypes.
23468         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
23469         variable.
23470         (xtensa_regno_to_class): Make it a local variable in the
23471         function xtensa_regno_to_class.
23472         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
23473         macro, function prototype and implementation.
23474         (reg_nonleaf_alloc_order): Make it a local variable in the
23475         function order_regs_for_local_alloc.
23476         (xtensa_conditional_register_usage): New function.
23477         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23478         (xtensa_valid_move): Allow direct moves to stack pointer
23479         register in call0 ABI.
23480         (xtensa_setup_frame_addresses): Only spill register windows in
23481         windowed ABI.
23482         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23483         call0 ABI respectively.
23484         (xtensa_function_arg_1): Only mark a7 register for copying in
23485         windowed ABI.
23486         (xtensa_call_save_reg): New function.
23487         (compute_frame_size): Add space for callee saved register
23488         storage to the frame size in call0 ABI.
23489         (xtensa_expand_prologue): Generate code to set up stack frame
23490         and save callee-saved registers in call0 ABI.
23491         (xtensa_expand_epilogue): New function.
23492         (xtensa_set_return_address): New function.
23493         (xtensa_return_addr): Calculate return address in call0 ABI.
23494         (xtensa_builtin_saveregs): Only mark a7 register for copying and
23495         emit copying code in windowed ABI.
23496         (order_regs_for_local_alloc): Add preferred register allocation
23497         order for non-leaf function in call0 ABI.
23498         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23499         (xtensa_asm_trampoline_template): Add trampoline generation for
23500         call0 ABI.
23501         (xtensa_trampoline_init): Add trampoline initialization for
23502         call0 ABI.
23503         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
23504         functions.
23505         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
23506         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
23507         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
23508         ABI call-used registers.
23509         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
23510         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
23511         call0 ABI.
23512         (REG_CLASS_CONTENTS): Include all registers into the preferred
23513         reload registers set, adjust the set in the
23514         xtensa_conditional_register_usage.
23515         (xtensa_regno_to_class): Drop variable declaration.
23516         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
23517         function.
23518         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
23519         respectively.
23520         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
23521         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
23522         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
23523         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23524         location in call0 ABI.
23525         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23526         stack adjustment size when handling exception.
23527         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23528         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23529         definitions.
23530         ("return" pattern): Generate ret.n/ret in call0 ABI.
23531         ("epilogue" pattern): Expand epilogue.
23532         ("nonlocal_goto" pattern): Use default in call0 ABI.
23533         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23534         emit eh_set_a0_* depending on ABI.
23535         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23536         ("eh_set_a0_call0", "blockage"): New patterns.
23538 2015-03-03  Martin Liska  <mliska@suse.cz>
23540         PR ipa/65287
23541         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23543 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23545         PR 65138/target
23546         * config/rs6000/rs6000-tables.opt: Regenerate table.
23548 2015-03-03  Renlin Li  <renlin.li@arm.com>
23550         * doc/md.texi (@item ^): Change ? into ^.
23552 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
23554         * doc/tm.texi: Regenerated.
23556 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
23558         * builtins.c (expand_builtin_return_addr): Add
23559         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23560         surrounding #ifdef.
23561         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23562         definition to 1.
23563         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23564         Likewise.
23565         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23566         undefined.
23567         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23568         paragraph.
23570 2015-03-03  Martin Jambor  <mjambor@suse.cz>
23571             Eric Botcazou  <ebotcazou@adacore.com>
23573         * tree-sra.c (ipa_sra_check_caller_data): New type.
23574         (has_caller_p): Removed.
23575         (ipa_sra_check_caller): New function.
23576         (ipa_sra_preliminary_function_checks): Use it.
23578 2015-03-03  Martin Liska  <mliska@suse.cz>
23580         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23581         instead of if branch.
23583 2015-03-03  Martin Liska  <mliska@suse.cz>
23585         PR ipa/65282
23586         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23588 2015-03-23  Jeff Law  <law@redhat.com>
23590         PR tree-optimization/65241
23591         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23592         hash table if INSERT is true.
23594 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
23596         PR target/65296
23597         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23599 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
23601         PR target/64331
23602         * config/avr/avr.c (context.h, tree-pass.h): Include them.
23603         (avr_pass_data_recompute_notes): New static variable.
23604         (avr_pass_recompute_notes): New class.
23605         (avr_register_passes): New static function.
23606         (avr_option_override): Call it.
23608 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
23610         Fix various problems with specs file generation.
23612         PR target/65296
23613         * config.gcc (extra_gcc_objs) [avr]: Remove.
23614         * config/avr/driver-avr.c: Remove file.
23615         * config/avr/t-avr (driver-avr.o): Remove rule.
23616         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23617         INCLUDES to build.  Depend on TM_H.
23618         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
23619         build warnings.  Fix non-matching types and non-existing %-codes.
23620         (tm.h): Include.
23621         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23622         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23623         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23624         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23625         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23626         (LIBGCC_SPEC): Remove definitions.
23628 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23630         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23631         to create a register in testing mode.
23633 2015-03-03  Martin Liska  <mliska@suse.cz>
23634             Jan Hubicka  <hubicka@ucw.cz>
23636         PR ipa/65263
23637         * cgraph.c (cgraph_node::has_thunk_p): New function.
23638         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23639         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23640         (sem_function::merge): Assert is changed.
23642 2015-03-03  Martin Liska  <mliska@suse.cz>
23643             Martin Jambor  <mjambor@suse.cz>
23645         PR ipa/65087
23646         * ipa-icf.c (sem_item_optimizer::execute): Change function
23647         return value to boolean.
23648         (sem_item_optimizer::merge_classes): Likewise.
23649         (ipa_icf_driver): Return TODO_remove_functions in case there's
23650         a merge operation processed.
23651         * ipa-icf.h: Change function return value to boolean.
23653 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23655         PR 65138/target
23656         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23657         processor type for 64-bit little endian PowerPC.
23659         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23660         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
23661         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
23662         printing built-in mask so it does not pass NULL pointers.
23664         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23665         -mcpu=powerpc64le.
23667 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
23669         PR target/58158
23670         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23671         !ISA_HAS_FP_CONDMOVE.
23673 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
23675         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23676         reload_completed.
23678 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
23680         * doc/invoke.texi (Options for Code Generation Conventions):
23681         Fix URL of DSO paper.
23683 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
23685         PR ipa/65130
23686         * ipa-inline.c (check_callers): Looks for recursion.
23687         (inline_to_all_callers): Give up on uninlinable or recursive edges.
23688         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23689         summary of inline clones.
23690         (do_estimate_growth_1): Fix recursion check.
23692 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
23694         PR ipa/64988
23695         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23696         comdat groups.
23698 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
23699             Aldy Hernandez  <aldyh@redhat.com>
23701         PR lto/65276
23702         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23703         when checking TYPE_BINFO.
23705 2015-03-02  Richard Biener  <rguenther@suse.de>
23707         PR ipa/65270
23708         * ipa-icf-gimple.c: Include builtins.h.
23709         (func_checker::compare_memory_operand): Compare base alignment.
23711 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23713         PR target/65184
23714         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23715         are never passed by reference.
23717 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23719         PR target/65183
23720         * tree-chkp.c (chkp_check_lower): Don't check against
23721         zero bounds for already instrumented functions.
23722         (chkp_check_upper): Likewise.
23723         (chkp_fini): Clean pass local data to avoid wrong reusage.
23725 2015-02-28  Martin Liska  <mliska@suse.cz>
23726             Jan Hubicka  <hubicka@ucw.cz>
23728         * ipa-icf.c (sem_variable::equals): Improve debug output;
23729         get variable constructor.
23730         (sem_variable::parse): Do not filter out too early; give up on
23731         volatile and register vars.
23732         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23733         variables.
23734         * ipa-icf.h (sem_variable::init): Do not set ctor.
23735         (sem_variable::ctor): Remove.
23737 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
23739         PR middle-end/65233
23740         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23742 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23744         * ipa-icf.c: Include stor-layout.h
23745         (sem_function::compare_cgraph_references): Rename to ...
23746         (sem_item::compare_cgraph_references): ... this one.
23747         (sem_variable::equals_wpa): New function
23748         (sem_variable::equals): Do not check stuff already verified by
23749         equals_wpa.
23750         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23751         * ipa-icf.h (sem_item): Add compare_cgraph_references.
23752         (sem_function): Remove compare_cgraph_references.
23753         (sem_variable): Turns equals_wpa into non-inline.
23755 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23757         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
23758         (sem_item::add_expr): New function.
23759         (sem_function::hash_stmt): Handle operands of most statements.
23760         (sem_variable::get_hash): Hash the actual constructor.
23761         * ipa-icf.h (sem_item): Add add_expr.
23762         (sem_function): Update prototype of hash_stmt
23764 2015-02-28  Martin Liska  <mliska@suse.cz>
23765             Jan Hubicka  <hubicka@ucw.cz>
23767         PR ipa/65245
23768         * ipa-icf-gimple.c (func_checker::compare_function_decl):
23769         Remove.
23770         (func_checker::compare_variable_decl): Skip symtab vars.
23771         (func_checker::compare_cst_or_decl): Update.
23772         * ipa-icf.c (sem_function::parse): Do not consider aliases.
23773         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
23774         use correct symtab predicates.
23775         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
23776         (sem_variable::parse):  Update comment.
23777         (sem_item_optimizer::build_graph): Consider ultimate aliases
23778         for references.
23780 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23782         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
23783         of OBJ_TYPE_REF.
23785 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23787         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
23788         (sem_variable::merge) Likewise.
23790 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23792         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
23793         target; also match flag_ipa_devirt.
23795 2015-03-01  Martin Liska  <mliska@suse.cz>
23796             Jan Hubicka  <hubicka@ucw.cz>
23798         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
23799         Validate variable alignment.
23800         * ipa-icf.c (sem_function::equals_private): Be more precise
23801         about non-common function attributes.
23802         (sem_variable::equals): Likewise.
23804 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23806         PR ipa/65237
23807         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
23808         across COMDAT group boundary.
23810 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23812         PR ipa/65232
23813         * ipa-icf.c (clear_decl_rtl): New function.
23814         (sem_function::merge): Clear RTL before forming alias.
23815         (sem_variable::merge): Clear RTL before forming alias.
23817 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23819         PR ipa/65236
23820         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23822 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
23824         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23825         to neon_to_gp<q>.
23827 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
23829         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23830         a typo in the description.
23832 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
23834         PR target/64317
23835         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23836         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23837         * lra-constraints.c: Include "params.h".
23838         (EBB_PROBABILITY_CUTOFF): Use
23839         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23840         (lra_inheritance): Use '<' instead of '<=' for
23841         EBB_PROBABILITY_CUTOFF.
23842         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23843         Document change.
23845 2015-02-27  Martin Liska  <mliska@suse.cz>
23847         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23848         vector length condition.
23850 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
23852         * doc/extend.texi (x86 transactional memory intrinsics):
23853         Reorganize discussion of _xbegin.  Clarify that the return
23854         value is a bit mask.  Expand example and move to end of section.
23856 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
23857             Aldy Hernandez  <aldyh@redhat.com>
23859         PR rtl-optimization/65220
23860         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23862 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
23864         PR target/65032
23865         * lra-remat.c (update_scratch_ops): New.
23866         (do_remat): Call it.
23867         * lra.c (lra_register_new_scratch_op): New. Take code from ...
23868         (remove_scratches): ... here.
23869         * lra-int.h (lra_register_new_scratch_op): New prototype.
23871 2015-02-27  Marek Polacek  <polacek@redhat.com>
23873         PR c/65040
23874         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23875         -Wformat-signedness anymore.
23877 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23879         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23880         function.
23881         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23883 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23885         * config/s390/s390.c (enum s390_builtin):
23886         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23887         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23888         (s390_init_builtins): Generate new builtin functions.
23889         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23890         (s390_sfpc, s390_efpc): New pattern definitions.
23892 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23894         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23895         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23896         (s390_builtin_decls): New array.
23897         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23898         (s390_builtin_decl): New function.
23899         (TARGET_BUILTIN_DECL): Define macro.
23901 2015-02-27  Richard Biener  <rguenther@suse.de>
23903         PR middle-end/63175
23904         * builtins.c (get_object_alignment_2): Make sure to re-apply
23905         the ANDed mask after recursing to its operand gets us a new
23906         misalignment bit position.
23908 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
23909             Martin Liska  <mliska@suse.cz>
23911         PR bootstrap/65150
23912         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23913         Use address_matters_p.
23914         (redirect_all_callers, set_addressable): New functions.
23915         (sem_function::merge): Reorganize and fix merging issues.
23916         (sem_variable::merge): Likewise.
23917         (sem_variable::compare_sections): Remove.
23918         * common.opt (fmerge-all-constants, fmerge-constants): Remove
23919         Optimization flag.
23920         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23921         redirect them.
23922         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23923         decl is used.
23924         (address_matters_1): New function.
23925         (symtab_node::address_matters_p): New function.
23926         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23927         check for merged flag.
23928         * cgraph.h (address_matters_p): Declare.
23929         (symtab_node::address_taken_from_non_vtable_p): Remove.
23930         (symtab_node::address_can_be_compared_p): New method.
23931         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23932         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23933         Remove.
23934         (comdat_can_be_unshared_p_1) Use address_matters_p.
23935         (update_vtable_references): Fix formating.
23936         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23937         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23938         * cgraphclones.c: Preserve merged and icf_merged flags.
23940 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
23942         * doc/extend.texi (Function Attributes): Fix spelling and typos.
23943         (Label Attributes): Likewise.
23944         (Cilk Plus Builtins): Likewise.
23945         (ARC SIMD Built-in Functions): Likewise.
23946         (ARM C Language Extensions (ACLE)): Likewise.
23947         (PowerPC Built-in Functions): Likewise.
23948         (PowerPC Hardware Transactional Memory Built-in Functions):
23949         Likewise.
23951 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
23953         PR tree-optimization/65216
23954         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23955         new stmt and new SSA_NAME for lhs whenever the arguments have
23956         changed and weren't just swapped.  Fix comment typo.
23958         PR tree-optimization/65215
23959         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23960         for PDP endian targets.
23961         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23962         Fix up formatting issues.
23963         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
23964         size is smaller than the original, adjust MEM_REF offset by the
23965         difference of sizes.  Use is_gimple_mem_ref_addr instead of
23966         is_gimple_min_invariant test to avoid adding address temporaries.
23968 2015-02-26  Martin Liska  <mliska@suse.cz>
23969             Jan Hubicka  <hubicka@ucw.cz>
23971         PR ipa/64693
23972         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23973         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23974         (sem_item_optimizer::process_cong_reduction): Include division by
23975         sensitive references.
23976         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23977         * ipa-ref.c (ipa_ref::address_matters_p): New function.
23978         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23980 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
23982         PR target/65192
23983         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23984         Remove.
23985         * config/avr/avr.c: Same.
23986         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23987         Refuse any constant address not in 0..0xbf.
23988         * config/avr/avr.md (*mov<mode>, *movsf): Remove
23989         tiny_valid_direct_memory_access_range from insn conditions.
23990         (mov<mode>): Don't special-case expansion of avrtiny addresses.
23992 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
23994         PR target/61142
23995         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23996         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23997         * config/sh/predicates.md (const_logical_operand): New predicate.
23998         * config/sh/sh.md: Add new peephole2 patterns.
24000 2015-02-26  Marek Polacek  <polacek@redhat.com>
24002         PR ipa/65008
24003         * ipa-inline.c (early_inliner): Recompute inline parameters.
24005 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24007         PR target/65171
24008         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24009         instructions with TImode operands are included in the analysis.
24011 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
24013         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24014         of an EDGE_FSM_THREAD.
24016 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24018         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24020 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
24022         PR debug/46102
24023         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24025 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
24027         PR tree-optimization/65048
24028         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24029         (thread_through_all_blocks): Call valid_jump_thread_path.
24030         Remove invalid FSM jump-thread paths.
24032 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
24034         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24035         (ipa_write_optimization_summaries): Likewise.
24036         * tree-streamer.h: Include data-streamer.h.
24037         (streamer_mode_table): Declare extern variable.
24038         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24039         * lto-streamer-out.c (lto_output_init_mode_table,
24040         lto_write_mode_table): New functions.
24041         (produce_asm_for_decls): Call lto_write_mode_table when streaming
24042         offloading LTO.
24043         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24044         (lto_create_simple_input_block): Add mode_table argument to the
24045         lto_input_block constructors.
24046         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24047         Likewise.
24048         * data-streamer-in.c (string_for_index): Likewise.
24049         * ipa-inline-analysis.c (inline_read_section): Likewise.
24050         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24051         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24052         * lto-streamer-in.c (lto_read_body_or_constructor,
24053         lto_input_toplevel_asms): Likewise.
24054         (lto_input_mode_table): New function.
24055         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24056         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24057         Use bp_pack_machine_mode.
24058         * real.h (struct real_format): Add name field.
24059         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24060         (class lto_input_block): Add mode_table member.
24061         (lto_input_block::lto_input_block): Add mode_table_ argument,
24062         initialize mode_table.
24063         (struct lto_file_decl_data): Add mode_table field.
24064         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24065         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24066         unpack_ts_decl_common_value_fields,
24067         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24068         * tree-streamer.c (streamer_mode_table): New variable.
24069         * real.c (ieee_single_format, mips_single_format,
24070         motorola_single_format, spu_single_format, ieee_double_format,
24071         mips_double_format, motorola_double_format,
24072         ieee_extended_motorola_format, ieee_extended_intel_96_format,
24073         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24074         ibm_extended_format, mips_extended_format, ieee_quad_format,
24075         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24076         decimal_single_format, decimal_double_format, decimal_quad_format,
24077         ieee_half_format, arm_half_format, real_internal_format): Add name
24078         field.
24079         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24081 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
24083         PR target/65161
24084         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24085         reordering for selective scheduling.
24087 2015-02-26  Terry Guo  <terry.guo@arm.com>
24089         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24090         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24091         (arm_arch_no_volatile_ce): Declare new global variable.
24092         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24093         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24094         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24095         (TARGET_NO_VOLATILE_CE): New macro.
24096         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24097         volatile memory access in IT block
24099 2015-02-25  Kai Tietz  <ktietz@redhat.com>
24101         PR tree-optimization/61917
24102         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24103         that reduc_def_stmt is null.
24105 2015-02-25  Martin Liska  <mliska@suse.cz>
24107         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24108         hard register variables.
24110 2015-02-25  Kai Tietz  <ktietz@redhat.com>
24112         PR target/64212
24113         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24114         (symtab::noninterposable_alias): Likewise.
24116 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
24118         PR target/65167
24119         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24120         bounds registers.
24121         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24123 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
24125         PR target/64997
24126         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24127         as split condition; force split via '#' in output pattern.
24129 2015-02-25  Richard Biener  <rguenther@suse.de>
24130             Kai Tietz  <ktietz@redhat.com>
24132         PR tree-optimization/61917
24133         * tree-vect-loop.c (vectorizable_reduction): Allow
24134         vect_internal_def without reduction to exit graceful.
24136 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
24138         PR target/65196
24139         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24140         only with NONDEBUG_INSN_P.
24142 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
24144         Use variadic macros with avr-log.c.
24146         * config/avr/avr-protos.h (avr_vdump): New prototype.
24147         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24148         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24149         * config/avr/avr-log.c: Adjust comments.
24150         (avr_vdump): New function.
24151         (avr_vadump): Pass caller as 2nd argument instead of format string.
24152         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24153         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24155 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
24157         PR lto/64374
24158         * target.def (target_option_stream_in): New target hook.
24159         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24160         targetm.target_option.post_stream_in if non-NULL.
24161         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24162         * doc/tm.texi: Updated.
24163         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24164         function.
24165         (TARGET_OPTION_POST_STREAM_IN): Redefine.
24167 2015-02-24  Jeff Law  <law@redhat.com>
24169         PR target/65117
24170         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24171         of operand 0 and operand 2.
24172         (zero_cost_loop_end, loop_end): Similarly.
24174 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
24176         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24177         CXX_MEM_STAT_INFO.
24179 2015-02-24  DJ Delorie  <dj@redhat.com>
24181         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24182         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24183         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24184         instead of hardcoding SImode.
24186 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
24188         * omp-low.c (create_omp_child_function): Tag entrypoint
24189         functions with a special attribute.
24191 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24193         PR target/65058
24194         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24196 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
24198         PR rtl-optimization/65123
24199         * lra-remat.c (operand_to_remat): Check hard regs in insn
24200         definition too.
24202 2015-02-24  Nick Clifton  <nickc@redhat.com>
24204         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24205         to the assembler.
24207 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
24209         PR libgomp/64625
24210         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24211         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24212         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24213         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24214         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24215         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24216         (BUILT_IN_GOACC_PARALLEL): Specify as
24217         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24218         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24219         * builtin-types.def
24220         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24221         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24222         Remove function types.
24223         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24224         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24225         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24226         New function types.
24228 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
24230         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24232 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
24234         PR tree-optimization/65170
24235         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24236         if val[1] < 0, clear also val[2] and return 3.
24238 2015-02-24  Alan Modra  <amodra@gmail.com>
24240         PR target/65172
24241         * config/rs6000/rs6000.c (get_memref_parts): Only return true
24242         when *base is a reg.  Handle nested plus addresses.  Simplify
24243         pre_modify test.
24245 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
24247         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24248         use natural alignment when optimizing for size.
24250 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
24252         PR target/65153
24253         * config/sh/sh.md (movsicc_true+3): Remove peephole.
24254         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24255         * config/sh/sh.c (replace_n_hard_rtx): Remove.
24257 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
24259         PR fortran/63427
24260         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24261         too big for a wide_int.  Implement missing wrapping operation.
24263 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
24265         PR target/65163
24266         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24267         instead of const_int 4294901760.
24269 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
24271         * config/avr/t-avr: Fix typo in comment.
24273 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
24275         * doc/rtl.texi (fma): Clarify documentation.
24277 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
24279         PR debug/58123
24280         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24281         over input_location.
24283 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
24285         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24286         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24287         restrict alignments to absolute_biggest_alignment.
24288         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24289         Define.
24290         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24291         * doc/tm.texi: Regenerate.
24292         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24294 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
24296         PR target/64172
24297         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24299 2015-02-20  Richard Biener  <rguenther@suse.de>
24301         PR tree-optimization/65136
24302         * tree-ssa-propagate.c: Include cfgloop.h.
24303         (replace_phi_args_in): Avoid replacing loop latch edge PHI
24304         arguments with constants.
24306 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
24307             Martin Liska  <mliska@suse.cz>
24309         PR target/63892
24310         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24311         don't try to create_thunk if stdarg_p.  If
24312         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24313         redirect_callers if possible.
24314         (sem_item_optimizer::execute): Call unregister_hooks here...
24315         (ipa_icf_driver): ... instead of here.
24317 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24319         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24320         Mark operand 0 as earlyclobber in 2nd alternative.
24321         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24322         Write negated shift amount into QI lowpart operand 0 and use it
24323         in the shift step.
24324         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24326 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
24328         * cgraph.h (clone_function_name_1): Declare.
24329         * cgraphclones.c (clone_function_name_1): New function.
24330         (clone_function_name): Use it.
24331         * lto-partition.c: Include "stringpool.h".
24332         (must_not_rename, maybe_rewrite_identifier)
24333         (validize_symbol_for_target): New static functions.
24334         (privatize_symbol_name): Use must_not_rename.
24335         (promote_symbol): Call validize_symbol_for_target.
24336         (lto_promote_cross_file_statics): Likewise.
24337         (lto_promote_statics_nonwpa): Likewise.
24339 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
24341         PR target/64452
24342         * config/avr/avr.md (pushhi_insn): New insn.
24343         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24345 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
24346             Jakub Jelinek  <jakub@redhat.com>
24348         * tree-streamer.c (preload_common_nodes): Don't preload
24349         TI_VA_LIST* for offloading.
24350         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24351         in_lto_p.
24353 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
24355         * config/pa/pa.c (pa_emit_move_sequence): Always force
24356         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
24357         note on insn.
24359         * config/pa/pa.c (pa_reloc_rw_mask): New function.
24360         (TARGET_ASM_RELOC_RW_MASK): Define.
24361         (pa_cannot_force_const_mem): Revert previous change.
24363 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
24364             Jan Hubicka  <hubicka@ucw.cz>
24366         PR ipa/65028
24367         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24368         across jump functions.
24370 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
24372         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24374 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
24376         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24378 2015-02-19  Richard Henderson  <rth@redhat.com>
24380         PR middle-end/65074
24381         * varasm.c (default_binds_local_p_2): Don't test node->definition;
24382         test DECL_EXTERNAL independent of symtab_node.
24384 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
24386         PR lto/65012
24387         * varpool.c (varpool_node::get_constructor): Return early
24388         if this->lto_file_data is NULL.
24390 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24392         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24393         (rank_for_schedule_debug): Update.
24394         (ready_sort): Make static.  Move sorting logic to ...
24395         (ready_sort_debug, ready_sort_real): New static functions.
24396         (schedule_block): Sort both debug insns and real insns in preparation
24397         for ready list trimming.  Improve debug output.
24398         * sched-int.h (ready_sort): Remove global declaration.
24400 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
24402         * ipa-icf.c (sem_function::equals_private): Adjust.
24403         (sem_function::bb_dict_test): Take a vec<int> * instead of
24404         auto_vec<int>.
24405         * ipa-icf.h (bb_dict_test): Likewise.
24407 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
24409         PR gcov-profile/64634
24410         * tree-eh.c (frob_into_branch_around): Fix up typos
24411         in function comment.
24412         (lower_catch): Put eh_seq resulting from EH lowering of
24413         the cleanup sequence after the cleanup rather than before it.
24415 2015-02-18  Tom de Vries  <tom@codesourcery.com>
24417         * common.opt (fstdarg-opt): New option.
24418         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24419         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24420         (@item -fstdarg-opt): New item.
24422 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
24424         PR target/65064
24425         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24426         for common symbols.
24428 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
24430         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
24431         insn-modes.h.
24432         (ALL_HOST_OBJS): Add mkoffload.o.
24433         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
24435 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
24437         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
24438         (compare_virtual_tables): Be smarter about skipping typeinfos;
24439         do sane output on virtual table table mismatch.
24440         (warn_odr): Be ready for forward declarations of enums;
24441         output sane info on base mismatch and virtual table mismatch.
24442         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
24443         when only one type is polymorphic.
24444         (get_odr_type): Fix hashtable corruption.
24445         (dump_odr_type): Dump mangled names.
24447 2015-02-18  Richard Biener  <rguenther@suse.de>
24449         PR tree-optimization/65063
24450         * tree-predcom.c (determine_unroll_factor): Return 1 if we
24451         have replaced looparound PHIs.
24453 2015-02-18  Martin Liska  <mliska@suse.cz>
24455         * lto-streamer.c (lto_streamer_init): Encapsulate
24456         streamer_check_handled_ts_structures with checking macro.
24458 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
24460         PR ipa/65087
24461         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
24462         section if !implicit_section.
24463         (cgraph_node::create_version_clone_with_body): Likewise.
24464         * trans-mem.c (ipa_tm_create_version): Likewise.
24466 2015-02-18  Richard Biener  <rguenther@suse.de>
24468         PR tree-optimization/62217
24469         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
24470         into BIVs.
24472 2015-02-18  Marek Polacek  <polacek@redhat.com>
24474         PR sanitizer/65081
24475         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24476         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24477         is in range [-16K, -1].  Don't issue run-time error if
24478         (ptr > ptr + offset).
24480 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
24482         * doc/install.texi (nvptx-*-none): New section.
24483         * doc/invoke.texi (Nvidia PTX Options): Likewise.
24484         * config/nvptx/nvptx.opt: Update.
24486         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24487         (access_check): New functions, copied from
24488         config/i386/intelmic-mkoffload.c.
24489         (main): For non-installed testing, look in all COMPILER_PATHs for
24490         GCC_INSTALL_NAME.
24492         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24494 2015-02-18  Andrew Pinski  <apinski@cavium.com>
24495             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
24497         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24498         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24500 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
24502         * ipa-visibility.c (function_and_variable_visibility): Only
24503         check locality if node is not already local.
24504         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24505         call_for_symbol_and_aliases instead of
24506         call_for_symbol_thunks_and_aliases.
24507         (ipa_inline): Likewise.
24508         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24509         first walk aliases.
24510         * ipa.c (symbol_table::remove_unreachable_nodes): Use
24511         call_for_symbol_and_aliases.
24512         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24513         (ipa_propagate_frequency_1): Use it; use opt_for_fn
24514         (ipa_propagate_frequency): Update.
24515         (ipa_profile): Add opt_for_fn gueards.
24517 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
24519         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
24520         * doc/invoke.texi (SH options): Document it.
24521         * config/sh/sh.c (sh_insn_length_adjustment): Check
24522         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24524 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
24526         * common.opt (fipa-cp-alignment): New.
24527         * ipa-cp.c (ipcp_store_alignment_results): Check
24528         flag_ipa_cp_alignment.
24529         * opts.c (default_options_table): Enable -fipa-cp-alignment for
24530         -O2.
24531         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24532         * doc/invoke.texi: Document -fipa-cp-alignment.
24534 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
24536         PR target/64793
24537         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24538         to nil.  Adjust comments.
24540 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
24542         * ipa-visibility.c (function_and_variable_visibility): Only
24543         check locality if node is not already local.
24544         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24545         call_for_symbol_and_aliases instead of
24546         call_for_symbol_thunks_and_aliases.
24547         (ipa_inline): Likewise.
24548         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24549         first walk aliases.
24550         * ipa.c (symbol_table::remove_unreachable_nodes): Use
24551         call_for_symbol_and_aliases.
24552         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24553         (ipa_propagate_frequency_1): Use it; use opt_for_fn
24554         (ipa_propagate_frequency): Update.
24555         (ipa_profile): Add opt_for_fn guards.
24557 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
24559         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24560         skipping of "strange" tokens.
24562 2015-02-17  Jeff Law  <law@redhat.com>
24564         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
24565         obsolete comment.
24567 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
24569         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24570         as forcing a HARD_DEP between instructions, thereby
24571         disallowing rewriting to break dependencies.
24573 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
24575         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24576         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24577         variables in boundary that have no inlitalizer encoded and are
24578         not aliases.
24579         * varasm.c (default_binds_local_p_2): External definitions do not
24580         count as definitions here.
24582 2015-02-16  Jeff Law  <law@redhat.com>
24584         PR tree-optimization/64823
24585         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24586         statements.
24587         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24588         threading through blocks with PHIs, but no statements.
24589         (thread_through_normal_block): Distinguish between blocks where
24590         we did not process all the statements and blocks with no statements.
24592 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
24593             James Greenhalgh  <james.greenhalgh@arm.com>
24595         PR ipa/64963
24596         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24597         section if not linkonce.  Fix up formatting.
24598         (cgraph_node::create_version_clone_with_body): Copy section.
24599         * trans-mem.c (ipa_tm_create_version): Likewise.
24601 2015-02-16  Richard Biener  <rguenther@suse.de>
24603         PR tree-optimization/65077
24604         * tree-ssa-structalias.c (get_constraint_for_1): Handle
24605         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24606         (find_func_aliases): Allow float values to carry pointers again.
24608 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24610         * doc/install.texi (Specific): Reorder targets list to put
24611         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
24612         from the top menu.
24614 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
24615             David Edelsohn  <dje.gcc@gmail.com>
24617         PR target/65058
24618         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24619         mapping class to external variable or function reference.
24620         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24621         mapping class.
24623 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
24625         PR target/53348
24626         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24627         ASM_WEAKEN_DECL if defined.
24629 2015-02-16  Richard Biener  <rguenther@suse.de>
24631         PR lto/65015
24632         * varasm.c (default_file_start): For LTO produced units
24633         emit <artificial> as file directive.
24635 2015-02-16  Richard Biener  <rguenther@suse.de>
24637         PR tree-optimization/63593
24638         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24639         stmts and releasing SSA names until...
24640         (execute_pred_commoning): ... after processing all chains.
24642 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
24644         PR ipa/65059
24645         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24646         external functions.
24648 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
24650         * doc/bugreport.texi: Adjust section titles throughout the file
24651         to use "Title Case".
24652         * doc/extend.texi: Likewise.
24653         * doc/gcov.texi: Likewise.
24654         * doc/implement-c.texi: Likewise.
24655         * doc/implement-cxx.texi: Likewise.
24656         * doc/invoke.texi: Likewise.
24657         * doc/objc.texi: Likewise.
24658         * doc/standards.texi: Likewise.
24659         * doc/trouble.texi: Likewise.
24661 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
24663         * cgraph.h (symtab_node::has_aliases_p): Simplify.
24664         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24665         * tree.c (lookup_binfo_at_offset): Make static.
24666         (get_binfo_at_offset): Do not shadow offset; add explanatory
24667         comment.
24669 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
24671         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24672         for all floading point loads and stores except those using a register
24673         index address.
24674         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24675         to a register.
24677 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
24679         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24680         (do_estimate_growth_1): Record if any uninlinable edge was seen.
24681         (estimate_growth): Handle uninlinable edges correctly.
24682         (check_callers): New.
24683         (growth_likely_positive): Handle aliases correctly.
24685 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
24687         * ipa-chkp.c: Use iterate_direct_aliases.
24688         * symtab.c (resolution_used_from_other_file_p): Move inline.
24689         (symtab_node::create_reference): Fix formating.
24690         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24691         (symtab_node::iterate_reference): Move inline.
24692         (symtab_node::iterate_referring): Move inline.
24693         (symtab_node::iterate_direct_aliases): Move inline.
24694         (symtab_node::used_from_object_file_p_worker): Inline into ...
24695         (symtab_node::used_from_object_file_p): ... this one; move inline.
24696         (symtab_node::call_for_symbol_and_aliases): Move inline;
24697         use iterate_direct_aliases.
24698         (symtab_node::call_for_symbol_and_aliases_1): New method.
24699         (cgraph_node::call_for_symbol_and_aliases): Move inline;
24700         use iterate_direct_aliases.
24701         (cgraph_node::call_for_symbol_and_aliases_1): New method.
24702         (varpool_node::call_for_node_and_aliases): Rename to ...
24703         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24704         use iterate_direct_aliases.
24705         (varpool_node::call_for_symbol_and_aliases_1): New method.
24706         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24707         (ipa_discover_readonly_nonaddressable_var): Update.
24708         * ipa-devirt.c: Fix formating.
24709         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24710         Move inline.
24711         (cgraph_node::call_for_symbol_and_aliases): Move inline.
24712         (cgraph_node::call_for_symbol_and_aliases_1): New function..
24713         * cgraph.h (used_from_object_file_p_worker): Remove.
24714         (resolution_used_from_other_file_p): Move inline.
24715         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24716         (symtab_node::iterate_reference): Move inline.
24717         (symtab_node::iterate_referring): Move inline.
24718         (symtab_node::iterate_direct_aliases): Move inline.
24719         (symtab_node::used_from_object_file_p_worker): Inline into ...
24720         (symtab_node::used_from_object_file_p): Move inline.
24721         * tree-emutls.c (ipa_lower_emutls): Update.
24722         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24723         (varpool_node::call_for_node_and_aliases): Remove.
24725 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
24727         PR tree-optimization/62209
24728         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24729         op == range->exp, insert seq and gimplified code after labels
24730         instead of after the phi.
24732 2015-02-13  Jeff Law  <law@redhat.com>
24734         PR bootstrap/65060
24735         Revert my change for tree-optimization/64823.
24737 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
24739         PR tree-optimization/65053
24740         * tree-ssa-phiopt.c (value_replacement): When moving assign before
24741         cond, either reset VR on lhs or set it to phi result VR.
24743 2015-02-13  Jeff Law  <law@redhat.com>
24745         PR tree-optimization/64823
24746         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24747         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24748         threading through blocks with PHIs, but no statements.
24749         (thread_through_normal_block): Distinguish between blocks where
24750         we did not process all the statements and blocks with no statements.
24752         PR rtl-optimization/47477
24753         * match.pd (convert (plus/minus (convert @0) (convert @1): New
24754         simplifier to narrow arithmetic.
24756 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
24758         PR ipa/65028
24759         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
24760         polymorphic call info when type is not known to be preserved.
24762 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
24764         PR ipa/65028
24765         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
24766         (inline_call): Use it.
24768 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
24770         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
24771         GOMP_DEVICE_NVIDIA_PTX.
24773 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
24775         PR ipa/65034
24776         * stmt.c (emit_case_nodes): Use void_type_node instead of
24777         NULL_TREE as LABEL_DECL type.
24779 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
24781         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
24782         constraints.
24783         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
24784         symbolic references to data to be forced to constant memory on the
24785         SOM target.
24787 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24789         PR tree-optimization/65002
24790         * tree-cfg.c (pass_data_fixup_cfg): Don't update
24791         SSA on start.
24792         * tree-sra.c (some_callers_have_no_vuse_p): New.
24793         (ipa_early_sra): Reject functions whose callers
24794         assume function is read only.
24796 2015-02-13  Richard Biener  <rguenther@suse.de>
24798         PR lto/65015
24799         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
24800         for LTO produced CUs.
24802 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
24804         PR tree-optimization/64705
24805         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
24806         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
24807         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
24808         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
24809         expand_simple_operations.
24811 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
24812             Richard Henderson  <rth@redhat.com>
24814         PR rtl/32219
24815         * cgraphunit.c (cgraph_node::finalize_function): Set definition
24816         before notice_global_symbol.
24817         (varpool_node::finalize_decl): Likewise.
24818         * varasm.c (default_binds_local_p_2): Rename from
24819         default_binds_local_p_1, add weak_dominate argument.  Use direct
24820         returns instead of assigning to local variable.  Unify varpool and
24821         cgraph paths via symtab_node.  Reject undef weak variables before
24822         testing visibility.  Reorder tests for simplicity.
24823         (default_binds_local_p): Use default_binds_local_p_2.
24824         (default_binds_local_p_1): Likewise.
24825         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24826         via symtab_node.
24827         (default_elf_asm_output_external): Emit visibility when specified.
24829 2015-02-13  Alan Modra  <amodra@gmail.com>
24831         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24832         code setting up r11 for out-of-line fp restore.
24834 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
24836         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24837         (muser-mode): Likewise.
24839 2015-02-13  Alan Modra  <amodra@gmail.com>
24841         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24842         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24844 2015-02-12  David Howells  <dhowells@redhat.com>
24846         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24847         warning.
24848         * tree-ssa-uninit.c (dump_predicates): Likewise.
24849         * opts.c (print_filtered_help): Likewise.
24851 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
24853         * dwarf2out.c (output_die): Use "%s", name instead of name to
24854         avoid -Wformat-security warning.
24856         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24857         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24858         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24859         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24861 2015-02-12  Jason Merrill  <jason@redhat.com>
24863         * common.opt (-flifetime-dse): New.
24865 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
24867         PR sanitizer/65019
24868         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24870         PR tree-optimization/65014
24871         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24872         use original second operand of arg0 or arg1 instead of
24873         that adjusted by STRIP_NOPS.
24875 2015-02-11  Jeff Law  <law@redhat.com>
24877         PR target/63347
24878         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24879         that needs to be queued, just queue it for a single cycle.
24881 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
24883         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24884         bodies of thunks; comment on why.
24885         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24886         symbols are extern.
24888 2015-02-11  Richard Henderson  <rth@redhat.com>
24890         PR sanitize/65000
24891         * tree-eh.c (mark_reachable_handlers): Mark source and destination
24892         regions of __builtin_eh_copy_values.
24894 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
24896         PR middle-end/65003
24897         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24898         ultimate alias is MEM with SYMBOL_REF satisfying
24899         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
24900         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24902 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
24904         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24905         "diagnostic-core.h".
24906         (main): Initialize progname, and call diagnostic_initialize.
24908         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24909         instead of __OPENMP_TARGET__.
24911         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24912         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24913         hard-coding PTX_ID.
24915 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
24917         * doc/sourcebuild.texi (pie_enabled): Document.
24919 2015-02-11  Martin Liska  <mliska@suse.cz>
24921         PR ipa/64813
24922         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24923         a return value for call to a function that is noreturn.
24925 2015-02-11  Richard Biener  <rguenther@suse.de>
24927         PR lto/65015
24928         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24929         and -fresolution.
24931 2015-02-11  Andrew Pinski  <apinski@cavium.com>
24933         PR target/64893
24934         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24935         Change the first argument type to size_type_node and add another
24936         size_type_node.
24937         (aarch64_simd_expand_builtin): Handle the new argument to
24938         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24939         print an out when the first two arguments are not
24940         nonzero integer constants.
24941         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24942         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24944 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
24946         PR target/61925
24947         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24948         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24949         (ix86_set_current_function): Rewritten.
24950         (ix86_add_new_builtins): Temporarily clear current_target_pragma
24951         when creating builtin fndecls.
24953 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
24955         PR ipa/65005
24956         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24957         function.
24958         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24959         have no comdat group.
24960         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24961         (lto_output_varpool_node): Always output alias info.
24962         (output_refs): Output refs of boundary aliases, too.
24963         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24964         (output_symtab): Output call eges in thunks in boundary.
24965         (get_alias_symbol): Remove.
24966         (input_node, input_varpool_node): Do not special case weakrefs.
24967         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24968         alias and thunks targets in the boundary; do not take removed symbols
24969         from their comdat groups.
24970         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24971         (cgraph_node::global_info): Remove.
24972         (cgraph_node::rtl_info): Look through aliases and thunks.
24973         * cgrpah.h (global_info): Remove.
24974         (non_local_p): Remove.
24976 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
24977             Sandra Loosemore  <sandra@codesourcery.com>
24979         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24980         to inline asm.  List dialects in proper order.
24982 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
24983             Sandra Loosemore  <sandra@codesourcery.com>
24985         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24987 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
24989         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24990         modified) reference to Solaris.
24992 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
24994         * doc/extend.texi (Extended Asm): Fix typos.
24996 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
24998         PR sanitizer/65004
24999         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25001 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
25003         PR target/64661
25004         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25005         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25006         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25007         * config/sh/constraints.md (Ara, Add): New constraints.
25008         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25009         predicates.
25010         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25011         atomic_mem_operand_0.  Don't use force_reg on the memory address.
25012         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25013         Sra constraint.  Convert to insn_and_split.  Add workaround for
25014         PR 64974.
25015         (atomic_compare_and_swap<mode>_hard): Copy to
25016         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
25017         Use atomic_mem_operand_0 predicate.
25018         (atomic_compare_and_swap<mode>_soft_gusa,
25019         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25020         AraAdd constraints.
25021         (atomic_compare_and_swap<mode>_soft_tcb,
25022         atomic_compare_and_swap<mode>_soft_imask,
25023         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25024         atomic_mem_operand_0 predicate and SraSdd constraints.
25025         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25026         constraint.
25027         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25028         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
25029         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25030         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
25031         force_reg on the memory address.
25032         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25033         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25034         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25035         atomic_mem_operand_1 predicate and Sra constraint.
25036         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25037         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
25038         Use atomic_mem_operand_1 predicate.
25039         (atomic_<fetchop_name><mode>_hard): Copy to
25040         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
25041         Use atomic_mem_operand_1 predicate.
25042         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25043         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
25044         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
25045         insn_and_split.  Use atomic_mem_operand_1 predicate.
25046         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25047         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
25048         Use atomic_mem_operand_1 predicate.
25049         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25050         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
25051         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25052         in generated insn with original mem operand before emitting the insn.
25053         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25054         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25055         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25056         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25057         Use atomic_mem_operand_1 predicate and AraAdd constraints.
25058         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25059         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25060         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25061         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25062         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25063         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25064         atomic_not_fetch<mode>_soft_tcb,
25065         atomic_<fetchop_name>_fetch<mode>_soft_imask,
25066         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25067         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25068         Use atomic_mem_operand_1 predicate and SraSdd constraints.
25070 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
25072         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25073         and 3 earlyclobber operands.
25075 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
25077         * common.opt (fstack-reuse): Mark as optimization.
25079 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
25081         PR ipa/64982
25082         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25084 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
25086         PR tree-optimization/64326
25087         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25089 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
25091         PR gcov-profile/61889
25092         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25094 2015-02-10  Richard Biener  <rguenther@suse.de>
25096         PR tree-optimization/64995
25097         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25098         value we use is final.
25099         (visit_reference_op_store): Always valueize op.
25100         (visit_use): Properly valueize vuses.
25102 2015-02-10  Richard Biener  <rguenther@suse.de>
25104         PR tree-optimization/64909
25105         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25106         pass a scalar-stmt count estimate to the cost model.
25107         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25109 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
25111         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25112         enabled by default together with var-tracking.
25114 2015-02-10  Nick Clifton  <nickc@redhat.com>
25116         * config/rl78/rl78.c: Remove DIV attribute code accidentally
25117         included in previous rl78 commit.
25119 2015-02-10  Richard Biener  <rguenther@suse.de>
25121         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25122         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25123         return the bitpack.
25125 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
25127         PR gcov-profile/61889
25128         * config.in: regenerate.
25129         * configure.in: Likewise.
25130         * configure.ac: Check for ftw.h.
25131         * gcov-tool.c: Check for ftw.h before using nftw.
25133 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
25135         PR lto/64076
25136         * ipa-visibility.c (update_visibility_by_resolution_info): Only
25137         assert when not in lto mode.
25139 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25141         * ira-color.c (setup_left_conflict_sizes_p): Simplify
25142         initialization/assignment of conflict_size.
25144 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
25146         PR ipa/64978
25147         * ipa-cp.c (gather_caller_stats): Skip thunks.
25148         (propagate_constants_topo): Skip aliases.
25150 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
25152         PR target/64761
25153         * config/sh/sh.c (sh_option_override): Don't change
25154         -freorder-blocks-and-partition to -freorder-blocks even when
25155         unwinding is enabled.
25156         (sh_can_follow_jump): Return false if the followee jump is
25157         a crossing jump when -freorder-blocks-and-partition is specified.
25158         * config/sh/sh.md (*jump_compact_crossing): New insn.
25160 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25161             Kaz Kojima  <kkojima@gcc.gnu.org>
25163         PR target/64761
25164         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25165         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25166         (sh_can_redirect_branch): Rename to ...
25167         (sh_can_follow_jump): ... this.  Constify argument types.
25168         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25169         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25170         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25171         * doc/tm.texi: Regenerate.
25173 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
25175         PR sanitizer/64981
25176         * builtins.c (expand_builtin): Call targetm.expand_builtin
25177         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25179 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25181         PR ipa/61548
25182         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25184 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25186         PR ipa/63566
25187         * ipa-icf.c (set_local): New function.
25188         (sem_function::merge): Use it.
25190 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25192         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25193         (add_type_duplicate): Fix comparison of BINFOs.
25195 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25197         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25198         on getting VOID pointer.
25200 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
25202         PR target/64979
25203         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25204         va_list escapes.
25206 2015-02-09  Richard Biener  <rguenther@suse.de>
25208         * genmatch.c (replace_id): Copy expr_type.
25210 2015-02-09  Richard Biener  <rguenther@suse.de>
25212         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25213         (streamer_write_tree_bitfields): Declare.
25214         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25215         properly unpack padding.
25216         (unpack_value_fields): Inline ...
25217         (streamer_read_tree_bitfields): ... here.
25218         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25219         and properly add padding bits.
25220         (streamer_pack_tree_bitfields): Fold into ...
25221         (streamer_write_tree_bitfields): ... this new function,
25222         exposing the bitpack object.
25223         * lto-streamer-out.c (lto_write_tree_1): Call
25224         streamer_write_tree_bitfields.
25226 2015-02-09  Richard Biener  <rguenther@suse.de>
25228         PR tree-optimization/54000
25229         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25230         (struct ivopts_data): Add loop_loc member.
25231         (tree_ssa_iv_optimize_loop): Dump loop location.
25232         (create_new_ivs): Likewise, also dump number of IVs generated.
25234 2015-02-09  Martin Liska  <mliska@suse.cz>
25236         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25237         just if not yet registered.
25238         (ipa_icf_generate_summary): Register callgraph hooks.
25240 2015-02-08  Andrew Pinski  <apinski@cavium.com>
25242         * config/aarch64/aarch64.c (gty_dummy): Delete.
25244 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25246         PR ipa/63566
25247         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25248         (cgraph_node::local_p): Remove thunk related FIXME.
25250 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25252         PR ipa/63566
25253         * i386.c (ix86_function_regparm): Look through aliases to see if callee
25254         is local and optimized.
25255         (ix86_function_sseregparm): Likewise; also use target's SSE math
25256         settings; error out instead of silently generating wrong code
25257         on mismatches.
25258         (init_cumulative_args): Look through aliases.
25260 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25262         PR ipa/63566
25263         * ipa-split.c (execute_split_functions): Split if function has aliases.
25265 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
25267         PR ipa/63566
25268         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25269         aliases before trying to expand it.
25270         (cgraph_node::expand_thunk): Fix formating.
25272 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
25274         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25275         (Using Assembly Language with C): Expand introduction.
25276         (Basic Asm): Copy-edit.  Add more information about uses of
25277         basic asm.
25278         (Extended Asm): Copy-edit.  Document new escape syntax and
25279         %l[label] syntax.
25280         (Global Reg Vars): Copy-edit.
25281         (Local Reg Vars): Likewise.
25283 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
25285         PR debug/2714
25286         PR bootstrap/64256
25287         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25288         (DBX_CONTIN_CHAR): Define.
25290 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
25291             Brian Rzycki  <b.rzycki@samsung.com>
25293         PR tree-optimization/64878
25294         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25295         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25296         Stop recursion at loop phi nodes after having visited a loop phi node.
25298 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
25300         * toplev.c (process_options): Change flag_ipa_ra before creating
25301         optimization_{default,current}_node.
25303         PR ipa/64896
25304         * cgraphunit.c (cgraph_node::expand_thunk): If
25305         restype is not is_gimple_reg_type nor the thunk_fndecl
25306         returns aggregate_value_p, set restmp to a temporary variable
25307         instead of resdecl.
25309 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
25311         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25313 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25315         PR target/64205
25316         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25317         add a general secondary reload handler for SDmode, unless we have
25318         both read/write support for SDmode.
25320 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
25322         PR middle-end/64937
25323         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25324         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25325         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25326         1 before, push it to abstract_vec.
25327         (dwarf2out_abstract_function): Adjust caller.  Don't call
25328         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25329         DECL_ABSTRACT_P flags for all abstract_vec elts.
25331 2015-02-06  Renlin Li  <renlin.li@arm.com>
25333         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25334         complex gimple.
25335         * tree-ssa.c (execute_update_addresses_taken): Likewise.
25337 2015-02-06  Jeff Law  <law@redhat.com>
25339         PR target/64889
25340         * config/h8300/h8300.c (push): New argument "in_prologue".
25341         Pass "in_prologue" along to "F".
25342         (h8300_push_pop): Corresponding changes.
25343         (h8300_expand_prologue): Likewise.
25344         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
25346 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
25348         PR rtl-optimization/64957
25349         PR debug/64817
25350         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25351         IOR rather than for AND.
25353 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
25355         PR target/62631
25356         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25357         of shift-add and (add + shift) operations.  Rename local variable.
25359 2015-02-05  Jeff Law  <law@redhat.com>
25361         PR target/17306
25362         * config/h8300/constraints.md (U): Correctly dectect
25363         "eightbit_data" memory addresses.
25364         * config/h8300/h8300.c (eightbit_constant_address_p): Also
25365         handle (const (plus (symbol_ref (x)))) where x is declared
25366         as an 8-bit data memory address.
25367         * config/h8300/h8300.md (call, call_value): Correctly detect
25368         "funcvec" functions.
25370         PR target/43264
25371         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25372         24 to 28 bits for the H8/300.
25374 2015-02-06  Alan Modra  <amodra@gmail.com>
25376         PR target/64876
25377         * config/rs6000/rs6000.c (chain_already_loaded): New function.
25378         (rs6000_call_aix): Use it.
25380 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
25382         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25383         check.
25385 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
25387         * config/h8300/constraints.md ("U" constraint): Use strict
25388         variant of REG_OK_FOR_BASE_P after reload has started.
25390 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
25392         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25393         define to zero if !TARGET_NEON.
25394         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25396 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25397             Trevor Saunders  <tsaunders@mozilla.com>
25399         PR ipa/61548
25400         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25402 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25404         PR ipa/61548
25405         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25406         when removing varpool nodes.
25408 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25410         PR ipa/61548
25411         * varpool.c (varpool_node::remove): Fix order of variables.
25413 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25415         PR ipa/64686
25416         * ipa-inline.c (inline_small_functions): Fix ordering issue between
25417         speculation resolution and key updates.
25419 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25421         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25422         about not letting any speculative edges unupdated.
25424 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25426         PR gcov/64123
25427         * gcov-io.c (gcov_var): Export.
25429 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25431         PR middle-end/64922
25432         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
25433         edges that become speculative.
25435 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
25437         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
25438         or DW_LANG_Fortran08.
25439         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
25440         DW_LANG_Fortran08.
25441         (gen_compile_unit_die): Handle "GNU Fortran2003" and
25442         "GNU Fortran2008" language strings.
25443         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
25444         * langhooks.h (lang_GNU_Fortran): New prototype.
25445         * langhooks.c (lang_GNU_Fortran): New function.
25446         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
25447         lang_GNU_Fortran.
25449 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
25451         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
25452         (RTX_OK_FOR_OLO10_P): Likewise.
25454 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
25456         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
25458 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
25460         PR middle-end/64922
25461         * gimple.c: Include gimple-ssa.h.
25462         (maybe_remove_unused_call_args): New function.
25463         * gimple.h (maybe_remove_unused_call_args): Declare.
25464         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
25465         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25466         * gimple-fold.c (gimple_fold_call): Likewise.
25468 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
25470         PR rtl-optimization/64905
25471         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
25472         pointer alignment if it isn't needed.
25474 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
25476         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25477         cortex-a72.cortex-a53.
25478         * config/aarch64/aarch64-tune.md: Regenerate.
25479         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25481 2015-02-04  Nick Clifton  <nickc@redhat.com>
25483         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25484         inside a MEM.
25486 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
25488         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25489         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25490         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25491         of DEF_BUILTIN.
25492         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25493         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25494         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25495         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25496         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25497         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25498         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25499         * tree-core.h (enum built_in_function): In between
25500         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25501         for builtins that use DEF_BUILTIN_CHKP macro.
25503 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
25505         PR debug/64817
25506         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
25507         operands for tcc_comparison exprs.  Fix typos.
25509         PR debug/64817
25510         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
25511         of two XORs that have an intervening AND or IOR.
25513         PR debug/64817
25514         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
25515         simplification of XOR of AND to not allocate new rtx before
25516         committing to a simplification.
25518 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25520         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
25521         manual swaps in all peepholes.
25523 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25525         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25526         of manual swapping implementation.
25527         (aarch64_expand_vec_perm_const_1): Likewise.
25529 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
25531         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25532         (generic_addrcost_table): Remove NAMED_PARAM.
25533         (cortexa57_addrcost_table): Likewise.
25534         (xgene1_addrcost_table): Likewise.
25535         (generic_regmove_table): Likewise.
25536         (cortexa53_regmove_table): Likewise.
25537         (xgene1_regmove_table): Likewise.
25538         (generic_vector_table): Likewise.
25539         (cortexa57_vector_table): Likewise.
25540         (xgene1_vector_table): Likewise.
25541         (generic_tunings): Likewise.
25542         (cortexa53_tunings): Likewise.
25543         (cortexa57_tunings): Likewise.
25544         (xgene1_tunings): Likewise.
25546 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
25548         * config/arm/arm-cores.def: Add cortex-a72 and
25549         cortex-a72.cortex-a53.
25550         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25551         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25552         * config/arm/arm-tune.md: Regenerate.
25553         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25554         "cortex-a72.cortex-a53".
25555         * doc/invoke.texi (ARM Options/-mtune): Likewise.
25557 2015-02-04  Nick Clifton  <nickc@redhat.com>
25559         PR target/64408
25560         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25561         of accepted codes.
25562         (nonimmediate_di_operand): Likewise.
25564         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25565         prefixes of known F5 using MSP430 MCUs.
25567 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25569         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25570         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25571         instead of __builtin_sqrt.
25573 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
25575         * varasm.c (do_assemble_alias): Follow transparent alias
25576         chain for target.
25577         (default_assemble_visibility): Follow transparent alias
25578         chain for decl name.
25580 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25582         PR middle-end/62103
25583         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25584         to compute size of referenced value in the constant case.
25586 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
25588         PR rtl-optimization/64756
25589         * cse.c (invalidate_dest): New function.
25590         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
25591         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25592         invalidate and do not record it.
25594 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
25596         PR target/64660
25597         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25598         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25599         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25600         atomic_nand<mode>_soft_tcb): New insns.
25601         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25602         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25603         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25604         Split into atomic_not_fetchsi_hard if operands[0] is unused.
25605         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25606         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25607         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
25608         atomic_not<mode>_hard if operands[0] is unused.
25609         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25610         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25611         if operands[0] is unused.
25612         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
25613         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25614         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25615         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25616         unused.
25617         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
25618         into atomic_not<mode>_soft_tcb if operands[0] is unused.
25619         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25620         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25621         if operands[0] is unused.
25622         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
25623         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25624         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
25625         atomic_nand_fetchsi_hard if operands[0] is unused.
25626         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
25627         atomic_nand<mode>_hard if operands[0] is unused.
25628         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
25629         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25630         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
25631         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25632         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
25633         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25634         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25635         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25636         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
25637         atomic_not<mode>_hard if operands[0] is unused.
25638         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25639         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25640         unused.
25641         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
25642         into atomic_not<mode>_soft_tcb if operands[0] is unused.
25643         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
25644         atomic_nand<mode>_hard if operands[0] is unused.
25645         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
25646         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25648 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
25650         PR jit/64810
25651         * Makefile.in (GCC_OBJS): Add gcc-main.o.
25652         * gcc-main.c: New file, containing "main" taken from gcc.c.
25653         * gcc.c (do_self_spec): Free decoded_options.
25654         (class driver): Move declaration to gcc.h.
25655         (main): Move declaration and implementation to new file
25656         gcc-main.c.
25657         (driver_get_configure_time_options): New function.
25658         * gcc.h (class driver): Move this declaration here, from
25659         gcc.c.
25660         (driver_get_configure_time_options): New declaration.
25662 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
25664         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25665         cross-module inlining.
25666         * cgraph.h (cgraph_node): Add flag merged.
25667         * ipa-icf.c (sem_function::merge): Maintain it.
25669 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
25671         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25672         instead of OBJECT_P.
25674 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
25676         PR target/62631
25677         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25678         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25679         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25680         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25682 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
25684         PR other/63504
25685         * combine.c (reg_n_sets_max): New variable.
25686         (can_change_dest_mode, reg_nonzero_bits_for_combine,
25687         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25688         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25689         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25690         (rest_of_handle_combine): Initialize reg_n_sets_max.
25692 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
25694         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25695         if some always_inline was inlined, apply changes before inlining
25696         heuristically.
25698 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
25700         PR jit/64810
25701         * config/arm/arm.c (arm_option_override): Set
25702         arm_selected_arch/cpu/tune to NULL on entry.
25704 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
25705             Andrew Pinski  <pinskia@gcc.gnu.org>
25706             Jakub Jelinek  <jakub@gcc.gnu.org>
25708         PR target/64231
25709         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25710         integer typing for small model. Use IN_RANGE.
25712 2015-02-02  Richard Biener  <rguenther@suse.de>
25714         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25715         * tree-vrp.c (vrp_valueize_1): Likewise.
25717 2015-02-02  Alan Modra  <amodra@gmail.com>
25719         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25720         than mem for toc_restore.
25721         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25722         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25723         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25725 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
25727         PR target/64047
25728         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25729         explicit default options.
25731 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
25733         PR ipa/64872
25734         * ipa-utils.c (ipa_merge_profiles): Add release argument.
25735         * ipa-icf.c (sem_function::merge): Do not release body when merging.
25736         * ipa-utils.h (ipa_merge_profiles): Update prototype.
25738 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
25740         PR debug/64817
25741         * cfgexpand.c (deep_ter_debug_map): New variable.
25742         (avoid_deep_ter_for_debug): New function.
25743         (expand_debug_expr): If TERed SSA_NAME is in
25744         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25745         instead of trying to expand SSA_NAME's def stmt.
25746         (expand_debug_locations): When expanding debug bind
25747         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25748         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25749         value.
25750         (pass_expand::execute): Call avoid_deep_ter_for_debug on
25751         all debug bind stmts.  Delete deep_ter_debug_map after
25752         expand_debug_location if non-NULL and clear it.
25754 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
25756         PR target/64851
25757         * config/sh/sync.md (atomic_fetch_notsi_hard,
25758         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
25759         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
25760         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
25761         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
25762         atomic_not_fetch<mode>_soft_imask): New insns.
25764 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25766         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
25767         (rank_for_schedule_debug): Split from ...
25768         (rank_for_schedule): ... this.
25769         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
25770         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
25772 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
25774         * doc/md.texi (Machine Constraints): Alphabetize table by target.
25775         * doc/extend.texi (x86 Variable Attributes): Move section to
25776         correct alphabetization after renaming.
25777         (x86 Type Attributes): Likewise.
25778         (Target Builtins): Re-alphabetize menu.
25779         (x86 Built-in Functions): Move section to correct alphabetization
25780         after renaming.
25781         (x86 transactional memory intrinsics): Likewise.
25782         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
25783         and x86 Windows Options in table and menu.
25784         (x86 Options): Move section to correct alphabetization after
25785         renaming.
25786         (x86 Windows Options): Likewise.
25788 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
25790         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
25791         preferred names of the architecture and its 32- and 64-bit
25792         variants.
25793         * doc/invoke.texi: Likewise.
25794         * doc/md.texi: Likewise.
25796 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
25798         PR target/64882
25799         * config/i386/predicates.md (address_no_seg_operand): Reject
25800         non-CONST_INT_P operands in invalid mode.
25802 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
25804         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
25805         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
25806         * config/i386/predicates.md (address_no_seg_operand): Call
25807         address_operand with VOIDmode.
25808         (vsib_address_operand): Ditto.
25809         (address_mpx_no_base_operand): Ditto.
25810         (address_mpx_no_index_operand): Ditto.
25812 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
25814         PR target/64688
25815         * lra-constraints.c (original_subreg_reg_mode): New.
25816         (simplify_operand_subreg): Try to simplify subreg of const.  Use
25817         original_subreg_reg_mode for it.
25818         (swap_operands): Update original_subreg_reg_mode.
25819         (curr_insn_transform): Set up original_subreg_reg_mode.
25821 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
25823         PR target/64617
25824         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25825         function.
25826         (process_alt_operands): Use it.
25827         (curr_insn_transform): Check the optional reload pseudo class is
25828         ok for the mode.
25830 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
25832         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25833         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25834         prototype.
25835         * toplev.h (init_asm_output): Update comment on use of
25836         UNKNOWN_LOCATION with fatal_error.
25837         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25838         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25839         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25840         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25841         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25842         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25843         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25844         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25845         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25846         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25847         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25848         fatal_error changed to pass input_location as first argument.
25850 2015-01-30  Martin Liska  <mliska@suse.cz>
25852         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25853         in #pragma GCC diagnostic guards.
25855 2015-01-30  Richard Biener  <rguenther@suse.de>
25857         PR tree-optimization/64829
25858         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25859         not add a widening conversion pattern but hand off extra
25860         widenings to callers.
25861         (vect_recog_widen_mult_pattern): Handle extra widening produced
25862         by vect_handle_widen_op_by_const.
25863         (vect_recog_widen_shift_pattern): Likewise.
25864         (vect_pattern_recog_1): Remove excess vertical space in dumping.
25865         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25866         (vect_init_vector_1): Likewise.
25867         (vect_get_vec_def_for_operand): Likewise.
25868         (vect_finish_stmt_generation): Likewise.
25869         (vectorizable_load): Likewise.
25870         (vect_analyze_stmt): Likewise.
25871         (vect_is_simple_use): Likewise.
25873 2015-01-29  Jeff Law  <law@redhat.com>
25875         * combine.c (try_combine): Fix typo in comment.
25877 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
25879         PR target/64580
25880         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25881         (rs6000_stack_info): Add assert.
25882         (rs6000_output_savres_externs): New function, split off from...
25883         (rs6000_output_function_prologue): ... here.  Do not call it for
25884         thunks.
25886 2015-01-29  Jeff Law  <law@redhat.com>
25888         PR target/15184
25889         * combine.c (try_combine): If I0 is a memory load and I3 a store
25890         to a related address, increase the "goodness" of doing a 4-insn
25891         combination with I0-I3.
25892         (make_field_assignment): Handle SUBREGs in the ior+and case.
25894 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
25896         PR tree-optimization/64746
25897         * tree-if-conv.c (mask_exists): New function.
25898         (predicate_mem_writes): Save created mask with given size for further
25899         use.
25900         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25901         (ifcvt_repair_bool_pattern): Collect all statements that are root
25902         of bool pattern and use iterative algorithm to remove multiple uses
25903         of predicates, display number of required iterations.
25905 2015-01-29  Richard Biener  <rguenther@suse.de>
25907         PR tree-optimization/64853
25908         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25909         stmt will get simulated again.
25910         * tree-ssa-ccp.c (valueize_op_1): Likewise.
25912 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25914         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25915         return_in_pc.  Remove redundant assignments.
25916         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25917         (arm_expand_epilogue): Don't compare boolean with true in if condition.
25919 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
25921         * config/i386/i386.c (ix86_mode_after): Make static.
25923 2015-01-29  Richard Biener  <rguenther@suse.de>
25925         PR tree-optimization/64844
25926         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25927         dump cost model analysis.
25928         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25929         Do not register adjusted load/store costs here.
25931 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
25932             Uros Bizjak  <ubizjak@gmail.com>
25934         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25935         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25936         using x86_use_pseudo_pic_reg.
25937         * config/i386/i386.c (ix86_conditional_register_usage): Remove
25938         support for fixed PIC register.
25939         (ix86_use_pseudo_pic_reg): Not static any more.
25941 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
25943         PR middle-end/64805
25944         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25945         to avoid error in cgraph node verification.
25947 2015-01-29  Marek Polacek  <polacek@redhat.com>
25949         * doc/standards.texi: Reflect that the default for C is gnu11.
25951 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
25953         PR target/64761
25954         * reorg.c (switch_text_sections_between_p): New function.
25955         (relax_delay_slots): Call it when testing if the jump insn
25956         is removable.  Use targetm.can_follow_jump when testing if
25957         the conditional branch can follow an unconditional jump.
25959 2015-01-27  Caroline Tice  <cmtice@google.com>
25961         Committing VTV Cywin/Ming patch for Patrick Wollgast
25962         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25963         if -fvtable-verify=preinit/std is used.
25964         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25965         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25966         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25967         if -fvtable-verify=preinit/std is used.
25968         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25969         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25970         if -fvtable-verify=preinit/std is used.
25971         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25972         * config/i386/mingw32.h (LIB_SPEC): Likewise.
25973         * varasm.c (assemble_variable): Add code to properly set the comdat
25974         section and name for the .vtable_map_vars section in case the
25975         target is PE or COFF.
25977 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
25979         PR ipa/64801
25980         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25981         make sane BB profile.
25982         (cgraph_node::expand_thunk): Make sane BB profile.
25983         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25984         * cgraph.h (init_lowered_empty_function): Update prototype.
25985         * config/i386/i386.c (make_resolver_func): Update call.
25986         * predict.c (gate): Disable branch prediction pass if
25987         profile is already there.
25989 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
25991         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25992         * opth-gen.awk: Likewise.
25993         * common.opt: Mark flag_fp_contract_mode as Optimization.
25995 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25997         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25998         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26000 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
26002         PR target/64659
26003         * config/sh/predicates.md (atomic_arith_operand,
26004         atomic_logical_operand): Remove.
26005         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26006         (atomic_arith_operand_0): New predicate.
26007         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26008         Use atomic_arith_operand_0 for input values.
26009         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26010         atomic_compare_and_swap<mode>_soft_gusa,
26011         atomic_compare_and_swap<mode>_soft_tcb,
26012         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26013         arith_reg_operand instead of register_operand.
26014         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
26015         atomic_arith_operand_0 for newval input.
26016         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26017         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26018         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26019         arith_reg_operand instead of register_operand.
26020         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26021         fetchop_predicate_1, fetchop_constraint_1_llcs,
26022         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26023         fetchop_constraint_1_imask): New code iterator attributes.
26024         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26025         register_operand.  Use fetchop_predicate_1.
26026         (atomic_fetch_<fetchop_name>si_hard,
26027         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26028         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26029         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26030         and arith_reg_operand instead of register_operand.  Use
26031         fetchop_predicate_1, fetchop_constraint_1_gusa.
26032         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26033         and arith_reg_operand instead of register_operand.  Use
26034         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
26035         to allow R0 usage.
26036         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26037         and arith_reg_operand instead of register_operand.  Use
26038         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
26039         to allow R0 usage.
26040         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26041         register_operand.  Use atomic_logical_operand_1.
26042         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26043         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26044         arith_reg_operand instead of register_operand.
26045         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26046         Use arith_reg_dest and arith_reg_operand instead of register_operand.
26047         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
26048         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26049         register_operand.  Use fetchop_predicate_1.
26050         (atomic_<fetchop_name>_fetchsi_hard,
26051         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26052         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26053         fetchop_constraint_1_llcs.
26054         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26055         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26056         fetchop_constraint_1_gusa.
26057         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26058         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26059         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
26060         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26061         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26062         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
26063         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26064         register_operand.  Use atomic_logical_operand_1.
26065         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26066         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26067         arith_reg_operand instead of register_operand.
26068         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26069         arith_reg_operand instead of register_operand.  Use logical_operand
26070         and K08.  Adjust asm sequence to allow R0 usage.
26071         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26072         arith_reg_operand instead of register_operand.  Use logical_operand
26073         and K08.
26075 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
26077         PR other/63504
26078         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26079         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26080         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26081         only get_full_len HOST_WIDE_INTs from get_val () array rather than
26082         all bits in *val_wide.
26084 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
26086         * varpool.c (tls_model_names): Fix names.
26087         (varpool_node::dump): Dump tls- prefix for tls models.
26089 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
26090             Bernd Schmidt  <bernds@codesourcery.com>
26091             Nathan Sidwell  <nathan@codesourcery.com>
26093         * config/nvptx/mkoffload.c: New file.
26094         * config/nvptx/t-nvptx: Add build rules for it.
26095         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26096         (extra_programs): Add mkoffload.
26097         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26098         function.
26099         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26101 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
26103         PR middle-end/64809
26104         * cfgexpand.c (reorder_operands): Skip debug gimples.
26106 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
26108         PR tree-optimization/64277
26109         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26110         range info when possible to refine estimation.
26112 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26114         PR tree-optimization/64718
26115         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26116         be a 16bit unsigned integer when n->range is 16.
26117         (bswap_replace): Convert src to that type if necessary for all bswap
26118         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
26119         set in pass_optimize_bswap::execute ().
26121 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
26123         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26124         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26125         integer and floating point variants.
26126         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26128 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
26130         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26131         for all vector modes.
26133 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
26135         PR bootstrap/64612
26136         * doc/sourcebuild.texi (comdat_group): Document.
26138 2015-01-28  Terry Guo  <terry.guo@arm.com>
26140         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26142 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
26144         * toplev.c (print_version): Add param "show_global_state", and
26145         only print GGC and plugin information if it is true.
26146         (init_asm_output): Pass in "true" for the new param when calling
26147         print_version.
26148         (process_options): Likewise.
26149         (toplev::main): Likewise.
26150         * toplev.h (print_version): Add new param to decl.
26152 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
26154         PR ipa/60871
26155         PR ipa/64139
26156         * tree.c (lookup_binfo_at_offset): New function.
26157         (get_binfo_at_offset): Use it.
26159 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
26161         PR ipa/64282
26162         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26163         on vtable being vtable.
26165 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26167         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26168         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26169         -mhotpatch= option.
26170         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26171         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
26172         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26173         Renamed.
26174         (s390_hotpatch_trampoline_halfwords_max): Renamed.
26175         (s390_hotpatch_hw_max): New name.
26176         (s390_hotpatch_trampoline_halfwords): Renamed.
26177         (s390_hotpatch_hw_before_label): New name.
26178         (get_hotpatch_attribute): Removed.
26179         (s390_hotpatch_hw_after_label): New name.
26180         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26181         attribute.
26182         (s390_attribute_table): Ditto.
26183         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26184         (s390_function_num_hotpatch_hw): New name.
26185         Remove special handling of inline functions and hotpatching.
26186         Return number of nops before and after the function label.
26187         (s390_can_inline_p): Removed.
26188         (s390_asm_output_function_label): Emit a configurable number of nops
26189         after the function label.
26190         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26191         (TARGET_CAN_INLINE_P) Removed.
26192         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26194 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26195             Jiong Wang  <jiong.wang@arm.com>
26197         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26198         of scratch reg.
26199         (cb<optab><mode>1): Likewise.
26200         * config/aarch64/iterators.md (bcond): New define_code_attr.
26202 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26204         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26205         memory accesses.
26207 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26209         * config/s390/s390.c (s390_register_move_cost): Increase costs for
26210         FPR->GPR moves.
26212 2015-01-27  Richard Biener  <rguenther@suse.de>
26214         * tree-vrp.c (update_value_range): Intersect the range with
26215         old recorded SSA name range information.
26217 2015-01-27  Nick Clifton  <nickc@redhat.com>
26219         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26220         BC, DE and HL registers directly, not via AX.
26221         When decrementing the stack pointer by a large amount, transfer SP
26222         into AX and perform the subtraction there.
26223         (rl78_expand_epilogue): Perform the inverse of the above
26224         enhancements.
26226 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26228         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26230 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
26231             Yury Gribov  <y.gribov@samsung.com>
26233         PR ubsan/64741
26234         * ubsan.c (ubsan_source_location): Refactor code.
26235         (ubsan_type_descriptor): Update type size. Refactor code.
26237 2015-01-27  Richard Biener  <rguenther@suse.de>
26239         PR tree-optimization/56273
26240         PR tree-optimization/59124
26241         PR tree-optimization/64277
26242         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26243         from the first VRP pass.
26245 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
26247         PR ipa/64776
26248         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26249         handle the first argument in the same loop as all the other arguments.
26251         PR rtl-optimization/61058
26252         * jump.c (cleanup_barriers): Update basic block boundaries
26253         if BLOCK_FOR_INSN is non-NULL on PREV.
26255 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26257         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26258         bounds narrowing, already instrumented calls and calls to
26259         not instrumentable functions.
26261 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
26263         PR tree-optimization/64807
26264         * wide-int.cc (wi::divmod_internal): Clear
26265         b_dividend[dividend_blocks_needed].
26267 2015-01-26  DJ Delorie  <dj@redhat.com>
26269         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26270         volatile memory references.
26272 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
26274         PR target/49263
26275         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26276         remove_insn.
26277         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26278         shifts if it already fits into K08.
26280 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
26282         PR ipa/64730
26283         * ipa-inline.c (inline_small_functions): Print "unknown" even
26284         if edge->call_stmt is non-NULL, but has builtins or unknown
26285         location.
26287         PR middle-end/64421
26288         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26289         with asterisk, skip the first character.
26291 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
26293         PR target/64806
26294         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26295         order change.
26297 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
26299         PR target/64795
26300         * config/i386/i386.md (*movdi_internal): Also check operand 0
26301         to determine TYPE_LEA operand.
26302         (*movsi_internal): Ditto.
26304 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
26306         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26307         OPTION_MASK_QUAD_MEMORY_ATOMIC.
26309 2015-01-26  Renlin Li  <renlin.li@arm.com>
26311         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26312         the comment.
26313         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26314         for higher part.
26316 2015-01-26  Richard Biener  <rguenther@suse.de>
26318         PR middle-end/64764
26319         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26320         combining two BIT_AND_EXPR predicates.
26322 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
26324         PR bootstrap/64754
26325         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26327 2015-01-26  Terry Guo  <terry.guo@arm.com>
26329         * config/arm/arm.c (arm_file_start): Update the assignment of
26330         Tag_ABI_HardFP_use.
26332 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
26334         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26335         pipeline model.
26336         config/arm/arm.md: Include the new Cortex-A57 model.
26337         (generic_sched): Don't use generic_sched when tuning for
26338         Cortex-A57.
26340 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
26341             Uros Bizjak  <ubizjak@gmail.com>
26343         * config/i386/i386.c (get_builtin_code_for_version): Add
26344         support for BMI and BMI2 multiversion functions.
26346 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26348         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26349         (extract_bit_field): Likewise.
26350         (extract_low_bits): Likewise.
26351         (expand_mult): Likewise.
26352         (expand_mult_highpart_adjust): Likewise.
26354 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26356         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26357         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26358         * config/i386/i386.c (processor_model): Add
26359         M_INTEL_COREI7_BROADWELL.
26360         (arch_names_table): Add "broadwell".
26362 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
26364         PR target/49263
26365         PR target/53987
26366         PR target/64345
26367         PR target/59533
26368         PR target/52933
26369         PR target/54236
26370         PR target/51244
26371         * config/sh/sh-protos.h
26372         (sh_extending_set_of_reg::can_use_as_unextended_reg,
26373         sh_extending_set_of_reg::use_as_unextended_reg,
26374         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26375         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26376         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26377         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26378         (sh_treg_insns): New class.
26379         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26380         (scope_counter): New class.
26381         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26382         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26383         sh_extending_set_of_reg::can_use_as_unextended_reg,
26384         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26385         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26386         sh_split_treg_set_expr): New functions.
26387         (addsubcosts): Handle treg_set_expr.
26388         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26389         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26390         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26391         (sh_insn_operands_modified_between_p): Make non-static.
26392         * config/sh/predicates.md (zero_extend_movu_operand): Allow
26393         simple_mem_operand in addition to displacement_mem_operand.
26394         (zero_extend_operand): Don't allow zero_extend_movu_operand.
26395         (treg_set_expr, treg_set_expr_not_const01,
26396         arith_reg_or_treg_set_expr): New predicates.
26397         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26398         arith_or_int_operand instead of logical_operand.  Convert to
26399         insn_and_split.  Try to optimize constant operand in splitter.
26400         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
26401         (*tstqi_t_zero): Delete.
26402         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26403         (tstsi_t_and_not): Delete.
26404         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26405         Convert to insn_and_split.
26406         (unnamed split, tstsi_t_zero_extract_xor,
26407         tstsi_t_zero_extract_subreg_xor_little,
26408         tstsi_t_zero_extract_subreg_xor_big): Delete.
26409         (*tstsi_t_shift_mask): New insn_and_split.
26410         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26411         to recombine with surrounding insns when splitting.
26412         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26413         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26414         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26415         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26416         (*cbranch_div0s: Delete.
26417         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
26418         Try to recombine with surrounding insns when splitting.  Add operand
26419         order variants.
26420         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26421         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26422         *addc_r_r_msb, *addc_2r_msb): Delete.
26423         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
26424         order variant.
26425         (*addc_negreg_t): New insn_and_split.
26426         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
26427         Try to recombine with surrounding insns when splitting.
26428         Add operand order variants.
26429         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
26430         insn_and_split patterns.
26431         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
26432         surrounding insns when splitting.
26433         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
26434         (*rotcl): Likewise.  Add zero_extract variant.
26435         (*ashrsi2_31): New insn_and_split.
26436         (*negc): Convert to insn_and_split.  Use treg_set_expr.
26437         (*zero_extend<mode>si2_disp_mem): Update comment.
26438         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
26439         condition.
26440         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
26441         with surrounding insns when splitting.
26442         (any_treg_expr_to_reg): New insn_and_split.
26443         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
26444         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
26445         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
26446         *zero_extract_2): New single bit zero extract patterns.
26447         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
26448         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
26449         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
26450         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
26451         set destination.
26452         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
26453         register_operand for set source.
26455 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
26457         * i386.opt (prefetch_sse): New targetsave.
26458         * i386.c (ix86_function_specific_save): Save prefetch_sse.
26459         (ix86_function_specific_restore): Restore prefetch_sse and initialize
26460         ix86_cost/ix86_tune_cost.
26462 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
26464         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
26465         Support the JIT by using 0 as the language type.
26467 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
26469         PR target/64317
26470         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
26471         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
26472         (mark_regno_live, process_bb_lives): Pass new parameter value to
26473         make_hard_regno_born.
26475 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
26477         PR rtl-optimization/63637
26478         PR rtl-optimization/60663
26479         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26480         if elt->cost is MAX_COST for ASM_OPERANDS.
26481         (find_sets_in_insn): Fix up comment typo.
26482         (cse_insn): Don't set src_volatile for all non-volatile
26483         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26484         or with "memory" clobber.  Set elt->cost to MAX_COST
26485         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
26486         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26488 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
26490         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26491         alternative 1.
26493 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
26495         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26496         libgcc/config/i386/elf-lib.h.
26498 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
26500         PR driver/64737
26501         * gcc.c (print_configuration): Don't print a blank line at the end
26502         here...
26503         (run_attempt): ... but here unstead.
26505         PR middle-end/64734
26506         * omp-low.c (scan_sharing_clauses): Don't ignore
26507         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
26508         on target data/update constructs.
26510 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26512         PR target/50928
26513         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
26514         (DEBUG_RELOAD): Removed define.
26515         (m32c_limit_reload_class): Enable traces with if DEBUG0.
26516         (m32c_function_arg): Added a type cast.
26517         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
26518         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
26519         * config/m32c/bitops.md (andqi3_16): Likewise.
26520         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
26521         (push_a01_l): Likewise.
26523 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
26525         PR jit/64721
26526         * main.c (main): Construct toplev instances with init_signals=true.
26527         * toplev.c (general_init): Add param "init_signals", and use it to
26528         conditionalize the calls to signal and host_hooks.extra_signals.
26529         (toplev::toplev): Add param "init_signals".
26530         (toplev::main): When invoking general_init, pass m_init_signals
26531         to control whether signal-handlers are installed.
26532         * toplev.h (toplev::toplev): Add param "init_signals".
26533         (toplev::m_init_signals): New field.
26535 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
26537         PR jit/64722
26538         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26539         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26540         latter may be affected by the former (e.g. on i686).
26542 2015-01-23  Martin Liska  <mliska@suse.cz>
26544         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26545         false positive during profiledbootstrap.
26547 2015-01-23  Tom de Vries  <tom@codesourcery.com>
26549         PR libgomp/64672
26550         * lto-opts.c (lto_write_options): Output non-explicit conservative
26551         -fno-openacc.
26552         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26553         (append_compiler_options): Pass -fopenacc through.
26555 2015-01-23  Tom de Vries  <tom@codesourcery.com>
26557         PR libgomp/64707
26558         * lto-opts.c (lto_write_options): Output non-explicit conservative
26559         -fno-openmp.
26560         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26561         (append_compiler_options): Pass -fopenmp through.
26563 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
26565         PR debug/64511
26566         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26567         GTY markup.
26569         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26570         * diagnostic.def (DK_ICE_NOBT): New kind.
26571         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26572         like DK_ICE, but never print backtrace.
26573         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26574         (internal_error_no_backtrace): New function.
26575         * gcc.c (execute): Use internal_error_no_backtrace instead of
26576         internal_error.
26578 2015-01-22  Jeff Law  <law@redhat.com>
26580         PR target/52076
26581         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26582         improve code density for small immediate to memory case.
26583         (insv): Better handle bitfield assignments when the field is
26584         being set to all ones.
26585         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26586         operand predicate.
26588 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26589             Jakub Jelinek  <jakub@redhat.com>
26591         PR middle-end/64729
26592         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26593         for !TARGET_LIBC_PROVIDES_SSP version and
26594         -fstack-protector-{all,strong,explicit} otherwise.
26595         * config/freebsd.h (LINK_SSP_SPEC): Handle
26596         -fstack-protector-{strong,explicit}.
26598 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
26599             H.J. Lu  <hongjiu.lu@intel.com>
26601         PR ipa/64694
26602         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26603         heap.
26605 2015-01-22  Wei Mi  <wmi@google.com>
26607         PR rtl-optimization/64557
26608         * dse.c (record_store): Call get_addr for mem_addr.
26609         (check_mem_read_rtx): Likewise.
26611 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
26613         * fold-const.c (const_binop): Add early return for non-tcc_binary.
26615 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
26617         * toplev.c (init_local_tick): Process the failure when read
26618         fails for random_seed.
26620         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26621         'pretty_name' to avoid memory overflow.
26623 2015-01-22  Richard Biener  <rguenther@suse.de>
26625         PR middle-end/64728
26626         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26627         abnormal coalescing on undefined SSA names.
26629 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
26631         PR target/64688
26632         PR target/64477
26633         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26634         for alternative 3.
26635         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26637 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
26639         PR middle-end/63325
26640         * fold-const.c (fold_checksum_tree): Don't include value of
26641         expr->decl_with_vis.symtab_node in the checksum.
26643 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26645         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26647 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26649         PR driver/64690
26650         * gcc.c (insert_comments): New function.
26651         (try_generate_repro): Call it.
26652         (append_text): Removed.
26654 2015-01-22  Richard Biener  <rguenther@suse.de>
26656         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26657         with IL incompatible options.  Properly honor user optimize
26658         attributes.
26660 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
26662         PR rtl-optimization/64682
26663         * combine.c (distribute_notes): When moving a death note for
26664         a register that is set in the new I2, make sure to put it
26665         before that new I2.
26667 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
26669         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26670         not TARGET_DEFAULT.
26672 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
26674         PR debug/64511
26675         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26676         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26677         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26679         PR sanitizer/64706
26680         * doc/invoke.texi (-fsanitize=vptr): Document.
26682         PR rtl-optimization/62078
26683         * dse.c: Include cfgcleanup.h.
26684         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26685         anything call purge_all_dead_edges and cleanup_cfg at the end
26686         of the pass.
26688 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
26690         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26691         edges.
26693 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26695         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26696         decl attribute.
26698 2015-01-21  David Sherwood  <david.sherwood@arm.com>
26699             Tejas Belagod <Tejas.Belagod@arm.com>
26701         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26702         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26703         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26704         Removed.
26706 2015-01-21  David Sherwood  <david.sherwood@arm.com>
26707             Tejas Belagod <Tejas.Belagod@arm.com>
26709         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26710         (aarch64_reverse_mask): New decls.
26711         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26712         (insn_count): New mode_attr.
26713         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26714         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26715         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26716         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26717         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26718         (aarch64_simd_st4): New patterns.
26719         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26720         (aarch64_reverse_mask): New functions.
26722 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
26724         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26725         Declare.
26726         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26727         addressing modes for BE.
26728         (aarch64_print_operand): Add 'R' specifier.
26729         (aarch64_simd_disambiguate_copy): Delete.
26730         (aarch64_simd_emit_reg_reg_move): New function.
26731         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26732         in define_splits for structural moves.
26733         (mov<mode>): Use less restrictive predicates.
26734         (*aarch64_mov<mode>): Simplify and only allow for LE.
26735         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26737 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
26739         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26741 2015-01-21  Richard Henderson  <rth@redhat.com>
26743         PR target/64669
26744         * ccmp.c (used_in_cond_stmt_p): Remove.
26745         (expand_ccmp_expr): Don't use it.
26747 2015-01-21  Nick Clifton  <nickc@redhat.com>
26749         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26750         PARALLELs.
26752 2015-01-21  Richard Biener  <rguenther@suse.de>
26754         PR middle-end/64313
26755         * tree-core.h (builtin_info, builtin_info_type): Turn from
26756         an object with two arrays into an array of an object with
26757         decl and two flags, implicit_p and declared_p.
26758         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
26759         set_builtin_decl, set_builtin_decl_implicit_p,
26760         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26761         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
26762         * builtins.c (builtin_info): Adjust.
26763         * gimplify.c (gimplify_addr_expr): References to builtins
26764         that have been declared by the user makes them eligible for
26765         use by the compiler.  Call set_builtin_decl_implicit_p on them.
26767 2015-01-20  Jeff Law  <law@redhat.com>
26769         PR target/59946
26770         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
26771         allow pc-relative addresses in operand predicates or constraints.
26773 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
26775         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
26776         neon on aarch32 processors for stringops.
26778 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26780         PR ipa/63576
26781         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
26783 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26785         PR lto/45375
26786         * ipa-inline.c: Include lto-streamer.h
26787         (report_inline_failed_reason): Output source file differences and
26788         flags on optimization/target node mismatch.
26789         (can_inline_edge_p): Consider caller to be the outer inline function;
26790         be less restrictive about matching opimize and optimize_size attributes.
26791         (inline_account_function_p): Break out from ...
26792         (inline_small_functions): ... here.
26793         * ipa-inline-transform.c (clone_inlined_nodes): Use
26794         inline_account_function_p.
26795         (inline_call): Use optimize attribution; use inline_account_function_p.
26796         (inline_transform): Use opt_for_fn.
26797         * ipa-inline.h (inline_account_function_p): Declare.
26799 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
26801         PR debug/64663
26802         * dwarf2out.c (decl_piece_node): Don't put bitsize into
26803         mode if bitsize <= 0.
26804         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
26805         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
26806         sizes and positions.
26808 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
26810         * config/nios2/nios2.c (nios2_asm_file_end): Implement
26811         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
26812         needed.
26813         (TARGET_ASM_FILE_END): Define.
26815 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26817         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26818         (struct tune_params): Use the enum.
26819         * arm.c (arm_*_tune): Update.
26820         (arm_option_override): Update.
26822 2015-01-20  Richard Biener  <rguenther@suse.de>
26824         PR ipa/64684
26825         * ipa-reference.c (add_static_var): Inline ...
26826         (analyze_function): ... here after splitting out from ...
26827         (is_proper_for_analysis): ... this.
26829 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
26831         PR target/64149
26832         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26833         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26834         replace the conditional with it's true branch.
26835         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26836         (arm_lra_p): Remove.
26838 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
26840         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26842 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26844         * config/tilegx/mul-tables.c: Move symtab.h include after
26845         coretypes.h include.
26846         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26847         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26848         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26849         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26850         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26852 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
26854         PR bootstrap/64676
26855         Revert:
26856         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
26858         PR rtl-optimization/64081
26859         * loop-iv.c (def_pred_latch_p): New function.
26860         (latch_dominating_def): Allow specific cases with non-single
26861         definitions.
26862         (iv_get_reaching_def): Likewise.
26863         (check_complex_exit_p): New function.
26864         (check_simple_exit): Use check_complex_exit_p to allow certain cases
26865         with exits not executing on any iteration.
26867 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26869         PR lto/45375
26870         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26871         to set branch cost.
26873 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26875         PR lto/45375
26876         * i386.c (gate): Check flag_expensive_optimizations and
26877         optimize_size.
26878         (ix86_option_override_internal): Drop optimize_size condition
26879         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26880         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26881         MASK_PREFER_AVX128.
26882         (ix86_avx256_split_vector_move_misalign,
26883         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26884         * sse.md (all uses of TARGET_PREFER_AVX128): Add
26885         optimize_insn_for_speed_p check.
26887 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
26889         * config/mips/mips.h (FP_ASM_SPEC): New define.
26890         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26891         instead.
26893 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
26895         PR target/53988
26896         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26897         nullptr for insn when reaching the first insn.
26898         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26899         (sh_insn_operands_modified_between_p): Add nullptr check.
26900         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
26901         sign extending mem load if the insn contains any UNSPEC or
26902         UNSPEC_VOLATILE.
26904 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26906         * params.def (inline-unit-growth): Drop to 15%.
26907         * invoke.texi (inline-unit-growth): Document change.
26909 2015-01-19  Martin Liska  <mliska@suse.cz>
26911         PR ipa/64668
26912         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26913         function for second argument of OBJ_TYPE_REF.
26915 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26917         PR ipa/64218
26918         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26919         whether function is an alias.
26921 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26923         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26924         cases.
26926 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
26928         PR rtl-optimization/64671
26929         * lra-remat.c (operand_to_remat): Don't consider jump and call
26930         insns.
26932 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
26934         PR target/59828
26935         * config/rs6000/default64.h: Include rs6000-cpus.def.
26936         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26937         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26938         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26939         and POWER8.
26940         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26941         POWER8.
26942         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26943         pseudo-op to specify assembler dialect.
26945 2015-01-19  Martin Liska  <mliska@suse.cz>
26947         PR ipa/64664
26948         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26949         Handle safe potentially removed nodes during filtering.
26951 2015-01-19  Martin Liska  <mliska@suse.cz>
26953         * doc/extend.texi (no_icf): Add new attribute description.
26954         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26955         where the pass attempts to merge a function with no_icf attribute.
26957 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26959         PR target/64532
26960         * doc/md.texi (ARM Options): Document register constraints.
26962 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
26963             Andrew Pinski  <apinski@cavium.com>
26965         PR target/64304
26966         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26967         (ashl<mode>3): Don't expand if operands[2] is not constant.
26969 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26971         PR target/64448
26972         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26973         Match xor-and-xor RTL pattern.
26975 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
26977         PR rtl-optimization/64081
26978         * loop-iv.c (def_pred_latch_p): New function.
26979         (latch_dominating_def): Allow specific cases with non-single
26980         definitions.
26981         (iv_get_reaching_def): Likewise.
26982         (check_complex_exit_p): New function.
26983         (check_simple_exit): Use check_complex_exit_p to allow certain cases
26984         with exits not executing on any iteration.
26986 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
26988         * common.opt (fgraphite): Fix a typo.
26990 2015-01-19  Felix Yang  <felix.yang@huawei.com>
26992         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26993         pattern.
26994         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26995         uminp, smax_nanp, smin_nanp): New builtins.
26996         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26997         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26998         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26999         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27000         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27001         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27002         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27003         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27004         vpminnms_f32): Rewrite using builtin functions.
27006 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
27008         PR libgomp/64625
27009         * omp-low.c (offload_symbol_decl): Remove variable.
27010         (get_offload_symbol_decl): Remove function.
27011         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27012         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27013         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27014         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27015         BUILT_IN_GOACC_UPDATE don't pass it at all.
27017 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
27019         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27020         callers.
27022 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
27024         * ipa-chkp.c (chkp_produce_thunks): Add early param
27025         to split thunks production into two passes.  Keep
27026         'always_inline' function bodies after the first pass.
27027         (pass_data_ipa_chkp_early_produce_thunks): New.
27028         (pass_ipa_chkp_early_produce_thunks): New.
27029         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27030         chkp_produce_thunks signature.
27031         (make_pass_ipa_chkp_early_produce_thunks): New.
27032         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27033         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27034         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27036 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
27038         * cgraph.c (cgraph_node::dump): Dump profile flags.
27040 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
27042         PR target/64652
27043         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27044         reg appear first in the parallel.
27046 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
27048         * ipa-reference.c (set_reference_optimization_summary,
27049         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27050         disabled.
27051         (ignore_module_statics): New static var.
27052         (propagate_bits): If ipa-reference is disabled, do not look into local
27053         properties.
27054         (analyze_function): Disable analysis when ipa_reference is disabled.
27055         (generate_summary): Do not dump when reference is disabled;
27056         collect vars accessed from functions with ipa-reference disabled.
27057         (get_read_write_all_from_node): When ipa-reference is disabled, use the
27058         node flags.
27059         (gate): Enable for LTO.
27060         (ignore_edge_p): New function.
27061         (propagate): Skip functions w/o ipa-reference analysis.
27062         * optc-save-gen.awk: Handle optimize_debug correctly.
27063         * opth-gen.awk: Likewise.
27064         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27065         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27066         fira-share-save-slots, fira-share-spill-slots,
27067         fmodulo-sched-allow-regmoves, fpartial-inlining,
27068         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27069         ftracer, ftree-parallelize-loops, fassociative-math,
27070         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27071         Optimization
27072         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27073         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27074         Optimization.
27075         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27076         Fix for IPA.
27078 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
27080         PR ipa/64378
27081         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27082         flag correctly.
27083         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27085 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
27087         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27088         Remove duplicate option listings.
27090 2015-01-18  Felix Yang  <felix.yang@huawei.com>
27092         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27093         (autofdo_source_profile::get_callsite_total_count,
27094         function_instance::get_function_instance_by_decl,
27095         string_table::get_index, string_table::get_index_by_decl,
27096         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27097         Fix comment typos. Reformatting and minor code rearrangement.
27099 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
27101         * config/rs6000/rs6000.md (probe_stack): Delete.
27102         (probe_stack_address): New.
27104 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
27106         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27107         to test for 32-bit ABIs, not !TARGET_POWERPC64.
27109 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
27111         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27112         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
27113         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
27114         snafu.
27115         (rs6000_libcall_value): Use the new function.
27117 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
27119         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27121 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
27123         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27124         implement a more precise life analysis for it during backward scan.
27126 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
27128         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27130 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
27132         PR rtl-optimization/52773
27133         * calls.c (emit_library_call_value): When pushing arguments use
27134         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27135         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
27136         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27138 2015-01-17  Jeff Law  <law@redhat.com>
27140         PR rtl-optimization/32790
27141         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27142         not ZERO_EXTEND in SET_DESTs.
27144 2015-01-17  Alan Modra  <amodra@gmail.com>
27146         * cprop.c (do_local_cprop): Revert last change.
27148 2015-01-16  DJ Delorie  <dj@redhat.com>
27149             Nick Clifton  <nickc@redhat.com>
27151         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27152         (addhi3_real): Likewise.  Fix [HL+0] syntax.
27153         (subqi3_real): Likewise.
27154         (subhi3_real): Likewise.
27155         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
27156         (cbranchhi4_real): Likewise.
27157         (cbranchhi4_real_inverted): Likewise.
27158         (cbranchsi4_real_lt): Likewise.
27159         (cbranchsi4_real_ge): Likewise.
27160         (cbranchsi4_real_ge): Likewise.
27161         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27162         (sub<mode>3_virt): Likewise.
27163         (cbranchqi4_virt): Likewise.
27164         (cbranchhi4_virt): Likewise.
27165         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27166         always use '[reg+imm]' even when imm is zero.
27167         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27168         (rl78_general_operand): New.
27169         (rl78_nonimmediate_operand): New.
27170         (rl78_nonfar_operand): Use them.
27171         (rl78_nonfar_nonimm_operand): Likewise.
27172         (rl78_stack_based_mem): Fix.
27173         * config/rl78/constraints.md (Ibqi): New.
27174         (IBqi): New.
27175         (Wsa): New.
27176         (Wsf): New.
27177         (Cs1): Fix.
27178         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27179         (iorqi3): Likewise.
27180         (xorqi3): Likewise.
27181         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27183         * config/rl78/constrains (Qs8): New constraint.
27184         * config/rl78/rl78.c (rl78_flags_already_set): New function.
27185         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27186         * config/rl78/rl78-real.md (update_Z): New attribute.
27187         Update patterns to set it.
27188         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27189         shorter compare and branch sequence can be used.
27190         (cbranchhi4_real): Likewise.
27191         (cbranchhi4_real_inverted): Likewise.
27193         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27194         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27195         address space.
27196         * config/rl78/rl78.c (rl78_get_name_encoding): New.
27197         (rl78_option_override): Allow -mes0 only if C.
27198         (characterize_address): Support subregs of symbol_refs.
27199         (rl78_addr_space_address_mode): Move.  Add __near.
27200         (rl78_far_p): Likewise.
27201         (rl78_addr_space_pointer_mode): Likewise.
27202         (rl78_as_legitimate_address): Likewise.
27203         (rl78_addr_space_subset_p): Likewise.
27204         (rl78_addr_space_convert): Likewise.
27205         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27206         symbols with -mes0.
27207         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
27208         addressing.
27209         (rl78_alloc_physical_registers_op1): Change logic to prefer
27210         symbol[BC] addressing.
27211         (frodata_section): New.
27212         (rl78_asm_init_sections): Initialize it.
27213         (rl78_select_section): Put __far readonly symbols in .frodata.
27214         (rl78_make_type_far): New.
27215         (rl78_insert_attributes): Force all readonly symbols to be
27216         __far when -mes0.
27217         (rl78_asm_out_integer): New.
27218         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27219         * config/rl78/rl78.opt (-mes0): New.
27221         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27222         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27223         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27224         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27225         (rl78_saddr_p): New.
27226         (rl78_output_aligned_common): New.
27227         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27228         (rl78_handle_saddr_attribute): New.
27229         (rl78_handle_naked_attribute): New.
27230         (rl78_attribute_table): Add saddr.
27231         (rl78_print_operand_1): Don't print '!' on saddr operands.
27232         (rl78_print_operand_1): Strip encodings.
27233         (rl78_sfr_p): New.
27234         (rl78_strip_name_encoding): New.
27235         (rl78_attrlist_to_encoding): New.
27236         (rl78_encode_section_info): New.
27237         (rl78_asm_init_sections): New.
27238         (rl78_select_section): New.
27239         (rl78_output_labelref): New.
27240         (rl78_output_aligned_common): New.
27241         (rl78_asm_out_integer): New.
27242         (rl78_asm_ctor_dtor): New.
27243         (rl78_asm_constructor): New.
27244         (rl78_asm_destructor): New.
27246         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27247         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27248         (transcode_memory_rtx): Update.
27249         (rl78_expand_epilogue): Use A_REG instead of 0.
27251 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27253         * config/arm/arm-protos.h (struct tune_params): New field
27254         sched_autopref_queue_depth.
27255         * config/arm/arm.c (sched-int.h): Include header.
27256         (arm_first_cycle_multipass_dfa_lookahead_guard,)
27257         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27258         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27259         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27260         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27261         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27262         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27263         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27264         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
27265         * config/arm/t-arm (arm.o): Update.
27266         * haifa-sched.c (update_insn_after_change): Update.
27267         (rank_for_schedule): Use auto-prefetcher model, if requested.
27268         (autopref_multipass_init): New static function.
27269         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27270         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27271         variable for debug dumps.
27272         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27273         (autopref_multipass_dfa_lookahead_guard): New global function that
27274         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27275         (init_h_i_d): Update.
27276         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27277         * sched-int.h (enum autopref_multipass_data_status): New const enum.
27278         (autopref_multipass_data_): Structure for auto-prefetcher data.
27279         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27280         (struct _haifa_insn_data:autopref_multipass_data): New field.
27281         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27282         (autopref_multipass_dfa_lookahead_guard): Declare.
27284 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27286         * rtlanal.c (get_base_term): Handle SCRATCH.
27288 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27290         * config/aarch64/aarch64.c
27291         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27292         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27293         * config/arm/arm.c
27294         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27295         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27297 2015-01-17  Alan Modra  <amodra@gmail.com>
27299         * cprop.c (do_local_cprop): Disallow replacement of fixed
27300         hard registers.
27302 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27304         PR target/62066
27305         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27306         early return 0.
27308 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27310         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27311         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27313 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27315         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27316         * config/arm/thumb1.md: ... Here.
27318 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
27320         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27321         TImode for TARGET_32BIT.
27323 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
27325         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27326         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27327         as ...
27328         (rs6000_abi_word_mode): New function.
27330 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
27332         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27333         instead of UNITS_PER_WORD to describe the size of stack slots.
27335 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
27337         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27338         as rs6000_promote_function_mode.  Move comment to there.
27339         (rs6000_promote_function_mode): New function.
27341 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
27343         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27344         -mpowerpc64 is active.
27346 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
27348         PR middle-end/64353
27349         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27350         virtuals on start.
27352 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
27354         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27355         introduced in revision 219724.
27357 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27358             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27360         PR target/64263
27361         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27362         destination is not a GP reg.
27363         (*movdi_aarch64): Likewise.
27365 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
27367         PR target/64623
27368         * config/rs6000/default64.h: Revert ISA change.
27370 2015-01-16  Richard Biener  <rguenther@suse.de>
27372         PR middle-end/64614
27373         * tree-ssa-uninit.c: Include tree-cfg.h.
27374         (MAX_SWITCH_CASES): New define.
27375         (convert_control_dep_chain_into_preds): Handle switch statements.
27376         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27377         (normalize_one_pred_1): Do not split bit-manipulations.
27378         Record (x & CST).
27380 2015-01-16  Richard Biener  <rguenther@suse.de>
27382         PR tree-optimization/64568
27383         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27384         complex load rewriting for TARGET_MEM_REFs.
27386 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
27388         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27390 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
27392         PR target/64149
27393         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27394         variable.
27395         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27396         (aarch64_lra_p): Remove.
27398 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
27400         PR target/64363
27401         * ipa-chkp.h (chkp_instrumentable_p): New.
27402         * ipa-chkp.c: Include tree-inline.h.
27403         (chkp_instrumentable_p): New.
27404         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27405         Fix processing of not instrumentable functions.
27406         (chkp_versioning): Use chkp_instrumentable_p. Warn about
27407         not instrumentable functions.
27408         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27409         chkp_instrumentable_p.
27410         * tree-inline.h (copy_forbidden): New.
27411         * tree-inline.c (copy_forbidden): Not static anymore.
27413 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27415         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27416         ptr1, ptr2 unused.
27418 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
27420         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27421         type OP_OUT to OP_INOUT.
27423 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
27425         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27426         (high x) y) to y if x and y have the same base.
27428 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
27430         * config/arm/cortex-a57.md: New.
27431         * config/aarch64/aarch64.md: Include it.
27432         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
27433         * config/aarch64/aarch64-tune.md: Regenerate.
27435 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
27437         PR target/64015
27438         * ccmp.c (expand_ccmp_next): New function.
27439         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
27440         and compare insn sequence.
27441         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
27442         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
27443         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
27444         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
27445         (*ccmp_ior): Changed to ccmp_ior<mode>.
27446         (cmp<mode>): New pattern.
27447         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
27448         parameters.
27449         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
27451 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
27453         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
27454         _mm256_bsrli_epi128): New.
27455         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
27457 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
27459         * expmed.c (store_bit_field_using_insv): Improve warning message.
27460         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
27462 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
27464         PR rtl-optimization/64011
27465         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
27466         there is partial overflow.
27468 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
27470         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
27471         prototype.
27472         (nds32_expand_epilogue_v3pop): Likewise.
27473         * config/nds32/nds32.md (sibcall): Define this for sibling call
27474         optimization.
27475         (sibcall_register): Likewise.
27476         (sibcall_immediate): Likewise.
27477         (sibcall_value): Likewise.
27478         (sibcall_value_register): Likewise.
27479         (sibcall_value_immediate): Likewise.
27480         (sibcall_epilogue): Likewise.
27481         (epilogue): Pass false to indicate this is not a sibcall epilogue.
27482         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27483         (nds32_expand_epilogue_v3pop): Likewise.
27485 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
27487         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27488         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27489         (return_internal): New.
27490         (return): Define this named pattern.
27491         (simple_return): Define this named pattern.
27492         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27493         pattern instead of unspec_volatile_func_return.
27494         (nds32_expand_epilogue_v3pop): Likewise.
27495         (nds32_can_use_return_insn): New function.
27497 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
27499         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27500         * config/nds32/nds32.md (pop25return): New.
27501         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27502         pop25return pattern.
27504 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
27506         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
27507         -mforbid-fp-as-gp, and -mex9 options.
27509 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
27511         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
27512         remove -mgp-direct option.
27514 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
27516         * doc/invoke.texi (--param early-inlining-insns): Update default value.
27517         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
27519 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
27521         * ipa-inline.c (inline_small_functions): Work around hints
27522         cache issue.
27524 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
27526         PR target/59710
27527         * doc/invoke.texi (Option Summary): Document new Nios II
27528         -mgpopt= syntax.
27529         (Nios II Options): Likewise.
27530         * config/nios2/nios2.opt: Add -mgpopt= option support.
27531         Modify existing -mgpopt and -mno-gpopt options to be aliases.
27532         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27533         * config/nios2/nios2.c (nios2_option_override): Adjust
27534         -mgpopt defaulting.
27535         (nios2_in_small_data_p): Return true for explicit small data
27536         sections even with -G0.
27537         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27538         option choices.
27540 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
27542         PR ipa/64612
27543         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27544         of comdat locals.
27545         (inline_call): Fix removal of aliases.
27547 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
27549         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27550         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27551         * opts.c (common_handle_option): Add -fsanitize=vptr.
27552         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27553         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27554         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27555         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27556         (ubsan_expand_vptr_ifn): New prototype.
27557         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27558         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27559         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27560         expand_LOOP_VECTORIZED): Make argument nameless, remove
27561         ATTRIBUTE_UNUSED.
27562         (expand_UBSAN_VPTR): New function.
27563         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27564         in fn spec.
27565         (UBSAN_VPTR): New internal function.
27566         * sanopt.c (tree_map_traits): Renamed to ...
27567         (sanopt_tree_map_traits): ... this.
27568         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27569         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27570         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
27571         (maybe_optimize_ubsan_vptr_ifn): New function.
27572         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27573         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
27574         -fsanitize=vptr.
27575         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27576         internal calls like pure functions for aliasing, even when they
27577         have other side-effects that prevent making them ECF_PURE.
27578         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27579         (ubsan_expand_vptr_ifn): New function.
27581 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
27583         PR rtl-optimization/64110
27584         * stmt.c (parse_output_constraint): Process '^' and '$'.
27585         (parse_input_constraint): Ditto.
27586         * lra-constraints.c (process_alt_operands): Process the new
27587         constraints.
27588         * ira-costs.c (record_reg_classes): Process the new constraint
27589         '^'.
27590         * genoutput.c (indep_constraints): Add '^' and '$'.
27591         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27592         * doc/md.texi: Add description of the new constraints.
27594 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
27595             Bernd Schmidt  <bernds@codesourcery.com>
27596             Cesar Philippidis  <cesar@codesourcery.com>
27597             James Norris  <jnorris@codesourcery.com>
27598             Tom de Vries  <tom@codesourcery.com>
27599             Ilmir Usmanov  <i.usmanov@samsung.com>
27600             Dmitry Bocharnikov  <dmitry.b@samsung.com>
27601             Evgeny Gavrin  <e.gavrin@samsung.com>
27602             Jakub Jelinek  <jakub@redhat.com>
27604         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27605         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27606         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27607         New function types.
27608         * builtins.c: Include "gomp-constants.h".
27609         (expand_builtin_acc_on_device): New function.
27610         (expand_builtin, is_inexpensive_builtin): Handle
27611         BUILT_IN_ACC_ON_DEVICE.
27612         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27613         New macros.
27614         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27615         flag_openmp.
27616         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27617         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27618         i386/intelmic-offload.h.
27619         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27620         to libgomp and its dependencies.
27621         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27622         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27623         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27624         * config/ia64/hpux.h (LIB_SPEC): Likewise.
27625         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27626         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27627         * doc/generic.texi: Update for OpenACC changes.
27628         * doc/gimple.texi: Likewise.
27629         * doc/invoke.texi: Likewise.
27630         * doc/sourcebuild.texi: Likewise.
27631         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27632         GF_OMP_FOR_KIND_OACC_LOOP.
27633         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27634         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27635         GF_OMP_TARGET_KIND_OACC_UPDATE,
27636         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27637         Dump more data.
27638         * gimple.c: Update comments for OpenACC changes.
27639         * gimple.def: Likewise.
27640         * gimple.h: Likewise.
27641         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27642         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27643         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27644         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27645         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27646         appropriate place.
27647         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27648         * gimplify.c: Include "gomp-constants.h".
27649         Update comments for OpenACC changes.
27650         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27651         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27652         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27653         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27654         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27655         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27656         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27657         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27658         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27659         OMP_CLAUSE_SEQ.
27660         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27661         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
27662         OMP_CLAUSE_SET_MAP_KIND.
27663         (gimplify_oacc_cache): New function.
27664         (gimplify_omp_for): Handle OACC_LOOP.
27665         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27666         OACC_DATA.
27667         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27668         OACC_EXIT_DATA, OACC_UPDATE.
27669         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27670         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27671         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27672         (gimplify_body): Consider flag_openacc next to flag_openmp.
27673         * lto-streamer-out.c: Include "gomp-constants.h".
27674         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27675         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27676         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27677         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27678         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27679         (BUILT_IN_ACC_ON_DEVICE): New builtins.
27680         * omp-low.c: Include "gomp-constants.h".
27681         Update comments for OpenACC changes.
27682         (struct omp_context): Add reduction_map, gwv_below, gwv_this
27683         members.
27684         (extract_omp_for_data, use_pointer_for_field, install_var_field)
27685         (new_omp_context, delete_omp_context, scan_sharing_clauses)
27686         (create_omp_child_function, scan_omp_for, scan_omp_target)
27687         (check_omp_nesting_restrictions, lower_reduction_clauses)
27688         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27689         Update for OpenACC changes.
27690         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27691         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27692         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27693         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27694         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27695         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
27696         OMP_CLAUSE_MAP_*.
27697         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27698         Handle GF_OMP_FOR_KIND_OACC_LOOP.
27699         (expand_omp_target, lower_omp_target): Handle
27700         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27701         GF_OMP_TARGET_KIND_OACC_UPDATE,
27702         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27703         GF_OMP_TARGET_KIND_OACC_DATA.
27704         (pass_expand_omp::execute, execute_lower_omp)
27705         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27706         flag_openmp.
27707         (offload_symbol_decl): New variable.
27708         (oacc_get_reduction_array_id, oacc_max_threads)
27709         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27710         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27711         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27712         (oacc_gimple_assign, oacc_initialize_reduction_data)
27713         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27714         functions.
27715         (is_targetreg_ctx): Remove function.
27716         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27717         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27718         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27719         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27720         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27721         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27722         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27723         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27724         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27725         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27726         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27727         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27728         * tree-core.h: Update comments for OpenACC changes.
27729         (enum omp_clause_map_kind): Remove.
27730         (struct tree_omp_clause): Change type of map_kind member from enum
27731         omp_clause_map_kind to unsigned char.
27732         * tree-inline.c: Update comments for OpenACC changes.
27733         * tree-nested.c: Likewise.  Include "gomp-constants.h".
27734         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27735         (convert_tramp_reference_stmt, convert_gimple_call): Update for
27736         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
27737         OMP_CLAUSE_SET_MAP_KIND.
27738         * tree-pretty-print.c: Include "gomp-constants.h".
27739         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27740         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27741         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27742         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27743         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27744         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
27745         instead of OMP_CLAUSE_MAP_*.
27746         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27747         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27748         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27749         * tree-streamer-in.c: Include "gomp-constants.h".
27750         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27751         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
27752         * tree-streamer-out.c: Include "gomp-constants.h".
27753         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
27754         OMP_CLAUSE_MAP_*.
27755         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
27756         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
27757         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
27758         * tree.c (omp_clause_num_ops): Update accordingly.
27759         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
27760         Likewise.
27761         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
27762         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
27763         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
27764         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
27765         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
27766         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
27767         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
27768         (OMP_CLAUSE_SET_MAP_KIND): New macro.
27769         * varpool.c (varpool_node::get_create): Consider flag_openacc next
27770         to flag_openmp.
27771         * config/i386/intelmic-offload.h: New file.
27772         * config/nvptx/offload.h: Likewise.
27774 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27776         * explow.h: Remove duplicate contents.
27777         * dojump.h: Likewise.
27779 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
27781         * arm.c (arm_xgene_tune): Add default initializer for instruction
27782         fusion.
27784 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
27786         PR ipa/64068
27787         PR ipa/64559
27788         * ipa.c (symbol_table::remove_unreachable_nodes):
27789         Do not put abstract origins into boundary.
27791 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
27793         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
27794         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
27796 2015-01-15  Steve Ellcey  <sellcey@mips.com>
27798         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
27799         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
27800         builtins.def, and chkp-builtins.def.
27802 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
27804         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
27805         ISA 2.7 (POWER8).
27807 2015-01-15  Richard Biener  <rguenther@suse.de>
27809         PR tree-optimization/61743
27810         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
27811         information on PHIs for some simple cases.
27813 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27815         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27816         Include xgene1.md.
27817         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27818         * config/arm/arm-cores.def (xgene1): New entry.
27819         * config/arm/arm-tables.opt: Regenerate.
27820         * config/arm/arm-tune.md: Regenerate.
27821         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27823 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
27825         * tree-if-conv.c: Include hash-map.h.
27826         (aggressive_if_conv): New variable.
27827         (fold_build_cond_expr): Add simplification of non-zero condition.
27828         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27829         destination block is not always executed.
27830         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27831         than two predecessors if AGGRESSIVE_IF_CONV is true.
27832         (if_convertible_stmt_p): Fix commentary.
27833         (all_preds_critical_p): New function.
27834         (has_pred_critical_p): New function.
27835         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27836         BB can have more than two predecessors and all incoming edges can be
27837         critical.
27838         (predicate_bbs): Skip predication for loop exit block, use build2_loc
27839         to compute predicate for true edge.
27840         (find_phi_replacement_condition): Delete this function.
27841         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27842         Allow interchange PHI arguments if EXTENDED is false.
27843         Change check that block containing reduction statement candidate
27844         is predecessor of phi-block since phi may have more than two arguments.
27845         (phi_args_hash_traits): New helper structure.
27846         (struct phi_args_hash_traits): New type.
27847         (phi_args_hash_traits::hash): New function.
27848         (phi_args_hash_traits::equal_keys): New function.
27849         (gen_phi_arg_condition): New function.
27850         (predicate_scalar_phi): Add handling of phi nodes with more than two
27851         arguments, delete COND and TRUE_BB arguments, insert body of
27852         find_phi_replacement_condition to predicate ordinary phi nodes.
27853         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27854         delete call of find_phi_replacement_condition and invoke
27855         predicate_scalar_phi with two arguments.
27856         (insert_gimplified_predicates): Add assert that non-predicated block
27857         don't have statements to insert.
27858         (ifcvt_split_critical_edges): New function.
27859         (ifcvt_split_def_stmt): Likewise.
27860         (ifcvt_walk_pattern_tree): Likewise.
27861         (stmt_is_root_of_bool_pattern): Likewise.
27862         (ifcvt_repair_bool_pattern): Likewise.
27863         (ifcvt_local_dce): Likewise.
27864         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27865         is copy of inner or outer loop force_vectorize field, invoke
27866         ifcvt_split_critical_edges, ifcvt_local_dce and
27867         ifcvt_repair_bool_pattern for aggressive if-conversion.
27869 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
27871         * config/aarch64/aarch64.md: Include xgene1.md.
27872         * config/aarch64/xgene1.md: New file.
27874 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27876         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27877         xgene1 (APM XGene-1) core definition.
27878         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27879         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27880         * doc/invoke.texi: Document -mcpu=xgene1.
27882 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27884         * dojump.h: New header file.
27885         * explow.h: Likewise.
27886         * expr.h: Remove includes.
27887         Move expmed.c prototypes to expmed.h.
27888         Move dojump.c prototypes to dojump.h.
27889         Move alias.c prototypes to alias.h.
27890         Move explow.c prototypes to explow.h.
27891         Move calls.c prototypes to calls.h.
27892         Move emit-rtl.c prototypes to emit-rtl.h.
27893         Move varasm.c prototypes to varasm.h.
27894         Move stmt.c prototypes to stmt.h.
27895         (saved_pending_stack_adjust): Move to dojump.h.
27896         (adjust_address): Move to explow.h.
27897         (adjust_address_nv): Move to emit-rtl.h.
27898         (adjust_bitfield_address): Likewise.
27899         (adjust_bitfield_address_size): Likewise.
27900         (adjust_bitfield_address_nv): Likewise.
27901         (adjust_automodify_address_nv): Likewise.
27902         * explow.c (expr_size): Move to expr.c.
27903         (int_expr_size): Likewise.
27904         (tree_expr_size): Likewise.
27905         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27906         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27907         * genemit.c (main): Generate includes statistics.h, real.h,
27908         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27909         stmt.h.
27910         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27911         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27912         explow.h, emit-rtl.h, stmt.h.
27913         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27914         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27915         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27916         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27917         emit-rtl.h, varasm.h, stmt.h.
27918         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27919         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27920         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27921         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27922         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27923         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27924         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27925         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27926         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27927         tm.h tree.h varasm.h vec.h wide-int.h.
27928         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27929         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27930         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27931         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27932         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27933         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27934         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27935         * loop-iv.c: Likewise.
27936         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27937         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27938         statistics.h stmt.h tree.h varasm.h wide-int.h.
27939         * lra-constraints.c: Likewise.
27940         * lra-eliminations.c: Likewise.
27941         * lra-lives.c: Likewise.
27942         * lra-remat.c: Likewise.
27943         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27944         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27945         statistics.h stmt.h tree.h varasm.h wide-int.h.
27946         * hw-doloop.c: Likewise.
27947         * ira-color.c: Likewise.
27948         * ira-emit.c: Likewise.
27949         * loop-doloop.c: Likewise.
27950         * loop-invariant.c: Likewise.
27951         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27952         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27953         statistics.h stmt.h tree.h varasm.h wide-int.h.
27954         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27955         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27956         statistics.h stmt.h tree.h varasm.h wide-int.h.
27957         * combine-stack-adj.c: Likewise.
27958         * cse.c: Likewise.
27959         * ddg.c: Likewise.
27960         * ifcvt.c: Likewise.
27961         * ira-costs.c: Likewise.
27962         * jump.c: Likewise.
27963         * lra-coalesce.c: Likewise.
27964         * lra-spills.c: Likewise.
27965         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27966         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27967         stmt.h varasm.h wide-int.h.
27968         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27969         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27970         varasm.h.
27971         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27972         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27973         statistics.h stmt.h varasm.h wide-int.h.
27974         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27975         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27976         varasm.h wide-int.h.
27977         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27978         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27979         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27980         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27981         statistics.h stmt.h.
27982         * config/tilepro/tilepro.c: Likewise.
27983         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27984         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27985         * config/pdp11/pdp11.c: Likewise.
27986         * config/xtensa/xtensa.c: Likewise.
27987         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27988         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27989         varasm.h.
27990         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27991         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27992         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27993         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27994         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27995         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27996         * rtl-chkp.c: Likewise.
27997         * tree-chkp-opt.c: Likewise.
27998         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27999         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28000         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28001         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28002         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28003         statistics.h stmt.h.
28004         * tree-vect-data-refs.c: Likewise.
28005         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28006         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28007         rtl.h statistics.h stmt.h varasm.h.
28008         * internal-fn.c: Likewise.
28009         * ipa-icf-gimple.c: Likewise.
28010         * lto-section-out.c: Likewise.
28011         * tree-data-ref.c: Likewise.
28012         * tree-nested.c: Likewise.
28013         * tree-outof-ssa.c: Likewise.
28014         * tree-predcom.c: Likewise.
28015         * tree-pretty-print.c: Likewise.
28016         * tree-scalar-evolution.c: Likewise.
28017         * tree-ssa-strlen.c: Likewise.
28018         * tree-vect-loop.c: Likewise.
28019         * tree-vect-patterns.c: Likewise.
28020         * tree-vect-slp.c: Likewise.
28021         * tree-vect-stmts.c: Likewise.
28022         * tsan.c: Likewise.
28023         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28024         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28025         stmt.h.
28026         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28027         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28028         statistics.h stmt.h varasm.h.
28029         * loop-unroll.c: Likewise.
28030         * ubsan.c: Likewise.
28031         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28032         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28033         stmt.h varasm.h.
28034         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28035         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28036         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28037         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28038         statistics.h stmt.h.
28039         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28040         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28041         statistics.h stmt.h varasm.h.
28042         * gimple-match-head.c: Likewise.
28043         * lto-cgraph.c: Likewise.
28044         * lto-section-in.c: Likewise.
28045         * lto-streamer-in.c: Likewise.
28046         * lto-streamer-out.c: Likewise.
28047         * tree-affine.c: Likewise.
28048         * tree-cfg.c: Likewise.
28049         * tree-cfgcleanup.c: Likewise.
28050         * tree-if-conv.c: Likewise.
28051         * tree-into-ssa.c: Likewise.
28052         * tree-ssa-alias.c: Likewise.
28053         * tree-ssa-copyrename.c: Likewise.
28054         * tree-ssa-dse.c: Likewise.
28055         * tree-ssa-forwprop.c: Likewise.
28056         * tree-ssa-live.c: Likewise.
28057         * tree-ssa-math-opts.c: Likewise.
28058         * tree-ssa-pre.c: Likewise.
28059         * tree-ssa-sccvn.c: Likewise.
28060         * tree-tailcall.c: Likewise.
28061         * tree-vect-generic.c: Likewise.
28062         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28063         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28064         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28065         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28066         * varasm.c: Likewise.
28067         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28068         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28069         varasm.h.
28070         * init-regs.c: Likewise.
28071         * ira.c: Likewise.
28072         * omp-low.c: Likewise.
28073         * stack-ptr-mod.c: Likewise.
28074         * tree-ssa-reassoc.c: Likewise.
28075         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28076         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28077         varasm.h.
28078         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28079         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28080         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28081         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28082         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28083         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28084         * tree-ssa-phiopt.c: Likewise.
28085         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28086         fixed-value.h hashtab.h real.h statistics.h stmt.h.
28087         * config/fr30/fr30.c: Likewise.
28088         * config/frv/frv.c: Likewise.
28089         * expr.c: Likewise.
28090         * final.c: Likewise.
28091         * optabs.c: Likewise.
28092         * passes.c: Likewise.
28093         * simplify-rtx.c: Likewise.
28094         * stmt.c: Likewise.
28095         * toplev.c: Likewise.
28096         * var-tracking.c: Likewise.
28097         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28098         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28099         * lower-subreg.c: Likewise.
28100         * postreload-gcse.c: Likewise.
28101         * ree.c: Likewise.
28102         * reginfo.c: Likewise.
28103         * store-motion.c: Likewise.
28104         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28105         fixed-value.h hashtab.h real.h stmt.h varasm.h.
28106         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28107         fixed-value.h hashtab.h statistics.h stmt.h.
28108         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28109         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28110         * except.c: Likewise.
28111         * explow.c: Likewise.
28112         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28113         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28114         varasm.h.
28115         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28116         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28117         * tree-ssa-structalias.c: Likewise.
28118         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28119         fixed-value.h insn-config.h real.h statistics.h.
28120         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28121         fixed-value.h insn-config.h real.h statistics.h stmt.h.
28122         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28123         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28124         * cfgbuild.c: Likewise.
28125         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28126         fixed-value.h real.h rtl.h statistics.h stmt.h.
28127         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28128         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28129         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28130         fixed-value.h real.h statistics.h stmt.h.
28131         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28132         fixed-value.h real.h statistics.h stmt.h varasm.h.
28133         * cprop.c: Likewise.
28134         * modulo-sched.c: Likewise.
28135         * postreload.c: Likewise.
28136         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28137         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28138         statistics.h stmt.h varasm.h.
28139         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28140         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28141         rtl.h statistics.h stmt.h varasm.h.
28142         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28143         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28144         varasm.h.
28145         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28146         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28147         varasm.h.
28148         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28149         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28150         varasm.h.
28151         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28152         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28153         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28154         function.h real.h statistics.h stmt.h varasm.h.
28155         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28156         insn-config.h real.h statistics.h stmt.h.
28157         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28158         statistics.h stmt.h.
28159         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28160         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28161         statistics.h stmt.h varasm.h.
28162         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28163         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28164         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28165         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28166         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28167         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28168         statistics.h stmt.h varasm.h.
28169         * ipa-polymorphic-call.c: Likewise.
28170         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28171         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28172         statistics.h stmt.h.
28173         * config/c6x/c6x.c: Likewise.
28174         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28175         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28176         statistics.h stmt.h varasm.h.
28177         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28178         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28179         stmt.h varasm.h.
28180         * ipa-split.c: Likewise.
28181         * tree-eh.c: Likewise.
28182         * tree-ssa-dce.c: Likewise.
28183         * tree-ssa-loop-niter.c: Likewise.
28184         * tree-vrp.c: Likewise.
28185         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28186         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28187         stmt.h.
28188         * config/nds32/nds32-fp-as-gp.c: Likewise.
28189         * config/nds32/nds32-intrinsic.c: Likewise.
28190         * config/nds32/nds32-isr.c: Likewise.
28191         * config/nds32/nds32-md-auxiliary.c: Likewise.
28192         * config/nds32/nds32-memory-manipulation.c: Likewise.
28193         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28194         * config/nds32/nds32-predicates.c: Likewise.
28195         * config/nds32/nds32.c: Likewise.
28196         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28197         fixed-value.h hashtab.h real.h statistics.h.
28198         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28199         fixed-value.h hashtab.h real.h statistics.h stmt.h.
28200         * config/arm/arm.c: Likewise.
28201         * config/avr/avr.c: Likewise.
28202         * config/bfin/bfin.c: Likewise.
28203         * config/h8300/h8300.c: Likewise.
28204         * config/i386/i386.c: Likewise.
28205         * config/ia64/ia64.c: Likewise.
28206         * config/iq2000/iq2000.c: Likewise.
28207         * config/m32c/m32c.c: Likewise.
28208         * config/m32r/m32r.c: Likewise.
28209         * config/m68k/m68k.c: Likewise.
28210         * config/mcore/mcore.c: Likewise.
28211         * config/mep/mep.c: Likewise.
28212         * config/mips/mips.c: Likewise.
28213         * config/mn10300/mn10300.c: Likewise.
28214         * config/moxie/moxie.c: Likewise.
28215         * config/pa/pa.c: Likewise.
28216         * config/rl78/rl78.c: Likewise.
28217         * config/rx/rx.c: Likewise.
28218         * config/s390/s390.c: Likewise.
28219         * config/sh/sh.c: Likewise.
28220         * config/sparc/sparc.c: Likewise.
28221         * config/spu/spu.c: Likewise.
28222         * config/stormy16/stormy16.c: Likewise.
28223         * config/v850/v850.c: Likewise.
28224         * config/vax/vax.c: Likewise.
28225         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28226         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28227         * config/msp430/msp430.c: Likewise.
28228         * predict.c: Likewise.
28229         * value-prof.c: Likewise.
28230         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28231         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28232         * config/microblaze/microblaze.c: Likewise.
28233         * config/nios2/nios2.c: Likewise.
28234         * config/rs6000/rs6000.c: Likewise.
28235         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28236         insn-config.h real.h rtl.h statistics.h stmt.h.
28237         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28238         insn-config.h real.h statistics.h stmt.h.
28239         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28240         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28241         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28242         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28243         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28244         fixed-value.h real.h statistics.h stmt.h.
28245         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28246         fixed-value.h statistics.h stmt.h.
28247         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28248         stmt.h.
28250 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
28252         * gengtype.c (create_user_defined_type): Workaround
28253         -Wmaybe-uninitialized false positives.
28254         * cse.c (fold_rtx): Likewise.
28255         * loop-invariant.c (gain_for_invariant): Likewise.
28257 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28259         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28260         set the memory attributes in all cases but clear MEM_EXPR if need be.
28262 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
28264         PR tree-optimization/64434
28265         * cfgexpand.c (reorder_operands): New function.
28266         (expand_gimple_basic_block): Insert call of reorder_operands if
28267         optimized is true.
28269 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
28271         * config/mips/micromips.md (*swp): Remove explicit parallel.
28272         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28273         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28274         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28275         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28276         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28277         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28278         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28279         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28280         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28281         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28282         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28283         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28284         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28285         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28286         (mips_wrdsp): Likewise.
28287         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28288         parallel.
28289         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28290         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28291         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28292         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28293         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28294         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28295         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28296         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28297         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28299 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
28301         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28302         (mips_print_operand): Support 'y' to print exact log2 in decimal
28303         of a const_int.
28304         * config/mips/mips.h (ISA_HAS_LSA): New define.
28305         (ISA_HAS_DLSA): Likewise.
28306         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28307         * config/mips/predicates.md (const_immlsa_operand): New predicate.
28309 2015-01-15  Martin Liska  <mliska@suse.cz>
28311         PR target/64377
28312         * optc-save-gen.awk: Add support for array types.
28314 2015-01-15  Richard Biener  <rguenther@suse.de>
28316         PR middle-end/64365
28317         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28318         for MEM_REF access functions with the same base can never partially
28319         overlap.
28321 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
28323         * common.opt: New option -fstack-protector-explicit.
28324         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28325         (stack_protect_decl_phase): Handle stack_protect attribute for
28326         explicit stack protection requests.
28327         (expand_used_vars): Similarly.
28328         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28329         * doc/extend.texi: Add documentation for "stack_protect" attribute.
28330         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28332 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
28334         PR target/53988
28335         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28336         reg-reg copies.
28337         (sh_extending_set_of_reg): New struct.
28338         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28339         sh_remove_reg_dead_or_unused_notes): New Declarations.
28340         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28341         sh_find_extending_set_of_reg, sh_split_tst_subregs,
28342         sh_extending_set_of_reg::use_as_extended_reg): New functions.
28343         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28344         convert to insn_and_split and use new function sh_split_tst_subregs.
28346 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
28348         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28349         option.
28350         (Optimization Options): Move -fuse-ld documentation to...
28351         (Link Options): ...here.
28353 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
28355         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28356         offsets.
28357         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28358         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28359         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28360         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28361         instead of ZR for the memory operand of LL/SC.
28362         (compare_and_swap_12, sync_add<mode>): Likewise.
28363         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28364         (sync_new_<optab>_12, sync_nand_12): Likewise.
28365         (sync_old_nand_12, sync_new_nand_12): Likewise.
28366         (sync_sub<mode>, sync_old_add<mode>): Likewise.
28367         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28368         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28369         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28370         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28371         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28372         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28373         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28374         * doc/md.texi (ZC): Update description.
28376 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
28378         * builtins.c (expand_builtin_atomic_exchange): Remove error when
28379         memory model is CONSUME.
28380         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28381         expand_builtin_atomic_store): Change invalid memory model errors to
28382         warnings.
28383         (expand_builtin_atomic_clear): Change invalid model errors to warnings
28384         and issue warning for CONSUME.
28386 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
28388         * lto-cgraph: Update function comments for
28389         lto_symtab_encoder_encode_*.
28391 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
28393         * Makefile.in (site.exp): Do not set ENABLE_LTO.
28395 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
28397         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28398         * lto-cgraph.c (select_what_to_stream): Remove argument, use
28399         lto_stream_offload_p instead.
28400         * lto-streamer.h (select_what_to_stream): Remove argument.
28401         * passes.c (ipa_write_summaries): Likewise.
28402         * tree-pass.h (ipa_write_summaries): Likewise.
28404 2015-01-14  Richard Biener  <rguenther@suse.de>
28406         PR tree-optimization/59354
28407         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28408         groups larger than the slp group size as having gaps.
28410 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
28412         PR middle-end/59448
28413         * builtins.c (get_memmodel): Promote consume to acquire always.
28415 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
28417         PR target/64386
28418         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28419         V32HImode.
28421 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
28423         PR target/64393
28424         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28425         Enable AVX512BW.
28426         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28427         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
28428         AVX512VBMI, as it implies AVX512BW.
28430 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
28432         PR target/64387
28433         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
28434         (vec_unpacks_hi_v16sf): Ditto.
28436 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28438         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
28439         is not available.
28441 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28443         * doc/invoke.texi (mapcs): Mention deprecation.
28444         (mapcs-frame): Likewise.
28446 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28448         PR target/64453
28449         * config/arm/arm.c (callee_saved_reg_p): Define.
28450         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
28451         register is callee saved instead of !call_used_regs[reg].
28452         (thumb1_compute_save_reg_mask): Likewise.
28454 2015-01-14  Hale Wang  <hale.wang@arm.com>
28456         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
28457         Cortex-M7.
28459 2015-01-14  Richard Biener  <rguenther@suse.de>
28461         PR lto/64415
28462         * tree-inline.c (insert_debug_decl_map): Check destination
28463         function MAY_HAVE_DEBUG_STMTS.
28464         (insert_init_debug_bind): Likewise.
28465         (insert_init_stmt): Remove redundant check.
28466         (remap_gimple_stmt): Drop debug stmts if the destination
28467         function has var-tracking assignments disabled.
28469 2015-01-14  Martin Liska  <mliska@suse.cz>
28471         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
28472         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28474 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28476         PR target/64460
28477         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28478         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28480 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
28482         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28483         level from an ARCH; do not inject the default.
28484         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28485         MIPS_ISA_LEVEL_SPEC.
28486         (MIPS_ISA_NAN2008_SPEC): Update comment.
28487         (BASE_DRIVER_SELF_SPECS): Likewise.
28488         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28489         MIPS_DEFAULT_ISA_LEVEL_SPEC.
28490         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28491         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28492         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28494 2015-01-14  Richard Biener  <rguenther@suse.de>
28496         PR tree-optimization/64493
28497         PR tree-optimization/64495
28498         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28499         assign the proper vectorized PHI to the inner loop exit PHIs.
28501 2015-01-14  Joey Ye  <joey.ye@arm.com>
28503         * config/arm/arm.c (arm_compute_save_reg_mask):
28504         Do not save lr in case of tail call.
28505         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
28507 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
28509         * tree-vrp.c (check_array_ref): Emit more warnings
28510         for warn_array_bounds >= 2.
28511         * common.opt: New option -Warray-bounds=.
28512         * doc/invoke.texi: Document -Warray-bounds=.
28514 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28516         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
28517         (mforbid-fp-as-gp): Remove.
28518         (mex9): Remove.
28519         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
28520         (nds32_symbol_load_store_p): Remove.
28521         (nds32_fp_as_gp_check_available): Clean up implementation.
28522         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
28523         cases.
28524         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28525         fp-as-gp and ex9 cases.
28527 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
28529         * tree-profile.c (init_ic_make_global_vars): Drop workaround
28530         for bintuils bug 14342.
28531         (init_ic_make_global_vars): Likewise.
28532         (gimple_init_edge_profiler): Likewise.
28533         (gimple_gen_ic_func_profiler): Likewise.
28535 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28537         * ipa-inline.c (inline_small_functions): Swap the operands in
28538         enum.
28540 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
28542         PR ipa/64481
28543         * ipa-inline-analysis.c (node_growth_cache): Remove.
28544         (initialize_growth_caches): Do not initialize it.
28545         (free_growth_caches): Do not free it.
28546         (do_estimate_growth): Rename to ...
28547         (estimate_growth): ... this one; drop growth cache code.
28548         (growth_likely_positive): Always go the heuristics way.
28549         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28550         (reset_edge_caches): Do not reset node growth.
28551         (heap_edge_removal_hook): Do not maintain cache.
28552         (inline_small_functions): Likewise; strenghten sanity check.
28553         (ipa_inline): Do not maintain caches.
28554         * ipa-inline.h (node_growth_cache): Remove.
28555         (do_estimate_growth): Remove to ...
28556         (estimate_growth): this one; remove inline version.
28557         (reset_node_growth_cache): Remove.
28559 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
28561         PR ipa/64565
28562         * ipa-inline.c (inline_small_functions): Update callee keys after
28563         resolving speculation
28564         (inline_small_functions): Always check monotonicity of the queue.
28566 2015-01-13  Marek Polacek  <polacek@redhat.com>
28568         PR middle-end/64391
28569         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28571 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
28573         PR rtl-optimization/64286
28574         * ree.c (combine_reaching_defs): Move part of comment earlier,
28575         remove !SCALAR_INT_MODE_P check.
28576         (add_removable_extension): Don't add vector mode
28577         extensions if all uses of the source register aren't the same
28578         vector extensions.
28580 2015-01-13  Renlin Li  <renlin.li@arm.com>
28582         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28583         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28585 2015-01-13  Martin Liska  <mliska@suse.cz>
28587         * ipa-icf.c (sem_function::equals_private): Call new functions
28588         cl_target_option_print_diff and cl_optimization_print_diff.
28589         * optc-save-gen.awk (cl_target_option_print_diff): New function.
28590         (cl_optimization_print_diff): Likewise.
28591         * opth-gen.awk: Likewise.
28593 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
28595         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28596         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28597         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28598         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28599         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28600         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28602 2015-01-13  Andrew Pinski  <apinski@cavium.com>
28604         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28605         instead of src mode.
28607 2015-01-13  Richard Biener  <rguenther@suse.de>
28609         PR lto/64373
28610         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28611         DECL_CONTEXT.
28613 2015-01-13  Andrew Pinski  <apinski@cavium.com>
28615         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28616         volatile mems.
28617         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28619 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
28621         PR middle-end/63974
28622         * cfgexpand.c (expand_computed_goto): Don't call
28623         convert_memory_address here.
28625 2015-01-13  Richard Biener  <rguenther@suse.de>
28627         PR tree-optimization/64406
28628         * tree-loop-distibution.c (pass_loop_distribution::execute):
28629         Reset the SCEV hashtable if we distributed anything.
28631 2015-01-13  Richard Biener  <rguenther@suse.de>
28633         PR tree-optimization/64404
28634         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28635         SLP types for CSEd loads.
28637 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28639         PR tree-optimization/64436
28640         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28641         merge of two symbolic numbers for a bitwise OR to ...
28642         (perform_symbolic_merge): This. Also fix computation of the range and
28643         end of the symbolic number corresponding to the result of a bitwise OR.
28645 2015-01-13  Richard Biener  <rguenther@suse.de>
28647         PR tree-optimization/64568
28648         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28649         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28651 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28653         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28654         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28656 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28658         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28659         target-specific symbol_ref flag.
28660         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28661         resides in rodata section.
28662         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28663         (nds32_encode_section_info): New function.
28665 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28667         * config/nds32/nds32.md (call): Use pseudo instruction bal which
28668         clobbers TA_REGNUM if large code model is specified.
28669         (call_register): Likewise.
28670         (call_immediate): Likewise.
28671         (call_value): Likewise.
28672         (call_value_register): Likewise.
28673         (call_value_immediate): Likewise.
28675 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28677         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28678         (TARGET_CMODEL_MEDIUM): New macro.
28679         (TARGET_CMODEL_LARGE): New macro.
28680         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28681         code model setting in assembly code.
28683 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28685         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28686         Remove MASK_GP_DIRECT flag.
28687         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28688         one of the multilib default options.
28689         * config/nds32/nds32.opt (mgp-direct): Remove.
28690         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28691         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
28693 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28695         * config/nds32/nds32.opt (mcmodel): Add new option.
28696         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28697         to describe code model.
28699 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
28701         PR target/64479
28702         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28704 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
28706         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28707         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28708         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28709         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28710         __builtin_sh_set_fpscr.
28712 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28714         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28715         after a funtion name just to indicate it is a function.
28716         ([-fsanitize-undefined-trap-on-error]): Likewise.
28717         ([-fdbg-cnt=]): Likewise.
28718         ([-mmemcpy]): Likewise.
28719         ([-mflush-func]): Likewise.
28720         ([-msynci]): Likewise.
28722 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28724         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28725         example.
28727 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
28729         PR tree-optimization/64563
28730         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28731         instead of != VR_VARYING.
28733         PR target/64513
28734         * config/i386/i386.c (ix86_expand_prologue): Add
28735         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28737         PR tree-optimization/64454
28738         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28739         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28740         for signed or [0, op1 - 1] for unsigned modulo.
28741         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28742         even if op1 does not satisfy integer_pow2p.
28744         PR other/64370
28745         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28747 2015-01-12  Jeff Law  <law@redhat.com>
28749         PR target/64461
28750         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28751         (trunchiqi2, truncsihi2): Similarly.
28753         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
28754         rather than calling F.
28756 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28758         * tsan.c (instrument_expr): Use force_gimple_operand.
28759         Use may_be_nonaddressable_p instead of is_gimple_addressable.
28761 2015-01-12  Richard Biener  <rguenther@suse.de>
28763         PR tree-optimization/64530
28764         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
28765         back dr1.
28767 2015-01-12  Richard Biener  <rguenther@suse.de>
28769         PR middle-end/64357
28770         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
28771         latches properly.
28773 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28775         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
28776         Cortex-A17 tuning parameters.
28777         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
28779 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28781         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
28782         * config/arm/arm.c (arm_macro_fusion_p): New function.
28783         (arm_macro_fusion_pair_p): Likewise.
28784         (TARGET_SCHED_MACRO_FUSION_P): Define.
28785         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
28786         (ARM_FUSE_NOTHING): Likewise.
28787         (ARM_FUSE_MOVW_MOVT): Likewise.
28788         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
28789         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
28790         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
28791         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
28792         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
28793         arm_cortex_a5_tune): Specify fuseable_ops value.
28795 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
28797         PR bootstrap/64561
28798         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
28799         test for PIE with copy reloc.
28800         * configure: Regenerated.
28802 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28804         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
28805         in gen_rtx_REG.
28806         (arm_tls_descseq_addr): Likewise.
28807         (arm_gen_movmemqi): Likewise.
28808         (arm_expand_epilogue_apcs_frame): Likewise.
28809         (arm_expand_epilogue): Likewise.
28810         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
28811         in gen_rtx_REG.
28813 2015-01-12  Martin Liska  <mliska@suse.cz>
28815         PR ipa/64550
28816         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28817         volatility for correct operands.
28819 2015-01-12  Martin Liska  <mliska@suse.cz>
28821         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28822         indication that a function is not leaf.
28823         (sem_function::compare_polymorphic_p): Likewise.
28825 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28827         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28828         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28829         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28830         fold-const.h, tree-check.h.
28832 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
28834         PR ipa/63967
28835         PR ipa/64425
28836         * ipa-inline.c (compute_uninlined_call_time,
28837         compute_inlined_call_time): Use counts for extra precision when
28838         needed possible.
28839         (big_speedup_p): Fix formating.
28840         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28841         (relative_time_benefit): Remove.
28842         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28843         merge guessed and read profile paths.
28844         (inline_small_functions): Count only !optimize_size functions into
28845         initial size; be more lax about sanity check when profile is used;
28846         be sure to update inlined function profile when profile is read.
28848 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
28850         PR ipa/63470
28851         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28852         cost when edge becomes direct.
28853         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28854         is resolved or when introducing new speculation.
28856 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
28858         PR ipa/64551
28859         PR ipa/64552
28860         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28861         '||' to fix typo issue.
28863         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28864         accept and return NULL.
28866 2015-01-12  Martin Liska  <mliska@suse.cz>
28868         * cgraph.c (cgraph_edge::remove_callee): Move function to header
28869         file for being inlined.
28870         (cgraph_set_edge_callee): Delete.
28871         (cgraph_edge::redirect_callee): Move function to header file
28872         for being inlined.
28873         (cgraph_edge::make_direct): Use new function.
28874         (cgraph_edge::dump_edge_flags): New function created from
28875         static dump_edge_flags function.
28876         (cgraph_node::dump): Use new function.
28877         (cgraph_edge::verify_count_and_frequency): New function created
28878         from verify_edge_count_and_frequency.
28879         (cgraph_edge::verify_corresponds_to_fndecl): New function created
28880         from verify_edge_corresponds_to_fndecl.
28881         (verify_edge_corresponds_to_fndecl): Delete.
28882         (cgraph_node::verify_node): Use new function.
28883         * cgraph.h (cgraph_edge::set_callee): New function.
28884         (cgraph_edge::dump_edge_flags): Likewise.
28885         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28887 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
28889         * ipa-utils.c (estimate_function_body_sizes): Do not
28890         free node params when called late with early=true.
28892 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
28894         * doc/md.texi (Instruction Patterns): Rewrite text for
28895         clarity.
28896         (Example): Likewise.
28898 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
28900         * doc/invoke.texi (Option Summary): Break long lines.
28901         [(-fdiagnostics-color)]: Put long literal in @smallexample
28902         instead of inline.
28903         [(-fsanitize-recover)]: Likewise.
28904         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28905         [(-ffast-math)]: Likewise.
28906         [(--param max-inline-insns-recursive)]: Likewise.
28907         [(--param max-inline-recursive-depth)]: Likewise.
28908         [(-mno-text-section-literals)]: Likewise.
28910 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
28912         * doc/install.texi: Update for libgomp being renamed from "GNU
28913         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28914         Runtime Library".
28915         * doc/sourcebuild.texi: Likewise.
28917 2015-01-10  Anthony Green  <green@moxielogic.com>
28919         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28920         mul.x availability for moxiebox configuration.
28922 2015-01-09  Anthony Green  <green@moxielogic.com>
28924         * config/moxie/moxie.md: Tabify assembly output.
28926 2015-01-09  Anthony Green  <green@moxielogic.com>
28928         * config/moxie/moxie.md (CC_REG): Correct register definition.
28930 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
28932         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28933         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
28934         of log files.
28936 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
28938         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28940 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
28941             Jakub Jelinek  <jakub@redhat.com>
28943         PR middle-end/64412
28944         * lto-streamer.h (lto_stream_offload_p): New declaration.
28945         * lto-streamer.c (lto_stream_offload_p): New variable.
28946         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28947         at the same time as section_name_prefix.
28948         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28949         if lto_stream_offload_p.
28950         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28951         stream TREE_TARGET_OPTION if lto_stream_offload_p.
28952         (write_ts_function_decl_tree_pointers): Don't
28953         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28954         * tree-streamer-in.c (unpack_value_fields): Don't stream
28955         TREE_TARGET_OPTION in if ACCEL_COMPILER.
28956         (lto_input_ts_function_decl_tree_pointers): Don't stream
28957         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28958         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28959         instead of section_name_prefix string comparisons.
28961 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
28963         PR rtl-optimization/64536
28964         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28965         tablejumps.
28967 2015-01-09  Michael Collison  <michael.collison@linaro.org>
28969         PR tree-optimization/64322
28970         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28971         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28973 2015-01-09  Tom de Vries  <tom@codesourcery.com>
28975         PR rtl-optimization/64539
28976         * regcprop.c (kill_clobbered_values): Factor out of ...
28977         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
28978         instead of note_stores with kill_clobbered_value.
28980 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
28982          * ginclude/unwind-arm-common.h: Revert previous commit.
28984 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
28986         * config.gcc (arm*-*-freebsd*): New configuration.
28987         * config/arm/freebsd.h: New file.
28988         * config.host: Add extra components for arm*-*-freebsd*.
28989         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28990         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28992 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28994         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28995         for -mcpu=e6500.
28996         * config/rs6000/t-rtems: Add e6500 multilibs.
28998 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29000         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29001         MPC8540.
29003 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29005         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29006         MULTILIB_EXCEPTIONS.
29008 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29010         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29011         MULTILIB_EXCEPTIONS.
29013 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29015         * config/arm/t-rtems-eabi: Rename to...
29016         * config/arm/t-rtems: ...this.
29017         * config/arm/rtems-eabi.h: Rename to...
29018         * config/arm/rtems.h: ...this.
29019         * config.gcc (arm*-*-rtems*): Reflect changes above.
29021 2015-01-09  Richard Biener  <rguenther@suse.de>
29023         PR tree-optimization/64410
29024         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29025         on the LHS.
29026         (execute_update_addresses_taken): Deal with that.
29027         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29028         loads/stores for complex variables.
29030 2015-01-09  Martin Liska  <mliska@suse.cz>
29032         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29033         name comparison.
29034         (func_checker::compare_memory_operand): New function.
29035         (func_checker::compare_operand): Split case to newly
29036         added functions.
29037         (func_checker::compare_cst_or_decl): New function.
29038         (func_checker::compare_gimple_call): Identify
29039         memory operands.
29040         (func_checker::compare_gimple_assign): Likewise.
29041         * ipa-icf-gimple.h: New function.
29043 2015-01-09  Martin Liska  <mliska@suse.cz>
29045         PR ipa/64503
29046         * sreal.c (sreal::dump): Change unsigned format to signed for
29047         m_exp value.
29048         (sreal::to_double): Replace exp2 with scalbln.
29050 2015-01-09  Martin Liska  <mliska@suse.cz>
29052         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29053         * ipa-icf.c (sem_function::equals_private): Add support for target and
29054         (sem_item_optimizer::merge_classes): Remove redundant function
29055         optimization flags comparison.
29056         * tree.h (target_opts_for_fn): New function.
29058 2015-01-09  Tom de Vries  <tom@codesourcery.com>
29060         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29062 2015-01-09  Kito Cheng  <kito@0xlab.org>
29064         PR rtl-optimization/64348
29065         * lra-constraints.c (split_reg): Fix caller-save store/restore
29066         instruction generation.
29068 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
29070         PR gcov-profile/61790
29071         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29072         long long.  Fallback to int64_t if host doesn't have long long and
29073         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
29075 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
29077         PR tree-optimization/63989
29078         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29079         from 1000 to 10000.
29080         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29081         (get_stridx): If we don't have a record for certain SSA_NAME,
29082         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29083         constant offset, call get_stridx_plus_constant.
29084         (get_stridx_plus_constant): New function.
29085         (zero_length_string): Don't use get_stridx here.
29087         PR target/55023
29088         PR middle-end/64388
29089         * dse.c (struct insn_info): Mention frame_read set also
29090         before reload for tail calls on some targets.
29091         (scan_insn): Revert 2014-12-22 change.  Set frame_read
29092         also before reload for tail calls if
29093         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
29094         instead of add_non_frame_wild_read for non-const/memset
29095         tail calls after reload.
29097 2015-01-08  Jason Merrill  <jason@redhat.com>
29099         * ubsan.c (do_ubsan_in_current_function): New.
29100         (pass_ubsan::gate): Use it.
29101         * ubsan.h: Declare it.
29102         * convert.c (convert_to_integer): Use it.
29104 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
29106         PR target/64338
29107         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29108         compare_code when it is unconditionally overwritten afterwards.
29109         Use ix86_reverse_condition instead of reverse_condition.  Don't
29110         change code if *reverse_condition* returned UNKNOWN and don't
29111         swap ct/cf and negate diff in that case.
29113 2015-01-08  Mike Stump  <mikestump@comcast.net>
29115         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29116         (pass_tsan_O0::gate): Likewise.
29117         * extend.texi (Function Attributes): Add no_sanitize_thread
29118         documentation.
29120 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
29122         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29123         for registering builtins.
29124         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29125         add -fopenmp to the argv_obstack used when invoking
29126         compile_for_target.
29128         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29129         add "-m32" or "-m64" to argv_obstack.
29130         (generate_host_descr_file): Likewise, when invoking host_compiler.
29131         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29132         ld.
29134 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
29136         * config/sh/sh-mem.cc: Use constant as second operand when emitting
29137         tstsi_t insns.
29139 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
29141         PR target/55212
29142         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29143         constant load if constant operand fits into I08.
29145 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
29147         PR sanitizer/64336
29148         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29149         and TREE_THIS_VOLATILE for MEM_REFs.
29150         (build5_stat): Fix up initialization of TREE_READONLY and
29151         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29153 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
29155         PR target/64533
29156         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29157         of r for the second alternative of the destination operand.
29159 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
29161         PR target/36557
29162         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29164 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
29166         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29167         keywords.
29168         ([-fivar-visibility], [-fvisibility]): Likewise.
29170 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
29172         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29173         the file where @code, @command, etc is more appropriate.
29175 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
29177         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29178         of -mrecip= documentation.
29180 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29182         PR target/64505
29183         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29184         correct reload handler if -m32 -mpowerpc64 is used.
29186 2015-01-06  Tom de Vries  <tom@codesourcery.com>
29188         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29190 2015-01-08  Christian Bruel  <christian.bruel@st.com>
29192         PR target/64507
29193         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29195 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29197         PR tree-optimization/63259
29198         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29199         if optab exists for 16bit byteswap.
29201 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
29203         * opts.c (common_handle_option): Add support for
29204         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29205         * doc/invoke.texi: Document -fno-sanitize=all,
29206         -f{,no-}sanitize-recover=all.  Document that
29207         -fsanitize=float-cast-overflow is not enabled
29208         by -fsanitize=undefined.  Fix up documentation
29209         of -f{,no-}sanitize-recover.
29211 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
29213         * config.gcc: Add Visium support.
29214         * configure.ac: Likewise.
29215         * configure: Regenerate.
29216         * doc/extend.texi (interrupt attribute): Add Visium.
29217         * doc/invoke.texi: Document Visium options.
29218         * doc/install.texi: Document Visium target.
29219         * doc/md.texi: Document Visium constraints.
29220         * common/config/visium: New directory.
29221         * config/visium: Likewise.
29223 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
29225         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29226         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29228 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
29230         * combine.c (combine_validate_cost): Do not count the cost of a
29231         split I2 twice.  Do not display it twice in the dump, either.
29233 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
29235         Revert parts of r219199.
29236         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29237         <inttypes.h>.
29238         ([-Wtraditional]): Restore markup on <limits.h>.
29240 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
29242         PR c++/31397
29243         * doc/invoke.texi: Document -Wsuggest-override.
29245 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
29247         PR rtl-optimization/64287
29248         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29249         (process_options): Disable flag_ipa_ra if profiling.
29251 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29253         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29255 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
29257         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29258         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29259         put under #if TARGET_LOOPS guard.
29261 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
29263         * config/i386/i386.c (output_387_binary_op): Use std::swap.
29265 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
29267         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29268         * rtl.h (refers_to_regno_p): Add overload.
29269         * cse.c: Use it.
29270         * bt-load.c: Likewise.
29271         * combine.c: Likewise.
29272         * df-scan.c: Likewise.
29273         * sched-deps.c: Likewise.
29274         * config/s390/s390.c: Likewise.
29275         * config/m32r/m32r.c: Likewise.
29276         * config/rs6000/spe.md: Likewise.
29277         * config/rs6000/rs6000.c: Likewise.
29278         * config/pa/pa.c: Likewise.
29279         * config/stormy16/stormy16.c: Likewise.
29280         * config/cris/cris.c: Likewise.
29281         * config/arc/arc.md: Likewise.
29282         * config/arc/arc.c: Likewise.
29283         * config/sh/sh.md: Likewise.
29284         * config/sh/sh.c: Likewise.
29285         * config/frv/frv.c: Likewise.
29287 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
29289         PR sanitizer/64265
29290         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29291         call as cleanup of the whole body.
29292         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29293         * tsan.c (replace_func_exit): New function.
29294         (instrument_func_exit): Moved earlier.
29295         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29296         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29297         been found.
29298         (tsan_pass): Don't call instrument_func_exit.
29299         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29300         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29301         inlining.
29303         PR sanitizer/64344
29304         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29305         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29306         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
29307         if the result is integer_zerop, return NULL_TREE.
29308         * convert.c (convert_to_integer): Pass expr as ARG.
29310         PR tree-optimization/64465
29311         * tree-inline.c (redirect_all_calls): During inlining
29312         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29313         changed the stmt to a non-throwing call.
29315 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
29317         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29318         etc markup throughout the file.
29320 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29322         Enable experimental TSAN support for Ada.
29323         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29325 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
29327         PR tree-optimization/64494
29328         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29329         clear SSA_NAME_ANTI_RANGE_P flag.
29331 2015-01-05  Marek Polacek  <polacek@redhat.com>
29333         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29335 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
29337         Update copyright years.
29339         * gcc.c (process_command): Update copyright notice dates.
29340         * gcov-dump.c: Ditto.
29341         * gcov.c: Ditto.
29342         * doc/cpp.texi: Bump @copying's copyright year.
29343         * doc/cppinternals.texi: Ditto.
29344         * doc/gcc.texi: Ditto.
29345         * doc/gccint.texi: Ditto.
29346         * doc/gcov.texi: Ditto.
29347         * doc/install.texi: Ditto.
29348         * doc/invoke.texi: Ditto.
29350         * auto-profile.c, auto-profile.h: Fix up Copyright line.
29352 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
29354         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29355         verb tense, etc.
29356         ([-fvtable-verify], [-fvtv-debug]): Likewise.
29357         ([-Wabi]): Likewise.
29358         ([-fmessage-length]): Likewise.
29359         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29360         ([-Wno-discarded-qualifiers]): Likewise.
29361         ([-Wnodiscarded-array-qualifiers]): Likewise.
29362         ([-Wno-virtual-move-assign]): Likewise.
29363         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29364         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29365         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29366         ([-fsanitize-undefined-trap-on-error]): Likewise.
29367         ([-floop-interchange]): Likewise.
29368         ([-ftree-coalesce-inlined-vars]): Likewise.
29369         ([-fvect-cost-model]): Likewise.
29370         ([-flto]): Likewise.
29371         ([--param]): Likewise.
29372         (Spec Files): Likewise.
29373         ([-mstrict-align]): Likewise.
29374         ([-mfix-cortex-a53-835769]): Likewise.
29375         ([-march], [-mtune]): Likewise.
29376         ([-mpic-register]): Likewise.
29377         ([-munaligned-access]): Likewise.
29378         ([-msp8]): Likewise.
29379         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29380         (AVR Built-in Macros): Likewise.
29381         ([-mpreferred-stack-boundary]): Likewise.
29382         ([-mtune-crtl]): Likewise.
29383         ([-mashf]): Likewise.
29384         ([-mmcu=]): Likewise.
29385         ([-minrt]): Likewise.
29386         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29387         ([-mupper-regs]): Likewise.
29388         ([-matomic-model]): Likewise.
29389         ([-mdiv]): Likewise.
29390         ([-mzdcbranch]): Likewise.
29391         ([-mdisable-callt]): Likewise.
29392         ([-msoft-float]): Likewise.
29393         ([-m8byte-align]): Likewise.
29394         ([-fstack-reuse]): Likewise.
29396 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
29398         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29399         Fix markup, light copy-editing.
29400         ([-fauto-profile]): Rewrite to fix formatting and content
29401         problems.
29403 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
29405         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29406         Copy-edit description.
29407         ([-fisolate-erroneous-paths-attribute]): Likewise.
29408         * common.opt (fisolate-erroneous-paths-dereference):
29409         Copy-edit description.
29410         (fisolate-erroneous-paths-attribute): Likewise.
29412 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
29414         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29415         tidy grammar.
29417 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
29419         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29420         ([-fvtv-debug]): Likewise.
29421         ([-Wc++-compat]): Likewise.
29422         ([-Wc++11-compat]): Likewise.
29423         ([-Wc++14-compat]): Likewise.
29424         ([-Wno-sized-deallocation]): Likewise.
29425         ([-femit-class-debug-always]): Likewise.
29426         ([-femit-struct-debug-detailed]): Likewise.
29427         ([-fno-keep-inline-dllexport]): Likewise.
29428         ([-fira-algorithm]): Likewise.
29429         ([-fira-region]): Likewise.
29430         ([-flra-remat]): Likewise.
29431         ([-fipa-ra]): Likewise.
29432         ([-fhoist-adjacent-loads]): Likewise.
29433         ([-fisolate-erroneous-paths-dereference]): Likewise.
29434         ([-fisolate-erroneous-paths-attribute]): Likewise.
29435         ([-ftree-switch-conversion]): Likewise.
29436         ([-ftree-tail-merge]): Likewise.
29437         ([-ftree-loop-if-convert]): Likewise.
29438         ([-ftree-loop-if-convert-stores]): Likewise.
29439         ([-ftree-loop-distribution]): Likewise.
29440         ([-ftree-loop-distribute-patterns]): Likewise.
29441         ([-flto-compression-level]): Likewise.
29442         ([-flto-report]): Likewise.
29443         ([-flto-report-wpa]): Likewise.
29444         ([-fuse-linker-plugin]): Likewise.
29445         ([-mfix-cortex-a53-835769]): Likewise.
29446         ([-mno-fix-cortex-a53-835769]): Likewise.
29447         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
29448         explicit listing; add a note to the discussion indicating they
29449         exist.  Reorder table to group similar options.  Add missing
29450         @opindex entries.  Add @need commands throughout the table to
29451         allow it to be split across multiple pages.
29452         ([-m8bit-idiv]): Fix @opindex.
29453         ([-mavx256-split-unaligned-load]): Likewise.
29454         ([-mavx256-split-unaligned-store]): Likewise.
29455         ([-mstack-protector-guard]): Likewise.
29456         ([-mcpu=]): Likewise.
29457         ([-mcpu]): Likewise.
29458         ([-mpointer-size=]): Likewise.
29460 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
29462         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
29463         instead of `m' constraint.  Likewise for unnamed movb comparison
29464         patterns using reg_before_reload_operand predicate.
29465         * config/pa/predicates.md (reg_before_reload_operand): Tighten
29466         predicate to reject register index and LO_SUM DLT memory forms
29467         after reload.
29469 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
29471         * doc/invoke.texi (Option Summary): Fix spelling of
29472         -fdevirtualize-at-ltrans.
29473         ([-fdevirtualize]): Fix markup.
29474         ([-fdevirtualize-speculatively]): Fix typo.
29475         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
29476         implementor-speaky.
29477         * common.opt (fdevirtualize-at-ltrans): Likewise.
29478         * ipa-devirt.c: Fix typos in comments throughout the file.
29479         (ipa_devirt): Fix typos in format strings for dump output.
29481 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
29483         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29484         discussion of defaults, light copy-editing.
29486 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29488         * tsan.c (instrument_expr): corrected previous checkin.
29490 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29492         Instrument bit field and unaligned accesses for TSAN.
29493         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29494         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29495         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29496         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29497         unaligned memory regions.
29499 2015-01-01  Anthony Green  <green@moxielogic.com>
29501         * config/moxie/predicates.md (moxie_general_movsrc_operand):
29502         Restrict move source register offsets to 16 bits.
29504 Copyright (C) 2015 Free Software Foundation, Inc.
29506 Copying and distribution of this file, with or without modification,
29507 are permitted in any medium without royalty provided the copyright
29508 notice and this notice are preserved.